From 7150b18626961c31b5769f89d9a1f9a84c9d893e Mon Sep 17 00:00:00 2001 From: Ariel Faur Date: Sun, 13 Sep 2015 22:06:44 -0300 Subject: [PATCH] updated src file and build versions --- dist/ion-wizard.min.js | 2 +- example-storage/www/js/ion-wizard.js | 14 +++++++++++--- example-storage/www/js/ion-wizard.min.js | 2 +- example/www/js/ion-wizard.js | 14 +++++++++++--- example/www/js/ion-wizard.min.js | 2 +- src/ion-wizard.js | 14 +++++++++++--- 6 files changed, 36 insertions(+), 12 deletions(-) diff --git a/dist/ion-wizard.min.js b/dist/ion-wizard.min.js index f19062b..db5c846 100644 --- a/dist/ion-wizard.min.js +++ b/dist/ion-wizard.min.js @@ -1 +1 @@ -angular.module("ionic.wizard",[]).directive("ionWizardContent",["ionContentDirective",function(n){return angular.extend({},n[0],{scope:!1})}]).directive("ionWizard",["$rootScope","$ionicSlideBoxDelegate",function(n,i){return{restrict:"EA",controller:[function(){var n=[];this.addCondition=function(i){n.push(i)},this.getCondition=function(i){return n[i]},this.checkNextCondition=function(i){return i>n.length-1?!1:n[i].next()},this.checkPreviousCondition=function(i){return i>n.length-1?!1:n[i].prev()}}],link:function(t,o,e,r){var d=0;i.enableSlide(!1),o.css("height","100%"),t.$on("wizard:Previous",function(){i.previous()}),t.$on("wizard:Next",function(){i.next()}),t.$watch(function(){return r.checkNextCondition(d)&&r.checkPreviousCondition(d)},function(){n.$broadcast("wizard:NextCondition",r.checkNextCondition(d)),n.$broadcast("wizard:PreviousCondition",r.checkPreviousCondition(d))}),t.$on("slideBox.slideChanged",function(n,i){d=i})}}}]).directive("ionWizardStep",["$q",function(n){return{restrict:"EA",scope:{nextConditionFn:"&nextCondition",prevConditionFn:"&prevCondition"},require:"^^ionWizard",link:function(n,i,t,o){var e=function(){return angular.isUndefined(t.nextCondition)?!0:n.nextConditionFn()},r=function(){return angular.isUndefined(t.prevCondition)?!0:n.prevConditionFn()},d={next:e,prev:r};o.addCondition(d)}}}]).directive("ionWizardPrevious",["$rootScope","$ionicSlideBoxDelegate",function(n){return{restrict:"EA",scope:{},link:function(i,t,o,e){t.addClass("ng-hide"),t.on("click",function(){n.$broadcast("wizard:Previous")}),i.$on("slideBox.slideChanged",function(n,i){t.toggleClass("ng-hide",0==i)}),i.$on("wizard:PreviousCondition",function(n,i){t.attr("disabled",!i)})}}}]).directive("ionWizardNext",["$rootScope","$ionicSlideBoxDelegate",function(n,i){return{restrict:"EA",scope:{},link:function(t,o,e,r){o.on("click",function(){n.$broadcast("wizard:Next")}),t.$on("slideBox.slideChanged",function(n,t){o.toggleClass("ng-hide",t==i.slidesCount()-1)}),t.$on("wizard:NextCondition",function(n,i){o.attr("disabled",!i)})}}}]).directive("ionWizardStart",["$ionicSlideBoxDelegate",function(n){return{restrict:"EA",scope:{startFn:"&ionWizardStart",startCondition:"&condition"},link:function(i,t,o){function e(){return angular.isUndefined(o.condition)?!0:i.startCondition()}t.addClass("ng-hide"),t.on("click",function(){i.startFn()}),i.$watch(function(){return e()},function(n){t.attr("disabled",!n)}),i.$on("slideBox.slideChanged",function(i,o){t.toggleClass("ng-hide",on.length-1?!1:n[i].next()},this.checkPreviousCondition=function(i){return i>n.length-1?!1:n[i].prev()}}],link:function(t,o,e,r){var d=0;i.enableSlide(!1),o.css("height","100%"),t.$on("wizard:Previous",function(){i.previous()}),t.$on("wizard:Next",function(){i.next()}),t.$watch(function(){return r.checkNextCondition(d)&&r.checkPreviousCondition(d)},function(){n.$broadcast("wizard:NextCondition",r.checkNextCondition(d)),n.$broadcast("wizard:PreviousCondition",r.checkPreviousCondition(d))}),t.$on("slideBox.slideChanged",function(n,i){d=i})}}}]).directive("ionWizardStep",["$q",function(n){return{restrict:"EA",scope:{nextConditionFn:"&nextCondition",prevConditionFn:"&prevCondition"},require:"^^ionWizard",link:function(n,i,t,o){var e=function(){return angular.isUndefined(t.nextCondition)?!0:n.nextConditionFn()},r=function(){return angular.isUndefined(t.prevCondition)?!0:n.prevConditionFn()},d={next:e,prev:r};o.addCondition(d)}}}]).directive("ionWizardPrevious",["$rootScope","$ionicSlideBoxDelegate",function(n,i){return{restrict:"EA",scope:{},link:function(t,o,e,r){0==i.currentIndex()&&o.addClass("ng-hide"),o.on("click",function(){n.$broadcast("wizard:Previous")}),t.$on("slideBox.slideChanged",function(n,i){o.toggleClass("ng-hide",0==i)}),t.$on("wizard:PreviousCondition",function(n,i){o.attr("disabled",!i)})}}}]).directive("ionWizardNext",["$rootScope","$ionicSlideBoxDelegate",function(n,i){return{restrict:"EA",scope:{},link:function(t,o,e,r){i.currentIndex()==i.slidesCount()-1&&o.addClass("ng-hide"),o.on("click",function(){n.$broadcast("wizard:Next")}),t.$on("slideBox.slideChanged",function(n,t){o.toggleClass("ng-hide",t==i.slidesCount()-1)}),t.$on("wizard:NextCondition",function(n,i){o.attr("disabled",!i)})}}}]).directive("ionWizardStart",["$ionicSlideBoxDelegate",function(n){return{restrict:"EA",scope:{startFn:"&ionWizardStart",startCondition:"&condition"},link:function(i,t,o){function e(){return angular.isUndefined(o.condition)?!0:i.startCondition()}t.addClass("ng-hide"),n.currentIndex()==n.slidesCount()-1&&t.removeClass("ng-hide"),t.on("click",function(){i.startFn()}),i.$watch(function(){return e()},function(n){t.attr("disabled",!n)}),i.$on("slideBox.slideChanged",function(i,o){t.toggleClass("ng-hide",on.length-1?!1:n[i].next()},this.checkPreviousCondition=function(i){return i>n.length-1?!1:n[i].prev()}}],link:function(t,o,e,r){var d=0;i.enableSlide(!1),o.css("height","100%"),t.$on("wizard:Previous",function(){i.previous()}),t.$on("wizard:Next",function(){i.next()}),t.$watch(function(){return r.checkNextCondition(d)&&r.checkPreviousCondition(d)},function(){n.$broadcast("wizard:NextCondition",r.checkNextCondition(d)),n.$broadcast("wizard:PreviousCondition",r.checkPreviousCondition(d))}),t.$on("slideBox.slideChanged",function(n,i){d=i})}}}]).directive("ionWizardStep",["$q",function(n){return{restrict:"EA",scope:{nextConditionFn:"&nextCondition",prevConditionFn:"&prevCondition"},require:"^^ionWizard",link:function(n,i,t,o){var e=function(){return angular.isUndefined(t.nextCondition)?!0:n.nextConditionFn()},r=function(){return angular.isUndefined(t.prevCondition)?!0:n.prevConditionFn()},d={next:e,prev:r};o.addCondition(d)}}}]).directive("ionWizardPrevious",["$rootScope","$ionicSlideBoxDelegate",function(n){return{restrict:"EA",scope:{},link:function(i,t,o,e){t.addClass("ng-hide"),t.on("click",function(){n.$broadcast("wizard:Previous")}),i.$on("slideBox.slideChanged",function(n,i){t.toggleClass("ng-hide",0==i)}),i.$on("wizard:PreviousCondition",function(n,i){t.attr("disabled",!i)})}}}]).directive("ionWizardNext",["$rootScope","$ionicSlideBoxDelegate",function(n,i){return{restrict:"EA",scope:{},link:function(t,o,e,r){o.on("click",function(){n.$broadcast("wizard:Next")}),t.$on("slideBox.slideChanged",function(n,t){o.toggleClass("ng-hide",t==i.slidesCount()-1)}),t.$on("wizard:NextCondition",function(n,i){o.attr("disabled",!i)})}}}]).directive("ionWizardStart",["$ionicSlideBoxDelegate",function(n){return{restrict:"EA",scope:{startFn:"&ionWizardStart",startCondition:"&condition"},link:function(i,t,o){function e(){return angular.isUndefined(o.condition)?!0:i.startCondition()}t.addClass("ng-hide"),t.on("click",function(){i.startFn()}),i.$watch(function(){return e()},function(n){t.attr("disabled",!n)}),i.$on("slideBox.slideChanged",function(i,o){t.toggleClass("ng-hide",on.length-1?!1:n[i].next()},this.checkPreviousCondition=function(i){return i>n.length-1?!1:n[i].prev()}}],link:function(t,o,e,r){var d=0;i.enableSlide(!1),o.css("height","100%"),t.$on("wizard:Previous",function(){i.previous()}),t.$on("wizard:Next",function(){i.next()}),t.$watch(function(){return r.checkNextCondition(d)&&r.checkPreviousCondition(d)},function(){n.$broadcast("wizard:NextCondition",r.checkNextCondition(d)),n.$broadcast("wizard:PreviousCondition",r.checkPreviousCondition(d))}),t.$on("slideBox.slideChanged",function(n,i){d=i})}}}]).directive("ionWizardStep",["$q",function(n){return{restrict:"EA",scope:{nextConditionFn:"&nextCondition",prevConditionFn:"&prevCondition"},require:"^^ionWizard",link:function(n,i,t,o){var e=function(){return angular.isUndefined(t.nextCondition)?!0:n.nextConditionFn()},r=function(){return angular.isUndefined(t.prevCondition)?!0:n.prevConditionFn()},d={next:e,prev:r};o.addCondition(d)}}}]).directive("ionWizardPrevious",["$rootScope","$ionicSlideBoxDelegate",function(n,i){return{restrict:"EA",scope:{},link:function(t,o,e,r){0==i.currentIndex()&&o.addClass("ng-hide"),o.on("click",function(){n.$broadcast("wizard:Previous")}),t.$on("slideBox.slideChanged",function(n,i){o.toggleClass("ng-hide",0==i)}),t.$on("wizard:PreviousCondition",function(n,i){o.attr("disabled",!i)})}}}]).directive("ionWizardNext",["$rootScope","$ionicSlideBoxDelegate",function(n,i){return{restrict:"EA",scope:{},link:function(t,o,e,r){i.currentIndex()==i.slidesCount()-1&&o.addClass("ng-hide"),o.on("click",function(){n.$broadcast("wizard:Next")}),t.$on("slideBox.slideChanged",function(n,t){o.toggleClass("ng-hide",t==i.slidesCount()-1)}),t.$on("wizard:NextCondition",function(n,i){o.attr("disabled",!i)})}}}]).directive("ionWizardStart",["$ionicSlideBoxDelegate",function(n){return{restrict:"EA",scope:{startFn:"&ionWizardStart",startCondition:"&condition"},link:function(i,t,o){function e(){return angular.isUndefined(o.condition)?!0:i.startCondition()}t.addClass("ng-hide"),n.currentIndex()==n.slidesCount()-1&&t.removeClass("ng-hide"),t.on("click",function(){i.startFn()}),i.$watch(function(){return e()},function(n){t.attr("disabled",!n)}),i.$on("slideBox.slideChanged",function(i,o){t.toggleClass("ng-hide",on.length-1?!1:n[i].next()},this.checkPreviousCondition=function(i){return i>n.length-1?!1:n[i].prev()}}],link:function(t,o,e,r){var d=0;i.enableSlide(!1),o.css("height","100%"),t.$on("wizard:Previous",function(){i.previous()}),t.$on("wizard:Next",function(){i.next()}),t.$watch(function(){return r.checkNextCondition(d)&&r.checkPreviousCondition(d)},function(){n.$broadcast("wizard:NextCondition",r.checkNextCondition(d)),n.$broadcast("wizard:PreviousCondition",r.checkPreviousCondition(d))}),t.$on("slideBox.slideChanged",function(n,i){d=i})}}}]).directive("ionWizardStep",["$q",function(n){return{restrict:"EA",scope:{nextConditionFn:"&nextCondition",prevConditionFn:"&prevCondition"},require:"^^ionWizard",link:function(n,i,t,o){var e=function(){return angular.isUndefined(t.nextCondition)?!0:n.nextConditionFn()},r=function(){return angular.isUndefined(t.prevCondition)?!0:n.prevConditionFn()},d={next:e,prev:r};o.addCondition(d)}}}]).directive("ionWizardPrevious",["$rootScope","$ionicSlideBoxDelegate",function(n){return{restrict:"EA",scope:{},link:function(i,t,o,e){t.addClass("ng-hide"),t.on("click",function(){n.$broadcast("wizard:Previous")}),i.$on("slideBox.slideChanged",function(n,i){t.toggleClass("ng-hide",0==i)}),i.$on("wizard:PreviousCondition",function(n,i){t.attr("disabled",!i)})}}}]).directive("ionWizardNext",["$rootScope","$ionicSlideBoxDelegate",function(n,i){return{restrict:"EA",scope:{},link:function(t,o,e,r){o.on("click",function(){n.$broadcast("wizard:Next")}),t.$on("slideBox.slideChanged",function(n,t){o.toggleClass("ng-hide",t==i.slidesCount()-1)}),t.$on("wizard:NextCondition",function(n,i){o.attr("disabled",!i)})}}}]).directive("ionWizardStart",["$ionicSlideBoxDelegate",function(n){return{restrict:"EA",scope:{startFn:"&ionWizardStart",startCondition:"&condition"},link:function(i,t,o){function e(){return angular.isUndefined(o.condition)?!0:i.startCondition()}t.addClass("ng-hide"),t.on("click",function(){i.startFn()}),i.$watch(function(){return e()},function(n){t.attr("disabled",!n)}),i.$on("slideBox.slideChanged",function(i,o){t.toggleClass("ng-hide",on.length-1?!1:n[i].next()},this.checkPreviousCondition=function(i){return i>n.length-1?!1:n[i].prev()}}],link:function(t,o,e,r){var d=0;i.enableSlide(!1),o.css("height","100%"),t.$on("wizard:Previous",function(){i.previous()}),t.$on("wizard:Next",function(){i.next()}),t.$watch(function(){return r.checkNextCondition(d)&&r.checkPreviousCondition(d)},function(){n.$broadcast("wizard:NextCondition",r.checkNextCondition(d)),n.$broadcast("wizard:PreviousCondition",r.checkPreviousCondition(d))}),t.$on("slideBox.slideChanged",function(n,i){d=i})}}}]).directive("ionWizardStep",["$q",function(n){return{restrict:"EA",scope:{nextConditionFn:"&nextCondition",prevConditionFn:"&prevCondition"},require:"^^ionWizard",link:function(n,i,t,o){var e=function(){return angular.isUndefined(t.nextCondition)?!0:n.nextConditionFn()},r=function(){return angular.isUndefined(t.prevCondition)?!0:n.prevConditionFn()},d={next:e,prev:r};o.addCondition(d)}}}]).directive("ionWizardPrevious",["$rootScope","$ionicSlideBoxDelegate",function(n,i){return{restrict:"EA",scope:{},link:function(t,o,e,r){0==i.currentIndex()&&o.addClass("ng-hide"),o.on("click",function(){n.$broadcast("wizard:Previous")}),t.$on("slideBox.slideChanged",function(n,i){o.toggleClass("ng-hide",0==i)}),t.$on("wizard:PreviousCondition",function(n,i){o.attr("disabled",!i)})}}}]).directive("ionWizardNext",["$rootScope","$ionicSlideBoxDelegate",function(n,i){return{restrict:"EA",scope:{},link:function(t,o,e,r){i.currentIndex()==i.slidesCount()-1&&o.addClass("ng-hide"),o.on("click",function(){n.$broadcast("wizard:Next")}),t.$on("slideBox.slideChanged",function(n,t){o.toggleClass("ng-hide",t==i.slidesCount()-1)}),t.$on("wizard:NextCondition",function(n,i){o.attr("disabled",!i)})}}}]).directive("ionWizardStart",["$ionicSlideBoxDelegate",function(n){return{restrict:"EA",scope:{startFn:"&ionWizardStart",startCondition:"&condition"},link:function(i,t,o){function e(){return angular.isUndefined(o.condition)?!0:i.startCondition()}t.addClass("ng-hide"),n.currentIndex()==n.slidesCount()-1&&t.removeClass("ng-hide"),t.on("click",function(){i.startFn()}),i.$watch(function(){return e()},function(n){t.attr("disabled",!n)}),i.$on("slideBox.slideChanged",function(i,o){t.toggleClass("ng-hide",o