angular.module("c8y.cockpit.dataPointExplorer").directive("c8yDataPointList",[function(){return{require:"?ng-form",restrict:"E",link:function(o,n,t){o.formConfig={showTarget:!0,showRange:!0,showYellowRange:!0,showRedRange:!0,showChart:!0},"basicList"in t&&(o.isBasicList=!0,o.formConfig.showTarget=!1,o.formConfig.showRange=!1,o.formConfig.showYellowRange=!1,o.formConfig.showRedRange=!1,o.formConfig.showChart=!1),"noChart"in t&&(o.noChart=!0,o.formConfig.showChart=!1),"noTarget"in t&&(o.formConfig.showTarget=!1),"noRange"in t&&(o.formConfig.showRange=!1),"noYellowRange"in t&&(o.formConfig.showYellowRange=!1),"noRedRange"in t&&(o.formConfig.showRedRange=!1),"noAsset"in t&&(o.noAsset=!0),"smartrules"in t&&(o.smartrules=!0),void 0===o.minSelectCount&&(o.minSelectCount=1),o.datapoints||(o.datapoints=[])},scope:{datapoints:"=",listTitle:"<",dontSave:"@",maxSelectCount:"<",allowAddingDataPointsFromContextMoOnly:"<",minSelectCount:"<"},templateUrl:":::PLUGIN_PATH:::/views/dataPointList.html",controller:"c8yDataPointListCtrl"}}]);