@cortezaproject/corteza-vue 2022.9.0-dev.1 → 2022.9.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +4 -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 +1219 -663
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1219 -663
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -71514,10 +71514,163 @@ var __vue_staticRenderFns__$b = [];
|
|
|
71514
71514
|
undefined
|
|
71515
71515
|
);
|
|
71516
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
|
+
//
|
|
71555
|
+
//
|
|
71556
|
+
//
|
|
71557
|
+
//
|
|
71558
|
+
//
|
|
71559
|
+
var script$d = {
|
|
71560
|
+
name: 'CInputSearch',
|
|
71561
|
+
props: {
|
|
71562
|
+
value: {
|
|
71563
|
+
type: String,
|
|
71564
|
+
default: ''
|
|
71565
|
+
},
|
|
71566
|
+
placeholder: {
|
|
71567
|
+
type: String,
|
|
71568
|
+
default: ''
|
|
71569
|
+
},
|
|
71570
|
+
size: {
|
|
71571
|
+
type: String
|
|
71572
|
+
},
|
|
71573
|
+
disabled: {
|
|
71574
|
+
type: Boolean
|
|
71575
|
+
},
|
|
71576
|
+
clearable: {
|
|
71577
|
+
type: Boolean,
|
|
71578
|
+
default: true
|
|
71579
|
+
},
|
|
71580
|
+
submittable: {
|
|
71581
|
+
type: Boolean
|
|
71582
|
+
},
|
|
71583
|
+
autocomplete: {
|
|
71584
|
+
type: String,
|
|
71585
|
+
default: 'on'
|
|
71586
|
+
},
|
|
71587
|
+
debounce: {
|
|
71588
|
+
type: Number,
|
|
71589
|
+
default: 0
|
|
71590
|
+
}
|
|
71591
|
+
},
|
|
71592
|
+
computed: {
|
|
71593
|
+
inputType() {
|
|
71594
|
+
return this.clearable ? 'search' : 'text';
|
|
71595
|
+
},
|
|
71596
|
+
|
|
71597
|
+
showSubmittable() {
|
|
71598
|
+
return !this.value || this.value && this.showSubmittableAndClearable;
|
|
71599
|
+
},
|
|
71600
|
+
|
|
71601
|
+
isSubmittable() {
|
|
71602
|
+
return this.submittable ? 'click' : null;
|
|
71603
|
+
},
|
|
71604
|
+
|
|
71605
|
+
showSubmittableAndClearable() {
|
|
71606
|
+
return this.clearable && this.submittable;
|
|
71607
|
+
}
|
|
71608
|
+
|
|
71609
|
+
},
|
|
71610
|
+
methods: {
|
|
71611
|
+
search(e) {
|
|
71612
|
+
if (!this.submittable) {
|
|
71613
|
+
this.$emit('input', e);
|
|
71614
|
+
}
|
|
71615
|
+
},
|
|
71616
|
+
|
|
71617
|
+
submitQuery() {
|
|
71618
|
+
this.$emit('search');
|
|
71619
|
+
},
|
|
71620
|
+
|
|
71621
|
+
clearQuery() {
|
|
71622
|
+
this.$refs.value.focus();
|
|
71623
|
+
this.$emit('input', '');
|
|
71624
|
+
}
|
|
71625
|
+
|
|
71626
|
+
}
|
|
71627
|
+
};
|
|
71628
|
+
|
|
71629
|
+
/* script */
|
|
71630
|
+
const __vue_script__$d = script$d;
|
|
71631
|
+
|
|
71632
|
+
/* template */
|
|
71633
|
+
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:"value",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}}),_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:{
|
|
71634
|
+
'search-icon-border': _vm.showSubmittableAndClearable,
|
|
71635
|
+
'cursor-default': !_vm.isSubmittable
|
|
71636
|
+
},attrs:{"variant":"link"},on:_vm._d({},[_vm.isSubmittable,_vm.submitQuery])},[_c('font-awesome-icon',{class:{'mt-1': _vm.showSubmittableAndClearable},attrs:{"icon":['fas', 'search']}})],1):_vm._e(),_vm._v(" "),_c('input',{attrs:{"type":"submit","hidden":""}})],1)],1)};
|
|
71637
|
+
var __vue_staticRenderFns__$c = [];
|
|
71638
|
+
|
|
71639
|
+
/* style */
|
|
71640
|
+
const __vue_inject_styles__$e = function (inject) {
|
|
71641
|
+
if (!inject) return
|
|
71642
|
+
inject("data-v-6e89977a_0", { source: "input[data-v-6e89977a]:focus::placeholder{color:transparent}input[type=search][data-v-6e89977a]::-webkit-search-cancel-button{-webkit-appearance:none;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-6e89977a]{border:2px solid #e4e9ef}.search-icon-border[data-v-6e89977a]{border-left:2px solid #e4e9ef}.cursor-default[data-v-6e89977a]{cursor:default!important}", map: undefined, media: undefined });
|
|
71643
|
+
|
|
71644
|
+
};
|
|
71645
|
+
/* scoped */
|
|
71646
|
+
const __vue_scope_id__$e = "data-v-6e89977a";
|
|
71647
|
+
/* module identifier */
|
|
71648
|
+
const __vue_module_identifier__$e = undefined;
|
|
71649
|
+
/* functional template */
|
|
71650
|
+
const __vue_is_functional_template__$e = false;
|
|
71651
|
+
/* style inject SSR */
|
|
71652
|
+
|
|
71653
|
+
/* style inject shadow dom */
|
|
71654
|
+
|
|
71655
|
+
|
|
71656
|
+
|
|
71657
|
+
const __vue_component__$e = /*#__PURE__*/normalizeComponent(
|
|
71658
|
+
{ render: __vue_render__$c, staticRenderFns: __vue_staticRenderFns__$c },
|
|
71659
|
+
__vue_inject_styles__$e,
|
|
71660
|
+
__vue_script__$d,
|
|
71661
|
+
__vue_scope_id__$e,
|
|
71662
|
+
__vue_is_functional_template__$e,
|
|
71663
|
+
__vue_module_identifier__$e,
|
|
71664
|
+
false,
|
|
71665
|
+
createInjector,
|
|
71666
|
+
undefined,
|
|
71667
|
+
undefined
|
|
71668
|
+
);
|
|
71669
|
+
|
|
71517
71670
|
/**
|
|
71518
71671
|
* Defines common props, methods between different toolbar item types
|
|
71519
71672
|
*/
|
|
71520
|
-
var script$
|
|
71673
|
+
var script$e = {
|
|
71521
71674
|
props: {
|
|
71522
71675
|
format: {
|
|
71523
71676
|
type: Object,
|
|
@@ -71570,18 +71723,18 @@ var script$d = {
|
|
|
71570
71723
|
};
|
|
71571
71724
|
|
|
71572
71725
|
/* script */
|
|
71573
|
-
const __vue_script__$
|
|
71726
|
+
const __vue_script__$e = script$e;
|
|
71574
71727
|
|
|
71575
71728
|
/* template */
|
|
71576
71729
|
|
|
71577
71730
|
/* style */
|
|
71578
|
-
const __vue_inject_styles__$
|
|
71731
|
+
const __vue_inject_styles__$f = undefined;
|
|
71579
71732
|
/* scoped */
|
|
71580
|
-
const __vue_scope_id__$
|
|
71733
|
+
const __vue_scope_id__$f = undefined;
|
|
71581
71734
|
/* module identifier */
|
|
71582
|
-
const __vue_module_identifier__$
|
|
71735
|
+
const __vue_module_identifier__$f = undefined;
|
|
71583
71736
|
/* functional template */
|
|
71584
|
-
const __vue_is_functional_template__$
|
|
71737
|
+
const __vue_is_functional_template__$f = undefined;
|
|
71585
71738
|
/* style inject */
|
|
71586
71739
|
|
|
71587
71740
|
/* style inject SSR */
|
|
@@ -71590,13 +71743,13 @@ const __vue_script__$d = script$d;
|
|
|
71590
71743
|
|
|
71591
71744
|
|
|
71592
71745
|
|
|
71593
|
-
const __vue_component__$
|
|
71746
|
+
const __vue_component__$f = /*#__PURE__*/normalizeComponent(
|
|
71594
71747
|
{},
|
|
71595
|
-
__vue_inject_styles__$
|
|
71596
|
-
__vue_script__$
|
|
71597
|
-
__vue_scope_id__$
|
|
71598
|
-
__vue_is_functional_template__$
|
|
71599
|
-
__vue_module_identifier__$
|
|
71748
|
+
__vue_inject_styles__$f,
|
|
71749
|
+
__vue_script__$e,
|
|
71750
|
+
__vue_scope_id__$f,
|
|
71751
|
+
__vue_is_functional_template__$f,
|
|
71752
|
+
__vue_module_identifier__$f,
|
|
71600
71753
|
false,
|
|
71601
71754
|
undefined,
|
|
71602
71755
|
undefined,
|
|
@@ -71614,12 +71767,12 @@ n(css,{});
|
|
|
71614
71767
|
* input the URL that should be applied.
|
|
71615
71768
|
*/
|
|
71616
71769
|
|
|
71617
|
-
var script$
|
|
71770
|
+
var script$f = {
|
|
71618
71771
|
name: 't-mark-color',
|
|
71619
71772
|
components: {
|
|
71620
71773
|
Swatches
|
|
71621
71774
|
},
|
|
71622
|
-
extends: __vue_component__$
|
|
71775
|
+
extends: __vue_component__$f,
|
|
71623
71776
|
computed: {
|
|
71624
71777
|
typeStyle() {
|
|
71625
71778
|
return `${this.format.type}-icon`;
|
|
@@ -71629,38 +71782,38 @@ var script$e = {
|
|
|
71629
71782
|
};
|
|
71630
71783
|
|
|
71631
71784
|
/* script */
|
|
71632
|
-
const __vue_script__$
|
|
71785
|
+
const __vue_script__$f = script$f;
|
|
71633
71786
|
|
|
71634
71787
|
/* template */
|
|
71635
|
-
var __vue_render__$
|
|
71636
|
-
var __vue_staticRenderFns__$
|
|
71788
|
+
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)};
|
|
71789
|
+
var __vue_staticRenderFns__$d = [];
|
|
71637
71790
|
|
|
71638
71791
|
/* style */
|
|
71639
|
-
const __vue_inject_styles__$
|
|
71792
|
+
const __vue_inject_styles__$g = function (inject) {
|
|
71640
71793
|
if (!inject) return
|
|
71641
71794
|
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
71795
|
,inject("data-v-90b60574_1", { source: ".tcl-popover .popover-body{padding:0!important}", map: undefined, media: undefined });
|
|
71643
71796
|
|
|
71644
71797
|
};
|
|
71645
71798
|
/* scoped */
|
|
71646
|
-
const __vue_scope_id__$
|
|
71799
|
+
const __vue_scope_id__$g = "data-v-90b60574";
|
|
71647
71800
|
/* module identifier */
|
|
71648
|
-
const __vue_module_identifier__$
|
|
71801
|
+
const __vue_module_identifier__$g = undefined;
|
|
71649
71802
|
/* functional template */
|
|
71650
|
-
const __vue_is_functional_template__$
|
|
71803
|
+
const __vue_is_functional_template__$g = false;
|
|
71651
71804
|
/* style inject SSR */
|
|
71652
71805
|
|
|
71653
71806
|
/* style inject shadow dom */
|
|
71654
71807
|
|
|
71655
71808
|
|
|
71656
71809
|
|
|
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__$
|
|
71810
|
+
const __vue_component__$g = /*#__PURE__*/normalizeComponent(
|
|
71811
|
+
{ render: __vue_render__$d, staticRenderFns: __vue_staticRenderFns__$d },
|
|
71812
|
+
__vue_inject_styles__$g,
|
|
71813
|
+
__vue_script__$f,
|
|
71814
|
+
__vue_scope_id__$g,
|
|
71815
|
+
__vue_is_functional_template__$g,
|
|
71816
|
+
__vue_module_identifier__$g,
|
|
71664
71817
|
false,
|
|
71665
71818
|
createInjector,
|
|
71666
71819
|
undefined,
|
|
@@ -71672,26 +71825,26 @@ var __vue_staticRenderFns__$c = [];
|
|
|
71672
71825
|
* Component is used to display simple formatter options such as bold, italic, ...
|
|
71673
71826
|
*/
|
|
71674
71827
|
|
|
71675
|
-
var script$
|
|
71828
|
+
var script$g = {
|
|
71676
71829
|
name: 't-mark-item',
|
|
71677
|
-
extends: __vue_component__$
|
|
71830
|
+
extends: __vue_component__$f
|
|
71678
71831
|
};
|
|
71679
71832
|
|
|
71680
71833
|
/* script */
|
|
71681
|
-
const __vue_script__$
|
|
71834
|
+
const __vue_script__$g = script$g;
|
|
71682
71835
|
|
|
71683
71836
|
/* template */
|
|
71684
|
-
var __vue_render__$
|
|
71685
|
-
var __vue_staticRenderFns__$
|
|
71837
|
+
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)])};
|
|
71838
|
+
var __vue_staticRenderFns__$e = [];
|
|
71686
71839
|
|
|
71687
71840
|
/* style */
|
|
71688
|
-
const __vue_inject_styles__$
|
|
71841
|
+
const __vue_inject_styles__$h = undefined;
|
|
71689
71842
|
/* scoped */
|
|
71690
|
-
const __vue_scope_id__$
|
|
71843
|
+
const __vue_scope_id__$h = undefined;
|
|
71691
71844
|
/* module identifier */
|
|
71692
|
-
const __vue_module_identifier__$
|
|
71845
|
+
const __vue_module_identifier__$h = undefined;
|
|
71693
71846
|
/* functional template */
|
|
71694
|
-
const __vue_is_functional_template__$
|
|
71847
|
+
const __vue_is_functional_template__$h = false;
|
|
71695
71848
|
/* style inject */
|
|
71696
71849
|
|
|
71697
71850
|
/* style inject SSR */
|
|
@@ -71700,13 +71853,13 @@ var __vue_staticRenderFns__$d = [];
|
|
|
71700
71853
|
|
|
71701
71854
|
|
|
71702
71855
|
|
|
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__$
|
|
71856
|
+
const __vue_component__$h = /*#__PURE__*/normalizeComponent(
|
|
71857
|
+
{ render: __vue_render__$e, staticRenderFns: __vue_staticRenderFns__$e },
|
|
71858
|
+
__vue_inject_styles__$h,
|
|
71859
|
+
__vue_script__$g,
|
|
71860
|
+
__vue_scope_id__$h,
|
|
71861
|
+
__vue_is_functional_template__$h,
|
|
71862
|
+
__vue_module_identifier__$h,
|
|
71710
71863
|
false,
|
|
71711
71864
|
undefined,
|
|
71712
71865
|
undefined,
|
|
@@ -71719,9 +71872,9 @@ var __vue_staticRenderFns__$d = [];
|
|
|
71719
71872
|
* input the URL that should be applied.
|
|
71720
71873
|
*/
|
|
71721
71874
|
|
|
71722
|
-
var script$
|
|
71875
|
+
var script$h = {
|
|
71723
71876
|
name: 't-mark-link',
|
|
71724
|
-
extends: __vue_component__$
|
|
71877
|
+
extends: __vue_component__$f,
|
|
71725
71878
|
props: {
|
|
71726
71879
|
labels: {
|
|
71727
71880
|
type: Object,
|
|
@@ -71786,20 +71939,20 @@ var script$g = {
|
|
|
71786
71939
|
};
|
|
71787
71940
|
|
|
71788
71941
|
/* script */
|
|
71789
|
-
const __vue_script__$
|
|
71942
|
+
const __vue_script__$h = script$h;
|
|
71790
71943
|
|
|
71791
71944
|
/* template */
|
|
71792
|
-
var __vue_render__$
|
|
71793
|
-
var __vue_staticRenderFns__$
|
|
71945
|
+
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)};
|
|
71946
|
+
var __vue_staticRenderFns__$f = [];
|
|
71794
71947
|
|
|
71795
71948
|
/* style */
|
|
71796
|
-
const __vue_inject_styles__$
|
|
71949
|
+
const __vue_inject_styles__$i = undefined;
|
|
71797
71950
|
/* scoped */
|
|
71798
|
-
const __vue_scope_id__$
|
|
71951
|
+
const __vue_scope_id__$i = undefined;
|
|
71799
71952
|
/* module identifier */
|
|
71800
|
-
const __vue_module_identifier__$
|
|
71953
|
+
const __vue_module_identifier__$i = undefined;
|
|
71801
71954
|
/* functional template */
|
|
71802
|
-
const __vue_is_functional_template__$
|
|
71955
|
+
const __vue_is_functional_template__$i = false;
|
|
71803
71956
|
/* style inject */
|
|
71804
71957
|
|
|
71805
71958
|
/* style inject SSR */
|
|
@@ -71808,13 +71961,13 @@ var __vue_staticRenderFns__$e = [];
|
|
|
71808
71961
|
|
|
71809
71962
|
|
|
71810
71963
|
|
|
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__$
|
|
71964
|
+
const __vue_component__$i = /*#__PURE__*/normalizeComponent(
|
|
71965
|
+
{ render: __vue_render__$f, staticRenderFns: __vue_staticRenderFns__$f },
|
|
71966
|
+
__vue_inject_styles__$i,
|
|
71967
|
+
__vue_script__$h,
|
|
71968
|
+
__vue_scope_id__$i,
|
|
71969
|
+
__vue_is_functional_template__$i,
|
|
71970
|
+
__vue_module_identifier__$i,
|
|
71818
71971
|
false,
|
|
71819
71972
|
undefined,
|
|
71820
71973
|
undefined,
|
|
@@ -71822,9 +71975,9 @@ var __vue_staticRenderFns__$e = [];
|
|
|
71822
71975
|
);
|
|
71823
71976
|
|
|
71824
71977
|
var mark = {
|
|
71825
|
-
Color: __vue_component__$
|
|
71826
|
-
Item: __vue_component__$
|
|
71827
|
-
Link: __vue_component__$
|
|
71978
|
+
Color: __vue_component__$g,
|
|
71979
|
+
Item: __vue_component__$h,
|
|
71980
|
+
Link: __vue_component__$i
|
|
71828
71981
|
};
|
|
71829
71982
|
|
|
71830
71983
|
function findDiffStart(a, b, pos) {
|
|
@@ -78644,7 +78797,7 @@ const nodeTypes = getToolbar().filter(({
|
|
|
78644
78797
|
* Defines common props, methods between different toolbar item types
|
|
78645
78798
|
*/
|
|
78646
78799
|
|
|
78647
|
-
var script$
|
|
78800
|
+
var script$i = {
|
|
78648
78801
|
props: {
|
|
78649
78802
|
format: {
|
|
78650
78803
|
type: Object,
|
|
@@ -78759,18 +78912,18 @@ var script$h = {
|
|
|
78759
78912
|
};
|
|
78760
78913
|
|
|
78761
78914
|
/* script */
|
|
78762
|
-
const __vue_script__$
|
|
78915
|
+
const __vue_script__$i = script$i;
|
|
78763
78916
|
|
|
78764
78917
|
/* template */
|
|
78765
78918
|
|
|
78766
78919
|
/* style */
|
|
78767
|
-
const __vue_inject_styles__$
|
|
78920
|
+
const __vue_inject_styles__$j = undefined;
|
|
78768
78921
|
/* scoped */
|
|
78769
|
-
const __vue_scope_id__$
|
|
78922
|
+
const __vue_scope_id__$j = undefined;
|
|
78770
78923
|
/* module identifier */
|
|
78771
|
-
const __vue_module_identifier__$
|
|
78924
|
+
const __vue_module_identifier__$j = undefined;
|
|
78772
78925
|
/* functional template */
|
|
78773
|
-
const __vue_is_functional_template__$
|
|
78926
|
+
const __vue_is_functional_template__$j = undefined;
|
|
78774
78927
|
/* style inject */
|
|
78775
78928
|
|
|
78776
78929
|
/* style inject SSR */
|
|
@@ -78779,13 +78932,13 @@ const __vue_script__$h = script$h;
|
|
|
78779
78932
|
|
|
78780
78933
|
|
|
78781
78934
|
|
|
78782
|
-
const __vue_component__$
|
|
78935
|
+
const __vue_component__$j = /*#__PURE__*/normalizeComponent(
|
|
78783
78936
|
{},
|
|
78784
|
-
__vue_inject_styles__$
|
|
78785
|
-
__vue_script__$
|
|
78786
|
-
__vue_scope_id__$
|
|
78787
|
-
__vue_is_functional_template__$
|
|
78788
|
-
__vue_module_identifier__$
|
|
78937
|
+
__vue_inject_styles__$j,
|
|
78938
|
+
__vue_script__$i,
|
|
78939
|
+
__vue_scope_id__$j,
|
|
78940
|
+
__vue_is_functional_template__$j,
|
|
78941
|
+
__vue_module_identifier__$j,
|
|
78789
78942
|
false,
|
|
78790
78943
|
undefined,
|
|
78791
78944
|
undefined,
|
|
@@ -78797,26 +78950,26 @@ const __vue_script__$h = script$h;
|
|
|
78797
78950
|
* Component is used to display node types; paragraph, headding, ...
|
|
78798
78951
|
*/
|
|
78799
78952
|
|
|
78800
|
-
var script$
|
|
78953
|
+
var script$j = {
|
|
78801
78954
|
name: 't-node-item',
|
|
78802
|
-
extends: __vue_component__$
|
|
78955
|
+
extends: __vue_component__$j
|
|
78803
78956
|
};
|
|
78804
78957
|
|
|
78805
78958
|
/* script */
|
|
78806
|
-
const __vue_script__$
|
|
78959
|
+
const __vue_script__$j = script$j;
|
|
78807
78960
|
|
|
78808
78961
|
/* template */
|
|
78809
|
-
var __vue_render__$
|
|
78810
|
-
var __vue_staticRenderFns__$
|
|
78962
|
+
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)])};
|
|
78963
|
+
var __vue_staticRenderFns__$g = [];
|
|
78811
78964
|
|
|
78812
78965
|
/* style */
|
|
78813
|
-
const __vue_inject_styles__$
|
|
78966
|
+
const __vue_inject_styles__$k = undefined;
|
|
78814
78967
|
/* scoped */
|
|
78815
|
-
const __vue_scope_id__$
|
|
78968
|
+
const __vue_scope_id__$k = undefined;
|
|
78816
78969
|
/* module identifier */
|
|
78817
|
-
const __vue_module_identifier__$
|
|
78970
|
+
const __vue_module_identifier__$k = undefined;
|
|
78818
78971
|
/* functional template */
|
|
78819
|
-
const __vue_is_functional_template__$
|
|
78972
|
+
const __vue_is_functional_template__$k = false;
|
|
78820
78973
|
/* style inject */
|
|
78821
78974
|
|
|
78822
78975
|
/* style inject SSR */
|
|
@@ -78825,13 +78978,13 @@ var __vue_staticRenderFns__$f = [];
|
|
|
78825
78978
|
|
|
78826
78979
|
|
|
78827
78980
|
|
|
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__$
|
|
78981
|
+
const __vue_component__$k = /*#__PURE__*/normalizeComponent(
|
|
78982
|
+
{ render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },
|
|
78983
|
+
__vue_inject_styles__$k,
|
|
78984
|
+
__vue_script__$j,
|
|
78985
|
+
__vue_scope_id__$k,
|
|
78986
|
+
__vue_is_functional_template__$k,
|
|
78987
|
+
__vue_module_identifier__$k,
|
|
78835
78988
|
false,
|
|
78836
78989
|
undefined,
|
|
78837
78990
|
undefined,
|
|
@@ -78839,7 +78992,7 @@ var __vue_staticRenderFns__$f = [];
|
|
|
78839
78992
|
);
|
|
78840
78993
|
|
|
78841
78994
|
var node = {
|
|
78842
|
-
Item: __vue_component__$
|
|
78995
|
+
Item: __vue_component__$k
|
|
78843
78996
|
};
|
|
78844
78997
|
|
|
78845
78998
|
//
|
|
@@ -78847,9 +79000,9 @@ var node = {
|
|
|
78847
79000
|
* Component is used to display node alignment formatting
|
|
78848
79001
|
*/
|
|
78849
79002
|
|
|
78850
|
-
var script$
|
|
79003
|
+
var script$k = {
|
|
78851
79004
|
name: 't-nattr-alignment',
|
|
78852
|
-
extends: __vue_component__$
|
|
79005
|
+
extends: __vue_component__$j,
|
|
78853
79006
|
props: {
|
|
78854
79007
|
isActive: {
|
|
78855
79008
|
type: Object,
|
|
@@ -78913,20 +79066,20 @@ var script$j = {
|
|
|
78913
79066
|
};
|
|
78914
79067
|
|
|
78915
79068
|
/* script */
|
|
78916
|
-
const __vue_script__$
|
|
79069
|
+
const __vue_script__$k = script$k;
|
|
78917
79070
|
|
|
78918
79071
|
/* template */
|
|
78919
|
-
var __vue_render__$
|
|
78920
|
-
var __vue_staticRenderFns__$
|
|
79072
|
+
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)};
|
|
79073
|
+
var __vue_staticRenderFns__$h = [];
|
|
78921
79074
|
|
|
78922
79075
|
/* style */
|
|
78923
|
-
const __vue_inject_styles__$
|
|
79076
|
+
const __vue_inject_styles__$l = undefined;
|
|
78924
79077
|
/* scoped */
|
|
78925
|
-
const __vue_scope_id__$
|
|
79078
|
+
const __vue_scope_id__$l = undefined;
|
|
78926
79079
|
/* module identifier */
|
|
78927
|
-
const __vue_module_identifier__$
|
|
79080
|
+
const __vue_module_identifier__$l = undefined;
|
|
78928
79081
|
/* functional template */
|
|
78929
|
-
const __vue_is_functional_template__$
|
|
79082
|
+
const __vue_is_functional_template__$l = false;
|
|
78930
79083
|
/* style inject */
|
|
78931
79084
|
|
|
78932
79085
|
/* style inject SSR */
|
|
@@ -78935,13 +79088,13 @@ var __vue_staticRenderFns__$g = [];
|
|
|
78935
79088
|
|
|
78936
79089
|
|
|
78937
79090
|
|
|
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__$
|
|
79091
|
+
const __vue_component__$l = /*#__PURE__*/normalizeComponent(
|
|
79092
|
+
{ render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },
|
|
79093
|
+
__vue_inject_styles__$l,
|
|
79094
|
+
__vue_script__$k,
|
|
79095
|
+
__vue_scope_id__$l,
|
|
79096
|
+
__vue_is_functional_template__$l,
|
|
79097
|
+
__vue_module_identifier__$l,
|
|
78945
79098
|
false,
|
|
78946
79099
|
undefined,
|
|
78947
79100
|
undefined,
|
|
@@ -78949,7 +79102,7 @@ var __vue_staticRenderFns__$g = [];
|
|
|
78949
79102
|
);
|
|
78950
79103
|
|
|
78951
79104
|
var nodeAttr = {
|
|
78952
|
-
Alignment: __vue_component__$
|
|
79105
|
+
Alignment: __vue_component__$l
|
|
78953
79106
|
};
|
|
78954
79107
|
|
|
78955
79108
|
var cc = {
|
|
@@ -78959,7 +79112,7 @@ var cc = {
|
|
|
78959
79112
|
};
|
|
78960
79113
|
|
|
78961
79114
|
//
|
|
78962
|
-
var script$
|
|
79115
|
+
var script$l = {
|
|
78963
79116
|
inheritAttrs: true,
|
|
78964
79117
|
props: {
|
|
78965
79118
|
editor: {
|
|
@@ -79042,20 +79195,20 @@ var script$k = {
|
|
|
79042
79195
|
};
|
|
79043
79196
|
|
|
79044
79197
|
/* script */
|
|
79045
|
-
const __vue_script__$
|
|
79198
|
+
const __vue_script__$l = script$l;
|
|
79046
79199
|
|
|
79047
79200
|
/* template */
|
|
79048
|
-
var __vue_render__$
|
|
79049
|
-
var __vue_staticRenderFns__$
|
|
79201
|
+
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)};
|
|
79202
|
+
var __vue_staticRenderFns__$i = [];
|
|
79050
79203
|
|
|
79051
79204
|
/* style */
|
|
79052
|
-
const __vue_inject_styles__$
|
|
79205
|
+
const __vue_inject_styles__$m = undefined;
|
|
79053
79206
|
/* scoped */
|
|
79054
|
-
const __vue_scope_id__$
|
|
79207
|
+
const __vue_scope_id__$m = undefined;
|
|
79055
79208
|
/* module identifier */
|
|
79056
|
-
const __vue_module_identifier__$
|
|
79209
|
+
const __vue_module_identifier__$m = undefined;
|
|
79057
79210
|
/* functional template */
|
|
79058
|
-
const __vue_is_functional_template__$
|
|
79211
|
+
const __vue_is_functional_template__$m = false;
|
|
79059
79212
|
/* style inject */
|
|
79060
79213
|
|
|
79061
79214
|
/* style inject SSR */
|
|
@@ -79064,13 +79217,13 @@ var __vue_staticRenderFns__$h = [];
|
|
|
79064
79217
|
|
|
79065
79218
|
|
|
79066
79219
|
|
|
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__$
|
|
79220
|
+
const __vue_component__$m = /*#__PURE__*/normalizeComponent(
|
|
79221
|
+
{ render: __vue_render__$i, staticRenderFns: __vue_staticRenderFns__$i },
|
|
79222
|
+
__vue_inject_styles__$m,
|
|
79223
|
+
__vue_script__$l,
|
|
79224
|
+
__vue_scope_id__$m,
|
|
79225
|
+
__vue_is_functional_template__$m,
|
|
79226
|
+
__vue_module_identifier__$m,
|
|
79074
79227
|
false,
|
|
79075
79228
|
undefined,
|
|
79076
79229
|
undefined,
|
|
@@ -79078,11 +79231,11 @@ var __vue_staticRenderFns__$h = [];
|
|
|
79078
79231
|
);
|
|
79079
79232
|
|
|
79080
79233
|
//
|
|
79081
|
-
var script$
|
|
79234
|
+
var script$m = {
|
|
79082
79235
|
name: 'CRichTextInput',
|
|
79083
79236
|
components: {
|
|
79084
79237
|
EditorContent: tiptap.EditorContent,
|
|
79085
|
-
RToolbar: __vue_component__$
|
|
79238
|
+
RToolbar: __vue_component__$m,
|
|
79086
79239
|
EditorMenuBar: tiptap.EditorMenuBar
|
|
79087
79240
|
},
|
|
79088
79241
|
props: {
|
|
@@ -79168,25 +79321,25 @@ var script$l = {
|
|
|
79168
79321
|
};
|
|
79169
79322
|
|
|
79170
79323
|
/* script */
|
|
79171
|
-
const __vue_script__$
|
|
79324
|
+
const __vue_script__$m = script$m;
|
|
79172
79325
|
|
|
79173
79326
|
/* template */
|
|
79174
|
-
var __vue_render__$
|
|
79327
|
+
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
79328
|
var commands = ref.commands;
|
|
79176
79329
|
var isActive = ref.isActive;
|
|
79177
79330
|
var getMarkAttrs = ref.getMarkAttrs;
|
|
79178
79331
|
var getNodeAttrs = ref.getNodeAttrs;
|
|
79179
79332
|
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__$
|
|
79333
|
+
var __vue_staticRenderFns__$j = [];
|
|
79181
79334
|
|
|
79182
79335
|
/* style */
|
|
79183
|
-
const __vue_inject_styles__$
|
|
79336
|
+
const __vue_inject_styles__$n = undefined;
|
|
79184
79337
|
/* scoped */
|
|
79185
|
-
const __vue_scope_id__$
|
|
79338
|
+
const __vue_scope_id__$n = undefined;
|
|
79186
79339
|
/* module identifier */
|
|
79187
|
-
const __vue_module_identifier__$
|
|
79340
|
+
const __vue_module_identifier__$n = undefined;
|
|
79188
79341
|
/* functional template */
|
|
79189
|
-
const __vue_is_functional_template__$
|
|
79342
|
+
const __vue_is_functional_template__$n = false;
|
|
79190
79343
|
/* style inject */
|
|
79191
79344
|
|
|
79192
79345
|
/* style inject SSR */
|
|
@@ -79195,13 +79348,13 @@ var __vue_staticRenderFns__$i = [];
|
|
|
79195
79348
|
|
|
79196
79349
|
|
|
79197
79350
|
|
|
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__$
|
|
79351
|
+
const __vue_component__$n = /*#__PURE__*/normalizeComponent(
|
|
79352
|
+
{ render: __vue_render__$j, staticRenderFns: __vue_staticRenderFns__$j },
|
|
79353
|
+
__vue_inject_styles__$n,
|
|
79354
|
+
__vue_script__$m,
|
|
79355
|
+
__vue_scope_id__$n,
|
|
79356
|
+
__vue_is_functional_template__$n,
|
|
79357
|
+
__vue_module_identifier__$n,
|
|
79205
79358
|
false,
|
|
79206
79359
|
undefined,
|
|
79207
79360
|
undefined,
|
|
@@ -79226,7 +79379,7 @@ function split(input) {
|
|
|
79226
79379
|
}
|
|
79227
79380
|
|
|
79228
79381
|
fontawesomeSvgCore.library.add(freeSolidSvgIcons.faLock);
|
|
79229
|
-
var script$
|
|
79382
|
+
var script$n = {
|
|
79230
79383
|
props: {
|
|
79231
79384
|
link: {
|
|
79232
79385
|
type: Boolean
|
|
@@ -79264,6 +79417,10 @@ var script$m = {
|
|
|
79264
79417
|
allSpecific: {
|
|
79265
79418
|
type: Boolean,
|
|
79266
79419
|
default: false
|
|
79420
|
+
},
|
|
79421
|
+
tooltip: {
|
|
79422
|
+
type: String,
|
|
79423
|
+
default: ''
|
|
79267
79424
|
}
|
|
79268
79425
|
},
|
|
79269
79426
|
methods: {
|
|
@@ -79280,44 +79437,44 @@ var script$m = {
|
|
|
79280
79437
|
};
|
|
79281
79438
|
|
|
79282
79439
|
/* script */
|
|
79283
|
-
const __vue_script__$
|
|
79440
|
+
const __vue_script__$n = script$n;
|
|
79284
79441
|
|
|
79285
79442
|
/* template */
|
|
79286
|
-
var __vue_render__$
|
|
79287
|
-
var __vue_staticRenderFns__$
|
|
79443
|
+
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)};
|
|
79444
|
+
var __vue_staticRenderFns__$k = [];
|
|
79288
79445
|
|
|
79289
79446
|
/* style */
|
|
79290
|
-
const __vue_inject_styles__$
|
|
79447
|
+
const __vue_inject_styles__$o = function (inject) {
|
|
79291
79448
|
if (!inject) return
|
|
79292
|
-
inject("data-v-
|
|
79449
|
+
inject("data-v-66ae6703_0", { source: ".pointer[data-v-66ae6703]{cursor:pointer}", map: undefined, media: undefined });
|
|
79293
79450
|
|
|
79294
79451
|
};
|
|
79295
79452
|
/* scoped */
|
|
79296
|
-
const __vue_scope_id__$
|
|
79453
|
+
const __vue_scope_id__$o = "data-v-66ae6703";
|
|
79297
79454
|
/* module identifier */
|
|
79298
|
-
const __vue_module_identifier__$
|
|
79455
|
+
const __vue_module_identifier__$o = undefined;
|
|
79299
79456
|
/* functional template */
|
|
79300
|
-
const __vue_is_functional_template__$
|
|
79457
|
+
const __vue_is_functional_template__$o = false;
|
|
79301
79458
|
/* style inject SSR */
|
|
79302
79459
|
|
|
79303
79460
|
/* style inject shadow dom */
|
|
79304
79461
|
|
|
79305
79462
|
|
|
79306
79463
|
|
|
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__$
|
|
79464
|
+
const __vue_component__$o = /*#__PURE__*/normalizeComponent(
|
|
79465
|
+
{ render: __vue_render__$k, staticRenderFns: __vue_staticRenderFns__$k },
|
|
79466
|
+
__vue_inject_styles__$o,
|
|
79467
|
+
__vue_script__$n,
|
|
79468
|
+
__vue_scope_id__$o,
|
|
79469
|
+
__vue_is_functional_template__$o,
|
|
79470
|
+
__vue_module_identifier__$o,
|
|
79314
79471
|
false,
|
|
79315
79472
|
createInjector,
|
|
79316
79473
|
undefined,
|
|
79317
79474
|
undefined
|
|
79318
79475
|
);
|
|
79319
79476
|
|
|
79320
|
-
var script$
|
|
79477
|
+
var script$o = {
|
|
79321
79478
|
props: {
|
|
79322
79479
|
enabled: {
|
|
79323
79480
|
type: Boolean,
|
|
@@ -79368,47 +79525,49 @@ var script$n = {
|
|
|
79368
79525
|
};
|
|
79369
79526
|
|
|
79370
79527
|
/* script */
|
|
79371
|
-
const __vue_script__$
|
|
79528
|
+
const __vue_script__$o = script$o;
|
|
79372
79529
|
|
|
79373
79530
|
/* template */
|
|
79374
|
-
var __vue_render__$
|
|
79375
|
-
var __vue_staticRenderFns__$
|
|
79531
|
+
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:{"buttons":"","disabled":!_vm.enabled,"button-variant":_vm.variant,"options":_vm.options},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v;},expression:"selected"}})};
|
|
79532
|
+
var __vue_staticRenderFns__$l = [];
|
|
79376
79533
|
|
|
79377
79534
|
/* style */
|
|
79378
|
-
const __vue_inject_styles__$
|
|
79535
|
+
const __vue_inject_styles__$p = function (inject) {
|
|
79536
|
+
if (!inject) return
|
|
79537
|
+
inject("data-v-0ed0965b_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 });
|
|
79538
|
+
|
|
79539
|
+
};
|
|
79379
79540
|
/* scoped */
|
|
79380
|
-
const __vue_scope_id__$
|
|
79541
|
+
const __vue_scope_id__$p = undefined;
|
|
79381
79542
|
/* module identifier */
|
|
79382
|
-
const __vue_module_identifier__$
|
|
79543
|
+
const __vue_module_identifier__$p = undefined;
|
|
79383
79544
|
/* functional template */
|
|
79384
|
-
const __vue_is_functional_template__$
|
|
79385
|
-
/* style inject */
|
|
79386
|
-
|
|
79545
|
+
const __vue_is_functional_template__$p = false;
|
|
79387
79546
|
/* style inject SSR */
|
|
79388
79547
|
|
|
79389
79548
|
/* style inject shadow dom */
|
|
79390
79549
|
|
|
79391
79550
|
|
|
79392
79551
|
|
|
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__$
|
|
79552
|
+
const __vue_component__$p = /*#__PURE__*/normalizeComponent(
|
|
79553
|
+
{ render: __vue_render__$l, staticRenderFns: __vue_staticRenderFns__$l },
|
|
79554
|
+
__vue_inject_styles__$p,
|
|
79555
|
+
__vue_script__$o,
|
|
79556
|
+
__vue_scope_id__$p,
|
|
79557
|
+
__vue_is_functional_template__$p,
|
|
79558
|
+
__vue_module_identifier__$p,
|
|
79400
79559
|
false,
|
|
79401
|
-
|
|
79560
|
+
createInjector,
|
|
79402
79561
|
undefined,
|
|
79403
79562
|
undefined
|
|
79404
79563
|
);
|
|
79405
79564
|
|
|
79406
|
-
var script$
|
|
79565
|
+
var script$p = {
|
|
79407
79566
|
i18nOptions: {
|
|
79408
79567
|
namespaces: 'permissions'
|
|
79409
79568
|
},
|
|
79410
79569
|
components: {
|
|
79411
|
-
Access: __vue_component__$
|
|
79570
|
+
Access: __vue_component__$p
|
|
79412
79571
|
},
|
|
79413
79572
|
props: {
|
|
79414
79573
|
resource: {
|
|
@@ -79471,20 +79630,20 @@ var script$o = {
|
|
|
79471
79630
|
};
|
|
79472
79631
|
|
|
79473
79632
|
/* script */
|
|
79474
|
-
const __vue_script__$
|
|
79633
|
+
const __vue_script__$p = script$p;
|
|
79475
79634
|
|
|
79476
79635
|
/* template */
|
|
79477
|
-
var __vue_render__$
|
|
79478
|
-
var __vue_staticRenderFns__$
|
|
79636
|
+
var __vue_render__$m = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_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)};
|
|
79637
|
+
var __vue_staticRenderFns__$m = [];
|
|
79479
79638
|
|
|
79480
79639
|
/* style */
|
|
79481
|
-
const __vue_inject_styles__$
|
|
79640
|
+
const __vue_inject_styles__$q = undefined;
|
|
79482
79641
|
/* scoped */
|
|
79483
|
-
const __vue_scope_id__$
|
|
79642
|
+
const __vue_scope_id__$q = undefined;
|
|
79484
79643
|
/* module identifier */
|
|
79485
|
-
const __vue_module_identifier__$
|
|
79644
|
+
const __vue_module_identifier__$q = undefined;
|
|
79486
79645
|
/* functional template */
|
|
79487
|
-
const __vue_is_functional_template__$
|
|
79646
|
+
const __vue_is_functional_template__$q = false;
|
|
79488
79647
|
/* style inject */
|
|
79489
79648
|
|
|
79490
79649
|
/* style inject SSR */
|
|
@@ -79493,22 +79652,22 @@ var __vue_staticRenderFns__$l = [];
|
|
|
79493
79652
|
|
|
79494
79653
|
|
|
79495
79654
|
|
|
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__$
|
|
79655
|
+
const __vue_component__$q = /*#__PURE__*/normalizeComponent(
|
|
79656
|
+
{ render: __vue_render__$m, staticRenderFns: __vue_staticRenderFns__$m },
|
|
79657
|
+
__vue_inject_styles__$q,
|
|
79658
|
+
__vue_script__$p,
|
|
79659
|
+
__vue_scope_id__$q,
|
|
79660
|
+
__vue_is_functional_template__$q,
|
|
79661
|
+
__vue_module_identifier__$q,
|
|
79503
79662
|
false,
|
|
79504
79663
|
undefined,
|
|
79505
79664
|
undefined,
|
|
79506
79665
|
undefined
|
|
79507
79666
|
);
|
|
79508
79667
|
|
|
79509
|
-
var script$
|
|
79668
|
+
var script$q = {
|
|
79510
79669
|
components: {
|
|
79511
|
-
Rule: __vue_component__$
|
|
79670
|
+
Rule: __vue_component__$q
|
|
79512
79671
|
},
|
|
79513
79672
|
props: {
|
|
79514
79673
|
rules: {
|
|
@@ -79535,20 +79694,20 @@ var script$p = {
|
|
|
79535
79694
|
};
|
|
79536
79695
|
|
|
79537
79696
|
/* script */
|
|
79538
|
-
const __vue_script__$
|
|
79697
|
+
const __vue_script__$q = script$q;
|
|
79539
79698
|
|
|
79540
79699
|
/* template */
|
|
79541
|
-
var __vue_render__$
|
|
79542
|
-
var __vue_staticRenderFns__$
|
|
79700
|
+
var __vue_render__$n = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_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)};
|
|
79701
|
+
var __vue_staticRenderFns__$n = [];
|
|
79543
79702
|
|
|
79544
79703
|
/* style */
|
|
79545
|
-
const __vue_inject_styles__$
|
|
79704
|
+
const __vue_inject_styles__$r = undefined;
|
|
79546
79705
|
/* scoped */
|
|
79547
|
-
const __vue_scope_id__$
|
|
79706
|
+
const __vue_scope_id__$r = undefined;
|
|
79548
79707
|
/* module identifier */
|
|
79549
|
-
const __vue_module_identifier__$
|
|
79708
|
+
const __vue_module_identifier__$r = undefined;
|
|
79550
79709
|
/* functional template */
|
|
79551
|
-
const __vue_is_functional_template__$
|
|
79710
|
+
const __vue_is_functional_template__$r = false;
|
|
79552
79711
|
/* style inject */
|
|
79553
79712
|
|
|
79554
79713
|
/* style inject SSR */
|
|
@@ -79557,65 +79716,44 @@ var __vue_staticRenderFns__$m = [];
|
|
|
79557
79716
|
|
|
79558
79717
|
|
|
79559
79718
|
|
|
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__$
|
|
79719
|
+
const __vue_component__$r = /*#__PURE__*/normalizeComponent(
|
|
79720
|
+
{ render: __vue_render__$n, staticRenderFns: __vue_staticRenderFns__$n },
|
|
79721
|
+
__vue_inject_styles__$r,
|
|
79722
|
+
__vue_script__$q,
|
|
79723
|
+
__vue_scope_id__$r,
|
|
79724
|
+
__vue_is_functional_template__$r,
|
|
79725
|
+
__vue_module_identifier__$r,
|
|
79567
79726
|
false,
|
|
79568
79727
|
undefined,
|
|
79569
79728
|
undefined,
|
|
79570
79729
|
undefined
|
|
79571
79730
|
);
|
|
79572
79731
|
|
|
79573
|
-
var script$
|
|
79732
|
+
var script$r = {
|
|
79574
79733
|
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
79734
|
namespaces: 'permissions'
|
|
79580
79735
|
},
|
|
79581
79736
|
components: {
|
|
79582
|
-
Rules: __vue_component__$
|
|
79737
|
+
Rules: __vue_component__$r,
|
|
79583
79738
|
VueSelect: vueSelect.VueSelect
|
|
79584
79739
|
},
|
|
79585
79740
|
props: {
|
|
79586
|
-
|
|
79587
|
-
type: String,
|
|
79588
|
-
required: true
|
|
79589
|
-
},
|
|
79590
|
-
target: {
|
|
79591
|
-
type: String,
|
|
79741
|
+
labels: {
|
|
79592
79742
|
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
|
-
|
|
79743
|
+
type: Object,
|
|
79744
|
+
default: () => ({})
|
|
79613
79745
|
}
|
|
79614
79746
|
},
|
|
79615
79747
|
|
|
79616
79748
|
data() {
|
|
79617
79749
|
return {
|
|
79618
79750
|
processing: false,
|
|
79751
|
+
backendComponentName: undefined,
|
|
79752
|
+
resource: undefined,
|
|
79753
|
+
title: undefined,
|
|
79754
|
+
target: undefined,
|
|
79755
|
+
allSpecific: false,
|
|
79756
|
+
userOptions: [],
|
|
79619
79757
|
// List of available permissions (for a specific resource)
|
|
79620
79758
|
permissions: [],
|
|
79621
79759
|
// List of rules for the current role
|
|
@@ -79623,59 +79761,172 @@ var script$q = {
|
|
|
79623
79761
|
// List of all available roles
|
|
79624
79762
|
roles: [],
|
|
79625
79763
|
// Current role object
|
|
79626
|
-
currentRole: undefined
|
|
79764
|
+
currentRole: undefined,
|
|
79765
|
+
evaluate: [],
|
|
79766
|
+
add: {
|
|
79767
|
+
roleID: [],
|
|
79768
|
+
userID: undefined
|
|
79769
|
+
}
|
|
79627
79770
|
};
|
|
79628
79771
|
},
|
|
79629
79772
|
|
|
79630
79773
|
computed: {
|
|
79774
|
+
api() {
|
|
79775
|
+
const s = this.backendComponentName;
|
|
79776
|
+
return s ? this['$' + s.charAt(0).toUpperCase() + s.slice(1) + 'API'] : undefined;
|
|
79777
|
+
},
|
|
79778
|
+
|
|
79779
|
+
showModal() {
|
|
79780
|
+
return !!(this.resource && this.api);
|
|
79781
|
+
},
|
|
79782
|
+
|
|
79631
79783
|
dirty() {
|
|
79632
79784
|
return this.collectChangedRules().length > 0;
|
|
79633
79785
|
},
|
|
79634
79786
|
|
|
79635
|
-
|
|
79787
|
+
submitDisabled() {
|
|
79636
79788
|
return !this.dirty;
|
|
79637
79789
|
},
|
|
79638
79790
|
|
|
79639
|
-
|
|
79640
|
-
const
|
|
79641
|
-
|
|
79642
|
-
|
|
79643
|
-
|
|
79644
|
-
|
|
79645
|
-
|
|
79646
|
-
created() {
|
|
79647
|
-
this.fetchPermissions();
|
|
79648
|
-
this.fetchRoles();
|
|
79649
|
-
},
|
|
79650
|
-
|
|
79651
|
-
methods: {
|
|
79652
|
-
onRoleChange(role) {
|
|
79653
|
-
this.currentRole = role;
|
|
79654
|
-
this.fetchRules(role.roleID);
|
|
79791
|
+
addEnabled() {
|
|
79792
|
+
const {
|
|
79793
|
+
roleID = [],
|
|
79794
|
+
userID
|
|
79795
|
+
} = this.add;
|
|
79796
|
+
return roleID && roleID.length || userID;
|
|
79655
79797
|
},
|
|
79656
79798
|
|
|
79657
|
-
|
|
79658
|
-
this.
|
|
79659
|
-
|
|
79660
|
-
|
|
79661
|
-
|
|
79662
|
-
|
|
79663
|
-
|
|
79664
|
-
|
|
79799
|
+
translatedTitle() {
|
|
79800
|
+
if (this.resource) {
|
|
79801
|
+
const {
|
|
79802
|
+
i18nPrefix
|
|
79803
|
+
} = split(this.resource);
|
|
79804
|
+
let target;
|
|
79805
|
+
|
|
79806
|
+
if (this.allSpecific) {
|
|
79807
|
+
target = this.$t(`permissions:${i18nPrefix}.all-specific`, {
|
|
79808
|
+
target: this.title,
|
|
79809
|
+
interpolation: {
|
|
79810
|
+
escapeValue: false
|
|
79811
|
+
}
|
|
79812
|
+
});
|
|
79813
|
+
} else if (this.title) {
|
|
79814
|
+
target = this.$t(`permissions:${i18nPrefix}.specific`, {
|
|
79815
|
+
target: this.title,
|
|
79816
|
+
interpolation: {
|
|
79817
|
+
escapeValue: false
|
|
79818
|
+
}
|
|
79819
|
+
});
|
|
79820
|
+
} else {
|
|
79821
|
+
target = this.$t(`permissions:${i18nPrefix}.all`);
|
|
79822
|
+
}
|
|
79823
|
+
|
|
79824
|
+
return this.$t('permissions:ui.set-for', {
|
|
79825
|
+
target: target,
|
|
79826
|
+
interpolation: {
|
|
79827
|
+
escapeValue: false
|
|
79828
|
+
}
|
|
79829
|
+
});
|
|
79830
|
+
}
|
|
79831
|
+
|
|
79832
|
+
return undefined;
|
|
79833
|
+
}
|
|
79834
|
+
|
|
79835
|
+
},
|
|
79836
|
+
|
|
79837
|
+
mounted() {
|
|
79838
|
+
this.searchUsers('', () => {});
|
|
79839
|
+
this.$root.$on(modalOpenEventName, ({
|
|
79840
|
+
resource,
|
|
79841
|
+
title,
|
|
79842
|
+
target,
|
|
79843
|
+
allSpecific
|
|
79844
|
+
}) => {
|
|
79845
|
+
this.resource = resource;
|
|
79846
|
+
this.title = title;
|
|
79847
|
+
this.target = target;
|
|
79848
|
+
this.allSpecific = allSpecific; // <schema>::<backend-component-name>:...
|
|
79849
|
+
|
|
79850
|
+
this.backendComponentName = resource.split(':')[2];
|
|
79851
|
+
this.fetchPermissions().then(() => {
|
|
79852
|
+
if (!this.roles.length) {
|
|
79853
|
+
return this.fetchRoles();
|
|
79854
|
+
} else if (this.currentRole) {
|
|
79855
|
+
const {
|
|
79856
|
+
roleID
|
|
79857
|
+
} = this.currentRole;
|
|
79858
|
+
this.processing = true;
|
|
79859
|
+
return this.fetchRules(roleID).then(() => {
|
|
79860
|
+
return Promise.all(this.evaluate.map(e => {
|
|
79861
|
+
const {
|
|
79862
|
+
userID
|
|
79863
|
+
} = e.userID || {};
|
|
79864
|
+
let {
|
|
79865
|
+
roleID = []
|
|
79866
|
+
} = e;
|
|
79867
|
+
roleID = roleID.map(({
|
|
79868
|
+
roleID
|
|
79869
|
+
}) => roleID);
|
|
79870
|
+
return this.evaluatePermissions({
|
|
79871
|
+
roleID,
|
|
79872
|
+
userID
|
|
79873
|
+
}).then(rules => {
|
|
79874
|
+
return { ...e,
|
|
79875
|
+
rules
|
|
79876
|
+
};
|
|
79877
|
+
});
|
|
79878
|
+
})).then(evaluate => {
|
|
79879
|
+
this.evaluate = evaluate;
|
|
79880
|
+
});
|
|
79881
|
+
});
|
|
79882
|
+
}
|
|
79883
|
+
});
|
|
79884
|
+
});
|
|
79885
|
+
},
|
|
79886
|
+
|
|
79887
|
+
destroyed() {
|
|
79888
|
+
this.$root.$off(modalOpenEventName);
|
|
79889
|
+
},
|
|
79890
|
+
|
|
79891
|
+
methods: {
|
|
79892
|
+
onHide() {
|
|
79893
|
+
this.clear();
|
|
79894
|
+
},
|
|
79895
|
+
|
|
79896
|
+
clear() {
|
|
79897
|
+
this.resource = undefined;
|
|
79898
|
+
this.title = undefined;
|
|
79899
|
+
this.target = undefined;
|
|
79900
|
+
},
|
|
79901
|
+
|
|
79902
|
+
onRoleChange(roleID) {
|
|
79903
|
+
this.fetchRules(roleID);
|
|
79904
|
+
},
|
|
79905
|
+
|
|
79906
|
+
onSubmit() {
|
|
79907
|
+
this.processing = true;
|
|
79908
|
+
const rules = this.collectChangedRules();
|
|
79909
|
+
const {
|
|
79910
|
+
roleID
|
|
79911
|
+
} = this.currentRole;
|
|
79912
|
+
this.api.permissionsUpdate({
|
|
79913
|
+
roleID,
|
|
79665
79914
|
rules
|
|
79666
79915
|
}).then(() => {
|
|
79667
79916
|
this.fetchRules(roleID);
|
|
79917
|
+
}).finally(() => {
|
|
79668
79918
|
this.processing = false;
|
|
79669
79919
|
});
|
|
79670
79920
|
},
|
|
79671
79921
|
|
|
79672
79922
|
async fetchPermissions() {
|
|
79673
|
-
// clean loaded rules
|
|
79923
|
+
this.processing = true; // clean loaded rules
|
|
79924
|
+
|
|
79674
79925
|
this.rules = [];
|
|
79675
79926
|
this.permissions = [];
|
|
79676
|
-
this.processing = true;
|
|
79677
79927
|
return this.api.permissionsList().then(pp => {
|
|
79678
79928
|
this.permissions = this.filterPermissions(pp);
|
|
79929
|
+
}).finally(() => {
|
|
79679
79930
|
this.processing = false;
|
|
79680
79931
|
});
|
|
79681
79932
|
},
|
|
@@ -79683,9 +79934,11 @@ var script$q = {
|
|
|
79683
79934
|
async fetchRules(roleID) {
|
|
79684
79935
|
this.processing = true;
|
|
79685
79936
|
return this.api.permissionsRead({
|
|
79686
|
-
roleID
|
|
79937
|
+
roleID,
|
|
79938
|
+
resource: this.resource
|
|
79687
79939
|
}).then(rules => {
|
|
79688
79940
|
this.rules = this.normalizeRules(rules);
|
|
79941
|
+
}).finally(() => {
|
|
79689
79942
|
this.processing = false;
|
|
79690
79943
|
});
|
|
79691
79944
|
},
|
|
@@ -79701,13 +79954,102 @@ var script$q = {
|
|
|
79701
79954
|
}) => !isBypass).sort((a, b) => a.roleID.localeCompare(b.roleID));
|
|
79702
79955
|
|
|
79703
79956
|
if (this.roles.length > 0) {
|
|
79704
|
-
this.
|
|
79957
|
+
this.currentRole = this.roles[0];
|
|
79958
|
+
const {
|
|
79959
|
+
roleID
|
|
79960
|
+
} = this.currentRole;
|
|
79961
|
+
this.onRoleChange(roleID);
|
|
79705
79962
|
}
|
|
79963
|
+
}).finally(() => {
|
|
79964
|
+
this.processing = false;
|
|
79965
|
+
});
|
|
79966
|
+
},
|
|
79706
79967
|
|
|
79968
|
+
async evaluatePermissions({
|
|
79969
|
+
resource = this.resource,
|
|
79970
|
+
roleID,
|
|
79971
|
+
userID
|
|
79972
|
+
}) {
|
|
79973
|
+
this.processing = true;
|
|
79974
|
+
return this.api.permissionsTrace({
|
|
79975
|
+
resource,
|
|
79976
|
+
roleID,
|
|
79977
|
+
userID
|
|
79978
|
+
}).then(this.normalizeRules).finally(() => {
|
|
79707
79979
|
this.processing = false;
|
|
79708
79980
|
});
|
|
79709
79981
|
},
|
|
79710
79982
|
|
|
79983
|
+
searchUsers(query = '', loading) {
|
|
79984
|
+
loading(true);
|
|
79985
|
+
this.$SystemAPI.userList({
|
|
79986
|
+
query,
|
|
79987
|
+
limit: 15
|
|
79988
|
+
}).then(({
|
|
79989
|
+
set
|
|
79990
|
+
}) => {
|
|
79991
|
+
this.userOptions = set.map(m => Object.freeze(m));
|
|
79992
|
+
}).finally(() => {
|
|
79993
|
+
loading(false);
|
|
79994
|
+
});
|
|
79995
|
+
},
|
|
79996
|
+
|
|
79997
|
+
getUserLabel({
|
|
79998
|
+
userID,
|
|
79999
|
+
email,
|
|
80000
|
+
name,
|
|
80001
|
+
username
|
|
80002
|
+
}) {
|
|
80003
|
+
return name || username || email || `<@${userID}>`;
|
|
80004
|
+
},
|
|
80005
|
+
|
|
80006
|
+
onAddEval() {
|
|
80007
|
+
const {
|
|
80008
|
+
userID
|
|
80009
|
+
} = this.add.userID || {};
|
|
80010
|
+
let {
|
|
80011
|
+
roleID = []
|
|
80012
|
+
} = this.add;
|
|
80013
|
+
roleID = roleID.map(({
|
|
80014
|
+
roleID
|
|
80015
|
+
}) => roleID);
|
|
80016
|
+
this.evaluatePermissions({
|
|
80017
|
+
roleID,
|
|
80018
|
+
userID
|
|
80019
|
+
}).then(rules => {
|
|
80020
|
+
this.evaluate.push({ ...this.add,
|
|
80021
|
+
rules
|
|
80022
|
+
});
|
|
80023
|
+
this.add = {
|
|
80024
|
+
roleID: [],
|
|
80025
|
+
userID: undefined
|
|
80026
|
+
};
|
|
80027
|
+
});
|
|
80028
|
+
},
|
|
80029
|
+
|
|
80030
|
+
onHideEval(i) {
|
|
80031
|
+
this.evaluate.splice(i, 1);
|
|
80032
|
+
},
|
|
80033
|
+
|
|
80034
|
+
getEvalName({
|
|
80035
|
+
roleID,
|
|
80036
|
+
userID
|
|
80037
|
+
}) {
|
|
80038
|
+
if (userID) {
|
|
80039
|
+
const {
|
|
80040
|
+
name,
|
|
80041
|
+
username,
|
|
80042
|
+
email,
|
|
80043
|
+
handle
|
|
80044
|
+
} = userID;
|
|
80045
|
+
return [name || username || email || handle || userID || ''];
|
|
80046
|
+
} else {
|
|
80047
|
+
return roleID.map(({
|
|
80048
|
+
name
|
|
80049
|
+
}) => name);
|
|
80050
|
+
}
|
|
80051
|
+
},
|
|
80052
|
+
|
|
79711
80053
|
normalizeRules(rr) {
|
|
79712
80054
|
const inherit = 'inherit'; // merges roleRules (subset) with list of all permissions
|
|
79713
80055
|
|
|
@@ -79719,7 +80061,18 @@ var script$q = {
|
|
|
79719
80061
|
return inherit;
|
|
79720
80062
|
}
|
|
79721
80063
|
|
|
79722
|
-
|
|
80064
|
+
let {
|
|
80065
|
+
resolution,
|
|
80066
|
+
access = 'inherit'
|
|
80067
|
+
} = rr.find(r => r.resource === resource && r.operation === operation) || {};
|
|
80068
|
+
|
|
80069
|
+
if (resolution === 'unknown-context') {
|
|
80070
|
+
access = 'unknown-context';
|
|
80071
|
+
} else if (access === 'inherit') {
|
|
80072
|
+
access = 'deny';
|
|
80073
|
+
}
|
|
80074
|
+
|
|
80075
|
+
return access;
|
|
79723
80076
|
};
|
|
79724
80077
|
|
|
79725
80078
|
return this.permissions.map(p => {
|
|
@@ -79795,237 +80148,108 @@ var script$q = {
|
|
|
79795
80148
|
title,
|
|
79796
80149
|
description: this.$t(`permissions:${i18nPrefix}.description`)
|
|
79797
80150
|
};
|
|
80151
|
+
},
|
|
80152
|
+
|
|
80153
|
+
getRuleTooltip(isUnknown = false, isUser) {
|
|
80154
|
+
if (!isUnknown) {
|
|
80155
|
+
return '';
|
|
80156
|
+
}
|
|
80157
|
+
|
|
80158
|
+
return this.$t(`permissions:ui.tooltip.unknown-context.${isUser ? 'user' : 'role'}`);
|
|
79798
80159
|
}
|
|
79799
80160
|
|
|
79800
80161
|
}
|
|
79801
80162
|
};
|
|
79802
80163
|
|
|
79803
80164
|
/* script */
|
|
79804
|
-
const __vue_script__$
|
|
80165
|
+
const __vue_script__$r = script$r;
|
|
79805
80166
|
|
|
79806
80167
|
/* template */
|
|
79807
|
-
var __vue_render__$
|
|
79808
|
-
var __vue_staticRenderFns__$
|
|
80168
|
+
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:{"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:{"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:{"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"},[_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:{"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:{"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)};
|
|
80169
|
+
var __vue_staticRenderFns__$o = [];
|
|
79809
80170
|
|
|
79810
80171
|
/* style */
|
|
79811
|
-
const __vue_inject_styles__$
|
|
80172
|
+
const __vue_inject_styles__$s = function (inject) {
|
|
79812
80173
|
if (!inject) return
|
|
79813
|
-
inject("data-v-
|
|
80174
|
+
inject("data-v-63e6d773_0", { source: ".not-allowed[data-v-63e6d773]{cursor:not-allowed}.bg-extra-light[data-v-63e6d773]{background-color:#f3f5f7}.pointer[data-v-63e6d773]{cursor:pointer}.rotate[data-v-63e6d773]{transform:rotate(45deg)}.hide-eval:hover .rotate[data-v-63e6d773]{color:#162425!important}", map: undefined, media: undefined });
|
|
79814
80175
|
|
|
79815
80176
|
};
|
|
79816
80177
|
/* scoped */
|
|
79817
|
-
const __vue_scope_id__$
|
|
80178
|
+
const __vue_scope_id__$s = "data-v-63e6d773";
|
|
79818
80179
|
/* module identifier */
|
|
79819
|
-
const __vue_module_identifier__$
|
|
80180
|
+
const __vue_module_identifier__$s = undefined;
|
|
79820
80181
|
/* functional template */
|
|
79821
|
-
const __vue_is_functional_template__$
|
|
80182
|
+
const __vue_is_functional_template__$s = false;
|
|
79822
80183
|
/* style inject SSR */
|
|
79823
80184
|
|
|
79824
80185
|
/* style inject shadow dom */
|
|
79825
80186
|
|
|
79826
80187
|
|
|
79827
80188
|
|
|
79828
|
-
const __vue_component__$
|
|
79829
|
-
{ render: __vue_render__$
|
|
79830
|
-
__vue_inject_styles__$
|
|
79831
|
-
__vue_script__$
|
|
79832
|
-
__vue_scope_id__$
|
|
79833
|
-
__vue_is_functional_template__$
|
|
79834
|
-
__vue_module_identifier__$
|
|
80189
|
+
const __vue_component__$s = /*#__PURE__*/normalizeComponent(
|
|
80190
|
+
{ render: __vue_render__$o, staticRenderFns: __vue_staticRenderFns__$o },
|
|
80191
|
+
__vue_inject_styles__$s,
|
|
80192
|
+
__vue_script__$r,
|
|
80193
|
+
__vue_scope_id__$s,
|
|
80194
|
+
__vue_is_functional_template__$s,
|
|
80195
|
+
__vue_module_identifier__$s,
|
|
79835
80196
|
false,
|
|
79836
80197
|
createInjector,
|
|
79837
80198
|
undefined,
|
|
79838
80199
|
undefined
|
|
79839
80200
|
);
|
|
79840
80201
|
|
|
79841
|
-
|
|
79842
|
-
|
|
79843
|
-
|
|
79844
|
-
|
|
79845
|
-
|
|
79846
|
-
|
|
79847
|
-
|
|
80202
|
+
function pVal(vars, k, def) {
|
|
80203
|
+
if (vars && vars[k] && vars[k]['@value'] !== undefined) {
|
|
80204
|
+
return vars[k]['@value'];
|
|
80205
|
+
}
|
|
80206
|
+
return def;
|
|
80207
|
+
}
|
|
80208
|
+
function pType(vars, k, def) {
|
|
80209
|
+
if (vars && vars[k] && vars[k]['@type'] !== undefined) {
|
|
80210
|
+
return vars[k]['@type'];
|
|
80211
|
+
}
|
|
80212
|
+
return def;
|
|
80213
|
+
}
|
|
79848
80214
|
|
|
79849
|
-
|
|
79850
|
-
|
|
79851
|
-
|
|
79852
|
-
|
|
79853
|
-
|
|
79854
|
-
|
|
79855
|
-
|
|
80215
|
+
var script$s = {
|
|
80216
|
+
props: {
|
|
80217
|
+
loading: {
|
|
80218
|
+
type: Boolean,
|
|
80219
|
+
default: () => false
|
|
80220
|
+
},
|
|
80221
|
+
payload: {
|
|
80222
|
+
type: Object
|
|
80223
|
+
}
|
|
79856
80224
|
},
|
|
79857
|
-
|
|
79858
80225
|
computed: {
|
|
79859
|
-
|
|
79860
|
-
|
|
79861
|
-
|
|
79862
|
-
},
|
|
79863
|
-
|
|
79864
|
-
set(open) {
|
|
79865
|
-
if (!open) {
|
|
79866
|
-
this.clear();
|
|
79867
|
-
}
|
|
79868
|
-
}
|
|
80226
|
+
message() {
|
|
80227
|
+
return this.pVal('message', '<i>Default prompt message.</i>');
|
|
80228
|
+
}
|
|
79869
80229
|
|
|
80230
|
+
},
|
|
80231
|
+
methods: {
|
|
80232
|
+
pVal(k, def = undefined) {
|
|
80233
|
+
return pVal(this.payload, k, def);
|
|
79870
80234
|
},
|
|
79871
80235
|
|
|
79872
|
-
|
|
79873
|
-
|
|
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
|
-
}
|
|
80236
|
+
pType(k, def = undefined) {
|
|
80237
|
+
return pType(this.payload, k, def);
|
|
80238
|
+
},
|
|
79896
80239
|
|
|
79897
|
-
|
|
79898
|
-
|
|
79899
|
-
|
|
79900
|
-
escapeValue: false
|
|
79901
|
-
}
|
|
79902
|
-
});
|
|
80240
|
+
pRaw(k, defValue = undefined, defType = undefined) {
|
|
80241
|
+
if (this.payload && this.payload[k] && this.payload[k] !== undefined) {
|
|
80242
|
+
return this.payload[k];
|
|
79903
80243
|
}
|
|
79904
80244
|
|
|
79905
|
-
return
|
|
80245
|
+
return {
|
|
80246
|
+
'@type': defType,
|
|
80247
|
+
'@value': defValue
|
|
80248
|
+
};
|
|
79906
80249
|
}
|
|
79907
80250
|
|
|
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;
|
|
79937
|
-
}
|
|
79938
|
-
|
|
79939
|
-
}
|
|
79940
|
-
};
|
|
79941
|
-
|
|
79942
|
-
/* script */
|
|
79943
|
-
const __vue_script__$r = script$r;
|
|
79944
|
-
|
|
79945
|
-
/* 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:{"hide-footer":"","size":"xl","title":_vm.translatedTitle,"lazy":"","scrollable":""},on:{"hide":_vm.onHide},model:{value:(_vm.showModal),callback:function ($$v) {_vm.showModal=$$v;},expression:"showModal"}},[(_vm.resource)?_c('c-permissions-form',{staticClass:"h-100",attrs:{"resource":_vm.resource,"target":_vm.target,"all-specific":_vm.allSpecific}}):_vm._e()],1)],1)};
|
|
79947
|
-
var __vue_staticRenderFns__$o = [];
|
|
79948
|
-
|
|
79949
|
-
/* style */
|
|
79950
|
-
const __vue_inject_styles__$s = undefined;
|
|
79951
|
-
/* scoped */
|
|
79952
|
-
const __vue_scope_id__$s = undefined;
|
|
79953
|
-
/* module identifier */
|
|
79954
|
-
const __vue_module_identifier__$s = undefined;
|
|
79955
|
-
/* functional template */
|
|
79956
|
-
const __vue_is_functional_template__$s = false;
|
|
79957
|
-
/* style inject */
|
|
79958
|
-
|
|
79959
|
-
/* style inject SSR */
|
|
79960
|
-
|
|
79961
|
-
/* style inject shadow dom */
|
|
79962
|
-
|
|
79963
|
-
|
|
79964
|
-
|
|
79965
|
-
const __vue_component__$s = /*#__PURE__*/normalizeComponent(
|
|
79966
|
-
{ render: __vue_render__$o, staticRenderFns: __vue_staticRenderFns__$o },
|
|
79967
|
-
__vue_inject_styles__$s,
|
|
79968
|
-
__vue_script__$r,
|
|
79969
|
-
__vue_scope_id__$s,
|
|
79970
|
-
__vue_is_functional_template__$s,
|
|
79971
|
-
__vue_module_identifier__$s,
|
|
79972
|
-
false,
|
|
79973
|
-
undefined,
|
|
79974
|
-
undefined,
|
|
79975
|
-
undefined
|
|
79976
|
-
);
|
|
79977
|
-
|
|
79978
|
-
function pVal(vars, k, def) {
|
|
79979
|
-
if (vars && vars[k] && vars[k]['@value'] !== undefined) {
|
|
79980
|
-
return vars[k]['@value'];
|
|
79981
|
-
}
|
|
79982
|
-
return def;
|
|
79983
|
-
}
|
|
79984
|
-
function pType(vars, k, def) {
|
|
79985
|
-
if (vars && vars[k] && vars[k]['@type'] !== undefined) {
|
|
79986
|
-
return vars[k]['@type'];
|
|
79987
|
-
}
|
|
79988
|
-
return def;
|
|
79989
|
-
}
|
|
79990
|
-
|
|
79991
|
-
var script$s = {
|
|
79992
|
-
props: {
|
|
79993
|
-
loading: {
|
|
79994
|
-
type: Boolean,
|
|
79995
|
-
default: () => false
|
|
79996
|
-
},
|
|
79997
|
-
payload: {
|
|
79998
|
-
type: Object
|
|
79999
|
-
}
|
|
80000
|
-
},
|
|
80001
|
-
computed: {
|
|
80002
|
-
message() {
|
|
80003
|
-
return this.pVal('message', '<i>Default prompt message.</i>');
|
|
80004
|
-
}
|
|
80005
|
-
|
|
80006
|
-
},
|
|
80007
|
-
methods: {
|
|
80008
|
-
pVal(k, def = undefined) {
|
|
80009
|
-
return pVal(this.payload, k, def);
|
|
80010
|
-
},
|
|
80011
|
-
|
|
80012
|
-
pType(k, def = undefined) {
|
|
80013
|
-
return pType(this.payload, k, def);
|
|
80014
|
-
},
|
|
80015
|
-
|
|
80016
|
-
pRaw(k, defValue = undefined, defType = undefined) {
|
|
80017
|
-
if (this.payload && this.payload[k] && this.payload[k] !== undefined) {
|
|
80018
|
-
return this.payload[k];
|
|
80019
|
-
}
|
|
80020
|
-
|
|
80021
|
-
return {
|
|
80022
|
-
'@type': defType,
|
|
80023
|
-
'@value': defValue
|
|
80024
|
-
};
|
|
80025
|
-
}
|
|
80026
|
-
|
|
80027
|
-
}
|
|
80028
|
-
};
|
|
80251
|
+
}
|
|
80252
|
+
};
|
|
80029
80253
|
|
|
80030
80254
|
/* script */
|
|
80031
80255
|
const __vue_script__$s = script$s;
|
|
@@ -81333,6 +81557,7 @@ const prompts = Object.freeze([
|
|
|
81333
81557
|
ref: 'redirect',
|
|
81334
81558
|
meta: { short: 'Redirect user to an outside URL' },
|
|
81335
81559
|
parameters: [
|
|
81560
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81336
81561
|
{ name: 'url', types: ['String'], required: true },
|
|
81337
81562
|
{ name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
|
|
81338
81563
|
],
|
|
@@ -81341,6 +81566,7 @@ const prompts = Object.freeze([
|
|
|
81341
81566
|
ref: 'reroute',
|
|
81342
81567
|
meta: { short: 'Redirect user to an internal application route' },
|
|
81343
81568
|
parameters: [
|
|
81569
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81344
81570
|
{ name: 'name', types: ['String'], required: true },
|
|
81345
81571
|
{ name: 'params', types: ['KV'] },
|
|
81346
81572
|
{ name: 'query', types: ['KV'] },
|
|
@@ -81354,6 +81580,7 @@ const prompts = Object.freeze([
|
|
|
81354
81580
|
webapps: ['compose'],
|
|
81355
81581
|
},
|
|
81356
81582
|
parameters: [
|
|
81583
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81357
81584
|
{ name: 'module', types: ['ID', 'Handle', 'ComposeModule'] },
|
|
81358
81585
|
{ name: 'namespace', types: ['ID', 'Handle', 'ComposeNamespace'] },
|
|
81359
81586
|
{ name: 'record', types: ['ID', 'ComposeRecord'] },
|
|
@@ -81369,6 +81596,7 @@ const prompts = Object.freeze([
|
|
|
81369
81596
|
ref: 'notification',
|
|
81370
81597
|
meta: { short: 'Show non-blocking message to user' },
|
|
81371
81598
|
parameters: [
|
|
81599
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81372
81600
|
{ name: 'title', types: ['String'] },
|
|
81373
81601
|
{ name: 'message', types: ['String'], required: true },
|
|
81374
81602
|
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
@@ -81379,6 +81607,7 @@ const prompts = Object.freeze([
|
|
|
81379
81607
|
ref: 'alert',
|
|
81380
81608
|
meta: { short: 'Prompt user with an alert' },
|
|
81381
81609
|
parameters: [
|
|
81610
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81382
81611
|
{ name: 'title', types: ['String'] },
|
|
81383
81612
|
{ name: 'message', types: ['String'], required: true },
|
|
81384
81613
|
{ name: 'buttonLabel', types: ['String'] },
|
|
@@ -81390,6 +81619,7 @@ const prompts = Object.freeze([
|
|
|
81390
81619
|
ref: 'choice',
|
|
81391
81620
|
meta: { short: 'Prompt user with choice' },
|
|
81392
81621
|
parameters: [
|
|
81622
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81393
81623
|
{ name: 'title', types: ['String'] },
|
|
81394
81624
|
{ name: 'message', types: ['String'], required: true },
|
|
81395
81625
|
{ name: 'confirmButtonLabel', types: ['String'] },
|
|
@@ -81407,6 +81637,7 @@ const prompts = Object.freeze([
|
|
|
81407
81637
|
ref: 'composeRecordPicker',
|
|
81408
81638
|
meta: { short: 'Prompt user to select a Compose Record' },
|
|
81409
81639
|
parameters: [
|
|
81640
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81410
81641
|
{ name: 'title', types: ['String'] },
|
|
81411
81642
|
{ name: 'message', types: ['String'], required: true },
|
|
81412
81643
|
{ name: 'namespace', types: ['ID', 'Handle', 'ComposeNamespace'], required: true },
|
|
@@ -81423,6 +81654,7 @@ const prompts = Object.freeze([
|
|
|
81423
81654
|
ref: 'input',
|
|
81424
81655
|
meta: { short: 'Prompt user with a single input' },
|
|
81425
81656
|
parameters: [
|
|
81657
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81426
81658
|
{ name: 'title', types: ['String'] },
|
|
81427
81659
|
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
81428
81660
|
{ name: 'message', types: ['String'], required: true },
|
|
@@ -81454,6 +81686,7 @@ const prompts = Object.freeze([
|
|
|
81454
81686
|
ref: 'options',
|
|
81455
81687
|
meta: { short: 'Prompt user with options' },
|
|
81456
81688
|
parameters: [
|
|
81689
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81457
81690
|
{ name: 'title', types: ['String'] },
|
|
81458
81691
|
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
81459
81692
|
{ name: 'message', types: ['String'], required: true },
|
|
@@ -82823,21 +83056,10 @@ var actions = /*#__PURE__*/Object.freeze({
|
|
|
82823
83056
|
|
|
82824
83057
|
var script$N = {
|
|
82825
83058
|
props: {
|
|
82826
|
-
|
|
83059
|
+
link: {
|
|
82827
83060
|
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';
|
|
83061
|
+
required: true
|
|
82839
83062
|
}
|
|
82840
|
-
|
|
82841
83063
|
}
|
|
82842
83064
|
};
|
|
82843
83065
|
|
|
@@ -82845,7 +83067,7 @@ var script$N = {
|
|
|
82845
83067
|
const __vue_script__$N = script$N;
|
|
82846
83068
|
|
|
82847
83069
|
/* template */
|
|
82848
|
-
var __vue_render__$I = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[
|
|
83070
|
+
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
83071
|
var __vue_staticRenderFns__$I = [];
|
|
82850
83072
|
|
|
82851
83073
|
/* style */
|
|
@@ -82920,7 +83142,7 @@ var script$O = {
|
|
|
82920
83142
|
const __vue_script__$O = script$O;
|
|
82921
83143
|
|
|
82922
83144
|
/* 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:{"
|
|
83145
|
+
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
83146
|
var name = ref[0];
|
|
82925
83147
|
var act = ref[1];
|
|
82926
83148
|
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 +83151,7 @@ var __vue_staticRenderFns__$J = [];
|
|
|
82929
83151
|
/* style */
|
|
82930
83152
|
const __vue_inject_styles__$P = function (inject) {
|
|
82931
83153
|
if (!inject) return
|
|
82932
|
-
inject("data-v-
|
|
83154
|
+
inject("data-v-6fbe9c62_0", { source: ".toast.overflow-unset{overflow:unset!important}", map: undefined, media: undefined });
|
|
82933
83155
|
|
|
82934
83156
|
};
|
|
82935
83157
|
/* scoped */
|
|
@@ -83141,7 +83363,8 @@ var script$R = {
|
|
|
83141
83363
|
name: 'CItemPicker',
|
|
83142
83364
|
components: {
|
|
83143
83365
|
draggable: Draggable,
|
|
83144
|
-
CItemPickerItem: __vue_component__$R
|
|
83366
|
+
CItemPickerItem: __vue_component__$R,
|
|
83367
|
+
CInputSearch: __vue_component__$e
|
|
83145
83368
|
},
|
|
83146
83369
|
props: {
|
|
83147
83370
|
/**
|
|
@@ -83398,7 +83621,7 @@ var script$R = {
|
|
|
83398
83621
|
const __vue_script__$R = script$R;
|
|
83399
83622
|
|
|
83400
83623
|
/* 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('
|
|
83624
|
+
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
83625
|
var __vue_staticRenderFns__$M = [];
|
|
83403
83626
|
|
|
83404
83627
|
/* style */
|
|
@@ -83843,11 +84066,12 @@ var script$V = {
|
|
|
83843
84066
|
const hSeanFrames = {};
|
|
83844
84067
|
const outHeader = [...selectedCols].map(index => {
|
|
83845
84068
|
const column = frame.columns[index];
|
|
84069
|
+
const columnName = column ? column.name : '';
|
|
83846
84070
|
return {
|
|
83847
84071
|
column,
|
|
83848
84072
|
meta: {
|
|
83849
84073
|
ref: frame.ref,
|
|
83850
|
-
sortKey: isLocal ?
|
|
84074
|
+
sortKey: isLocal ? columnName : `${frame.ref}.${columnName}`
|
|
83851
84075
|
}
|
|
83852
84076
|
};
|
|
83853
84077
|
});
|
|
@@ -83875,7 +84099,7 @@ var script$V = {
|
|
|
83875
84099
|
// const refColumnIndexes = (this.options.columns[rf.ref] || []).map(({ name }) => {
|
|
83876
84100
|
// return frame.columns.findIndex(fc => fc.name === name)
|
|
83877
84101
|
// })
|
|
83878
|
-
const aux = this.tabelifyFrame(rf
|
|
84102
|
+
const aux = this.tabelifyFrame(rf); // Optionally append header
|
|
83879
84103
|
|
|
83880
84104
|
if (!hSeanFrames[rf.ref]) {
|
|
83881
84105
|
const x = [...aux.header];
|
|
@@ -83908,7 +84132,10 @@ var script$V = {
|
|
|
83908
84132
|
};
|
|
83909
84133
|
}
|
|
83910
84134
|
|
|
83911
|
-
row
|
|
84135
|
+
if (row.length) {
|
|
84136
|
+
row[0].separator = true;
|
|
84137
|
+
}
|
|
84138
|
+
|
|
83912
84139
|
const merged = this.mergeRows(auxRows).pop();
|
|
83913
84140
|
row.push(...merged[0]);
|
|
83914
84141
|
outRows.push(row);
|
|
@@ -83920,7 +84147,6 @@ var script$V = {
|
|
|
83920
84147
|
|
|
83921
84148
|
return {
|
|
83922
84149
|
rows: outRows,
|
|
83923
|
-
maxSize,
|
|
83924
84150
|
header: outHeader,
|
|
83925
84151
|
colgroups: outColgroups
|
|
83926
84152
|
};
|
|
@@ -84042,102 +84268,430 @@ var script$V = {
|
|
|
84042
84268
|
descending
|
|
84043
84269
|
} = this.sort;
|
|
84044
84270
|
|
|
84045
|
-
if (field) {
|
|
84046
|
-
// Generate sort string
|
|
84047
|
-
const sort = descending ? `${field} DESC` : field;
|
|
84048
|
-
def.sort = sort;
|
|
84049
|
-
} // Paging
|
|
84271
|
+
if (field) {
|
|
84272
|
+
// Generate sort string
|
|
84273
|
+
const sort = descending ? `${field} DESC` : field;
|
|
84274
|
+
def.sort = sort;
|
|
84275
|
+
} // Paging
|
|
84276
|
+
|
|
84277
|
+
|
|
84278
|
+
if (this.cursor) {
|
|
84279
|
+
let {
|
|
84280
|
+
limit
|
|
84281
|
+
} = this.localDataframe.paging || {};
|
|
84282
|
+
|
|
84283
|
+
if (!limit) {
|
|
84284
|
+
limit = this.options.datasources[0] ? this.options.datasources[0].paging.limit || 20 : 20;
|
|
84285
|
+
}
|
|
84286
|
+
|
|
84287
|
+
def.paging = {
|
|
84288
|
+
cursor: this.cursor,
|
|
84289
|
+
limit
|
|
84290
|
+
};
|
|
84291
|
+
}
|
|
84292
|
+
|
|
84293
|
+
const definition = {};
|
|
84294
|
+
definition[ref] = def;
|
|
84295
|
+
this.$emit('update', definition);
|
|
84296
|
+
}
|
|
84297
|
+
}
|
|
84298
|
+
}
|
|
84299
|
+
|
|
84300
|
+
}
|
|
84301
|
+
};
|
|
84302
|
+
|
|
84303
|
+
/* script */
|
|
84304
|
+
const __vue_script__$V = script$V;
|
|
84305
|
+
|
|
84306
|
+
/* template */
|
|
84307
|
+
var __vue_render__$P = 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:({
|
|
84308
|
+
color: _vm.sort.field === c.meta.sortKey && !_vm.sort.descending ? 'black' : 'grey',
|
|
84309
|
+
}),attrs:{"icon":['fas', 'angle-up']}}),_vm._v(" "),_c('font-awesome-icon',{staticClass:"mt-1",style:({
|
|
84310
|
+
color: _vm.sort.field === c.meta.sortKey && _vm.sort.descending ? 'black' : 'grey',
|
|
84311
|
+
}),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:{
|
|
84312
|
+
separator: !!(r[0] || {}).separator,
|
|
84313
|
+
}},_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)};
|
|
84314
|
+
var __vue_staticRenderFns__$P = [];
|
|
84315
|
+
|
|
84316
|
+
/* style */
|
|
84317
|
+
const __vue_inject_styles__$W = function (inject) {
|
|
84318
|
+
if (!inject) return
|
|
84319
|
+
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 });
|
|
84320
|
+
|
|
84321
|
+
};
|
|
84322
|
+
/* scoped */
|
|
84323
|
+
const __vue_scope_id__$W = "data-v-1a305c88";
|
|
84324
|
+
/* module identifier */
|
|
84325
|
+
const __vue_module_identifier__$W = undefined;
|
|
84326
|
+
/* functional template */
|
|
84327
|
+
const __vue_is_functional_template__$W = false;
|
|
84328
|
+
/* style inject SSR */
|
|
84329
|
+
|
|
84330
|
+
/* style inject shadow dom */
|
|
84331
|
+
|
|
84332
|
+
|
|
84333
|
+
|
|
84334
|
+
const __vue_component__$W = /*#__PURE__*/normalizeComponent(
|
|
84335
|
+
{ render: __vue_render__$P, staticRenderFns: __vue_staticRenderFns__$P },
|
|
84336
|
+
__vue_inject_styles__$W,
|
|
84337
|
+
__vue_script__$V,
|
|
84338
|
+
__vue_scope_id__$W,
|
|
84339
|
+
__vue_is_functional_template__$W,
|
|
84340
|
+
__vue_module_identifier__$W,
|
|
84341
|
+
false,
|
|
84342
|
+
createInjector,
|
|
84343
|
+
undefined,
|
|
84344
|
+
undefined
|
|
84345
|
+
);
|
|
84346
|
+
|
|
84347
|
+
//
|
|
84348
|
+
var script$W = {
|
|
84349
|
+
extends: __vue_component__$T
|
|
84350
|
+
};
|
|
84351
|
+
|
|
84352
|
+
/* script */
|
|
84353
|
+
const __vue_script__$W = script$W;
|
|
84354
|
+
|
|
84355
|
+
/* template */
|
|
84356
|
+
var __vue_render__$Q = 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()};
|
|
84357
|
+
var __vue_staticRenderFns__$Q = [];
|
|
84358
|
+
|
|
84359
|
+
/* style */
|
|
84360
|
+
const __vue_inject_styles__$X = undefined;
|
|
84361
|
+
/* scoped */
|
|
84362
|
+
const __vue_scope_id__$X = undefined;
|
|
84363
|
+
/* module identifier */
|
|
84364
|
+
const __vue_module_identifier__$X = undefined;
|
|
84365
|
+
/* functional template */
|
|
84366
|
+
const __vue_is_functional_template__$X = false;
|
|
84367
|
+
/* style inject */
|
|
84368
|
+
|
|
84369
|
+
/* style inject SSR */
|
|
84370
|
+
|
|
84371
|
+
/* style inject shadow dom */
|
|
84372
|
+
|
|
84373
|
+
|
|
84374
|
+
|
|
84375
|
+
const __vue_component__$X = /*#__PURE__*/normalizeComponent(
|
|
84376
|
+
{ render: __vue_render__$Q, staticRenderFns: __vue_staticRenderFns__$Q },
|
|
84377
|
+
__vue_inject_styles__$X,
|
|
84378
|
+
__vue_script__$W,
|
|
84379
|
+
__vue_scope_id__$X,
|
|
84380
|
+
__vue_is_functional_template__$X,
|
|
84381
|
+
__vue_module_identifier__$X,
|
|
84382
|
+
false,
|
|
84383
|
+
undefined,
|
|
84384
|
+
undefined,
|
|
84385
|
+
undefined
|
|
84386
|
+
);
|
|
84387
|
+
|
|
84388
|
+
//
|
|
84389
|
+
var script$X = {
|
|
84390
|
+
components: {
|
|
84391
|
+
VueSelect: vueSelect.VueSelect
|
|
84392
|
+
},
|
|
84393
|
+
props: {
|
|
84394
|
+
value: {
|
|
84395
|
+
type: String,
|
|
84396
|
+
default: ''
|
|
84397
|
+
},
|
|
84398
|
+
placeholder: {
|
|
84399
|
+
type: String,
|
|
84400
|
+
default: ''
|
|
84401
|
+
},
|
|
84402
|
+
// ID of sensitivityLevel with the maximum allowed level
|
|
84403
|
+
maxLevel: {
|
|
84404
|
+
type: String,
|
|
84405
|
+
default: undefined
|
|
84406
|
+
},
|
|
84407
|
+
disabled: {
|
|
84408
|
+
type: Boolean,
|
|
84409
|
+
default: false
|
|
84410
|
+
}
|
|
84411
|
+
},
|
|
84412
|
+
|
|
84413
|
+
data() {
|
|
84414
|
+
return {
|
|
84415
|
+
allSensitivityLevels: []
|
|
84416
|
+
};
|
|
84417
|
+
},
|
|
84418
|
+
|
|
84419
|
+
computed: {
|
|
84420
|
+
sensitivityLevels() {
|
|
84421
|
+
if (this.maxLevel) {
|
|
84422
|
+
const maxLevelConnection = this.allSensitivityLevels.find(({
|
|
84423
|
+
sensitivityLevelID
|
|
84424
|
+
}) => sensitivityLevelID === this.maxLevel);
|
|
84425
|
+
|
|
84426
|
+
if (maxLevelConnection) {
|
|
84427
|
+
return this.allSensitivityLevels.filter(({
|
|
84428
|
+
level
|
|
84429
|
+
}) => level <= maxLevelConnection.level);
|
|
84430
|
+
}
|
|
84431
|
+
}
|
|
84432
|
+
|
|
84433
|
+
return this.allSensitivityLevels;
|
|
84434
|
+
}
|
|
84435
|
+
|
|
84436
|
+
},
|
|
84437
|
+
|
|
84438
|
+
mounted() {
|
|
84439
|
+
this.$SystemAPI.dalSensitivityLevelList().then(({
|
|
84440
|
+
set
|
|
84441
|
+
}) => {
|
|
84442
|
+
this.allSensitivityLevels = set;
|
|
84443
|
+
});
|
|
84444
|
+
},
|
|
84445
|
+
|
|
84446
|
+
methods: {
|
|
84447
|
+
getLabel({
|
|
84448
|
+
handle,
|
|
84449
|
+
meta = {}
|
|
84450
|
+
}) {
|
|
84451
|
+
return meta.name || handle;
|
|
84452
|
+
}
|
|
84453
|
+
|
|
84454
|
+
}
|
|
84455
|
+
};
|
|
84456
|
+
|
|
84457
|
+
/* script */
|
|
84458
|
+
const __vue_script__$X = script$X;
|
|
84459
|
+
|
|
84460
|
+
/* template */
|
|
84461
|
+
var __vue_render__$R = 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":function($event){return _vm.$emit('input', $event)}}})};
|
|
84462
|
+
var __vue_staticRenderFns__$R = [];
|
|
84463
|
+
|
|
84464
|
+
/* style */
|
|
84465
|
+
const __vue_inject_styles__$Y = undefined;
|
|
84466
|
+
/* scoped */
|
|
84467
|
+
const __vue_scope_id__$Y = undefined;
|
|
84468
|
+
/* module identifier */
|
|
84469
|
+
const __vue_module_identifier__$Y = undefined;
|
|
84470
|
+
/* functional template */
|
|
84471
|
+
const __vue_is_functional_template__$Y = false;
|
|
84472
|
+
/* style inject */
|
|
84473
|
+
|
|
84474
|
+
/* style inject SSR */
|
|
84475
|
+
|
|
84476
|
+
/* style inject shadow dom */
|
|
84477
|
+
|
|
84478
|
+
|
|
84479
|
+
|
|
84480
|
+
const __vue_component__$Y = /*#__PURE__*/normalizeComponent(
|
|
84481
|
+
{ render: __vue_render__$R, staticRenderFns: __vue_staticRenderFns__$R },
|
|
84482
|
+
__vue_inject_styles__$Y,
|
|
84483
|
+
__vue_script__$X,
|
|
84484
|
+
__vue_scope_id__$Y,
|
|
84485
|
+
__vue_is_functional_template__$Y,
|
|
84486
|
+
__vue_module_identifier__$Y,
|
|
84487
|
+
false,
|
|
84488
|
+
undefined,
|
|
84489
|
+
undefined,
|
|
84490
|
+
undefined
|
|
84491
|
+
);
|
|
84492
|
+
|
|
84493
|
+
//
|
|
84494
|
+
var script$Y = {
|
|
84495
|
+
name: 'ResourceList',
|
|
84496
|
+
components: {
|
|
84497
|
+
CInputSearch: __vue_component__$e
|
|
84498
|
+
},
|
|
84499
|
+
props: {
|
|
84500
|
+
primaryKey: {
|
|
84501
|
+
type: String,
|
|
84502
|
+
required: true
|
|
84503
|
+
},
|
|
84504
|
+
filter: {
|
|
84505
|
+
type: Object,
|
|
84506
|
+
required: true
|
|
84507
|
+
},
|
|
84508
|
+
sorting: {
|
|
84509
|
+
type: Object,
|
|
84510
|
+
required: true
|
|
84511
|
+
},
|
|
84512
|
+
pagination: {
|
|
84513
|
+
type: Object,
|
|
84514
|
+
required: true
|
|
84515
|
+
},
|
|
84516
|
+
fields: {
|
|
84517
|
+
type: Array,
|
|
84518
|
+
required: true
|
|
84519
|
+
},
|
|
84520
|
+
// Promise that resolves with an array
|
|
84521
|
+
items: {
|
|
84522
|
+
type: Function,
|
|
84523
|
+
required: true
|
|
84524
|
+
},
|
|
84525
|
+
hideSearch: {
|
|
84526
|
+
type: Boolean
|
|
84527
|
+
},
|
|
84528
|
+
hideTotal: {
|
|
84529
|
+
type: Boolean
|
|
84530
|
+
},
|
|
84531
|
+
hidePagination: {
|
|
84532
|
+
type: Boolean
|
|
84533
|
+
},
|
|
84534
|
+
// Are rows clickable
|
|
84535
|
+
clickable: {
|
|
84536
|
+
type: Boolean,
|
|
84537
|
+
default: false
|
|
84538
|
+
},
|
|
84539
|
+
selectable: {
|
|
84540
|
+
type: Boolean,
|
|
84541
|
+
default: false
|
|
84542
|
+
},
|
|
84543
|
+
isItemSelectable: {
|
|
84544
|
+
type: Function,
|
|
84545
|
+
default: () => true
|
|
84546
|
+
},
|
|
84547
|
+
editRoute: {
|
|
84548
|
+
type: String,
|
|
84549
|
+
default: ''
|
|
84550
|
+
},
|
|
84551
|
+
rowClass: {
|
|
84552
|
+
type: Function,
|
|
84553
|
+
default: () => {}
|
|
84554
|
+
},
|
|
84555
|
+
translations: {
|
|
84556
|
+
type: Object,
|
|
84557
|
+
required: true
|
|
84558
|
+
},
|
|
84559
|
+
queryField: {
|
|
84560
|
+
type: String,
|
|
84561
|
+
default: 'query'
|
|
84562
|
+
}
|
|
84563
|
+
},
|
|
84564
|
+
|
|
84565
|
+
data() {
|
|
84566
|
+
return {
|
|
84567
|
+
selected: [],
|
|
84568
|
+
selectableItemIDs: []
|
|
84569
|
+
};
|
|
84570
|
+
},
|
|
84571
|
+
|
|
84572
|
+
computed: {
|
|
84573
|
+
_fields() {
|
|
84574
|
+
const select = this.selectable ? [{
|
|
84575
|
+
key: 'select',
|
|
84576
|
+
label: '',
|
|
84577
|
+
thStyle: 'width: 0; white-space: nowrap;'
|
|
84578
|
+
}] : [];
|
|
84579
|
+
return [...select, ...this.fields].map(f => {
|
|
84580
|
+
return { ...f,
|
|
84581
|
+
thClass: `${f.thClass || 'border-0'}`
|
|
84582
|
+
};
|
|
84583
|
+
});
|
|
84584
|
+
},
|
|
84585
|
+
|
|
84586
|
+
customFieldSlots() {
|
|
84587
|
+
return [...Object.keys(this.$slots), ...Object.keys(this.$scopedSlots)].filter(s => s !== 'header');
|
|
84588
|
+
},
|
|
84050
84589
|
|
|
84590
|
+
disableSelectAll() {
|
|
84591
|
+
return !this.selectableItemIDs.length;
|
|
84592
|
+
},
|
|
84051
84593
|
|
|
84052
|
-
|
|
84053
|
-
|
|
84054
|
-
|
|
84055
|
-
} = this.localDataframe.paging || {};
|
|
84594
|
+
allRowsSelected() {
|
|
84595
|
+
return this.selected.length === this.selectableItemIDs.length;
|
|
84596
|
+
},
|
|
84056
84597
|
|
|
84057
|
-
|
|
84058
|
-
|
|
84059
|
-
|
|
84598
|
+
getPagination() {
|
|
84599
|
+
const {
|
|
84600
|
+
page = 1,
|
|
84601
|
+
count = 0,
|
|
84602
|
+
limit = 10
|
|
84603
|
+
} = this.pagination;
|
|
84604
|
+
return {
|
|
84605
|
+
from: (page - 1) * limit + 1,
|
|
84606
|
+
to: Math.min(page * limit, count),
|
|
84607
|
+
count
|
|
84608
|
+
};
|
|
84609
|
+
},
|
|
84060
84610
|
|
|
84061
|
-
|
|
84062
|
-
|
|
84063
|
-
|
|
84064
|
-
};
|
|
84065
|
-
}
|
|
84611
|
+
hasPrevPage() {
|
|
84612
|
+
return !this.pagination.prevPage;
|
|
84613
|
+
},
|
|
84066
84614
|
|
|
84067
|
-
|
|
84068
|
-
|
|
84069
|
-
this.$emit('update', definition);
|
|
84070
|
-
}
|
|
84071
|
-
}
|
|
84615
|
+
hasNextPage() {
|
|
84616
|
+
return !this.pagination.nextPage;
|
|
84072
84617
|
}
|
|
84073
84618
|
|
|
84074
|
-
}
|
|
84075
|
-
|
|
84619
|
+
},
|
|
84620
|
+
methods: {
|
|
84621
|
+
tableRowClasses(item = {}) {
|
|
84622
|
+
return {
|
|
84623
|
+
'pointer': this.clickable,
|
|
84624
|
+
...this.rowClass(item)
|
|
84625
|
+
};
|
|
84626
|
+
},
|
|
84076
84627
|
|
|
84077
|
-
|
|
84078
|
-
|
|
84628
|
+
_items() {
|
|
84629
|
+
this.selected = [];
|
|
84630
|
+
this.selectableItemIDs = [];
|
|
84631
|
+
return this.items().then((items = []) => {
|
|
84632
|
+
this.selectableItemIDs = items.filter(this.isItemSelectable).map(i => i[this.primaryKey]);
|
|
84633
|
+
return items;
|
|
84634
|
+
});
|
|
84635
|
+
},
|
|
84079
84636
|
|
|
84080
|
-
|
|
84081
|
-
|
|
84082
|
-
|
|
84083
|
-
|
|
84084
|
-
|
|
84085
|
-
}),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
|
-
separator: !!(r[0] || {}).separator,
|
|
84087
|
-
}},_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__$P = [];
|
|
84637
|
+
onSelectRow(selected, itemID) {
|
|
84638
|
+
if (selected) {
|
|
84639
|
+
if (this.selected.includes(itemID)) {
|
|
84640
|
+
return;
|
|
84641
|
+
}
|
|
84089
84642
|
|
|
84090
|
-
|
|
84091
|
-
|
|
84092
|
-
|
|
84093
|
-
inject("data-v-54580af2_0", { source: ".foreign[data-v-54580af2]{border:1px solid rgba(22,36,37,.8);border-top:0;border-bottom:0}.separator[data-v-54580af2]{border-top:2px solid rgba(22,36,37,.5)}.card-rounded[data-v-54580af2]{border-radius:1rem 1rem 0 0}", map: undefined, media: undefined });
|
|
84643
|
+
this.selected.push(itemID);
|
|
84644
|
+
} else {
|
|
84645
|
+
const i = this.selected.indexOf(itemID);
|
|
84094
84646
|
|
|
84095
|
-
|
|
84096
|
-
|
|
84097
|
-
|
|
84098
|
-
/* module identifier */
|
|
84099
|
-
const __vue_module_identifier__$W = undefined;
|
|
84100
|
-
/* functional template */
|
|
84101
|
-
const __vue_is_functional_template__$W = false;
|
|
84102
|
-
/* style inject SSR */
|
|
84103
|
-
|
|
84104
|
-
/* style inject shadow dom */
|
|
84105
|
-
|
|
84647
|
+
if (i < 0) {
|
|
84648
|
+
return;
|
|
84649
|
+
}
|
|
84106
84650
|
|
|
84107
|
-
|
|
84108
|
-
|
|
84109
|
-
|
|
84110
|
-
__vue_inject_styles__$W,
|
|
84111
|
-
__vue_script__$V,
|
|
84112
|
-
__vue_scope_id__$W,
|
|
84113
|
-
__vue_is_functional_template__$W,
|
|
84114
|
-
__vue_module_identifier__$W,
|
|
84115
|
-
false,
|
|
84116
|
-
createInjector,
|
|
84117
|
-
undefined,
|
|
84118
|
-
undefined
|
|
84119
|
-
);
|
|
84651
|
+
this.selected.splice(i, 1);
|
|
84652
|
+
}
|
|
84653
|
+
},
|
|
84120
84654
|
|
|
84121
|
-
|
|
84122
|
-
|
|
84123
|
-
|
|
84655
|
+
selectAllRows(allSelected = false) {
|
|
84656
|
+
if (allSelected) {
|
|
84657
|
+
this.selected = this.selectableItemIDs;
|
|
84658
|
+
} else {
|
|
84659
|
+
this.selected = [];
|
|
84660
|
+
}
|
|
84661
|
+
},
|
|
84662
|
+
|
|
84663
|
+
goToPage(page) {
|
|
84664
|
+
const pageCursor = this.pagination[page] || '';
|
|
84665
|
+
this.$router.push({
|
|
84666
|
+
path: this.$route.path,
|
|
84667
|
+
query: { ...this.$route.query,
|
|
84668
|
+
pageCursor
|
|
84669
|
+
}
|
|
84670
|
+
});
|
|
84671
|
+
}
|
|
84672
|
+
|
|
84673
|
+
}
|
|
84124
84674
|
};
|
|
84125
84675
|
|
|
84126
84676
|
/* script */
|
|
84127
|
-
const __vue_script__$
|
|
84677
|
+
const __vue_script__$Y = script$Y;
|
|
84128
84678
|
|
|
84129
84679
|
/* template */
|
|
84130
|
-
var __vue_render__$
|
|
84131
|
-
var
|
|
84680
|
+
var __vue_render__$S = 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"}},[_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){
|
|
84681
|
+
var item = ref.item;
|
|
84682
|
+
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){
|
|
84683
|
+
var item = ref.item;
|
|
84684
|
+
return [_vm._t(field,null,{"item":item})]}}})],null,true)})],1)],1)};
|
|
84685
|
+
var __vue_staticRenderFns__$S = [];
|
|
84132
84686
|
|
|
84133
84687
|
/* style */
|
|
84134
|
-
const __vue_inject_styles__$
|
|
84688
|
+
const __vue_inject_styles__$Z = undefined;
|
|
84135
84689
|
/* scoped */
|
|
84136
|
-
const __vue_scope_id__$
|
|
84690
|
+
const __vue_scope_id__$Z = undefined;
|
|
84137
84691
|
/* module identifier */
|
|
84138
|
-
const __vue_module_identifier__$
|
|
84692
|
+
const __vue_module_identifier__$Z = undefined;
|
|
84139
84693
|
/* functional template */
|
|
84140
|
-
const __vue_is_functional_template__$
|
|
84694
|
+
const __vue_is_functional_template__$Z = false;
|
|
84141
84695
|
/* style inject */
|
|
84142
84696
|
|
|
84143
84697
|
/* style inject SSR */
|
|
@@ -84146,13 +84700,13 @@ var __vue_staticRenderFns__$Q = [];
|
|
|
84146
84700
|
|
|
84147
84701
|
|
|
84148
84702
|
|
|
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__$
|
|
84703
|
+
const __vue_component__$Z = /*#__PURE__*/normalizeComponent(
|
|
84704
|
+
{ render: __vue_render__$S, staticRenderFns: __vue_staticRenderFns__$S },
|
|
84705
|
+
__vue_inject_styles__$Z,
|
|
84706
|
+
__vue_script__$Y,
|
|
84707
|
+
__vue_scope_id__$Z,
|
|
84708
|
+
__vue_is_functional_template__$Z,
|
|
84709
|
+
__vue_module_identifier__$Z,
|
|
84156
84710
|
false,
|
|
84157
84711
|
undefined,
|
|
84158
84712
|
undefined,
|
|
@@ -84199,7 +84753,7 @@ function ExtractComponents(cat, ...path) {
|
|
|
84199
84753
|
}
|
|
84200
84754
|
|
|
84201
84755
|
//
|
|
84202
|
-
var script$
|
|
84756
|
+
var script$Z = {
|
|
84203
84757
|
name: 'ComponentList',
|
|
84204
84758
|
props: {
|
|
84205
84759
|
catalogue: {
|
|
@@ -84236,37 +84790,37 @@ var script$X = {
|
|
|
84236
84790
|
};
|
|
84237
84791
|
|
|
84238
84792
|
/* script */
|
|
84239
|
-
const __vue_script__$
|
|
84793
|
+
const __vue_script__$Z = script$Z;
|
|
84240
84794
|
|
|
84241
84795
|
/* template */
|
|
84242
|
-
var __vue_render__$
|
|
84243
|
-
var __vue_staticRenderFns__$
|
|
84796
|
+
var __vue_render__$T = 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()])};
|
|
84797
|
+
var __vue_staticRenderFns__$T = [];
|
|
84244
84798
|
|
|
84245
84799
|
/* style */
|
|
84246
|
-
const __vue_inject_styles__$
|
|
84800
|
+
const __vue_inject_styles__$_ = function (inject) {
|
|
84247
84801
|
if (!inject) return
|
|
84248
84802
|
inject("data-v-8b2b254e_0", { source: ".component[data-v-8b2b254e]{cursor:pointer}", map: undefined, media: undefined });
|
|
84249
84803
|
|
|
84250
84804
|
};
|
|
84251
84805
|
/* scoped */
|
|
84252
|
-
const __vue_scope_id__$
|
|
84806
|
+
const __vue_scope_id__$_ = "data-v-8b2b254e";
|
|
84253
84807
|
/* module identifier */
|
|
84254
|
-
const __vue_module_identifier__$
|
|
84808
|
+
const __vue_module_identifier__$_ = undefined;
|
|
84255
84809
|
/* functional template */
|
|
84256
|
-
const __vue_is_functional_template__$
|
|
84810
|
+
const __vue_is_functional_template__$_ = false;
|
|
84257
84811
|
/* style inject SSR */
|
|
84258
84812
|
|
|
84259
84813
|
/* style inject shadow dom */
|
|
84260
84814
|
|
|
84261
84815
|
|
|
84262
84816
|
|
|
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__$
|
|
84817
|
+
const __vue_component__$_ = /*#__PURE__*/normalizeComponent(
|
|
84818
|
+
{ render: __vue_render__$T, staticRenderFns: __vue_staticRenderFns__$T },
|
|
84819
|
+
__vue_inject_styles__$_,
|
|
84820
|
+
__vue_script__$Z,
|
|
84821
|
+
__vue_scope_id__$_,
|
|
84822
|
+
__vue_is_functional_template__$_,
|
|
84823
|
+
__vue_module_identifier__$_,
|
|
84270
84824
|
false,
|
|
84271
84825
|
createInjector,
|
|
84272
84826
|
undefined,
|
|
@@ -84274,10 +84828,10 @@ var __vue_staticRenderFns__$R = [];
|
|
|
84274
84828
|
);
|
|
84275
84829
|
|
|
84276
84830
|
//
|
|
84277
|
-
var script$
|
|
84831
|
+
var script$_ = {
|
|
84278
84832
|
name: 'C3',
|
|
84279
84833
|
components: {
|
|
84280
|
-
ComponentList: __vue_component__$
|
|
84834
|
+
ComponentList: __vue_component__$_
|
|
84281
84835
|
},
|
|
84282
84836
|
props: {
|
|
84283
84837
|
catalogue: {
|
|
@@ -84338,37 +84892,37 @@ var script$Y = {
|
|
|
84338
84892
|
};
|
|
84339
84893
|
|
|
84340
84894
|
/* script */
|
|
84341
|
-
const __vue_script__$
|
|
84895
|
+
const __vue_script__$_ = script$_;
|
|
84342
84896
|
|
|
84343
84897
|
/* template */
|
|
84344
|
-
var __vue_render__$
|
|
84345
|
-
var __vue_staticRenderFns__$
|
|
84898
|
+
var __vue_render__$U = 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()])};
|
|
84899
|
+
var __vue_staticRenderFns__$U = [];
|
|
84346
84900
|
|
|
84347
84901
|
/* style */
|
|
84348
|
-
const __vue_inject_styles__
|
|
84902
|
+
const __vue_inject_styles__$$ = function (inject) {
|
|
84349
84903
|
if (!inject) return
|
|
84350
84904
|
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
84905
|
|
|
84352
84906
|
};
|
|
84353
84907
|
/* scoped */
|
|
84354
|
-
const __vue_scope_id__
|
|
84908
|
+
const __vue_scope_id__$$ = undefined;
|
|
84355
84909
|
/* module identifier */
|
|
84356
|
-
const __vue_module_identifier__
|
|
84910
|
+
const __vue_module_identifier__$$ = undefined;
|
|
84357
84911
|
/* functional template */
|
|
84358
|
-
const __vue_is_functional_template__
|
|
84912
|
+
const __vue_is_functional_template__$$ = false;
|
|
84359
84913
|
/* style inject SSR */
|
|
84360
84914
|
|
|
84361
84915
|
/* style inject shadow dom */
|
|
84362
84916
|
|
|
84363
84917
|
|
|
84364
84918
|
|
|
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__
|
|
84919
|
+
const __vue_component__$$ = /*#__PURE__*/normalizeComponent(
|
|
84920
|
+
{ render: __vue_render__$U, staticRenderFns: __vue_staticRenderFns__$U },
|
|
84921
|
+
__vue_inject_styles__$$,
|
|
84922
|
+
__vue_script__$_,
|
|
84923
|
+
__vue_scope_id__$$,
|
|
84924
|
+
__vue_is_functional_template__$$,
|
|
84925
|
+
__vue_module_identifier__$$,
|
|
84372
84926
|
false,
|
|
84373
84927
|
createInjector,
|
|
84374
84928
|
undefined,
|
|
@@ -84386,7 +84940,7 @@ var __vue_staticRenderFns__$S = [];
|
|
|
84386
84940
|
//
|
|
84387
84941
|
//
|
|
84388
84942
|
//
|
|
84389
|
-
var script
|
|
84943
|
+
var script$$ = {
|
|
84390
84944
|
props: {
|
|
84391
84945
|
label: {
|
|
84392
84946
|
required: true,
|
|
@@ -84400,20 +84954,20 @@ var script$Z = {
|
|
|
84400
84954
|
};
|
|
84401
84955
|
|
|
84402
84956
|
/* script */
|
|
84403
|
-
const __vue_script__
|
|
84957
|
+
const __vue_script__$$ = script$$;
|
|
84404
84958
|
|
|
84405
84959
|
/* template */
|
|
84406
|
-
var __vue_render__$
|
|
84407
|
-
var __vue_staticRenderFns__$
|
|
84960
|
+
var __vue_render__$V = 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)};
|
|
84961
|
+
var __vue_staticRenderFns__$V = [];
|
|
84408
84962
|
|
|
84409
84963
|
/* style */
|
|
84410
|
-
const __vue_inject_styles__$
|
|
84964
|
+
const __vue_inject_styles__$10 = undefined;
|
|
84411
84965
|
/* scoped */
|
|
84412
|
-
const __vue_scope_id__$
|
|
84966
|
+
const __vue_scope_id__$10 = undefined;
|
|
84413
84967
|
/* module identifier */
|
|
84414
|
-
const __vue_module_identifier__$
|
|
84968
|
+
const __vue_module_identifier__$10 = undefined;
|
|
84415
84969
|
/* functional template */
|
|
84416
|
-
const __vue_is_functional_template__$
|
|
84970
|
+
const __vue_is_functional_template__$10 = false;
|
|
84417
84971
|
/* style inject */
|
|
84418
84972
|
|
|
84419
84973
|
/* style inject SSR */
|
|
@@ -84422,13 +84976,13 @@ var __vue_staticRenderFns__$T = [];
|
|
|
84422
84976
|
|
|
84423
84977
|
|
|
84424
84978
|
|
|
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__$
|
|
84979
|
+
const __vue_component__$10 = /*#__PURE__*/normalizeComponent(
|
|
84980
|
+
{ render: __vue_render__$V, staticRenderFns: __vue_staticRenderFns__$V },
|
|
84981
|
+
__vue_inject_styles__$10,
|
|
84982
|
+
__vue_script__$$,
|
|
84983
|
+
__vue_scope_id__$10,
|
|
84984
|
+
__vue_is_functional_template__$10,
|
|
84985
|
+
__vue_module_identifier__$10,
|
|
84432
84986
|
false,
|
|
84433
84987
|
undefined,
|
|
84434
84988
|
undefined,
|
|
@@ -84446,7 +85000,7 @@ var __vue_staticRenderFns__$T = [];
|
|
|
84446
85000
|
//
|
|
84447
85001
|
//
|
|
84448
85002
|
//
|
|
84449
|
-
var script$
|
|
85003
|
+
var script$10 = {
|
|
84450
85004
|
props: {
|
|
84451
85005
|
label: {
|
|
84452
85006
|
required: true,
|
|
@@ -84460,20 +85014,20 @@ var script$_ = {
|
|
|
84460
85014
|
};
|
|
84461
85015
|
|
|
84462
85016
|
/* script */
|
|
84463
|
-
const __vue_script__$
|
|
85017
|
+
const __vue_script__$10 = script$10;
|
|
84464
85018
|
|
|
84465
85019
|
/* template */
|
|
84466
|
-
var __vue_render__$
|
|
84467
|
-
var __vue_staticRenderFns__$
|
|
85020
|
+
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-textarea',{attrs:{"value":_vm.value},on:{"update":function($event){return _vm.$emit('update', $event)}}})],1)};
|
|
85021
|
+
var __vue_staticRenderFns__$W = [];
|
|
84468
85022
|
|
|
84469
85023
|
/* style */
|
|
84470
|
-
const __vue_inject_styles__
|
|
85024
|
+
const __vue_inject_styles__$11 = undefined;
|
|
84471
85025
|
/* scoped */
|
|
84472
|
-
const __vue_scope_id__
|
|
85026
|
+
const __vue_scope_id__$11 = undefined;
|
|
84473
85027
|
/* module identifier */
|
|
84474
|
-
const __vue_module_identifier__
|
|
85028
|
+
const __vue_module_identifier__$11 = undefined;
|
|
84475
85029
|
/* functional template */
|
|
84476
|
-
const __vue_is_functional_template__
|
|
85030
|
+
const __vue_is_functional_template__$11 = false;
|
|
84477
85031
|
/* style inject */
|
|
84478
85032
|
|
|
84479
85033
|
/* style inject SSR */
|
|
@@ -84482,13 +85036,13 @@ var __vue_staticRenderFns__$U = [];
|
|
|
84482
85036
|
|
|
84483
85037
|
|
|
84484
85038
|
|
|
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__
|
|
85039
|
+
const __vue_component__$11 = /*#__PURE__*/normalizeComponent(
|
|
85040
|
+
{ render: __vue_render__$W, staticRenderFns: __vue_staticRenderFns__$W },
|
|
85041
|
+
__vue_inject_styles__$11,
|
|
85042
|
+
__vue_script__$10,
|
|
85043
|
+
__vue_scope_id__$11,
|
|
85044
|
+
__vue_is_functional_template__$11,
|
|
85045
|
+
__vue_module_identifier__$11,
|
|
84492
85046
|
false,
|
|
84493
85047
|
undefined,
|
|
84494
85048
|
undefined,
|
|
@@ -84505,7 +85059,7 @@ var __vue_staticRenderFns__$U = [];
|
|
|
84505
85059
|
//
|
|
84506
85060
|
//
|
|
84507
85061
|
//
|
|
84508
|
-
var script
|
|
85062
|
+
var script$11 = {
|
|
84509
85063
|
props: {
|
|
84510
85064
|
label: {
|
|
84511
85065
|
required: true,
|
|
@@ -84519,20 +85073,20 @@ var script$$ = {
|
|
|
84519
85073
|
};
|
|
84520
85074
|
|
|
84521
85075
|
/* script */
|
|
84522
|
-
const __vue_script__
|
|
85076
|
+
const __vue_script__$11 = script$11;
|
|
84523
85077
|
|
|
84524
85078
|
/* template */
|
|
84525
|
-
var __vue_render__$
|
|
84526
|
-
var __vue_staticRenderFns__$
|
|
85079
|
+
var __vue_render__$X = 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)};
|
|
85080
|
+
var __vue_staticRenderFns__$X = [];
|
|
84527
85081
|
|
|
84528
85082
|
/* style */
|
|
84529
|
-
const __vue_inject_styles__$
|
|
85083
|
+
const __vue_inject_styles__$12 = undefined;
|
|
84530
85084
|
/* scoped */
|
|
84531
|
-
const __vue_scope_id__$
|
|
85085
|
+
const __vue_scope_id__$12 = undefined;
|
|
84532
85086
|
/* module identifier */
|
|
84533
|
-
const __vue_module_identifier__$
|
|
85087
|
+
const __vue_module_identifier__$12 = undefined;
|
|
84534
85088
|
/* functional template */
|
|
84535
|
-
const __vue_is_functional_template__$
|
|
85089
|
+
const __vue_is_functional_template__$12 = false;
|
|
84536
85090
|
/* style inject */
|
|
84537
85091
|
|
|
84538
85092
|
/* style inject SSR */
|
|
@@ -84541,13 +85095,13 @@ var __vue_staticRenderFns__$V = [];
|
|
|
84541
85095
|
|
|
84542
85096
|
|
|
84543
85097
|
|
|
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__$
|
|
85098
|
+
const __vue_component__$12 = /*#__PURE__*/normalizeComponent(
|
|
85099
|
+
{ render: __vue_render__$X, staticRenderFns: __vue_staticRenderFns__$X },
|
|
85100
|
+
__vue_inject_styles__$12,
|
|
85101
|
+
__vue_script__$11,
|
|
85102
|
+
__vue_scope_id__$12,
|
|
85103
|
+
__vue_is_functional_template__$12,
|
|
85104
|
+
__vue_module_identifier__$12,
|
|
84551
85105
|
false,
|
|
84552
85106
|
undefined,
|
|
84553
85107
|
undefined,
|
|
@@ -84566,7 +85120,7 @@ var __vue_staticRenderFns__$V = [];
|
|
|
84566
85120
|
//
|
|
84567
85121
|
//
|
|
84568
85122
|
//
|
|
84569
|
-
var script$
|
|
85123
|
+
var script$12 = {
|
|
84570
85124
|
props: {
|
|
84571
85125
|
label: {
|
|
84572
85126
|
required: true,
|
|
@@ -84584,20 +85138,20 @@ var script$10 = {
|
|
|
84584
85138
|
};
|
|
84585
85139
|
|
|
84586
85140
|
/* script */
|
|
84587
|
-
const __vue_script__$
|
|
85141
|
+
const __vue_script__$12 = script$12;
|
|
84588
85142
|
|
|
84589
85143
|
/* template */
|
|
84590
|
-
var __vue_render__$
|
|
84591
|
-
var __vue_staticRenderFns__$
|
|
85144
|
+
var __vue_render__$Y = 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)};
|
|
85145
|
+
var __vue_staticRenderFns__$Y = [];
|
|
84592
85146
|
|
|
84593
85147
|
/* style */
|
|
84594
|
-
const __vue_inject_styles__$
|
|
85148
|
+
const __vue_inject_styles__$13 = undefined;
|
|
84595
85149
|
/* scoped */
|
|
84596
|
-
const __vue_scope_id__$
|
|
85150
|
+
const __vue_scope_id__$13 = undefined;
|
|
84597
85151
|
/* module identifier */
|
|
84598
|
-
const __vue_module_identifier__$
|
|
85152
|
+
const __vue_module_identifier__$13 = undefined;
|
|
84599
85153
|
/* functional template */
|
|
84600
|
-
const __vue_is_functional_template__$
|
|
85154
|
+
const __vue_is_functional_template__$13 = false;
|
|
84601
85155
|
/* style inject */
|
|
84602
85156
|
|
|
84603
85157
|
/* style inject SSR */
|
|
@@ -84606,13 +85160,13 @@ var __vue_staticRenderFns__$W = [];
|
|
|
84606
85160
|
|
|
84607
85161
|
|
|
84608
85162
|
|
|
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__$
|
|
85163
|
+
const __vue_component__$13 = /*#__PURE__*/normalizeComponent(
|
|
85164
|
+
{ render: __vue_render__$Y, staticRenderFns: __vue_staticRenderFns__$Y },
|
|
85165
|
+
__vue_inject_styles__$13,
|
|
85166
|
+
__vue_script__$12,
|
|
85167
|
+
__vue_scope_id__$13,
|
|
85168
|
+
__vue_is_functional_template__$13,
|
|
85169
|
+
__vue_module_identifier__$13,
|
|
84616
85170
|
false,
|
|
84617
85171
|
undefined,
|
|
84618
85172
|
undefined,
|
|
@@ -84634,16 +85188,16 @@ function generic(component, { handler, props }) {
|
|
|
84634
85188
|
props }, handler);
|
|
84635
85189
|
}
|
|
84636
85190
|
function input(label, handler) {
|
|
84637
|
-
return generic(__vue_component__$
|
|
85191
|
+
return generic(__vue_component__$10, { handler, props: { label } });
|
|
84638
85192
|
}
|
|
84639
85193
|
function textarea(label, handler) {
|
|
84640
|
-
return generic(__vue_component__
|
|
85194
|
+
return generic(__vue_component__$11, { handler, props: { label } });
|
|
84641
85195
|
}
|
|
84642
85196
|
function checkbox(label, handler) {
|
|
84643
|
-
return generic(__vue_component__$
|
|
85197
|
+
return generic(__vue_component__$12, { handler, props: { label } });
|
|
84644
85198
|
}
|
|
84645
85199
|
function select(label, handler, options) {
|
|
84646
|
-
return generic(__vue_component__$
|
|
85200
|
+
return generic(__vue_component__$13, {
|
|
84647
85201
|
handler,
|
|
84648
85202
|
props: {
|
|
84649
85203
|
label,
|
|
@@ -84662,7 +85216,7 @@ var controls = /*#__PURE__*/Object.freeze({
|
|
|
84662
85216
|
});
|
|
84663
85217
|
|
|
84664
85218
|
var index$2 = {
|
|
84665
|
-
View: __vue_component__
|
|
85219
|
+
View: __vue_component__$$,
|
|
84666
85220
|
controls,
|
|
84667
85221
|
};
|
|
84668
85222
|
|
|
@@ -84679,10 +85233,10 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
84679
85233
|
CInputDateTime: __vue_component__$b,
|
|
84680
85234
|
CInputPresort: __vue_component__$c,
|
|
84681
85235
|
CInputCron: __vue_component__$d,
|
|
84682
|
-
|
|
85236
|
+
CInputSearch: __vue_component__$e,
|
|
85237
|
+
CRichTextInput: __vue_component__$n,
|
|
84683
85238
|
CLightbox: __vue_component__$5,
|
|
84684
|
-
CPermissionsButton: __vue_component__$
|
|
84685
|
-
CPermissionsForm: __vue_component__$r,
|
|
85239
|
+
CPermissionsButton: __vue_component__$o,
|
|
84686
85240
|
CPermissionsModal: __vue_component__$s,
|
|
84687
85241
|
CLoaderLogo: __vue_component__$E,
|
|
84688
85242
|
CTopbar: __vue_component__$F,
|
|
@@ -84699,6 +85253,8 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
84699
85253
|
CReportMetric: __vue_component__$V,
|
|
84700
85254
|
CReportTable: __vue_component__$W,
|
|
84701
85255
|
CReportText: __vue_component__$X,
|
|
85256
|
+
CSensitivityLevelPicker: __vue_component__$Y,
|
|
85257
|
+
CResourceList: __vue_component__$Z,
|
|
84702
85258
|
C3: index$2,
|
|
84703
85259
|
CPrompts: __vue_component__$D,
|
|
84704
85260
|
CPromptModal: __vue_component__$C,
|
|
@@ -84934,7 +85490,7 @@ function resumeState(api, { sessionID, stateID }, input) {
|
|
|
84934
85490
|
}
|
|
84935
85491
|
function cancelState(api, { sessionID, stateID }) {
|
|
84936
85492
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84937
|
-
return api.
|
|
85493
|
+
return api.sessionCancel({ sessionID, stateID });
|
|
84938
85494
|
});
|
|
84939
85495
|
}
|
|
84940
85496
|
function onlyFresh(existing, fresh) {
|