@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/index.es.js CHANGED
@@ -71507,10 +71507,163 @@ var __vue_staticRenderFns__$b = [];
71507
71507
  undefined
71508
71508
  );
71509
71509
 
71510
+ //
71511
+ //
71512
+ //
71513
+ //
71514
+ //
71515
+ //
71516
+ //
71517
+ //
71518
+ //
71519
+ //
71520
+ //
71521
+ //
71522
+ //
71523
+ //
71524
+ //
71525
+ //
71526
+ //
71527
+ //
71528
+ //
71529
+ //
71530
+ //
71531
+ //
71532
+ //
71533
+ //
71534
+ //
71535
+ //
71536
+ //
71537
+ //
71538
+ //
71539
+ //
71540
+ //
71541
+ //
71542
+ //
71543
+ //
71544
+ //
71545
+ //
71546
+ //
71547
+ //
71548
+ //
71549
+ //
71550
+ //
71551
+ //
71552
+ var script$d = {
71553
+ name: 'CInputSearch',
71554
+ props: {
71555
+ value: {
71556
+ type: String,
71557
+ default: ''
71558
+ },
71559
+ placeholder: {
71560
+ type: String,
71561
+ default: ''
71562
+ },
71563
+ size: {
71564
+ type: String
71565
+ },
71566
+ disabled: {
71567
+ type: Boolean
71568
+ },
71569
+ clearable: {
71570
+ type: Boolean,
71571
+ default: true
71572
+ },
71573
+ submittable: {
71574
+ type: Boolean
71575
+ },
71576
+ autocomplete: {
71577
+ type: String,
71578
+ default: 'on'
71579
+ },
71580
+ debounce: {
71581
+ type: Number,
71582
+ default: 0
71583
+ }
71584
+ },
71585
+ computed: {
71586
+ inputType() {
71587
+ return this.clearable ? 'search' : 'text';
71588
+ },
71589
+
71590
+ showSubmittable() {
71591
+ return !this.value || this.value && this.showSubmittableAndClearable;
71592
+ },
71593
+
71594
+ isSubmittable() {
71595
+ return this.submittable ? 'click' : null;
71596
+ },
71597
+
71598
+ showSubmittableAndClearable() {
71599
+ return this.clearable && this.submittable;
71600
+ }
71601
+
71602
+ },
71603
+ methods: {
71604
+ search(e) {
71605
+ if (!this.submittable) {
71606
+ this.$emit('input', e);
71607
+ }
71608
+ },
71609
+
71610
+ submitQuery() {
71611
+ this.$emit('search');
71612
+ },
71613
+
71614
+ clearQuery() {
71615
+ this.$refs.value.focus();
71616
+ this.$emit('input', '');
71617
+ }
71618
+
71619
+ }
71620
+ };
71621
+
71622
+ /* script */
71623
+ const __vue_script__$d = script$d;
71624
+
71625
+ /* template */
71626
+ 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:{
71627
+ 'search-icon-border': _vm.showSubmittableAndClearable,
71628
+ 'cursor-default': !_vm.isSubmittable
71629
+ },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)};
71630
+ var __vue_staticRenderFns__$c = [];
71631
+
71632
+ /* style */
71633
+ const __vue_inject_styles__$e = function (inject) {
71634
+ if (!inject) return
71635
+ 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 });
71636
+
71637
+ };
71638
+ /* scoped */
71639
+ const __vue_scope_id__$e = "data-v-6e89977a";
71640
+ /* module identifier */
71641
+ const __vue_module_identifier__$e = undefined;
71642
+ /* functional template */
71643
+ const __vue_is_functional_template__$e = false;
71644
+ /* style inject SSR */
71645
+
71646
+ /* style inject shadow dom */
71647
+
71648
+
71649
+
71650
+ const __vue_component__$e = /*#__PURE__*/normalizeComponent(
71651
+ { render: __vue_render__$c, staticRenderFns: __vue_staticRenderFns__$c },
71652
+ __vue_inject_styles__$e,
71653
+ __vue_script__$d,
71654
+ __vue_scope_id__$e,
71655
+ __vue_is_functional_template__$e,
71656
+ __vue_module_identifier__$e,
71657
+ false,
71658
+ createInjector,
71659
+ undefined,
71660
+ undefined
71661
+ );
71662
+
71510
71663
  /**
71511
71664
  * Defines common props, methods between different toolbar item types
71512
71665
  */
71513
- var script$d = {
71666
+ var script$e = {
71514
71667
  props: {
71515
71668
  format: {
71516
71669
  type: Object,
@@ -71563,18 +71716,18 @@ var script$d = {
71563
71716
  };
71564
71717
 
71565
71718
  /* script */
71566
- const __vue_script__$d = script$d;
71719
+ const __vue_script__$e = script$e;
71567
71720
 
71568
71721
  /* template */
71569
71722
 
71570
71723
  /* style */
71571
- const __vue_inject_styles__$e = undefined;
71724
+ const __vue_inject_styles__$f = undefined;
71572
71725
  /* scoped */
71573
- const __vue_scope_id__$e = undefined;
71726
+ const __vue_scope_id__$f = undefined;
71574
71727
  /* module identifier */
71575
- const __vue_module_identifier__$e = undefined;
71728
+ const __vue_module_identifier__$f = undefined;
71576
71729
  /* functional template */
71577
- const __vue_is_functional_template__$e = undefined;
71730
+ const __vue_is_functional_template__$f = undefined;
71578
71731
  /* style inject */
71579
71732
 
71580
71733
  /* style inject SSR */
@@ -71583,13 +71736,13 @@ const __vue_script__$d = script$d;
71583
71736
 
71584
71737
 
71585
71738
 
71586
- const __vue_component__$e = /*#__PURE__*/normalizeComponent(
71739
+ const __vue_component__$f = /*#__PURE__*/normalizeComponent(
71587
71740
  {},
71588
- __vue_inject_styles__$e,
71589
- __vue_script__$d,
71590
- __vue_scope_id__$e,
71591
- __vue_is_functional_template__$e,
71592
- __vue_module_identifier__$e,
71741
+ __vue_inject_styles__$f,
71742
+ __vue_script__$e,
71743
+ __vue_scope_id__$f,
71744
+ __vue_is_functional_template__$f,
71745
+ __vue_module_identifier__$f,
71593
71746
  false,
71594
71747
  undefined,
71595
71748
  undefined,
@@ -71607,12 +71760,12 @@ n(css,{});
71607
71760
  * input the URL that should be applied.
71608
71761
  */
71609
71762
 
71610
- var script$e = {
71763
+ var script$f = {
71611
71764
  name: 't-mark-color',
71612
71765
  components: {
71613
71766
  Swatches
71614
71767
  },
71615
- extends: __vue_component__$e,
71768
+ extends: __vue_component__$f,
71616
71769
  computed: {
71617
71770
  typeStyle() {
71618
71771
  return `${this.format.type}-icon`;
@@ -71622,38 +71775,38 @@ var script$e = {
71622
71775
  };
71623
71776
 
71624
71777
  /* script */
71625
- const __vue_script__$e = script$e;
71778
+ const __vue_script__$f = script$f;
71626
71779
 
71627
71780
  /* template */
71628
- var __vue_render__$c = 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)};
71629
- var __vue_staticRenderFns__$c = [];
71781
+ 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)};
71782
+ var __vue_staticRenderFns__$d = [];
71630
71783
 
71631
71784
  /* style */
71632
- const __vue_inject_styles__$f = function (inject) {
71785
+ const __vue_inject_styles__$g = function (inject) {
71633
71786
  if (!inject) return
71634
71787
  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 })
71635
71788
  ,inject("data-v-90b60574_1", { source: ".tcl-popover .popover-body{padding:0!important}", map: undefined, media: undefined });
71636
71789
 
71637
71790
  };
71638
71791
  /* scoped */
71639
- const __vue_scope_id__$f = "data-v-90b60574";
71792
+ const __vue_scope_id__$g = "data-v-90b60574";
71640
71793
  /* module identifier */
71641
- const __vue_module_identifier__$f = undefined;
71794
+ const __vue_module_identifier__$g = undefined;
71642
71795
  /* functional template */
71643
- const __vue_is_functional_template__$f = false;
71796
+ const __vue_is_functional_template__$g = false;
71644
71797
  /* style inject SSR */
71645
71798
 
71646
71799
  /* style inject shadow dom */
71647
71800
 
71648
71801
 
71649
71802
 
71650
- const __vue_component__$f = /*#__PURE__*/normalizeComponent(
71651
- { render: __vue_render__$c, staticRenderFns: __vue_staticRenderFns__$c },
71652
- __vue_inject_styles__$f,
71653
- __vue_script__$e,
71654
- __vue_scope_id__$f,
71655
- __vue_is_functional_template__$f,
71656
- __vue_module_identifier__$f,
71803
+ const __vue_component__$g = /*#__PURE__*/normalizeComponent(
71804
+ { render: __vue_render__$d, staticRenderFns: __vue_staticRenderFns__$d },
71805
+ __vue_inject_styles__$g,
71806
+ __vue_script__$f,
71807
+ __vue_scope_id__$g,
71808
+ __vue_is_functional_template__$g,
71809
+ __vue_module_identifier__$g,
71657
71810
  false,
71658
71811
  createInjector,
71659
71812
  undefined,
@@ -71665,26 +71818,26 @@ var __vue_staticRenderFns__$c = [];
71665
71818
  * Component is used to display simple formatter options such as bold, italic, ...
71666
71819
  */
71667
71820
 
71668
- var script$f = {
71821
+ var script$g = {
71669
71822
  name: 't-mark-item',
71670
- extends: __vue_component__$e
71823
+ extends: __vue_component__$f
71671
71824
  };
71672
71825
 
71673
71826
  /* script */
71674
- const __vue_script__$f = script$f;
71827
+ const __vue_script__$g = script$g;
71675
71828
 
71676
71829
  /* template */
71677
- var __vue_render__$d = 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)])};
71678
- var __vue_staticRenderFns__$d = [];
71830
+ 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)])};
71831
+ var __vue_staticRenderFns__$e = [];
71679
71832
 
71680
71833
  /* style */
71681
- const __vue_inject_styles__$g = undefined;
71834
+ const __vue_inject_styles__$h = undefined;
71682
71835
  /* scoped */
71683
- const __vue_scope_id__$g = undefined;
71836
+ const __vue_scope_id__$h = undefined;
71684
71837
  /* module identifier */
71685
- const __vue_module_identifier__$g = undefined;
71838
+ const __vue_module_identifier__$h = undefined;
71686
71839
  /* functional template */
71687
- const __vue_is_functional_template__$g = false;
71840
+ const __vue_is_functional_template__$h = false;
71688
71841
  /* style inject */
71689
71842
 
71690
71843
  /* style inject SSR */
@@ -71693,13 +71846,13 @@ var __vue_staticRenderFns__$d = [];
71693
71846
 
71694
71847
 
71695
71848
 
