@activeprospect/integration-components
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -5,2 +5,10 @@ # Change Log | ||
## [3.0.0] - 2021-12-08 | ||
### Added | ||
- expanded what's included in component `LoadingScreen` | ||
## [2.1.0] - 2021-11-17 | ||
### Added | ||
- add new component `LoadingScreen` | ||
## [2.0.0] - 2021-02-25 | ||
@@ -7,0 +15,0 @@ ### Added |
@@ -299,2 +299,5 @@ // | ||
// | ||
// | ||
// | ||
// | ||
var script = { | ||
@@ -309,5 +312,6 @@ name: 'loading-screen', | ||
/** | ||
* The function to be called after a 2 second wait | ||
* Custom function to be called after a 2 second wait (default is | ||
* `this.$store.dispatch('finish')`) | ||
*/ | ||
finish: { | ||
onFinish: { | ||
type: Function, | ||
@@ -317,6 +321,16 @@ default: undefined | ||
}, | ||
methods: { | ||
finish() { | ||
if (this.$props.onFinish) { | ||
this.$props.onFinish(); | ||
} else { | ||
this.$store.dispatch('finish'); | ||
} | ||
} | ||
}, | ||
mounted() { | ||
setTimeout(() => { | ||
this.$props.finish(); | ||
this.finish(); | ||
}, 2000); | ||
@@ -338,3 +352,3 @@ } | ||
return _c('div', [_c('section', [_c('span', { | ||
return _c('div', [_c('header', [_vm._v("\n " + _vm._s(_vm.moduleName) + "\n ")]), _vm._v(" "), _c('section', [_c('span', { | ||
staticClass: "loading" | ||
@@ -341,0 +355,0 @@ }), _vm._v(" We're setting up your " + _vm._s(_vm.moduleName) + " step now.\n ")])]); |
@@ -1,1 +0,1 @@ | ||
var LeadconduitIntegrationComponents=function(t){"use strict";function n(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var o,i,r=[],s=!0,a=!1;try{for(e=e.call(t);!(s=(o=e.next()).done)&&(r.push(o.value),!n||r.length!==n);s=!0);}catch(t){a=!0,i=t}finally{try{s||null==e.return||e.return()}finally{if(a)throw i}}return r}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return e(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function o(t,n,e,o,i,r,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const l="function"==typeof e?e.options:e;let d;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),o&&(l._scopeId=o),r?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=d):n&&(d=s?function(t){n.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){n.call(this,a(t))}),d)if(l.functional){const t=l.render;l.render=function(n,e){return d.call(e),t(n,e)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,d):[d]}return e}var i=o({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("footer",[e("button",{staticClass:"tertiary-control",attrs:{"data-test":"nav-cancel"},on:{click:t.cancel}},[t._v("Cancel")]),t._v(" "),t.showPrev?e("button",{staticClass:"tertiary-control",attrs:{"data-test":"nav-prev"},on:{click:t.prev}},[t._v("Prev")]):t._e(),t._v(" "),t._t("footer"),t._v(" "),t.showFinish?e("button",{staticClass:"primary",attrs:{disabled:t.disableFinish,"data-test":"nav-finish"},on:{click:t.finish}},[t._v("Finish")]):t._e(),t._v(" "),t.showNext?e("button",{staticClass:"primary",attrs:{disabled:t.disableNext,"data-test":"nav-next"},on:{click:t.next}},[t._v("Next")]):t._e()],2)])},staticRenderFns:[]},void 0,{props:{disableNext:{type:Boolean,default:!1},disableFinish:{type:Boolean,default:!1},onNext:{type:Function,default:void 0},onFinish:{type:Function,default:void 0},navHistory:{type:Array,default:function(){return[]}}},data:function(){return{page:this.$router?this.$router.currentRoute.path:"/"}},computed:{pageNo:function(){return"/"===this.page?1:parseInt(this.page.slice(1),10)},showFinish:function(){return!!this.$props.onFinish},showNext:function(){return!!this.$props.onNext},showPrev:function(){return"string"==typeof this.$props.navHistory.slice(-1)[0]||this.pageNo>1}},methods:{cancel:function(){try{this.$store.dispatch("cancel")}catch(t){console.warn('Navigation Error - Could not dispatch "cancel" to Vuex store.')}},prev:function(){try{var t=this.$props.navHistory.pop();t||(t="/".concat(this.pageNo-1),console.debug("Navigation.vue: no previous page in history; using previous page by number: '".concat(t,"'"))),this.$router.push(t)}catch(t){console.warn("Navigation Error - Could not direct to previous page.")}},next:function(){this.$props.onNext?(this.$props.navHistory.push(this.page),this.$props.onNext()):console.debug("Navigation: next() called with no :onNext")},finish:function(){this.$props.onFinish?this.$props.onFinish():console.debug("Navigation: finish() called with no :onFinish")}}},void 0,!1,void 0,!1,void 0,void 0,void 0),r=o({render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",[n("section",[n("span",{staticClass:"loading"}),this._v(" We're setting up your "+this._s(this.moduleName)+" step now.\n ")])])},staticRenderFns:[]},void 0,{name:"loading-screen",props:{moduleName:String,finish:{type:Function,default:void 0}},mounted:function(){var t=this;setTimeout((function(){t.$props.finish()}),2e3)}},void 0,!1,void 0,!1,void 0,void 0,void 0),s=Object.freeze({__proto__:null,Navigation:i,LoadingScreen:r}),a=function(t){a.installed||(a.installed=!0,Object.entries(s).forEach((function(e){var o=n(e,2),i=o[0],r=o[1];t.component(i,r)})))},c={install:a},u=null;return"undefined"!=typeof window?u=window.Vue:"undefined"!=typeof global&&(u=global.Vue),u&&u.use(c),t.LoadingScreen=r,t.Navigation=i,t.default=c,Object.defineProperty(t,"__esModule",{value:!0}),t}({}); | ||
var LeadconduitIntegrationComponents=function(t){"use strict";function n(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var o,i,r=[],s=!0,a=!1;try{for(e=e.call(t);!(s=(o=e.next()).done)&&(r.push(o.value),!n||r.length!==n);s=!0);}catch(t){a=!0,i=t}finally{try{s||null==e.return||e.return()}finally{if(a)throw i}}return r}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return e(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function o(t,n,e,o,i,r,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const l="function"==typeof e?e.options:e;let d;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),o&&(l._scopeId=o),r?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=d):n&&(d=s?function(t){n.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){n.call(this,a(t))}),d)if(l.functional){const t=l.render;l.render=function(n,e){return d.call(e),t(n,e)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,d):[d]}return e}var i=o({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("footer",[e("button",{staticClass:"tertiary-control",attrs:{"data-test":"nav-cancel"},on:{click:t.cancel}},[t._v("Cancel")]),t._v(" "),t.showPrev?e("button",{staticClass:"tertiary-control",attrs:{"data-test":"nav-prev"},on:{click:t.prev}},[t._v("Prev")]):t._e(),t._v(" "),t._t("footer"),t._v(" "),t.showFinish?e("button",{staticClass:"primary",attrs:{disabled:t.disableFinish,"data-test":"nav-finish"},on:{click:t.finish}},[t._v("Finish")]):t._e(),t._v(" "),t.showNext?e("button",{staticClass:"primary",attrs:{disabled:t.disableNext,"data-test":"nav-next"},on:{click:t.next}},[t._v("Next")]):t._e()],2)])},staticRenderFns:[]},void 0,{props:{disableNext:{type:Boolean,default:!1},disableFinish:{type:Boolean,default:!1},onNext:{type:Function,default:void 0},onFinish:{type:Function,default:void 0},navHistory:{type:Array,default:function(){return[]}}},data:function(){return{page:this.$router?this.$router.currentRoute.path:"/"}},computed:{pageNo:function(){return"/"===this.page?1:parseInt(this.page.slice(1),10)},showFinish:function(){return!!this.$props.onFinish},showNext:function(){return!!this.$props.onNext},showPrev:function(){return"string"==typeof this.$props.navHistory.slice(-1)[0]||this.pageNo>1}},methods:{cancel:function(){try{this.$store.dispatch("cancel")}catch(t){console.warn('Navigation Error - Could not dispatch "cancel" to Vuex store.')}},prev:function(){try{var t=this.$props.navHistory.pop();t||(t="/".concat(this.pageNo-1),console.debug("Navigation.vue: no previous page in history; using previous page by number: '".concat(t,"'"))),this.$router.push(t)}catch(t){console.warn("Navigation Error - Could not direct to previous page.")}},next:function(){this.$props.onNext?(this.$props.navHistory.push(this.page),this.$props.onNext()):console.debug("Navigation: next() called with no :onNext")},finish:function(){this.$props.onFinish?this.$props.onFinish():console.debug("Navigation: finish() called with no :onFinish")}}},void 0,!1,void 0,!1,void 0,void 0,void 0),r=o({render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",[n("header",[this._v("\n "+this._s(this.moduleName)+"\n ")]),this._v(" "),n("section",[n("span",{staticClass:"loading"}),this._v(" We're setting up your "+this._s(this.moduleName)+" step now.\n ")])])},staticRenderFns:[]},void 0,{name:"loading-screen",props:{moduleName:String,onFinish:{type:Function,default:void 0}},methods:{finish:function(){this.$props.onFinish?this.$props.onFinish():this.$store.dispatch("finish")}},mounted:function(){var t=this;setTimeout((function(){t.finish()}),2e3)}},void 0,!1,void 0,!1,void 0,void 0,void 0),s=Object.freeze({__proto__:null,Navigation:i,LoadingScreen:r}),a=function(t){a.installed||(a.installed=!0,Object.entries(s).forEach((function(e){var o=n(e,2),i=o[0],r=o[1];t.component(i,r)})))},c={install:a},u=null;return"undefined"!=typeof window?u=window.Vue:"undefined"!=typeof global&&(u=global.Vue),u&&u.use(c),t.LoadingScreen=r,t.Navigation=i,t.default=c,Object.defineProperty(t,"__esModule",{value:!0}),t}({}); |
@@ -308,2 +308,5 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});function _slicedToArray(arr, i) { | ||
// | ||
// | ||
// | ||
// | ||
var script = { | ||
@@ -318,5 +321,6 @@ name: 'loading-screen', | ||
/** | ||
* The function to be called after a 2 second wait | ||
* Custom function to be called after a 2 second wait (default is | ||
* `this.$store.dispatch('finish')`) | ||
*/ | ||
finish: { | ||
onFinish: { | ||
type: Function, | ||
@@ -326,2 +330,11 @@ default: undefined | ||
}, | ||
methods: { | ||
finish: function finish() { | ||
if (this.$props.onFinish) { | ||
this.$props.onFinish(); | ||
} else { | ||
this.$store.dispatch('finish'); | ||
} | ||
} | ||
}, | ||
mounted: function mounted() { | ||
@@ -331,3 +344,3 @@ var _this = this; | ||
setTimeout(function () { | ||
_this.$props.finish(); | ||
_this.finish(); | ||
}, 2000); | ||
@@ -346,3 +359,3 @@ } | ||
return _c('div', [_vm._ssrNode("<section><span class=\"loading\"></span>" + _vm._ssrEscape(" We're setting up your " + _vm._s(_vm.moduleName) + " step now.\n ") + "</section>")]); | ||
return _c('div', [_vm._ssrNode("<header>" + _vm._ssrEscape("\n " + _vm._s(_vm.moduleName) + "\n ") + "</header> <section><span class=\"loading\"></span>" + _vm._ssrEscape(" We're setting up your " + _vm._s(_vm.moduleName) + " step now.\n ") + "</section>")]); | ||
}; | ||
@@ -359,3 +372,3 @@ | ||
var __vue_module_identifier__ = "data-v-5e447c5b"; | ||
var __vue_module_identifier__ = "data-v-351fb316"; | ||
/* functional template */ | ||
@@ -362,0 +375,0 @@ |
{ | ||
"name": "@activeprospect/integration-components", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "A Vue component library for LeadConduit integrations", | ||
@@ -5,0 +5,0 @@ "main": "dist/leadconduit-integration-components.ssr.js", |
Sorry, the diff of this file is not supported yet
41535
705