@cortezaproject/corteza-vue 2022.3.2 → 2022.3.4-rc.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 +131 -48
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +131 -48
- 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.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-
|
|
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-
|
|
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 */
|
|
@@ -80931,10 +80931,24 @@ const definitions = {
|
|
|
80931
80931
|
//
|
|
80932
80932
|
var script$A = {
|
|
80933
80933
|
name: 'c-prompt-toast',
|
|
80934
|
+
props: {
|
|
80935
|
+
hideToasts: {
|
|
80936
|
+
type: Boolean
|
|
80937
|
+
}
|
|
80938
|
+
},
|
|
80934
80939
|
|
|
80935
80940
|
data() {
|
|
80936
80941
|
return {
|
|
80937
|
-
passive: new Set()
|
|
80942
|
+
passive: new Set(),
|
|
80943
|
+
|
|
80944
|
+
/**
|
|
80945
|
+
* Set initial value to NULL
|
|
80946
|
+
*
|
|
80947
|
+
* First interval will detect that null is not true|false
|
|
80948
|
+
* and set it accordingly to the current state
|
|
80949
|
+
*/
|
|
80950
|
+
hasFocus: null,
|
|
80951
|
+
hasFocusObserver: 0
|
|
80938
80952
|
};
|
|
80939
80953
|
},
|
|
80940
80954
|
|
|
@@ -80944,16 +80958,30 @@ var script$A = {
|
|
|
80944
80958
|
isLoading: 'wfPrompts/isLoading'
|
|
80945
80959
|
}),
|
|
80946
80960
|
|
|
80961
|
+
/**
|
|
80962
|
+
* Prompts with handlers, observed with "watch"
|
|
80963
|
+
*
|
|
80964
|
+
* Prompts are only returned when document has focus!
|
|
80965
|
+
*
|
|
80966
|
+
* @returns {*}
|
|
80967
|
+
*/
|
|
80947
80968
|
withHandlers() {
|
|
80948
|
-
return this.prompts.filter(({
|
|
80969
|
+
return (this.hasFocus ? this.prompts : []).filter(({
|
|
80949
80970
|
ref
|
|
80950
80971
|
}) => !!definitions[ref] && !!definitions[ref].handler).map(prompt => ({ ...definitions[prompt.ref],
|
|
80951
80972
|
prompt
|
|
80952
80973
|
}));
|
|
80953
80974
|
},
|
|
80954
80975
|
|
|
80976
|
+
/**
|
|
80977
|
+
* Prompts with components
|
|
80978
|
+
*
|
|
80979
|
+
* Prompts are only returned when document has focus!
|
|
80980
|
+
*
|
|
80981
|
+
* @returns {*}
|
|
80982
|
+
*/
|
|
80955
80983
|
withComponents() {
|
|
80956
|
-
return this.prompts.filter(({
|
|
80984
|
+
return (this.hasFocus ? this.prompts : []).filter(({
|
|
80957
80985
|
ref
|
|
80958
80986
|
}) => !!definitions[ref] && !!definitions[ref].component).map(prompt => ({ ...definitions[prompt.ref],
|
|
80959
80987
|
prompt
|
|
@@ -80976,7 +81004,7 @@ var script$A = {
|
|
|
80976
81004
|
* passive (no feedback or input from user required) first and the rest later
|
|
80977
81005
|
*/
|
|
80978
81006
|
toasts() {
|
|
80979
|
-
return [...this.passive.values(), ...this.active];
|
|
81007
|
+
return this.hideToasts ? [] : [...this.passive.values(), ...this.active];
|
|
80980
81008
|
},
|
|
80981
81009
|
|
|
80982
81010
|
defaultTimeout() {
|
|
@@ -81008,11 +81036,11 @@ var script$A = {
|
|
|
81008
81036
|
* We do this because we do not want it to be removed right away
|
|
81009
81037
|
* but through a toast component's timeout
|
|
81010
81038
|
*/
|
|
81011
|
-
|
|
81039
|
+
withComponents: {
|
|
81012
81040
|
immediate: true,
|
|
81013
81041
|
|
|
81014
|
-
handler() {
|
|
81015
|
-
|
|
81042
|
+
handler(wc) {
|
|
81043
|
+
wc.forEach(p => {
|
|
81016
81044
|
if (p.passive) {
|
|
81017
81045
|
this.passive.add(p);
|
|
81018
81046
|
}
|
|
@@ -81037,9 +81065,38 @@ var script$A = {
|
|
|
81037
81065
|
|
|
81038
81066
|
pVal(prompt, k, def = undefined) {
|
|
81039
81067
|
return pVal(prompt.payload, k, def);
|
|
81068
|
+
},
|
|
81069
|
+
|
|
81070
|
+
clearDocumentFocusObserver() {
|
|
81071
|
+
if (this.hasFocusObserver) {
|
|
81072
|
+
window.clearInterval(this.hasFocusObserver);
|
|
81073
|
+
}
|
|
81074
|
+
},
|
|
81075
|
+
|
|
81076
|
+
/**
|
|
81077
|
+
* Interval check if window has focus
|
|
81078
|
+
*/
|
|
81079
|
+
setDocumentFocusObserver() {
|
|
81080
|
+
this.clearDocumentFocusObserver();
|
|
81081
|
+
this.hasFocusObserver = window.setInterval(() => {
|
|
81082
|
+
const f = document.hasFocus();
|
|
81083
|
+
|
|
81084
|
+
if (this.hasFocus !== f) {
|
|
81085
|
+
this.hasFocus = f;
|
|
81086
|
+
}
|
|
81087
|
+
}, 250);
|
|
81040
81088
|
}
|
|
81041
81089
|
|
|
81090
|
+
},
|
|
81091
|
+
|
|
81092
|
+
mounted() {
|
|
81093
|
+
this.setDocumentFocusObserver();
|
|
81094
|
+
},
|
|
81095
|
+
|
|
81096
|
+
beforeDestroy() {
|
|
81097
|
+
this.clearDocumentFocusObserver();
|
|
81042
81098
|
}
|
|
81099
|
+
|
|
81043
81100
|
};
|
|
81044
81101
|
|
|
81045
81102
|
/* script */
|
|
@@ -81056,11 +81113,11 @@ var __vue_staticRenderFns__$w = [];
|
|
|
81056
81113
|
/* style */
|
|
81057
81114
|
const __vue_inject_styles__$B = function (inject) {
|
|
81058
81115
|
if (!inject) return
|
|
81059
|
-
inject("data-v-
|
|
81116
|
+
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
81117
|
|
|
81061
81118
|
};
|
|
81062
81119
|
/* scoped */
|
|
81063
|
-
const __vue_scope_id__$B = "data-v-
|
|
81120
|
+
const __vue_scope_id__$B = "data-v-7c0c67b4";
|
|
81064
81121
|
/* module identifier */
|
|
81065
81122
|
const __vue_module_identifier__$B = undefined;
|
|
81066
81123
|
/* functional template */
|
|
@@ -81204,6 +81261,11 @@ var script$C = {
|
|
|
81204
81261
|
components: {
|
|
81205
81262
|
CPromptToast: __vue_component__$B,
|
|
81206
81263
|
CPromptModal: __vue_component__$C
|
|
81264
|
+
},
|
|
81265
|
+
props: {
|
|
81266
|
+
hideToasts: {
|
|
81267
|
+
type: Boolean
|
|
81268
|
+
}
|
|
81207
81269
|
}
|
|
81208
81270
|
};
|
|
81209
81271
|
|
|
@@ -81211,7 +81273,7 @@ var script$C = {
|
|
|
81211
81273
|
const __vue_script__$C = script$C;
|
|
81212
81274
|
|
|
81213
81275
|
/* 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)};
|
|
81276
|
+
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
81277
|
var __vue_staticRenderFns__$y = [];
|
|
81216
81278
|
|
|
81217
81279
|
/* style */
|
|
@@ -81253,14 +81315,16 @@ const variants = [
|
|
|
81253
81315
|
{ value: 'light', text: 'Light' },
|
|
81254
81316
|
{ value: 'dark', text: 'Dark' },
|
|
81255
81317
|
];
|
|
81256
|
-
const prompts = Object.freeze([
|
|
81318
|
+
const prompts = Object.freeze([
|
|
81319
|
+
{
|
|
81257
81320
|
ref: 'redirect',
|
|
81258
81321
|
meta: { short: 'Redirect user to an outside URL' },
|
|
81259
81322
|
parameters: [
|
|
81260
81323
|
{ name: 'url', types: ['String'], required: true },
|
|
81261
81324
|
{ name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
|
|
81262
81325
|
],
|
|
81263
|
-
},
|
|
81326
|
+
},
|
|
81327
|
+
{
|
|
81264
81328
|
ref: 'reroute',
|
|
81265
81329
|
meta: { short: 'Redirect user to an internal application route' },
|
|
81266
81330
|
parameters: [
|
|
@@ -81269,9 +81333,13 @@ const prompts = Object.freeze([{
|
|
|
81269
81333
|
{ name: 'query', types: ['KV'] },
|
|
81270
81334
|
{ name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
|
|
81271
81335
|
],
|
|
81272
|
-
},
|
|
81336
|
+
},
|
|
81337
|
+
{
|
|
81273
81338
|
ref: 'recordPage',
|
|
81274
|
-
meta: {
|
|
81339
|
+
meta: {
|
|
81340
|
+
short: 'Redirect user to the record page',
|
|
81341
|
+
webapps: ['compose'],
|
|
81342
|
+
},
|
|
81275
81343
|
parameters: [
|
|
81276
81344
|
{ name: 'module', types: ['ID', 'Handle', 'ComposeModule'] },
|
|
81277
81345
|
{ name: 'namespace', types: ['ID', 'Handle', 'ComposeNamespace'] },
|
|
@@ -81279,7 +81347,8 @@ const prompts = Object.freeze([{
|
|
|
81279
81347
|
{ name: 'edit', types: ['Boolean'] },
|
|
81280
81348
|
{ name: 'delay', types: ['Integer'], meta: { description: 'Redirection delay in seconds' } },
|
|
81281
81349
|
],
|
|
81282
|
-
},
|
|
81350
|
+
},
|
|
81351
|
+
{
|
|
81283
81352
|
ref: 'notification',
|
|
81284
81353
|
meta: { short: 'Show non-blocking message to user' },
|
|
81285
81354
|
parameters: [
|
|
@@ -81288,7 +81357,8 @@ const prompts = Object.freeze([{
|
|
|
81288
81357
|
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
81289
81358
|
{ name: 'timeout', types: ['Integer'], meta: { description: 'How long do we show the notification in seconds' } },
|
|
81290
81359
|
],
|
|
81291
|
-
},
|
|
81360
|
+
},
|
|
81361
|
+
{
|
|
81292
81362
|
ref: 'alert',
|
|
81293
81363
|
meta: { short: 'Prompt user with an alert' },
|
|
81294
81364
|
parameters: [
|
|
@@ -81298,7 +81368,8 @@ const prompts = Object.freeze([{
|
|
|
81298
81368
|
{ name: 'buttonVariant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
81299
81369
|
{ name: 'buttonValue', types: ['Any'] },
|
|
81300
81370
|
],
|
|
81301
|
-
},
|
|
81371
|
+
},
|
|
81372
|
+
{
|
|
81302
81373
|
ref: 'choice',
|
|
81303
81374
|
meta: { short: 'Prompt user with choice' },
|
|
81304
81375
|
parameters: [
|
|
@@ -81314,7 +81385,8 @@ const prompts = Object.freeze([{
|
|
|
81314
81385
|
results: [
|
|
81315
81386
|
{ name: 'value', types: ['Any'] },
|
|
81316
81387
|
],
|
|
81317
|
-
},
|
|
81388
|
+
},
|
|
81389
|
+
{
|
|
81318
81390
|
ref: 'composeRecordPicker',
|
|
81319
81391
|
meta: { short: 'Prompt user to select a Compose Record' },
|
|
81320
81392
|
parameters: [
|
|
@@ -81329,7 +81401,8 @@ const prompts = Object.freeze([{
|
|
|
81329
81401
|
results: [
|
|
81330
81402
|
{ name: 'value', types: ['ComposeRecord'] },
|
|
81331
81403
|
],
|
|
81332
|
-
},
|
|
81404
|
+
},
|
|
81405
|
+
{
|
|
81333
81406
|
ref: 'input',
|
|
81334
81407
|
meta: { short: 'Prompt user with a single input' },
|
|
81335
81408
|
parameters: [
|
|
@@ -81359,7 +81432,8 @@ const prompts = Object.freeze([{
|
|
|
81359
81432
|
results: [
|
|
81360
81433
|
{ name: 'value', types: ['Any'] },
|
|
81361
81434
|
],
|
|
81362
|
-
},
|
|
81435
|
+
},
|
|
81436
|
+
{
|
|
81363
81437
|
ref: 'options',
|
|
81364
81438
|
meta: { short: 'Prompt user with options' },
|
|
81365
81439
|
parameters: [
|
|
@@ -81386,7 +81460,8 @@ const prompts = Object.freeze([{
|
|
|
81386
81460
|
results: [
|
|
81387
81461
|
{ name: 'value', types: ['Any'] },
|
|
81388
81462
|
],
|
|
81389
|
-
}
|
|
81463
|
+
},
|
|
81464
|
+
].map(f => new automation.Function(Object.assign(Object.assign({}, f), { kind: 'prompt' }))));
|
|
81390
81465
|
|
|
81391
81466
|
//
|
|
81392
81467
|
//
|
|
@@ -81622,6 +81697,14 @@ var __vue_staticRenderFns__$z = [];
|
|
|
81622
81697
|
//
|
|
81623
81698
|
//
|
|
81624
81699
|
//
|
|
81700
|
+
//
|
|
81701
|
+
//
|
|
81702
|
+
//
|
|
81703
|
+
//
|
|
81704
|
+
//
|
|
81705
|
+
//
|
|
81706
|
+
//
|
|
81707
|
+
//
|
|
81625
81708
|
var script$E = {
|
|
81626
81709
|
props: {
|
|
81627
81710
|
sidebarPinned: {
|
|
@@ -81704,17 +81787,17 @@ const __vue_script__$E = script$E;
|
|
|
81704
81787
|
/* template */
|
|
81705
81788
|
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
81789
|
'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
|
|
81790
|
+
}})],_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
81791
|
var __vue_staticRenderFns__$A = [];
|
|
81709
81792
|
|
|
81710
81793
|
/* style */
|
|
81711
81794
|
const __vue_inject_styles__$F = function (inject) {
|
|
81712
81795
|
if (!inject) return
|
|
81713
|
-
inject("data-v-
|
|
81796
|
+
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
81797
|
|
|
81715
81798
|
};
|
|
81716
81799
|
/* scoped */
|
|
81717
|
-
const __vue_scope_id__$F = "data-v-
|
|
81800
|
+
const __vue_scope_id__$F = "data-v-2ccaa89e";
|
|
81718
81801
|
/* module identifier */
|
|
81719
81802
|
const __vue_module_identifier__$F = undefined;
|
|
81720
81803
|
/* functional template */
|
|
@@ -82348,6 +82431,11 @@ var __vue_staticRenderFns__$C = [];
|
|
|
82348
82431
|
//
|
|
82349
82432
|
//
|
|
82350
82433
|
//
|
|
82434
|
+
//
|
|
82435
|
+
//
|
|
82436
|
+
//
|
|
82437
|
+
//
|
|
82438
|
+
//
|
|
82351
82439
|
var script$H = {
|
|
82352
82440
|
name: 'TourComponent',
|
|
82353
82441
|
i18nOptions: {
|
|
@@ -82409,13 +82497,13 @@ var script$H = {
|
|
|
82409
82497
|
const __vue_script__$H = script$H;
|
|
82410
82498
|
|
|
82411
82499
|
/* 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,
|
|
82500
|
+
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
82501
|
var __vue_staticRenderFns__$D = [];
|
|
82414
82502
|
|
|
82415
82503
|
/* style */
|
|
82416
82504
|
const __vue_inject_styles__$I = function (inject) {
|
|
82417
82505
|
if (!inject) return
|
|
82418
|
-
inject("data-v-
|
|
82506
|
+
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
82507
|
|
|
82420
82508
|
};
|
|
82421
82509
|
/* scoped */
|
|
@@ -83718,15 +83806,12 @@ var script$V = {
|
|
|
83718
83806
|
// tabelifyFrame returns a set of rows and columns that should be shown
|
|
83719
83807
|
// for this frame.
|
|
83720
83808
|
//
|
|
83721
|
-
// maxSize is used to calculate the rowSpan that should be applied to joined
|
|
83722
|
-
// frames with fewer rows then the other.
|
|
83723
|
-
//
|
|
83724
83809
|
// Flow outline:
|
|
83725
83810
|
// * for each row of the frame:
|
|
83726
83811
|
// ** find all foreign frames
|
|
83727
83812
|
// ** tabelify foreign frames
|
|
83728
83813
|
// ** merge with the current tabelified result
|
|
83729
|
-
tabelifyFrame(frame
|
|
83814
|
+
tabelifyFrame(frame) {
|
|
83730
83815
|
const outRows = [];
|
|
83731
83816
|
const isLocal = frame.ref === this.localDataframe.ref; // Index selected columns
|
|
83732
83817
|
|
|
@@ -83757,7 +83842,7 @@ var script$V = {
|
|
|
83757
83842
|
const usedKeys = this.keyColumns(frame);
|
|
83758
83843
|
|
|
83759
83844
|
for (const r of frame.rows || []) {
|
|
83760
|
-
maxSize = 1;
|
|
83845
|
+
let maxSize = 1;
|
|
83761
83846
|
const row = this.tabelifyRow(r, [...selectedCols]);
|
|
83762
83847
|
const auxRows = [];
|
|
83763
83848
|
|
|
@@ -83773,7 +83858,7 @@ var script$V = {
|
|
|
83773
83858
|
// const refColumnIndexes = (this.options.columns[rf.ref] || []).map(({ name }) => {
|
|
83774
83859
|
// return frame.columns.findIndex(fc => fc.name === name)
|
|
83775
83860
|
// })
|
|
83776
|
-
const aux = this.tabelifyFrame(rf
|
|
83861
|
+
const aux = this.tabelifyFrame(rf); // Optionally append header
|
|
83777
83862
|
|
|
83778
83863
|
if (!hSeanFrames[rf.ref]) {
|
|
83779
83864
|
const x = [...aux.header];
|
|
@@ -83818,7 +83903,6 @@ var script$V = {
|
|
|
83818
83903
|
|
|
83819
83904
|
return {
|
|
83820
83905
|
rows: outRows,
|
|
83821
|
-
maxSize,
|
|
83822
83906
|
header: outHeader,
|
|
83823
83907
|
colgroups: outColgroups
|
|
83824
83908
|
};
|
|
@@ -83988,11 +84072,11 @@ var __vue_staticRenderFns__$P = [];
|
|
|
83988
84072
|
/* style */
|
|
83989
84073
|
const __vue_inject_styles__$W = function (inject) {
|
|
83990
84074
|
if (!inject) return
|
|
83991
|
-
inject("data-v-
|
|
84075
|
+
inject("data-v-4c6dba99_0", { source: ".foreign[data-v-4c6dba99]{border:1px solid rgba(22,36,37,.8);border-top:0;border-bottom:0}.separator[data-v-4c6dba99]{border-top:2px solid rgba(22,36,37,.5)}.card-rounded[data-v-4c6dba99]{border-radius:1rem 1rem 0 0}", map: undefined, media: undefined });
|
|
83992
84076
|
|
|
83993
84077
|
};
|
|
83994
84078
|
/* scoped */
|
|
83995
|
-
const __vue_scope_id__$W = "data-v-
|
|
84079
|
+
const __vue_scope_id__$W = "data-v-4c6dba99";
|
|
83996
84080
|
/* module identifier */
|
|
83997
84081
|
const __vue_module_identifier__$W = undefined;
|
|
83998
84082
|
/* functional template */
|
|
@@ -84839,7 +84923,7 @@ function onlyFresh(existing, fresh) {
|
|
|
84839
84923
|
const index = existing.map(({ stateID }) => stateID);
|
|
84840
84924
|
return fresh.filter(({ stateID = undefined }) => stateID && !index.includes(stateID));
|
|
84841
84925
|
}
|
|
84842
|
-
function index$6 ({ api }) {
|
|
84926
|
+
function index$6 ({ api, webapp }) {
|
|
84843
84927
|
return {
|
|
84844
84928
|
strict: true,
|
|
84845
84929
|
state: {
|
|
@@ -84877,10 +84961,6 @@ function index$6 ({ api }) {
|
|
|
84877
84961
|
commit('active', false);
|
|
84878
84962
|
});
|
|
84879
84963
|
},
|
|
84880
|
-
// unwatch ({ state, commit }: ActionContext<State, State>): void {
|
|
84881
|
-
// commit('watching', undefined)
|
|
84882
|
-
// clearInterval(state.wiptr)
|
|
84883
|
-
// },
|
|
84884
84964
|
// fetch calls automation API endpoint and collects all states
|
|
84885
84965
|
update({ commit, state }) {
|
|
84886
84966
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -84908,6 +84988,7 @@ function index$6 ({ api }) {
|
|
|
84908
84988
|
commit('loading');
|
|
84909
84989
|
return resumeState(api, prompt, input)
|
|
84910
84990
|
.then(() => commit('remove', prompt))
|
|
84991
|
+
.catch(() => commit('remove', prompt))
|
|
84911
84992
|
.finally(() => commit('loading', false));
|
|
84912
84993
|
});
|
|
84913
84994
|
},
|
|
@@ -84934,9 +85015,6 @@ function index$6 ({ api }) {
|
|
|
84934
85015
|
loading(state, flag = true) {
|
|
84935
85016
|
state.loading = flag;
|
|
84936
85017
|
},
|
|
84937
|
-
// watching (state: State, ptr?: number): void {
|
|
84938
|
-
// state.wiptr = ptr
|
|
84939
|
-
// },
|
|
84940
85018
|
active(state, m) {
|
|
84941
85019
|
state.active = m;
|
|
84942
85020
|
},
|
|
@@ -84944,7 +85022,12 @@ function index$6 ({ api }) {
|
|
|
84944
85022
|
state.prompts = [];
|
|
84945
85023
|
},
|
|
84946
85024
|
update(state, pp) {
|
|
84947
|
-
|
|
85025
|
+
// // Check if prompt should be run only in certain webapps
|
|
85026
|
+
state.prompts.push(...pp.filter(({ ref }) => {
|
|
85027
|
+
return prompts.some(p => {
|
|
85028
|
+
return p.ref === ref && (!p.meta.webapps || p.meta.webapps.includes(webapp));
|
|
85029
|
+
});
|
|
85030
|
+
}));
|
|
84948
85031
|
},
|
|
84949
85032
|
remove(state, prompt) {
|
|
84950
85033
|
state.prompts = state.prompts.filter(({ stateID }) => stateID !== prompt.stateID);
|