71696
- const __vue_component__$g = /*#__PURE__*/normalizeComponent(
71697
- { render: __vue_render__$d, staticRenderFns: __vue_staticRenderFns__$d },
71698
- __vue_inject_styles__$g,
71699
- __vue_script__$f,
71700
- __vue_scope_id__$g,
71701
- __vue_is_functional_template__$g,
71702
- __vue_module_identifier__$g,
71849
+ const __vue_component__$h = /*#__PURE__*/normalizeComponent(
71850
+ { render: __vue_render__$e, staticRenderFns: __vue_staticRenderFns__$e },
71851
+ __vue_inject_styles__$h,
71852
+ __vue_script__$g,
71853
+ __vue_scope_id__$h,
71854
+ __vue_is_functional_template__$h,
71855
+ __vue_module_identifier__$h,
71703
71856
  false,
71704
71857
  undefined,
71705
71858
  undefined,
@@ -71712,9 +71865,9 @@ var __vue_staticRenderFns__$d = [];
71712
71865
  * input the URL that should be applied.
71713
71866
  */
71714
71867
 
71715
- var script$g = {
71868
+ var script$h = {
71716
71869
  name: 't-mark-link',
71717
- extends: __vue_component__$e,
71870
+ extends: __vue_component__$f,
71718
71871
  props: {
71719
71872
  labels: {
71720
71873
  type: Object,
@@ -71779,20 +71932,20 @@ var script$g = {
71779
71932
  };
71780
71933
 
71781
71934
  /* script */
71782
- const __vue_script__$g = script$g;
71935
+ const __vue_script__$h = script$h;
71783
71936
 
71784
71937
  /* template */
71785
- var __vue_render__$e = 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)};
71786
- var __vue_staticRenderFns__$e = [];
71938
+ 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)};
71939
+ var __vue_staticRenderFns__$f = [];
71787
71940
 
71788
71941
  /* style */
71789
- const __vue_inject_styles__$h = undefined;
71942
+ const __vue_inject_styles__$i = undefined;
71790
71943
  /* scoped */
71791
- const __vue_scope_id__$h = undefined;
71944
+ const __vue_scope_id__$i = undefined;
71792
71945
  /* module identifier */
71793
- const __vue_module_identifier__$h = undefined;
71946
+ const __vue_module_identifier__$i = undefined;
71794
71947
  /* functional template */
71795
- const __vue_is_functional_template__$h = false;
71948
+ const __vue_is_functional_template__$i = false;
71796
71949
  /* style inject */
71797
71950
 
71798
71951
  /* style inject SSR */
@@ -71801,13 +71954,13 @@ var __vue_staticRenderFns__$e = [];
71801
71954
 
71802
71955
 
71803
71956
 
71804
- const __vue_component__$h = /*#__PURE__*/normalizeComponent(
71805
- { render: __vue_render__$e, staticRenderFns: __vue_staticRenderFns__$e },
71806
- __vue_inject_styles__$h,
71807
- __vue_script__$g,
71808
- __vue_scope_id__$h,
71809
- __vue_is_functional_template__$h,
71810
- __vue_module_identifier__$h,
71957
+ const __vue_component__$i = /*#__PURE__*/normalizeComponent(
71958
+ { render: __vue_render__$f, staticRenderFns: __vue_staticRenderFns__$f },
71959
+ __vue_inject_styles__$i,
71960
+ __vue_script__$h,
71961
+ __vue_scope_id__$i,
71962
+ __vue_is_functional_template__$i,
71963
+ __vue_module_identifier__$i,
71811
71964
  false,
71812
71965
  undefined,
71813
71966
  undefined,
@@ -71815,9 +71968,9 @@ var __vue_staticRenderFns__$e = [];
71815
71968
  );
71816
71969
 
71817
71970
  var mark = {
71818
- Color: __vue_component__$f,
71819
- Item: __vue_component__$g,
71820
- Link: __vue_component__$h
71971
+ Color: __vue_component__$g,
71972
+ Item: __vue_component__$h,
71973
+ Link: __vue_component__$i
71821
71974
  };
71822
71975
 
71823
71976
  function findDiffStart(a, b, pos) {
@@ -78637,7 +78790,7 @@ const nodeTypes = getToolbar().filter(({
78637
78790
  * Defines common props, methods between different toolbar item types
78638
78791
  */
78639
78792
 
78640
- var script$h = {
78793
+ var script$i = {
78641
78794
  props: {
78642
78795
  format: {
78643
78796
  type: Object,
@@ -78752,18 +78905,18 @@ var script$h = {
78752
78905
  };
78753
78906
 
78754
78907
  /* script */
78755
- const __vue_script__$h = script$h;
78908
+ const __vue_script__$i = script$i;
78756
78909
 
78757
78910
  /* template */
78758
78911
 
78759
78912
  /* style */
78760
- const __vue_inject_styles__$i = undefined;
78913
+ const __vue_inject_styles__$j = undefined;
78761
78914
  /* scoped */
78762
- const __vue_scope_id__$i = undefined;
78915
+ const __vue_scope_id__$j = undefined;
78763
78916
  /* module identifier */
78764
- const __vue_module_identifier__$i = undefined;
78917
+ const __vue_module_identifier__$j = undefined;
78765
78918
  /* functional template */
78766
- const __vue_is_functional_template__$i = undefined;
78919
+ const __vue_is_functional_template__$j = undefined;
78767
78920
  /* style inject */
78768
78921
 
78769
78922
  /* style inject SSR */
@@ -78772,13 +78925,13 @@ const __vue_script__$h = script$h;
78772
78925
 
78773
78926
 
78774
78927
 
78775
- const __vue_component__$i = /*#__PURE__*/normalizeComponent(
78928
+ const __vue_component__$j = /*#__PURE__*/normalizeComponent(
78776
78929
  {},
78777
- __vue_inject_styles__$i,
78778
- __vue_script__$h,
78779
- __vue_scope_id__$i,
78780
- __vue_is_functional_template__$i,
78781
- __vue_module_identifier__$i,
78930
+ __vue_inject_styles__$j,
78931
+ __vue_script__$i,
78932
+ __vue_scope_id__$j,
78933
+ __vue_is_functional_template__$j,
78934
+ __vue_module_identifier__$j,
78782
78935
  false,
78783
78936
  undefined,
78784
78937
  undefined,
@@ -78790,26 +78943,26 @@ const __vue_script__$h = script$h;
78790
78943
  * Component is used to display node types; paragraph, headding, ...
78791
78944
  */
78792
78945
 
78793
- var script$i = {
78946
+ var script$j = {
78794
78947
  name: 't-node-item',
78795
- extends: __vue_component__$i
78948
+ extends: __vue_component__$j
78796
78949
  };
78797
78950
 
78798
78951
  /* script */
78799
- const __vue_script__$i = script$i;
78952
+ const __vue_script__$j = script$j;
78800
78953
 
78801
78954
  /* template */
78802
- var __vue_render__$f = 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)])};
78803
- var __vue_staticRenderFns__$f = [];
78955
+ 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)])};
78956
+ var __vue_staticRenderFns__$g = [];
78804
78957
 
78805
78958
  /* style */
78806
- const __vue_inject_styles__$j = undefined;
78959
+ const __vue_inject_styles__$k = undefined;
78807
78960
  /* scoped */
78808
- const __vue_scope_id__$j = undefined;
78961
+ const __vue_scope_id__$k = undefined;
78809
78962
  /* module identifier */
78810
- const __vue_module_identifier__$j = undefined;
78963
+ const __vue_module_identifier__$k = undefined;
78811
78964
  /* functional template */
78812
- const __vue_is_functional_template__$j = false;
78965
+ const __vue_is_functional_template__$k = false;
78813
78966
  /* style inject */
78814
78967
 
78815
78968
  /* style inject SSR */
@@ -78818,13 +78971,13 @@ var __vue_staticRenderFns__$f = [];
78818
78971
 
78819
78972
 
78820
78973
 
78821
- const __vue_component__$j = /*#__PURE__*/normalizeComponent(
78822
- { render: __vue_render__$f, staticRenderFns: __vue_staticRenderFns__$f },
78823
- __vue_inject_styles__$j,
78824
- __vue_script__$i,
78825
- __vue_scope_id__$j,
78826
- __vue_is_functional_template__$j,
78827
- __vue_module_identifier__$j,
78974
+ const __vue_component__$k = /*#__PURE__*/normalizeComponent(
78975
+ { render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },
78976
+ __vue_inject_styles__$k,
78977
+ __vue_script__$j,
78978
+ __vue_scope_id__$k,
78979
+ __vue_is_functional_template__$k,
78980
+ __vue_module_identifier__$k,
78828
78981
  false,
78829
78982
  undefined,
78830
78983
  undefined,
@@ -78832,7 +78985,7 @@ var __vue_staticRenderFns__$f = [];
78832
78985
  );
78833
78986
 
78834
78987
  var node = {
78835
- Item: __vue_component__$j
78988
+ Item: __vue_component__$k
78836
78989
  };
78837
78990
 
78838
78991
  //
@@ -78840,9 +78993,9 @@ var node = {
78840
78993
  * Component is used to display node alignment formatting
78841
78994
  */
78842
78995
 
78843
- var script$j = {
78996
+ var script$k = {
78844
78997
  name: 't-nattr-alignment',
78845
- extends: __vue_component__$i,
78998
+ extends: __vue_component__$j,
78846
78999
  props: {
78847
79000
  isActive: {
78848
79001
  type: Object,
@@ -78906,20 +79059,20 @@ var script$j = {
78906
79059
  };
78907
79060
 
78908
79061
  /* script */
78909
- const __vue_script__$j = script$j;
79062
+ const __vue_script__$k = script$k;
78910
79063
 
78911
79064
  /* template */
78912
- var __vue_render__$g = 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)};
78913
- var __vue_staticRenderFns__$g = [];
79065
+ 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)};
79066
+ var __vue_staticRenderFns__$h = [];
78914
79067
 
78915
79068
  /* style */
78916
- const __vue_inject_styles__$k = undefined;
79069
+ const __vue_inject_styles__$l = undefined;
78917
79070
  /* scoped */
78918
- const __vue_scope_id__$k = undefined;
79071
+ const __vue_scope_id__$l = undefined;
78919
79072
  /* module identifier */
78920
- const __vue_module_identifier__$k = undefined;
79073
+ const __vue_module_identifier__$l = undefined;
78921
79074
  /* functional template */
78922
- const __vue_is_functional_template__$k = false;
79075
+ const __vue_is_functional_template__$l = false;
78923
79076
  /* style inject */
78924
79077
 
78925
79078
  /* style inject SSR */
@@ -78928,13 +79081,13 @@ var __vue_staticRenderFns__$g = [];
78928
79081
 
78929
79082
 
78930
79083
 
78931
- const __vue_component__$k = /*#__PURE__*/normalizeComponent(
78932
- { render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },
78933
- __vue_inject_styles__$k,
78934
- __vue_script__$j,
78935
- __vue_scope_id__$k,
78936
- __vue_is_functional_template__$k,
78937
- __vue_module_identifier__$k,
79084
+ const __vue_component__$l = /*#__PURE__*/normalizeComponent(
79085
+ { render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },
79086
+ __vue_inject_styles__$l,
79087
+ __vue_script__$k,
79088
+ __vue_scope_id__$l,
79089
+ __vue_is_functional_template__$l,
79090
+ __vue_module_identifier__$l,
78938
79091
  false,
78939
79092
  undefined,
78940
79093
  undefined,
@@ -78942,7 +79095,7 @@ var __vue_staticRenderFns__$g = [];
78942
79095
  );
78943
79096
 
78944
79097
  var nodeAttr = {
78945
- Alignment: __vue_component__$k
79098
+ Alignment: __vue_component__$l
78946
79099
  };
78947
79100
 
78948
79101
  var cc = {
@@ -78952,7 +79105,7 @@ var cc = {
78952
79105
  };
78953
79106
 
78954
79107
  //
78955
- var script$k = {
79108
+ var script$l = {
78956
79109
  inheritAttrs: true,
78957
79110
  props: {
78958
79111
  editor: {
@@ -79035,20 +79188,20 @@ var script$k = {
79035
79188
  };
79036
79189
 
79037
79190
  /* script */
79038
- const __vue_script__$k = script$k;
79191
+ const __vue_script__$l = script$l;
79039
79192
 
79040
79193
  /* template */
79041
- var __vue_render__$h = 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)};
79042
- var __vue_staticRenderFns__$h = [];
79194
+ 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)};
79195
+ var __vue_staticRenderFns__$i = [];
79043
79196
 
79044
79197
  /* style */
79045
- const __vue_inject_styles__$l = undefined;
79198
+ const __vue_inject_styles__$m = undefined;
79046
79199
  /* scoped */
79047
- const __vue_scope_id__$l = undefined;
79200
+ const __vue_scope_id__$m = undefined;
79048
79201
  /* module identifier */
79049
- const __vue_module_identifier__$l = undefined;
79202
+ const __vue_module_identifier__$m = undefined;
79050
79203
  /* functional template */
79051
- const __vue_is_functional_template__$l = false;
79204
+ const __vue_is_functional_template__$m = false;
79052
79205
  /* style inject */
79053
79206
 
79054
79207
  /* style inject SSR */
@@ -79057,13 +79210,13 @@ var __vue_staticRenderFns__$h = [];
79057
79210
 
79058
79211
 
79059
79212
 
79060
- const __vue_component__$l = /*#__PURE__*/normalizeComponent(
79061
- { render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },
79062
- __vue_inject_styles__$l,
79063
- __vue_script__$k,
79064
- __vue_scope_id__$l,
79065
- __vue_is_functional_template__$l,
79066
- __vue_module_identifier__$l,
79213
+ const __vue_component__$m = /*#__PURE__*/normalizeComponent(
79214
+ { render: __vue_render__$i, staticRenderFns: __vue_staticRenderFns__$i },
79215
+ __vue_inject_styles__$m,
79216
+ __vue_script__$l,
79217
+ __vue_scope_id__$m,
79218
+ __vue_is_functional_template__$m,
79219
+ __vue_module_identifier__$m,
79067
79220
  false,
79068
79221
  undefined,
79069
79222
  undefined,
@@ -79071,11 +79224,11 @@ var __vue_staticRenderFns__$h = [];
79071
79224
  );
79072
79225
 
79073
79226
  //
79074
- var script$l = {
79227
+ var script$m = {
79075
79228
  name: 'CRichTextInput',
79076
79229
  components: {
79077
79230
  EditorContent,
79078
- RToolbar: __vue_component__$l,
79231
+ RToolbar: __vue_component__$m,
79079
79232
  EditorMenuBar
79080
79233
  },
79081
79234
  props: {
@@ -79161,25 +79314,25 @@ var script$l = {
79161
79314
  };
79162
79315
 
79163
79316
  /* script */
79164
- const __vue_script__$l = script$l;
79317
+ const __vue_script__$m = script$m;
79165
79318
 
79166
79319
  /* template */
79167
- var __vue_render__$i = 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){
79320
+ 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){
79168
79321
  var commands = ref.commands;
79169
79322
  var isActive = ref.isActive;
79170
79323
  var getMarkAttrs = ref.getMarkAttrs;
79171
79324
  var getNodeAttrs = ref.getNodeAttrs;
79172
79325
  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)};
79173
- var __vue_staticRenderFns__$i = [];
79326
+ var __vue_staticRenderFns__$j = [];
79174
79327
 
79175
79328
  /* style */
79176
- const __vue_inject_styles__$m = undefined;
79329
+ const __vue_inject_styles__$n = undefined;
79177
79330
  /* scoped */
79178
- const __vue_scope_id__$m = undefined;
79331
+ const __vue_scope_id__$n = undefined;
79179
79332
  /* module identifier */
79180
- const __vue_module_identifier__$m = undefined;
79333
+ const __vue_module_identifier__$n = undefined;
79181
79334
  /* functional template */
79182
- const __vue_is_functional_template__$m = false;
79335
+ const __vue_is_functional_template__$n = false;
79183
79336
  /* style inject */
79184
79337
 
79185
79338
  /* style inject SSR */
@@ -79188,13 +79341,13 @@ var __vue_staticRenderFns__$i = [];
79188
79341
 
79189
79342
 
79190
79343
 
79191
- const __vue_component__$m = /*#__PURE__*/normalizeComponent(
79192
- { render: __vue_render__$i, staticRenderFns: __vue_staticRenderFns__$i },
79193
- __vue_inject_styles__$m,
79194
- __vue_script__$l,
79195
- __vue_scope_id__$m,
79196
- __vue_is_functional_template__$m,
79197
- __vue_module_identifier__$m,
79344
+ const __vue_component__$n = /*#__PURE__*/normalizeComponent(
79345
+ { render: __vue_render__$j, staticRenderFns: __vue_staticRenderFns__$j },
79346
+ __vue_inject_styles__$n,
79347
+ __vue_script__$m,
79348
+ __vue_scope_id__$n,
79349
+ __vue_is_functional_template__$n,
79350
+ __vue_module_identifier__$n,
79198
79351
  false,
79199
79352
  undefined,
79200
79353
  undefined,
@@ -79219,7 +79372,7 @@ function split(input) {
79219
79372
  }
79220
79373
 
79221
79374
  library.add(faLock);
79222
- var script$m = {
79375
+ var script$n = {
79223
79376
  props: {
79224
79377
  link: {
79225
79378
  type: Boolean
@@ -79257,6 +79410,10 @@ var script$m = {
79257
79410
  allSpecific: {
79258
79411
  type: Boolean,
79259
79412
  default: false
79413
+ },
79414
+ tooltip: {
79415
+ type: String,
79416
+ default: ''
79260
79417
  }
79261
79418
  },
79262
79419
  methods: {
@@ -79273,44 +79430,44 @@ var script$m = {
79273
79430
  };
79274
79431
 
79275
79432
  /* script */
79276
- const __vue_script__$m = script$m;
79433
+ const __vue_script__$n = script$n;
79277
79434
 
79278
79435
  /* template */
79279
- var __vue_render__$j = 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"},on:{"click":_vm.onClick}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'lock']}})],1):_c('b-button',{attrs:{"data-test-id":"button-permissions","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)};
79280
- var __vue_staticRenderFns__$j = [];
79436
+ 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)};
79437
+ var __vue_staticRenderFns__$k = [];
79281
79438
 
79282
79439
  /* style */
79283
- const __vue_inject_styles__$n = function (inject) {
79440
+ const __vue_inject_styles__$o = function (inject) {
79284
79441
  if (!inject) return
79285
- inject("data-v-f7d1d1dc_0", { source: ".pointer[data-v-f7d1d1dc]{cursor:pointer}", map: undefined, media: undefined });
79442
+ inject("data-v-66ae6703_0", { source: ".pointer[data-v-66ae6703]{cursor:pointer}", map: undefined, media: undefined });
79286
79443
 
79287
79444
  };
79288
79445
  /* scoped */
79289
- const __vue_scope_id__$n = "data-v-f7d1d1dc";
79446
+ const __vue_scope_id__$o = "data-v-66ae6703";
79290
79447
  /* module identifier */
79291
- const __vue_module_identifier__$n = undefined;
79448
+ const __vue_module_identifier__$o = undefined;
79292
79449
  /* functional template */
79293
- const __vue_is_functional_template__$n = false;
79450
+ const __vue_is_functional_template__$o = false;
79294
79451
  /* style inject SSR */
79295
79452
 
79296
79453
  /* style inject shadow dom */
79297
79454
 
79298
79455
 
79299
79456
 
79300
- const __vue_component__$n = /*#__PURE__*/normalizeComponent(
79301
- { render: __vue_render__$j, staticRenderFns: __vue_staticRenderFns__$j },
79302
- __vue_inject_styles__$n,
79303
- __vue_script__$m,
79304
- __vue_scope_id__$n,
79305
- __vue_is_functional_template__$n,
79306
- __vue_module_identifier__$n,
79457
+ const __vue_component__$o = /*#__PURE__*/normalizeComponent(
79458
+ { render: __vue_render__$k, staticRenderFns: __vue_staticRenderFns__$k },
79459
+ __vue_inject_styles__$o,
79460
+ __vue_script__$n,
79461
+ __vue_scope_id__$o,
79462
+ __vue_is_functional_template__$o,
79463
+ __vue_module_identifier__$o,
79307
79464
  false,
79308
79465
  createInjector,
79309
79466
  undefined,
79310
79467
  undefined
79311
79468
  );
79312
79469
 
79313
- var script$n = {
79470
+ var script$o = {
79314
79471
  props: {
79315
79472
  enabled: {
79316
79473
  type: Boolean,
@@ -79361,47 +79518,49 @@ var script$n = {
79361
79518
  };
79362
79519
 
79363
79520
  /* script */
79364
- const __vue_script__$n = script$n;
79521
+ const __vue_script__$o = script$o;
79365
79522
 
79366
79523
  /* template */
79367
- var __vue_render__$k = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form-radio-group',{attrs:{"buttons":"","disabled":!_vm.enabled,"button-variant":_vm.variant,"options":_vm.options},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v;},expression:"selected"}})};
79368
- var __vue_staticRenderFns__$k = [];
79524
+ 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"}})};
79525
+ var __vue_staticRenderFns__$l = [];
79369
79526
 
79370
79527
  /* style */
79371
- const __vue_inject_styles__$o = undefined;
79528
+ const __vue_inject_styles__$p = function (inject) {
79529
+ if (!inject) return
79530
+ 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 });
79531
+
79532
+ };
79372
79533
  /* scoped */
79373
- const __vue_scope_id__$o = undefined;
79534
+ const __vue_scope_id__$p = undefined;
79374
79535
  /* module identifier */
79375
- const __vue_module_identifier__$o = undefined;
79536
+ const __vue_module_identifier__$p = undefined;
79376
79537
  /* functional template */
79377
- const __vue_is_functional_template__$o = false;
79378
- /* style inject */
79379
-
79538
+ const __vue_is_functional_template__$p = false;
79380
79539
  /* style inject SSR */
79381
79540
 
79382
79541
  /* style inject shadow dom */
79383
79542
 
79384
79543
 
79385
79544
 
79386
- const __vue_component__$o = /*#__PURE__*/normalizeComponent(
79387
- { render: __vue_render__$k, staticRenderFns: __vue_staticRenderFns__$k },
79388
- __vue_inject_styles__$o,
79389
- __vue_script__$n,
79390
- __vue_scope_id__$o,
79391
- __vue_is_functional_template__$o,
79392
- __vue_module_identifier__$o,
79545
+ const __vue_component__$p = /*#__PURE__*/normalizeComponent(
79546
+ { render: __vue_render__$l, staticRenderFns: __vue_staticRenderFns__$l },
79547
+ __vue_inject_styles__$p,
79548
+ __vue_script__$o,
79549
+ __vue_scope_id__$p,
79550
+ __vue_is_functional_template__$p,
79551
+ __vue_module_identifier__$p,
79393
79552
  false,
79394
- undefined,
79553
+ createInjector,
79395
79554
  undefined,
79396
79555
  undefined
79397
79556
  );
79398
79557
 
79399
- var script$o = {
79558
+ var script$p = {
79400
79559
  i18nOptions: {
79401
79560
  namespaces: 'permissions'
79402
79561
  },
79403
79562
  components: {
79404
- Access: __vue_component__$o
79563
+ Access: __vue_component__$p
79405
79564
  },
79406
79565
  props: {
79407
79566
  resource: {
@@ -79464,20 +79623,20 @@ var script$o = {
79464
79623
  };
79465
79624
 
79466
79625
  /* script */
79467
- const __vue_script__$o = script$o;
79626
+ const __vue_script__$p = script$p;
79468
79627
 
79469
79628
  /* template */
79470
- var __vue_render__$l = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-row',{staticClass:"mb-lg-1",attrs:{"no-gutters":""}},[_c('b-col',{attrs:{"cols":"12","lg":"6","order":"2","order-lg":"1"}},[_c('access',{attrs:{"access":_vm.access,"current":_vm.current,"enabled":_vm.enabled},on:{"update":_vm.onUpdate}}),_vm._v(" "),_c('b-button',{directives:[{name:"show",rawName:"v-show",value:(_vm.isChanged),expression:"isChanged"}],staticClass:"pl-0",attrs:{"variant":"link"},on:{"click":_vm.onReset}},[_vm._v("\n "+_vm._s(_vm.$t('ui.reset-back', {current: _vm.current}))+"\n ")])],1),_vm._v(" "),_c('b-col',{staticClass:"mb-lg-4 text-wrap",attrs:{"cols":"12","lg":"6","order":"1","order-lg":"2"}},[_c('b',{domProps:{"innerHTML":_vm._s(_vm.title || (_vm.operation + " on " + _vm.resource))}}),_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.description || ' '))])])],1)};
79471
- var __vue_staticRenderFns__$l = [];
79629
+ 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)};
79630
+ var __vue_staticRenderFns__$m = [];
79472
79631
 
79473
79632
  /* style */
79474
- const __vue_inject_styles__$p = undefined;
79633
+ const __vue_inject_styles__$q = undefined;
79475
79634
  /* scoped */
79476
- const __vue_scope_id__$p = undefined;
79635
+ const __vue_scope_id__$q = undefined;
79477
79636
  /* module identifier */
79478
- const __vue_module_identifier__$p = undefined;
79637
+ const __vue_module_identifier__$q = undefined;
79479
79638
  /* functional template */
79480
- const __vue_is_functional_template__$p = false;
79639
+ const __vue_is_functional_template__$q = false;
79481
79640
  /* style inject */
79482
79641
 
79483
79642
  /* style inject SSR */
@@ -79486,22 +79645,22 @@ var __vue_staticRenderFns__$l = [];
79486
79645
 
79487
79646
 
79488
79647
 
79489
- const __vue_component__$p = /*#__PURE__*/normalizeComponent(
79490
- { render: __vue_render__$l, staticRenderFns: __vue_staticRenderFns__$l },
79491
- __vue_inject_styles__$p,
79492
- __vue_script__$o,
79493
- __vue_scope_id__$p,
79494
- __vue_is_functional_template__$p,
79495
- __vue_module_identifier__$p,
79648
+ const __vue_component__$q = /*#__PURE__*/normalizeComponent(
79649
+ { render: __vue_render__$m, staticRenderFns: __vue_staticRenderFns__$m },
79650
+ __vue_inject_styles__$q,
79651
+ __vue_script__$p,
79652
+ __vue_scope_id__$q,
79653
+ __vue_is_functional_template__$q,
79654
+ __vue_module_identifier__$q,
79496
79655
  false,
79497
79656
  undefined,
79498
79657
  undefined,
79499
79658
  undefined
79500
79659
  );
79501
79660
 
79502
- var script$p = {
79661
+ var script$q = {
79503
79662
  components: {
79504
- Rule: __vue_component__$p
79663
+ Rule: __vue_component__$q
79505
79664
  },
79506
79665
  props: {
79507
79666
  rules: {
@@ -79528,20 +79687,20 @@ var script$p = {
79528
79687
  };
79529
79688
 
79530
79689
  /* script */
79531
- const __vue_script__$p = script$p;
79690
+ const __vue_script__$q = script$q;
79532
79691
 
79533
79692
  /* template */
79534
- var __vue_render__$m = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-container',_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)};
79535
- var __vue_staticRenderFns__$m = [];
79693
+ 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)};
79694
+ var __vue_staticRenderFns__$n = [];
79536
79695
 
79537
79696
  /* style */
79538
- const __vue_inject_styles__$q = undefined;
79697
+ const __vue_inject_styles__$r = undefined;
79539
79698
  /* scoped */
79540
- const __vue_scope_id__$q = undefined;
79699
+ const __vue_scope_id__$r = undefined;
79541
79700
  /* module identifier */
79542
- const __vue_module_identifier__$q = undefined;
79701
+ const __vue_module_identifier__$r = undefined;
79543
79702
  /* functional template */
79544
- const __vue_is_functional_template__$q = false;
79703
+ const __vue_is_functional_template__$r = false;
79545
79704
  /* style inject */
79546
79705
 
79547
79706
  /* style inject SSR */
@@ -79550,65 +79709,44 @@ var __vue_staticRenderFns__$m = [];
79550
79709
 
79551
79710
 
79552
79711
 
79553
- const __vue_component__$q = /*#__PURE__*/normalizeComponent(
79554
- { render: __vue_render__$m, staticRenderFns: __vue_staticRenderFns__$m },
79555
- __vue_inject_styles__$q,
79556
- __vue_script__$p,
79557
- __vue_scope_id__$q,
79558
- __vue_is_functional_template__$q,
79559
- __vue_module_identifier__$q,
79712
+ const __vue_component__$r = /*#__PURE__*/normalizeComponent(
79713
+ { render: __vue_render__$n, staticRenderFns: __vue_staticRenderFns__$n },
79714
+ __vue_inject_styles__$r,
79715
+ __vue_script__$q,
79716
+ __vue_scope_id__$r,
79717
+ __vue_is_functional_template__$r,
79718
+ __vue_module_identifier__$r,
79560
79719
  false,
79561
79720
  undefined,
79562
79721
  undefined,
79563
79722
  undefined
79564
79723
  );
79565
79724
 
79566
- var script$q = {
79725
+ var script$r = {
79567
79726
  i18nOptions: {
79568
- /**
79569
- * Using both, implicit (here) and explicit (at $t()) namespace setting.
79570
- * If we only use implicit the behaviour is flaky.
79571
- */
79572
79727
  namespaces: 'permissions'
79573
79728
  },
79574
79729
  components: {
79575
- Rules: __vue_component__$q,
79730
+ Rules: __vue_component__$r,
79576
79731
  VueSelect
79577
79732
  },
79578
79733
  props: {
79579
- resource: {
79580
- type: String,
79581
- required: true
79582
- },
79583
- target: {
79584
- type: String,
79734
+ labels: {
79585
79735
  required: false,
79586
- default: undefined
79587
- },
79588
- allSpecific: {
79589
- type: Boolean,
79590
- default: false
79591
- },
79592
- backendComponentName: {
79593
- type: String,
79594
-
79595
- default() {
79596
- // Assuming backend service will
79597
- // be equal to (first part of) resource
79598
- if (!this.resource.startsWith('corteza::')) {
79599
- throw Error('unrecognized resource type schema');
79600
- } // <schema>::<backend-component-name>:...
79601
-
79602
-
79603
- return this.resource.split(':')[2];
79604
- }
79605
-
79736
+ type: Object,
79737
+ default: () => ({})
79606
79738
  }
79607
79739
  },
79608
79740
 
79609
79741
  data() {
79610
79742
  return {
79611
79743
  processing: false,
79744
+ backendComponentName: undefined,
79745
+ resource: undefined,
79746
+ title: undefined,
79747
+ target: undefined,
79748
+ allSpecific: false,
79749
+ userOptions: [],
79612
79750
  // List of available permissions (for a specific resource)
79613
79751
  permissions: [],
79614
79752
  // List of rules for the current role
@@ -79616,59 +79754,172 @@ var script$q = {
79616
79754
  // List of all available roles
79617
79755
  roles: [],
79618
79756
  // Current role object
79619
- currentRole: undefined
79757
+ currentRole: undefined,
79758
+ evaluate: [],
79759
+ add: {
79760
+ roleID: [],
79761
+ userID: undefined
79762
+ }
79620
79763
  };
79621
79764
  },
79622
79765
 
79623
79766
  computed: {
79767
+ api() {
79768
+ const s = this.backendComponentName;
79769
+ return s ? this['$' + s.charAt(0).toUpperCase() + s.slice(1) + 'API'] : undefined;
79770
+ },
79771
+
79772
+ showModal() {
79773
+ return !!(this.resource && this.api);
79774
+ },
79775
+
79624
79776
  dirty() {
79625
79777
  return this.collectChangedRules().length > 0;
79626
79778
  },
79627
79779
 
79628
- disabled() {
79780
+ submitDisabled() {
79629
79781
  return !this.dirty;
79630
79782
  },
79631
79783
 
79632
- api() {
79633
- const s = this.backendComponentName;
79634
- return this['$' + s.charAt(0).toUpperCase() + s.slice(1) + 'API'];
79635
- }
79636
-
79637
- },
79638
-
79639
- created() {
79640
- this.fetchPermissions();
79641
- this.fetchRoles();
79642
- },
79643
-
79644
- methods: {
79645
- onRoleChange(role) {
79646
- this.currentRole = role;
79647
- this.fetchRules(role.roleID);
79784
+ addEnabled() {
79785
+ const {
79786
+ roleID = [],
79787
+ userID
79788
+ } = this.add;
79789
+ return roleID && roleID.length || userID;
79648
79790
  },
79649
79791
 
79650
- onSubmit() {
79651
- this.processing = true;
79652
- const rules = this.collectChangedRules();
79653
- const {
79654
- roleID
79655
- } = this.currentRole;
79656
- this.api.permissionsUpdate({
79657
- roleID,
79792
+ translatedTitle() {
79793
+ if (this.resource) {
79794
+ const {
79795
+ i18nPrefix
79796
+ } = split(this.resource);
79797
+ let target;
79798
+
79799
+ if (this.allSpecific) {
79800
+ target = this.$t(`permissions:${i18nPrefix}.all-specific`, {
79801
+ target: this.title,
79802
+ interpolation: {
79803
+ escapeValue: false
79804
+ }
79805
+ });
79806
+ } else if (this.title) {
79807
+ target = this.$t(`permissions:${i18nPrefix}.specific`, {
79808
+ target: this.title,
79809
+ interpolation: {
79810
+ escapeValue: false
79811
+ }
79812
+ });
79813
+ } else {
79814
+ target = this.$t(`permissions:${i18nPrefix}.all`);
79815
+ }
79816
+
79817
+ return this.$t('permissions:ui.set-for', {
79818
+ target: target,
79819
+ interpolation: {
79820
+ escapeValue: false
79821
+ }
79822
+ });
79823
+ }
79824
+
79825
+ return undefined;
79826
+ }
79827
+
79828
+ },
79829
+
79830
+ mounted() {
79831
+ this.searchUsers('', () => {});
79832
+ this.$root.$on(modalOpenEventName, ({
79833
+ resource,
79834
+ title,
79835
+ target,
79836
+ allSpecific
79837
+ }) => {
79838
+ this.resource = resource;
79839
+ this.title = title;
79840
+ this.target = target;
79841
+ this.allSpecific = allSpecific; // <schema>::<backend-component-name>:...
79842
+
79843
+ this.backendComponentName = resource.split(':')[2];
79844
+ this.fetchPermissions().then(() => {
79845
+ if (!this.roles.length) {
79846
+ return this.fetchRoles();
79847
+ } else if (this.currentRole) {
79848
+ const {
79849
+ roleID
79850
+ } = this.currentRole;
79851
+ this.processing = true;
79852
+ return this.fetchRules(roleID).then(() => {
79853
+ return Promise.all(this.evaluate.map(e => {
79854
+ const {
79855
+ userID
79856
+ } = e.userID || {};
79857
+ let {
79858
+ roleID = []
79859
+ } = e;
79860
+ roleID = roleID.map(({
79861
+ roleID
79862
+ }) => roleID);
79863
+ return this.evaluatePermissions({
79864
+ roleID,
79865
+ userID
79866
+ }).then(rules => {
79867
+ return { ...e,
79868
+ rules
79869
+ };
79870
+ });
79871
+ })).then(evaluate => {
79872
+ this.evaluate = evaluate;
79873
+ });
79874
+ });
79875
+ }
79876
+ });
79877
+ });
79878
+ },
79879
+
79880
+ destroyed() {
79881
+ this.$root.$off(modalOpenEventName);
79882
+ },
79883
+
79884
+ methods: {
79885
+ onHide() {
79886
+ this.clear();
79887
+ },
79888
+
79889
+ clear() {
79890
+ this.resource = undefined;
79891
+ this.title = undefined;
79892
+ this.target = undefined;
79893
+ },
79894
+
79895
+ onRoleChange(roleID) {
79896
+ this.fetchRules(roleID);
79897
+ },
79898
+
79899
+ onSubmit() {
79900
+ this.processing = true;
79901
+ const rules = this.collectChangedRules();
79902
+ const {
79903
+ roleID
79904
+ } = this.currentRole;
79905
+ this.api.permissionsUpdate({
79906
+ roleID,
79658
79907
  rules
79659
79908
  }).then(() => {
79660
79909
  this.fetchRules(roleID);
79910
+ }).finally(() => {
79661
79911
  this.processing = false;
79662
79912
  });
79663
79913
  },
79664
79914
 
79665
79915
  async fetchPermissions() {
79666
- // clean loaded rules
79916
+ this.processing = true; // clean loaded rules
79917
+
79667
79918
  this.rules = [];
79668
79919
  this.permissions = [];
79669
- this.processing = true;
79670
79920
  return this.api.permissionsList().then(pp => {
79671
79921
  this.permissions = this.filterPermissions(pp);
79922
+ }).finally(() => {
79672
79923
  this.processing = false;
79673
79924
  });
79674
79925
  },
@@ -79676,9 +79927,11 @@ var script$q = {
79676
79927
  async fetchRules(roleID) {
79677
79928
  this.processing = true;
79678
79929
  return this.api.permissionsRead({
79679
- roleID
79930
+ roleID,
79931
+ resource: this.resource
79680
79932
  }).then(rules => {
79681
79933
  this.rules = this.normalizeRules(rules);
79934
+ }).finally(() => {
79682
79935
  this.processing = false;
79683
79936
  });
79684
79937
  },
@@ -79694,13 +79947,102 @@ var script$q = {
79694
79947
  }) => !isBypass).sort((a, b) => a.roleID.localeCompare(b.roleID));
79695
79948
 
79696
79949
  if (this.roles.length > 0) {
79697
- this.onRoleChange(this.roles[0]);
79950
+ this.currentRole = this.roles[0];
79951
+ const {
79952
+ roleID
79953
+ } = this.currentRole;
79954
+ this.onRoleChange(roleID);
79698
79955
  }
79956
+ }).finally(() => {
79957
+ this.processing = false;
79958
+ });
79959
+ },
79699
79960
 
79961
+ async evaluatePermissions({
79962
+ resource = this.resource,
79963
+ roleID,
79964
+ userID
79965
+ }) {
79966
+ this.processing = true;
79967
+ return this.api.permissionsTrace({
79968
+ resource,
79969
+ roleID,
79970
+ userID
79971
+ }).then(this.normalizeRules).finally(() => {
79700
79972
  this.processing = false;
79701
79973
  });
79702
79974
  },
79703
79975
 
79976
+ searchUsers(query = '', loading) {
79977
+ loading(true);
79978
+ this.$SystemAPI.userList({
79979
+ query,
79980
+ limit: 15
79981
+ }).then(({
79982
+ set
79983
+ }) => {
79984
+ this.userOptions = set.map(m => Object.freeze(m));
79985
+ }).finally(() => {
79986
+ loading(false);
79987
+ });
79988
+ },
79989
+
79990
+ getUserLabel({
79991
+ userID,
79992
+ email,
79993
+ name,
79994
+ username
79995
+ }) {
79996
+ return name || username || email || `<@${userID}>`;
79997
+ },
79998
+
79999
+ onAddEval() {
80000
+ const {
80001
+ userID
80002
+ } = this.add.userID || {};
80003
+ let {
80004
+ roleID = []
80005
+ } = this.add;
80006
+ roleID = roleID.map(({
80007
+ roleID
80008
+ }) => roleID);
80009
+ this.evaluatePermissions({
80010
+ roleID,
80011
+ userID
80012
+ }).then(rules => {
80013
+ this.evaluate.push({ ...this.add,
80014
+ rules
80015
+ });
80016
+ this.add = {
80017
+ roleID: [],
80018
+ userID: undefined
80019
+ };
80020
+ });
80021
+ },
80022
+
80023
+ onHideEval(i) {
80024
+ this.evaluate.splice(i, 1);
80025
+ },
80026
+
80027
+ getEvalName({
80028
+ roleID,
80029
+ userID
80030
+ }) {
80031
+ if (userID) {
80032
+ const {
80033
+ name,
80034
+ username,
80035
+ email,
80036
+ handle
80037
+ } = userID;
80038
+ return [name || username || email || handle || userID || ''];
80039
+ } else {
80040
+ return roleID.map(({
80041
+ name
80042
+ }) => name);
80043
+ }
80044
+ },
80045
+
79704
80046
  normalizeRules(rr) {
79705
80047
  const inherit = 'inherit'; // merges roleRules (subset) with list of all permissions
79706
80048
 
@@ -79712,7 +80054,18 @@ var script$q = {
79712
80054
  return inherit;
79713
80055
  }
79714
80056
 
79715
- return (rr.find(r => r.resource === resource && r.operation === operation) || {}).access || inherit;
80057
+ let {
80058
+ resolution,
80059
+ access = 'inherit'
80060
+ } = rr.find(r => r.resource === resource && r.operation === operation) || {};
80061
+
80062
+ if (resolution === 'unknown-context') {
80063
+ access = 'unknown-context';
80064
+ } else if (access === 'inherit') {
80065
+ access = 'deny';
80066
+ }
80067
+
80068
+ return access;
79716
80069
  };
79717
80070
 
79718
80071
  return this.permissions.map(p => {
@@ -79788,145 +80141,14 @@ var script$q = {
79788
80141
  title,
79789
80142
  description: this.$t(`permissions:${i18nPrefix}.description`)
79790
80143
  };
79791
- }
79792
-
79793
- }
79794
- };
79795
-
79796
- /* script */
79797
- const __vue_script__$q = script$q;
79798
-
79799
- /* template */
79800
- 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)};
79801
- var __vue_staticRenderFns__$n = [];
79802
-
79803
- /* style */
79804
- const __vue_inject_styles__$r = function (inject) {
79805
- if (!inject) return
79806
- inject("data-v-6a9b0cab_0", { source: ".pointer[data-v-6a9b0cab]{cursor:pointer}", map: undefined, media: undefined });
79807
-
79808
- };
79809
- /* scoped */
79810
- const __vue_scope_id__$r = "data-v-6a9b0cab";
79811
- /* module identifier */
79812
- const __vue_module_identifier__$r = undefined;
79813
- /* functional template */
79814
- const __vue_is_functional_template__$r = false;
79815
- /* style inject SSR */
79816
-
79817
- /* style inject shadow dom */
79818
-
79819
-
79820
-
79821
- const __vue_component__$r = /*#__PURE__*/normalizeComponent(
79822
- { render: __vue_render__$n, staticRenderFns: __vue_staticRenderFns__$n },
79823
- __vue_inject_styles__$r,
79824
- __vue_script__$q,
79825
- __vue_scope_id__$r,
79826
- __vue_is_functional_template__$r,
79827
- __vue_module_identifier__$r,
79828
- false,
79829
- createInjector,
79830
- undefined,
79831
- undefined
79832
- );
79833
-
79834
- var script$r = {
79835
- i18nOptions: {
79836
- namespaces: 'permissions'
79837
- },
79838
- components: {
79839
- CPermissionsForm: __vue_component__$r
79840
- },
79841
-
79842
- data() {
79843
- return {
79844
- resource: undefined,
79845
- title: undefined,
79846
- target: undefined,
79847
- allSpecific: false
79848
- };
79849
- },
79850
-
79851
- computed: {
79852
- showModal: {
79853
- get() {
79854
- return !!this.resource;
79855
- },
79856
-
79857
- set(open) {
79858
- if (!open) {
79859
- this.clear();
79860
- }
79861
- }
79862
-
79863
80144
  },
79864
80145
 
79865
- translatedTitle() {
79866
- if (this.resource) {
79867
- const {
79868
- i18nPrefix
79869
- } = split(this.resource);
79870
- let target;
79871
-
79872
- if (this.allSpecific) {
79873
- target = this.$t(`permissions:${i18nPrefix}.all-specific`, {
79874
- target: this.title,
79875
- interpolation: {
79876
- escapeValue: false
79877
- }
79878
- });
79879
- } else if (this.title) {
79880
- target = this.$t(`permissions:${i18nPrefix}.specific`, {
79881
- target: this.title,
79882
- interpolation: {
79883
- escapeValue: false
79884
- }
79885
- });
79886
- } else {
79887
- target = this.$t(`permissions:${i18nPrefix}.all`);
79888
- }
79889
-
79890
- return this.$t('permissions:ui.set-for', {
79891
- target: target,
79892
- interpolation: {
79893
- escapeValue: false
79894
- }
79895
- });
80146
+ getRuleTooltip(isUnknown = false, isUser) {
80147
+ if (!isUnknown) {
80148
+ return '';
79896
80149
  }
79897
80150
 
79898
- return undefined;
79899
- }
79900
-
79901
- },
79902
-
79903
- mounted() {
79904
- this.$root.$on(modalOpenEventName, ({
79905
- resource,
79906
- title,
79907
- target,
79908
- allSpecific
79909
- }) => {
79910
- this.resource = resource;
79911
- this.title = title;
79912
- this.target = target;
79913
- this.allSpecific = allSpecific;
79914
- });
79915
- },
79916
-
79917
- destroyed() {
79918
- this.$root.$off(modalOpenEventName);
79919
- },
79920
-
79921
- methods: {
79922
- onHide() {
79923
- this.clear();
79924
- },
79925
-
79926
- clear() {
79927
- this.resource = undefined;
79928
- this.title = undefined;
79929
- this.target = undefined;
80151
+ return this.$t(`permissions:ui.tooltip.unknown-context.${isUser ? 'user' : 'role'}`);
79930
80152
  }
79931
80153
 
79932
80154
  }
@@ -79936,19 +80158,21 @@ var script$r = {
79936
80158
  const __vue_script__$r = script$r;
79937
80159
 
79938
80160
  /* template */
79939
- var __vue_render__$o = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-modal',{staticClass:"overflow-hidden",attrs:{"hide-footer":"","size":"xl","title":_vm.translatedTitle,"lazy":"","scrollable":""},on:{"hide":_vm.onHide},model:{value:(_vm.showModal),callback:function ($$v) {_vm.showModal=$$v;},expression:"showModal"}},[(_vm.resource)?_c('c-permissions-form',{staticClass:"h-100",attrs:{"resource":_vm.resource,"target":_vm.target,"all-specific":_vm.allSpecific}}):_vm._e()],1)],1)};
80161
+ 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)};
79940
80162
  var __vue_staticRenderFns__$o = [];
79941
80163
 
79942
80164
  /* style */
79943
- const __vue_inject_styles__$s = undefined;
80165
+ const __vue_inject_styles__$s = function (inject) {
80166
+ if (!inject) return
80167
+ 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 });
80168
+
80169
+ };
79944
80170
  /* scoped */
79945
- const __vue_scope_id__$s = undefined;
80171
+ const __vue_scope_id__$s = "data-v-63e6d773";
79946
80172
  /* module identifier */
79947
80173
  const __vue_module_identifier__$s = undefined;
79948
80174
  /* functional template */
79949
80175
  const __vue_is_functional_template__$s = false;
79950
- /* style inject */
79951
-
79952
80176
  /* style inject SSR */
79953
80177
 
79954
80178
  /* style inject shadow dom */
@@ -79963,7 +80187,7 @@ var __vue_staticRenderFns__$o = [];
79963
80187
  __vue_is_functional_template__$s,
79964
80188
  __vue_module_identifier__$s,
79965
80189
  false,
79966
- undefined,
80190
+ createInjector,
79967
80191
  undefined,
79968
80192
  undefined
79969
80193
  );
@@ -80926,6 +81150,12 @@ const definitions = {
80926
81150
  });
80927
81151
  },
80928
81152
  },
81153
+ refetchRecords: {
81154
+ handler: function () {
81155
+ // @ts-ignore
81156
+ this.$root.$emit('refetch-records');
81157
+ },
81158
+ },
80929
81159
  };
80930
81160
 
80931
81161
  //
@@ -81320,6 +81550,7 @@ const prompts = Object.freeze([
81320
81550
  ref: 'redirect',
81321
81551
  meta: { short: 'Redirect user to an outside URL' },
81322
81552
  parameters: [
81553
+ { name: 'owner', types: ['User', 'ID'], required: false },
81323
81554
  { name: 'url', types: ['String'], required: true },
81324
81555
  { name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
81325
81556
  ],
@@ -81328,6 +81559,7 @@ const prompts = Object.freeze([
81328
81559
  ref: 'reroute',
81329
81560
  meta: { short: 'Redirect user to an internal application route' },
81330
81561
  parameters: [
81562
+ { name: 'owner', types: ['User', 'ID'], required: false },
81331
81563
  { name: 'name', types: ['String'], required: true },
81332
81564
  { name: 'params', types: ['KV'] },
81333
81565
  { name: 'query', types: ['KV'] },
@@ -81341,6 +81573,7 @@ const prompts = Object.freeze([
81341
81573
  webapps: ['compose'],
81342
81574
  },
81343
81575
  parameters: [
81576
+ { name: 'owner', types: ['User', 'ID'], required: false },
81344
81577
  { name: 'module', types: ['ID', 'Handle', 'ComposeModule'] },
81345
81578
  { name: 'namespace', types: ['ID', 'Handle', 'ComposeNamespace'] },
81346
81579
  { name: 'record', types: ['ID', 'ComposeRecord'] },
@@ -81348,10 +81581,15 @@ const prompts = Object.freeze([
81348
81581
  { name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
81349
81582
  ],
81350
81583
  },
81584
+ {
81585
+ ref: 'refetchRecords',
81586
+ meta: { short: 'Refreshes all record values on the page' },
81587
+ },
81351
81588
  {
81352
81589
  ref: 'notification',
81353
81590
  meta: { short: 'Show non-blocking message to user' },
81354
81591
  parameters: [
81592
+ { name: 'owner', types: ['User', 'ID'], required: false },
81355
81593
  { name: 'title', types: ['String'] },
81356
81594
  { name: 'message', types: ['String'], required: true },
81357
81595
  { name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
@@ -81362,6 +81600,7 @@ const prompts = Object.freeze([
81362
81600
  ref: 'alert',
81363
81601
  meta: { short: 'Prompt user with an alert' },
81364
81602
  parameters: [
81603
+ { name: 'owner', types: ['User', 'ID'], required: false },
81365
81604
  { name: 'title', types: ['String'] },
81366
81605
  { name: 'message', types: ['String'], required: true },
81367
81606
  { name: 'buttonLabel', types: ['String'] },
@@ -81373,6 +81612,7 @@ const prompts = Object.freeze([
81373
81612
  ref: 'choice',
81374
81613
  meta: { short: 'Prompt user with choice' },
81375
81614
  parameters: [
81615
+ { name: 'owner', types: ['User', 'ID'], required: false },
81376
81616
  { name: 'title', types: ['String'] },
81377
81617
  { name: 'message', types: ['String'], required: true },
81378
81618
  { name: 'confirmButtonLabel', types: ['String'] },
@@ -81390,6 +81630,7 @@ const prompts = Object.freeze([
81390
81630
  ref: 'composeRecordPicker',
81391
81631
  meta: { short: 'Prompt user to select a Compose Record' },
81392
81632
  parameters: [
81633
+ { name: 'owner', types: ['User', 'ID'], required: false },
81393
81634
  { name: 'title', types: ['String'] },
81394
81635
  { name: 'message', types: ['String'], required: true },
81395
81636
  { name: 'namespace', types: ['ID', 'Handle', 'ComposeNamespace'], required: true },
@@ -81406,6 +81647,7 @@ const prompts = Object.freeze([
81406
81647
  ref: 'input',
81407
81648
  meta: { short: 'Prompt user with a single input' },
81408
81649
  parameters: [
81650
+ { name: 'owner', types: ['User', 'ID'], required: false },
81409
81651
  { name: 'title', types: ['String'] },
81410
81652
  { name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
81411
81653
  { name: 'message', types: ['String'], required: true },
@@ -81437,6 +81679,7 @@ const prompts = Object.freeze([
81437
81679
  ref: 'options',
81438
81680
  meta: { short: 'Prompt user with options' },
81439
81681
  parameters: [
81682
+ { name: 'owner', types: ['User', 'ID'], required: false },
81440
81683
  { name: 'title', types: ['String'] },
81441
81684
  { name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
81442
81685
  { name: 'message', types: ['String'], required: true },
@@ -83113,7 +83356,8 @@ var script$R = {
83113
83356
  name: 'CItemPicker',
83114
83357
  components: {
83115
83358
  draggable: Draggable,
83116
- CItemPickerItem: __vue_component__$R
83359
+ CItemPickerItem: __vue_component__$R,
83360
+ CInputSearch: __vue_component__$e
83117
83361
  },
83118
83362
  props: {
83119
83363
  /**
@@ -83370,7 +83614,7 @@ var script$R = {
83370
83614
  const __vue_script__$R = script$R;
83371
83615
 
83372
83616
  /* template */
83373
- 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('b-input-group',[_c('b-input',{staticClass:"text-truncate",attrs:{"type":"search","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._v(" "),_c('b-input-group-append',[_c('b-input-group-text',{staticClass:"text-primary bg-white border-left-0"},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'search']}})],1)],1)],1):_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)};
83617
+ 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)};
83374
83618
  var __vue_staticRenderFns__$M = [];
83375
83619
 
83376
83620
  /* style */
@@ -84024,95 +84268,423 @@ var script$V = {
84024
84268
  } // Paging
84025
84269
 
84026
84270
 
84027
- if (this.cursor) {
84028
- let {
84029
- limit
84030
- } = this.localDataframe.paging || {};
84271
+ if (this.cursor) {
84272
+ let {
84273
+ limit
84274
+ } = this.localDataframe.paging || {};
84275
+
84276
+ if (!limit) {
84277
+ limit = this.options.datasources[0] ? this.options.datasources[0].paging.limit || 20 : 20;
84278
+ }
84279
+
84280
+ def.paging = {
84281
+ cursor: this.cursor,
84282
+ limit
84283
+ };
84284
+ }
84285
+
84286
+ const definition = {};
84287
+ definition[ref] = def;
84288
+ this.$emit('update', definition);
84289
+ }
84290
+ }
84291
+ }
84292
+
84293
+ }
84294
+ };
84295
+
84296
+ /* script */
84297
+ const __vue_script__$V = script$V;
84298
+
84299
+ /* template */
84300
+ 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:({
84301
+ color: _vm.sort.field === c.meta.sortKey && !_vm.sort.descending ? 'black' : 'grey',
84302
+ }),attrs:{"icon":['fas', 'angle-up']}}),_vm._v(" "),_c('font-awesome-icon',{staticClass:"mt-1",style:({
84303
+ color: _vm.sort.field === c.meta.sortKey && _vm.sort.descending ? 'black' : 'grey',
84304
+ }),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:{
84305
+ separator: !!(r[0] || {}).separator,
84306
+ }},_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)};
84307
+ var __vue_staticRenderFns__$P = [];
84308
+
84309
+ /* style */
84310
+ const __vue_inject_styles__$W = function (inject) {
84311
+ if (!inject) return
84312
+ 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 });
84313
+
84314
+ };
84315
+ /* scoped */
84316
+ const __vue_scope_id__$W = "data-v-1a305c88";
84317
+ /* module identifier */
84318
+ const __vue_module_identifier__$W = undefined;
84319
+ /* functional template */
84320
+ const __vue_is_functional_template__$W = false;
84321
+ /* style inject SSR */
84322
+
84323
+ /* style inject shadow dom */
84324
+
84325
+
84326
+
84327
+ const __vue_component__$W = /*#__PURE__*/normalizeComponent(
84328
+ { render: __vue_render__$P, staticRenderFns: __vue_staticRenderFns__$P },
84329
+ __vue_inject_styles__$W,
84330
+ __vue_script__$V,
84331
+ __vue_scope_id__$W,
84332
+ __vue_is_functional_template__$W,
84333
+ __vue_module_identifier__$W,
84334
+ false,
84335
+ createInjector,
84336
+ undefined,
84337
+ undefined
84338
+ );
84339
+
84340
+ //
84341
+ var script$W = {
84342
+ extends: __vue_component__$T
84343
+ };
84344
+
84345
+ /* script */
84346
+ const __vue_script__$W = script$W;
84347
+
84348
+ /* template */
84349
+ 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()};
84350
+ var __vue_staticRenderFns__$Q = [];
84351
+
84352
+ /* style */
84353
+ const __vue_inject_styles__$X = undefined;
84354
+ /* scoped */
84355
+ const __vue_scope_id__$X = undefined;
84356
+ /* module identifier */
84357
+ const __vue_module_identifier__$X = undefined;
84358
+ /* functional template */
84359
+ const __vue_is_functional_template__$X = false;
84360
+ /* style inject */
84361
+
84362
+ /* style inject SSR */
84363
+
84364
+ /* style inject shadow dom */
84365
+
84366
+
84367
+
84368
+ const __vue_component__$X = /*#__PURE__*/normalizeComponent(
84369
+ { render: __vue_render__$Q, staticRenderFns: __vue_staticRenderFns__$Q },
84370
+ __vue_inject_styles__$X,
84371
+ __vue_script__$W,
84372
+ __vue_scope_id__$X,
84373
+ __vue_is_functional_template__$X,
84374
+ __vue_module_identifier__$X,
84375
+ false,
84376
+ undefined,
84377
+ undefined,
84378
+ undefined
84379
+ );
84380
+
84381
+ //
84382
+ var script$X = {
84383
+ components: {
84384
+ VueSelect
84385
+ },
84386
+ props: {
84387
+ value: {
84388
+ type: String,
84389
+ default: ''
84390
+ },
84391
+ placeholder: {
84392
+ type: String,
84393
+ default: ''
84394
+ },
84395
+ // ID of sensitivityLevel with the maximum allowed level
84396
+ maxLevel: {
84397
+ type: String,
84398
+ default: undefined
84399
+ },
84400
+ disabled: {
84401
+ type: Boolean,
84402
+ default: false
84403
+ }
84404
+ },
84405
+
84406
+ data() {
84407
+ return {
84408
+ allSensitivityLevels: []
84409
+ };
84410
+ },
84411
+
84412
+ computed: {
84413
+ sensitivityLevels() {
84414
+ if (this.maxLevel) {
84415
+ const maxLevelConnection = this.allSensitivityLevels.find(({
84416
+ sensitivityLevelID
84417
+ }) => sensitivityLevelID === this.maxLevel);
84418
+
84419
+ if (maxLevelConnection) {
84420
+ return this.allSensitivityLevels.filter(({
84421
+ level
84422
+ }) => level <= maxLevelConnection.level);
84423
+ }
84424
+ }
84425
+
84426
+ return this.allSensitivityLevels;
84427
+ }
84428
+
84429
+ },
84430
+
84431
+ mounted() {
84432
+ this.$SystemAPI.dalSensitivityLevelList().then(({
84433
+ set
84434
+ }) => {
84435
+ this.allSensitivityLevels = set;
84436
+ });
84437
+ },
84438
+
84439
+ methods: {
84440
+ getLabel({
84441
+ handle,
84442
+ meta = {}
84443
+ }) {
84444
+ return meta.name || handle;
84445
+ }
84446
+
84447
+ }
84448
+ };
84449
+
84450
+ /* script */
84451
+ const __vue_script__$X = script$X;
84452
+
84453
+ /* template */
84454
+ 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)}}})};
84455
+ var __vue_staticRenderFns__$R = [];
84456
+
84457
+ /* style */
84458
+ const __vue_inject_styles__$Y = undefined;
84459
+ /* scoped */
84460
+ const __vue_scope_id__$Y = undefined;
84461
+ /* module identifier */
84462
+ const __vue_module_identifier__$Y = undefined;
84463
+ /* functional template */
84464
+ const __vue_is_functional_template__$Y = false;
84465
+ /* style inject */
84466
+
84467
+ /* style inject SSR */
84468
+
84469
+ /* style inject shadow dom */
84470
+
84471
+
84472
+
84473
+ const __vue_component__$Y = /*#__PURE__*/normalizeComponent(
84474
+ { render: __vue_render__$R, staticRenderFns: __vue_staticRenderFns__$R },
84475
+ __vue_inject_styles__$Y,
84476
+ __vue_script__$X,
84477
+ __vue_scope_id__$Y,
84478
+ __vue_is_functional_template__$Y,
84479
+ __vue_module_identifier__$Y,
84480
+ false,
84481
+ undefined,
84482
+ undefined,
84483
+ undefined
84484
+ );
84485
+
84486
+ //
84487
+ var script$Y = {
84488
+ name: 'ResourceList',
84489
+ components: {
84490
+ CInputSearch: __vue_component__$e
84491
+ },
84492
+ props: {
84493
+ primaryKey: {
84494
+ type: String,
84495
+ required: true
84496
+ },
84497
+ filter: {
84498
+ type: Object,
84499
+ required: true
84500
+ },
84501
+ sorting: {
84502
+ type: Object,
84503
+ required: true
84504
+ },
84505
+ pagination: {
84506
+ type: Object,
84507
+ required: true
84508
+ },
84509
+ fields: {
84510
+ type: Array,
84511
+ required: true
84512
+ },
84513
+ // Promise that resolves with an array
84514
+ items: {
84515
+ type: Function,
84516
+ required: true
84517
+ },
84518
+ hideSearch: {
84519
+ type: Boolean
84520
+ },
84521
+ hideTotal: {
84522
+ type: Boolean
84523
+ },
84524
+ hidePagination: {
84525
+ type: Boolean
84526
+ },
84527
+ // Are rows clickable
84528
+ clickable: {
84529
+ type: Boolean,
84530
+ default: false
84531
+ },
84532
+ selectable: {
84533
+ type: Boolean,
84534
+ default: false
84535
+ },
84536
+ isItemSelectable: {
84537
+ type: Function,
84538
+ default: () => true
84539
+ },
84540
+ editRoute: {
84541
+ type: String,
84542
+ default: ''
84543
+ },
84544
+ rowClass: {
84545
+ type: Function,
84546
+ default: () => {}
84547
+ },
84548
+ translations: {
84549
+ type: Object,
84550
+ required: true
84551
+ },
84552
+ queryField: {
84553
+ type: String,
84554
+ default: 'query'
84555
+ }
84556
+ },
84557
+
84558
+ data() {
84559
+ return {
84560
+ selected: [],
84561
+ selectableItemIDs: []
84562
+ };
84563
+ },
84564
+
84565
+ computed: {
84566
+ _fields() {
84567
+ const select = this.selectable ? [{
84568
+ key: 'select',
84569
+ label: '',
84570
+ thStyle: 'width: 0; white-space: nowrap;'
84571
+ }] : [];
84572
+ return [...select, ...this.fields].map(f => {
84573
+ return { ...f,
84574
+ thClass: `${f.thClass || 'border-0'}`
84575
+ };
84576
+ });
84577
+ },
84578
+
84579
+ customFieldSlots() {
84580
+ return [...Object.keys(this.$slots), ...Object.keys(this.$scopedSlots)].filter(s => s !== 'header');
84581
+ },
84582
+
84583
+ disableSelectAll() {
84584
+ return !this.selectableItemIDs.length;
84585
+ },
84031
84586
 
84032
- if (!limit) {
84033
- limit = this.options.datasources[0] ? this.options.datasources[0].paging.limit || 20 : 20;
84034
- }
84587
+ allRowsSelected() {
84588
+ return this.selected.length === this.selectableItemIDs.length;
84589
+ },
84035
84590
 
84036
- def.paging = {
84037
- cursor: this.cursor,
84038
- limit
84039
- };
84040
- }
84591
+ getPagination() {
84592
+ const {
84593
+ page = 1,
84594
+ count = 0,
84595
+ limit = 10
84596
+ } = this.pagination;
84597
+ return {
84598
+ from: (page - 1) * limit + 1,
84599
+ to: Math.min(page * limit, count),
84600
+ count
84601
+ };
84602
+ },
84041
84603
 
84042
- const definition = {};
84043
- definition[ref] = def;
84044
- this.$emit('update', definition);
84045
- }
84046
- }
84604
+ hasPrevPage() {
84605
+ return !this.pagination.prevPage;
84606
+ },
84607
+
84608
+ hasNextPage() {
84609
+ return !this.pagination.nextPage;
84047
84610
  }
84048
84611
 
84049
- }
84050
- };
84612
+ },
84613
+ methods: {
84614
+ tableRowClasses(item = {}) {
84615
+ return {
84616
+ 'pointer': this.clickable,
84617
+ ...this.rowClass(item)
84618
+ };
84619
+ },
84051
84620
 
84052
- /* script */
84053
- const __vue_script__$V = script$V;
84621
+ _items() {
84622
+ this.selected = [];
84623
+ this.selectableItemIDs = [];
84624
+ return this.items().then((items = []) => {
84625
+ this.selectableItemIDs = items.filter(this.isItemSelectable).map(i => i[this.primaryKey]);
84626
+ return items;
84627
+ });
84628
+ },
84054
84629
 
84055
- /* template */
84056
- 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:({
84057
- color: _vm.sort.field === c.meta.sortKey && !_vm.sort.descending ? 'black' : 'grey',
84058
- }),attrs:{"icon":['fas', 'angle-up']}}),_vm._v(" "),_c('font-awesome-icon',{staticClass:"mt-1",style:({
84059
- color: _vm.sort.field === c.meta.sortKey && _vm.sort.descending ? 'black' : 'grey',
84060
- }),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:{
84061
- separator: !!(r[0] || {}).separator,
84062
- }},_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)};
84063
- var __vue_staticRenderFns__$P = [];
84630
+ onSelectRow(selected, itemID) {
84631
+ if (selected) {
84632
+ if (this.selected.includes(itemID)) {
84633
+ return;
84634
+ }
84064
84635
 
84065
- /* style */
84066
- const __vue_inject_styles__$W = function (inject) {
84067
- if (!inject) return
84068
- 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 });
84636
+ this.selected.push(itemID);
84637
+ } else {
84638
+ const i = this.selected.indexOf(itemID);
84069
84639
 
84070
- };
84071
- /* scoped */
84072
- const __vue_scope_id__$W = "data-v-1a305c88";
84073
- /* module identifier */
84074
- const __vue_module_identifier__$W = undefined;
84075
- /* functional template */
84076
- const __vue_is_functional_template__$W = false;
84077
- /* style inject SSR */
84078
-
84079
- /* style inject shadow dom */
84080
-
84640
+ if (i < 0) {
84641
+ return;
84642
+ }
84081
84643
 
84082
-
84083
- const __vue_component__$W = /*#__PURE__*/normalizeComponent(
84084
- { render: __vue_render__$P, staticRenderFns: __vue_staticRenderFns__$P },
84085
- __vue_inject_styles__$W,
84086
- __vue_script__$V,
84087
- __vue_scope_id__$W,
84088
- __vue_is_functional_template__$W,
84089
- __vue_module_identifier__$W,
84090
- false,
84091
- createInjector,
84092
- undefined,
84093
- undefined
84094
- );
84644
+ this.selected.splice(i, 1);
84645
+ }
84646
+ },
84095
84647
 
84096
- //
84097
- var script$W = {
84098
- extends: __vue_component__$T
84648
+ selectAllRows(allSelected = false) {
84649
+ if (allSelected) {
84650
+ this.selected = this.selectableItemIDs;
84651
+ } else {
84652
+ this.selected = [];
84653
+ }
84654
+ },
84655
+
84656
+ goToPage(page) {
84657
+ const pageCursor = this.pagination[page] || '';
84658
+ this.$router.push({
84659
+ path: this.$route.path,
84660
+ query: { ...this.$route.query,
84661
+ pageCursor
84662
+ }
84663
+ });
84664
+ }
84665
+
84666
+ }
84099
84667
  };
84100
84668
 
84101
84669
  /* script */
84102
- const __vue_script__$W = script$W;
84670
+ const __vue_script__$Y = script$Y;
84103
84671
 
84104
84672
  /* template */
84105
- 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()};
84106
- var __vue_staticRenderFns__$Q = [];
84673
+ 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){
84674
+ var item = ref.item;
84675
+ 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){
84676
+ var item = ref.item;
84677
+ return [_vm._t(field,null,{"item":item})]}}})],null,true)})],1)],1)};
84678
+ var __vue_staticRenderFns__$S = [];
84107
84679
 
84108
84680
  /* style */
84109
- const __vue_inject_styles__$X = undefined;
84681
+ const __vue_inject_styles__$Z = undefined;
84110
84682
  /* scoped */
84111
- const __vue_scope_id__$X = undefined;
84683
+ const __vue_scope_id__$Z = undefined;
84112
84684
  /* module identifier */
84113
- const __vue_module_identifier__$X = undefined;
84685
+ const __vue_module_identifier__$Z = undefined;
84114
84686
  /* functional template */
84115
- const __vue_is_functional_template__$X = false;
84687
+ const __vue_is_functional_template__$Z = false;
84116
84688
  /* style inject */
84117
84689
 
84118
84690
  /* style inject SSR */
@@ -84121,13 +84693,13 @@ var __vue_staticRenderFns__$Q = [];
84121
84693
 
84122
84694
 
84123
84695
 
84124
- const __vue_component__$X = /*#__PURE__*/normalizeComponent(
84125
- { render: __vue_render__$Q, staticRenderFns: __vue_staticRenderFns__$Q },
84126
- __vue_inject_styles__$X,
84127
- __vue_script__$W,
84128
- __vue_scope_id__$X,
84129
- __vue_is_functional_template__$X,
84130
- __vue_module_identifier__$X,
84696
+ const __vue_component__$Z = /*#__PURE__*/normalizeComponent(
84697
+ { render: __vue_render__$S, staticRenderFns: __vue_staticRenderFns__$S },
84698
+ __vue_inject_styles__$Z,
84699
+ __vue_script__$Y,
84700
+ __vue_scope_id__$Z,
84701
+ __vue_is_functional_template__$Z,
84702
+ __vue_module_identifier__$Z,
84131
84703
  false,
84132
84704
  undefined,
84133
84705
  undefined,
@@ -84174,7 +84746,7 @@ function ExtractComponents(cat, ...path) {
84174
84746
  }
84175
84747
 
84176
84748
  //
84177
- var script$X = {
84749
+ var script$Z = {
84178
84750
  name: 'ComponentList',
84179
84751
  props: {
84180
84752
  catalogue: {
@@ -84211,37 +84783,37 @@ var script$X = {
84211
84783
  };
84212
84784
 
84213
84785
  /* script */
84214
- const __vue_script__$X = script$X;
84786
+ const __vue_script__$Z = script$Z;
84215
84787
 
84216
84788
  /* template */
84217
- var __vue_render__$R = 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()])};
84218
- var __vue_staticRenderFns__$R = [];
84789
+ 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()])};
84790
+ var __vue_staticRenderFns__$T = [];
84219
84791
 
84220
84792
  /* style */
84221
- const __vue_inject_styles__$Y = function (inject) {
84793
+ const __vue_inject_styles__$_ = function (inject) {
84222
84794
  if (!inject) return
84223
84795
  inject("data-v-8b2b254e_0", { source: ".component[data-v-8b2b254e]{cursor:pointer}", map: undefined, media: undefined });
84224
84796
 
84225
84797
  };
84226
84798
  /* scoped */
84227
- const __vue_scope_id__$Y = "data-v-8b2b254e";
84799
+ const __vue_scope_id__$_ = "data-v-8b2b254e";
84228
84800
  /* module identifier */
84229
- const __vue_module_identifier__$Y = undefined;
84801
+ const __vue_module_identifier__$_ = undefined;
84230
84802
  /* functional template */
84231
- const __vue_is_functional_template__$Y = false;
84803
+ const __vue_is_functional_template__$_ = false;
84232
84804
  /* style inject SSR */
84233
84805
 
84234
84806
  /* style inject shadow dom */
84235
84807
 
84236
84808
 
84237
84809
 
84238
- const __vue_component__$Y = /*#__PURE__*/normalizeComponent(
84239
- { render: __vue_render__$R, staticRenderFns: __vue_staticRenderFns__$R },
84240
- __vue_inject_styles__$Y,
84241
- __vue_script__$X,
84242
- __vue_scope_id__$Y,
84243
- __vue_is_functional_template__$Y,
84244
- __vue_module_identifier__$Y,
84810
+ const __vue_component__$_ = /*#__PURE__*/normalizeComponent(
84811
+ { render: __vue_render__$T, staticRenderFns: __vue_staticRenderFns__$T },
84812
+ __vue_inject_styles__$_,
84813
+ __vue_script__$Z,
84814
+ __vue_scope_id__$_,
84815
+ __vue_is_functional_template__$_,
84816
+ __vue_module_identifier__$_,
84245
84817
  false,
84246
84818
  createInjector,
84247
84819
  undefined,
@@ -84249,10 +84821,10 @@ var __vue_staticRenderFns__$R = [];
84249
84821
  );
84250
84822
 
84251
84823
  //
84252
- var script$Y = {
84824
+ var script$_ = {
84253
84825
  name: 'C3',
84254
84826
  components: {
84255
- ComponentList: __vue_component__$Y
84827
+ ComponentList: __vue_component__$_
84256
84828
  },
84257
84829
  props: {
84258
84830
  catalogue: {
@@ -84313,37 +84885,37 @@ var script$Y = {
84313
84885
  };
84314
84886
 
84315
84887
  /* script */
84316
- const __vue_script__$Y = script$Y;
84888
+ const __vue_script__$_ = script$_;
84317
84889
 
84318
84890
  /* template */
84319
- var __vue_render__$S = 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()])};
84320
- var __vue_staticRenderFns__$S = [];
84891
+ 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()])};
84892
+ var __vue_staticRenderFns__$U = [];
84321
84893
 
84322
84894
  /* style */
84323
- const __vue_inject_styles__$Z = function (inject) {
84895
+ const __vue_inject_styles__$$ = function (inject) {
84324
84896
  if (!inject) return
84325
84897
  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 });
84326
84898
 
84327
84899
  };
84328
84900
  /* scoped */
84329
- const __vue_scope_id__$Z = undefined;
84901
+ const __vue_scope_id__$$ = undefined;
84330
84902
  /* module identifier */
84331
- const __vue_module_identifier__$Z = undefined;
84903
+ const __vue_module_identifier__$$ = undefined;
84332
84904
  /* functional template */
84333
- const __vue_is_functional_template__$Z = false;
84905
+ const __vue_is_functional_template__$$ = false;
84334
84906
  /* style inject SSR */
84335
84907
 
84336
84908
  /* style inject shadow dom */
84337
84909
 
84338
84910
 
84339
84911
 
84340
- const __vue_component__$Z = /*#__PURE__*/normalizeComponent(
84341
- { render: __vue_render__$S, staticRenderFns: __vue_staticRenderFns__$S },
84342
- __vue_inject_styles__$Z,
84343
- __vue_script__$Y,
84344
- __vue_scope_id__$Z,
84345
- __vue_is_functional_template__$Z,
84346
- __vue_module_identifier__$Z,
84912
+ const __vue_component__$$ = /*#__PURE__*/normalizeComponent(
84913
+ { render: __vue_render__$U, staticRenderFns: __vue_staticRenderFns__$U },
84914
+ __vue_inject_styles__$$,
84915
+ __vue_script__$_,
84916
+ __vue_scope_id__$$,
84917
+ __vue_is_functional_template__$$,
84918
+ __vue_module_identifier__$$,
84347
84919
  false,
84348
84920
  createInjector,
84349
84921
  undefined,
@@ -84361,7 +84933,7 @@ var __vue_staticRenderFns__$S = [];
84361
84933
  //
84362
84934
  //
84363
84935
  //
84364
- var script$Z = {
84936
+ var script$$ = {
84365
84937
  props: {
84366
84938
  label: {
84367
84939
  required: true,
@@ -84375,20 +84947,20 @@ var script$Z = {
84375
84947
  };
84376
84948
 
84377
84949
  /* script */
84378
- const __vue_script__$Z = script$Z;
84950
+ const __vue_script__$$ = script$$;
84379
84951
 
84380
84952
  /* template */
84381
- var __vue_render__$T = 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)};
84382
- var __vue_staticRenderFns__$T = [];
84953
+ 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)};
84954
+ var __vue_staticRenderFns__$V = [];
84383
84955
 
84384
84956
  /* style */
84385
- const __vue_inject_styles__$_ = undefined;
84957
+ const __vue_inject_styles__$10 = undefined;
84386
84958
  /* scoped */
84387
- const __vue_scope_id__$_ = undefined;
84959
+ const __vue_scope_id__$10 = undefined;
84388
84960
  /* module identifier */
84389
- const __vue_module_identifier__$_ = undefined;
84961
+ const __vue_module_identifier__$10 = undefined;
84390
84962
  /* functional template */
84391
- const __vue_is_functional_template__$_ = false;
84963
+ const __vue_is_functional_template__$10 = false;
84392
84964
  /* style inject */
84393
84965
 
84394
84966
  /* style inject SSR */
@@ -84397,13 +84969,13 @@ var __vue_staticRenderFns__$T = [];
84397
84969
 
84398
84970
 
84399
84971
 
84400
- const __vue_component__$_ = /*#__PURE__*/normalizeComponent(
84401
- { render: __vue_render__$T, staticRenderFns: __vue_staticRenderFns__$T },
84402
- __vue_inject_styles__$_,
84403
- __vue_script__$Z,
84404
- __vue_scope_id__$_,
84405
- __vue_is_functional_template__$_,
84406
- __vue_module_identifier__$_,
84972
+ const __vue_component__$10 = /*#__PURE__*/normalizeComponent(
84973
+ { render: __vue_render__$V, staticRenderFns: __vue_staticRenderFns__$V },
84974
+ __vue_inject_styles__$10,
84975
+ __vue_script__$$,
84976
+ __vue_scope_id__$10,
84977
+ __vue_is_functional_template__$10,
84978
+ __vue_module_identifier__$10,
84407
84979
  false,
84408
84980
  undefined,
84409
84981
  undefined,
@@ -84421,7 +84993,7 @@ var __vue_staticRenderFns__$T = [];
84421
84993
  //
84422
84994
  //
84423
84995
  //
84424
- var script$_ = {
84996
+ var script$10 = {
84425
84997
  props: {
84426
84998
  label: {
84427
84999
  required: true,
@@ -84435,20 +85007,20 @@ var script$_ = {
84435
85007
  };
84436
85008
 
84437
85009
  /* script */
84438
- const __vue_script__$_ = script$_;
85010
+ const __vue_script__$10 = script$10;
84439
85011
 
84440
85012
  /* template */
84441
- var __vue_render__$U = 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)};
84442
- var __vue_staticRenderFns__$U = [];
85013
+ 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)};
85014
+ var __vue_staticRenderFns__$W = [];
84443
85015
 
84444
85016
  /* style */
84445
- const __vue_inject_styles__$$ = undefined;
85017
+ const __vue_inject_styles__$11 = undefined;
84446
85018
  /* scoped */
84447
- const __vue_scope_id__$$ = undefined;
85019
+ const __vue_scope_id__$11 = undefined;
84448
85020
  /* module identifier */
84449
- const __vue_module_identifier__$$ = undefined;
85021
+ const __vue_module_identifier__$11 = undefined;
84450
85022
  /* functional template */
84451
- const __vue_is_functional_template__$$ = false;
85023
+ const __vue_is_functional_template__$11 = false;
84452
85024
  /* style inject */
84453
85025
 
84454
85026
  /* style inject SSR */
@@ -84457,13 +85029,13 @@ var __vue_staticRenderFns__$U = [];
84457
85029
 
84458
85030
 
84459
85031
 
84460
- const __vue_component__$$ = /*#__PURE__*/normalizeComponent(
84461
- { render: __vue_render__$U, staticRenderFns: __vue_staticRenderFns__$U },
84462
- __vue_inject_styles__$$,
84463
- __vue_script__$_,
84464
- __vue_scope_id__$$,
84465
- __vue_is_functional_template__$$,
84466
- __vue_module_identifier__$$,
85032
+ const __vue_component__$11 = /*#__PURE__*/normalizeComponent(
85033
+ { render: __vue_render__$W, staticRenderFns: __vue_staticRenderFns__$W },
85034
+ __vue_inject_styles__$11,
85035
+ __vue_script__$10,
85036
+ __vue_scope_id__$11,
85037
+ __vue_is_functional_template__$11,
85038
+ __vue_module_identifier__$11,
84467
85039
  false,
84468
85040
  undefined,
84469
85041
  undefined,
@@ -84480,7 +85052,7 @@ var __vue_staticRenderFns__$U = [];
84480
85052
  //
84481
85053
  //
84482
85054
  //
84483
- var script$$ = {
85055
+ var script$11 = {
84484
85056
  props: {
84485
85057
  label: {
84486
85058
  required: true,
@@ -84494,20 +85066,20 @@ var script$$ = {
84494
85066
  };
84495
85067
 
84496
85068
  /* script */
84497
- const __vue_script__$$ = script$$;
85069
+ const __vue_script__$11 = script$11;
84498
85070
 
84499
85071
  /* template */
84500
- var __vue_render__$V = 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)};
84501
- var __vue_staticRenderFns__$V = [];
85072
+ 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)};
85073
+ var __vue_staticRenderFns__$X = [];
84502
85074
 
84503
85075
  /* style */
84504
- const __vue_inject_styles__$10 = undefined;
85076
+ const __vue_inject_styles__$12 = undefined;
84505
85077
  /* scoped */
84506
- const __vue_scope_id__$10 = undefined;
85078
+ const __vue_scope_id__$12 = undefined;
84507
85079
  /* module identifier */
84508
- const __vue_module_identifier__$10 = undefined;
85080
+ const __vue_module_identifier__$12 = undefined;
84509
85081
  /* functional template */
84510
- const __vue_is_functional_template__$10 = false;
85082
+ const __vue_is_functional_template__$12 = false;
84511
85083
  /* style inject */
84512
85084
 
84513
85085
  /* style inject SSR */
@@ -84516,13 +85088,13 @@ var __vue_staticRenderFns__$V = [];
84516
85088
 
84517
85089
 
84518
85090
 
84519
- const __vue_component__$10 = /*#__PURE__*/normalizeComponent(
84520
- { render: __vue_render__$V, staticRenderFns: __vue_staticRenderFns__$V },
84521
- __vue_inject_styles__$10,
84522
- __vue_script__$$,
84523
- __vue_scope_id__$10,
84524
- __vue_is_functional_template__$10,
84525
- __vue_module_identifier__$10,
85091
+ const __vue_component__$12 = /*#__PURE__*/normalizeComponent(
85092
+ { render: __vue_render__$X, staticRenderFns: __vue_staticRenderFns__$X },
85093
+ __vue_inject_styles__$12,
85094
+ __vue_script__$11,
85095
+ __vue_scope_id__$12,
85096
+ __vue_is_functional_template__$12,
85097
+ __vue_module_identifier__$12,
84526
85098
  false,
84527
85099
  undefined,
84528
85100
  undefined,
@@ -84541,7 +85113,7 @@ var __vue_staticRenderFns__$V = [];
84541
85113
  //
84542
85114
  //
84543
85115
  //
84544
- var script$10 = {
85116
+ var script$12 = {
84545
85117
  props: {
84546
85118
  label: {
84547
85119
  required: true,
@@ -84559,20 +85131,20 @@ var script$10 = {
84559
85131
  };
84560
85132
 
84561
85133
  /* script */
84562
- const __vue_script__$10 = script$10;
85134
+ const __vue_script__$12 = script$12;
84563
85135
 
84564
85136
  /* template */
84565
- 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-select',{attrs:{"value":_vm.value,"options":_vm.options},on:{"input":function($event){return _vm.$emit('update', $event)}}})],1)};
84566
- var __vue_staticRenderFns__$W = [];
85137
+ 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)};
85138
+ var __vue_staticRenderFns__$Y = [];
84567
85139
 
84568
85140
  /* style */
84569
- const __vue_inject_styles__$11 = undefined;
85141
+ const __vue_inject_styles__$13 = undefined;
84570
85142
  /* scoped */
84571
- const __vue_scope_id__$11 = undefined;
85143
+ const __vue_scope_id__$13 = undefined;
84572
85144
  /* module identifier */
84573
- const __vue_module_identifier__$11 = undefined;
85145
+ const __vue_module_identifier__$13 = undefined;
84574
85146
  /* functional template */
84575
- const __vue_is_functional_template__$11 = false;
85147
+ const __vue_is_functional_template__$13 = false;
84576
85148
  /* style inject */
84577
85149
 
84578
85150
  /* style inject SSR */
@@ -84581,13 +85153,13 @@ var __vue_staticRenderFns__$W = [];
84581
85153
 
84582
85154
 
84583
85155
 
84584
- const __vue_component__$11 = /*#__PURE__*/normalizeComponent(
84585
- { render: __vue_render__$W, staticRenderFns: __vue_staticRenderFns__$W },
84586
- __vue_inject_styles__$11,
84587
- __vue_script__$10,
84588
- __vue_scope_id__$11,
84589
- __vue_is_functional_template__$11,
84590
- __vue_module_identifier__$11,
85156
+ const __vue_component__$13 = /*#__PURE__*/normalizeComponent(
85157
+ { render: __vue_render__$Y, staticRenderFns: __vue_staticRenderFns__$Y },
85158
+ __vue_inject_styles__$13,
85159
+ __vue_script__$12,
85160
+ __vue_scope_id__$13,
85161
+ __vue_is_functional_template__$13,
85162
+ __vue_module_identifier__$13,
84591
85163
  false,
84592
85164
  undefined,
84593
85165
  undefined,
@@ -84609,16 +85181,16 @@ function generic(component, { handler, props }) {
84609
85181
  props }, handler);
84610
85182
  }
84611
85183
  function input(label, handler) {
84612
- return generic(__vue_component__$_, { handler, props: { label } });
85184
+ return generic(__vue_component__$10, { handler, props: { label } });
84613
85185
  }
84614
85186
  function textarea(label, handler) {
84615
- return generic(__vue_component__$$, { handler, props: { label } });
85187
+ return generic(__vue_component__$11, { handler, props: { label } });
84616
85188
  }
84617
85189
  function checkbox(label, handler) {
84618
- return generic(__vue_component__$10, { handler, props: { label } });
85190
+ return generic(__vue_component__$12, { handler, props: { label } });
84619
85191
  }
84620
85192
  function select(label, handler, options) {
84621
- return generic(__vue_component__$11, {
85193
+ return generic(__vue_component__$13, {
84622
85194
  handler,
84623
85195
  props: {
84624
85196
  label,
@@ -84637,7 +85209,7 @@ var controls = /*#__PURE__*/Object.freeze({
84637
85209
  });
84638
85210
 
84639
85211
  var index$2 = {
84640
- View: __vue_component__$Z,
85212
+ View: __vue_component__$$,
84641
85213
  controls,
84642
85214
  };
84643
85215
 
@@ -84654,10 +85226,10 @@ var index$3 = /*#__PURE__*/Object.freeze({
84654
85226
  CInputDateTime: __vue_component__$b,
84655
85227
  CInputPresort: __vue_component__$c,
84656
85228
  CInputCron: __vue_component__$d,
84657
- CRichTextInput: __vue_component__$m,
85229
+ CInputSearch: __vue_component__$e,
85230
+ CRichTextInput: __vue_component__$n,
84658
85231
  CLightbox: __vue_component__$5,
84659
- CPermissionsButton: __vue_component__$n,
84660
- CPermissionsForm: __vue_component__$r,
85232
+ CPermissionsButton: __vue_component__$o,
84661
85233
  CPermissionsModal: __vue_component__$s,
84662
85234
  CLoaderLogo: __vue_component__$E,
84663
85235
  CTopbar: __vue_component__$F,
@@ -84674,6 +85246,8 @@ var index$3 = /*#__PURE__*/Object.freeze({
84674
85246
  CReportMetric: __vue_component__$V,
84675
85247
  CReportTable: __vue_component__$W,
84676
85248
  CReportText: __vue_component__$X,
85249
+ CSensitivityLevelPicker: __vue_component__$Y,
85250
+ CResourceList: __vue_component__$Z,
84677
85251
  C3: index$2,
84678
85252
  CPrompts: __vue_component__$D,
84679
85253
  CPromptModal: __vue_component__$C,
@@ -84909,7 +85483,7 @@ function resumeState(api, { sessionID, stateID }, input) {
84909
85483
  }
84910
85484
  function cancelState(api, { sessionID, stateID }) {
84911
85485
  return __awaiter(this, void 0, void 0, function* () {
84912
- return api.sessionDeleteState({ sessionID, stateID });
85486
+ return api.sessionCancel({ sessionID, stateID });
84913
85487
  });
84914
85488
  }
84915
85489
  function onlyFresh(existing, fresh) {