From 5cc4fd68397b77f61cd623cc0e3997499f861073 Mon Sep 17 00:00:00 2001 From: farobarcha Date: Mon, 9 Sep 2019 02:48:05 +0500 Subject: [PATCH] ReferenceError: VueGoodWizard is not defined - Fixed --- dist/vue-good-wizard.js | 2 +- dist/vue-good-wizard.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/vue-good-wizard.js b/dist/vue-good-wizard.js index 7fcd491..e0f2270 100644 --- a/dist/vue-good-wizard.js +++ b/dist/vue-good-wizard.js @@ -7,7 +7,7 @@ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : - (factory((global.vueGoodWizard = {}))); + (factory((global.VueGoodWizard = {}))); }(this, (function (exports) { 'use strict'; (function () { diff --git a/dist/vue-good-wizard.min.js b/dist/vue-good-wizard.min.js index db708e1..aced2bc 100644 --- a/dist/vue-good-wizard.min.js +++ b/dist/vue-good-wizard.min.js @@ -4,5 +4,5 @@ * Released under the MIT License. */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.vueGoodWizard={})}(this,function(t){"use strict";!function(){if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style"),i=' /* Utilities *******************************/ .pull-left[data-v-c21d83ca]{ float: left !important; } .pull-right[data-v-c21d83ca]{ float: right !important; } .clearfix[data-v-c21d83ca]::after { display: block; content: ""; clear: both; } /* Header Steps *******************************/ .wizard[data-v-c21d83ca] { position: relative; width: 100%; } .wizard__steps[data-v-c21d83ca]{ list-style-type: none; text-align: justify; -ms-text-justify: distribute-all-lines; text-justify: distribute-all-lines; padding: 0; height: 70px; position: relative; } .stretch[data-v-c21d83ca] { width: 100%; display: inline-block; font-size: 0; line-height: 0 } .wizard__step[data-v-c21d83ca]{ height: 70px; vertical-align: bottom; display: inline-block; text-align: center; position: relative; } .wizard__step:not(:first-child) .wizard__step__line[data-v-c21d83ca]{ position: absolute; width: 100%; left: -50%; bottom: 12px; height: 3px; background-color: #b9c7d2; } .wizard__step__indicator[data-v-c21d83ca]{ box-sizing: content-box; display: block; width: 16px; height: 16px; background-color: #51abe4; border-radius: 50%; border: 3px solid #fff; position: absolute; left: 50%; margin-left: -10px; bottom: 2px; z-index: 1; } .wizard__step.active .wizard__step__indicator[data-v-c21d83ca]{ background-color: #6eb165; } .wizard__step.active:not(:first-child) .wizard__step__line[data-v-c21d83ca]{ background-color: #6eb165; /* green */ } .wizard__step__label[data-v-c21d83ca]{ color: #98a4af; font-weight: bold; } /* Wizard body *******************************/ .wizard__body[data-v-c21d83ca]{ margin-top: 30px; min-height: 400px; margin-left: 50px; margin-right: 50px; border: 1px solid #aebac4; background-color: #fff; position: relative; border-radius: 5px; padding-bottom: 50px; } .wizard__body__step[data-v-c21d83ca]{ padding: 16px; } .wizard__arrow[data-v-c21d83ca]{ position: absolute; display: block; width: 30px; height: 30px; border: 1px solid #aebac4; top: 85px; /* height of step + body margin -15 */ border-top-right-radius: 5px; background-color: #fff; border-left: none; border-bottom: none; transform: rotate(-45deg); z-index: 2; -webkit-transition: left 0.3s; -o-transition: left 0.3s; transition: left 0.3s; } /* Wizard body *******************************/ .wizard__body__actions[data-v-c21d83ca]{ position: absolute; bottom: 0px; height: 50px; width: 100%; border-top: 1px solid #aebac4; background-color: #b9c7d2; } .wizard__body__actions a[data-v-c21d83ca]{ width: 120px; height: 100%; display: block; background-color: #51abe4; color: white; font-weight: bold; text-align: center; line-height: 50px; cursor: pointer; -webkit-transition: background-color 0.3s; -o-transition: background-color 0.3s; transition: background-color 0.3s; } .wizard__body__actions a.disabled[data-v-c21d83ca]{ cursor: not-allowed; -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; opacity: 0.5; } .wizard__body__actions a>.vgw-icon[data-v-c21d83ca], .wizard__body__actions a>span[data-v-c21d83ca]{ display: inline-block; vertical-align: middle; position: relative; } .wizard__body__actions .vgw-icon[data-v-c21d83ca]::after{ position: absolute; content: ""; transform: rotate(-45deg); width: 8px; height: 8px; top: 50%; margin-top: -5px; } .vgw-icon.vgw-next[data-v-c21d83ca]::after{ border-bottom: 2px solid white; border-right: 2px solid white; } .vgw-icon.vgw-prev[data-v-c21d83ca]::after{ border-top: 2px solid white; border-left: 2px solid white; left: -10px; } .wizard__body__actions a[data-v-c21d83ca]:hover{ background-color: #357fae; } .wizard__body__actions a.final-step[data-v-c21d83ca]{ background-color: #6eb165; } /* mobile */ .wizard__body.vgw-mobile[data-v-c21d83ca]{ margin-left: 10px; margin-right: 10px; } .wizard__step.vgw-mobile[data-v-c21d83ca]{ display: none; } .wizard__step .wizard__step__line.vgw-mobile[data-v-c21d83ca]{ display: none; } .wizard__step.active.vgw-mobile[data-v-c21d83ca]{ display: inline-block; } ';e.type="text/css",e.styleSheet?e.styleSheet.cssText=i:e.appendChild(document.createTextNode(i)),t.appendChild(e)}}();var e={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"wizard"},[i("ul",{staticClass:"wizard__steps"},t._l(t.steps,function(e,a){return i("li",{key:a,staticClass:"wizard__step",class:{active:t.isMobile?t.currentStep===a:t.currentStep>=a,"vgw-mobile":t.isMobile},style:t.wizardStepStyle},[i("span",{staticClass:"wizard__step__line",class:{"vgw-mobile":t.isMobile}}),t._v(" "),i("span",{staticClass:"wizard__step__label"},[t._v(t._s(e.label))]),t._v(" "),i("span",{staticClass:"wizard__step__indicator"})])})),t._v(" "),i("span",{staticClass:"wizard__arrow",style:{left:t.arrowPosition}}),t._v(" "),i("div",{ref:"wizard-body",staticClass:"wizard__body",class:{"vgw-mobile":t.isMobile}},[i("div",{key:t.currentSlot,staticClass:"wizard__body__step"},[t._t(t.currentSlot)],2),t._v(" "),i("div",{staticClass:"wizard__body__actions clearfix"},[t.backEnabled?i("a",{staticClass:"wizard__back pull-left",on:{click:function(e){t.goBack()}}},[i("i",{staticClass:"vgw-icon vgw-prev"}),t._v(" "),i("span",[t._v(t._s(t.previousStepLabel))])]):t._e(),t._v(" "),t.currentStep!=t.steps.length-1?i("a",{staticClass:"wizard__next pull-right",class:{disabled:t.options[t.currentStep].nextDisabled},on:{click:function(e){t.goNext()}}},[i("span",[t._v(t._s(t.nextStepLabel))]),t._v(" "),i("i",{staticClass:"vgw-icon vgw-next"})]):t._e(),t._v(" "),t.currentStep==t.steps.length-1?i("a",{staticClass:"wizard__next pull-right final-step",class:{disabled:t.options[t.currentStep].nextDisabled},on:{click:function(e){t.goNext()}}},[t._v(" "+t._s(t.finalStepLabel)+" ")]):t._e()])])])},staticRenderFns:[],_scopeId:"data-v-c21d83ca",name:"vue-good-wizard",props:{steps:{},previousStepLabel:{default:"Back"},nextStepLabel:{default:"Next"},finalStepLabel:{default:"Save"},onNext:{},onBack:{}},watch:{steps:{handler:function(){this.parseOptions()},immediate:!0}},data:function(){return{currentStep:0,isMounted:!1,resizer:null,isMobile:!1,options:[]}},computed:{wizardStepStyle:function(){return this.isMobile?{width:"100%"}:{width:100/this.steps.length+"%"}},mobileArrowPosition:function(){return"calc(50% - 14px)"},arrowPosition:function(){if(this.isMobile)return this.mobileArrowPosition;var t=100/this.steps.length,e=t*this.currentStep+t/2;return 1==this.steps.length?"calc("+e+"%)":"calc("+e+"% - 14px)"},currentSlot:function(){return this.steps[this.currentStep].slot},backEnabled:function(){return 0!=this.currentStep}},methods:{goNext:function(t){(t||"function"!=typeof this.onNext||this.onNext(this.currentStep))&&this.currentStep0&&this.currentStep--},goTo:function(t){Number.isInteger(t)&&t=0&&(this.currentStep=t)},parseOptions:function(){this.options=[];for(var t=0;t.vgw-icon[data-v-c21d83ca], .wizard__body__actions a>span[data-v-c21d83ca]{ display: inline-block; vertical-align: middle; position: relative; } .wizard__body__actions .vgw-icon[data-v-c21d83ca]::after{ position: absolute; content: ""; transform: rotate(-45deg); width: 8px; height: 8px; top: 50%; margin-top: -5px; } .vgw-icon.vgw-next[data-v-c21d83ca]::after{ border-bottom: 2px solid white; border-right: 2px solid white; } .vgw-icon.vgw-prev[data-v-c21d83ca]::after{ border-top: 2px solid white; border-left: 2px solid white; left: -10px; } .wizard__body__actions a[data-v-c21d83ca]:hover{ background-color: #357fae; } .wizard__body__actions a.final-step[data-v-c21d83ca]{ background-color: #6eb165; } /* mobile */ .wizard__body.vgw-mobile[data-v-c21d83ca]{ margin-left: 10px; margin-right: 10px; } .wizard__step.vgw-mobile[data-v-c21d83ca]{ display: none; } .wizard__step .wizard__step__line.vgw-mobile[data-v-c21d83ca]{ display: none; } .wizard__step.active.vgw-mobile[data-v-c21d83ca]{ display: inline-block; } ';e.type="text/css",e.styleSheet?e.styleSheet.cssText=i:e.appendChild(document.createTextNode(i)),t.appendChild(e)}}();var e={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"wizard"},[i("ul",{staticClass:"wizard__steps"},t._l(t.steps,function(e,a){return i("li",{key:a,staticClass:"wizard__step",class:{active:t.isMobile?t.currentStep===a:t.currentStep>=a,"vgw-mobile":t.isMobile},style:t.wizardStepStyle},[i("span",{staticClass:"wizard__step__line",class:{"vgw-mobile":t.isMobile}}),t._v(" "),i("span",{staticClass:"wizard__step__label"},[t._v(t._s(e.label))]),t._v(" "),i("span",{staticClass:"wizard__step__indicator"})])})),t._v(" "),i("span",{staticClass:"wizard__arrow",style:{left:t.arrowPosition}}),t._v(" "),i("div",{ref:"wizard-body",staticClass:"wizard__body",class:{"vgw-mobile":t.isMobile}},[i("div",{key:t.currentSlot,staticClass:"wizard__body__step"},[t._t(t.currentSlot)],2),t._v(" "),i("div",{staticClass:"wizard__body__actions clearfix"},[t.backEnabled?i("a",{staticClass:"wizard__back pull-left",on:{click:function(e){t.goBack()}}},[i("i",{staticClass:"vgw-icon vgw-prev"}),t._v(" "),i("span",[t._v(t._s(t.previousStepLabel))])]):t._e(),t._v(" "),t.currentStep!=t.steps.length-1?i("a",{staticClass:"wizard__next pull-right",class:{disabled:t.options[t.currentStep].nextDisabled},on:{click:function(e){t.goNext()}}},[i("span",[t._v(t._s(t.nextStepLabel))]),t._v(" "),i("i",{staticClass:"vgw-icon vgw-next"})]):t._e(),t._v(" "),t.currentStep==t.steps.length-1?i("a",{staticClass:"wizard__next pull-right final-step",class:{disabled:t.options[t.currentStep].nextDisabled},on:{click:function(e){t.goNext()}}},[t._v(" "+t._s(t.finalStepLabel)+" ")]):t._e()])])])},staticRenderFns:[],_scopeId:"data-v-c21d83ca",name:"vue-good-wizard",props:{steps:{},previousStepLabel:{default:"Back"},nextStepLabel:{default:"Next"},finalStepLabel:{default:"Save"},onNext:{},onBack:{}},watch:{steps:{handler:function(){this.parseOptions()},immediate:!0}},data:function(){return{currentStep:0,isMounted:!1,resizer:null,isMobile:!1,options:[]}},computed:{wizardStepStyle:function(){return this.isMobile?{width:"100%"}:{width:100/this.steps.length+"%"}},mobileArrowPosition:function(){return"calc(50% - 14px)"},arrowPosition:function(){if(this.isMobile)return this.mobileArrowPosition;var t=100/this.steps.length,e=t*this.currentStep+t/2;return 1==this.steps.length?"calc("+e+"%)":"calc("+e+"% - 14px)"},currentSlot:function(){return this.steps[this.currentStep].slot},backEnabled:function(){return 0!=this.currentStep}},methods:{goNext:function(t){(t||"function"!=typeof this.onNext||this.onNext(this.currentStep))&&this.currentStep0&&this.currentStep--},goTo:function(t){Number.isInteger(t)&&t=0&&(this.currentStep=t)},parseOptions:function(){this.options=[];for(var t=0;t