@cortezaproject/corteza-vue 2022.3.1 → 2022.3.3-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 +106 -28
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +106 -28
- package/dist/index.js.map +1 -1
- package/dist/libs/websocket.d.ts +1 -1
- package/dist/plugins/auth.d.ts +2 -0
- package/dist/store/wf-prompts/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -2006,8 +2006,6 @@ class Auth {
|
|
|
2006
2006
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2007
2007
|
this.log.info('handling authentication');
|
|
2008
2008
|
// State management
|
|
2009
|
-
// - duplication checking
|
|
2010
|
-
// - management handlers
|
|
2011
2009
|
const dup = this.handleStateManagement();
|
|
2012
2010
|
if (dup) {
|
|
2013
2011
|
this.log.debug('duplicate tab: unauthorized');
|
|
@@ -2044,14 +2042,25 @@ class Auth {
|
|
|
2044
2042
|
handleStateManagement() {
|
|
2045
2043
|
// See if this is a duplicate
|
|
2046
2044
|
const dup = this.sessionStorage.getItem(storeKeyFinalState) !== null;
|
|
2047
|
-
|
|
2048
|
-
this.registerEventListener('beforeunload', function () {
|
|
2049
|
-
this.sessionStorage.removeItem(storeKeyFinalState);
|
|
2050
|
-
});
|
|
2051
|
-
// Set state
|
|
2052
|
-
this.sessionStorage.setItem(storeKeyFinalState, Date.now().toString());
|
|
2045
|
+
window.sessionStorage.setItem(storeKeyFinalState, Date.now().toString());
|
|
2053
2046
|
return dup;
|
|
2054
2047
|
}
|
|
2048
|
+
bindListeners() {
|
|
2049
|
+
// binding multiple listeners for cases where some browser refuser
|
|
2050
|
+
// to emit one of them.
|
|
2051
|
+
this.registerEventListener('pagehide', () => {
|
|
2052
|
+
this.cleanFlags();
|
|
2053
|
+
});
|
|
2054
|
+
this.registerEventListener('unload', () => {
|
|
2055
|
+
this.cleanFlags();
|
|
2056
|
+
});
|
|
2057
|
+
this.registerEventListener('beforeunload', () => {
|
|
2058
|
+
this.cleanFlags();
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2061
|
+
cleanFlags() {
|
|
2062
|
+
this.sessionStorage.removeItem(storeKeyFinalState);
|
|
2063
|
+
}
|
|
2055
2064
|
/**
|
|
2056
2065
|
* Called when refresh token is re-fetched.
|
|
2057
2066
|
*
|
|
@@ -2097,6 +2106,7 @@ class Auth {
|
|
|
2097
2106
|
this.log.info('authorization code received', code);
|
|
2098
2107
|
const rsp = yield this.exchangeCode(code);
|
|
2099
2108
|
this.log.info('redirecting back to final destination', finalLocation);
|
|
2109
|
+
this.cleanFlags();
|
|
2100
2110
|
this.location.assign(finalLocation);
|
|
2101
2111
|
return rsp;
|
|
2102
2112
|
});
|
|
@@ -2132,6 +2142,7 @@ class Auth {
|
|
|
2132
2142
|
authUser.meta.preferredLanguage = data.preferred_language || 'en';
|
|
2133
2143
|
}
|
|
2134
2144
|
this[user] = authUser;
|
|
2145
|
+
this.bindListeners();
|
|
2135
2146
|
return data;
|
|
2136
2147
|
}).catch((error) => {
|
|
2137
2148
|
this.log.error('data fetch form info endpoint failed', { oauth2InfoURL, headers, error });
|
|
@@ -2154,7 +2165,11 @@ class Auth {
|
|
|
2154
2165
|
* Refresh token found in the storage,
|
|
2155
2166
|
* let's use it to get new access token
|
|
2156
2167
|
*/
|
|
2157
|
-
return this.exchangeRefresh(refreshToken)
|
|
2168
|
+
return this.exchangeRefresh(refreshToken)
|
|
2169
|
+
.then(r => {
|
|
2170
|
+
this.bindListeners();
|
|
2171
|
+
return r;
|
|
2172
|
+
});
|
|
2158
2173
|
}
|
|
2159
2174
|
throw new Error('Unauthenticated');
|
|
2160
2175
|
});
|
|
@@ -2174,6 +2189,7 @@ class Auth {
|
|
|
2174
2189
|
*/
|
|
2175
2190
|
startAuthenticationFlow() {
|
|
2176
2191
|
this.log.debug('starting new authentication flow');
|
|
2192
|
+
this.cleanFlags();
|
|
2177
2193
|
this.incFlowCounter();
|
|
2178
2194
|
const state = Math.random().toString(36).substring(2);
|
|
2179
2195
|
this.sessionStorage.setItem(`auth.state.${state}.location`, this.getRedirect(this.location.toString()));
|
|
@@ -71037,7 +71053,7 @@ var script$8 = {
|
|
|
71037
71053
|
const __vue_script__$8 = script$8;
|
|
71038
71054
|
|
|
71039
71055
|
/* template */
|
|
71040
|
-
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)])};
|
|
71041
71057
|
var __vue_staticRenderFns__$7 = [];
|
|
71042
71058
|
|
|
71043
71059
|
/* style */
|
|
@@ -80918,7 +80934,16 @@ var script$A = {
|
|
|
80918
80934
|
|
|
80919
80935
|
data() {
|
|
80920
80936
|
return {
|
|
80921
|
-
passive: new Set()
|
|
80937
|
+
passive: new Set(),
|
|
80938
|
+
|
|
80939
|
+
/**
|
|
80940
|
+
* Set initial value to NULL
|
|
80941
|
+
*
|
|
80942
|
+
* First interval will detect that null is not true|false
|
|
80943
|
+
* and set it accordingly to the current state
|
|
80944
|
+
*/
|
|
80945
|
+
hasFocus: null,
|
|
80946
|
+
hasFocusObserver: 0
|
|
80922
80947
|
};
|
|
80923
80948
|
},
|
|
80924
80949
|
|
|
@@ -80928,16 +80953,30 @@ var script$A = {
|
|
|
80928
80953
|
isLoading: 'wfPrompts/isLoading'
|
|
80929
80954
|
}),
|
|
80930
80955
|
|
|
80956
|
+
/**
|
|
80957
|
+
* Prompts with handlers, observed with "watch"
|
|
80958
|
+
*
|
|
80959
|
+
* Prompts are only returned when document has focus!
|
|
80960
|
+
*
|
|
80961
|
+
* @returns {*}
|
|
80962
|
+
*/
|
|
80931
80963
|
withHandlers() {
|
|
80932
|
-
return this.prompts.filter(({
|
|
80964
|
+
return (this.hasFocus ? this.prompts : []).filter(({
|
|
80933
80965
|
ref
|
|
80934
80966
|
}) => !!definitions[ref] && !!definitions[ref].handler).map(prompt => ({ ...definitions[prompt.ref],
|
|
80935
80967
|
prompt
|
|
80936
80968
|
}));
|
|
80937
80969
|
},
|
|
80938
80970
|
|
|
80971
|
+
/**
|
|
80972
|
+
* Prompts with components
|
|
80973
|
+
*
|
|
80974
|
+
* Prompts are only returned when document has focus!
|
|
80975
|
+
*
|
|
80976
|
+
* @returns {*}
|
|
80977
|
+
*/
|
|
80939
80978
|
withComponents() {
|
|
80940
|
-
return this.prompts.filter(({
|
|
80979
|
+
return (this.hasFocus ? this.prompts : []).filter(({
|
|
80941
80980
|
ref
|
|
80942
80981
|
}) => !!definitions[ref] && !!definitions[ref].component).map(prompt => ({ ...definitions[prompt.ref],
|
|
80943
80982
|
prompt
|
|
@@ -81021,9 +81060,38 @@ var script$A = {
|
|
|
81021
81060
|
|
|
81022
81061
|
pVal(prompt, k, def = undefined) {
|
|
81023
81062
|
return pVal(prompt.payload, k, def);
|
|
81063
|
+
},
|
|
81064
|
+
|
|
81065
|
+
clearDocumentFocusObserver() {
|
|
81066
|
+
if (this.hasFocusObserver) {
|
|
81067
|
+
window.clearInterval(this.hasFocusObserver);
|
|
81068
|
+
}
|
|
81069
|
+
},
|
|
81070
|
+
|
|
81071
|
+
/**
|
|
81072
|
+
* Interval check if window has focus
|
|
81073
|
+
*/
|
|
81074
|
+
setDocumentFocusObserver() {
|
|
81075
|
+
this.clearDocumentFocusObserver();
|
|
81076
|
+
this.hasFocusObserver = window.setInterval(() => {
|
|
81077
|
+
const f = document.hasFocus();
|
|
81078
|
+
|
|
81079
|
+
if (this.hasFocus !== f) {
|
|
81080
|
+
this.hasFocus = f;
|
|
81081
|
+
}
|
|
81082
|
+
}, 250);
|
|
81024
81083
|
}
|
|
81025
81084
|
|
|
81085
|
+
},
|
|
81086
|
+
|
|
81087
|
+
mounted() {
|
|
81088
|
+
this.setDocumentFocusObserver();
|
|
81089
|
+
},
|
|
81090
|
+
|
|
81091
|
+
beforeDestroy() {
|
|
81092
|
+
this.clearDocumentFocusObserver();
|
|
81026
81093
|
}
|
|
81094
|
+
|
|
81027
81095
|
};
|
|
81028
81096
|
|
|
81029
81097
|
/* script */
|
|
@@ -81040,11 +81108,11 @@ var __vue_staticRenderFns__$w = [];
|
|
|
81040
81108
|
/* style */
|
|
81041
81109
|
const __vue_inject_styles__$B = function (inject) {
|
|
81042
81110
|
if (!inject) return
|
|
81043
|
-
inject("data-v-
|
|
81111
|
+
inject("data-v-1c635754_0", { source: ".slide-enter-active[data-v-1c635754]{transition:all .3s ease}.slide-leave-active[data-v-1c635754]{transition:all .8s cubic-bezier(1,.5,.8,1)}.slide-enter[data-v-1c635754],.slide-leave-to[data-v-1c635754]{transform:translateX(10px);opacity:0}", map: undefined, media: undefined });
|
|
81044
81112
|
|
|
81045
81113
|
};
|
|
81046
81114
|
/* scoped */
|
|
81047
|
-
const __vue_scope_id__$B = "data-v-
|
|
81115
|
+
const __vue_scope_id__$B = "data-v-1c635754";
|
|
81048
81116
|
/* module identifier */
|
|
81049
81117
|
const __vue_module_identifier__$B = undefined;
|
|
81050
81118
|
/* functional template */
|
|
@@ -81606,6 +81674,14 @@ var __vue_staticRenderFns__$z = [];
|
|
|
81606
81674
|
//
|
|
81607
81675
|
//
|
|
81608
81676
|
//
|
|
81677
|
+
//
|
|
81678
|
+
//
|
|
81679
|
+
//
|
|
81680
|
+
//
|
|
81681
|
+
//
|
|
81682
|
+
//
|
|
81683
|
+
//
|
|
81684
|
+
//
|
|
81609
81685
|
var script$E = {
|
|
81610
81686
|
props: {
|
|
81611
81687
|
sidebarPinned: {
|
|
@@ -81688,17 +81764,17 @@ const __vue_script__$E = script$E;
|
|
|
81688
81764
|
/* template */
|
|
81689
81765
|
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:{
|
|
81690
81766
|
'expanded': _vm.sidebarPinned,
|
|
81691
|
-
}})],_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
|
|
81767
|
+
}})],_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)])};
|
|
81692
81768
|
var __vue_staticRenderFns__$A = [];
|
|
81693
81769
|
|
|
81694
81770
|
/* style */
|
|
81695
81771
|
const __vue_inject_styles__$F = function (inject) {
|
|
81696
81772
|
if (!inject) return
|
|
81697
|
-
inject("data-v-
|
|
81773
|
+
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 });
|
|
81698
81774
|
|
|
81699
81775
|
};
|
|
81700
81776
|
/* scoped */
|
|
81701
|
-
const __vue_scope_id__$F = "data-v-
|
|
81777
|
+
const __vue_scope_id__$F = "data-v-2ccaa89e";
|
|
81702
81778
|
/* module identifier */
|
|
81703
81779
|
const __vue_module_identifier__$F = undefined;
|
|
81704
81780
|
/* functional template */
|
|
@@ -82332,6 +82408,11 @@ var __vue_staticRenderFns__$C = [];
|
|
|
82332
82408
|
//
|
|
82333
82409
|
//
|
|
82334
82410
|
//
|
|
82411
|
+
//
|
|
82412
|
+
//
|
|
82413
|
+
//
|
|
82414
|
+
//
|
|
82415
|
+
//
|
|
82335
82416
|
var script$H = {
|
|
82336
82417
|
name: 'TourComponent',
|
|
82337
82418
|
i18nOptions: {
|
|
@@ -82393,13 +82474,13 @@ var script$H = {
|
|
|
82393
82474
|
const __vue_script__$H = script$H;
|
|
82394
82475
|
|
|
82395
82476
|
/* template */
|
|
82396
|
-
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,
|
|
82477
|
+
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()};
|
|
82397
82478
|
var __vue_staticRenderFns__$D = [];
|
|
82398
82479
|
|
|
82399
82480
|
/* style */
|
|
82400
82481
|
const __vue_inject_styles__$I = function (inject) {
|
|
82401
82482
|
if (!inject) return
|
|
82402
|
-
inject("data-v-
|
|
82483
|
+
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 });
|
|
82403
82484
|
|
|
82404
82485
|
};
|
|
82405
82486
|
/* scoped */
|
|
@@ -83218,7 +83299,11 @@ var script$R = {
|
|
|
83218
83299
|
if (this.disabledSorting) {
|
|
83219
83300
|
this.selected = this.frozen().filter(i => !this.available.includes(i));
|
|
83220
83301
|
} else {
|
|
83221
|
-
this.selected.
|
|
83302
|
+
if (!this.selected.some(({
|
|
83303
|
+
value = ''
|
|
83304
|
+
}) => value === item.value)) {
|
|
83305
|
+
this.selected.push(item);
|
|
83306
|
+
}
|
|
83222
83307
|
}
|
|
83223
83308
|
}, 300),
|
|
83224
83309
|
|
|
@@ -84857,10 +84942,6 @@ function index$6 ({ api }) {
|
|
|
84857
84942
|
commit('active', false);
|
|
84858
84943
|
});
|
|
84859
84944
|
},
|
|
84860
|
-
// unwatch ({ state, commit }: ActionContext<State, State>): void {
|
|
84861
|
-
// commit('watching', undefined)
|
|
84862
|
-
// clearInterval(state.wiptr)
|
|
84863
|
-
// },
|
|
84864
84945
|
// fetch calls automation API endpoint and collects all states
|
|
84865
84946
|
update({ commit, state }) {
|
|
84866
84947
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -84914,9 +84995,6 @@ function index$6 ({ api }) {
|
|
|
84914
84995
|
loading(state, flag = true) {
|
|
84915
84996
|
state.loading = flag;
|
|
84916
84997
|
},
|
|
84917
|
-
// watching (state: State, ptr?: number): void {
|
|
84918
|
-
// state.wiptr = ptr
|
|
84919
|
-
// },
|
|
84920
84998
|
active(state, m) {
|
|
84921
84999
|
state.active = m;
|
|
84922
85000
|
},
|