@cortezaproject/corteza-vue 2022.9.0-dev.1 → 2022.9.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/chart/index.d.ts +1 -0
- package/dist/components/index.d.ts +5 -2
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/permissions/index.d.ts +0 -1
- package/dist/components/privacy/index.d.ts +1 -0
- package/dist/components/resourceList/index.d.ts +1 -0
- package/dist/index.es.js +1274 -674
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1273 -673
- package/dist/index.js.map +1 -1
- package/package.json +5 -6
package/dist/index.js
CHANGED
|
@@ -27,8 +27,6 @@ var vuex = require('vuex');
|
|
|
27
27
|
var core = require('@popperjs/core');
|
|
28
28
|
var _ = require('lodash');
|
|
29
29
|
var ___default = _interopDefault(_);
|
|
30
|
-
var colorschemes = _interopDefault(require('chartjs-plugin-colorschemes'));
|
|
31
|
-
var Funnel = _interopDefault(require('chartjs-plugin-funnel'));
|
|
32
30
|
var pino = _interopDefault(require('pino'));
|
|
33
31
|
var fzy = _interopDefault(require('fuzzysort'));
|
|
34
32
|
|
|
@@ -71514,10 +71512,162 @@ var __vue_staticRenderFns__$b = [];
|
|
|
71514
71512
|
undefined
|
|
71515
71513
|
);
|
|
71516
71514
|
|
|
71515
|
+
//
|
|
71516
|
+
//
|
|
71517
|
+
//
|
|
71518
|
+
//
|
|
71519
|
+
//
|
|
71520
|
+
//
|
|
71521
|
+
//
|
|
71522
|
+
//
|
|
71523
|
+
//
|
|
71524
|
+
//
|
|
71525
|
+
//
|
|
71526
|
+
//
|
|
71527
|
+
//
|
|
71528
|
+
//
|
|
71529
|
+
//
|
|
71530
|
+
//
|
|
71531
|
+
//
|
|
71532
|
+
//
|
|
71533
|
+
//
|
|
71534
|
+
//
|
|
71535
|
+
//
|
|
71536
|
+
//
|
|
71537
|
+
//
|
|
71538
|
+
//
|
|
71539
|
+
//
|
|
71540
|
+
//
|
|
71541
|
+
//
|
|
71542
|
+
//
|
|
71543
|
+
//
|
|
71544
|
+
//
|
|
71545
|
+
//
|
|
71546
|
+
//
|
|
71547
|
+
//
|
|
71548
|
+
//
|
|
71549
|
+
//
|
|
71550
|
+
//
|
|
71551
|
+
//
|
|
71552
|
+
//
|
|
71553
|
+
//
|
|
71554
|
+
var script$d = {
|
|
71555
|
+
name: 'CInputSearch',
|
|
71556
|
+
props: {
|
|
71557
|
+
value: {
|
|
71558
|
+
type: String,
|
|
71559
|
+
default: ''
|
|
71560
|
+
},
|
|
71561
|
+
placeholder: {
|
|
71562
|
+
type: String,
|
|
71563
|
+
default: ''
|
|
71564
|
+
},
|
|
71565
|
+
size: {
|
|
71566
|
+
type: String
|
|
71567
|
+
},
|
|
71568
|
+
disabled: {
|
|
71569
|
+
type: Boolean
|
|
71570
|
+
},
|
|
71571
|
+
clearable: {
|
|
71572
|
+
type: Boolean,
|
|
71573
|
+
default: true
|
|
71574
|
+
},
|
|
71575
|
+
submittable: {
|
|
71576
|
+
type: Boolean
|
|
71577
|
+
},
|
|
71578
|
+
autocomplete: {
|
|
71579
|
+
type: String,
|
|
71580
|
+
default: 'on'
|
|
71581
|
+
},
|
|
71582
|
+
debounce: {
|
|
71583
|
+
type: Number,
|
|
71584
|
+
default: 0
|
|
71585
|
+
}
|
|
71586
|
+
},
|
|
71587
|
+
computed: {
|
|
71588
|
+
inputType() {
|
|
71589
|
+
return this.clearable ? 'search' : 'text';
|
|
71590
|
+
},
|
|
71591
|
+
|
|
71592
|
+
showSubmittable() {
|
|
71593
|
+
return !this.value || this.value && this.showSubmittableAndClearable;
|
|
71594
|
+
},
|
|
71595
|
+
|
|
71596
|
+
isSubmittable() {
|
|
71597
|
+
return this.submittable ? 'click' : null;
|
|
71598
|
+
},
|
|
71599
|
+
|
|
71600
|
+
showSubmittableAndClearable() {
|
|
71601
|
+
return this.clearable && this.submittable;
|
|
71602
|
+
}
|
|
71603
|
+
|
|
71604
|
+
},
|
|
71605
|
+
methods: {
|
|
71606
|
+
search(e) {
|
|
71607
|
+
if (!this.submittable) {
|
|
71608
|
+
this.$emit('input', e);
|
|
71609
|
+
}
|
|
71610
|
+
},
|
|
71611
|
+
|
|
71612
|
+
submitQuery() {
|
|
71613
|
+
if (this.submittable) {
|
|
71614
|
+
this.$emit('search', this.$refs.searchInput.localValue);
|
|
71615
|
+
}
|
|
71616
|
+
},
|
|
71617
|
+
|
|
71618
|
+
clearQuery() {
|
|
71619
|
+
this.$refs.searchInput.focus();
|
|
71620
|
+
this.$emit('input', '');
|
|
71621
|
+
}
|
|
71622
|
+
|
|
71623
|
+
}
|
|
71624
|
+
};
|
|
71625
|
+
|
|
71626
|
+
/* script */
|
|
71627
|
+
const __vue_script__$d = script$d;
|
|
71628
|
+
|
|
71629
|
+
/* template */
|
|
71630
|
+
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:{
|
|
71631
|
+
'search-icon-border': _vm.showSubmittableAndClearable,
|
|
71632
|
+
'cursor-default': !_vm.isSubmittable
|
|
71633
|
+
},attrs:{"variant":"link"},on:_vm._d({},[_vm.isSubmittable,_vm.submitQuery])},[_c('font-awesome-icon',{staticClass:"align-middle",attrs:{"icon":['fas', 'search']}})],1):_vm._e()],1)],1)};
|
|
71634
|
+
var __vue_staticRenderFns__$c = [];
|
|
71635
|
+
|
|
71636
|
+
/* style */
|
|
71637
|
+
const __vue_inject_styles__$e = function (inject) {
|
|
71638
|
+
if (!inject) return
|
|
71639
|
+
inject("data-v-795ab8d0_0", { source: "input[data-v-795ab8d0]:focus::placeholder{color:transparent}input[type=search][data-v-795ab8d0]::-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-795ab8d0]{border:2px solid #e4e9ef}.search-icon-border[data-v-795ab8d0]{border-left:2px solid #e4e9ef}.cursor-default[data-v-795ab8d0]{cursor:default!important}", map: undefined, media: undefined });
|
|
71640
|
+
|
|
71641
|
+
};
|
|
71642
|
+
/* scoped */
|
|
71643
|
+
const __vue_scope_id__$e = "data-v-795ab8d0";
|
|
71644
|
+
/* module identifier */
|
|
71645
|
+
const __vue_module_identifier__$e = undefined;
|
|
71646
|
+
/* functional template */
|
|
71647
|
+
const __vue_is_functional_template__$e = false;
|
|
71648
|
+
/* style inject SSR */
|
|
71649
|
+
|
|
71650
|
+
/* style inject shadow dom */
|
|
71651
|
+
|
|
71652
|
+
|
|
71653
|
+
|
|
71654
|
+
const __vue_component__$e = /*#__PURE__*/normalizeComponent(
|
|
71655
|
+
{ render: __vue_render__$c, staticRenderFns: __vue_staticRenderFns__$c },
|
|
71656
|
+
__vue_inject_styles__$e,
|
|
71657
|
+
__vue_script__$d,
|
|
71658
|
+
__vue_scope_id__$e,
|
|
71659
|
+
__vue_is_functional_template__$e,
|
|
71660
|
+
__vue_module_identifier__$e,
|
|
71661
|
+
false,
|
|
71662
|
+
createInjector,
|
|
71663
|
+
undefined,
|
|
71664
|
+
undefined
|
|
71665
|
+
);
|
|
71666
|
+
|
|
71517
71667
|
/**
|
|
71518
71668
|
* Defines common props, methods between different toolbar item types
|
|
71519
71669
|
*/
|
|
71520
|
-
var script$
|
|
71670
|
+
var script$e = {
|
|
71521
71671
|
props: {
|
|
71522
71672
|
format: {
|
|
71523
71673
|
type: Object,
|
|
@@ -71570,18 +71720,18 @@ var script$d = {
|
|
|
71570
71720
|
};
|
|
71571
71721
|
|
|
71572
71722
|
/* script */
|
|
71573
|
-
const __vue_script__$
|
|
71723
|
+
const __vue_script__$e = script$e;
|
|
71574
71724
|
|
|
71575
71725
|
/* template */
|
|
71576
71726
|
|
|
71577
71727
|
/* style */
|
|
71578
|
-
const __vue_inject_styles__$
|
|
71728
|
+
const __vue_inject_styles__$f = undefined;
|
|
71579
71729
|
/* scoped */
|
|
71580
|
-
const __vue_scope_id__$
|
|
71730
|
+
const __vue_scope_id__$f = undefined;
|
|
71581
71731
|
/* module identifier */
|
|
71582
|
-
const __vue_module_identifier__$
|
|
71732
|
+
const __vue_module_identifier__$f = undefined;
|
|
71583
71733
|
/* functional template */
|
|
71584
|
-
const __vue_is_functional_template__$
|
|
71734
|
+
const __vue_is_functional_template__$f = undefined;
|
|
71585
71735
|
/* style inject */
|
|
71586
71736
|
|
|
71587
71737
|
/* style inject SSR */
|
|
@@ -71590,13 +71740,13 @@ const __vue_script__$d = script$d;
|
|
|
71590
71740
|
|
|
71591
71741
|
|
|
71592
71742
|
|
|
71593
|
-
const __vue_component__$
|
|
71743
|
+
const __vue_component__$f = /*#__PURE__*/normalizeComponent(
|
|
71594
71744
|
{},
|
|
71595
|
-
__vue_inject_styles__$
|
|
71596
|
-
__vue_script__$
|
|
71597
|
-
__vue_scope_id__$
|
|
71598
|
-
__vue_is_functional_template__$
|
|
71599
|
-
__vue_module_identifier__$
|
|
71745
|
+
__vue_inject_styles__$f,
|
|
71746
|
+
__vue_script__$e,
|
|
71747
|
+
__vue_scope_id__$f,
|
|
71748
|
+
__vue_is_functional_template__$f,
|
|
71749
|
+
__vue_module_identifier__$f,
|
|
71600
71750
|
false,
|
|
71601
71751
|
undefined,
|
|
71602
71752
|
undefined,
|
|
@@ -71614,12 +71764,12 @@ n(css,{});
|
|
|
71614
71764
|
* input the URL that should be applied.
|
|
71615
71765
|
*/
|
|
71616
71766
|
|
|
71617
|
-
var script$
|
|
71767
|
+
var script$f = {
|
|
71618
71768
|
name: 't-mark-color',
|
|
71619
71769
|
components: {
|
|
71620
71770
|
Swatches
|
|
71621
71771
|
},
|
|
71622
|
-
extends: __vue_component__$
|
|
71772
|
+
extends: __vue_component__$f,
|
|
71623
71773
|
computed: {
|
|
71624
71774
|
typeStyle() {
|
|
71625
71775
|
return `${this.format.type}-icon`;
|
|
@@ -71629,38 +71779,38 @@ var script$e = {
|
|
|
71629
71779
|
};
|
|
71630
71780
|
|
|
71631
71781
|
/* script */
|
|
71632
|
-
const __vue_script__$
|
|
71782
|
+
const __vue_script__$f = script$f;
|
|
71633
71783
|
|
|
71634
71784
|
/* template */
|
|
71635
|
-
var __vue_render__$
|
|
71636
|
-
var __vue_staticRenderFns__$
|
|
71785
|
+
var __vue_render__$d = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-button',{staticClass:"text-dark font-weight-bold text-decoration-none",attrs:{"variant":"link","id":("color-popover-" + (_vm.format.type))}},[_c('span',{staticClass:"icon",class:_vm.typeStyle},[_vm._v("A")])]),_vm._v(" "),_c('b-popover',{ref:"popover",attrs:{"delay":0,"no-fade":"","custom-class":"tcl-popover","triggers":"focus","target":("color-popover-" + (_vm.format.type)),"placement":"bottom","container":null}},[_c('swatches',{attrs:{"swatch-size":"14","colors":"text-advanced","inline":""},on:{"input":function($event){return _vm.onClick(_vm.format.type, { color: $event })}}})],1)],1)};
|
|
71786
|
+
var __vue_staticRenderFns__$d = [];
|
|
71637
71787
|
|
|
71638
71788
|
/* style */
|
|
71639
|
-
const __vue_inject_styles__$
|
|
71789
|
+
const __vue_inject_styles__$g = function (inject) {
|
|
71640
71790
|
if (!inject) return
|
|
71641
71791
|
inject("data-v-90b60574_0", { source: ".icon[data-v-90b60574]{padding:0 2px}.icon.color-icon[data-v-90b60574]{border-bottom:1px solid #000}.icon.background-icon[data-v-90b60574]{background-color:rgba(0,0,0,.07);padding:2px 3px}", map: undefined, media: undefined })
|
|
71642
71792
|
,inject("data-v-90b60574_1", { source: ".tcl-popover .popover-body{padding:0!important}", map: undefined, media: undefined });
|
|
71643
71793
|
|
|
71644
71794
|
};
|
|
71645
71795
|
/* scoped */
|
|
71646
|
-
const __vue_scope_id__$
|
|
71796
|
+
const __vue_scope_id__$g = "data-v-90b60574";
|
|
71647
71797
|
/* module identifier */
|
|
71648
|
-
const __vue_module_identifier__$
|
|
71798
|
+
const __vue_module_identifier__$g = undefined;
|
|
71649
71799
|
/* functional template */
|
|
71650
|
-
const __vue_is_functional_template__$
|
|
71800
|
+
const __vue_is_functional_template__$g = false;
|
|
71651
71801
|
/* style inject SSR */
|
|
71652
71802
|
|
|
71653
71803
|
/* style inject shadow dom */
|
|
71654
71804
|
|
|
71655
71805
|
|
|
71656
71806
|
|
|
71657
|
-
const __vue_component__$
|
|
71658
|
-
{ render: __vue_render__$
|
|
71659
|
-
__vue_inject_styles__$
|
|
71660
|
-
__vue_script__$
|
|
71661
|
-
__vue_scope_id__$
|
|
71662
|
-
__vue_is_functional_template__$
|
|
71663
|
-
__vue_module_identifier__$
|
|
71807
|
+
const __vue_component__$g = /*#__PURE__*/normalizeComponent(
|
|
71808
|
+
{ render: __vue_render__$d, staticRenderFns: __vue_staticRenderFns__$d },
|
|
71809
|
+
__vue_inject_styles__$g,
|
|
71810
|
+
__vue_script__$f,
|
|
71811
|
+
__vue_scope_id__$g,
|
|
71812
|
+
__vue_is_functional_template__$g,
|
|
71813
|
+
__vue_module_identifier__$g,
|
|
71664
71814
|
false,
|
|
71665
71815
|
createInjector,
|
|
71666
71816
|
undefined,
|
|
@@ -71672,26 +71822,26 @@ var __vue_staticRenderFns__$c = [];
|
|
|
71672
71822
|
* Component is used to display simple formatter options such as bold, italic, ...
|
|
71673
71823
|
*/
|
|
71674
71824
|
|
|
71675
|
-
var script$
|
|
71825
|
+
var script$g = {
|
|
71676
71826
|
name: 't-mark-item',
|
|
71677
|
-
extends: __vue_component__$
|
|
71827
|
+
extends: __vue_component__$f
|
|
71678
71828
|
};
|
|
71679
71829
|
|
|
71680
71830
|
/* script */
|
|
71681
|
-
const __vue_script__$
|
|
71831
|
+
const __vue_script__$g = script$g;
|
|
71682
71832
|
|
|
71683
71833
|
/* template */
|
|
71684
|
-
var __vue_render__$
|
|
71685
|
-
var __vue_staticRenderFns__$
|
|
71834
|
+
var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-button',{staticClass:"text-dark font-weight-bold text-decoration-none",attrs:{"variant":"link"},on:{"click":function($event){return _vm.onClick(_vm.format.type, _vm.format.attrs)}}},[_c('span',{class:_vm.activeClasses(_vm.format.attrs)},[(_vm.format.icon)?_c('font-awesome-icon',{attrs:{"icon":_vm.format.icon}}):_c('span',[_vm._v("\n "+_vm._s(_vm.format.label)+"\n ")])],1)])};
|
|
71835
|
+
var __vue_staticRenderFns__$e = [];
|
|
71686
71836
|
|
|
71687
71837
|
/* style */
|
|
71688
|
-
const __vue_inject_styles__$
|
|
71838
|
+
const __vue_inject_styles__$h = undefined;
|
|
71689
71839
|
/* scoped */
|
|
71690
|
-
const __vue_scope_id__$
|
|
71840
|
+
const __vue_scope_id__$h = undefined;
|
|
71691
71841
|
/* module identifier */
|
|
71692
|
-
const __vue_module_identifier__$
|
|
71842
|
+
const __vue_module_identifier__$h = undefined;
|
|
71693
71843
|
/* functional template */
|
|
71694
|
-
const __vue_is_functional_template__$
|
|
71844
|
+
const __vue_is_functional_template__$h = false;
|
|
71695
71845
|
/* style inject */
|
|
71696
71846
|
|
|
71697
71847
|
/* style inject SSR */
|
|
@@ -71700,13 +71850,13 @@ var __vue_staticRenderFns__$d = [];
|
|
|
71700
71850
|
|
|
71701
71851
|
|
|
71702
71852
|
|
|
71703
|
-
const __vue_component__$
|
|
71704
|
-
{ render: __vue_render__$
|
|
71705
|
-
__vue_inject_styles__$
|
|
71706
|
-
__vue_script__$
|
|
71707
|
-
__vue_scope_id__$
|
|
71708
|
-
__vue_is_functional_template__$
|
|
71709
|
-
__vue_module_identifier__$
|
|
71853
|
+
const __vue_component__$h = /*#__PURE__*/normalizeComponent(
|
|
71854
|
+
{ render: __vue_render__$e, staticRenderFns: __vue_staticRenderFns__$e },
|
|
71855
|
+
__vue_inject_styles__$h,
|
|
71856
|
+
__vue_script__$g,
|
|
71857
|
+
__vue_scope_id__$h,
|
|
71858
|
+
__vue_is_functional_template__$h,
|
|
71859
|
+
__vue_module_identifier__$h,
|
|
71710
71860
|
false,
|
|
71711
71861
|
undefined,
|
|
71712
71862
|
undefined,
|
|
@@ -71719,9 +71869,9 @@ var __vue_staticRenderFns__$d = [];
|
|
|
71719
71869
|
* input the URL that should be applied.
|
|
71720
71870
|
*/
|
|
71721
71871
|
|
|
71722
|
-
var script$
|
|
71872
|
+
var script$h = {
|
|
71723
71873
|
name: 't-mark-link',
|
|
71724
|
-
extends: __vue_component__$
|
|
71874
|
+
extends: __vue_component__$f,
|
|
71725
71875
|
props: {
|
|
71726
71876
|
labels: {
|
|
71727
71877
|
type: Object,
|
|
@@ -71786,20 +71936,20 @@ var script$g = {
|
|
|
71786
71936
|
};
|
|
71787
71937
|
|
|
71788
71938
|
/* script */
|
|
71789
|
-
const __vue_script__$
|
|
71939
|
+
const __vue_script__$h = script$h;
|
|
71790
71940
|
|
|
71791
71941
|
/* template */
|
|
71792
|
-
var __vue_render__$
|
|
71793
|
-
var __vue_staticRenderFns__$
|
|
71942
|
+
var __vue_render__$f = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":"link-popover-container"}},[_c('b-button',{staticClass:"text-dark font-weight-bold text-decoration-none",attrs:{"variant":"link","id":"link-popover"},on:{"click":_vm.showPopover}},[_c('span',{class:_vm.activeClasses(_vm.format.attrs)},[_c('font-awesome-icon',{attrs:{"icon":"link"}})],1)]),_vm._v(" "),(_vm.currentValue)?_c('b-popover',{ref:"popover",attrs:{"triggers":"focus","target":"link-popover","placement":"auto","show":_vm.visible,"container":"link-popover-container"},on:{"update:show":function($event){_vm.visible=$event;}}},[_c('b-input-group',[_c('b-form-input',{attrs:{"type":"url","autofocus":"","state":_vm.urlValid ? null : false,"placeholder":_vm.labels.urlPlaceholder},on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();$event.stopPropagation();return _vm.link.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }$event.preventDefault();$event.stopPropagation();return _vm.close.apply(null, arguments)}]},model:{value:(_vm.attrs.href),callback:function ($$v) {_vm.$set(_vm.attrs, "href", $$v);},expression:"attrs.href"}}),_vm._v(" "),_c('b-input-group-append',[_c('b-button',{attrs:{"disabled":!_vm.urlValid,"variant":"outline-success"},on:{"click":_vm.link}},[_vm._v("\n "+_vm._s(_vm.labels.ok)+"\n ")])],1),_vm._v(" "),_c('b-checkbox',{staticClass:"py-1",attrs:{"value":"_blank","unchecked-value":"_self"},model:{value:(_vm.attrs.target),callback:function ($$v) {_vm.$set(_vm.attrs, "target", $$v);},expression:"attrs.target"}},[_vm._v("\n "+_vm._s(_vm.labels.openLinkInNewTab)+"\n ")])],1)],1):_vm._e()],1)};
|
|
71943
|
+
var __vue_staticRenderFns__$f = [];
|
|
71794
71944
|
|
|
71795
71945
|
/* style */
|
|
71796
|
-
const __vue_inject_styles__$
|
|
71946
|
+
const __vue_inject_styles__$i = undefined;
|
|
71797
71947
|
/* scoped */
|
|
71798
|
-
const __vue_scope_id__$
|
|
71948
|
+
const __vue_scope_id__$i = undefined;
|
|
71799
71949
|
/* module identifier */
|
|
71800
|
-
const __vue_module_identifier__$
|
|
71950
|
+
const __vue_module_identifier__$i = undefined;
|
|
71801
71951
|
/* functional template */
|
|
71802
|
-
const __vue_is_functional_template__$
|
|
71952
|
+
const __vue_is_functional_template__$i = false;
|
|
71803
71953
|
/* style inject */
|
|
71804
71954
|
|
|
71805
71955
|
/* style inject SSR */
|
|
@@ -71808,13 +71958,13 @@ var __vue_staticRenderFns__$e = [];
|
|
|
71808
71958
|
|
|
71809
71959
|
|
|
71810
71960
|
|
|
71811
|
-
const __vue_component__$
|
|
71812
|
-
{ render: __vue_render__$
|
|
71813
|
-
__vue_inject_styles__$
|
|
71814
|
-
__vue_script__$
|
|
71815
|
-
__vue_scope_id__$
|
|
71816
|
-
__vue_is_functional_template__$
|
|
71817
|
-
__vue_module_identifier__$
|
|
71961
|
+
const __vue_component__$i = /*#__PURE__*/normalizeComponent(
|
|
71962
|
+
{ render: __vue_render__$f, staticRenderFns: __vue_staticRenderFns__$f },
|
|
71963
|
+
__vue_inject_styles__$i,
|
|
71964
|
+
__vue_script__$h,
|
|
71965
|
+
__vue_scope_id__$i,
|
|
71966
|
+
__vue_is_functional_template__$i,
|
|
71967
|
+
__vue_module_identifier__$i,
|
|
71818
71968
|
false,
|
|
71819
71969
|
undefined,
|
|
71820
71970
|
undefined,
|
|
@@ -71822,9 +71972,9 @@ var __vue_staticRenderFns__$e = [];
|
|
|
71822
71972
|
);
|
|
71823
71973
|
|
|
71824
71974
|
var mark = {
|
|
71825
|
-
Color: __vue_component__$
|
|
71826
|
-
Item: __vue_component__$
|
|
71827
|
-
Link: __vue_component__$
|
|
71975
|
+
Color: __vue_component__$g,
|
|
71976
|
+
Item: __vue_component__$h,
|
|
71977
|
+
Link: __vue_component__$i
|
|
71828
71978
|
};
|
|
71829
71979
|
|
|
71830
71980
|
function findDiffStart(a, b, pos) {
|
|
@@ -78644,7 +78794,7 @@ const nodeTypes = getToolbar().filter(({
|
|
|
78644
78794
|
* Defines common props, methods between different toolbar item types
|
|
78645
78795
|
*/
|
|
78646
78796
|
|
|
78647
|
-
var script$
|
|
78797
|
+
var script$i = {
|
|
78648
78798
|
props: {
|
|
78649
78799
|
format: {
|
|
78650
78800
|
type: Object,
|
|
@@ -78759,18 +78909,18 @@ var script$h = {
|
|
|
78759
78909
|
};
|
|
78760
78910
|
|
|
78761
78911
|
/* script */
|
|
78762
|
-
const __vue_script__$
|
|
78912
|
+
const __vue_script__$i = script$i;
|
|
78763
78913
|
|
|
78764
78914
|
/* template */
|
|
78765
78915
|
|
|
78766
78916
|
/* style */
|
|
78767
|
-
const __vue_inject_styles__$
|
|
78917
|
+
const __vue_inject_styles__$j = undefined;
|
|
78768
78918
|
/* scoped */
|
|
78769
|
-
const __vue_scope_id__$
|
|
78919
|
+
const __vue_scope_id__$j = undefined;
|
|
78770
78920
|
/* module identifier */
|
|
78771
|
-
const __vue_module_identifier__$
|
|
78921
|
+
const __vue_module_identifier__$j = undefined;
|
|
78772
78922
|
/* functional template */
|
|
78773
|
-
const __vue_is_functional_template__$
|
|
78923
|
+
const __vue_is_functional_template__$j = undefined;
|
|
78774
78924
|
/* style inject */
|
|
78775
78925
|
|
|
78776
78926
|
/* style inject SSR */
|
|
@@ -78779,13 +78929,13 @@ const __vue_script__$h = script$h;
|
|
|
78779
78929
|
|
|
78780
78930
|
|
|
78781
78931
|
|
|
78782
|
-
const __vue_component__$
|
|
78932
|
+
const __vue_component__$j = /*#__PURE__*/normalizeComponent(
|
|
78783
78933
|
{},
|
|
78784
|
-
__vue_inject_styles__$
|
|
78785
|
-
__vue_script__$
|
|
78786
|
-
__vue_scope_id__$
|
|
78787
|
-
__vue_is_functional_template__$
|
|
78788
|
-
__vue_module_identifier__$
|
|
78934
|
+
__vue_inject_styles__$j,
|
|
78935
|
+
__vue_script__$i,
|
|
78936
|
+
__vue_scope_id__$j,
|
|
78937
|
+
__vue_is_functional_template__$j,
|
|
78938
|
+
__vue_module_identifier__$j,
|
|
78789
78939
|
false,
|
|
78790
78940
|
undefined,
|
|
78791
78941
|
undefined,
|
|
@@ -78797,26 +78947,26 @@ const __vue_script__$h = script$h;
|
|
|
78797
78947
|
* Component is used to display node types; paragraph, headding, ...
|
|
78798
78948
|
*/
|
|
78799
78949
|
|
|
78800
|
-
var script$
|
|
78950
|
+
var script$j = {
|
|
78801
78951
|
name: 't-node-item',
|
|
78802
|
-
extends: __vue_component__$
|
|
78952
|
+
extends: __vue_component__$j
|
|
78803
78953
|
};
|
|
78804
78954
|
|
|
78805
78955
|
/* script */
|
|
78806
|
-
const __vue_script__$
|
|
78956
|
+
const __vue_script__$j = script$j;
|
|
78807
78957
|
|
|
78808
78958
|
/* template */
|
|
78809
|
-
var __vue_render__$
|
|
78810
|
-
var __vue_staticRenderFns__$
|
|
78959
|
+
var __vue_render__$g = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-button',{staticClass:"text-dark font-weight-bold text-decoration-none",attrs:{"variant":"link"},on:{"click":function($event){return _vm.onClick(_vm.format.type, _vm.format.attrs)}}},[_c('span',{class:_vm.activeClasses(_vm.format.attrs)},[(_vm.format.icon)?_c('font-awesome-icon',{attrs:{"icon":_vm.format.icon}}):_c('span',[_vm._v("\n "+_vm._s(_vm.format.label)+"\n ")])],1)])};
|
|
78960
|
+
var __vue_staticRenderFns__$g = [];
|
|
78811
78961
|
|
|
78812
78962
|
/* style */
|
|
78813
|
-
const __vue_inject_styles__$
|
|
78963
|
+
const __vue_inject_styles__$k = undefined;
|
|
78814
78964
|
/* scoped */
|
|
78815
|
-
const __vue_scope_id__$
|
|
78965
|
+
const __vue_scope_id__$k = undefined;
|
|
78816
78966
|
/* module identifier */
|
|
78817
|
-
const __vue_module_identifier__$
|
|
78967
|
+
const __vue_module_identifier__$k = undefined;
|
|
78818
78968
|
/* functional template */
|
|
78819
|
-
const __vue_is_functional_template__$
|
|
78969
|
+
const __vue_is_functional_template__$k = false;
|
|
78820
78970
|
/* style inject */
|
|
78821
78971
|
|
|
78822
78972
|
/* style inject SSR */
|
|
@@ -78825,13 +78975,13 @@ var __vue_staticRenderFns__$f = [];
|
|
|
78825
78975
|
|
|
78826
78976
|
|
|
78827
78977
|
|
|
78828
|
-
const __vue_component__$
|
|
78829
|
-
{ render: __vue_render__$
|
|
78830
|
-
__vue_inject_styles__$
|
|
78831
|
-
__vue_script__$
|
|
78832
|
-
__vue_scope_id__$
|
|
78833
|
-
__vue_is_functional_template__$
|
|
78834
|
-
__vue_module_identifier__$
|
|
78978
|
+
const __vue_component__$k = /*#__PURE__*/normalizeComponent(
|
|
78979
|
+
{ render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },
|
|
78980
|
+
__vue_inject_styles__$k,
|
|
78981
|
+
__vue_script__$j,
|
|
78982
|
+
__vue_scope_id__$k,
|
|
78983
|
+
__vue_is_functional_template__$k,
|
|
78984
|
+
__vue_module_identifier__$k,
|
|
78835
78985
|
false,
|
|
78836
78986
|
undefined,
|
|
78837
78987
|
undefined,
|
|
@@ -78839,7 +78989,7 @@ var __vue_staticRenderFns__$f = [];
|
|
|
78839
78989
|
);
|
|
78840
78990
|
|
|
78841
78991
|
var node = {
|
|
78842
|
-
Item: __vue_component__$
|
|
78992
|
+
Item: __vue_component__$k
|
|
78843
78993
|
};
|
|
78844
78994
|
|
|
78845
78995
|
//
|
|
@@ -78847,9 +78997,9 @@ var node = {
|
|
|
78847
78997
|
* Component is used to display node alignment formatting
|
|
78848
78998
|
*/
|
|
78849
78999
|
|
|
78850
|
-
var script$
|
|
79000
|
+
var script$k = {
|
|
78851
79001
|
name: 't-nattr-alignment',
|
|
78852
|
-
extends: __vue_component__$
|
|
79002
|
+
extends: __vue_component__$j,
|
|
78853
79003
|
props: {
|
|
78854
79004
|
isActive: {
|
|
78855
79005
|
type: Object,
|
|
@@ -78913,20 +79063,20 @@ var script$j = {
|
|
|
78913
79063
|
};
|
|
78914
79064
|
|
|
78915
79065
|
/* script */
|
|
78916
|
-
const __vue_script__$
|
|
79066
|
+
const __vue_script__$k = script$k;
|
|
78917
79067
|
|
|
78918
79068
|
/* template */
|
|
78919
|
-
var __vue_render__$
|
|
78920
|
-
var __vue_staticRenderFns__$
|
|
79069
|
+
var __vue_render__$h = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-dropdown',{attrs:{"menu-class":"text-center","variant":"link"}},[_c('template',{slot:"button-content"},[_c('span',{staticClass:"text-dark font-weight-bold"},[_c('span',{class:_vm.rootActiveClasses()},[(_vm.format.icon)?_c('font-awesome-icon',{attrs:{"icon":_vm.format.icon}}):_c('span',[_vm._v("\n "+_vm._s(_vm.format.label)+"\n ")])],1)])]),_vm._v(" "),_vm._l((_vm.format.variants),function(v){return _c('b-dropdown-item',{key:v.variant,on:{"click":function($event){return _vm.dispatchTransaction(v)}}},[_c('b-button',{staticClass:"text-dark font-weight-bold",attrs:{"variant":"link"}},[_c('span',{class:_vm.activeClasses(v.attrs)},[(_vm.format.icon)?_c('font-awesome-icon',{attrs:{"icon":v.icon}}):_c('span',[_vm._v("\n "+_vm._s(v.label)+"\n ")])],1)])],1)})],2)};
|
|
79070
|
+
var __vue_staticRenderFns__$h = [];
|
|
78921
79071
|
|
|
78922
79072
|
/* style */
|
|
78923
|
-
const __vue_inject_styles__$
|
|
79073
|
+
const __vue_inject_styles__$l = undefined;
|
|
78924
79074
|
/* scoped */
|
|
78925
|
-
const __vue_scope_id__$
|
|
79075
|
+
const __vue_scope_id__$l = undefined;
|
|
78926
79076
|
/* module identifier */
|
|
78927
|
-
const __vue_module_identifier__$
|
|
79077
|
+
const __vue_module_identifier__$l = undefined;
|
|
78928
79078
|
/* functional template */
|
|
78929
|
-
const __vue_is_functional_template__$
|
|
79079
|
+
const __vue_is_functional_template__$l = false;
|
|
78930
79080
|
/* style inject */
|
|
78931
79081
|
|
|
78932
79082
|
/* style inject SSR */
|
|
@@ -78935,13 +79085,13 @@ var __vue_staticRenderFns__$g = [];
|
|
|
78935
79085
|
|
|
78936
79086
|
|
|
78937
79087
|
|
|
78938
|
-
const __vue_component__$
|
|
78939
|
-
{ render: __vue_render__$
|
|
78940
|
-
__vue_inject_styles__$
|
|
78941
|
-
__vue_script__$
|
|
78942
|
-
__vue_scope_id__$
|
|
78943
|
-
__vue_is_functional_template__$
|
|
78944
|
-
__vue_module_identifier__$
|
|
79088
|
+
const __vue_component__$l = /*#__PURE__*/normalizeComponent(
|
|
79089
|
+
{ render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },
|
|
79090
|
+
__vue_inject_styles__$l,
|
|
79091
|
+
__vue_script__$k,
|
|
79092
|
+
__vue_scope_id__$l,
|
|
79093
|
+
__vue_is_functional_template__$l,
|
|
79094
|
+
__vue_module_identifier__$l,
|
|
78945
79095
|
false,
|
|
78946
79096
|
undefined,
|
|
78947
79097
|
undefined,
|
|
@@ -78949,7 +79099,7 @@ var __vue_staticRenderFns__$g = [];
|
|
|
78949
79099
|
);
|
|
78950
79100
|
|
|
78951
79101
|
var nodeAttr = {
|
|
78952
|
-
Alignment: __vue_component__$
|
|
79102
|
+
Alignment: __vue_component__$l
|
|
78953
79103
|
};
|
|
78954
79104
|
|
|
78955
79105
|
var cc = {
|
|
@@ -78959,7 +79109,7 @@ var cc = {
|
|
|
78959
79109
|
};
|
|
78960
79110
|
|
|
78961
79111
|
//
|
|
78962
|
-
var script$
|
|
79112
|
+
var script$l = {
|
|
78963
79113
|
inheritAttrs: true,
|
|
78964
79114
|
props: {
|
|
78965
79115
|
editor: {
|
|
@@ -79042,20 +79192,20 @@ var script$k = {
|
|
|
79042
79192
|
};
|
|
79043
79193
|
|
|
79044
79194
|
/* script */
|
|
79045
|
-
const __vue_script__$
|
|
79195
|
+
const __vue_script__$l = script$l;
|
|
79046
79196
|
|
|
79047
79197
|
/* template */
|
|
79048
|
-
var __vue_render__$
|
|
79049
|
-
var __vue_staticRenderFns__$
|
|
79198
|
+
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-wrap"},[_vm._l((_vm.formats),function(f,i){return _c(_vm.getItem(f),_vm._b({key:("" + (f.name) + i + "}"),tag:"component",attrs:{"format":f,"labels":_vm.labels,"current-value":_vm.currentValue},on:{"click":function($event){(_vm.commands[$event.type])($event.attrs);}}},'component',_vm.$props,false))}),_vm._v(" "),_c('b-button',{staticClass:"text-dark font-weight-bold",attrs:{"variant":"link"},on:{"click":_vm.removeMarks}},[_c('font-awesome-icon',{attrs:{"icon":"remove-format"}})],1)],2)};
|
|
79199
|
+
var __vue_staticRenderFns__$i = [];
|
|
79050
79200
|
|
|
79051
79201
|
/* style */
|
|
79052
|
-
const __vue_inject_styles__$
|
|
79202
|
+
const __vue_inject_styles__$m = undefined;
|
|
79053
79203
|
/* scoped */
|
|
79054
|
-
const __vue_scope_id__$
|
|
79204
|
+
const __vue_scope_id__$m = undefined;
|
|
79055
79205
|
/* module identifier */
|
|
79056
|
-
const __vue_module_identifier__$
|
|
79206
|
+
const __vue_module_identifier__$m = undefined;
|
|
79057
79207
|
/* functional template */
|
|
79058
|
-
const __vue_is_functional_template__$
|
|
79208
|
+
const __vue_is_functional_template__$m = false;
|
|
79059
79209
|
/* style inject */
|
|
79060
79210
|
|
|
79061
79211
|
/* style inject SSR */
|
|
@@ -79064,13 +79214,13 @@ var __vue_staticRenderFns__$h = [];
|
|
|
79064
79214
|
|
|
79065
79215
|
|
|
79066
79216
|
|
|
79067
|
-
const __vue_component__$
|
|
79068
|
-
{ render: __vue_render__$
|
|
79069
|
-
__vue_inject_styles__$
|
|
79070
|
-
__vue_script__$
|
|
79071
|
-
__vue_scope_id__$
|
|
79072
|
-
__vue_is_functional_template__$
|
|
79073
|
-
__vue_module_identifier__$
|
|
79217
|
+
const __vue_component__$m = /*#__PURE__*/normalizeComponent(
|
|
79218
|
+
{ render: __vue_render__$i, staticRenderFns: __vue_staticRenderFns__$i },
|
|
79219
|
+
__vue_inject_styles__$m,
|
|
79220
|
+
__vue_script__$l,
|
|
79221
|
+
__vue_scope_id__$m,
|
|
79222
|
+
__vue_is_functional_template__$m,
|
|
79223
|
+
__vue_module_identifier__$m,
|
|
79074
79224
|
false,
|
|
79075
79225
|
undefined,
|
|
79076
79226
|
undefined,
|
|
@@ -79078,11 +79228,11 @@ var __vue_staticRenderFns__$h = [];
|
|
|
79078
79228
|
);
|
|
79079
79229
|
|
|
79080
79230
|
//
|
|
79081
|
-
var script$
|
|
79231
|
+
var script$m = {
|
|
79082
79232
|
name: 'CRichTextInput',
|
|
79083
79233
|
components: {
|
|
79084
79234
|
EditorContent: tiptap.EditorContent,
|
|
79085
|
-
RToolbar: __vue_component__$
|
|
79235
|
+
RToolbar: __vue_component__$m,
|
|
79086
79236
|
EditorMenuBar: tiptap.EditorMenuBar
|
|
79087
79237
|
},
|
|
79088
79238
|
props: {
|
|
@@ -79168,25 +79318,25 @@ var script$l = {
|
|
|
79168
79318
|
};
|
|
79169
79319
|
|
|
79170
79320
|
/* script */
|
|
79171
|
-
const __vue_script__$
|
|
79321
|
+
const __vue_script__$m = script$m;
|
|
79172
79322
|
|
|
79173
79323
|
/* template */
|
|
79174
|
-
var __vue_render__$
|
|
79324
|
+
var __vue_render__$j = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:"editor rt-content",attrs:{"no-body":""}},[(_vm.editor)?[_c('b-card-header',{attrs:{"header-class":"p-0 rounded-sm"}},[_c('editor-menu-bar',{attrs:{"editor":_vm.editor},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
79175
79325
|
var commands = ref.commands;
|
|
79176
79326
|
var isActive = ref.isActive;
|
|
79177
79327
|
var getMarkAttrs = ref.getMarkAttrs;
|
|
79178
79328
|
var getNodeAttrs = ref.getNodeAttrs;
|
|
79179
79329
|
return [_c('r-toolbar',{attrs:{"editor":_vm.editor,"formats":_vm.toolbar,"commands":commands,"is-active":isActive,"get-mark-attrs":getMarkAttrs,"get-node-attrs":getNodeAttrs,"labels":_vm.labels,"current-value":_vm.currentValue}})]}}],null,false,2342935495)})],1),_vm._v(" "),_c('b-card-body',[_c('editor-content',{staticClass:"editor__content",attrs:{"editor":_vm.editor}})],1)]:_vm._e()],2)};
|
|
79180
|
-
var __vue_staticRenderFns__$
|
|
79330
|
+
var __vue_staticRenderFns__$j = [];
|
|
79181
79331
|
|
|
79182
79332
|
/* style */
|
|
79183
|
-
const __vue_inject_styles__$
|
|
79333
|
+
const __vue_inject_styles__$n = undefined;
|
|
79184
79334
|
/* scoped */
|
|
79185
|
-
const __vue_scope_id__$
|
|
79335
|
+
const __vue_scope_id__$n = undefined;
|
|
79186
79336
|
/* module identifier */
|
|
79187
|
-
const __vue_module_identifier__$
|
|
79337
|
+
const __vue_module_identifier__$n = undefined;
|
|
79188
79338
|
/* functional template */
|
|
79189
|
-
const __vue_is_functional_template__$
|
|
79339
|
+
const __vue_is_functional_template__$n = false;
|
|
79190
79340
|
/* style inject */
|
|
79191
79341
|
|
|
79192
79342
|
/* style inject SSR */
|
|
@@ -79195,13 +79345,13 @@ var __vue_staticRenderFns__$i = [];
|
|
|
79195
79345
|
|
|
79196
79346
|
|
|
79197
79347
|
|
|
79198
|
-
const __vue_component__$
|
|
79199
|
-
{ render: __vue_render__$
|
|
79200
|
-
__vue_inject_styles__$
|
|
79201
|
-
__vue_script__$
|
|
79202
|
-
__vue_scope_id__$
|
|
79203
|
-
__vue_is_functional_template__$
|
|
79204
|
-
__vue_module_identifier__$
|
|
79348
|
+
const __vue_component__$n = /*#__PURE__*/normalizeComponent(
|
|
79349
|
+
{ render: __vue_render__$j, staticRenderFns: __vue_staticRenderFns__$j },
|
|
79350
|
+
__vue_inject_styles__$n,
|
|
79351
|
+
__vue_script__$m,
|
|
79352
|
+
__vue_scope_id__$n,
|
|
79353
|
+
__vue_is_functional_template__$n,
|
|
79354
|
+
__vue_module_identifier__$n,
|
|
79205
79355
|
false,
|
|
79206
79356
|
undefined,
|
|
79207
79357
|
undefined,
|
|
@@ -79226,7 +79376,7 @@ function split(input) {
|
|
|
79226
79376
|
}
|
|
79227
79377
|
|
|
79228
79378
|
fontawesomeSvgCore.library.add(freeSolidSvgIcons.faLock);
|
|
79229
|
-
var script$
|
|
79379
|
+
var script$n = {
|
|
79230
79380
|
props: {
|
|
79231
79381
|
link: {
|
|
79232
79382
|
type: Boolean
|
|
@@ -79264,6 +79414,10 @@ var script$m = {
|
|
|
79264
79414
|
allSpecific: {
|
|
79265
79415
|
type: Boolean,
|
|
79266
79416
|
default: false
|
|
79417
|
+
},
|
|
79418
|
+
tooltip: {
|
|
79419
|
+
type: String,
|
|
79420
|
+
default: ''
|
|
79267
79421
|
}
|
|
79268
79422
|
},
|
|
79269
79423
|
methods: {
|
|
@@ -79280,44 +79434,44 @@ var script$m = {
|
|
|
79280
79434
|
};
|
|
79281
79435
|
|
|
79282
79436
|
/* script */
|
|
79283
|
-
const __vue_script__$
|
|
79437
|
+
const __vue_script__$n = script$n;
|
|
79284
79438
|
|
|
79285
79439
|
/* template */
|
|
79286
|
-
var __vue_render__$
|
|
79287
|
-
var __vue_staticRenderFns__$
|
|
79440
|
+
var __vue_render__$k = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.link)?_c('a',{staticClass:"pointer",attrs:{"data-test-id":"link-permissions","title":_vm.tooltip},on:{"click":_vm.onClick}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'lock']}})],1):_c('b-button',{attrs:{"data-test-id":"button-permissions","title":_vm.tooltip,"variant":_vm.buttonVariant},on:{"click":_vm.onClick}},[_vm._t("default",function(){return [(_vm.showButtonIcon)?_c('font-awesome-icon',{attrs:{"icon":['fas', 'lock']}}):_vm._e(),_vm._v(" "),(_vm.buttonLabel)?_c('span',[_vm._v("\n "+_vm._s(_vm.buttonLabel)+"\n ")]):_vm._e()]})],2)};
|
|
79441
|
+
var __vue_staticRenderFns__$k = [];
|
|
79288
79442
|
|
|
79289
79443
|
/* style */
|
|
79290
|
-
const __vue_inject_styles__$
|
|
79444
|
+
const __vue_inject_styles__$o = function (inject) {
|
|
79291
79445
|
if (!inject) return
|
|
79292
|
-
inject("data-v-
|
|
79446
|
+
inject("data-v-66ae6703_0", { source: ".pointer[data-v-66ae6703]{cursor:pointer}", map: undefined, media: undefined });
|
|
79293
79447
|
|
|
79294
79448
|
};
|
|
79295
79449
|
/* scoped */
|
|
79296
|
-
const __vue_scope_id__$
|
|
79450
|
+
const __vue_scope_id__$o = "data-v-66ae6703";
|
|
79297
79451
|
/* module identifier */
|
|
79298
|
-
const __vue_module_identifier__$
|
|
79452
|
+
const __vue_module_identifier__$o = undefined;
|
|
79299
79453
|
/* functional template */
|
|
79300
|
-
const __vue_is_functional_template__$
|
|
79454
|
+
const __vue_is_functional_template__$o = false;
|
|
79301
79455
|
/* style inject SSR */
|
|
79302
79456
|
|
|
79303
79457
|
/* style inject shadow dom */
|
|
79304
79458
|
|
|
79305
79459
|
|
|
79306
79460
|
|
|
79307
|
-
const __vue_component__$
|
|
79308
|
-
{ render: __vue_render__$
|
|
79309
|
-
__vue_inject_styles__$
|
|
79310
|
-
__vue_script__$
|
|
79311
|
-
__vue_scope_id__$
|
|
79312
|
-
__vue_is_functional_template__$
|
|
79313
|
-
__vue_module_identifier__$
|
|
79461
|
+
const __vue_component__$o = /*#__PURE__*/normalizeComponent(
|
|
79462
|
+
{ render: __vue_render__$k, staticRenderFns: __vue_staticRenderFns__$k },
|
|
79463
|
+
__vue_inject_styles__$o,
|
|
79464
|
+
__vue_script__$n,
|
|
79465
|
+
__vue_scope_id__$o,
|
|
79466
|
+
__vue_is_functional_template__$o,
|
|
79467
|
+
__vue_module_identifier__$o,
|
|
79314
79468
|
false,
|
|
79315
79469
|
createInjector,
|
|
79316
79470
|
undefined,
|
|
79317
79471
|
undefined
|
|
79318
79472
|
);
|
|
79319
79473
|
|
|
79320
|
-
var script$
|
|
79474
|
+
var script$o = {
|
|
79321
79475
|
props: {
|
|
79322
79476
|
enabled: {
|
|
79323
79477
|
type: Boolean,
|
|
@@ -79368,47 +79522,49 @@ var script$n = {
|
|
|
79368
79522
|
};
|
|
79369
79523
|
|
|
79370
79524
|
/* script */
|
|
79371
|
-
const __vue_script__$
|
|
79525
|
+
const __vue_script__$o = script$o;
|
|
79372
79526
|
|
|
79373
79527
|
/* template */
|
|
79374
|
-
var __vue_render__$
|
|
79375
|
-
var __vue_staticRenderFns__$
|
|
79528
|
+
var __vue_render__$l = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form-radio-group',{staticClass:"access rounded",attrs:{"data-test-id":"toggle-role-permissions","buttons":"","disabled":!_vm.enabled,"button-variant":_vm.variant,"options":_vm.options},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v;},expression:"selected"}})};
|
|
79529
|
+
var __vue_staticRenderFns__$l = [];
|
|
79376
79530
|
|
|
79377
79531
|
/* style */
|
|
79378
|
-
const __vue_inject_styles__$
|
|
79532
|
+
const __vue_inject_styles__$p = function (inject) {
|
|
79533
|
+
if (!inject) return
|
|
79534
|
+
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 });
|
|
79535
|
+
|
|
79536
|
+
};
|
|
79379
79537
|
/* scoped */
|
|
79380
|
-
const __vue_scope_id__$
|
|
79538
|
+
const __vue_scope_id__$p = undefined;
|
|
79381
79539
|
/* module identifier */
|
|
79382
|
-
const __vue_module_identifier__$
|
|
79540
|
+
const __vue_module_identifier__$p = undefined;
|
|
79383
79541
|
/* functional template */
|
|
79384
|
-
const __vue_is_functional_template__$
|
|
79385
|
-
/* style inject */
|
|
79386
|
-
|
|
79542
|
+
const __vue_is_functional_template__$p = false;
|
|
79387
79543
|
/* style inject SSR */
|
|
79388
79544
|
|
|
79389
79545
|
/* style inject shadow dom */
|
|
79390
79546
|
|
|
79391
79547
|
|
|
79392
79548
|
|
|
79393
|
-
const __vue_component__$
|
|
79394
|
-
{ render: __vue_render__$
|
|
79395
|
-
__vue_inject_styles__$
|
|
79396
|
-
__vue_script__$
|
|
79397
|
-
__vue_scope_id__$
|
|
79398
|
-
__vue_is_functional_template__$
|
|
79399
|
-
__vue_module_identifier__$
|
|
79549
|
+
const __vue_component__$p = /*#__PURE__*/normalizeComponent(
|
|
79550
|
+
{ render: __vue_render__$l, staticRenderFns: __vue_staticRenderFns__$l },
|
|
79551
|
+
__vue_inject_styles__$p,
|
|
79552
|
+
__vue_script__$o,
|
|
79553
|
+
__vue_scope_id__$p,
|
|
79554
|
+
__vue_is_functional_template__$p,
|
|
79555
|
+
__vue_module_identifier__$p,
|
|
79400
79556
|
false,
|
|
79401
|
-
|
|
79557
|
+
createInjector,
|
|
79402
79558
|
undefined,
|
|
79403
79559
|
undefined
|
|
79404
79560
|
);
|
|
79405
79561
|
|
|
79406
|
-
var script$
|
|
79562
|
+
var script$p = {
|
|
79407
79563
|
i18nOptions: {
|
|
79408
79564
|
namespaces: 'permissions'
|
|
79409
79565
|
},
|
|
79410
79566
|
components: {
|
|
79411
|
-
Access: __vue_component__$
|
|
79567
|
+
Access: __vue_component__$p
|
|
79412
79568
|
},
|
|
79413
79569
|
props: {
|
|
79414
79570
|
resource: {
|
|
@@ -79471,20 +79627,20 @@ var script$o = {
|
|
|
79471
79627
|
};
|
|
79472
79628
|
|
|
79473
79629
|
/* script */
|
|
79474
|
-
const __vue_script__$
|
|
79630
|
+
const __vue_script__$p = script$p;
|
|
79475
79631
|
|
|
79476
79632
|
/* template */
|
|
79477
|
-
var __vue_render__$
|
|
79478
|
-
var __vue_staticRenderFns__$
|
|
79633
|
+
var __vue_render__$m = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"data-test-id":_vm.title || (_vm.operation + " on " + _vm.resource)}},[_c('p',{staticClass:"mb-1",attrs:{"title":_vm.title || (_vm.operation + " on " + _vm.resource)}},[_vm._v("\n "+_vm._s(_vm.title || (_vm.operation + " on " + _vm.resource))+"\n ")]),_vm._v(" "),_c('access',{staticClass:"w-100",attrs:{"access":_vm.access,"current":_vm.current,"enabled":_vm.enabled},on:{"update":_vm.onUpdate}})],1)};
|
|
79634
|
+
var __vue_staticRenderFns__$m = [];
|
|
79479
79635
|
|
|
79480
79636
|
/* style */
|
|
79481
|
-
const __vue_inject_styles__$
|
|
79637
|
+
const __vue_inject_styles__$q = undefined;
|
|
79482
79638
|
/* scoped */
|
|
79483
|
-
const __vue_scope_id__$
|
|
79639
|
+
const __vue_scope_id__$q = undefined;
|
|
79484
79640
|
/* module identifier */
|
|
79485
|
-
const __vue_module_identifier__$
|
|
79641
|
+
const __vue_module_identifier__$q = undefined;
|
|
79486
79642
|
/* functional template */
|
|
79487
|
-
const __vue_is_functional_template__$
|
|
79643
|
+
const __vue_is_functional_template__$q = false;
|
|
79488
79644
|
/* style inject */
|
|
79489
79645
|
|
|
79490
79646
|
/* style inject SSR */
|
|
@@ -79493,22 +79649,22 @@ var __vue_staticRenderFns__$l = [];
|
|
|
79493
79649
|
|
|
79494
79650
|
|
|
79495
79651
|
|
|
79496
|
-
const __vue_component__$
|
|
79497
|
-
{ render: __vue_render__$
|
|
79498
|
-
__vue_inject_styles__$
|
|
79499
|
-
__vue_script__$
|
|
79500
|
-
__vue_scope_id__$
|
|
79501
|
-
__vue_is_functional_template__$
|
|
79502
|
-
__vue_module_identifier__$
|
|
79652
|
+
const __vue_component__$q = /*#__PURE__*/normalizeComponent(
|
|
79653
|
+
{ render: __vue_render__$m, staticRenderFns: __vue_staticRenderFns__$m },
|
|
79654
|
+
__vue_inject_styles__$q,
|
|
79655
|
+
__vue_script__$p,
|
|
79656
|
+
__vue_scope_id__$q,
|
|
79657
|
+
__vue_is_functional_template__$q,
|
|
79658
|
+
__vue_module_identifier__$q,
|
|
79503
79659
|
false,
|
|
79504
79660
|
undefined,
|
|
79505
79661
|
undefined,
|
|
79506
79662
|
undefined
|
|
79507
79663
|
);
|
|
79508
79664
|
|
|
79509
|
-
var script$
|
|
79665
|
+
var script$q = {
|
|
79510
79666
|
components: {
|
|
79511
|
-
Rule: __vue_component__$
|
|
79667
|
+
Rule: __vue_component__$q
|
|
79512
79668
|
},
|
|
79513
79669
|
props: {
|
|
79514
79670
|
rules: {
|
|
@@ -79535,20 +79691,20 @@ var script$p = {
|
|
|
79535
79691
|
};
|
|
79536
79692
|
|
|
79537
79693
|
/* script */
|
|
79538
|
-
const __vue_script__$
|
|
79694
|
+
const __vue_script__$q = script$q;
|
|
79539
79695
|
|
|
79540
79696
|
/* template */
|
|
79541
|
-
var __vue_render__$
|
|
79542
|
-
var __vue_staticRenderFns__$
|
|
79697
|
+
var __vue_render__$n = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"data-test-id":"role-permissions-list"}},_vm._l((_vm.rules),function(p,i){return _c('rule',_vm._b({key:p.resource + p.operation,class:{ 'mt-4': i > 0 },on:{"update":_vm.onUpdate}},'rule',p,false))}),1)};
|
|
79698
|
+
var __vue_staticRenderFns__$n = [];
|
|
79543
79699
|
|
|
79544
79700
|
/* style */
|
|
79545
|
-
const __vue_inject_styles__$
|
|
79701
|
+
const __vue_inject_styles__$r = undefined;
|
|
79546
79702
|
/* scoped */
|
|
79547
|
-
const __vue_scope_id__$
|
|
79703
|
+
const __vue_scope_id__$r = undefined;
|
|
79548
79704
|
/* module identifier */
|
|
79549
|
-
const __vue_module_identifier__$
|
|
79705
|
+
const __vue_module_identifier__$r = undefined;
|
|
79550
79706
|
/* functional template */
|
|
79551
|
-
const __vue_is_functional_template__$
|
|
79707
|
+
const __vue_is_functional_template__$r = false;
|
|
79552
79708
|
/* style inject */
|
|
79553
79709
|
|
|
79554
79710
|
/* style inject SSR */
|
|
@@ -79557,65 +79713,44 @@ var __vue_staticRenderFns__$m = [];
|
|
|
79557
79713
|
|
|
79558
79714
|
|
|
79559
79715
|
|
|
79560
|
-
const __vue_component__$
|
|
79561
|
-
{ render: __vue_render__$
|
|
79562
|
-
__vue_inject_styles__$
|
|
79563
|
-
__vue_script__$
|
|
79564
|
-
__vue_scope_id__$
|
|
79565
|
-
__vue_is_functional_template__$
|
|
79566
|
-
__vue_module_identifier__$
|
|
79716
|
+
const __vue_component__$r = /*#__PURE__*/normalizeComponent(
|
|
79717
|
+
{ render: __vue_render__$n, staticRenderFns: __vue_staticRenderFns__$n },
|
|
79718
|
+
__vue_inject_styles__$r,
|
|
79719
|
+
__vue_script__$q,
|
|
79720
|
+
__vue_scope_id__$r,
|
|
79721
|
+
__vue_is_functional_template__$r,
|
|
79722
|
+
__vue_module_identifier__$r,
|
|
79567
79723
|
false,
|
|
79568
79724
|
undefined,
|
|
79569
79725
|
undefined,
|
|
79570
79726
|
undefined
|
|
79571
79727
|
);
|
|
79572
79728
|
|
|
79573
|
-
var script$
|
|
79729
|
+
var script$r = {
|
|
79574
79730
|
i18nOptions: {
|
|
79575
|
-
/**
|
|
79576
|
-
* Using both, implicit (here) and explicit (at $t()) namespace setting.
|
|
79577
|
-
* If we only use implicit the behaviour is flaky.
|
|
79578
|
-
*/
|
|
79579
79731
|
namespaces: 'permissions'
|
|
79580
79732
|
},
|
|
79581
79733
|
components: {
|
|
79582
|
-
Rules: __vue_component__$
|
|
79734
|
+
Rules: __vue_component__$r,
|
|
79583
79735
|
VueSelect: vueSelect.VueSelect
|
|
79584
79736
|
},
|
|
79585
79737
|
props: {
|
|
79586
|
-
|
|
79587
|
-
type: String,
|
|
79588
|
-
required: true
|
|
79589
|
-
},
|
|
79590
|
-
target: {
|
|
79591
|
-
type: String,
|
|
79738
|
+
labels: {
|
|
79592
79739
|
required: false,
|
|
79593
|
-
|
|
79594
|
-
|
|
79595
|
-
allSpecific: {
|
|
79596
|
-
type: Boolean,
|
|
79597
|
-
default: false
|
|
79598
|
-
},
|
|
79599
|
-
backendComponentName: {
|
|
79600
|
-
type: String,
|
|
79601
|
-
|
|
79602
|
-
default() {
|
|
79603
|
-
// Assuming backend service will
|
|
79604
|
-
// be equal to (first part of) resource
|
|
79605
|
-
if (!this.resource.startsWith('corteza::')) {
|
|
79606
|
-
throw Error('unrecognized resource type schema');
|
|
79607
|
-
} // <schema>::<backend-component-name>:...
|
|
79608
|
-
|
|
79609
|
-
|
|
79610
|
-
return this.resource.split(':')[2];
|
|
79611
|
-
}
|
|
79612
|
-
|
|
79740
|
+
type: Object,
|
|
79741
|
+
default: () => ({})
|
|
79613
79742
|
}
|
|
79614
79743
|
},
|
|
79615
79744
|
|
|
79616
79745
|
data() {
|
|
79617
79746
|
return {
|
|
79618
79747
|
processing: false,
|
|
79748
|
+
backendComponentName: undefined,
|
|
79749
|
+
resource: undefined,
|
|
79750
|
+
title: undefined,
|
|
79751
|
+
target: undefined,
|
|
79752
|
+
allSpecific: false,
|
|
79753
|
+
userOptions: [],
|
|
79619
79754
|
// List of available permissions (for a specific resource)
|
|
79620
79755
|
permissions: [],
|
|
79621
79756
|
// List of rules for the current role
|
|
@@ -79623,35 +79758,148 @@ var script$q = {
|
|
|
79623
79758
|
// List of all available roles
|
|
79624
79759
|
roles: [],
|
|
79625
79760
|
// Current role object
|
|
79626
|
-
currentRole: undefined
|
|
79761
|
+
currentRole: undefined,
|
|
79762
|
+
evaluate: [],
|
|
79763
|
+
add: {
|
|
79764
|
+
roleID: [],
|
|
79765
|
+
userID: undefined
|
|
79766
|
+
}
|
|
79627
79767
|
};
|
|
79628
79768
|
},
|
|
79629
79769
|
|
|
79630
79770
|
computed: {
|
|
79771
|
+
api() {
|
|
79772
|
+
const s = this.backendComponentName;
|
|
79773
|
+
return s ? this['$' + s.charAt(0).toUpperCase() + s.slice(1) + 'API'] : undefined;
|
|
79774
|
+
},
|
|
79775
|
+
|
|
79776
|
+
showModal() {
|
|
79777
|
+
return !!(this.resource && this.api);
|
|
79778
|
+
},
|
|
79779
|
+
|
|
79631
79780
|
dirty() {
|
|
79632
79781
|
return this.collectChangedRules().length > 0;
|
|
79633
79782
|
},
|
|
79634
79783
|
|
|
79635
|
-
|
|
79784
|
+
submitDisabled() {
|
|
79636
79785
|
return !this.dirty;
|
|
79637
79786
|
},
|
|
79638
79787
|
|
|
79639
|
-
|
|
79640
|
-
const
|
|
79641
|
-
|
|
79788
|
+
addEnabled() {
|
|
79789
|
+
const {
|
|
79790
|
+
roleID = [],
|
|
79791
|
+
userID
|
|
79792
|
+
} = this.add;
|
|
79793
|
+
return roleID && roleID.length || userID;
|
|
79794
|
+
},
|
|
79795
|
+
|
|
79796
|
+
translatedTitle() {
|
|
79797
|
+
if (this.resource) {
|
|
79798
|
+
const {
|
|
79799
|
+
i18nPrefix
|
|
79800
|
+
} = split(this.resource);
|
|
79801
|
+
let target;
|
|
79802
|
+
|
|
79803
|
+
if (this.allSpecific) {
|
|
79804
|
+
target = this.$t(`permissions:${i18nPrefix}.all-specific`, {
|
|
79805
|
+
target: this.title,
|
|
79806
|
+
interpolation: {
|
|
79807
|
+
escapeValue: false
|
|
79808
|
+
}
|
|
79809
|
+
});
|
|
79810
|
+
} else if (this.title) {
|
|
79811
|
+
target = this.$t(`permissions:${i18nPrefix}.specific`, {
|
|
79812
|
+
target: this.title,
|
|
79813
|
+
interpolation: {
|
|
79814
|
+
escapeValue: false
|
|
79815
|
+
}
|
|
79816
|
+
});
|
|
79817
|
+
} else {
|
|
79818
|
+
target = this.$t(`permissions:${i18nPrefix}.all`);
|
|
79819
|
+
}
|
|
79820
|
+
|
|
79821
|
+
return this.$t('permissions:ui.set-for', {
|
|
79822
|
+
target: target,
|
|
79823
|
+
interpolation: {
|
|
79824
|
+
escapeValue: false
|
|
79825
|
+
}
|
|
79826
|
+
});
|
|
79827
|
+
}
|
|
79828
|
+
|
|
79829
|
+
return undefined;
|
|
79642
79830
|
}
|
|
79643
79831
|
|
|
79644
79832
|
},
|
|
79645
79833
|
|
|
79646
|
-
|
|
79647
|
-
this.
|
|
79648
|
-
this
|
|
79834
|
+
mounted() {
|
|
79835
|
+
this.searchUsers('', () => {});
|
|
79836
|
+
this.$root.$on(modalOpenEventName, ({
|
|
79837
|
+
resource,
|
|
79838
|
+
title,
|
|
79839
|
+
target,
|
|
79840
|
+
allSpecific
|
|
79841
|
+
}) => {
|
|
79842
|
+
this.resource = resource;
|
|
79843
|
+
this.title = title;
|
|
79844
|
+
this.target = target;
|
|
79845
|
+
this.allSpecific = allSpecific; // <schema>::<backend-component-name>:...
|
|
79846
|
+
|
|
79847
|
+
this.backendComponentName = resource.split(':')[2];
|
|
79848
|
+
this.fetchPermissions().then(() => {
|
|
79849
|
+
if (!this.roles.length) {
|
|
79850
|
+
return this.fetchRoles();
|
|
79851
|
+
} else if (this.currentRole) {
|
|
79852
|
+
const {
|
|
79853
|
+
roleID
|
|
79854
|
+
} = this.currentRole;
|
|
79855
|
+
this.processing = true;
|
|
79856
|
+
return this.fetchRules(roleID).then(() => {
|
|
79857
|
+
return Promise.all(this.evaluate.map(e => {
|
|
79858
|
+
const {
|
|
79859
|
+
userID
|
|
79860
|
+
} = e.userID || {};
|
|
79861
|
+
let {
|
|
79862
|
+
roleID = []
|
|
79863
|
+
} = e;
|
|
79864
|
+
roleID = roleID.map(({
|
|
79865
|
+
roleID
|
|
79866
|
+
}) => roleID);
|
|
79867
|
+
return this.evaluatePermissions({
|
|
79868
|
+
roleID,
|
|
79869
|
+
userID
|
|
79870
|
+
}).then(rules => {
|
|
79871
|
+
return { ...e,
|
|
79872
|
+
rules
|
|
79873
|
+
};
|
|
79874
|
+
});
|
|
79875
|
+
})).then(evaluate => {
|
|
79876
|
+
this.evaluate = evaluate;
|
|
79877
|
+
});
|
|
79878
|
+
});
|
|
79879
|
+
}
|
|
79880
|
+
});
|
|
79881
|
+
});
|
|
79882
|
+
},
|
|
79883
|
+
|
|
79884
|
+
destroyed() {
|
|
79885
|
+
this.$root.$off(modalOpenEventName);
|
|
79649
79886
|
},
|
|
79650
79887
|
|
|
79651
79888
|
methods: {
|
|
79652
|
-
|
|
79653
|
-
this.
|
|
79654
|
-
|
|
79889
|
+
onHide() {
|
|
79890
|
+
this.clear();
|
|
79891
|
+
},
|
|
79892
|
+
|
|
79893
|
+
clear() {
|
|
79894
|
+
this.resource = undefined;
|
|
79895
|
+
this.title = undefined;
|
|
79896
|
+
this.target = undefined;
|
|
79897
|
+
},
|
|
79898
|
+
|
|
79899
|
+
onRoleChange({
|
|
79900
|
+
roleID
|
|
79901
|
+
}) {
|
|
79902
|
+
this.fetchRules(roleID);
|
|
79655
79903
|
},
|
|
79656
79904
|
|
|
79657
79905
|
onSubmit() {
|
|
@@ -79665,17 +79913,19 @@ var script$q = {
|
|
|
79665
79913
|
rules
|
|
79666
79914
|
}).then(() => {
|
|
79667
79915
|
this.fetchRules(roleID);
|
|
79916
|
+
}).finally(() => {
|
|
79668
79917
|
this.processing = false;
|
|
79669
79918
|
});
|
|
79670
79919
|
},
|
|
79671
79920
|
|
|
79672
79921
|
async fetchPermissions() {
|
|
79673
|
-
// clean loaded rules
|
|
79922
|
+
this.processing = true; // clean loaded rules
|
|
79923
|
+
|
|
79674
79924
|
this.rules = [];
|
|
79675
79925
|
this.permissions = [];
|
|
79676
|
-
this.processing = true;
|
|
79677
79926
|
return this.api.permissionsList().then(pp => {
|
|
79678
79927
|
this.permissions = this.filterPermissions(pp);
|
|
79928
|
+
}).finally(() => {
|
|
79679
79929
|
this.processing = false;
|
|
79680
79930
|
});
|
|
79681
79931
|
},
|
|
@@ -79683,9 +79933,11 @@ var script$q = {
|
|
|
79683
79933
|
async fetchRules(roleID) {
|
|
79684
79934
|
this.processing = true;
|
|
79685
79935
|
return this.api.permissionsRead({
|
|
79686
|
-
roleID
|
|
79936
|
+
roleID,
|
|
79937
|
+
resource: this.resource
|
|
79687
79938
|
}).then(rules => {
|
|
79688
79939
|
this.rules = this.normalizeRules(rules);
|
|
79940
|
+
}).finally(() => {
|
|
79689
79941
|
this.processing = false;
|
|
79690
79942
|
});
|
|
79691
79943
|
},
|
|
@@ -79701,13 +79953,99 @@ var script$q = {
|
|
|
79701
79953
|
}) => !isBypass).sort((a, b) => a.roleID.localeCompare(b.roleID));
|
|
79702
79954
|
|
|
79703
79955
|
if (this.roles.length > 0) {
|
|
79704
|
-
this.
|
|
79956
|
+
this.currentRole = this.roles[0];
|
|
79957
|
+
this.onRoleChange(this.currentRole);
|
|
79705
79958
|
}
|
|
79959
|
+
}).finally(() => {
|
|
79960
|
+
this.processing = false;
|
|
79961
|
+
});
|
|
79962
|
+
},
|
|
79706
79963
|
|
|
79964
|
+
async evaluatePermissions({
|
|
79965
|
+
resource = this.resource,
|
|
79966
|
+
roleID,
|
|
79967
|
+
userID
|
|
79968
|
+
}) {
|
|
79969
|
+
this.processing = true;
|
|
79970
|
+
return this.api.permissionsTrace({
|
|
79971
|
+
resource,
|
|
79972
|
+
roleID,
|
|
79973
|
+
userID
|
|
79974
|
+
}).then(this.normalizeRules).finally(() => {
|
|
79707
79975
|
this.processing = false;
|
|
79708
79976
|
});
|
|
79709
79977
|
},
|
|
79710
79978
|
|
|
79979
|
+
searchUsers(query = '', loading) {
|
|
79980
|
+
loading(true);
|
|
79981
|
+
this.$SystemAPI.userList({
|
|
79982
|
+
query,
|
|
79983
|
+
limit: 15
|
|
79984
|
+
}).then(({
|
|
79985
|
+
set
|
|
79986
|
+
}) => {
|
|
79987
|
+
this.userOptions = set.map(m => Object.freeze(m));
|
|
79988
|
+
}).finally(() => {
|
|
79989
|
+
loading(false);
|
|
79990
|
+
});
|
|
79991
|
+
},
|
|
79992
|
+
|
|
79993
|
+
getUserLabel({
|
|
79994
|
+
userID,
|
|
79995
|
+
email,
|
|
79996
|
+
name,
|
|
79997
|
+
username
|
|
79998
|
+
}) {
|
|
79999
|
+
return name || username || email || `<@${userID}>`;
|
|
80000
|
+
},
|
|
80001
|
+
|
|
80002
|
+
onAddEval() {
|
|
80003
|
+
const {
|
|
80004
|
+
userID
|
|
80005
|
+
} = this.add.userID || {};
|
|
80006
|
+
let {
|
|
80007
|
+
roleID = []
|
|
80008
|
+
} = this.add;
|
|
80009
|
+
roleID = roleID.map(({
|
|
80010
|
+
roleID
|
|
80011
|
+
}) => roleID);
|
|
80012
|
+
this.evaluatePermissions({
|
|
80013
|
+
roleID,
|
|
80014
|
+
userID
|
|
80015
|
+
}).then(rules => {
|
|
80016
|
+
this.evaluate.push({ ...this.add,
|
|
80017
|
+
rules
|
|
80018
|
+
});
|
|
80019
|
+
this.add = {
|
|
80020
|
+
roleID: [],
|
|
80021
|
+
userID: undefined
|
|
80022
|
+
};
|
|
80023
|
+
});
|
|
80024
|
+
},
|
|
80025
|
+
|
|
80026
|
+
onHideEval(i) {
|
|
80027
|
+
this.evaluate.splice(i, 1);
|
|
80028
|
+
},
|
|
80029
|
+
|
|
80030
|
+
getEvalName({
|
|
80031
|
+
roleID,
|
|
80032
|
+
userID
|
|
80033
|
+
}) {
|
|
80034
|
+
if (userID) {
|
|
80035
|
+
const {
|
|
80036
|
+
name,
|
|
80037
|
+
username,
|
|
80038
|
+
email,
|
|
80039
|
+
handle
|
|
80040
|
+
} = userID;
|
|
80041
|
+
return [name || username || email || handle || userID || ''];
|
|
80042
|
+
} else {
|
|
80043
|
+
return roleID.map(({
|
|
80044
|
+
name
|
|
80045
|
+
}) => name);
|
|
80046
|
+
}
|
|
80047
|
+
},
|
|
80048
|
+
|
|
79711
80049
|
normalizeRules(rr) {
|
|
79712
80050
|
const inherit = 'inherit'; // merges roleRules (subset) with list of all permissions
|
|
79713
80051
|
|
|
@@ -79719,7 +80057,18 @@ var script$q = {
|
|
|
79719
80057
|
return inherit;
|
|
79720
80058
|
}
|
|
79721
80059
|
|
|
79722
|
-
|
|
80060
|
+
let {
|
|
80061
|
+
resolution,
|
|
80062
|
+
access = 'inherit'
|
|
80063
|
+
} = rr.find(r => r.resource === resource && r.operation === operation) || {};
|
|
80064
|
+
|
|
80065
|
+
if (resolution === 'unknown-context') {
|
|
80066
|
+
access = 'unknown-context';
|
|
80067
|
+
} else if (access === 'inherit') {
|
|
80068
|
+
access = 'deny';
|
|
80069
|
+
}
|
|
80070
|
+
|
|
80071
|
+
return access;
|
|
79723
80072
|
};
|
|
79724
80073
|
|
|
79725
80074
|
return this.permissions.map(p => {
|
|
@@ -79795,145 +80144,14 @@ var script$q = {
|
|
|
79795
80144
|
title,
|
|
79796
80145
|
description: this.$t(`permissions:${i18nPrefix}.description`)
|
|
79797
80146
|
};
|
|
79798
|
-
}
|
|
79799
|
-
|
|
79800
|
-
}
|
|
79801
|
-
};
|
|
79802
|
-
|
|
79803
|
-
/* script */
|
|
79804
|
-
const __vue_script__$q = script$q;
|
|
79805
|
-
|
|
79806
|
-
/* template */
|
|
79807
|
-
var __vue_render__$n = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form',{on:{"submit":function($event){$event.preventDefault();return _vm.onSubmit.apply(null, arguments)}}},[_c('b-row',[_c('b-col',{staticClass:"role-list",attrs:{"cols":"12","lg":"3"}},[_c('b-list-group',{staticClass:"d-none d-lg-block"},_vm._l((_vm.roles),function(r){return _c('b-list-group-item',{key:r.roleID,staticClass:"text-break pointer",attrs:{"active":r.roleID === _vm.currentRole.roleID,"active-class":"primary","variant":"outline-primary"},on:{"click":function($event){return _vm.onRoleChange(r)}}},[_vm._v("\n "+_vm._s(r.name || r.handle || r.roleID)+"\n ")])}),1),_vm._v(" "),_c('vue-select',{key:"roleID",staticClass:"mb-4 d-block d-lg-none",attrs:{"label":"name","clearable":false,"options":_vm.roles},on:{"input":_vm.onRoleChange},model:{value:(_vm.currentRole),callback:function ($$v) {_vm.currentRole=$$v;},expression:"currentRole"}})],1),_vm._v(" "),_c('b-col',{staticClass:"rule-list",attrs:{"cols":"12","lg":"9"}},[_c('rules',{attrs:{"rules":_vm.rules},on:{"update:rules":function($event){_vm.rules=$event;}}})],1)],1),_vm._v(" "),_c('b-row',{staticClass:"footer mt-3"},[_c('b-col',{staticClass:"rule-list text-right mb-3",attrs:{"cols":"9","offset":"3"}},[_c('b-button',{attrs:{"type":"submit","variant":"primary","disabled":_vm.disabled}},[_vm._v("\n "+_vm._s(_vm.$t('permissions:ui.save-changes'))+"\n ")])],1)],1)],1)};
|
|
79808
|
-
var __vue_staticRenderFns__$n = [];
|
|
79809
|
-
|
|
79810
|
-
/* style */
|
|
79811
|
-
const __vue_inject_styles__$r = function (inject) {
|
|
79812
|
-
if (!inject) return
|
|
79813
|
-
inject("data-v-6a9b0cab_0", { source: ".pointer[data-v-6a9b0cab]{cursor:pointer}", map: undefined, media: undefined });
|
|
79814
|
-
|
|
79815
|
-
};
|
|
79816
|
-
/* scoped */
|
|
79817
|
-
const __vue_scope_id__$r = "data-v-6a9b0cab";
|
|
79818
|
-
/* module identifier */
|
|
79819
|
-
const __vue_module_identifier__$r = undefined;
|
|
79820
|
-
/* functional template */
|
|
79821
|
-
const __vue_is_functional_template__$r = false;
|
|
79822
|
-
/* style inject SSR */
|
|
79823
|
-
|
|
79824
|
-
/* style inject shadow dom */
|
|
79825
|
-
|
|
79826
|
-
|
|
79827
|
-
|
|
79828
|
-
const __vue_component__$r = /*#__PURE__*/normalizeComponent(
|
|
79829
|
-
{ render: __vue_render__$n, staticRenderFns: __vue_staticRenderFns__$n },
|
|
79830
|
-
__vue_inject_styles__$r,
|
|
79831
|
-
__vue_script__$q,
|
|
79832
|
-
__vue_scope_id__$r,
|
|
79833
|
-
__vue_is_functional_template__$r,
|
|
79834
|
-
__vue_module_identifier__$r,
|
|
79835
|
-
false,
|
|
79836
|
-
createInjector,
|
|
79837
|
-
undefined,
|
|
79838
|
-
undefined
|
|
79839
|
-
);
|
|
79840
|
-
|
|
79841
|
-
var script$r = {
|
|
79842
|
-
i18nOptions: {
|
|
79843
|
-
namespaces: 'permissions'
|
|
79844
|
-
},
|
|
79845
|
-
components: {
|
|
79846
|
-
CPermissionsForm: __vue_component__$r
|
|
79847
|
-
},
|
|
79848
|
-
|
|
79849
|
-
data() {
|
|
79850
|
-
return {
|
|
79851
|
-
resource: undefined,
|
|
79852
|
-
title: undefined,
|
|
79853
|
-
target: undefined,
|
|
79854
|
-
allSpecific: false
|
|
79855
|
-
};
|
|
79856
|
-
},
|
|
79857
|
-
|
|
79858
|
-
computed: {
|
|
79859
|
-
showModal: {
|
|
79860
|
-
get() {
|
|
79861
|
-
return !!this.resource;
|
|
79862
|
-
},
|
|
79863
|
-
|
|
79864
|
-
set(open) {
|
|
79865
|
-
if (!open) {
|
|
79866
|
-
this.clear();
|
|
79867
|
-
}
|
|
79868
|
-
}
|
|
79869
|
-
|
|
79870
80147
|
},
|
|
79871
80148
|
|
|
79872
|
-
|
|
79873
|
-
if (
|
|
79874
|
-
|
|
79875
|
-
i18nPrefix
|
|
79876
|
-
} = split(this.resource);
|
|
79877
|
-
let target;
|
|
79878
|
-
|
|
79879
|
-
if (this.allSpecific) {
|
|
79880
|
-
target = this.$t(`permissions:${i18nPrefix}.all-specific`, {
|
|
79881
|
-
target: this.title,
|
|
79882
|
-
interpolation: {
|
|
79883
|
-
escapeValue: false
|
|
79884
|
-
}
|
|
79885
|
-
});
|
|
79886
|
-
} else if (this.title) {
|
|
79887
|
-
target = this.$t(`permissions:${i18nPrefix}.specific`, {
|
|
79888
|
-
target: this.title,
|
|
79889
|
-
interpolation: {
|
|
79890
|
-
escapeValue: false
|
|
79891
|
-
}
|
|
79892
|
-
});
|
|
79893
|
-
} else {
|
|
79894
|
-
target = this.$t(`permissions:${i18nPrefix}.all`);
|
|
79895
|
-
}
|
|
79896
|
-
|
|
79897
|
-
return this.$t('permissions:ui.set-for', {
|
|
79898
|
-
target: target,
|
|
79899
|
-
interpolation: {
|
|
79900
|
-
escapeValue: false
|
|
79901
|
-
}
|
|
79902
|
-
});
|
|
80149
|
+
getRuleTooltip(isUnknown = false, isUser) {
|
|
80150
|
+
if (!isUnknown) {
|
|
80151
|
+
return '';
|
|
79903
80152
|
}
|
|
79904
80153
|
|
|
79905
|
-
return
|
|
79906
|
-
}
|
|
79907
|
-
|
|
79908
|
-
},
|
|
79909
|
-
|
|
79910
|
-
mounted() {
|
|
79911
|
-
this.$root.$on(modalOpenEventName, ({
|
|
79912
|
-
resource,
|
|
79913
|
-
title,
|
|
79914
|
-
target,
|
|
79915
|
-
allSpecific
|
|
79916
|
-
}) => {
|
|
79917
|
-
this.resource = resource;
|
|
79918
|
-
this.title = title;
|
|
79919
|
-
this.target = target;
|
|
79920
|
-
this.allSpecific = allSpecific;
|
|
79921
|
-
});
|
|
79922
|
-
},
|
|
79923
|
-
|
|
79924
|
-
destroyed() {
|
|
79925
|
-
this.$root.$off(modalOpenEventName);
|
|
79926
|
-
},
|
|
79927
|
-
|
|
79928
|
-
methods: {
|
|
79929
|
-
onHide() {
|
|
79930
|
-
this.clear();
|
|
79931
|
-
},
|
|
79932
|
-
|
|
79933
|
-
clear() {
|
|
79934
|
-
this.resource = undefined;
|
|
79935
|
-
this.title = undefined;
|
|
79936
|
-
this.target = undefined;
|
|
80154
|
+
return this.$t(`permissions:ui.tooltip.unknown-context.${isUser ? 'user' : 'role'}`);
|
|
79937
80155
|
}
|
|
79938
80156
|
|
|
79939
80157
|
}
|
|
@@ -79943,19 +80161,22 @@ var script$r = {
|
|
|
79943
80161
|
const __vue_script__$r = script$r;
|
|
79944
80162
|
|
|
79945
80163
|
/* template */
|
|
79946
|
-
var __vue_render__$o = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-modal',{staticClass:"overflow-hidden",attrs:{"
|
|
80164
|
+
var __vue_render__$o = 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)};
|
|
79947
80165
|
var __vue_staticRenderFns__$o = [];
|
|
79948
80166
|
|
|
79949
80167
|
/* style */
|
|
79950
|
-
const __vue_inject_styles__$s =
|
|
80168
|
+
const __vue_inject_styles__$s = function (inject) {
|
|
80169
|
+
if (!inject) return
|
|
80170
|
+
inject("data-v-36f5897c_0", { source: ".not-allowed[data-v-36f5897c]{cursor:not-allowed}.bg-extra-light[data-v-36f5897c]{background-color:#f3f5f7}.pointer[data-v-36f5897c]{cursor:pointer}.rotate[data-v-36f5897c]{transform:rotate(45deg)}.hide-eval:hover .rotate[data-v-36f5897c]{color:#162425!important}", map: undefined, media: undefined })
|
|
80171
|
+
,inject("data-v-36f5897c_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 });
|
|
80172
|
+
|
|
80173
|
+
};
|
|
79951
80174
|
/* scoped */
|
|
79952
|
-
const __vue_scope_id__$s =
|
|
80175
|
+
const __vue_scope_id__$s = "data-v-36f5897c";
|
|
79953
80176
|
/* module identifier */
|
|
79954
80177
|
const __vue_module_identifier__$s = undefined;
|
|
79955
80178
|
/* functional template */
|
|
79956
80179
|
const __vue_is_functional_template__$s = false;
|
|
79957
|
-
/* style inject */
|
|
79958
|
-
|
|
79959
80180
|
/* style inject SSR */
|
|
79960
80181
|
|
|
79961
80182
|
/* style inject shadow dom */
|
|
@@ -79970,7 +80191,7 @@ var __vue_staticRenderFns__$o = [];
|
|
|
79970
80191
|
__vue_is_functional_template__$s,
|
|
79971
80192
|
__vue_module_identifier__$s,
|
|
79972
80193
|
false,
|
|
79973
|
-
|
|
80194
|
+
createInjector,
|
|
79974
80195
|
undefined,
|
|
79975
80196
|
undefined
|
|
79976
80197
|
);
|
|
@@ -81333,6 +81554,7 @@ const prompts = Object.freeze([
|
|
|
81333
81554
|
ref: 'redirect',
|
|
81334
81555
|
meta: { short: 'Redirect user to an outside URL' },
|
|
81335
81556
|
parameters: [
|
|
81557
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81336
81558
|
{ name: 'url', types: ['String'], required: true },
|
|
81337
81559
|
{ name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
|
|
81338
81560
|
],
|
|
@@ -81341,6 +81563,7 @@ const prompts = Object.freeze([
|
|
|
81341
81563
|
ref: 'reroute',
|
|
81342
81564
|
meta: { short: 'Redirect user to an internal application route' },
|
|
81343
81565
|
parameters: [
|
|
81566
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81344
81567
|
{ name: 'name', types: ['String'], required: true },
|
|
81345
81568
|
{ name: 'params', types: ['KV'] },
|
|
81346
81569
|
{ name: 'query', types: ['KV'] },
|
|
@@ -81354,6 +81577,7 @@ const prompts = Object.freeze([
|
|
|
81354
81577
|
webapps: ['compose'],
|
|
81355
81578
|
},
|
|
81356
81579
|
parameters: [
|
|
81580
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81357
81581
|
{ name: 'module', types: ['ID', 'Handle', 'ComposeModule'] },
|
|
81358
81582
|
{ name: 'namespace', types: ['ID', 'Handle', 'ComposeNamespace'] },
|
|
81359
81583
|
{ name: 'record', types: ['ID', 'ComposeRecord'] },
|
|
@@ -81369,6 +81593,7 @@ const prompts = Object.freeze([
|
|
|
81369
81593
|
ref: 'notification',
|
|
81370
81594
|
meta: { short: 'Show non-blocking message to user' },
|
|
81371
81595
|
parameters: [
|
|
81596
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81372
81597
|
{ name: 'title', types: ['String'] },
|
|
81373
81598
|
{ name: 'message', types: ['String'], required: true },
|
|
81374
81599
|
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
@@ -81379,6 +81604,7 @@ const prompts = Object.freeze([
|
|
|
81379
81604
|
ref: 'alert',
|
|
81380
81605
|
meta: { short: 'Prompt user with an alert' },
|
|
81381
81606
|
parameters: [
|
|
81607
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81382
81608
|
{ name: 'title', types: ['String'] },
|
|
81383
81609
|
{ name: 'message', types: ['String'], required: true },
|
|
81384
81610
|
{ name: 'buttonLabel', types: ['String'] },
|
|
@@ -81390,6 +81616,7 @@ const prompts = Object.freeze([
|
|
|
81390
81616
|
ref: 'choice',
|
|
81391
81617
|
meta: { short: 'Prompt user with choice' },
|
|
81392
81618
|
parameters: [
|
|
81619
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81393
81620
|
{ name: 'title', types: ['String'] },
|
|
81394
81621
|
{ name: 'message', types: ['String'], required: true },
|
|
81395
81622
|
{ name: 'confirmButtonLabel', types: ['String'] },
|
|
@@ -81407,6 +81634,7 @@ const prompts = Object.freeze([
|
|
|
81407
81634
|
ref: 'composeRecordPicker',
|
|
81408
81635
|
meta: { short: 'Prompt user to select a Compose Record' },
|
|
81409
81636
|
parameters: [
|
|
81637
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81410
81638
|
{ name: 'title', types: ['String'] },
|
|
81411
81639
|
{ name: 'message', types: ['String'], required: true },
|
|
81412
81640
|
{ name: 'namespace', types: ['ID', 'Handle', 'ComposeNamespace'], required: true },
|
|
@@ -81423,6 +81651,7 @@ const prompts = Object.freeze([
|
|
|
81423
81651
|
ref: 'input',
|
|
81424
81652
|
meta: { short: 'Prompt user with a single input' },
|
|
81425
81653
|
parameters: [
|
|
81654
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81426
81655
|
{ name: 'title', types: ['String'] },
|
|
81427
81656
|
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
81428
81657
|
{ name: 'message', types: ['String'], required: true },
|
|
@@ -81454,6 +81683,7 @@ const prompts = Object.freeze([
|
|
|
81454
81683
|
ref: 'options',
|
|
81455
81684
|
meta: { short: 'Prompt user with options' },
|
|
81456
81685
|
parameters: [
|
|
81686
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81457
81687
|
{ name: 'title', types: ['String'] },
|
|
81458
81688
|
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
81459
81689
|
{ name: 'message', types: ['String'], required: true },
|
|
@@ -81804,17 +82034,18 @@ const __vue_script__$E = script$E;
|
|
|
81804
82034
|
/* template */
|
|
81805
82035
|
var __vue_render__$A = 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 justify-content-between sticky-top pr-3 pl-5 "},[_c('div',{staticClass:"d-flex text-nowrap flex-grow-1 align-items-center header h-100 w-100"},[[_c('div',{staticClass:"spacer",class:{
|
|
81806
82036
|
'expanded': _vm.sidebarPinned,
|
|
81807
|
-
}})],_vm._v(" "),_c('div',{staticClass:"d-flex align-items-center ml-2 text-truncate mr-auto h-100"},[_c('h2',{staticClass:"d-none d-sm-block mb-0"},[_vm._t("title")],2)]),_vm._v(" "),_c('div',{staticClass:"ml-3"},[_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 ml-2",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,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":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","size":"lg","variant":"outline-light","toggle-class":"nav-icon text-decoration-none text-dark rounded-circle border","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', 'user']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,2199786693)},[_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()],2)])};
|
|
82037
|
+
}})],_vm._v(" "),_c('div',{staticClass:"d-flex align-items-center ml-2 text-truncate mr-auto h-100"},[_c('h2',{staticClass:"d-none d-sm-block mb-0"},[_vm._t("title")],2)]),_vm._v(" "),_c('div',{staticClass:"topbar-tools ml-3"},[_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 ml-2",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,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":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","size":"lg","variant":"outline-light","toggle-class":"nav-icon text-decoration-none text-dark rounded-circle border","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', 'user']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,2199786693)},[_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()],2)])};
|
|
81808
82038
|
var __vue_staticRenderFns__$A = [];
|
|
81809
82039
|
|
|
81810
82040
|
/* style */
|
|
81811
82041
|
const __vue_inject_styles__$F = function (inject) {
|
|
81812
82042
|
if (!inject) return
|
|
81813
|
-
inject("data-v-
|
|
82043
|
+
inject("data-v-13dcc283_0", { source: ".icon-logo[data-v-13dcc283]{height:calc(64px / 2);background-repeat:no-repeat;background-position:center}.nav-icon[data-v-13dcc283]{width:40px;height:40px}.nav-user-icon[data-v-13dcc283]{width:50px;height:50px}.header-navigation[data-v-13dcc283]{width:100vw;height:64px;background-color:#f3f3f5!important}.header-navigation h2[data-v-13dcc283]{padding-left:calc(.5rem + 2px)}.topbar-dropdown-menu[data-v-13dcc283]{max-height:80vh;overflow-y:auto}.spacer[data-v-13dcc283]{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-13dcc283]{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 })
|
|
82044
|
+
,inject("data-v-13dcc283_1", { source: ".topbar-tools .vue-portal-target{display:flex;align-items:center}", map: undefined, media: undefined });
|
|
81814
82045
|
|
|
81815
82046
|
};
|
|
81816
82047
|
/* scoped */
|
|
81817
|
-
const __vue_scope_id__$F = "data-v-
|
|
82048
|
+
const __vue_scope_id__$F = "data-v-13dcc283";
|
|
81818
82049
|
/* module identifier */
|
|
81819
82050
|
const __vue_module_identifier__$F = undefined;
|
|
81820
82051
|
/* functional template */
|
|
@@ -82823,21 +83054,10 @@ var actions = /*#__PURE__*/Object.freeze({
|
|
|
82823
83054
|
|
|
82824
83055
|
var script$N = {
|
|
82825
83056
|
props: {
|
|
82826
|
-
|
|
83057
|
+
link: {
|
|
82827
83058
|
type: Object,
|
|
82828
|
-
required: true
|
|
82829
|
-
default: () => ({})
|
|
82830
|
-
}
|
|
82831
|
-
},
|
|
82832
|
-
methods: {
|
|
82833
|
-
fallbackLabel(resource = '') {
|
|
82834
|
-
if (resource.toLowerCase().startsWith('compose:record')) {
|
|
82835
|
-
return 'Record View';
|
|
82836
|
-
}
|
|
82837
|
-
|
|
82838
|
-
return 'Link';
|
|
83059
|
+
required: true
|
|
82839
83060
|
}
|
|
82840
|
-
|
|
82841
83061
|
}
|
|
82842
83062
|
};
|
|
82843
83063
|
|
|
@@ -82845,7 +83065,7 @@ var script$N = {
|
|
|
82845
83065
|
const __vue_script__$N = script$N;
|
|
82846
83066
|
|
|
82847
83067
|
/* template */
|
|
82848
|
-
var __vue_render__$I = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[
|
|
83068
|
+
var __vue_render__$I = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('router-link',{attrs:{"to":_vm.link}},[_vm._v("\n "+_vm._s(_vm.link.label)+"\n ")])],1)};
|
|
82849
83069
|
var __vue_staticRenderFns__$I = [];
|
|
82850
83070
|
|
|
82851
83071
|
/* style */
|
|
@@ -82920,7 +83140,7 @@ var script$O = {
|
|
|
82920
83140
|
const __vue_script__$O = script$O;
|
|
82921
83141
|
|
|
82922
83142
|
/* template */
|
|
82923
|
-
var __vue_render__$J = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_vm._l((_vm.toasts),function(t){return _c('b-toast',_vm._b({key:t.id,attrs:{"visible":"","title":t.payload.title,"no-close-button":!t.actions.hide,"toast-class":"overflow-unset"},on:{"hide":function($event){t.actions.hide ? t.actions.hide.cb(t) : _vm.evtSink;}}},'b-toast',t.options || {},false),[_c('b-card',{staticClass:"border-0",attrs:{"header-bg-variant":"transparent","bg-variant":"transparent","body-class":"p-0"}},[_c('b-card-text',[_vm._v("\n "+_vm._s(t.payload.notes)+"\n ")]),_vm._v(" "),(t.payload.link)?_c('b-card-text',[_c('c-toaster-link',{attrs:{"
|
|
83143
|
+
var __vue_render__$J = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_vm._l((_vm.toasts),function(t){return _c('b-toast',_vm._b({key:t.id,attrs:{"visible":"","title":t.payload.title,"no-close-button":!t.actions.hide,"toast-class":"overflow-unset"},on:{"hide":function($event){t.actions.hide ? t.actions.hide.cb(t) : _vm.evtSink;}}},'b-toast',t.options || {},false),[_c('b-card',{staticClass:"border-0",attrs:{"header-bg-variant":"transparent","bg-variant":"transparent","body-class":"p-0"}},[_c('b-card-text',[_vm._v("\n "+_vm._s(t.payload.notes)+"\n ")]),_vm._v(" "),(t.payload.link)?_c('b-card-text',[_c('c-toaster-link',{attrs:{"link":t.payload.link}})],1):_vm._e(),_vm._v(" "),_vm._l((_vm.extraActions(t)),function(ref){
|
|
82924
83144
|
var name = ref[0];
|
|
82925
83145
|
var act = ref[1];
|
|
82926
83146
|
return _c(_vm.actComponent(act),_vm._b({key:name,tag:"component",staticClass:"mr-1",on:{"action":function($event){act.cb ? act.cb(t, $event) : _vm.evtSink;}}},'component',act,false))})],2)],1)}),1)};
|
|
@@ -82929,7 +83149,7 @@ var __vue_staticRenderFns__$J = [];
|
|
|
82929
83149
|
/* style */
|
|
82930
83150
|
const __vue_inject_styles__$P = function (inject) {
|
|
82931
83151
|
if (!inject) return
|
|
82932
|
-
inject("data-v-
|
|
83152
|
+
inject("data-v-6fbe9c62_0", { source: ".toast.overflow-unset{overflow:unset!important}", map: undefined, media: undefined });
|
|
82933
83153
|
|
|
82934
83154
|
};
|
|
82935
83155
|
/* scoped */
|
|
@@ -83141,7 +83361,8 @@ var script$R = {
|
|
|
83141
83361
|
name: 'CItemPicker',
|
|
83142
83362
|
components: {
|
|
83143
83363
|
draggable: Draggable,
|
|
83144
|
-
CItemPickerItem: __vue_component__$R
|
|
83364
|
+
CItemPickerItem: __vue_component__$R,
|
|
83365
|
+
CInputSearch: __vue_component__$e
|
|
83145
83366
|
},
|
|
83146
83367
|
props: {
|
|
83147
83368
|
/**
|
|
@@ -83398,7 +83619,7 @@ var script$R = {
|
|
|
83398
83619
|
const __vue_script__$R = script$R;
|
|
83399
83620
|
|
|
83400
83621
|
/* template */
|
|
83401
|
-
var __vue_render__$M = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"overflow-hidden d-flex flex-column w-100 vh-100"},[_c('b-card',{staticClass:"h-100",attrs:{"no-body":""}},[_c('b-card-header',{staticClass:"bg-white p-0"},[(!_vm.hideFilter)?_c('
|
|
83622
|
+
var __vue_render__$M = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"overflow-hidden d-flex flex-column w-100 vh-100"},[_c('b-card',{staticClass:"h-100",attrs:{"no-body":""}},[_c('b-card-header',{staticClass:"bg-white p-0"},[(!_vm.hideFilter)?_c('c-input-search',{attrs:{"disabled":_vm._disabledFilter,"placeholder":_vm.labels.searchPlaceholder},model:{value:(_vm.query),callback:function ($$v) {_vm.query=(typeof $$v === 'string'? $$v.trim(): $$v);},expression:"query"}}):_vm._e()],1),_vm._v(" "),_c('b-card-body',{staticClass:"d-flex p-0"},[_c('b-card',{staticClass:"col-sm-6 col-12 h-100 p-0",attrs:{"no-body":""}},[_c('b-card-header',{staticClass:"bg-white py-2 pl-0 pr-2"},[_c('div',{staticClass:"d-flex align-items-center"},[_c('label',{staticClass:"text-primary mb-1 mt-2"},[_vm._v("\n "+_vm._s(_vm.labels.availableItems)+"\n ")]),_vm._v(" "),_c('b-button',{directives:[{name:"show",rawName:"v-show",value:(_vm.filteredAvailable.length && !_vm.disabled),expression:"filteredAvailable.length && !disabled"}],staticClass:"ml-auto px-0 text-muted",attrs:{"variant":"link"},on:{"click":function($event){return _vm.selectAll()}}},[_vm._v("\n "+_vm._s(_vm.labels.selectAllItems)+"\n ")])],1)]),_vm._v(" "),_c('b-card-body',{staticClass:"overflow-auto py-0 pl-0 pr-2"},[_c('b-list-group',{staticClass:"h-100",attrs:{"vertical":""}},[_c('draggable',{staticClass:"overflow-auto h-100",attrs:{"sort":!_vm._disabledSorting,"move":_vm._disableDragging,"draggable":".item","group":"items"},scopedSlots:_vm._u([{key:"footer",fn:function(){return [(!_vm.filteredAvailable.length && _vm.query)?_c('h6',{staticClass:"text-center my-4"},[_vm._v("\n "+_vm._s(_vm.labels.noItemsFound)+"\n ")]):_vm._e()]},proxy:true}]),model:{value:(_vm.filteredAvailable),callback:function ($$v) {_vm.filteredAvailable=$$v;},expression:"filteredAvailable"}},_vm._l((_vm.filteredAvailable),function(item){return _c('b-list-group-item',{key:item.value,staticClass:"item mb-3 border rounded",on:{"dblclick":function($event){return _vm.select(item)}}},[_c('c-item-picker-item',{attrs:{"item":item,"disabled":_vm.disabled,"disabled-dragging":_vm.disabledDragging,"disabled-sorting":_vm.disabledSorting,"hide-icons":_vm.hideIcons},on:{"select":function($event){return _vm.select(item)}},scopedSlots:_vm._u([_vm._l((_vm.$scopedSlots),function(_,slot){return {key:slot,fn:function(scope){return [_vm._t(slot,null,{"textField":_vm.textField,"disabled":_vm.disabled,"disabledDragging":_vm.disabledDragging,"disabledSorting":_vm.disabledSorting,"hideIcons":_vm.hideIcons},scope)]}}})],null,true)})],1)}),1)],1)],1)],1),_vm._v(" "),_c('b-card',{staticClass:"h-100 pl-sm-0 col-sm-6 col-12 p-0",attrs:{"no-body":""}},[_c('b-card-header',{staticClass:"bg-white py-2 pl-2 pr-0"},[_c('div',{staticClass:"d-flex align-items-center"},[_c('label',{staticClass:"text-primary mb-2 mt-1"},[_vm._v("\n "+_vm._s(_vm.labels.selectedItems)+"\n ")]),_vm._v(" "),_c('b-button',{directives:[{name:"show",rawName:"v-show",value:(_vm.filteredSelected.length && !_vm.disabled),expression:"filteredSelected.length && !disabled"}],staticClass:"ml-auto px-0 text-muted",attrs:{"variant":"link"},on:{"click":function($event){return _vm.unselectAll()}}},[_vm._v("\n "+_vm._s(_vm.labels.unselectAllItems)+"\n ")])],1)]),_vm._v(" "),_c('b-card-body',{staticClass:"overflow-auto py-0 pl-2 pr-0"},[_c('b-list-group',{staticClass:"h-100",attrs:{"vertical":""}},[_c('draggable',{staticClass:"overflow-auto h-100",attrs:{"sort":!_vm._disabledSorting,"move":_vm._disableDragging,"draggable":".item","group":"items"},scopedSlots:_vm._u([{key:"footer",fn:function(){return [(!_vm.filteredSelected.length && _vm.query)?_c('h6',{staticClass:"text-center my-4"},[_vm._v("\n "+_vm._s(_vm.labels.noItemsFound)+"\n ")]):_vm._e()]},proxy:true}]),model:{value:(_vm.filteredSelected),callback:function ($$v) {_vm.filteredSelected=$$v;},expression:"filteredSelected"}},_vm._l((_vm.filteredSelected),function(item){return _c('b-list-group-item',{key:item.value,staticClass:"item mb-3 border rounded",on:{"dblclick":function($event){return _vm.unselect(item)}}},[_c('c-item-picker-item',{attrs:{"item":item,"disabled":_vm.disabled,"disabled-dragging":_vm.disabledDragging,"disabled-sorting":_vm.disabledSorting,"hide-icons":_vm.hideIcons,"selected":""},on:{"unselect":function($event){return _vm.unselect(item)}},scopedSlots:_vm._u([_vm._l((_vm.$scopedSlots),function(_,slot){return {key:slot,fn:function(scope){return [_vm._t(slot,null,{"textField":_vm.textField,"disabled":_vm.disabled,"disabledDragging":_vm.disabledDragging,"disabledSorting":_vm.disabledSorting,"hideIcons":_vm.hideIcons},scope)]}}})],null,true)})],1)}),1)],1)],1)],1)],1)],1)],1)};
|
|
83402
83623
|
var __vue_staticRenderFns__$M = [];
|
|
83403
83624
|
|
|
83404
83625
|
/* style */
|
|
@@ -83489,61 +83710,18 @@ const __vue_script__$S = script$S;
|
|
|
83489
83710
|
|
|
83490
83711
|
//
|
|
83491
83712
|
var script$T = {
|
|
83492
|
-
|
|
83493
|
-
|
|
83494
|
-
|
|
83495
|
-
|
|
83496
|
-
chart: undefined,
|
|
83497
|
-
plugins: [Funnel, colorschemes]
|
|
83498
|
-
};
|
|
83499
|
-
},
|
|
83500
|
-
|
|
83501
|
-
computed: {
|
|
83502
|
-
localDataframe() {
|
|
83503
|
-
return this.dataframes[0];
|
|
83504
|
-
},
|
|
83505
|
-
|
|
83506
|
-
size() {
|
|
83507
|
-
return this.displayElement ? this.displayElement.meta.size || 100 : 100;
|
|
83508
|
-
}
|
|
83509
|
-
|
|
83510
|
-
},
|
|
83511
|
-
watch: {
|
|
83512
|
-
dataframes: {
|
|
83513
|
-
deep: true,
|
|
83514
|
-
|
|
83515
|
-
handler(dataframes = []) {
|
|
83516
|
-
if (dataframes.length) {
|
|
83517
|
-
this.$nextTick(() => {
|
|
83518
|
-
this.renderChart();
|
|
83519
|
-
});
|
|
83520
|
-
}
|
|
83521
|
-
}
|
|
83522
|
-
|
|
83523
|
-
},
|
|
83524
|
-
size: {
|
|
83525
|
-
immediate: true,
|
|
83526
|
-
deep: true,
|
|
83527
|
-
|
|
83528
|
-
handler() {
|
|
83529
|
-
this.$nextTick(() => {
|
|
83530
|
-
this.renderChart();
|
|
83531
|
-
});
|
|
83532
|
-
}
|
|
83533
|
-
|
|
83713
|
+
props: {
|
|
83714
|
+
chart: {
|
|
83715
|
+
type: cortezaJs.shared.Chart,
|
|
83716
|
+
required: true
|
|
83534
83717
|
}
|
|
83535
83718
|
},
|
|
83536
|
-
|
|
83537
|
-
|
|
83538
|
-
|
|
83539
|
-
|
|
83540
|
-
}
|
|
83541
|
-
|
|
83542
|
-
const ctx = this.$refs.chart.getContext('2d');
|
|
83543
|
-
const chartConfig = this.options.getChartConfiguration(this.dataframes);
|
|
83544
|
-
this.chart = new Chart(ctx, { ...chartConfig,
|
|
83545
|
-
plugins: this.plugins
|
|
83546
|
-
});
|
|
83719
|
+
computed: {
|
|
83720
|
+
theme() {
|
|
83721
|
+
const {
|
|
83722
|
+
darkMode
|
|
83723
|
+
} = this.chart || {};
|
|
83724
|
+
return darkMode ? 'dark' : 'light';
|
|
83547
83725
|
}
|
|
83548
83726
|
|
|
83549
83727
|
}
|
|
@@ -83553,7 +83731,7 @@ var script$T = {
|
|
|
83553
83731
|
const __vue_script__$T = script$T;
|
|
83554
83732
|
|
|
83555
83733
|
/* template */
|
|
83556
|
-
var __vue_render__$N = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('
|
|
83734
|
+
var __vue_render__$N = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('e-charts',{staticClass:"w-100 h-100",attrs:{"option":_vm.chart,"theme":_vm.theme,"autoresize":""}})};
|
|
83557
83735
|
var __vue_staticRenderFns__$N = [];
|
|
83558
83736
|
|
|
83559
83737
|
/* style */
|
|
@@ -83588,80 +83766,33 @@ var __vue_staticRenderFns__$N = [];
|
|
|
83588
83766
|
//
|
|
83589
83767
|
var script$U = {
|
|
83590
83768
|
extends: __vue_component__$T,
|
|
83769
|
+
title: 'CReportChart',
|
|
83770
|
+
components: {
|
|
83771
|
+
CChart: __vue_component__$U
|
|
83772
|
+
},
|
|
83591
83773
|
|
|
83592
83774
|
data() {
|
|
83593
83775
|
return {
|
|
83594
|
-
|
|
83776
|
+
chart: undefined
|
|
83595
83777
|
};
|
|
83596
83778
|
},
|
|
83597
83779
|
|
|
83598
|
-
computed: {
|
|
83599
|
-
viewbox() {
|
|
83600
|
-
return this.vvb.join(' ');
|
|
83601
|
-
},
|
|
83602
|
-
|
|
83603
|
-
style() {
|
|
83604
|
-
return {
|
|
83605
|
-
fill: this.options.color || '#000000',
|
|
83606
|
-
backgroundColor: this.options.backgroundColor || '#ffffff'
|
|
83607
|
-
};
|
|
83608
|
-
},
|
|
83609
|
-
|
|
83610
|
-
value() {
|
|
83611
|
-
if (this.dataframes.length) {
|
|
83612
|
-
const {
|
|
83613
|
-
rows = [],
|
|
83614
|
-
columns = []
|
|
83615
|
-
} = this.dataframes[0];
|
|
83616
|
-
|
|
83617
|
-
if (columns.length) {
|
|
83618
|
-
const columnIndex = columns.findIndex(({
|
|
83619
|
-
name
|
|
83620
|
-
}) => name === this.options.valueColumn);
|
|
83621
|
-
|
|
83622
|
-
if (rows.length) {
|
|
83623
|
-
return rows[0] ? rows[0][columnIndex] || '' : '';
|
|
83624
|
-
}
|
|
83625
|
-
}
|
|
83626
|
-
}
|
|
83627
|
-
|
|
83628
|
-
return '';
|
|
83629
|
-
},
|
|
83630
|
-
|
|
83631
|
-
displayedMetric() {
|
|
83632
|
-
const {
|
|
83633
|
-
prefix = '',
|
|
83634
|
-
suffix = ''
|
|
83635
|
-
} = this.options;
|
|
83636
|
-
|
|
83637
|
-
if (this.value) {
|
|
83638
|
-
return `${prefix}${this.value}${suffix}`;
|
|
83639
|
-
}
|
|
83640
|
-
|
|
83641
|
-
return '';
|
|
83642
|
-
}
|
|
83643
|
-
|
|
83644
|
-
},
|
|
83645
83780
|
watch: {
|
|
83646
|
-
|
|
83781
|
+
dataframes: {
|
|
83782
|
+
deep: true,
|
|
83647
83783
|
immediate: true,
|
|
83648
|
-
|
|
83649
|
-
|
|
83784
|
+
|
|
83785
|
+
handler() {
|
|
83786
|
+
this.$nextTick(() => {
|
|
83787
|
+
this.renderChart();
|
|
83788
|
+
});
|
|
83650
83789
|
}
|
|
83790
|
+
|
|
83651
83791
|
}
|
|
83652
83792
|
},
|
|
83653
83793
|
methods: {
|
|
83654
|
-
|
|
83655
|
-
this
|
|
83656
|
-
const {
|
|
83657
|
-
width,
|
|
83658
|
-
height
|
|
83659
|
-
} = this.$refs.metricItem.getBBox();
|
|
83660
|
-
const tmp = [...this.vvb];
|
|
83661
|
-
tmp[2] = parseInt(Math.ceil(width));
|
|
83662
|
-
tmp[3] = parseInt(Math.ceil(height));
|
|
83663
|
-
this.vvb = tmp;
|
|
83664
|
-
});
|
|
83794
|
+
renderChart() {
|
|
83795
|
+
this.chart = this.options.getChartConfiguration(this.dataframes);
|
|
83665
83796
|
}
|
|
83666
83797
|
|
|
83667
83798
|
}
|
|
@@ -83671,7 +83802,7 @@ var script$U = {
|
|
|
83671
83802
|
const __vue_script__$U = script$U;
|
|
83672
83803
|
|
|
83673
83804
|
/* template */
|
|
83674
|
-
var __vue_render__$O = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.
|
|
83805
|
+
var __vue_render__$O = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.chart)?_c('c-chart',{staticClass:"p-1",attrs:{"chart":_vm.chart}}):_vm._e()};
|
|
83675
83806
|
var __vue_staticRenderFns__$O = [];
|
|
83676
83807
|
|
|
83677
83808
|
/* style */
|
|
@@ -83707,6 +83838,124 @@ var __vue_staticRenderFns__$O = [];
|
|
|
83707
83838
|
var script$V = {
|
|
83708
83839
|
extends: __vue_component__$T,
|
|
83709
83840
|
|
|
83841
|
+
data() {
|
|
83842
|
+
return {
|
|
83843
|
+
vvb: ['0', '0', '0', '0']
|
|
83844
|
+
};
|
|
83845
|
+
},
|
|
83846
|
+
|
|
83847
|
+
computed: {
|
|
83848
|
+
viewbox() {
|
|
83849
|
+
return this.vvb.join(' ');
|
|
83850
|
+
},
|
|
83851
|
+
|
|
83852
|
+
style() {
|
|
83853
|
+
return {
|
|
83854
|
+
fill: this.options.color || '#000000',
|
|
83855
|
+
backgroundColor: this.options.backgroundColor || '#ffffff'
|
|
83856
|
+
};
|
|
83857
|
+
},
|
|
83858
|
+
|
|
83859
|
+
value() {
|
|
83860
|
+
if (this.dataframes.length) {
|
|
83861
|
+
const {
|
|
83862
|
+
rows = [],
|
|
83863
|
+
columns = []
|
|
83864
|
+
} = this.dataframes[0];
|
|
83865
|
+
|
|
83866
|
+
if (columns.length) {
|
|
83867
|
+
const columnIndex = columns.findIndex(({
|
|
83868
|
+
name
|
|
83869
|
+
}) => name === this.options.valueColumn);
|
|
83870
|
+
|
|
83871
|
+
if (rows.length) {
|
|
83872
|
+
return rows[0] ? rows[0][columnIndex] || '' : '';
|
|
83873
|
+
}
|
|
83874
|
+
}
|
|
83875
|
+
}
|
|
83876
|
+
|
|
83877
|
+
return '';
|
|
83878
|
+
},
|
|
83879
|
+
|
|
83880
|
+
displayedMetric() {
|
|
83881
|
+
const {
|
|
83882
|
+
prefix = '',
|
|
83883
|
+
suffix = ''
|
|
83884
|
+
} = this.options;
|
|
83885
|
+
|
|
83886
|
+
if (this.value) {
|
|
83887
|
+
return `${prefix}${this.value}${suffix}`;
|
|
83888
|
+
}
|
|
83889
|
+
|
|
83890
|
+
return '';
|
|
83891
|
+
}
|
|
83892
|
+
|
|
83893
|
+
},
|
|
83894
|
+
watch: {
|
|
83895
|
+
value: {
|
|
83896
|
+
immediate: true,
|
|
83897
|
+
handler: function () {
|
|
83898
|
+
this.update();
|
|
83899
|
+
}
|
|
83900
|
+
}
|
|
83901
|
+
},
|
|
83902
|
+
methods: {
|
|
83903
|
+
update() {
|
|
83904
|
+
this.$nextTick(function () {
|
|
83905
|
+
const {
|
|
83906
|
+
width,
|
|
83907
|
+
height
|
|
83908
|
+
} = this.$refs.metricItem.getBBox();
|
|
83909
|
+
const tmp = [...this.vvb];
|
|
83910
|
+
tmp[2] = parseInt(Math.ceil(width));
|
|
83911
|
+
tmp[3] = parseInt(Math.ceil(height));
|
|
83912
|
+
this.vvb = tmp;
|
|
83913
|
+
});
|
|
83914
|
+
}
|
|
83915
|
+
|
|
83916
|
+
}
|
|
83917
|
+
};
|
|
83918
|
+
|
|
83919
|
+
/* script */
|
|
83920
|
+
const __vue_script__$V = script$V;
|
|
83921
|
+
|
|
83922
|
+
/* template */
|
|
83923
|
+
var __vue_render__$P = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.options)?_c('div',{staticClass:"d-flex align-items-center justify-content-center overflow-hidden h-100 px-2 rounded",style:(_vm.style)},[_c('svg',{staticClass:"h-100 w-100 align-items-end d-flex",attrs:{"viewBox":_vm.viewbox,"width":"100%","height":"100%"}},[_c('text',{ref:"metricItem",attrs:{"y":"50%","x":"50%","text-anchor":"middle","dominant-baseline":"central","text-rendering":"geometricPrecision"}},[_vm._v("\n "+_vm._s(_vm.displayedMetric)+"\n ")])])]):_vm._e()};
|
|
83924
|
+
var __vue_staticRenderFns__$P = [];
|
|
83925
|
+
|
|
83926
|
+
/* style */
|
|
83927
|
+
const __vue_inject_styles__$W = undefined;
|
|
83928
|
+
/* scoped */
|
|
83929
|
+
const __vue_scope_id__$W = undefined;
|
|
83930
|
+
/* module identifier */
|
|
83931
|
+
const __vue_module_identifier__$W = undefined;
|
|
83932
|
+
/* functional template */
|
|
83933
|
+
const __vue_is_functional_template__$W = false;
|
|
83934
|
+
/* style inject */
|
|
83935
|
+
|
|
83936
|
+
/* style inject SSR */
|
|
83937
|
+
|
|
83938
|
+
/* style inject shadow dom */
|
|
83939
|
+
|
|
83940
|
+
|
|
83941
|
+
|
|
83942
|
+
const __vue_component__$W = /*#__PURE__*/normalizeComponent(
|
|
83943
|
+
{ render: __vue_render__$P, staticRenderFns: __vue_staticRenderFns__$P },
|
|
83944
|
+
__vue_inject_styles__$W,
|
|
83945
|
+
__vue_script__$V,
|
|
83946
|
+
__vue_scope_id__$W,
|
|
83947
|
+
__vue_is_functional_template__$W,
|
|
83948
|
+
__vue_module_identifier__$W,
|
|
83949
|
+
false,
|
|
83950
|
+
undefined,
|
|
83951
|
+
undefined,
|
|
83952
|
+
undefined
|
|
83953
|
+
);
|
|
83954
|
+
|
|
83955
|
+
//
|
|
83956
|
+
var script$W = {
|
|
83957
|
+
extends: __vue_component__$T,
|
|
83958
|
+
|
|
83710
83959
|
data() {
|
|
83711
83960
|
return {
|
|
83712
83961
|
sort: {
|
|
@@ -83843,11 +84092,12 @@ var script$V = {
|
|
|
83843
84092
|
const hSeanFrames = {};
|
|
83844
84093
|
const outHeader = [...selectedCols].map(index => {
|
|
83845
84094
|
const column = frame.columns[index];
|
|
84095
|
+
const columnName = column ? column.name : '';
|
|
83846
84096
|
return {
|
|
83847
84097
|
column,
|
|
83848
84098
|
meta: {
|
|
83849
84099
|
ref: frame.ref,
|
|
83850
|
-
sortKey: isLocal ?
|
|
84100
|
+
sortKey: isLocal ? columnName : `${frame.ref}.${columnName}`
|
|
83851
84101
|
}
|
|
83852
84102
|
};
|
|
83853
84103
|
});
|
|
@@ -83875,7 +84125,7 @@ var script$V = {
|
|
|
83875
84125
|
// const refColumnIndexes = (this.options.columns[rf.ref] || []).map(({ name }) => {
|
|
83876
84126
|
// return frame.columns.findIndex(fc => fc.name === name)
|
|
83877
84127
|
// })
|
|
83878
|
-
const aux = this.tabelifyFrame(rf
|
|
84128
|
+
const aux = this.tabelifyFrame(rf); // Optionally append header
|
|
83879
84129
|
|
|
83880
84130
|
if (!hSeanFrames[rf.ref]) {
|
|
83881
84131
|
const x = [...aux.header];
|
|
@@ -83908,7 +84158,10 @@ var script$V = {
|
|
|
83908
84158
|
};
|
|
83909
84159
|
}
|
|
83910
84160
|
|
|
83911
|
-
row
|
|
84161
|
+
if (row.length) {
|
|
84162
|
+
row[0].separator = true;
|
|
84163
|
+
}
|
|
84164
|
+
|
|
83912
84165
|
const merged = this.mergeRows(auxRows).pop();
|
|
83913
84166
|
row.push(...merged[0]);
|
|
83914
84167
|
outRows.push(row);
|
|
@@ -83920,7 +84173,6 @@ var script$V = {
|
|
|
83920
84173
|
|
|
83921
84174
|
return {
|
|
83922
84175
|
rows: outRows,
|
|
83923
|
-
maxSize,
|
|
83924
84176
|
header: outHeader,
|
|
83925
84177
|
colgroups: outColgroups
|
|
83926
84178
|
};
|
|
@@ -84075,43 +84327,43 @@ var script$V = {
|
|
|
84075
84327
|
};
|
|
84076
84328
|
|
|
84077
84329
|
/* script */
|
|
84078
|
-
const __vue_script__$
|
|
84330
|
+
const __vue_script__$W = script$W;
|
|
84079
84331
|
|
|
84080
84332
|
/* template */
|
|
84081
|
-
var __vue_render__$
|
|
84333
|
+
var __vue_render__$Q = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:"h-100 rounded-0",attrs:{"no-body":""}},[_c('b-table-simple',{staticClass:"flex-grow-1 mh-100 mb-0",attrs:{"table-variant":_vm.options.tableVariant,"dark":_vm.options.dark,"bordered":_vm.options.bordered,"borderless":_vm.options.borderless,"outlined":_vm.options.outlined,"striped":_vm.options.striped,"responsive":_vm.options.responsive,"fixed":_vm.options.fixed,"hover":_vm.options.hover,"small":_vm.options.small,"no-border-collapse":_vm.options.noCollapse,"sticky-header":""}},[_vm._l((_vm.tabelify.colgroups),function(cg,i){return _c('colgroup',{key:i,class:{ local: cg.isLocal, foreign: !cg.isLocal },attrs:{"span":cg.size}})}),_vm._v(" "),_c('b-thead',{attrs:{"head-variant":_vm.options.headVariant}},[(_vm.dataframes.length > 1)?_c('b-tr',_vm._l((_vm.tabelify.header),function(c,i){return _c('b-th',_vm._b({key:i,staticClass:"border-0"},'b-th',c.column ? c.column.attrs : {},false),[(c.sourceName)?_c('p',{staticClass:"m-0"},[_vm._v("\n "+_vm._s(c.sourceName)+"\n ")]):_vm._e()])}),1):_vm._e(),_vm._v(" "),_c('b-tr',_vm._l((_vm.tabelify.header),function(c,i){return _c('b-th',{key:i,staticClass:"border-0",class:{ 'pointer': !c.meta.sortKey.includes('.') },on:{"click":function($event){return _vm.handleSort(c.meta.sortKey)}}},[_c('div',{staticClass:"d-flex align-items-center"},[(c.column ? c.column.label : '')?_c('div',{staticClass:"d-flex text-nowrap"},[_vm._v("\n "+_vm._s(c.column.label)+"\n ")]):_vm._e(),_vm._v(" "),(!c.meta.sortKey.includes('.'))?_c('font-awesome-layers',{staticClass:"ml-2"},[_c('font-awesome-icon',{staticClass:"mb-1",style:({
|
|
84082
84334
|
color: _vm.sort.field === c.meta.sortKey && !_vm.sort.descending ? 'black' : 'grey',
|
|
84083
84335
|
}),attrs:{"icon":['fas', 'angle-up']}}),_vm._v(" "),_c('font-awesome-icon',{staticClass:"mt-1",style:({
|
|
84084
84336
|
color: _vm.sort.field === c.meta.sortKey && _vm.sort.descending ? 'black' : 'grey',
|
|
84085
84337
|
}),attrs:{"icon":['fas', 'angle-down']}})],1):_vm._e()],1)])}),1)],1),_vm._v(" "),_c('b-tbody',{staticClass:"h-100"},_vm._l((_vm.tabelify.rows),function(r,i){return _c('b-tr',{key:i,class:{
|
|
84086
84338
|
separator: !!(r[0] || {}).separator,
|
|
84087
84339
|
}},_vm._l((r),function(c,j){return _c('b-td',_vm._b({key:j},'b-td',c.attrs || {},false),[_vm._v("\n "+_vm._s(c.value)+"\n ")])}),1)}),1)],2),_vm._v(" "),_c('b-card-footer',{staticClass:"d-flex p-1 rounded-0"},[_c('b-button-group',{staticClass:"ml-auto"},[_c('b-button',{staticClass:"d-flex align-items-center text-dark px-1",attrs:{"disabled":!_vm.hasPrevPage,"variant":"link"},on:{"click":function($event){return _vm.goToPage()}}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'angle-double-left']}})],1),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center text-dark",attrs:{"disabled":!_vm.hasPrevPage,"variant":"link"},on:{"click":function($event){return _vm.goToPage('prevPage')}}},[_c('font-awesome-icon',{staticClass:"mr-1",attrs:{"icon":['fas', 'angle-left']}}),_vm._v("\n "+_vm._s(_vm.labels.previous)+"\n ")],1),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center text-dark",attrs:{"disabled":!_vm.hasNextPage,"variant":"link"},on:{"click":function($event){return _vm.goToPage('nextPage')}}},[_vm._v("\n "+_vm._s(_vm.labels.next)+"\n "),_c('font-awesome-icon',{staticClass:"ml-1",attrs:{"icon":['fas', 'angle-right']}})],1)],1)],1)],1)};
|
|
84088
|
-
var __vue_staticRenderFns__$
|
|
84340
|
+
var __vue_staticRenderFns__$Q = [];
|
|
84089
84341
|
|
|
84090
84342
|
/* style */
|
|
84091
|
-
const __vue_inject_styles__$
|
|
84343
|
+
const __vue_inject_styles__$X = function (inject) {
|
|
84092
84344
|
if (!inject) return
|
|
84093
|
-
inject("data-v-
|
|
84345
|
+
inject("data-v-1a305c88_0", { source: ".foreign[data-v-1a305c88]{border:1px solid rgba(22,36,37,.8);border-top:0;border-bottom:0}.separator[data-v-1a305c88]{border-top:2px solid rgba(22,36,37,.5)}.card-rounded[data-v-1a305c88]{border-radius:1rem 1rem 0 0}", map: undefined, media: undefined });
|
|
84094
84346
|
|
|
84095
84347
|
};
|
|
84096
84348
|
/* scoped */
|
|
84097
|
-
const __vue_scope_id__$
|
|
84349
|
+
const __vue_scope_id__$X = "data-v-1a305c88";
|
|
84098
84350
|
/* module identifier */
|
|
84099
|
-
const __vue_module_identifier__$
|
|
84351
|
+
const __vue_module_identifier__$X = undefined;
|
|
84100
84352
|
/* functional template */
|
|
84101
|
-
const __vue_is_functional_template__$
|
|
84353
|
+
const __vue_is_functional_template__$X = false;
|
|
84102
84354
|
/* style inject SSR */
|
|
84103
84355
|
|
|
84104
84356
|
/* style inject shadow dom */
|
|
84105
84357
|
|
|
84106
84358
|
|
|
84107
84359
|
|
|
84108
|
-
const __vue_component__$
|
|
84109
|
-
{ render: __vue_render__$
|
|
84110
|
-
__vue_inject_styles__$
|
|
84111
|
-
__vue_script__$
|
|
84112
|
-
__vue_scope_id__$
|
|
84113
|
-
__vue_is_functional_template__$
|
|
84114
|
-
__vue_module_identifier__$
|
|
84360
|
+
const __vue_component__$X = /*#__PURE__*/normalizeComponent(
|
|
84361
|
+
{ render: __vue_render__$Q, staticRenderFns: __vue_staticRenderFns__$Q },
|
|
84362
|
+
__vue_inject_styles__$X,
|
|
84363
|
+
__vue_script__$W,
|
|
84364
|
+
__vue_scope_id__$X,
|
|
84365
|
+
__vue_is_functional_template__$X,
|
|
84366
|
+
__vue_module_identifier__$X,
|
|
84115
84367
|
false,
|
|
84116
84368
|
createInjector,
|
|
84117
84369
|
undefined,
|
|
@@ -84119,25 +84371,25 @@ var __vue_staticRenderFns__$P = [];
|
|
|
84119
84371
|
);
|
|
84120
84372
|
|
|
84121
84373
|
//
|
|
84122
|
-
var script$
|
|
84374
|
+
var script$X = {
|
|
84123
84375
|
extends: __vue_component__$T
|
|
84124
84376
|
};
|
|
84125
84377
|
|
|
84126
84378
|
/* script */
|
|
84127
|
-
const __vue_script__$
|
|
84379
|
+
const __vue_script__$X = script$X;
|
|
84128
84380
|
|
|
84129
84381
|
/* template */
|
|
84130
|
-
var __vue_render__$
|
|
84131
|
-
var __vue_staticRenderFns__$
|
|
84382
|
+
var __vue_render__$R = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.options)?_c('div',{staticClass:"p-2",domProps:{"innerHTML":_vm._s(_vm.options.value)}}):_vm._e()};
|
|
84383
|
+
var __vue_staticRenderFns__$R = [];
|
|
84132
84384
|
|
|
84133
84385
|
/* style */
|
|
84134
|
-
const __vue_inject_styles__$
|
|
84386
|
+
const __vue_inject_styles__$Y = undefined;
|
|
84135
84387
|
/* scoped */
|
|
84136
|
-
const __vue_scope_id__$
|
|
84388
|
+
const __vue_scope_id__$Y = undefined;
|
|
84137
84389
|
/* module identifier */
|
|
84138
|
-
const __vue_module_identifier__$
|
|
84390
|
+
const __vue_module_identifier__$Y = undefined;
|
|
84139
84391
|
/* functional template */
|
|
84140
|
-
const __vue_is_functional_template__$
|
|
84392
|
+
const __vue_is_functional_template__$Y = false;
|
|
84141
84393
|
/* style inject */
|
|
84142
84394
|
|
|
84143
84395
|
/* style inject SSR */
|
|
@@ -84146,13 +84398,358 @@ var __vue_staticRenderFns__$Q = [];
|
|
|
84146
84398
|
|
|
84147
84399
|
|
|
84148
84400
|
|
|
84149
|
-
const __vue_component__$
|
|
84150
|
-
{ render: __vue_render__$
|
|
84151
|
-
__vue_inject_styles__$
|
|
84152
|
-
__vue_script__$
|
|
84153
|
-
__vue_scope_id__$
|
|
84154
|
-
__vue_is_functional_template__$
|
|
84155
|
-
__vue_module_identifier__$
|
|
84401
|
+
const __vue_component__$Y = /*#__PURE__*/normalizeComponent(
|
|
84402
|
+
{ render: __vue_render__$R, staticRenderFns: __vue_staticRenderFns__$R },
|
|
84403
|
+
__vue_inject_styles__$Y,
|
|
84404
|
+
__vue_script__$X,
|
|
84405
|
+
__vue_scope_id__$Y,
|
|
84406
|
+
__vue_is_functional_template__$Y,
|
|
84407
|
+
__vue_module_identifier__$Y,
|
|
84408
|
+
false,
|
|
84409
|
+
undefined,
|
|
84410
|
+
undefined,
|
|
84411
|
+
undefined
|
|
84412
|
+
);
|
|
84413
|
+
|
|
84414
|
+
//
|
|
84415
|
+
var script$Y = {
|
|
84416
|
+
components: {
|
|
84417
|
+
VueSelect: vueSelect.VueSelect
|
|
84418
|
+
},
|
|
84419
|
+
props: {
|
|
84420
|
+
value: {
|
|
84421
|
+
type: String,
|
|
84422
|
+
default: ''
|
|
84423
|
+
},
|
|
84424
|
+
options: {
|
|
84425
|
+
type: Array,
|
|
84426
|
+
required: true
|
|
84427
|
+
},
|
|
84428
|
+
placeholder: {
|
|
84429
|
+
type: String,
|
|
84430
|
+
default: ''
|
|
84431
|
+
},
|
|
84432
|
+
// ID of sensitivityLevel with the maximum allowed level
|
|
84433
|
+
maxLevel: {
|
|
84434
|
+
type: String,
|
|
84435
|
+
default: undefined
|
|
84436
|
+
},
|
|
84437
|
+
disabled: {
|
|
84438
|
+
type: Boolean,
|
|
84439
|
+
default: false
|
|
84440
|
+
}
|
|
84441
|
+
},
|
|
84442
|
+
computed: {
|
|
84443
|
+
_value() {
|
|
84444
|
+
return this.value === cortezaJs.NoID ? undefined : this.value;
|
|
84445
|
+
},
|
|
84446
|
+
|
|
84447
|
+
_disabled() {
|
|
84448
|
+
return this.disabled || this.maxLevel === cortezaJs.NoID;
|
|
84449
|
+
},
|
|
84450
|
+
|
|
84451
|
+
sensitivityLevels() {
|
|
84452
|
+
if (this.maxLevel === cortezaJs.NoID) {
|
|
84453
|
+
return [];
|
|
84454
|
+
}
|
|
84455
|
+
|
|
84456
|
+
if (this.maxLevel) {
|
|
84457
|
+
const maxLevelConnection = this.options.find(({
|
|
84458
|
+
sensitivityLevelID
|
|
84459
|
+
}) => sensitivityLevelID === this.maxLevel);
|
|
84460
|
+
|
|
84461
|
+
if (maxLevelConnection) {
|
|
84462
|
+
return this.options.filter(({
|
|
84463
|
+
level
|
|
84464
|
+
}) => level <= maxLevelConnection.level);
|
|
84465
|
+
}
|
|
84466
|
+
}
|
|
84467
|
+
|
|
84468
|
+
return this.options;
|
|
84469
|
+
}
|
|
84470
|
+
|
|
84471
|
+
},
|
|
84472
|
+
watch: {
|
|
84473
|
+
// If sensitivityLevels change because of maxLevel change, then assert if value is still allowed, otherwise reset it
|
|
84474
|
+
sensitivityLevels: {
|
|
84475
|
+
immediate: true,
|
|
84476
|
+
|
|
84477
|
+
handler() {
|
|
84478
|
+
const isValueCompatible = this.sensitivityLevels.some(({
|
|
84479
|
+
sensitivityLevelID
|
|
84480
|
+
}) => sensitivityLevelID === this.value);
|
|
84481
|
+
|
|
84482
|
+
if (!isValueCompatible) {
|
|
84483
|
+
this.$emit('input', cortezaJs.NoID);
|
|
84484
|
+
}
|
|
84485
|
+
}
|
|
84486
|
+
|
|
84487
|
+
}
|
|
84488
|
+
},
|
|
84489
|
+
methods: {
|
|
84490
|
+
getLabel({
|
|
84491
|
+
handle,
|
|
84492
|
+
meta = {}
|
|
84493
|
+
}) {
|
|
84494
|
+
return meta.name || handle;
|
|
84495
|
+
},
|
|
84496
|
+
|
|
84497
|
+
onInput(event) {
|
|
84498
|
+
this.$emit('input', event ? event : cortezaJs.NoID);
|
|
84499
|
+
}
|
|
84500
|
+
|
|
84501
|
+
}
|
|
84502
|
+
};
|
|
84503
|
+
|
|
84504
|
+
/* script */
|
|
84505
|
+
const __vue_script__$Y = script$Y;
|
|
84506
|
+
|
|
84507
|
+
/* template */
|
|
84508
|
+
var __vue_render__$S = 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}})};
|
|
84509
|
+
var __vue_staticRenderFns__$S = [];
|
|
84510
|
+
|
|
84511
|
+
/* style */
|
|
84512
|
+
const __vue_inject_styles__$Z = undefined;
|
|
84513
|
+
/* scoped */
|
|
84514
|
+
const __vue_scope_id__$Z = undefined;
|
|
84515
|
+
/* module identifier */
|
|
84516
|
+
const __vue_module_identifier__$Z = undefined;
|
|
84517
|
+
/* functional template */
|
|
84518
|
+
const __vue_is_functional_template__$Z = false;
|
|
84519
|
+
/* style inject */
|
|
84520
|
+
|
|
84521
|
+
/* style inject SSR */
|
|
84522
|
+
|
|
84523
|
+
/* style inject shadow dom */
|
|
84524
|
+
|
|
84525
|
+
|
|
84526
|
+
|
|
84527
|
+
const __vue_component__$Z = /*#__PURE__*/normalizeComponent(
|
|
84528
|
+
{ render: __vue_render__$S, staticRenderFns: __vue_staticRenderFns__$S },
|
|
84529
|
+
__vue_inject_styles__$Z,
|
|
84530
|
+
__vue_script__$Y,
|
|
84531
|
+
__vue_scope_id__$Z,
|
|
84532
|
+
__vue_is_functional_template__$Z,
|
|
84533
|
+
__vue_module_identifier__$Z,
|
|
84534
|
+
false,
|
|
84535
|
+
undefined,
|
|
84536
|
+
undefined,
|
|
84537
|
+
undefined
|
|
84538
|
+
);
|
|
84539
|
+
|
|
84540
|
+
//
|
|
84541
|
+
var script$Z = {
|
|
84542
|
+
name: 'ResourceList',
|
|
84543
|
+
components: {
|
|
84544
|
+
CInputSearch: __vue_component__$e
|
|
84545
|
+
},
|
|
84546
|
+
props: {
|
|
84547
|
+
primaryKey: {
|
|
84548
|
+
type: String,
|
|
84549
|
+
required: true
|
|
84550
|
+
},
|
|
84551
|
+
filter: {
|
|
84552
|
+
type: Object,
|
|
84553
|
+
required: true
|
|
84554
|
+
},
|
|
84555
|
+
sorting: {
|
|
84556
|
+
type: Object,
|
|
84557
|
+
required: true
|
|
84558
|
+
},
|
|
84559
|
+
pagination: {
|
|
84560
|
+
type: Object,
|
|
84561
|
+
required: true
|
|
84562
|
+
},
|
|
84563
|
+
fields: {
|
|
84564
|
+
type: Array,
|
|
84565
|
+
required: true
|
|
84566
|
+
},
|
|
84567
|
+
// Promise that resolves with an array
|
|
84568
|
+
items: {
|
|
84569
|
+
type: Function,
|
|
84570
|
+
required: true
|
|
84571
|
+
},
|
|
84572
|
+
hideSearch: {
|
|
84573
|
+
type: Boolean
|
|
84574
|
+
},
|
|
84575
|
+
hideTotal: {
|
|
84576
|
+
type: Boolean
|
|
84577
|
+
},
|
|
84578
|
+
hidePagination: {
|
|
84579
|
+
type: Boolean
|
|
84580
|
+
},
|
|
84581
|
+
// Are rows clickable
|
|
84582
|
+
clickable: {
|
|
84583
|
+
type: Boolean,
|
|
84584
|
+
default: false
|
|
84585
|
+
},
|
|
84586
|
+
selectable: {
|
|
84587
|
+
type: Boolean,
|
|
84588
|
+
default: false
|
|
84589
|
+
},
|
|
84590
|
+
isItemSelectable: {
|
|
84591
|
+
type: Function,
|
|
84592
|
+
default: () => true
|
|
84593
|
+
},
|
|
84594
|
+
rowClass: {
|
|
84595
|
+
type: Function,
|
|
84596
|
+
default: () => {}
|
|
84597
|
+
},
|
|
84598
|
+
translations: {
|
|
84599
|
+
type: Object,
|
|
84600
|
+
required: true
|
|
84601
|
+
},
|
|
84602
|
+
queryField: {
|
|
84603
|
+
type: String,
|
|
84604
|
+
default: 'query'
|
|
84605
|
+
}
|
|
84606
|
+
},
|
|
84607
|
+
|
|
84608
|
+
data() {
|
|
84609
|
+
return {
|
|
84610
|
+
selected: [],
|
|
84611
|
+
selectableItemIDs: []
|
|
84612
|
+
};
|
|
84613
|
+
},
|
|
84614
|
+
|
|
84615
|
+
computed: {
|
|
84616
|
+
_fields() {
|
|
84617
|
+
const select = this.selectable ? [{
|
|
84618
|
+
key: 'select',
|
|
84619
|
+
label: '',
|
|
84620
|
+
thStyle: 'width: 0; white-space: nowrap;'
|
|
84621
|
+
}] : [];
|
|
84622
|
+
return [...select, ...this.fields].map(f => {
|
|
84623
|
+
return { ...f,
|
|
84624
|
+
thClass: `${f.thClass || 'border-0'}`
|
|
84625
|
+
};
|
|
84626
|
+
});
|
|
84627
|
+
},
|
|
84628
|
+
|
|
84629
|
+
customFieldSlots() {
|
|
84630
|
+
return [...Object.keys(this.$slots), ...Object.keys(this.$scopedSlots)].filter(s => s !== 'header');
|
|
84631
|
+
},
|
|
84632
|
+
|
|
84633
|
+
disableSelectAll() {
|
|
84634
|
+
return !this.selectableItemIDs.length;
|
|
84635
|
+
},
|
|
84636
|
+
|
|
84637
|
+
allRowsSelected() {
|
|
84638
|
+
return this.selected.length === this.selectableItemIDs.length;
|
|
84639
|
+
},
|
|
84640
|
+
|
|
84641
|
+
getPagination() {
|
|
84642
|
+
const {
|
|
84643
|
+
page = 1,
|
|
84644
|
+
count = 0,
|
|
84645
|
+
limit = 10
|
|
84646
|
+
} = this.pagination;
|
|
84647
|
+
return {
|
|
84648
|
+
from: (page - 1) * limit + 1,
|
|
84649
|
+
to: Math.min(page * limit, count),
|
|
84650
|
+
count
|
|
84651
|
+
};
|
|
84652
|
+
},
|
|
84653
|
+
|
|
84654
|
+
hasPrevPage() {
|
|
84655
|
+
return !this.pagination.prevPage;
|
|
84656
|
+
},
|
|
84657
|
+
|
|
84658
|
+
hasNextPage() {
|
|
84659
|
+
return !this.pagination.nextPage;
|
|
84660
|
+
}
|
|
84661
|
+
|
|
84662
|
+
},
|
|
84663
|
+
methods: {
|
|
84664
|
+
tableRowClasses(item = {}) {
|
|
84665
|
+
return {
|
|
84666
|
+
'pointer': this.clickable,
|
|
84667
|
+
...this.rowClass(item)
|
|
84668
|
+
};
|
|
84669
|
+
},
|
|
84670
|
+
|
|
84671
|
+
_items() {
|
|
84672
|
+
this.selected = [];
|
|
84673
|
+
this.selectableItemIDs = [];
|
|
84674
|
+
return this.items().then((items = []) => {
|
|
84675
|
+
this.selectableItemIDs = items.filter(this.isItemSelectable).map(i => i[this.primaryKey]);
|
|
84676
|
+
return items;
|
|
84677
|
+
});
|
|
84678
|
+
},
|
|
84679
|
+
|
|
84680
|
+
onSelectRow(selected, itemID) {
|
|
84681
|
+
if (selected) {
|
|
84682
|
+
if (this.selected.includes(itemID)) {
|
|
84683
|
+
return;
|
|
84684
|
+
}
|
|
84685
|
+
|
|
84686
|
+
this.selected.push(itemID);
|
|
84687
|
+
} else {
|
|
84688
|
+
const i = this.selected.indexOf(itemID);
|
|
84689
|
+
|
|
84690
|
+
if (i < 0) {
|
|
84691
|
+
return;
|
|
84692
|
+
}
|
|
84693
|
+
|
|
84694
|
+
this.selected.splice(i, 1);
|
|
84695
|
+
}
|
|
84696
|
+
},
|
|
84697
|
+
|
|
84698
|
+
selectAllRows(allSelected = false) {
|
|
84699
|
+
if (allSelected) {
|
|
84700
|
+
this.selected = this.selectableItemIDs;
|
|
84701
|
+
} else {
|
|
84702
|
+
this.selected = [];
|
|
84703
|
+
}
|
|
84704
|
+
},
|
|
84705
|
+
|
|
84706
|
+
goToPage(page) {
|
|
84707
|
+
const pageCursor = this.pagination[page] || '';
|
|
84708
|
+
this.$router.push({
|
|
84709
|
+
path: this.$route.path,
|
|
84710
|
+
query: { ...this.$route.query,
|
|
84711
|
+
pageCursor
|
|
84712
|
+
}
|
|
84713
|
+
});
|
|
84714
|
+
}
|
|
84715
|
+
|
|
84716
|
+
}
|
|
84717
|
+
};
|
|
84718
|
+
|
|
84719
|
+
/* script */
|
|
84720
|
+
const __vue_script__$Z = script$Z;
|
|
84721
|
+
|
|
84722
|
+
/* template */
|
|
84723
|
+
var __vue_render__$T = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:"shadow-sm",attrs:{"no-body":"","header-bg-variant":"white"},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('b-container',{staticClass:"p-0",attrs:{"fluid":"","align-v":"center"}},[_c('b-row',[_c('b-col',{attrs:{"lg":"8"}},[_vm._t("header",null,{"selected":_vm.selected})],2),_vm._v(" "),(!_vm.hideSearch)?_c('b-col',[_c('c-input-search',{attrs:{"placeholder":_vm.translations.searchPlaceholder,"debounce":300},on:{"input":function($event){return _vm.$emit('search')}},model:{value:(_vm.filter[_vm.queryField]),callback:function ($$v) {_vm.$set(_vm.filter, _vm.queryField, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"filter[queryField]"}})],1):_vm._e()],1)],1)]},proxy:true},{key:"footer",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-between"},[_c('div',{staticClass:"text-truncate"},[(!_vm.hideTotal)?_c('div',{staticClass:"text-nowrap font-weight-bold"},[(_vm.pagination.count > 1)?_c('span',[_vm._v("\n "+_vm._s(_vm.$t(("" + (_vm.translations.showingPagination)), _vm.getPagination))+"\n ")]):_c('span',[_vm._v("\n "+_vm._s(_vm.$t(("" + (_vm.translations.singlePluralPagination)), _vm.getPagination))+"\n ")])]):_vm._e()]),_vm._v(" "),(!_vm.hidePagination)?_c('b-button-group',[_c('b-button',{staticClass:"text-dark",attrs:{"disabled":_vm.hasPrevPage,"variant":"link"},on:{"click":function($event){return _vm.goToPage()}}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'angle-double-left']}})],1),_vm._v(" "),_c('b-button',{staticClass:"text-dark",attrs:{"disabled":_vm.hasPrevPage,"variant":"link"},on:{"click":function($event){return _vm.goToPage('prevPage')}}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'angle-left']}}),_vm._v("\n "+_vm._s(_vm.translations.prevPagination)+"\n ")],1),_vm._v(" "),_c('b-button',{staticClass:"text-dark",attrs:{"disabled":_vm.hasNextPage,"variant":"link"},on:{"click":function($event){return _vm.goToPage('nextPage')}}},[_vm._v("\n "+_vm._s(_vm.translations.nextPagination)+"\n "),_c('font-awesome-icon',{attrs:{"icon":['fas', 'angle-right']}})],1)],1):_vm._e()],1)]},proxy:true}],null,true)},[_vm._v(" "),_c('b-card-body',{staticClass:"p-0"},[_c('b-table',{ref:"resourceList",staticClass:"mb-0",attrs:{"id":"resource-list","hover":"","responsive":"","head-variant":"light","primary-key":_vm.primaryKey,"sort-by":_vm.sorting.sortBy,"sort-desc":_vm.sorting.sortDesc,"items":_vm._items,"fields":_vm._fields,"show-empty":"","no-sort-reset":"","tbody-tr-class":_vm.tableRowClasses,"no-local-sorting":""},on:{"update:sortBy":function($event){return _vm.$set(_vm.sorting, "sortBy", $event)},"update:sort-by":function($event){return _vm.$set(_vm.sorting, "sortBy", $event)},"update:sortDesc":function($event){return _vm.$set(_vm.sorting, "sortDesc", $event)},"update:sort-desc":function($event){return _vm.$set(_vm.sorting, "sortDesc", $event)},"row-clicked":function($event){return _vm.$emit('row-clicked', $event)}},scopedSlots:_vm._u([{key:"empty",fn:function(){return [_c('p',{staticClass:"text-center text-dark",staticStyle:{"margin-top":"1vh"},attrs:{"data-test-id":"no-matches"}},[_vm._v("\n "+_vm._s(_vm.translations.noItems)+"\n ")])]},proxy:true},{key:"table-busy",fn:function(){return [_c('div',{staticClass:"text-center"},[_c('b-spinner'),_vm._v(" "),_c('h5',{staticClass:"mt-2 text-dark"},[_vm._v("\n "+_vm._s(_vm.translations.loading)+"\n ")])],1)]},proxy:true},(_vm.selectable)?{key:"head(select)",fn:function(){return [_c('b-checkbox',{staticClass:"ml-1",attrs:{"disabled":_vm.disableSelectAll,"checked":_vm.allRowsSelected && !_vm.disableSelectAll},on:{"change":_vm.selectAllRows}})]},proxy:true}:null,{key:"cell(select)",fn:function(ref){
|
|
84724
|
+
var item = ref.item;
|
|
84725
|
+
return [(_vm.isItemSelectable(item))?_c('b-form-checkbox',{staticClass:"ml-1",attrs:{"checked":_vm.selected.includes(item[_vm.primaryKey])},on:{"change":function($event){return _vm.onSelectRow($event, item[_vm.primaryKey])}}}):_vm._e()]}},_vm._l((_vm.customFieldSlots),function(field){return {key:("cell(" + field + ")"),fn:function(ref){
|
|
84726
|
+
var item = ref.item;
|
|
84727
|
+
return [_vm._t(field,null,{"item":item})]}}})],null,true)})],1)],1)};
|
|
84728
|
+
var __vue_staticRenderFns__$T = [];
|
|
84729
|
+
|
|
84730
|
+
/* style */
|
|
84731
|
+
const __vue_inject_styles__$_ = undefined;
|
|
84732
|
+
/* scoped */
|
|
84733
|
+
const __vue_scope_id__$_ = undefined;
|
|
84734
|
+
/* module identifier */
|
|
84735
|
+
const __vue_module_identifier__$_ = undefined;
|
|
84736
|
+
/* functional template */
|
|
84737
|
+
const __vue_is_functional_template__$_ = false;
|
|
84738
|
+
/* style inject */
|
|
84739
|
+
|
|
84740
|
+
/* style inject SSR */
|
|
84741
|
+
|
|
84742
|
+
/* style inject shadow dom */
|
|
84743
|
+
|
|
84744
|
+
|
|
84745
|
+
|
|
84746
|
+
const __vue_component__$_ = /*#__PURE__*/normalizeComponent(
|
|
84747
|
+
{ render: __vue_render__$T, staticRenderFns: __vue_staticRenderFns__$T },
|
|
84748
|
+
__vue_inject_styles__$_,
|
|
84749
|
+
__vue_script__$Z,
|
|
84750
|
+
__vue_scope_id__$_,
|
|
84751
|
+
__vue_is_functional_template__$_,
|
|
84752
|
+
__vue_module_identifier__$_,
|
|
84156
84753
|
false,
|
|
84157
84754
|
undefined,
|
|
84158
84755
|
undefined,
|
|
@@ -84199,7 +84796,7 @@ function ExtractComponents(cat, ...path) {
|
|
|
84199
84796
|
}
|
|
84200
84797
|
|
|
84201
84798
|
//
|
|
84202
|
-
var script$
|
|
84799
|
+
var script$_ = {
|
|
84203
84800
|
name: 'ComponentList',
|
|
84204
84801
|
props: {
|
|
84205
84802
|
catalogue: {
|
|
@@ -84236,37 +84833,37 @@ var script$X = {
|
|
|
84236
84833
|
};
|
|
84237
84834
|
|
|
84238
84835
|
/* script */
|
|
84239
|
-
const __vue_script__$
|
|
84836
|
+
const __vue_script__$_ = script$_;
|
|
84240
84837
|
|
|
84241
84838
|
/* template */
|
|
84242
|
-
var __vue_render__$
|
|
84243
|
-
var __vue_staticRenderFns__$
|
|
84839
|
+
var __vue_render__$U = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.root)?_c('h5',{staticClass:"mb-0"},[_vm._v("\n "+_vm._s(_vm.group)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.subgroups.length > 0 || _vm.components.length > 0)?_c('div',[_vm._l((_vm.components),function(cmp,i){return _c('div',{key:i,staticClass:"component ml-2",on:{"click":function($event){return _vm.$emit('select', cmp)}}},[_vm._v("\n "+_vm._s(cmp.name || cmp.component.name || 'Untitled')+"\n "),(cmp.wip)?_c('b-badge',{staticClass:"float-right",attrs:{"variant":"warning"}},[_vm._v("\n wip\n ")]):_vm._e()],1)}),_vm._v(" "),_vm._l((_vm.subgroups),function(group){return _c('component-list',{key:group,staticClass:"my-3",attrs:{"catalogue":_vm.catalogue,"path":_vm.path.concat( [group])},on:{"select":function($event){return _vm.$emit('select', $event)}}})})],2):_vm._e()])};
|
|
84840
|
+
var __vue_staticRenderFns__$U = [];
|
|
84244
84841
|
|
|
84245
84842
|
/* style */
|
|
84246
|
-
const __vue_inject_styles__
|
|
84843
|
+
const __vue_inject_styles__$$ = function (inject) {
|
|
84247
84844
|
if (!inject) return
|
|
84248
84845
|
inject("data-v-8b2b254e_0", { source: ".component[data-v-8b2b254e]{cursor:pointer}", map: undefined, media: undefined });
|
|
84249
84846
|
|
|
84250
84847
|
};
|
|
84251
84848
|
/* scoped */
|
|
84252
|
-
const __vue_scope_id__
|
|
84849
|
+
const __vue_scope_id__$$ = "data-v-8b2b254e";
|
|
84253
84850
|
/* module identifier */
|
|
84254
|
-
const __vue_module_identifier__
|
|
84851
|
+
const __vue_module_identifier__$$ = undefined;
|
|
84255
84852
|
/* functional template */
|
|
84256
|
-
const __vue_is_functional_template__
|
|
84853
|
+
const __vue_is_functional_template__$$ = false;
|
|
84257
84854
|
/* style inject SSR */
|
|
84258
84855
|
|
|
84259
84856
|
/* style inject shadow dom */
|
|
84260
84857
|
|
|
84261
84858
|
|
|
84262
84859
|
|
|
84263
|
-
const __vue_component__
|
|
84264
|
-
{ render: __vue_render__$
|
|
84265
|
-
__vue_inject_styles__
|
|
84266
|
-
__vue_script__$
|
|
84267
|
-
__vue_scope_id__
|
|
84268
|
-
__vue_is_functional_template__
|
|
84269
|
-
__vue_module_identifier__
|
|
84860
|
+
const __vue_component__$$ = /*#__PURE__*/normalizeComponent(
|
|
84861
|
+
{ render: __vue_render__$U, staticRenderFns: __vue_staticRenderFns__$U },
|
|
84862
|
+
__vue_inject_styles__$$,
|
|
84863
|
+
__vue_script__$_,
|
|
84864
|
+
__vue_scope_id__$$,
|
|
84865
|
+
__vue_is_functional_template__$$,
|
|
84866
|
+
__vue_module_identifier__$$,
|
|
84270
84867
|
false,
|
|
84271
84868
|
createInjector,
|
|
84272
84869
|
undefined,
|
|
@@ -84274,10 +84871,10 @@ var __vue_staticRenderFns__$R = [];
|
|
|
84274
84871
|
);
|
|
84275
84872
|
|
|
84276
84873
|
//
|
|
84277
|
-
var script
|
|
84874
|
+
var script$$ = {
|
|
84278
84875
|
name: 'C3',
|
|
84279
84876
|
components: {
|
|
84280
|
-
ComponentList: __vue_component__
|
|
84877
|
+
ComponentList: __vue_component__$$
|
|
84281
84878
|
},
|
|
84282
84879
|
props: {
|
|
84283
84880
|
catalogue: {
|
|
@@ -84338,37 +84935,37 @@ var script$Y = {
|
|
|
84338
84935
|
};
|
|
84339
84936
|
|
|
84340
84937
|
/* script */
|
|
84341
|
-
const __vue_script__
|
|
84938
|
+
const __vue_script__$$ = script$$;
|
|
84342
84939
|
|
|
84343
84940
|
/* template */
|
|
84344
|
-
var __vue_render__$
|
|
84345
|
-
var __vue_staticRenderFns__$
|
|
84941
|
+
var __vue_render__$V = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"layout"},[_c('aside',{staticClass:"sidebar p-2"},[_c('h5',{staticClass:"border-bottom"},[_vm._v("\n C3: Component Catalogue\n ")]),_vm._v(" "),_c('component-list',{attrs:{"catalogue":_vm.catalogue},on:{"select":function($event){return _vm.setCurrent($event)}}})],1),_vm._v(" "),_c('main',{staticClass:"p-5"},[(_vm.current)?_c(_vm.current.component,_vm._b({tag:"component"},'component',_vm.current.props,false)):_c('p',{staticClass:"text-center"},[_vm._v("\n Select a component from the C3 Catalogue and start hacking :)\n ")])],1),_vm._v(" "),(_vm.current)?_c('div',{staticClass:"controls px-5 py-2 mt-2"},[_vm._l((_vm.controlGroups),function(cg,g){return _c('div',{key:("control-group-" + g),staticClass:"control-group mr-2"},[_c('h3',[_vm._v("\n Controls\n ")]),_vm._v(" "),_vm._l((cg),function(c,i){return _c(c.component,_vm._b({key:i,tag:"component",attrs:{"value":c.value(_vm.current.props)},on:{"update":function($event){return c.update(_vm.current.props, $event)}}},'component',c.props,false))})],2)}),_vm._v(" "),(_vm.current.scenarios)?_c('div',{staticClass:"control-group float-right"},[_c('h3',[_vm._v("\n Pre-set controls\n ")]),_vm._v(" "),_c('ul',{staticClass:"pl-0"},_vm._l((_vm.current.scenarios),function(s,i){return _c('li',{key:i,staticClass:"list-unstyled scenario",on:{"click":function($event){return _vm.setScenario(s)}}},[_vm._v("\n "+_vm._s(s.label)+"\n ")])}),0)]):_vm._e()],2):_vm._e()])};
|
|
84942
|
+
var __vue_staticRenderFns__$V = [];
|
|
84346
84943
|
|
|
84347
84944
|
/* style */
|
|
84348
|
-
const __vue_inject_styles__$
|
|
84945
|
+
const __vue_inject_styles__$10 = function (inject) {
|
|
84349
84946
|
if (!inject) return
|
|
84350
84947
|
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 });
|
|
84351
84948
|
|
|
84352
84949
|
};
|
|
84353
84950
|
/* scoped */
|
|
84354
|
-
const __vue_scope_id__$
|
|
84951
|
+
const __vue_scope_id__$10 = undefined;
|
|
84355
84952
|
/* module identifier */
|
|
84356
|
-
const __vue_module_identifier__$
|
|
84953
|
+
const __vue_module_identifier__$10 = undefined;
|
|
84357
84954
|
/* functional template */
|
|
84358
|
-
const __vue_is_functional_template__$
|
|
84955
|
+
const __vue_is_functional_template__$10 = false;
|
|
84359
84956
|
/* style inject SSR */
|
|
84360
84957
|
|
|
84361
84958
|
/* style inject shadow dom */
|
|
84362
84959
|
|
|
84363
84960
|
|
|
84364
84961
|
|
|
84365
|
-
const __vue_component__$
|
|
84366
|
-
{ render: __vue_render__$
|
|
84367
|
-
__vue_inject_styles__$
|
|
84368
|
-
__vue_script__
|
|
84369
|
-
__vue_scope_id__$
|
|
84370
|
-
__vue_is_functional_template__$
|
|
84371
|
-
__vue_module_identifier__$
|
|
84962
|
+
const __vue_component__$10 = /*#__PURE__*/normalizeComponent(
|
|
84963
|
+
{ render: __vue_render__$V, staticRenderFns: __vue_staticRenderFns__$V },
|
|
84964
|
+
__vue_inject_styles__$10,
|
|
84965
|
+
__vue_script__$$,
|
|
84966
|
+
__vue_scope_id__$10,
|
|
84967
|
+
__vue_is_functional_template__$10,
|
|
84968
|
+
__vue_module_identifier__$10,
|
|
84372
84969
|
false,
|
|
84373
84970
|
createInjector,
|
|
84374
84971
|
undefined,
|
|
@@ -84386,7 +84983,7 @@ var __vue_staticRenderFns__$S = [];
|
|
|
84386
84983
|
//
|
|
84387
84984
|
//
|
|
84388
84985
|
//
|
|
84389
|
-
var script$
|
|
84986
|
+
var script$10 = {
|
|
84390
84987
|
props: {
|
|
84391
84988
|
label: {
|
|
84392
84989
|
required: true,
|
|
@@ -84400,20 +84997,20 @@ var script$Z = {
|
|
|
84400
84997
|
};
|
|
84401
84998
|
|
|
84402
84999
|
/* script */
|
|
84403
|
-
const __vue_script__$
|
|
85000
|
+
const __vue_script__$10 = script$10;
|
|
84404
85001
|
|
|
84405
85002
|
/* template */
|
|
84406
|
-
var __vue_render__$
|
|
84407
|
-
var __vue_staticRenderFns__$
|
|
85003
|
+
var __vue_render__$W = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form-group',{attrs:{"label":_vm.label}},[_c('b-form-input',{attrs:{"value":_vm.value},on:{"update":function($event){return _vm.$emit('update', $event)}}})],1)};
|
|
85004
|
+
var __vue_staticRenderFns__$W = [];
|
|
84408
85005
|
|
|
84409
85006
|
/* style */
|
|
84410
|
-
const __vue_inject_styles__$
|
|
85007
|
+
const __vue_inject_styles__$11 = undefined;
|
|
84411
85008
|
/* scoped */
|
|
84412
|
-
const __vue_scope_id__$
|
|
85009
|
+
const __vue_scope_id__$11 = undefined;
|
|
84413
85010
|
/* module identifier */
|
|
84414
|
-
const __vue_module_identifier__$
|
|
85011
|
+
const __vue_module_identifier__$11 = undefined;
|
|
84415
85012
|
/* functional template */
|
|
84416
|
-
const __vue_is_functional_template__$
|
|
85013
|
+
const __vue_is_functional_template__$11 = false;
|
|
84417
85014
|
/* style inject */
|
|
84418
85015
|
|
|
84419
85016
|
/* style inject SSR */
|
|
@@ -84422,13 +85019,13 @@ var __vue_staticRenderFns__$T = [];
|
|
|
84422
85019
|
|
|
84423
85020
|
|
|
84424
85021
|
|
|
84425
|
-
const __vue_component__$
|
|
84426
|
-
{ render: __vue_render__$
|
|
84427
|
-
__vue_inject_styles__$
|
|
84428
|
-
__vue_script__$
|
|
84429
|
-
__vue_scope_id__$
|
|
84430
|
-
__vue_is_functional_template__$
|
|
84431
|
-
__vue_module_identifier__$
|
|
85022
|
+
const __vue_component__$11 = /*#__PURE__*/normalizeComponent(
|
|
85023
|
+
{ render: __vue_render__$W, staticRenderFns: __vue_staticRenderFns__$W },
|
|
85024
|
+
__vue_inject_styles__$11,
|
|
85025
|
+
__vue_script__$10,
|
|
85026
|
+
__vue_scope_id__$11,
|
|
85027
|
+
__vue_is_functional_template__$11,
|
|
85028
|
+
__vue_module_identifier__$11,
|
|
84432
85029
|
false,
|
|
84433
85030
|
undefined,
|
|
84434
85031
|
undefined,
|
|
@@ -84446,7 +85043,7 @@ var __vue_staticRenderFns__$T = [];
|
|
|
84446
85043
|
//
|
|
84447
85044
|
//
|
|
84448
85045
|
//
|
|
84449
|
-
var script$
|
|
85046
|
+
var script$11 = {
|
|
84450
85047
|
props: {
|
|
84451
85048
|
label: {
|
|
84452
85049
|
required: true,
|
|
@@ -84460,20 +85057,20 @@ var script$_ = {
|
|
|
84460
85057
|
};
|
|
84461
85058
|
|
|
84462
85059
|
/* script */
|
|
84463
|
-
const __vue_script__$
|
|
85060
|
+
const __vue_script__$11 = script$11;
|
|
84464
85061
|
|
|
84465
85062
|
/* template */
|
|
84466
|
-
var __vue_render__$
|
|
84467
|
-
var __vue_staticRenderFns__$
|
|
85063
|
+
var __vue_render__$X = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form-group',{attrs:{"label":_vm.label}},[_c('b-form-textarea',{attrs:{"value":_vm.value},on:{"update":function($event){return _vm.$emit('update', $event)}}})],1)};
|
|
85064
|
+
var __vue_staticRenderFns__$X = [];
|
|
84468
85065
|
|
|
84469
85066
|
/* style */
|
|
84470
|
-
const __vue_inject_styles__
|
|
85067
|
+
const __vue_inject_styles__$12 = undefined;
|
|
84471
85068
|
/* scoped */
|
|
84472
|
-
const __vue_scope_id__
|
|
85069
|
+
const __vue_scope_id__$12 = undefined;
|
|
84473
85070
|
/* module identifier */
|
|
84474
|
-
const __vue_module_identifier__
|
|
85071
|
+
const __vue_module_identifier__$12 = undefined;
|
|
84475
85072
|
/* functional template */
|
|
84476
|
-
const __vue_is_functional_template__
|
|
85073
|
+
const __vue_is_functional_template__$12 = false;
|
|
84477
85074
|
/* style inject */
|
|
84478
85075
|
|
|
84479
85076
|
/* style inject SSR */
|
|
@@ -84482,13 +85079,13 @@ var __vue_staticRenderFns__$U = [];
|
|
|
84482
85079
|
|
|
84483
85080
|
|
|
84484
85081
|
|
|
84485
|
-
const __vue_component__
|
|
84486
|
-
{ render: __vue_render__$
|
|
84487
|
-
__vue_inject_styles__
|
|
84488
|
-
__vue_script__$
|
|
84489
|
-
__vue_scope_id__
|
|
84490
|
-
__vue_is_functional_template__
|
|
84491
|
-
__vue_module_identifier__
|
|
85082
|
+
const __vue_component__$12 = /*#__PURE__*/normalizeComponent(
|
|
85083
|
+
{ render: __vue_render__$X, staticRenderFns: __vue_staticRenderFns__$X },
|
|
85084
|
+
__vue_inject_styles__$12,
|
|
85085
|
+
__vue_script__$11,
|
|
85086
|
+
__vue_scope_id__$12,
|
|
85087
|
+
__vue_is_functional_template__$12,
|
|
85088
|
+
__vue_module_identifier__$12,
|
|
84492
85089
|
false,
|
|
84493
85090
|
undefined,
|
|
84494
85091
|
undefined,
|
|
@@ -84505,7 +85102,7 @@ var __vue_staticRenderFns__$U = [];
|
|
|
84505
85102
|
//
|
|
84506
85103
|
//
|
|
84507
85104
|
//
|
|
84508
|
-
var script
|
|
85105
|
+
var script$12 = {
|
|
84509
85106
|
props: {
|
|
84510
85107
|
label: {
|
|
84511
85108
|
required: true,
|
|
@@ -84519,20 +85116,20 @@ var script$$ = {
|
|
|
84519
85116
|
};
|
|
84520
85117
|
|
|
84521
85118
|
/* script */
|
|
84522
|
-
const __vue_script__
|
|
85119
|
+
const __vue_script__$12 = script$12;
|
|
84523
85120
|
|
|
84524
85121
|
/* template */
|
|
84525
|
-
var __vue_render__$
|
|
84526
|
-
var __vue_staticRenderFns__$
|
|
85122
|
+
var __vue_render__$Y = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form-group',[_c('b-form-checkbox',{attrs:{"checked":_vm.value},on:{"change":function($event){return _vm.$emit('update', $event)}}},[_vm._v("\n "+_vm._s(_vm.label)+"\n ")])],1)};
|
|
85123
|
+
var __vue_staticRenderFns__$Y = [];
|
|
84527
85124
|
|
|
84528
85125
|
/* style */
|
|
84529
|
-
const __vue_inject_styles__$
|
|
85126
|
+
const __vue_inject_styles__$13 = undefined;
|
|
84530
85127
|
/* scoped */
|
|
84531
|
-
const __vue_scope_id__$
|
|
85128
|
+
const __vue_scope_id__$13 = undefined;
|
|
84532
85129
|
/* module identifier */
|
|
84533
|
-
const __vue_module_identifier__$
|
|
85130
|
+
const __vue_module_identifier__$13 = undefined;
|
|
84534
85131
|
/* functional template */
|
|
84535
|
-
const __vue_is_functional_template__$
|
|
85132
|
+
const __vue_is_functional_template__$13 = false;
|
|
84536
85133
|
/* style inject */
|
|
84537
85134
|
|
|
84538
85135
|
/* style inject SSR */
|
|
@@ -84541,13 +85138,13 @@ var __vue_staticRenderFns__$V = [];
|
|
|
84541
85138
|
|
|
84542
85139
|
|
|
84543
85140
|
|
|
84544
|
-
const __vue_component__$
|
|
84545
|
-
{ render: __vue_render__$
|
|
84546
|
-
__vue_inject_styles__$
|
|
84547
|
-
__vue_script__
|
|
84548
|
-
__vue_scope_id__$
|
|
84549
|
-
__vue_is_functional_template__$
|
|
84550
|
-
__vue_module_identifier__$
|
|
85141
|
+
const __vue_component__$13 = /*#__PURE__*/normalizeComponent(
|
|
85142
|
+
{ render: __vue_render__$Y, staticRenderFns: __vue_staticRenderFns__$Y },
|
|
85143
|
+
__vue_inject_styles__$13,
|
|
85144
|
+
__vue_script__$12,
|
|
85145
|
+
__vue_scope_id__$13,
|
|
85146
|
+
__vue_is_functional_template__$13,
|
|
85147
|
+
__vue_module_identifier__$13,
|
|
84551
85148
|
false,
|
|
84552
85149
|
undefined,
|
|
84553
85150
|
undefined,
|
|
@@ -84566,7 +85163,7 @@ var __vue_staticRenderFns__$V = [];
|
|
|
84566
85163
|
//
|
|
84567
85164
|
//
|
|
84568
85165
|
//
|
|
84569
|
-
var script$
|
|
85166
|
+
var script$13 = {
|
|
84570
85167
|
props: {
|
|
84571
85168
|
label: {
|
|
84572
85169
|
required: true,
|
|
@@ -84584,20 +85181,20 @@ var script$10 = {
|
|
|
84584
85181
|
};
|
|
84585
85182
|
|
|
84586
85183
|
/* script */
|
|
84587
|
-
const __vue_script__$
|
|
85184
|
+
const __vue_script__$13 = script$13;
|
|
84588
85185
|
|
|
84589
85186
|
/* template */
|
|
84590
|
-
var __vue_render__$
|
|
84591
|
-
var __vue_staticRenderFns__$
|
|
85187
|
+
var __vue_render__$Z = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form-group',{attrs:{"label":_vm.label}},[_c('b-form-select',{attrs:{"value":_vm.value,"options":_vm.options},on:{"input":function($event){return _vm.$emit('update', $event)}}})],1)};
|
|
85188
|
+
var __vue_staticRenderFns__$Z = [];
|
|
84592
85189
|
|
|
84593
85190
|
/* style */
|
|
84594
|
-
const __vue_inject_styles__$
|
|
85191
|
+
const __vue_inject_styles__$14 = undefined;
|
|
84595
85192
|
/* scoped */
|
|
84596
|
-
const __vue_scope_id__$
|
|
85193
|
+
const __vue_scope_id__$14 = undefined;
|
|
84597
85194
|
/* module identifier */
|
|
84598
|
-
const __vue_module_identifier__$
|
|
85195
|
+
const __vue_module_identifier__$14 = undefined;
|
|
84599
85196
|
/* functional template */
|
|
84600
|
-
const __vue_is_functional_template__$
|
|
85197
|
+
const __vue_is_functional_template__$14 = false;
|
|
84601
85198
|
/* style inject */
|
|
84602
85199
|
|
|
84603
85200
|
/* style inject SSR */
|
|
@@ -84606,13 +85203,13 @@ var __vue_staticRenderFns__$W = [];
|
|
|
84606
85203
|
|
|
84607
85204
|
|
|
84608
85205
|
|
|
84609
|
-
const __vue_component__$
|
|
84610
|
-
{ render: __vue_render__$
|
|
84611
|
-
__vue_inject_styles__$
|
|
84612
|
-
__vue_script__$
|
|
84613
|
-
__vue_scope_id__$
|
|
84614
|
-
__vue_is_functional_template__$
|
|
84615
|
-
__vue_module_identifier__$
|
|
85206
|
+
const __vue_component__$14 = /*#__PURE__*/normalizeComponent(
|
|
85207
|
+
{ render: __vue_render__$Z, staticRenderFns: __vue_staticRenderFns__$Z },
|
|
85208
|
+
__vue_inject_styles__$14,
|
|
85209
|
+
__vue_script__$13,
|
|
85210
|
+
__vue_scope_id__$14,
|
|
85211
|
+
__vue_is_functional_template__$14,
|
|
85212
|
+
__vue_module_identifier__$14,
|
|
84616
85213
|
false,
|
|
84617
85214
|
undefined,
|
|
84618
85215
|
undefined,
|
|
@@ -84634,16 +85231,16 @@ function generic(component, { handler, props }) {
|
|
|
84634
85231
|
props }, handler);
|
|
84635
85232
|
}
|
|
84636
85233
|
function input(label, handler) {
|
|
84637
|
-
return generic(__vue_component__$
|
|
85234
|
+
return generic(__vue_component__$11, { handler, props: { label } });
|
|
84638
85235
|
}
|
|
84639
85236
|
function textarea(label, handler) {
|
|
84640
|
-
return generic(__vue_component__
|
|
85237
|
+
return generic(__vue_component__$12, { handler, props: { label } });
|
|
84641
85238
|
}
|
|
84642
85239
|
function checkbox(label, handler) {
|
|
84643
|
-
return generic(__vue_component__$
|
|
85240
|
+
return generic(__vue_component__$13, { handler, props: { label } });
|
|
84644
85241
|
}
|
|
84645
85242
|
function select(label, handler, options) {
|
|
84646
|
-
return generic(__vue_component__$
|
|
85243
|
+
return generic(__vue_component__$14, {
|
|
84647
85244
|
handler,
|
|
84648
85245
|
props: {
|
|
84649
85246
|
label,
|
|
@@ -84662,7 +85259,7 @@ var controls = /*#__PURE__*/Object.freeze({
|
|
|
84662
85259
|
});
|
|
84663
85260
|
|
|
84664
85261
|
var index$2 = {
|
|
84665
|
-
View: __vue_component__$
|
|
85262
|
+
View: __vue_component__$10,
|
|
84666
85263
|
controls,
|
|
84667
85264
|
};
|
|
84668
85265
|
|
|
@@ -84679,10 +85276,10 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
84679
85276
|
CInputDateTime: __vue_component__$b,
|
|
84680
85277
|
CInputPresort: __vue_component__$c,
|
|
84681
85278
|
CInputCron: __vue_component__$d,
|
|
84682
|
-
|
|
85279
|
+
CInputSearch: __vue_component__$e,
|
|
85280
|
+
CRichTextInput: __vue_component__$n,
|
|
84683
85281
|
CLightbox: __vue_component__$5,
|
|
84684
|
-
CPermissionsButton: __vue_component__$
|
|
84685
|
-
CPermissionsForm: __vue_component__$r,
|
|
85282
|
+
CPermissionsButton: __vue_component__$o,
|
|
84686
85283
|
CPermissionsModal: __vue_component__$s,
|
|
84687
85284
|
CLoaderLogo: __vue_component__$E,
|
|
84688
85285
|
CTopbar: __vue_component__$F,
|
|
@@ -84695,10 +85292,13 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
84695
85292
|
CReminderSidebar: __vue_component__$Q,
|
|
84696
85293
|
CItemPicker: __vue_component__$S,
|
|
84697
85294
|
CItemPickerItem: __vue_component__$R,
|
|
84698
|
-
CReportChart: __vue_component__$
|
|
84699
|
-
CReportMetric: __vue_component__$
|
|
84700
|
-
CReportTable: __vue_component__$
|
|
84701
|
-
CReportText: __vue_component__$
|
|
85295
|
+
CReportChart: __vue_component__$V,
|
|
85296
|
+
CReportMetric: __vue_component__$W,
|
|
85297
|
+
CReportTable: __vue_component__$X,
|
|
85298
|
+
CReportText: __vue_component__$Y,
|
|
85299
|
+
CSensitivityLevelPicker: __vue_component__$Z,
|
|
85300
|
+
CResourceList: __vue_component__$_,
|
|
85301
|
+
CChart: __vue_component__$U,
|
|
84702
85302
|
C3: index$2,
|
|
84703
85303
|
CPrompts: __vue_component__$D,
|
|
84704
85304
|
CPromptModal: __vue_component__$C,
|
|
@@ -84934,7 +85534,7 @@ function resumeState(api, { sessionID, stateID }, input) {
|
|
|
84934
85534
|
}
|
|
84935
85535
|
function cancelState(api, { sessionID, stateID }) {
|
|
84936
85536
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84937
|
-
return api.
|
|
85537
|
+
return api.sessionCancel({ sessionID, stateID });
|
|
84938
85538
|
});
|
|
84939
85539
|
}
|
|
84940
85540
|
function onlyFresh(existing, fresh) {
|