@cortezaproject/corteza-vue 2022.3.4 → 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 +1161 -587
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1161 -587
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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,145 +80148,14 @@ var script$q = {
|
|
|
79795
80148
|
title,
|
|
79796
80149
|
description: this.$t(`permissions:${i18nPrefix}.description`)
|
|
79797
80150
|
};
|
|
79798
|
-
}
|
|
79799
|
-
|
|
79800
|
-
}
|
|
79801
|
-
};
|
|
79802
|
-
|
|
79803
|
-
/* script */
|
|
79804
|
-
const __vue_script__$q = script$q;
|
|
79805
|
-
|
|
79806
|
-
/* template */
|
|
79807
|
-
var __vue_render__$n = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form',{on:{"submit":function($event){$event.preventDefault();return _vm.onSubmit.apply(null, arguments)}}},[_c('b-row',[_c('b-col',{staticClass:"role-list",attrs:{"cols":"12","lg":"3"}},[_c('b-list-group',{staticClass:"d-none d-lg-block"},_vm._l((_vm.roles),function(r){return _c('b-list-group-item',{key:r.roleID,staticClass:"text-break pointer",attrs:{"active":r.roleID === _vm.currentRole.roleID,"active-class":"primary","variant":"outline-primary"},on:{"click":function($event){return _vm.onRoleChange(r)}}},[_vm._v("\n "+_vm._s(r.name || r.handle || r.roleID)+"\n ")])}),1),_vm._v(" "),_c('vue-select',{key:"roleID",staticClass:"mb-4 d-block d-lg-none",attrs:{"label":"name","clearable":false,"options":_vm.roles},on:{"input":_vm.onRoleChange},model:{value:(_vm.currentRole),callback:function ($$v) {_vm.currentRole=$$v;},expression:"currentRole"}})],1),_vm._v(" "),_c('b-col',{staticClass:"rule-list",attrs:{"cols":"12","lg":"9"}},[_c('rules',{attrs:{"rules":_vm.rules},on:{"update:rules":function($event){_vm.rules=$event;}}})],1)],1),_vm._v(" "),_c('b-row',{staticClass:"footer mt-3"},[_c('b-col',{staticClass:"rule-list text-right mb-3",attrs:{"cols":"9","offset":"3"}},[_c('b-button',{attrs:{"type":"submit","variant":"primary","disabled":_vm.disabled}},[_vm._v("\n "+_vm._s(_vm.$t('permissions:ui.save-changes'))+"\n ")])],1)],1)],1)};
|
|
79808
|
-
var __vue_staticRenderFns__$n = [];
|
|
79809
|
-
|
|
79810
|
-
/* style */
|
|
79811
|
-
const __vue_inject_styles__$r = function (inject) {
|
|
79812
|
-
if (!inject) return
|
|
79813
|
-
inject("data-v-6a9b0cab_0", { source: ".pointer[data-v-6a9b0cab]{cursor:pointer}", map: undefined, media: undefined });
|
|
79814
|
-
|
|
79815
|
-
};
|
|
79816
|
-
/* scoped */
|
|
79817
|
-
const __vue_scope_id__$r = "data-v-6a9b0cab";
|
|
79818
|
-
/* module identifier */
|
|
79819
|
-
const __vue_module_identifier__$r = undefined;
|
|
79820
|
-
/* functional template */
|
|
79821
|
-
const __vue_is_functional_template__$r = false;
|
|
79822
|
-
/* style inject SSR */
|
|
79823
|
-
|
|
79824
|
-
/* style inject shadow dom */
|
|
79825
|
-
|
|
79826
|
-
|
|
79827
|
-
|
|
79828
|
-
const __vue_component__$r = /*#__PURE__*/normalizeComponent(
|
|
79829
|
-
{ render: __vue_render__$n, staticRenderFns: __vue_staticRenderFns__$n },
|
|
79830
|
-
__vue_inject_styles__$r,
|
|
79831
|
-
__vue_script__$q,
|
|
79832
|
-
__vue_scope_id__$r,
|
|
79833
|
-
__vue_is_functional_template__$r,
|
|
79834
|
-
__vue_module_identifier__$r,
|
|
79835
|
-
false,
|
|
79836
|
-
createInjector,
|
|
79837
|
-
undefined,
|
|
79838
|
-
undefined
|
|
79839
|
-
);
|
|
79840
|
-
|
|
79841
|
-
var script$r = {
|
|
79842
|
-
i18nOptions: {
|
|
79843
|
-
namespaces: 'permissions'
|
|
79844
|
-
},
|
|
79845
|
-
components: {
|
|
79846
|
-
CPermissionsForm: __vue_component__$r
|
|
79847
|
-
},
|
|
79848
|
-
|
|
79849
|
-
data() {
|
|
79850
|
-
return {
|
|
79851
|
-
resource: undefined,
|
|
79852
|
-
title: undefined,
|
|
79853
|
-
target: undefined,
|
|
79854
|
-
allSpecific: false
|
|
79855
|
-
};
|
|
79856
|
-
},
|
|
79857
|
-
|
|
79858
|
-
computed: {
|
|
79859
|
-
showModal: {
|
|
79860
|
-
get() {
|
|
79861
|
-
return !!this.resource;
|
|
79862
|
-
},
|
|
79863
|
-
|
|
79864
|
-
set(open) {
|
|
79865
|
-
if (!open) {
|
|
79866
|
-
this.clear();
|
|
79867
|
-
}
|
|
79868
|
-
}
|
|
79869
|
-
|
|
79870
80151
|
},
|
|
79871
80152
|
|
|
79872
|
-
|
|
79873
|
-
if (
|
|
79874
|
-
|
|
79875
|
-
i18nPrefix
|
|
79876
|
-
} = split(this.resource);
|
|
79877
|
-
let target;
|
|
79878
|
-
|
|
79879
|
-
if (this.allSpecific) {
|
|
79880
|
-
target = this.$t(`permissions:${i18nPrefix}.all-specific`, {
|
|
79881
|
-
target: this.title,
|
|
79882
|
-
interpolation: {
|
|
79883
|
-
escapeValue: false
|
|
79884
|
-
}
|
|
79885
|
-
});
|
|
79886
|
-
} else if (this.title) {
|
|
79887
|
-
target = this.$t(`permissions:${i18nPrefix}.specific`, {
|
|
79888
|
-
target: this.title,
|
|
79889
|
-
interpolation: {
|
|
79890
|
-
escapeValue: false
|
|
79891
|
-
}
|
|
79892
|
-
});
|
|
79893
|
-
} else {
|
|
79894
|
-
target = this.$t(`permissions:${i18nPrefix}.all`);
|
|
79895
|
-
}
|
|
79896
|
-
|
|
79897
|
-
return this.$t('permissions:ui.set-for', {
|
|
79898
|
-
target: target,
|
|
79899
|
-
interpolation: {
|
|
79900
|
-
escapeValue: false
|
|
79901
|
-
}
|
|
79902
|
-
});
|
|
80153
|
+
getRuleTooltip(isUnknown = false, isUser) {
|
|
80154
|
+
if (!isUnknown) {
|
|
80155
|
+
return '';
|
|
79903
80156
|
}
|
|
79904
80157
|
|
|
79905
|
-
return
|
|
79906
|
-
}
|
|
79907
|
-
|
|
79908
|
-
},
|
|
79909
|
-
|
|
79910
|
-
mounted() {
|
|
79911
|
-
this.$root.$on(modalOpenEventName, ({
|
|
79912
|
-
resource,
|
|
79913
|
-
title,
|
|
79914
|
-
target,
|
|
79915
|
-
allSpecific
|
|
79916
|
-
}) => {
|
|
79917
|
-
this.resource = resource;
|
|
79918
|
-
this.title = title;
|
|
79919
|
-
this.target = target;
|
|
79920
|
-
this.allSpecific = allSpecific;
|
|
79921
|
-
});
|
|
79922
|
-
},
|
|
79923
|
-
|
|
79924
|
-
destroyed() {
|
|
79925
|
-
this.$root.$off(modalOpenEventName);
|
|
79926
|
-
},
|
|
79927
|
-
|
|
79928
|
-
methods: {
|
|
79929
|
-
onHide() {
|
|
79930
|
-
this.clear();
|
|
79931
|
-
},
|
|
79932
|
-
|
|
79933
|
-
clear() {
|
|
79934
|
-
this.resource = undefined;
|
|
79935
|
-
this.title = undefined;
|
|
79936
|
-
this.target = undefined;
|
|
80158
|
+
return this.$t(`permissions:ui.tooltip.unknown-context.${isUser ? 'user' : 'role'}`);
|
|
79937
80159
|
}
|
|
79938
80160
|
|
|
79939
80161
|
}
|
|
@@ -79943,19 +80165,21 @@ var script$r = {
|
|
|
79943
80165
|
const __vue_script__$r = script$r;
|
|
79944
80166
|
|
|
79945
80167
|
/* 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:{"
|
|
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)};
|
|
79947
80169
|
var __vue_staticRenderFns__$o = [];
|
|
79948
80170
|
|
|
79949
80171
|
/* style */
|
|
79950
|
-
const __vue_inject_styles__$s =
|
|
80172
|
+
const __vue_inject_styles__$s = function (inject) {
|
|
80173
|
+
if (!inject) return
|
|
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 });
|
|
80175
|
+
|
|
80176
|
+
};
|
|
79951
80177
|
/* scoped */
|
|
79952
|
-
const __vue_scope_id__$s =
|
|
80178
|
+
const __vue_scope_id__$s = "data-v-63e6d773";
|
|
79953
80179
|
/* module identifier */
|
|
79954
80180
|
const __vue_module_identifier__$s = undefined;
|
|
79955
80181
|
/* functional template */
|
|
79956
80182
|
const __vue_is_functional_template__$s = false;
|
|
79957
|
-
/* style inject */
|
|
79958
|
-
|
|
79959
80183
|
/* style inject SSR */
|
|
79960
80184
|
|
|
79961
80185
|
/* style inject shadow dom */
|
|
@@ -79970,7 +80194,7 @@ var __vue_staticRenderFns__$o = [];
|
|
|
79970
80194
|
__vue_is_functional_template__$s,
|
|
79971
80195
|
__vue_module_identifier__$s,
|
|
79972
80196
|
false,
|
|
79973
|
-
|
|
80197
|
+
createInjector,
|
|
79974
80198
|
undefined,
|
|
79975
80199
|
undefined
|
|
79976
80200
|
);
|
|
@@ -80933,6 +81157,12 @@ const definitions = {
|
|
|
80933
81157
|
});
|
|
80934
81158
|
},
|
|
80935
81159
|
},
|
|
81160
|
+
refetchRecords: {
|
|
81161
|
+
handler: function () {
|
|
81162
|
+
// @ts-ignore
|
|
81163
|
+
this.$root.$emit('refetch-records');
|
|
81164
|
+
},
|
|
81165
|
+
},
|
|
80936
81166
|
};
|
|
80937
81167
|
|
|
80938
81168
|
//
|
|
@@ -81327,6 +81557,7 @@ const prompts = Object.freeze([
|
|
|
81327
81557
|
ref: 'redirect',
|
|
81328
81558
|
meta: { short: 'Redirect user to an outside URL' },
|
|
81329
81559
|
parameters: [
|
|
81560
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81330
81561
|
{ name: 'url', types: ['String'], required: true },
|
|
81331
81562
|
{ name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
|
|
81332
81563
|
],
|
|
@@ -81335,6 +81566,7 @@ const prompts = Object.freeze([
|
|
|
81335
81566
|
ref: 'reroute',
|
|
81336
81567
|
meta: { short: 'Redirect user to an internal application route' },
|
|
81337
81568
|
parameters: [
|
|
81569
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81338
81570
|
{ name: 'name', types: ['String'], required: true },
|
|
81339
81571
|
{ name: 'params', types: ['KV'] },
|
|
81340
81572
|
{ name: 'query', types: ['KV'] },
|
|
@@ -81348,6 +81580,7 @@ const prompts = Object.freeze([
|
|
|
81348
81580
|
webapps: ['compose'],
|
|
81349
81581
|
},
|
|
81350
81582
|
parameters: [
|
|
81583
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81351
81584
|
{ name: 'module', types: ['ID', 'Handle', 'ComposeModule'] },
|
|
81352
81585
|
{ name: 'namespace', types: ['ID', 'Handle', 'ComposeNamespace'] },
|
|
81353
81586
|
{ name: 'record', types: ['ID', 'ComposeRecord'] },
|
|
@@ -81355,10 +81588,15 @@ const prompts = Object.freeze([
|
|
|
81355
81588
|
{ name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
|
|
81356
81589
|
],
|
|
81357
81590
|
},
|
|
81591
|
+
{
|
|
81592
|
+
ref: 'refetchRecords',
|
|
81593
|
+
meta: { short: 'Refreshes all record values on the page' },
|
|
81594
|
+
},
|
|
81358
81595
|
{
|
|
81359
81596
|
ref: 'notification',
|
|
81360
81597
|
meta: { short: 'Show non-blocking message to user' },
|
|
81361
81598
|
parameters: [
|
|
81599
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81362
81600
|
{ name: 'title', types: ['String'] },
|
|
81363
81601
|
{ name: 'message', types: ['String'], required: true },
|
|
81364
81602
|
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
@@ -81369,6 +81607,7 @@ const prompts = Object.freeze([
|
|
|
81369
81607
|
ref: 'alert',
|
|
81370
81608
|
meta: { short: 'Prompt user with an alert' },
|
|
81371
81609
|
parameters: [
|
|
81610
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81372
81611
|
{ name: 'title', types: ['String'] },
|
|
81373
81612
|
{ name: 'message', types: ['String'], required: true },
|
|
81374
81613
|
{ name: 'buttonLabel', types: ['String'] },
|
|
@@ -81380,6 +81619,7 @@ const prompts = Object.freeze([
|
|
|
81380
81619
|
ref: 'choice',
|
|
81381
81620
|
meta: { short: 'Prompt user with choice' },
|
|
81382
81621
|
parameters: [
|
|
81622
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81383
81623
|
{ name: 'title', types: ['String'] },
|
|
81384
81624
|
{ name: 'message', types: ['String'], required: true },
|
|
81385
81625
|
{ name: 'confirmButtonLabel', types: ['String'] },
|
|
@@ -81397,6 +81637,7 @@ const prompts = Object.freeze([
|
|
|
81397
81637
|
ref: 'composeRecordPicker',
|
|
81398
81638
|
meta: { short: 'Prompt user to select a Compose Record' },
|
|
81399
81639
|
parameters: [
|
|
81640
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81400
81641
|
{ name: 'title', types: ['String'] },
|
|
81401
81642
|
{ name: 'message', types: ['String'], required: true },
|
|
81402
81643
|
{ name: 'namespace', types: ['ID', 'Handle', 'ComposeNamespace'], required: true },
|
|
@@ -81413,6 +81654,7 @@ const prompts = Object.freeze([
|
|
|
81413
81654
|
ref: 'input',
|
|
81414
81655
|
meta: { short: 'Prompt user with a single input' },
|
|
81415
81656
|
parameters: [
|
|
81657
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81416
81658
|
{ name: 'title', types: ['String'] },
|
|
81417
81659
|
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
81418
81660
|
{ name: 'message', types: ['String'], required: true },
|
|
@@ -81444,6 +81686,7 @@ const prompts = Object.freeze([
|
|
|
81444
81686
|
ref: 'options',
|
|
81445
81687
|
meta: { short: 'Prompt user with options' },
|
|
81446
81688
|
parameters: [
|
|
81689
|
+
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
81447
81690
|
{ name: 'title', types: ['String'] },
|
|
81448
81691
|
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
81449
81692
|
{ name: 'message', types: ['String'], required: true },
|
|
@@ -83120,7 +83363,8 @@ var script$R = {
|
|
|
83120
83363
|
name: 'CItemPicker',
|
|
83121
83364
|
components: {
|
|
83122
83365
|
draggable: Draggable,
|
|
83123
|
-
CItemPickerItem: __vue_component__$R
|
|
83366
|
+
CItemPickerItem: __vue_component__$R,
|
|
83367
|
+
CInputSearch: __vue_component__$e
|
|
83124
83368
|
},
|
|
83125
83369
|
props: {
|
|
83126
83370
|
/**
|
|
@@ -83377,7 +83621,7 @@ var script$R = {
|
|
|
83377
83621
|
const __vue_script__$R = script$R;
|
|
83378
83622
|
|
|
83379
83623
|
/* template */
|
|
83380
|
-
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)};
|
|
83381
83625
|
var __vue_staticRenderFns__$M = [];
|
|
83382
83626
|
|
|
83383
83627
|
/* style */
|
|
@@ -84031,95 +84275,423 @@ var script$V = {
|
|
|
84031
84275
|
} // Paging
|
|
84032
84276
|
|
|
84033
84277
|
|
|
84034
|
-
if (this.cursor) {
|
|
84035
|
-
let {
|
|
84036
|
-
limit
|
|
84037
|
-
} = this.localDataframe.paging || {};
|
|
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
|
+
},
|
|
84589
|
+
|
|
84590
|
+
disableSelectAll() {
|
|
84591
|
+
return !this.selectableItemIDs.length;
|
|
84592
|
+
},
|
|
84038
84593
|
|
|
84039
|
-
|
|
84040
|
-
|
|
84041
|
-
|
|
84594
|
+
allRowsSelected() {
|
|
84595
|
+
return this.selected.length === this.selectableItemIDs.length;
|
|
84596
|
+
},
|
|
84042
84597
|
|
|
84043
|
-
|
|
84044
|
-
|
|
84045
|
-
|
|
84046
|
-
|
|
84047
|
-
|
|
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
|
+
},
|
|
84048
84610
|
|
|
84049
|
-
|
|
84050
|
-
|
|
84051
|
-
|
|
84052
|
-
|
|
84053
|
-
|
|
84611
|
+
hasPrevPage() {
|
|
84612
|
+
return !this.pagination.prevPage;
|
|
84613
|
+
},
|
|
84614
|
+
|
|
84615
|
+
hasNextPage() {
|
|
84616
|
+
return !this.pagination.nextPage;
|
|
84054
84617
|
}
|
|
84055
84618
|
|
|
84056
|
-
}
|
|
84057
|
-
|
|
84619
|
+
},
|
|
84620
|
+
methods: {
|
|
84621
|
+
tableRowClasses(item = {}) {
|
|
84622
|
+
return {
|
|
84623
|
+
'pointer': this.clickable,
|
|
84624
|
+
...this.rowClass(item)
|
|
84625
|
+
};
|
|
84626
|
+
},
|
|
84058
84627
|
|
|
84059
|
-
|
|
84060
|
-
|
|
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
|
+
},
|
|
84061
84636
|
|
|
84062
|
-
|
|
84063
|
-
|
|
84064
|
-
|
|
84065
|
-
|
|
84066
|
-
|
|
84067
|
-
}),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:{
|
|
84068
|
-
separator: !!(r[0] || {}).separator,
|
|
84069
|
-
}},_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)};
|
|
84070
|
-
var __vue_staticRenderFns__$P = [];
|
|
84637
|
+
onSelectRow(selected, itemID) {
|
|
84638
|
+
if (selected) {
|
|
84639
|
+
if (this.selected.includes(itemID)) {
|
|
84640
|
+
return;
|
|
84641
|
+
}
|
|
84071
84642
|
|
|
84072
|
-
|
|
84073
|
-
|
|
84074
|
-
|
|
84075
|
-
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 });
|
|
84643
|
+
this.selected.push(itemID);
|
|
84644
|
+
} else {
|
|
84645
|
+
const i = this.selected.indexOf(itemID);
|
|
84076
84646
|
|
|
84077
|
-
|
|
84078
|
-
|
|
84079
|
-
|
|
84080
|
-
/* module identifier */
|
|
84081
|
-
const __vue_module_identifier__$W = undefined;
|
|
84082
|
-
/* functional template */
|
|
84083
|
-
const __vue_is_functional_template__$W = false;
|
|
84084
|
-
/* style inject SSR */
|
|
84085
|
-
|
|
84086
|
-
/* style inject shadow dom */
|
|
84087
|
-
|
|
84647
|
+
if (i < 0) {
|
|
84648
|
+
return;
|
|
84649
|
+
}
|
|
84088
84650
|
|
|
84089
|
-
|
|
84090
|
-
|
|
84091
|
-
|
|
84092
|
-
__vue_inject_styles__$W,
|
|
84093
|
-
__vue_script__$V,
|
|
84094
|
-
__vue_scope_id__$W,
|
|
84095
|
-
__vue_is_functional_template__$W,
|
|
84096
|
-
__vue_module_identifier__$W,
|
|
84097
|
-
false,
|
|
84098
|
-
createInjector,
|
|
84099
|
-
undefined,
|
|
84100
|
-
undefined
|
|
84101
|
-
);
|
|
84651
|
+
this.selected.splice(i, 1);
|
|
84652
|
+
}
|
|
84653
|
+
},
|
|
84102
84654
|
|
|
84103
|
-
|
|
84104
|
-
|
|
84105
|
-
|
|
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
|
+
}
|
|
84106
84674
|
};
|
|
84107
84675
|
|
|
84108
84676
|
/* script */
|
|
84109
|
-
const __vue_script__$
|
|
84677
|
+
const __vue_script__$Y = script$Y;
|
|
84110
84678
|
|
|
84111
84679
|
/* template */
|
|
84112
|
-
var __vue_render__$
|
|
84113
|
-
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 = [];
|
|
84114
84686
|
|
|
84115
84687
|
/* style */
|
|
84116
|
-
const __vue_inject_styles__$
|
|
84688
|
+
const __vue_inject_styles__$Z = undefined;
|
|
84117
84689
|
/* scoped */
|
|
84118
|
-
const __vue_scope_id__$
|
|
84690
|
+
const __vue_scope_id__$Z = undefined;
|
|
84119
84691
|
/* module identifier */
|
|
84120
|
-
const __vue_module_identifier__$
|
|
84692
|
+
const __vue_module_identifier__$Z = undefined;
|
|
84121
84693
|
/* functional template */
|
|
84122
|
-
const __vue_is_functional_template__$
|
|
84694
|
+
const __vue_is_functional_template__$Z = false;
|
|
84123
84695
|
/* style inject */
|
|
84124
84696
|
|
|
84125
84697
|
/* style inject SSR */
|
|
@@ -84128,13 +84700,13 @@ var __vue_staticRenderFns__$Q = [];
|
|
|
84128
84700
|
|
|
84129
84701
|
|
|
84130
84702
|
|
|
84131
|
-
const __vue_component__$
|
|
84132
|
-
{ render: __vue_render__$
|
|
84133
|
-
__vue_inject_styles__$
|
|
84134
|
-
__vue_script__$
|
|
84135
|
-
__vue_scope_id__$
|
|
84136
|
-
__vue_is_functional_template__$
|
|
84137
|
-
__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,
|
|
84138
84710
|
false,
|
|
84139
84711
|
undefined,
|
|
84140
84712
|
undefined,
|
|
@@ -84181,7 +84753,7 @@ function ExtractComponents(cat, ...path) {
|
|
|
84181
84753
|
}
|
|
84182
84754
|
|
|
84183
84755
|
//
|
|
84184
|
-
var script$
|
|
84756
|
+
var script$Z = {
|
|
84185
84757
|
name: 'ComponentList',
|
|
84186
84758
|
props: {
|
|
84187
84759
|
catalogue: {
|
|
@@ -84218,37 +84790,37 @@ var script$X = {
|
|
|
84218
84790
|
};
|
|
84219
84791
|
|
|
84220
84792
|
/* script */
|
|
84221
|
-
const __vue_script__$
|
|
84793
|
+
const __vue_script__$Z = script$Z;
|
|
84222
84794
|
|
|
84223
84795
|
/* template */
|
|
84224
|
-
var __vue_render__$
|
|
84225
|
-
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 = [];
|
|
84226
84798
|
|
|
84227
84799
|
/* style */
|
|
84228
|
-
const __vue_inject_styles__$
|
|
84800
|
+
const __vue_inject_styles__$_ = function (inject) {
|
|
84229
84801
|
if (!inject) return
|
|
84230
84802
|
inject("data-v-8b2b254e_0", { source: ".component[data-v-8b2b254e]{cursor:pointer}", map: undefined, media: undefined });
|
|
84231
84803
|
|
|
84232
84804
|
};
|
|
84233
84805
|
/* scoped */
|
|
84234
|
-
const __vue_scope_id__$
|
|
84806
|
+
const __vue_scope_id__$_ = "data-v-8b2b254e";
|
|
84235
84807
|
/* module identifier */
|
|
84236
|
-
const __vue_module_identifier__$
|
|
84808
|
+
const __vue_module_identifier__$_ = undefined;
|
|
84237
84809
|
/* functional template */
|
|
84238
|
-
const __vue_is_functional_template__$
|
|
84810
|
+
const __vue_is_functional_template__$_ = false;
|
|
84239
84811
|
/* style inject SSR */
|
|
84240
84812
|
|
|
84241
84813
|
/* style inject shadow dom */
|
|
84242
84814
|
|
|
84243
84815
|
|
|
84244
84816
|
|
|
84245
|
-
const __vue_component__$
|
|
84246
|
-
{ render: __vue_render__$
|
|
84247
|
-
__vue_inject_styles__$
|
|
84248
|
-
__vue_script__$
|
|
84249
|
-
__vue_scope_id__$
|
|
84250
|
-
__vue_is_functional_template__$
|
|
84251
|
-
__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__$_,
|
|
84252
84824
|
false,
|
|
84253
84825
|
createInjector,
|
|
84254
84826
|
undefined,
|
|
@@ -84256,10 +84828,10 @@ var __vue_staticRenderFns__$R = [];
|
|
|
84256
84828
|
);
|
|
84257
84829
|
|
|
84258
84830
|
//
|
|
84259
|
-
var script$
|
|
84831
|
+
var script$_ = {
|
|
84260
84832
|
name: 'C3',
|
|
84261
84833
|
components: {
|
|
84262
|
-
ComponentList: __vue_component__$
|
|
84834
|
+
ComponentList: __vue_component__$_
|
|
84263
84835
|
},
|
|
84264
84836
|
props: {
|
|
84265
84837
|
catalogue: {
|
|
@@ -84320,37 +84892,37 @@ var script$Y = {
|
|
|
84320
84892
|
};
|
|
84321
84893
|
|
|
84322
84894
|
/* script */
|
|
84323
|
-
const __vue_script__$
|
|
84895
|
+
const __vue_script__$_ = script$_;
|
|
84324
84896
|
|
|
84325
84897
|
/* template */
|
|
84326
|
-
var __vue_render__$
|
|
84327
|
-
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 = [];
|
|
84328
84900
|
|
|
84329
84901
|
/* style */
|
|
84330
|
-
const __vue_inject_styles__
|
|
84902
|
+
const __vue_inject_styles__$$ = function (inject) {
|
|
84331
84903
|
if (!inject) return
|
|
84332
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 });
|
|
84333
84905
|
|
|
84334
84906
|
};
|
|
84335
84907
|
/* scoped */
|
|
84336
|
-
const __vue_scope_id__
|
|
84908
|
+
const __vue_scope_id__$$ = undefined;
|
|
84337
84909
|
/* module identifier */
|
|
84338
|
-
const __vue_module_identifier__
|
|
84910
|
+
const __vue_module_identifier__$$ = undefined;
|
|
84339
84911
|
/* functional template */
|
|
84340
|
-
const __vue_is_functional_template__
|
|
84912
|
+
const __vue_is_functional_template__$$ = false;
|
|
84341
84913
|
/* style inject SSR */
|
|
84342
84914
|
|
|
84343
84915
|
/* style inject shadow dom */
|
|
84344
84916
|
|
|
84345
84917
|
|
|
84346
84918
|
|
|
84347
|
-
const __vue_component__
|
|
84348
|
-
{ render: __vue_render__$
|
|
84349
|
-
__vue_inject_styles__
|
|
84350
|
-
__vue_script__$
|
|
84351
|
-
__vue_scope_id__
|
|
84352
|
-
__vue_is_functional_template__
|
|
84353
|
-
__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__$$,
|
|
84354
84926
|
false,
|
|
84355
84927
|
createInjector,
|
|
84356
84928
|
undefined,
|
|
@@ -84368,7 +84940,7 @@ var __vue_staticRenderFns__$S = [];
|
|
|
84368
84940
|
//
|
|
84369
84941
|
//
|
|
84370
84942
|
//
|
|
84371
|
-
var script
|
|
84943
|
+
var script$$ = {
|
|
84372
84944
|
props: {
|
|
84373
84945
|
label: {
|
|
84374
84946
|
required: true,
|
|
@@ -84382,20 +84954,20 @@ var script$Z = {
|
|
|
84382
84954
|
};
|
|
84383
84955
|
|
|
84384
84956
|
/* script */
|
|
84385
|
-
const __vue_script__
|
|
84957
|
+
const __vue_script__$$ = script$$;
|
|
84386
84958
|
|
|
84387
84959
|
/* template */
|
|
84388
|
-
var __vue_render__$
|
|
84389
|
-
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 = [];
|
|
84390
84962
|
|
|
84391
84963
|
/* style */
|
|
84392
|
-
const __vue_inject_styles__$
|
|
84964
|
+
const __vue_inject_styles__$10 = undefined;
|
|
84393
84965
|
/* scoped */
|
|
84394
|
-
const __vue_scope_id__$
|
|
84966
|
+
const __vue_scope_id__$10 = undefined;
|
|
84395
84967
|
/* module identifier */
|
|
84396
|
-
const __vue_module_identifier__$
|
|
84968
|
+
const __vue_module_identifier__$10 = undefined;
|
|
84397
84969
|
/* functional template */
|
|
84398
|
-
const __vue_is_functional_template__$
|
|
84970
|
+
const __vue_is_functional_template__$10 = false;
|
|
84399
84971
|
/* style inject */
|
|
84400
84972
|
|
|
84401
84973
|
/* style inject SSR */
|
|
@@ -84404,13 +84976,13 @@ var __vue_staticRenderFns__$T = [];
|
|
|
84404
84976
|
|
|
84405
84977
|
|
|
84406
84978
|
|
|
84407
|
-
const __vue_component__$
|
|
84408
|
-
{ render: __vue_render__$
|
|
84409
|
-
__vue_inject_styles__$
|
|
84410
|
-
__vue_script__
|
|
84411
|
-
__vue_scope_id__$
|
|
84412
|
-
__vue_is_functional_template__$
|
|
84413
|
-
__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,
|
|
84414
84986
|
false,
|
|
84415
84987
|
undefined,
|
|
84416
84988
|
undefined,
|
|
@@ -84428,7 +85000,7 @@ var __vue_staticRenderFns__$T = [];
|
|
|
84428
85000
|
//
|
|
84429
85001
|
//
|
|
84430
85002
|
//
|
|
84431
|
-
var script$
|
|
85003
|
+
var script$10 = {
|
|
84432
85004
|
props: {
|
|
84433
85005
|
label: {
|
|
84434
85006
|
required: true,
|
|
@@ -84442,20 +85014,20 @@ var script$_ = {
|
|
|
84442
85014
|
};
|
|
84443
85015
|
|
|
84444
85016
|
/* script */
|
|
84445
|
-
const __vue_script__$
|
|
85017
|
+
const __vue_script__$10 = script$10;
|
|
84446
85018
|
|
|
84447
85019
|
/* template */
|
|
84448
|
-
var __vue_render__$
|
|
84449
|
-
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 = [];
|
|
84450
85022
|
|
|
84451
85023
|
/* style */
|
|
84452
|
-
const __vue_inject_styles__
|
|
85024
|
+
const __vue_inject_styles__$11 = undefined;
|
|
84453
85025
|
/* scoped */
|
|
84454
|
-
const __vue_scope_id__
|
|
85026
|
+
const __vue_scope_id__$11 = undefined;
|
|
84455
85027
|
/* module identifier */
|
|
84456
|
-
const __vue_module_identifier__
|
|
85028
|
+
const __vue_module_identifier__$11 = undefined;
|
|
84457
85029
|
/* functional template */
|
|
84458
|
-
const __vue_is_functional_template__
|
|
85030
|
+
const __vue_is_functional_template__$11 = false;
|
|
84459
85031
|
/* style inject */
|
|
84460
85032
|
|
|
84461
85033
|
/* style inject SSR */
|
|
@@ -84464,13 +85036,13 @@ var __vue_staticRenderFns__$U = [];
|
|
|
84464
85036
|
|
|
84465
85037
|
|
|
84466
85038
|
|
|
84467
|
-
const __vue_component__
|
|
84468
|
-
{ render: __vue_render__$
|
|
84469
|
-
__vue_inject_styles__
|
|
84470
|
-
__vue_script__$
|
|
84471
|
-
__vue_scope_id__
|
|
84472
|
-
__vue_is_functional_template__
|
|
84473
|
-
__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,
|
|
84474
85046
|
false,
|
|
84475
85047
|
undefined,
|
|
84476
85048
|
undefined,
|
|
@@ -84487,7 +85059,7 @@ var __vue_staticRenderFns__$U = [];
|
|
|
84487
85059
|
//
|
|
84488
85060
|
//
|
|
84489
85061
|
//
|
|
84490
|
-
var script
|
|
85062
|
+
var script$11 = {
|
|
84491
85063
|
props: {
|
|
84492
85064
|
label: {
|
|
84493
85065
|
required: true,
|
|
@@ -84501,20 +85073,20 @@ var script$$ = {
|
|
|
84501
85073
|
};
|
|
84502
85074
|
|
|
84503
85075
|
/* script */
|
|
84504
|
-
const __vue_script__
|
|
85076
|
+
const __vue_script__$11 = script$11;
|
|
84505
85077
|
|
|
84506
85078
|
/* template */
|
|
84507
|
-
var __vue_render__$
|
|
84508
|
-
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 = [];
|
|
84509
85081
|
|
|
84510
85082
|
/* style */
|
|
84511
|
-
const __vue_inject_styles__$
|
|
85083
|
+
const __vue_inject_styles__$12 = undefined;
|
|
84512
85084
|
/* scoped */
|
|
84513
|
-
const __vue_scope_id__$
|
|
85085
|
+
const __vue_scope_id__$12 = undefined;
|
|
84514
85086
|
/* module identifier */
|
|
84515
|
-
const __vue_module_identifier__$
|
|
85087
|
+
const __vue_module_identifier__$12 = undefined;
|
|
84516
85088
|
/* functional template */
|
|
84517
|
-
const __vue_is_functional_template__$
|
|
85089
|
+
const __vue_is_functional_template__$12 = false;
|
|
84518
85090
|
/* style inject */
|
|
84519
85091
|
|
|
84520
85092
|
/* style inject SSR */
|
|
@@ -84523,13 +85095,13 @@ var __vue_staticRenderFns__$V = [];
|
|
|
84523
85095
|
|
|
84524
85096
|
|
|
84525
85097
|
|
|
84526
|
-
const __vue_component__$
|
|
84527
|
-
{ render: __vue_render__$
|
|
84528
|
-
__vue_inject_styles__$
|
|
84529
|
-
__vue_script__
|
|
84530
|
-
__vue_scope_id__$
|
|
84531
|
-
__vue_is_functional_template__$
|
|
84532
|
-
__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,
|
|
84533
85105
|
false,
|
|
84534
85106
|
undefined,
|
|
84535
85107
|
undefined,
|
|
@@ -84548,7 +85120,7 @@ var __vue_staticRenderFns__$V = [];
|
|
|
84548
85120
|
//
|
|
84549
85121
|
//
|
|
84550
85122
|
//
|
|
84551
|
-
var script$
|
|
85123
|
+
var script$12 = {
|
|
84552
85124
|
props: {
|
|
84553
85125
|
label: {
|
|
84554
85126
|
required: true,
|
|
@@ -84566,20 +85138,20 @@ var script$10 = {
|
|
|
84566
85138
|
};
|
|
84567
85139
|
|
|
84568
85140
|
/* script */
|
|
84569
|
-
const __vue_script__$
|
|
85141
|
+
const __vue_script__$12 = script$12;
|
|
84570
85142
|
|
|
84571
85143
|
/* template */
|
|
84572
|
-
var __vue_render__$
|
|
84573
|
-
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 = [];
|
|
84574
85146
|
|
|
84575
85147
|
/* style */
|
|
84576
|
-
const __vue_inject_styles__$
|
|
85148
|
+
const __vue_inject_styles__$13 = undefined;
|
|
84577
85149
|
/* scoped */
|
|
84578
|
-
const __vue_scope_id__$
|
|
85150
|
+
const __vue_scope_id__$13 = undefined;
|
|
84579
85151
|
/* module identifier */
|
|
84580
|
-
const __vue_module_identifier__$
|
|
85152
|
+
const __vue_module_identifier__$13 = undefined;
|
|
84581
85153
|
/* functional template */
|
|
84582
|
-
const __vue_is_functional_template__$
|
|
85154
|
+
const __vue_is_functional_template__$13 = false;
|
|
84583
85155
|
/* style inject */
|
|
84584
85156
|
|
|
84585
85157
|
/* style inject SSR */
|
|
@@ -84588,13 +85160,13 @@ var __vue_staticRenderFns__$W = [];
|
|
|
84588
85160
|
|
|
84589
85161
|
|
|
84590
85162
|
|
|
84591
|
-
const __vue_component__$
|
|
84592
|
-
{ render: __vue_render__$
|
|
84593
|
-
__vue_inject_styles__$
|
|
84594
|
-
__vue_script__$
|
|
84595
|
-
__vue_scope_id__$
|
|
84596
|
-
__vue_is_functional_template__$
|
|
84597
|
-
__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,
|
|
84598
85170
|
false,
|
|
84599
85171
|
undefined,
|
|
84600
85172
|
undefined,
|
|
@@ -84616,16 +85188,16 @@ function generic(component, { handler, props }) {
|
|
|
84616
85188
|
props }, handler);
|
|
84617
85189
|
}
|
|
84618
85190
|
function input(label, handler) {
|
|
84619
|
-
return generic(__vue_component__$
|
|
85191
|
+
return generic(__vue_component__$10, { handler, props: { label } });
|
|
84620
85192
|
}
|
|
84621
85193
|
function textarea(label, handler) {
|
|
84622
|
-
return generic(__vue_component__
|
|
85194
|
+
return generic(__vue_component__$11, { handler, props: { label } });
|
|
84623
85195
|
}
|
|
84624
85196
|
function checkbox(label, handler) {
|
|
84625
|
-
return generic(__vue_component__$
|
|
85197
|
+
return generic(__vue_component__$12, { handler, props: { label } });
|
|
84626
85198
|
}
|
|
84627
85199
|
function select(label, handler, options) {
|
|
84628
|
-
return generic(__vue_component__$
|
|
85200
|
+
return generic(__vue_component__$13, {
|
|
84629
85201
|
handler,
|
|
84630
85202
|
props: {
|
|
84631
85203
|
label,
|
|
@@ -84644,7 +85216,7 @@ var controls = /*#__PURE__*/Object.freeze({
|
|
|
84644
85216
|
});
|
|
84645
85217
|
|
|
84646
85218
|
var index$2 = {
|
|
84647
|
-
View: __vue_component__
|
|
85219
|
+
View: __vue_component__$$,
|
|
84648
85220
|
controls,
|
|
84649
85221
|
};
|
|
84650
85222
|
|
|
@@ -84661,10 +85233,10 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
84661
85233
|
CInputDateTime: __vue_component__$b,
|
|
84662
85234
|
CInputPresort: __vue_component__$c,
|
|
84663
85235
|
CInputCron: __vue_component__$d,
|
|
84664
|
-
|
|
85236
|
+
CInputSearch: __vue_component__$e,
|
|
85237
|
+
CRichTextInput: __vue_component__$n,
|
|
84665
85238
|
CLightbox: __vue_component__$5,
|
|
84666
|
-
CPermissionsButton: __vue_component__$
|
|
84667
|
-
CPermissionsForm: __vue_component__$r,
|
|
85239
|
+
CPermissionsButton: __vue_component__$o,
|
|
84668
85240
|
CPermissionsModal: __vue_component__$s,
|
|
84669
85241
|
CLoaderLogo: __vue_component__$E,
|
|
84670
85242
|
CTopbar: __vue_component__$F,
|
|
@@ -84681,6 +85253,8 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
84681
85253
|
CReportMetric: __vue_component__$V,
|
|
84682
85254
|
CReportTable: __vue_component__$W,
|
|
84683
85255
|
CReportText: __vue_component__$X,
|
|
85256
|
+
CSensitivityLevelPicker: __vue_component__$Y,
|
|
85257
|
+
CResourceList: __vue_component__$Z,
|
|
84684
85258
|
C3: index$2,
|
|
84685
85259
|
CPrompts: __vue_component__$D,
|
|
84686
85260
|
CPromptModal: __vue_component__$C,
|
|
@@ -84916,7 +85490,7 @@ function resumeState(api, { sessionID, stateID }, input) {
|
|
|
84916
85490
|
}
|
|
84917
85491
|
function cancelState(api, { sessionID, stateID }) {
|
|
84918
85492
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84919
|
-
return api.
|
|
85493
|
+
return api.sessionCancel({ sessionID, stateID });
|
|
84920
85494
|
});
|
|
84921
85495
|
}
|
|
84922
85496
|
function onlyFresh(existing, fresh) {
|