@cortezaproject/corteza-vue 2022.3.2 → 2022.9.0-dev.1

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
@@ -71053,7 +71053,7 @@ var script$8 = {
71053
71053
  const __vue_script__$8 = script$8;
71054
71054
 
71055
71055
  /* template */
71056
- var __vue_render__$7 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"text-center"},[(!_vm.inConfirmation)?_c('span',[_c('b-button',{class:(_vm.buttonClass + " " + (_vm.borderless ? 'border-0' : '')),attrs:{"variant":_vm.variant,"size":_vm.size,"disabled":_vm.disabled},on:{"click":function($event){$event.preventDefault();return _vm.onPrompt.apply(null, arguments)}}},[_vm._t("default",function(){return [_c('font-awesome-icon',{attrs:{"icon":['far', 'trash-alt']}})]})],2)],1):_c('span',[_c('b-button',{staticClass:"mr-1",class:[ _vm.borderless && 'border-0' ],attrs:{"variant":_vm.variantOk,"size":_vm.sizeConfirm,"disabled":_vm.okDisabled},on:{"blur":function($event){$event.preventDefault();return _vm.onCancel()},"click":function($event){$event.preventDefault();return _vm.onConfirmation()}}},[_vm._t("yes",function(){return [_c('font-awesome-icon',{attrs:{"icon":['fas', 'check']}})]})],2),_vm._v(" "),_c('b-button',{class:[ _vm.borderless && 'border-0' ],attrs:{"variant":_vm.variantCancel,"size":_vm.sizeConfirm,"disabled":_vm.cancelDisabled},on:{"click":function($event){$event.preventDefault();return _vm.onCancel()}}},[_vm._t("no",function(){return [_c('font-awesome-icon',{attrs:{"icon":['fas', 'times']}})]})],2)],1)])};
71056
+ var __vue_render__$7 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"text-center"},[(!_vm.inConfirmation)?_c('span',[_c('b-button',{class:(_vm.buttonClass + " " + (_vm.borderless ? 'border-0' : '')),attrs:{"data-test-id":"button-delete","variant":_vm.variant,"size":_vm.size,"disabled":_vm.disabled},on:{"click":function($event){$event.preventDefault();return _vm.onPrompt.apply(null, arguments)}}},[_vm._t("default",function(){return [_c('font-awesome-icon',{attrs:{"icon":['far', 'trash-alt']}})]})],2)],1):_c('span',[_c('b-button',{staticClass:"mr-1",class:[ _vm.borderless && 'border-0' ],attrs:{"data-test-id":"button-delete-confirm","variant":_vm.variantOk,"size":_vm.sizeConfirm,"disabled":_vm.okDisabled},on:{"blur":function($event){$event.preventDefault();return _vm.onCancel()},"click":function($event){$event.preventDefault();return _vm.onConfirmation()}}},[_vm._t("yes",function(){return [_c('font-awesome-icon',{attrs:{"icon":['fas', 'check']}})]})],2),_vm._v(" "),_c('b-button',{class:[ _vm.borderless && 'border-0' ],attrs:{"data-test-id":"button-delete-cancel","variant":_vm.variantCancel,"size":_vm.sizeConfirm,"disabled":_vm.cancelDisabled},on:{"click":function($event){$event.preventDefault();return _vm.onCancel()}}},[_vm._t("no",function(){return [_c('font-awesome-icon',{attrs:{"icon":['fas', 'times']}})]})],2)],1)])};
71057
71057
  var __vue_staticRenderFns__$7 = [];
71058
71058
 
71059
71059
  /* style */
@@ -79276,17 +79276,17 @@ var script$m = {
79276
79276
  const __vue_script__$m = script$m;
79277
79277
 
79278
79278
  /* 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",on:{"click":_vm.onClick}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'lock']}})],1):_c('b-button',{attrs:{"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)};
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
79280
  var __vue_staticRenderFns__$j = [];
79281
79281
 
79282
79282
  /* style */
79283
79283
  const __vue_inject_styles__$n = function (inject) {
79284
79284
  if (!inject) return
79285
- inject("data-v-4c4b66ba_0", { source: ".pointer[data-v-4c4b66ba]{cursor:pointer}", map: undefined, media: undefined });
79285
+ inject("data-v-f7d1d1dc_0", { source: ".pointer[data-v-f7d1d1dc]{cursor:pointer}", map: undefined, media: undefined });
79286
79286
 
79287
79287
  };
79288
79288
  /* scoped */
79289
- const __vue_scope_id__$n = "data-v-4c4b66ba";
79289
+ const __vue_scope_id__$n = "data-v-f7d1d1dc";
79290
79290
  /* module identifier */
79291
79291
  const __vue_module_identifier__$n = undefined;
79292
79292
  /* functional template */
@@ -80926,15 +80926,35 @@ const definitions = {
80926
80926
  });
80927
80927
  },
80928
80928
  },
80929
+ refetchRecords: {
80930
+ handler: function () {
80931
+ // @ts-ignore
80932
+ this.$root.$emit('refetch-records');
80933
+ },
80934
+ },
80929
80935
  };
80930
80936
 
80931
80937
  //
