@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 +141 -47
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +141 -47
- package/dist/index.js.map +1 -1
- package/dist/libs/websocket.d.ts +1 -1
- package/dist/store/wf-prompts/index.d.ts +3 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -71060,7 +71060,7 @@ var script$8 = {
|
|
|
71060
71060
|
const __vue_script__$8 = script$8;
|
|
71061
71061
|
|
|
71062
71062
|
/* template */
|
|
71063
|
-
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)])};
|
|
71063
|
+
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)])};
|
|
71064
71064
|
var __vue_staticRenderFns__$7 = [];
|
|
71065
71065
|
|
|
71066
71066
|
/* style */
|
|
@@ -79283,17 +79283,17 @@ var script$m = {
|
|
|
79283
79283
|
const __vue_script__$m = script$m;
|
|
79284
79284
|
|
|
79285
79285
|
/* template */
|
|
79286
|
-
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)};
|
|
79286
|
+
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)};
|
|
79287
79287
|
var __vue_staticRenderFns__$j = [];
|
|
79288
79288
|
|
|
79289
79289
|
/* style */
|
|
79290
79290
|
const __vue_inject_styles__$n = function (inject) {
|
|
79291
79291
|
if (!inject) return
|
|
79292
|
-
inject("data-v-
|
|
79292
|
+
inject("data-v-f7d1d1dc_0", { source: ".pointer[data-v-f7d1d1dc]{cursor:pointer}", map: undefined, media: undefined });
|
|
79293
79293
|
|
|
79294
79294
|
};
|
|
79295
79295
|
/* scoped */
|
|
79296
|
-
const __vue_scope_id__$n = "data-v-
|
|
79296
|
+
const __vue_scope_id__$n = "data-v-f7d1d1dc";
|
|
79297
79297
|
/* module identifier */
|
|
79298
79298
|
const __vue_module_identifier__$n = undefined;
|
|
79299
79299
|
/* functional template */
|
|
@@ -80933,15 +80933,35 @@ const definitions = {
|
|
|
80933
80933
|
});
|
|
80934
80934
|
},
|
|
80935
80935
|
},
|
|
80936
|
+
refetchRecords: {
|
|
80937
|
+
handler: function () {
|
|
80938
|
+
// @ts-ignore
|
|
80939
|
+
this.$root.$emit('refetch-records');
|
|
80940
|
+
},
|
|
80941
|
+
},
|
|
80936
80942
|
};
|
|
80937
80943
|
|
|
80938
80944
|
//
|
|
80939
80945
|
var script$A = {
|
|
80940
80946
|
name: 'c-prompt-toast',
|
|
80947
|
+
props: {
|
|
80948
|
+
hideToasts: {
|
|
80949
|
+
type: Boolean
|
|
80950
|
+
}
|
|
80951
|
+
},
|
|
80941
80952
|
|
|
80942
80953
|
data() {
|
|
80943
80954
|
return {
|
|
80944
|
-
passive: new Set()
|
|
80955
|
+
passive: new Set(),
|
|
80956
|
+
|
|
80957
|
+
/**
|
|
80958
|
+
* Set initial value to NULL
|
|
80959
|
+
*
|
|
80960
|
+
* First interval will detect that null is not true|false
|
|
80961
|
+
* and set it accordingly to the current state
|
|
80962
|
+
*/
|
|
80963
|
+
hasFocus: null,
|
|
80964
|
+
hasFocusObserver: 0
|
|
80945
80965
|
};
|
|
80946
80966
|
},
|
|
80947
80967
|
|
|
@@ -80951,16 +80971,30 @@ var script$A = {
|
|
|
80951
80971
|
isLoading: 'wfPrompts/isLoading'
|
|
80952
80972
|
}),
|
|
80953
80973
|
|
|
80974
|
+
/**
|
|
80975
|
+
* Prompts with handlers, observed with "watch"
|
|
80976
|
+
*
|
|
80977
|
+
* Prompts are only returned when document has focus!
|
|
80978
|
+
*
|
|
80979
|
+
* @returns {*}
|
|
80980
|
+
*/
|
|
80954
80981
|
withHandlers() {
|
|
80955
|
-
return this.prompts.filter(({
|
|
80982
|
+
return (this.hasFocus ? this.prompts : []).filter(({
|
|
80956
80983
|
ref
|
|
80957
80984
|
}) => !!definitions[ref] && !!definitions[ref].handler).map(prompt => ({ ...definitions[prompt.ref],
|
|
80958
80985
|
prompt
|
|
80959
80986
|
}));
|
|
80960
80987
|
},
|
|
80961
80988
|
|
|
80989
|
+
/**
|
|
80990
|
+
* Prompts with components
|
|
80991
|
+
*
|
|
80992
|
+
* Prompts are only returned when document has focus!
|
|
80993
|
+
*
|
|
80994
|
+
* @returns {*}
|
|
80995
|
+
*/
|
|
80962
80996
|
withComponents() {
|
|
80963
|
-
return this.prompts.filter(({
|
|
80997
|
+
return (this.hasFocus ? this.prompts : []).filter(({
|
|
80964
80998
|
ref
|
|
80965
80999
|
}) => !!definitions[ref] && !!definitions[ref].component).map(prompt => ({ ...definitions[prompt.ref],
|
|
80966
81000
|
prompt
|
|
@@ -80983,7 +81017,7 @@ var script$A = {
|
|
|
80983
81017
|
* passive (no feedback or input from user required) first and the rest later
|
|
80984
81018
|
*/
|
|
80985
81019
|
toasts() {
|
|
80986
|
-
return [...this.passive.values(), ...this.active];
|
|
81020
|
+
return this.hideToasts ? [] : [...this.passive.values(), ...this.active];
|
|
80987
81021
|
},
|
|
80988
81022
|
|
|
80989
81023
|
defaultTimeout() {
|
|
@@ -81015,11 +81049,11 @@ var script$A = {
|
|
|
81015
81049
|
* We do this because we do not want it to be removed right away
|
|
81016
81050
|
* but through a toast component's timeout
|
|
81017
81051
|
*/
|
|
81018
|
-
|
|
81052
|
+
withComponents: {
|
|
81019
81053
|
immediate: true,
|
|
81020
81054
|
|
|
81021
|
-
handler() {
|
|
81022
|
-
|
|
81055
|
+
handler(wc) {
|
|
81056
|
+
wc.forEach(p => {
|
|
81023
81057
|
if (p.passive) {
|
|
81024
81058
|
this.passive.add(p);
|
|
81025
81059
|
}
|
|
@@ -81044,9 +81078,38 @@ var script$A = {
|
|
|
81044
81078
|
|
|
81045
81079
|
pVal(prompt, k, def = undefined) {
|
|
81046
81080
|
return pVal(prompt.payload, k, def);
|
|
81081
|
+
},
|
|
81082
|
+
|
|
81083
|
+
clearDocumentFocusObserver() {
|
|
81084
|
+
if (this.hasFocusObserver) {
|
|
81085
|
+
window.clearInterval(this.hasFocusObserver);
|
|
81086
|
+
}
|
|
81087
|
+
},
|
|
81088
|
+
|
|
81089
|
+
/**
|
|
81090
|
+
* Interval check if window has focus
|
|
81091
|
+
*/
|
|
81092
|
+
setDocumentFocusObserver() {
|
|
81093
|
+
this.clearDocumentFocusObserver();
|
|
81094
|
+
this.hasFocusObserver = window.setInterval(() => {
|
|
81095
|
+
const f = document.hasFocus();
|
|
81096
|
+
|
|
81097
|
+
if (this.hasFocus !== f) {
|
|
81098
|
+
this.hasFocus = f;
|
|
81099
|
+
}
|
|
81100
|
+
}, 250);
|
|
81047
81101
|
}
|
|
81048
81102
|
|
|
81103
|
+
},
|
|
81104
|
+
|
|
81105
|
+
mounted() {
|
|
81106
|
+
this.setDocumentFocusObserver();
|
|
81107
|
+
},
|
|
81108
|
+
|
|
81109
|
+
beforeDestroy() {
|
|
81110
|
+
this.clearDocumentFocusObserver();
|
|
81049
81111
|
}
|
|
81112
|
+
|
|
81050
81113
|
};
|
|
81051
81114
|
|
|
81052
81115
|
/* script */
|
|
@@ -81063,11 +81126,11 @@ var __vue_staticRenderFns__$w = [];
|
|
|
81063
81126
|
/* style */
|
|
81064
81127
|
const __vue_inject_styles__$B = function (inject) {
|
|
81065
81128
|
if (!inject) return
|
|
81066
|
-
inject("data-v-
|
|
81129
|
+
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 });
|
|
81067
81130
|
|
|
81068
81131
|
};
|
|
81069
81132
|
/* scoped */
|
|
81070
|
-
const __vue_scope_id__$B = "data-v-
|
|
81133
|
+
const __vue_scope_id__$B = "data-v-7c0c67b4";
|
|
81071
81134
|
/* module identifier */
|
|
81072
81135
|
const __vue_module_identifier__$B = undefined;
|
|
81073
81136
|
/* functional template */
|
|
@@ -81211,6 +81274,11 @@ var script$C = {
|
|
|
81211
81274
|
components: {
|
|
81212
81275
|
CPromptToast: __vue_component__$B,
|
|
81213
81276
|
CPromptModal: __vue_component__$C
|
|
81277
|
+
},
|
|
81278
|
+
props: {
|
|
81279
|
+
hideToasts: {
|
|
81280
|
+
type: Boolean
|
|
81281
|
+
}
|
|
81214
81282
|
}
|
|
81215
81283
|
};
|
|
81216
81284
|
|
|
@@ -81218,7 +81286,7 @@ var script$C = {
|
|
|
81218
81286
|
const __vue_script__$C = script$C;
|
|
81219
81287
|
|
|
81220
81288
|
/* template */
|
|
81221
|
-
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)};
|
|
81289
|
+
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)};
|
|
81222
81290
|
var __vue_staticRenderFns__$y = [];
|
|
81223
81291
|
|
|
81224
81292
|
/* style */
|
|
@@ -81260,14 +81328,16 @@ const variants = [
|
|
|
81260
81328
|
{ value: 'light', text: 'Light' },
|
|
81261
81329
|
{ value: 'dark', text: 'Dark' },
|
|
81262
81330
|
];
|
|
81263
|
-
const prompts = Object.freeze([
|
|
81331
|
+
const prompts = Object.freeze([
|
|
81332
|
+
{
|
|
81264
81333
|
ref: 'redirect',
|
|
81265
81334
|
meta: { short: 'Redirect user to an outside URL' },
|
|
81266
81335
|
parameters: [
|
|
81267
81336
|
{ name: 'url', types: ['String'], required: true },
|
|
81268
81337
|
{ name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
|
|
81269
81338
|
],
|
|
81270
|
-
},
|
|
81339
|
+
},
|
|
81340
|
+
{
|
|
81271
81341
|
ref: 'reroute',
|
|
81272
81342
|
meta: { short: 'Redirect user to an internal application route' },
|
|
81273
81343
|
parameters: [
|
|
@@ -81276,9 +81346,13 @@ const prompts = Object.freeze([{
|
|
|
81276
81346
|
{ name: 'query', types: ['KV'] },
|
|
81277
81347
|
{ name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
|
|
81278
81348
|
],
|
|
81279
|
-
},
|
|
81349
|
+
},
|
|
81350
|
+
{
|
|
81280
81351
|
ref: 'recordPage',
|
|
81281
|
-
meta: {
|
|
81352
|
+
meta: {
|
|
81353
|
+
short: 'Redirect user to the record page',
|
|
81354
|
+
webapps: ['compose'],
|
|
81355
|
+
},
|
|
81282
81356
|
parameters: [
|
|
81283
81357
|
{ name: 'module', types: ['ID', 'Handle', 'ComposeModule'] },
|
|
81284
81358
|
{ name: 'namespace', types: ['ID', 'Handle', 'ComposeNamespace'] },
|
|
@@ -81286,7 +81360,12 @@ const prompts = Object.freeze([{
|
|
|
81286
81360
|
{ name: 'edit', types: ['Boolean'] },
|
|
81287
81361
|
{ name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
|
|
81288
81362
|
],
|
|
81289
|
-
},
|
|
81363
|
+
},
|
|
81364
|
+
{
|
|
81365
|
+
ref: 'refetchRecords',
|
|
81366
|
+
meta: { short: 'Refreshes all record values on the page' },
|
|
81367
|
+
},
|
|
81368
|
+
{
|
|
81290
81369
|
ref: 'notification',
|
|
81291
81370
|
meta: { short: 'Show non-blocking message to user' },
|
|
81292
81371
|
parameters: [
|
|
@@ -81295,7 +81374,8 @@ const prompts = Object.freeze([{
|
|
|
81295
81374
|
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
81296
81375
|
{ name: 'timeout', types: ['Integer'], meta: { description: 'How long do we show the notification in seconds' } },
|
|
81297
81376
|
],
|
|
81298
|
-
},
|
|
81377
|
+
},
|
|
81378
|
+
{
|
|
81299
81379
|
ref: 'alert',
|
|
81300
81380
|
meta: { short: 'Prompt user with an alert' },
|
|
81301
81381
|
parameters: [
|
|
@@ -81305,7 +81385,8 @@ const prompts = Object.freeze([{
|
|
|
81305
81385
|
{ name: 'buttonVariant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
81306
81386
|
{ name: 'buttonValue', types: ['Any'] },
|
|
81307
81387
|
],
|
|
81308
|
-
},
|
|
81388
|
+
},
|
|
81389
|
+
{
|
|
81309
81390
|
ref: 'choice',
|
|
81310
81391
|
meta: { short: 'Prompt user with choice' },
|
|
81311
81392
|
parameters: [
|
|
@@ -81321,7 +81402,8 @@ const prompts = Object.freeze([{
|
|
|
81321
81402
|
results: [
|
|
81322
81403
|
{ name: 'value', types: ['Any'] },
|
|
81323
81404
|
],
|
|
81324
|
-
},
|
|
81405
|
+
},
|
|
81406
|
+
{
|
|
81325
81407
|
ref: 'composeRecordPicker',
|
|
81326
81408
|
meta: { short: 'Prompt user to select a Compose Record' },
|
|
81327
81409
|
parameters: [
|
|
@@ -81336,7 +81418,8 @@ const prompts = Object.freeze([{
|
|
|
81336
81418
|
results: [
|
|
81337
81419
|
{ name: 'value', types: ['ComposeRecord'] },
|
|
81338
81420
|
],
|
|
81339
|
-
},
|
|
81421
|
+
},
|
|
81422
|
+
{
|
|
81340
81423
|
ref: 'input',
|
|
81341
81424
|
meta: { short: 'Prompt user with a single input' },
|
|
81342
81425
|
parameters: [
|
|
@@ -81366,7 +81449,8 @@ const prompts = Object.freeze([{
|
|
|
81366
81449
|
results: [
|
|
81367
81450
|
{ name: 'value', types: ['Any'] },
|
|
81368
81451
|
],
|
|
81369
|
-
},
|
|
81452
|
+
},
|
|
81453
|
+
{
|
|
81370
81454
|
ref: 'options',
|
|
81371
81455
|
meta: { short: 'Prompt user with options' },
|
|
81372
81456
|
parameters: [
|
|
@@ -81393,7 +81477,8 @@ const prompts = Object.freeze([{
|
|
|
81393
81477
|
results: [
|
|
81394
81478
|
{ name: 'value', types: ['Any'] },
|
|
81395
81479
|
],
|
|
81396
|
-
}
|
|
81480
|
+
},
|
|
81481
|
+
].map(f => new cortezaJs.automation.Function(Object.assign(Object.assign({}, f), { kind: 'prompt' }))));
|
|
81397
81482
|
|
|
81398
81483
|
//
|
|
81399
81484
|
//
|
|
@@ -81629,6 +81714,14 @@ var __vue_staticRenderFns__$z = [];
|
|
|
81629
81714
|
//
|
|
81630
81715
|
//
|
|
81631
81716
|
//
|
|
81717
|
+
//
|
|
81718
|
+
//
|
|
81719
|
+
//
|
|
81720
|
+
//
|
|
81721
|
+
//
|
|
81722
|
+
//
|
|
81723
|
+
//
|
|
81724
|
+
//
|
|
81632
81725
|
var script$E = {
|
|
81633
81726
|
props: {
|
|
81634
81727
|
sidebarPinned: {
|
|
@@ -81711,17 +81804,17 @@ const __vue_script__$E = script$E;
|
|
|
81711
81804
|
/* template */
|
|
81712
81805
|
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:{
|
|
81713
81806
|
'expanded': _vm.sidebarPinned,
|
|
81714
|
-
}})],_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
|
|
81807
|
+
}})],_vm._v(" "),_c('div',{staticClass:"d-flex align-items-center ml-2 text-truncate mr-auto h-100"},[_c('h2',{staticClass:"d-none d-sm-block mb-0"},[_vm._t("title")],2)]),_vm._v(" "),_c('div',{staticClass:"ml-3"},[_vm._t("tools")],2),_vm._v(" "),(!_vm.hideAppSelector && !_vm.settings.hideAppSelector)?_c('b-button',{staticClass:"d-flex align-items-center justify-content-center text-dark border-0 nav-icon rounded-circle ml-2",attrs:{"variant":"outline-light","href":_vm.appSelectorURL,"size":"lg"}},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['fas', 'grip-horizontal']}})],1):_vm._e(),_vm._v(" "),(!_vm.settings.hideHelp)?_c('b-dropdown',{staticClass:"nav-icon mx-1",attrs:{"data-test-id":"dropdown-helper","size":"lg","variant":"outline-light","toggle-class":"text-decoration-none text-dark rounded-circle border-0 w-100","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark font-weight-bold mt-2","right":"","no-caret":""},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'question-circle']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,1129756517)},[_vm._v(" "),_c('div',[_vm._t("help-dropdown")],2),_vm._v(" "),_vm._l((_vm.helpLinks),function(helpLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":helpLink.url,"target":helpLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(helpLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideForumLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-forum","href":"https://forum.cortezaproject.org/","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideDocumentationLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-docs","href":_vm.documentationURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpDocumentation)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideFeedbackLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-feedback","href":"mailto:info@crust.tech","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpFeedback)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.onlyVersion)?_c('b-dropdown-divider'):_vm._e(),_vm._v(" "),_c('b-dropdown-item',{staticClass:"small",attrs:{"disabled":""}},[_vm._v("\n "+_vm._s(_vm.labels.helpVersion)+"\n "),_c('br'),_vm._v("\n "+_vm._s(_vm.frontendVersion)+"\n ")])],2):_vm._e(),_vm._v(" "),(!_vm.settings.hideProfile)?_c('b-dropdown',{staticClass:"nav-user-icon",attrs:{"data-test-id":"dropdown-profile","data-v-onboarding":"profile","size":"lg","variant":"outline-light","toggle-class":"nav-icon text-decoration-none text-dark rounded-circle border","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark font-weight-bold mt-2","right":"","no-caret":""},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'user']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,2199786693)},[_vm._v(" "),_c('b-dropdown-text',{staticClass:"text-muted mb-2"},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLoggedInAs)+"\n ")]),_vm._v(" "),_c('div',[_vm._t("avatar-dropdown")],2),_vm._v(" "),_vm._l((_vm.profileLinks),function(profileLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":profileLink.url,"target":profileLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(profileLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideProfileLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-user","href":_vm.userProfileURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsProfile)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideChangePasswordLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-change-password","href":_vm.changePasswordURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsChangePassword)+"\n ")]):_vm._e(),_vm._v(" "),_c('b-dropdown-divider'),_vm._v(" "),_c('b-dropdown-item',{staticClass:"mt-2",attrs:{"data-test-id":"dropdown-profile-logout","href":""},on:{"click":function($event){return _vm.$auth.logout()}}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLogout)+"\n ")])],2):_vm._e()],2)])};
|
|
81715
81808
|
var __vue_staticRenderFns__$A = [];
|
|
81716
81809
|
|
|
81717
81810
|
/* style */
|
|
81718
81811
|
const __vue_inject_styles__$F = function (inject) {
|
|
81719
81812
|
if (!inject) return
|
|
81720
|
-
inject("data-v-
|
|
81813
|
+
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 });
|
|
81721
81814
|
|
|
81722
81815
|
};
|
|
81723
81816
|
/* scoped */
|
|
81724
|
-
const __vue_scope_id__$F = "data-v-
|
|
81817
|
+
const __vue_scope_id__$F = "data-v-2ccaa89e";
|
|
81725
81818
|
/* module identifier */
|
|
81726
81819
|
const __vue_module_identifier__$F = undefined;
|
|
81727
81820
|
/* functional template */
|
|
@@ -82355,6 +82448,11 @@ var __vue_staticRenderFns__$C = [];
|
|
|
82355
82448
|
//
|
|
82356
82449
|
//
|
|
82357
82450
|
//
|
|
82451
|
+
//
|
|
82452
|
+
//
|
|
82453
|
+
//
|
|
82454
|
+
//
|
|
82455
|
+
//
|
|
82358
82456
|
var script$H = {
|
|
82359
82457
|
name: 'TourComponent',
|
|
82360
82458
|
i18nOptions: {
|
|
@@ -82416,13 +82514,13 @@ var script$H = {
|
|
|
82416
82514
|
const __vue_script__$H = script$H;
|
|
82417
82515
|
|
|
82418
82516
|
/* template */
|
|
82419
|
-
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,
|
|
82517
|
+
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()};
|
|
82420
82518
|
var __vue_staticRenderFns__$D = [];
|
|
82421
82519
|
|
|
82422
82520
|
/* style */
|
|
82423
82521
|
const __vue_inject_styles__$I = function (inject) {
|
|
82424
82522
|
if (!inject) return
|
|
82425
|
-
inject("data-v-
|
|
82523
|
+
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 });
|
|
82426
82524
|
|
|
82427
82525
|
};
|
|
82428
82526
|
/* scoped */
|
|
@@ -83725,15 +83823,12 @@ var script$V = {
|
|
|
83725
83823
|
// tabelifyFrame returns a set of rows and columns that should be shown
|
|
83726
83824
|
// for this frame.
|
|
83727
83825
|
//
|
|
83728
|
-
// maxSize is used to calculate the rowSpan that should be applied to joined
|
|
83729
|
-
// frames with fewer rows then the other.
|
|
83730
|
-
//
|
|
83731
83826
|
// Flow outline:
|
|
83732
83827
|
// * for each row of the frame:
|
|
83733
83828
|
// ** find all foreign frames
|
|
83734
83829
|
// ** tabelify foreign frames
|
|
83735
83830
|
// ** merge with the current tabelified result
|
|
83736
|
-
tabelifyFrame(frame
|
|
83831
|
+
tabelifyFrame(frame) {
|
|
83737
83832
|
const outRows = [];
|
|
83738
83833
|
const isLocal = frame.ref === this.localDataframe.ref; // Index selected columns
|
|
83739
83834
|
|
|
@@ -83764,7 +83859,7 @@ var script$V = {
|
|
|
83764
83859
|
const usedKeys = this.keyColumns(frame);
|
|
83765
83860
|
|
|
83766
83861
|
for (const r of frame.rows || []) {
|
|
83767
|
-
maxSize = 1;
|
|
83862
|
+
let maxSize = 1;
|
|
83768
83863
|
const row = this.tabelifyRow(r, [...selectedCols]);
|
|
83769
83864
|
const auxRows = [];
|
|
83770
83865
|
|
|
@@ -83780,7 +83875,7 @@ var script$V = {
|
|
|
83780
83875
|
// const refColumnIndexes = (this.options.columns[rf.ref] || []).map(({ name }) => {
|
|
83781
83876
|
// return frame.columns.findIndex(fc => fc.name === name)
|
|
83782
83877
|
// })
|
|
83783
|
-
const aux = this.tabelifyFrame(rf, Math.max(rf.rows.length
|
|
83878
|
+
const aux = this.tabelifyFrame(rf, Math.max(rf.rows.length)); // Optionally append header
|
|
83784
83879
|
|
|
83785
83880
|
if (!hSeanFrames[rf.ref]) {
|
|
83786
83881
|
const x = [...aux.header];
|
|
@@ -83995,11 +84090,11 @@ var __vue_staticRenderFns__$P = [];
|
|
|
83995
84090
|
/* style */
|
|
83996
84091
|
const __vue_inject_styles__$W = function (inject) {
|
|
83997
84092
|
if (!inject) return
|
|
83998
|
-
inject("data-v-
|
|
84093
|
+
inject("data-v-54580af2_0", { source: ".foreign[data-v-54580af2]{border:1px solid rgba(22,36,37,.8);border-top:0;border-bottom:0}.separator[data-v-54580af2]{border-top:2px solid rgba(22,36,37,.5)}.card-rounded[data-v-54580af2]{border-radius:1rem 1rem 0 0}", map: undefined, media: undefined });
|
|
83999
84094
|
|
|
84000
84095
|
};
|
|
84001
84096
|
/* scoped */
|
|
84002
|
-
const __vue_scope_id__$W = "data-v-
|
|
84097
|
+
const __vue_scope_id__$W = "data-v-54580af2";
|
|
84003
84098
|
/* module identifier */
|
|
84004
84099
|
const __vue_module_identifier__$W = undefined;
|
|
84005
84100
|
/* functional template */
|
|
@@ -84846,7 +84941,7 @@ function onlyFresh(existing, fresh) {
|
|
|
84846
84941
|
const index = existing.map(({ stateID }) => stateID);
|
|
84847
84942
|
return fresh.filter(({ stateID = undefined }) => stateID && !index.includes(stateID));
|
|
84848
84943
|
}
|
|
84849
|
-
function index$6 ({ api }) {
|
|
84944
|
+
function index$6 ({ api, webapp }) {
|
|
84850
84945
|
return {
|
|
84851
84946
|
strict: true,
|
|
84852
84947
|
state: {
|
|
@@ -84884,10 +84979,6 @@ function index$6 ({ api }) {
|
|
|
84884
84979
|
commit('active', false);
|
|
84885
84980
|
});
|
|
84886
84981
|
},
|
|
84887
|
-
// unwatch ({ state, commit }: ActionContext<State, State>): void {
|
|
84888
|
-
// commit('watching', undefined)
|
|
84889
|
-
// clearInterval(state.wiptr)
|
|
84890
|
-
// },
|
|
84891
84982
|
// fetch calls automation API endpoint and collects all states
|
|
84892
84983
|
update({ commit, state }) {
|
|
84893
84984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -84915,6 +85006,7 @@ function index$6 ({ api }) {
|
|
|
84915
85006
|
commit('loading');
|
|
84916
85007
|
return resumeState(api, prompt, input)
|
|
84917
85008
|
.then(() => commit('remove', prompt))
|
|
85009
|
+
.catch(() => commit('remove', prompt))
|
|
84918
85010
|
.finally(() => commit('loading', false));
|
|
84919
85011
|
});
|
|
84920
85012
|
},
|
|
@@ -84941,9 +85033,6 @@ function index$6 ({ api }) {
|
|
|
84941
85033
|
loading(state, flag = true) {
|
|
84942
85034
|
state.loading = flag;
|
|
84943
85035
|
},
|
|
84944
|
-
// watching (state: State, ptr?: number): void {
|
|
84945
|
-
// state.wiptr = ptr
|
|
84946
|
-
// },
|
|
84947
85036
|
active(state, m) {
|
|
84948
85037
|
state.active = m;
|
|
84949
85038
|
},
|
|
@@ -84951,7 +85040,12 @@ function index$6 ({ api }) {
|
|
|
84951
85040
|
state.prompts = [];
|
|
84952
85041
|
},
|
|
84953
85042
|
update(state, pp) {
|
|
84954
|
-
|
|
85043
|
+
// // Check if prompt should be run only in certain webapps
|
|
85044
|
+
state.prompts.push(...pp.filter(({ ref }) => {
|
|
85045
|
+
return prompts.some(p => {
|
|
85046
|
+
return p.ref === ref && (!p.meta.webapps || p.meta.webapps.includes(webapp));
|
|
85047
|
+
});
|
|
85048
|
+
}));
|
|
84955
85049
|
},
|
|
84956
85050
|
remove(state, prompt) {
|
|
84957
85051
|
state.prompts = state.prompts.filter(({ stateID }) => stateID !== prompt.stateID);
|