/*! query-creator - v0.0.1 -  (c) Yogesh Patel <ygpatel@gmail.com> -  https://github.com/ygpatel/query-creator.git -  2016-12-12 */
!function(a,b){"use strict";if("function"==typeof define&&define.amd)define(["angular"],b);else if("object"==typeof module&&module.exports){var c=require("angular");c&&c.module||"undefined"==typeof angular||(c=angular),module.exports=b(c)}else b(a.angular)}(this,function(a){"use strict";var b=a.module("qcModule",[]).directive("queryCreator",function(){return{restrict:"AE",scope:!0,link:function(a,b,c){console.log("in query creator")},templateUrl:"queryCreatorTpl.html",controller:["$scope",function(a){console.log("in query creator")}]}}).directive("queryChecklist",["$rootScope",function(a){return{restrict:"EA",require:"^queryCreator",scope:{queryconfig:"="},templateUrl:"queryCheckListTpl.html",link:function(a,b,c){console.log("in query checklist")},controller:["$scope","$element","$rootScope",function(a,b,c){a.checkListClicked=function(a){this.$parent.$root.$broadcast("update-query")}}]}}]).directive("queryColorpicker",["$rootScope",function(a){return{restrict:"EA",require:"^queryCreator",scope:{queryconfig:"="},templateUrl:"queryColorPickerTpl.html",controller:["$scope","$element","$rootScope",function(a,b,c){a.colorPickerClicked=function(a){c.$broadcast("update-query")}}],link:function(a,b,c){}}}]).directive("queryRangeslider",["$rootScope",function(a){return{restrict:"EA",require:"^queryCreator",scope:{queryconfig:"="},templateUrl:"queryRangeSliderTpl.html",controller:["$scope","$element","$rootScope",function(a,b,c){a.$on("slideEnded",function(a){a.currentScope.$root.$broadcast("update-query")})}]}}]);return b.name});