80932
80938
  var script$A = {
80933
80939
  name: 'c-prompt-toast',
80940
+ props: {
80941
+ hideToasts: {
80942
+ type: Boolean
80943
+ }
80944
+ },
80934
80945
 
80935
80946
  data() {
80936
80947
  return {
80937
- passive: new Set()
80948
+ passive: new Set(),
80949
+
80950
+ /**
80951
+ * Set initial value to NULL
80952
+ *
80953
+ * First interval will detect that null is not true|false
80954
+ * and set it accordingly to the current state
80955
+ */
80956
+ hasFocus: null,
80957
+ hasFocusObserver: 0
80938
80958
  };
80939
80959
  },
80940
80960
 
@@ -80944,16 +80964,30 @@ var script$A = {
80944
80964
  isLoading: 'wfPrompts/isLoading'
80945
80965
  }),
80946
80966
 
80967
+ /**
80968
+ * Prompts with handlers, observed with "watch"
80969
+ *
80970
+ * Prompts are only returned when document has focus!
80971
+ *
80972
+ * @returns {*}
80973
+ */
80947
80974
  withHandlers() {
80948
- return this.prompts.filter(({
80975
+ return (this.hasFocus ? this.prompts : []).filter(({
80949
80976
  ref
80950
80977
  }) => !!definitions[ref] && !!definitions[ref].handler).map(prompt => ({ ...definitions[prompt.ref],
80951
80978
  prompt
80952
80979
  }));
80953
80980
  },
80954
80981
 
80982
+ /**
80983
+ * Prompts with components
80984
+ *
80985
+ * Prompts are only returned when document has focus!
80986
+ *
80987
+ * @returns {*}
80988
+ */
80955
80989
  withComponents() {
80956
- return this.prompts.filter(({
80990
+ return (this.hasFocus ? this.prompts : []).filter(({
80957
80991
  ref
80958
80992
  }) => !!definitions[ref] && !!definitions[ref].component).map(prompt => ({ ...definitions[prompt.ref],
80959
80993
  prompt
@@ -80976,7 +81010,7 @@ var script$A = {
80976
81010
  * passive (no feedback or input from user required) first and the rest later
80977
81011
  */
80978
81012
  toasts() {
80979
- return [...this.passive.values(), ...this.active];
81013
+ return this.hideToasts ? [] : [...this.passive.values(), ...this.active];
80980
81014
  },
80981
81015
 
80982
81016
  defaultTimeout() {
@@ -81008,11 +81042,11 @@ var script$A = {
81008
81042
  * We do this because we do not want it to be removed right away
81009
81043
  * but through a toast component's timeout
81010
81044
  */
81011
- prompts: {
81045
+ withComponents: {
81012
81046
  immediate: true,
81013
81047
 
81014
- handler() {
81015
- this.withComponents.forEach(p => {
81048
+ handler(wc) {
81049
+ wc.forEach(p => {
81016
81050
  if (p.passive) {
81017
81051
  this.passive.add(p);
81018
81052
  }
@@ -81037,9 +81071,38 @@ var script$A = {
81037
81071
 
81038
81072
  pVal(prompt, k, def = undefined) {
81039
81073
  return pVal(prompt.payload, k, def);
81074
+ },
81075
+
81076
+ clearDocumentFocusObserver() {
81077
+ if (this.hasFocusObserver) {
81078
+ window.clearInterval(this.hasFocusObserver);
81079
+ }
81080
+ },
81081
+
81082
+ /**
81083
+ * Interval check if window has focus
81084
+ */
81085
+ setDocumentFocusObserver() {
81086
+ this.clearDocumentFocusObserver();
81087
+ this.hasFocusObserver = window.setInterval(() => {
81088
+ const f = document.hasFocus();
81089
+
81090
+ if (this.hasFocus !== f) {
81091
+ this.hasFocus = f;
81092
+ }
81093
+ }, 250);
81040
81094
  }
81041
81095
 
81096
+ },
81097
+
81098
+ mounted() {
81099
+ this.setDocumentFocusObserver();
81100
+ },
81101
+
81102
+ beforeDestroy() {
81103
+ this.clearDocumentFocusObserver();
81042
81104
  }
81105
+
81043
81106
  };
81044
81107
 
81045
81108
  /* script */
@@ -81056,11 +81119,11 @@ var __vue_staticRenderFns__$w = [];
81056
81119
  /* style */
81057
81120
  const __vue_inject_styles__$B = function (inject) {
81058
81121
  if (!inject) return
81059
- inject("data-v-6aed55b2_0", { source: ".slide-enter-active[data-v-6aed55b2]{transition:all .3s ease}.slide-leave-active[data-v-6aed55b2]{transition:all .8s cubic-bezier(1,.5,.8,1)}.slide-enter[data-v-6aed55b2],.slide-leave-to[data-v-6aed55b2]{transform:translateX(10px);opacity:0}", map: undefined, media: undefined });
81122
+ inject("data-v-7c0c67b4_0", { source: ".slide-enter-active[data-v-7c0c67b4]{transition:all .3s ease}.slide-leave-active[data-v-7c0c67b4]{transition:all .8s cubic-bezier(1,.5,.8,1)}.slide-enter[data-v-7c0c67b4],.slide-leave-to[data-v-7c0c67b4]{transform:translateX(10px);opacity:0}", map: undefined, media: undefined });
81060
81123
 
81061
81124
  };
81062
81125
  /* scoped */
81063
- const __vue_scope_id__$B = "data-v-6aed55b2";
81126
+ const __vue_scope_id__$B = "data-v-7c0c67b4";
81064
81127
  /* module identifier */
81065
81128
  const __vue_module_identifier__$B = undefined;
81066
81129
  /* functional template */
@@ -81204,6 +81267,11 @@ var script$C = {
81204
81267
  components: {
81205
81268
  CPromptToast: __vue_component__$B,
81206
81269
  CPromptModal: __vue_component__$C
81270
+ },
81271
+ props: {
81272
+ hideToasts: {
81273
+ type: Boolean
81274
+ }
81207
81275
  }
81208
81276
  };
81209
81277
 
@@ -81211,7 +81279,7 @@ var script$C = {
81211
81279
  const __vue_script__$C = script$C;
81212
81280
 
81213
81281
  /* template */
81214
- var __vue_render__$y = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('c-prompt-toast'),_vm._v(" "),_c('c-prompt-modal')],1)};
81282
+ var __vue_render__$y = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('c-prompt-toast',{attrs:{"hide-toasts":_vm.hideToasts}}),_vm._v(" "),_c('c-prompt-modal')],1)};
81215
81283
  var __vue_staticRenderFns__$y = [];
81216
81284
 
81217
81285
  /* style */
@@ -81253,14 +81321,16 @@ const variants = [
81253
81321
  { value: 'light', text: 'Light' },
81254
81322
  { value: 'dark', text: 'Dark' },
81255
81323
  ];
81256
- const prompts = Object.freeze([{
81324
+ const prompts = Object.freeze([
81325
+ {
81257
81326
  ref: 'redirect',
81258
81327
  meta: { short: 'Redirect user to an outside URL' },
81259
81328
  parameters: [
81260
81329
  { name: 'url', types: ['String'], required: true },
81261
81330
  { name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
81262
81331
  ],
81263
- }, {
81332
+ },
81333
+ {
81264
81334
  ref: 'reroute',
81265
81335
  meta: { short: 'Redirect user to an internal application route' },
81266
81336
  parameters: [
@@ -81269,9 +81339,13 @@ const prompts = Object.freeze([{
81269
81339
  { name: 'query', types: ['KV'] },
81270
81340
  { name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
81271
81341
  ],
81272
- }, {
81342
+ },
81343
+ {
81273
81344
  ref: 'recordPage',
81274
- meta: { short: 'Redirect user to the record page' },
81345
+ meta: {
81346
+ short: 'Redirect user to the record page',
81347
+ webapps: ['compose'],
81348
+ },
81275
81349
  parameters: [
81276
81350
  { name: 'module', types: ['ID', 'Handle', 'ComposeModule'] },
81277
81351
  { name: 'namespace', types: ['ID', 'Handle', 'ComposeNamespace'] },
@@ -81279,7 +81353,12 @@ const prompts = Object.freeze([{
81279
81353
  { name: 'edit', types: ['Boolean'] },
81280
81354
  { name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
81281
81355
  ],
81282
- }, {
81356
+ },
81357
+ {
81358
+ ref: 'refetchRecords',
81359
+ meta: { short: 'Refreshes all record values on the page' },
81360
+ },
81361
+ {
81283
81362
  ref: 'notification',
81284
81363
  meta: { short: 'Show non-blocking message to user' },
81285
81364
  parameters: [
@@ -81288,7 +81367,8 @@ const prompts = Object.freeze([{
81288
81367
  { name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
81289
81368
  { name: 'timeout', types: ['Integer'], meta: { description: 'How long do we show the notification in seconds' } },
81290
81369
  ],
81291
- }, {
81370
+ },
81371
+ {
81292
81372
  ref: 'alert',
81293
81373
  meta: { short: 'Prompt user with an alert' },
81294
81374
  parameters: [
@@ -81298,7 +81378,8 @@ const prompts = Object.freeze([{
81298
81378
  { name: 'buttonVariant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
81299
81379
  { name: 'buttonValue', types: ['Any'] },
81300
81380
  ],
81301
- }, {
81381
+ },
81382
+ {
81302
81383
  ref: 'choice',
81303
81384
  meta: { short: 'Prompt user with choice' },
81304
81385
  parameters: [
@@ -81314,7 +81395,8 @@ const prompts = Object.freeze([{
81314
81395
  results: [
81315
81396
  { name: 'value', types: ['Any'] },
81316
81397
  ],
81317
- }, {
81398
+ },
81399
+ {
81318
81400
  ref: 'composeRecordPicker',
81319
81401
  meta: { short: 'Prompt user to select a Compose Record' },
81320
81402
  parameters: [
@@ -81329,7 +81411,8 @@ const prompts = Object.freeze([{
81329
81411
  results: [
81330
81412
  { name: 'value', types: ['ComposeRecord'] },
81331
81413
  ],
81332
- }, {
81414
+ },
81415
+ {
81333
81416
  ref: 'input',
81334
81417
  meta: { short: 'Prompt user with a single input' },
81335
81418
  parameters: [
@@ -81359,7 +81442,8 @@ const prompts = Object.freeze([{
81359
81442
  results: [
81360
81443
  { name: 'value', types: ['Any'] },
81361
81444
  ],
81362
- }, {
81445
+ },
81446
+ {
81363
81447
  ref: 'options',
81364
81448
  meta: { short: 'Prompt user with options' },
81365
81449
  parameters: [
@@ -81386,7 +81470,8 @@ const prompts = Object.freeze([{
81386
81470
  results: [
81387
81471
  { name: 'value', types: ['Any'] },
81388
81472
  ],
81389
- }].map(f => new automation.Function(Object.assign(Object.assign({}, f), { kind: 'prompt' }))));
81473
+ },
81474
+ ].map(f => new automation.Function(Object.assign(Object.assign({}, f), { kind: 'prompt' }))));
81390
81475
 
81391
81476
  //
81392
81477
  //
@@ -81622,6 +81707,14 @@ var __vue_staticRenderFns__$z = [];
81622
81707
  //
81623
81708
  //
81624
81709
  //
81710
+ //
81711
+ //
81712
+ //
81713
+ //
81714
+ //
81715
+ //
81716
+ //
81717
+ //
81625
81718
  var script$E = {
81626
81719
  props: {
81627
81720
  sidebarPinned: {
@@ -81704,17 +81797,17 @@ const __vue_script__$E = script$E;
81704
81797
  /* template */
81705
81798
  var __vue_render__$A = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"header-navigation d-flex align-items-center justify-content-between sticky-top pr-3 pl-5 "},[_c('div',{staticClass:"d-flex text-nowrap flex-grow-1 align-items-center header h-100 w-100"},[[_c('div',{staticClass:"spacer",class:{
81706
81799
  'expanded': _vm.sidebarPinned,
81707
- }})],_vm._v(" "),_c('div',{staticClass:"d-flex align-items-center ml-2 text-truncate mr-auto h-100"},[_c('h2',{staticClass:"d-none d-sm-block mb-0"},[_vm._t("title")],2)]),_vm._v(" "),_c('div',{staticClass:"ml-3"},[_vm._t("tools")],2),_vm._v(" "),(!_vm.hideAppSelector && !_vm.settings.hideAppSelector)?_c('b-button',{staticClass:"d-flex align-items-center justify-content-center text-dark border-0 nav-icon rounded-circle ml-2",attrs:{"variant":"outline-light","href":_vm.appSelectorURL,"size":"lg"}},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['fas', 'grip-horizontal']}})],1):_vm._e(),_vm._v(" "),(!_vm.settings.hideHelp)?_c('b-dropdown',{staticClass:"nav-icon mx-1",attrs:{"size":"lg","variant":"outline-light","toggle-class":"text-decoration-none text-dark rounded-circle border-0 w-100","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark font-weight-bold mt-2","right":"","no-caret":""},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'question-circle']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n Help\n ")])],1)]},proxy:true}],null,false,3609523728)},[_vm._v(" "),_c('div',[_vm._t("help-dropdown")],2),_vm._v(" "),_vm._l((_vm.helpLinks),function(helpLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":helpLink.url,"target":helpLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(helpLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideForumLink)?_c('b-dropdown-item',{attrs:{"href":"https://forum.cortezaproject.org/","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideDocumentationLink)?_c('b-dropdown-item',{attrs:{"href":_vm.documentationURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpDocumentation)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideFeedbackLink)?_c('b-dropdown-item',{attrs:{"href":"mailto:info@crust.tech","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpFeedback)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.onlyVersion)?_c('b-dropdown-divider'):_vm._e(),_vm._v(" "),_c('b-dropdown-item',{staticClass:"small",attrs:{"disabled":""}},[_vm._v("\n "+_vm._s(_vm.labels.helpVersion)+"\n "),_c('br'),_vm._v("\n "+_vm._s(_vm.frontendVersion)+"\n ")])],2):_vm._e(),_vm._v(" "),(!_vm.settings.hideProfile)?_c('b-dropdown',{staticClass:"nav-user-icon",attrs:{"data-v-onboarding":"profile","size":"lg","variant":"outline-light","toggle-class":"nav-icon text-decoration-none text-dark rounded-circle border","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark font-weight-bold mt-2","right":"","no-caret":""},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'user']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,2199786693)},[_vm._v(" "),_c('b-dropdown-text',{staticClass:"text-muted mb-2"},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLoggedInAs)+"\n ")]),_vm._v(" "),_c('div',[_vm._t("avatar-dropdown")],2),_vm._v(" "),_vm._l((_vm.profileLinks),function(profileLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":profileLink.url,"target":profileLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(profileLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideProfileLink)?_c('b-dropdown-item',{attrs:{"href":_vm.userProfileURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsProfile)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideChangePasswordLink)?_c('b-dropdown-item',{attrs:{"href":_vm.changePasswordURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsChangePassword)+"\n ")]):_vm._e(),_vm._v(" "),_c('b-dropdown-divider'),_vm._v(" "),_c('b-dropdown-item',{staticClass:"mt-2",attrs:{"href":""},on:{"click":function($event){return _vm.$auth.logout()}}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLogout)+"\n ")])],2):_vm._e()],2)])};
81800
+ }})],_vm._v(" "),_c('div',{staticClass:"d-flex align-items-center ml-2 text-truncate mr-auto h-100"},[_c('h2',{staticClass:"d-none d-sm-block mb-0"},[_vm._t("title")],2)]),_vm._v(" "),_c('div',{staticClass:"ml-3"},[_vm._t("tools")],2),_vm._v(" "),(!_vm.hideAppSelector && !_vm.settings.hideAppSelector)?_c('b-button',{staticClass:"d-flex align-items-center justify-content-center text-dark border-0 nav-icon rounded-circle ml-2",attrs:{"variant":"outline-light","href":_vm.appSelectorURL,"size":"lg"}},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['fas', 'grip-horizontal']}})],1):_vm._e(),_vm._v(" "),(!_vm.settings.hideHelp)?_c('b-dropdown',{staticClass:"nav-icon mx-1",attrs:{"data-test-id":"dropdown-helper","size":"lg","variant":"outline-light","toggle-class":"text-decoration-none text-dark rounded-circle border-0 w-100","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark font-weight-bold mt-2","right":"","no-caret":""},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'question-circle']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,1129756517)},[_vm._v(" "),_c('div',[_vm._t("help-dropdown")],2),_vm._v(" "),_vm._l((_vm.helpLinks),function(helpLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":helpLink.url,"target":helpLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(helpLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideForumLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-forum","href":"https://forum.cortezaproject.org/","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideDocumentationLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-docs","href":_vm.documentationURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpDocumentation)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideFeedbackLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-feedback","href":"mailto:info@crust.tech","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpFeedback)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.onlyVersion)?_c('b-dropdown-divider'):_vm._e(),_vm._v(" "),_c('b-dropdown-item',{staticClass:"small",attrs:{"disabled":""}},[_vm._v("\n "+_vm._s(_vm.labels.helpVersion)+"\n "),_c('br'),_vm._v("\n "+_vm._s(_vm.frontendVersion)+"\n ")])],2):_vm._e(),_vm._v(" "),(!_vm.settings.hideProfile)?_c('b-dropdown',{staticClass:"nav-user-icon",attrs:{"data-test-id":"dropdown-profile","data-v-onboarding":"profile","size":"lg","variant":"outline-light","toggle-class":"nav-icon text-decoration-none text-dark rounded-circle border","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark font-weight-bold mt-2","right":"","no-caret":""},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'user']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,2199786693)},[_vm._v(" "),_c('b-dropdown-text',{staticClass:"text-muted mb-2"},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLoggedInAs)+"\n ")]),_vm._v(" "),_c('div',[_vm._t("avatar-dropdown")],2),_vm._v(" "),_vm._l((_vm.profileLinks),function(profileLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":profileLink.url,"target":profileLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(profileLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideProfileLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-user","href":_vm.userProfileURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsProfile)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideChangePasswordLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-change-password","href":_vm.changePasswordURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsChangePassword)+"\n ")]):_vm._e(),_vm._v(" "),_c('b-dropdown-divider'),_vm._v(" "),_c('b-dropdown-item',{staticClass:"mt-2",attrs:{"data-test-id":"dropdown-profile-logout","href":""},on:{"click":function($event){return _vm.$auth.logout()}}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLogout)+"\n ")])],2):_vm._e()],2)])};
81708
81801
  var __vue_staticRenderFns__$A = [];
81709
81802
 
81710
81803
  /* style */
81711
81804
  const __vue_inject_styles__$F = function (inject) {
81712
81805
  if (!inject) return
81713
- inject("data-v-39d2e772_0", { source: ".icon-logo[data-v-39d2e772]{height:calc(64px / 2);background-repeat:no-repeat;background-position:center}.nav-icon[data-v-39d2e772]{width:40px;height:40px}.nav-user-icon[data-v-39d2e772]{width:50px;height:50px}.header-navigation[data-v-39d2e772]{width:100vw;height:64px;background-color:#f3f3f5!important}.header-navigation h2[data-v-39d2e772]{padding-left:calc(.5rem + 2px)}.topbar-dropdown-menu[data-v-39d2e772]{max-height:80vh;overflow-y:auto}.spacer[data-v-39d2e772]{min-width:0;-webkit-transition:min-width .15s ease-in-out;-moz-transition:min-width .15s ease-in-out;-o-transition:min-width .15s ease-in-out;transition:min-width .15s ease-in-out}.spacer.expanded[data-v-39d2e772]{min-width:calc(320px - 42px);-webkit-transition:min-width .2s ease-in-out;-moz-transition:min-width .2s ease-in-out;-o-transition:min-width .2s ease-in-out;transition:min-width .2s ease-in-out}", map: undefined, media: undefined });
81806
+ inject("data-v-2ccaa89e_0", { source: ".icon-logo[data-v-2ccaa89e]{height:calc(64px / 2);background-repeat:no-repeat;background-position:center}.nav-icon[data-v-2ccaa89e]{width:40px;height:40px}.nav-user-icon[data-v-2ccaa89e]{width:50px;height:50px}.header-navigation[data-v-2ccaa89e]{width:100vw;height:64px;background-color:#f3f3f5!important}.header-navigation h2[data-v-2ccaa89e]{padding-left:calc(.5rem + 2px)}.topbar-dropdown-menu[data-v-2ccaa89e]{max-height:80vh;overflow-y:auto}.spacer[data-v-2ccaa89e]{min-width:0;-webkit-transition:min-width .15s ease-in-out;-moz-transition:min-width .15s ease-in-out;-o-transition:min-width .15s ease-in-out;transition:min-width .15s ease-in-out}.spacer.expanded[data-v-2ccaa89e]{min-width:calc(320px - 42px);-webkit-transition:min-width .2s ease-in-out;-moz-transition:min-width .2s ease-in-out;-o-transition:min-width .2s ease-in-out;transition:min-width .2s ease-in-out}", map: undefined, media: undefined });
81714
81807
 
81715
81808
  };
81716
81809
  /* scoped */
81717
- const __vue_scope_id__$F = "data-v-39d2e772";
81810
+ const __vue_scope_id__$F = "data-v-2ccaa89e";
81718
81811
  /* module identifier */
81719
81812
  const __vue_module_identifier__$F = undefined;
81720
81813
  /* functional template */
@@ -82348,6 +82441,11 @@ var __vue_staticRenderFns__$C = [];
82348
82441
  //
82349
82442
  //
82350
82443
  //
82444
+ //
82445
+ //
82446
+ //
82447
+ //
82448
+ //
82351
82449
  var script$H = {
82352
82450
  name: 'TourComponent',
82353
82451
  i18nOptions: {
@@ -82409,13 +82507,13 @@ var script$H = {
82409
82507
  const __vue_script__$H = script$H;
82410
82508
 
82411
82509
  /* template */
82412
- var __vue_render__$D = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.tour !== null)?_c('v-tour',{attrs:{"name":_vm.tour.name,"steps":_vm.tour.steps,"options":_vm.tour,"callbacks":this.callbacks},on:{"onStop":_vm.onStop},scopedSlots:_vm._u([{key:"default",fn:function(tour){return [_c('transition',{attrs:{"name":"fade"}},[_vm._l((tour.steps),function(step,index){return [(tour.currentStep === index)?_c('v-step',{key:index,staticClass:"shadow p-3 text-light text-center",attrs:{"step":step,"previous-step":tour.previousStep,"next-step":tour.nextStep,"stop":tour.stop,"is-first":tour.isFirst,"is-last":tour.isLast,"labels":tour.labels},on:{"onStop":_vm.onStop}},[_c('div',{attrs:{"slot":"header"},slot:"header"},[((step.header || {}).title)?_c('h5',{domProps:{"innerHTML":_vm._s(_vm.$t(step.header.title))}}):_vm._e()]),_vm._v(" "),_c('div',{attrs:{"slot":"content"},slot:"content"},[_c('div',{staticClass:"p-1 mb-2"},[_c('div',{domProps:{"innerHTML":_vm._s(_vm.$t(step.content))}})])]),_vm._v(" "),_c('div',{attrs:{"slot":"actions"},slot:"actions"},[_c('b-button',{attrs:{"variant":"primary"},on:{"click":_vm.onStop}},[(tour.isLast && !(_vm.callbacks || {}).onNextRedirect)?[_vm._v("\n "+_vm._s(_vm.$t('buttons.end'))+"\n ")]:[_vm._v("\n "+_vm._s(_vm.$t('buttons.skip'))+"\n ")]],2),_vm._v(" "),(tour.isFirst && (_vm.callbacks || {}).onPrevRedirect)?_c('b-button',{attrs:{"variant":"primary","href":_vm.callbacks.onPrevRedirect}},[_vm._v("\n "+_vm._s(_vm.$t('buttons.previous'))+"\n ")]):(!tour.isFirst)?_c('b-button',{attrs:{"variant":"primary"},on:{"click":tour.previousStep}},[_vm._v("\n "+_vm._s(_vm.$t('buttons.previous'))+"\n ")]):_vm._e(),_vm._v(" "),(tour.isLast && (_vm.callbacks || {}).onNextRedirect)?_c('b-button',{attrs:{"variant":"primary","href":_vm.callbacks.onNextRedirect}},[_vm._v("\n "+_vm._s(_vm.$t('buttons.next'))+"\n ")]):(!tour.isLast)?_c('b-button',{attrs:{"variant":"primary"},on:{"click":tour.nextStep}},[_vm._v("\n "+_vm._s(_vm.$t('buttons.next'))+"\n ")]):_vm._e()],1)]):_vm._e()]})],2)]}}],null,false,1119462003)}):_vm._e()};
82510
+ var __vue_render__$D = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.tour !== null)?_c('v-tour',{attrs:{"name":_vm.tour.name,"steps":_vm.tour.steps,"options":_vm.tour,"callbacks":this.callbacks},on:{"onStop":_vm.onStop},scopedSlots:_vm._u([{key:"default",fn:function(tour){return [_c('transition',{attrs:{"name":"fade"}},[_vm._l((tour.steps),function(step,index){return [(tour.currentStep === index)?_c('v-step',{key:index,staticClass:"shadow p-3 text-light text-center",attrs:{"step":step,"previous-step":tour.previousStep,"next-step":tour.nextStep,"stop":tour.stop,"is-first":tour.isFirst,"is-last":tour.isLast,"labels":tour.labels},on:{"onStop":_vm.onStop}},[_c('div',{attrs:{"slot":"header"},slot:"header"},[((step.header || {}).title)?_c('h5',{domProps:{"innerHTML":_vm._s(_vm.$t(step.header.title))}}):_vm._e()]),_vm._v(" "),_c('div',{attrs:{"slot":"content"},slot:"content"},[_c('div',{staticClass:"p-1 mb-2"},[_c('div',{domProps:{"innerHTML":_vm._s(_vm.$t(step.content))}})])]),_vm._v(" "),_c('div',{attrs:{"slot":"actions"},slot:"actions"},[_c('b-button',{attrs:{"data-test-id":"button-stop-tour","variant":"primary"},on:{"click":_vm.onStop}},[(tour.isLast && !(_vm.callbacks || {}).onNextRedirect)?[_vm._v("\n "+_vm._s(_vm.$t('buttons.end'))+"\n ")]:[_vm._v("\n "+_vm._s(_vm.$t('buttons.skip'))+"\n ")]],2),_vm._v(" "),(tour.isFirst && (_vm.callbacks || {}).onPrevRedirect)?_c('b-button',{attrs:{"data-test-id":"button-previous","variant":"primary","href":_vm.callbacks.onPrevRedirect}},[_vm._v("\n "+_vm._s(_vm.$t('buttons.previous'))+"\n ")]):(!tour.isFirst)?_c('b-button',{attrs:{"data-test-id":"button-previous","variant":"primary"},on:{"click":tour.previousStep}},[_vm._v("\n "+_vm._s(_vm.$t('buttons.previous'))+"\n ")]):_vm._e(),_vm._v(" "),(tour.isLast && (_vm.callbacks || {}).onNextRedirect)?_c('b-button',{attrs:{"data-test-id":"button-next","variant":"primary","href":_vm.callbacks.onNextRedirect}},[_vm._v("\n "+_vm._s(_vm.$t('buttons.next'))+"\n ")]):(!tour.isLast)?_c('b-button',{attrs:{"data-test-id":"button-next","variant":"primary"},on:{"click":tour.nextStep}},[_vm._v("\n "+_vm._s(_vm.$t('buttons.next'))+"\n ")]):_vm._e()],1)]):_vm._e()]})],2)]}}],null,false,68057884)}):_vm._e()};
82413
82511
  var __vue_staticRenderFns__$D = [];
82414
82512
 
82415
82513
  /* style */
82416
82514
  const __vue_inject_styles__$I = function (inject) {
82417
82515
  if (!inject) return
82418
- inject("data-v-4e66e646_0", { source: ".v-step{background:#5c5c5c;max-width:320px;z-index:10000;border-radius:1.1rem}.v-step--sticky{position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.v-step--sticky .v-step__arrow{display:none}.v-step__arrow,.v-step__arrow:before{position:absolute;width:10px;height:10px;background:inherit}.v-step__arrow{visibility:hidden}.v-step__arrow--dark:before{background:#5c5c5c}.v-step__arrow:before{visibility:visible;content:\"\";-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:-5px}.v-step[data-popper-placement^=top]>.v-step__arrow{bottom:-5px}.v-step[data-popper-placement^=bottom]>.v-step__arrow{top:-5px}.v-step[data-popper-placement^=right]>.v-step__arrow{left:-5px}.v-step[data-popper-placement^=left]>.v-step__arrow{right:-5px}", map: undefined, media: undefined });
82516
+ inject("data-v-10ecc0de_0", { source: ".v-step{background:#5c5c5c;max-width:320px;z-index:10000;border-radius:1.1rem}.v-step--sticky{position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.v-step--sticky .v-step__arrow{display:none}.v-step__arrow,.v-step__arrow:before{position:absolute;width:10px;height:10px;background:inherit}.v-step__arrow{visibility:hidden}.v-step__arrow--dark:before{background:#5c5c5c}.v-step__arrow:before{visibility:visible;content:\"\";-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:-5px}.v-step[data-popper-placement^=top]>.v-step__arrow{bottom:-5px}.v-step[data-popper-placement^=bottom]>.v-step__arrow{top:-5px}.v-step[data-popper-placement^=right]>.v-step__arrow{left:-5px}.v-step[data-popper-placement^=left]>.v-step__arrow{right:-5px}", map: undefined, media: undefined });
82419
82517
 
82420
82518
  };
82421
82519
  /* scoped */
@@ -83718,15 +83816,12 @@ var script$V = {
83718
83816
  // tabelifyFrame returns a set of rows and columns that should be shown
83719
83817
  // for this frame.
83720
83818
  //
83721
- // maxSize is used to calculate the rowSpan that should be applied to joined
83722
- // frames with fewer rows then the other.
83723
- //
83724
83819
  // Flow outline:
83725
83820
  // * for each row of the frame:
83726
83821
  // ** find all foreign frames
83727
83822
  // ** tabelify foreign frames
83728
83823
  // ** merge with the current tabelified result
83729
- tabelifyFrame(frame, maxSize = 1) {
83824
+ tabelifyFrame(frame) {
83730
83825
  const outRows = [];
83731
83826
  const isLocal = frame.ref === this.localDataframe.ref; // Index selected columns
83732
83827
 
@@ -83757,7 +83852,7 @@ var script$V = {
83757
83852
  const usedKeys = this.keyColumns(frame);
83758
83853
 
83759
83854
  for (const r of frame.rows || []) {
83760
- maxSize = 1;
83855
+ let maxSize = 1;
83761
83856
  const row = this.tabelifyRow(r, [...selectedCols]);
83762
83857
  const auxRows = [];
83763
83858
 
@@ -83773,7 +83868,7 @@ var script$V = {
83773
83868
  // const refColumnIndexes = (this.options.columns[rf.ref] || []).map(({ name }) => {
83774
83869
  // return frame.columns.findIndex(fc => fc.name === name)
83775
83870
  // })
83776
- const aux = this.tabelifyFrame(rf, Math.max(rf.rows.length, maxSize)); // Optionally append header
83871
+ const aux = this.tabelifyFrame(rf, Math.max(rf.rows.length)); // Optionally append header
83777
83872
 
83778
83873
  if (!hSeanFrames[rf.ref]) {
83779
83874
  const x = [...aux.header];
@@ -83988,11 +84083,11 @@ var __vue_staticRenderFns__$P = [];
83988
84083
  /* style */
83989
84084
  const __vue_inject_styles__$W = function (inject) {
83990
84085
  if (!inject) return
83991
- inject("data-v-b515bfce_0", { source: ".foreign[data-v-b515bfce]{border:1px solid rgba(22,36,37,.8);border-top:0;border-bottom:0}.separator[data-v-b515bfce]{border-top:2px solid rgba(22,36,37,.5)}.card-rounded[data-v-b515bfce]{border-radius:1rem 1rem 0 0}", map: undefined, media: undefined });
84086
+ inject("data-v-54580af2_0", { source: ".foreign[data-v-54580af2]{border:1px solid rgba(22,36,37,.8);border-top:0;border-bottom:0}.separator[data-v-54580af2]{border-top:2px solid rgba(22,36,37,.5)}.card-rounded[data-v-54580af2]{border-radius:1rem 1rem 0 0}", map: undefined, media: undefined });
83992
84087
 
83993
84088
  };
83994
84089
  /* scoped */
83995
- const __vue_scope_id__$W = "data-v-b515bfce";
84090
+ const __vue_scope_id__$W = "data-v-54580af2";
83996
84091
  /* module identifier */
83997
84092
  const __vue_module_identifier__$W = undefined;
83998
84093
  /* functional template */
@@ -84839,7 +84934,7 @@ function onlyFresh(existing, fresh) {
84839
84934
  const index = existing.map(({ stateID }) => stateID);
84840
84935
  return fresh.filter(({ stateID = undefined }) => stateID && !index.includes(stateID));
84841
84936
  }
84842
- function index$6 ({ api }) {
84937
+ function index$6 ({ api, webapp }) {
84843
84938
  return {
84844
84939
  strict: true,
84845
84940
  state: {
@@ -84877,10 +84972,6 @@ function index$6 ({ api }) {
84877
84972
  commit('active', false);
84878
84973
  });
84879
84974
  },
84880
- // unwatch ({ state, commit }: ActionContext<State, State>): void {
84881
- // commit('watching', undefined)
84882
- // clearInterval(state.wiptr)
84883
- // },
84884
84975
  // fetch calls automation API endpoint and collects all states
84885
84976
  update({ commit, state }) {
84886
84977
  return __awaiter(this, void 0, void 0, function* () {
@@ -84908,6 +84999,7 @@ function index$6 ({ api }) {
84908
84999
  commit('loading');
84909
85000
  return resumeState(api, prompt, input)
84910
85001
  .then(() => commit('remove', prompt))
85002
+ .catch(() => commit('remove', prompt))
84911
85003
  .finally(() => commit('loading', false));
84912
85004
  });
84913
85005
  },
@@ -84934,9 +85026,6 @@ function index$6 ({ api }) {
84934
85026
  loading(state, flag = true) {
84935
85027
  state.loading = flag;
84936
85028
  },
84937
- // watching (state: State, ptr?: number): void {
84938
- // state.wiptr = ptr
84939
- // },
84940
85029
  active(state, m) {
84941
85030
  state.active = m;
84942
85031
  },
@@ -84944,7 +85033,12 @@ function index$6 ({ api }) {
84944
85033
  state.prompts = [];
84945
85034
  },
84946
85035
  update(state, pp) {
84947
- state.prompts.push(...pp);
85036
+ // // Check if prompt should be run only in certain webapps
85037
+ state.prompts.push(...pp.filter(({ ref }) => {
85038
+ return prompts.some(p => {
85039
+ return p.ref === ref && (!p.meta.webapps || p.meta.webapps.includes(webapp));
85040
+ });
85041
+ }));
84948
85042
  },
84949
85043
  remove(state, prompt) {
84950
85044
  state.prompts = state.prompts.filter(({ stateID }) => stateID !== prompt.stateID);