eventman/static/js/eda.dragdropway.min.js

10 lines
218 KiB
JavaScript
Raw Permalink Normal View History

2017-04-02 16:28:59 +02:00
!function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="/",e(0)}([function(t,e,n){"use strict";n(1),n(6),n(10)},function(t,e,n){"use strict";n(2),n(3),n(5)},function(t,e,n){
//! api-check version 7.5.5 built with ♥ by Kent C. Dodds <kent@doddsfamily.us> (http://kent.doddsfamily.us) (ó ì_í)=óò=(ì_í ò)
2017-04-02 18:16:38 +02:00
!function(e,n){t.exports=n()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=o(r);e.default=i.default,t.exports=e.default},function(t,e,n){"use strict";function o(){function e(o,i,l){if(e.config.disabled||t.exports.globalConfig.disabled)return{apiTypes:{},argTypes:{},passed:!0,message:"",failed:!1};n(arguments),Array.isArray(o)?i=Array.prototype.slice.call(i):(o=[o],i=[i]);var a=s(o,i);a.length||(a=r(o,i));var d=c(o,i);return d.args=i,a.length?(d.message=e.getErrorMessage(o,i,a,l),d.failed=!0,d.passed=!1):(d.message="",d.failed=!1,d.passed=!0),d}function n(t){var n=t[0],o=t[1],i=Array.isArray(o)||o&&"object"==typeof o&&"number"==typeof o.length;if(Array.isArray(n)&&!i)throw new Error(l(n,[o],["If an array is provided for the api, an array must be provided for the args as well."],{prefix:"apiCheck"}));var a=r(E.checkApiCheckApi,t);if(a.length){var s=e.getErrorMessage(E.checkApiCheckApi,t,a,{prefix:"apiCheck"});e.handleErrorMessage(s,!0)}}function o(t){return function(n,o,r){var i=e(n,o,r);return e.handleErrorMessage(i.message,t),i}}function i(t,e){if(e&&t)throw new Error(t);t&&console.warn(t)}function l(t,n){function o(){var t=s.onlyPrefix;return t||(t=((d.prefix||"")+" "+(s.prefix||"")).trim()),t}function r(){var t=s.onlySuffix;return t||(t=((s.suffix||"")+" "+(d.suffix||"")).trim()),t}function i(){var t=s.url;return t||(t=d.docsBaseUrl&&s.urlSuffix&&(""+d.docsBaseUrl+s.urlSuffix).trim()),t}var l=arguments.length<=2||void 0===arguments[2]?[]:arguments[2],s=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],d=e.config.output||{},c=o(),p=r(),u=i(),f="apiCheck failed! "+l.join(", "),m="\n\n"+a(t,n);return(c+" "+f+" "+p+" "+(u||"")+m).trim()}function a(t,e){function n(t){m(t,function(e,o){d.indexOf(e)===-1&&(d.push(e),"object"==typeof e?n(t):"function"==typeof e&&(t[o]=e.displayName||e.name||"anonymous function"))})}function o(t){return t&&t.length?(t&&1===t.length&&(t=t[0]),u(t,null,2)):"nothing"}function r(){var t="\n",n=!0;e&&1===e.length&&(n="object"==typeof e[0]&&null!==e[0]&&!!Object.keys(e[0]).length);var o="type"+(n?"s":""),r=t+t;return"You passed:"+t+p+r+("With the "+o+":"+t+a+r)+("The API calls for:"+t+l)}var i=c(t,e),l=i.apiTypes,a=i.argTypes,s=Array.prototype.slice.call(e||[]),d=[];n(s);var p=o(s);return a=o(a),l=o(l),r()}function c(n,o){n=g(n),o=g(o);var r=n.map(function(n,r){var i=t.exports.globalConfig.hasOwnProperty("verbose");return h(n,{terse:i?!t.exports.globalConfig.verbose:!e.config.verbose,obj:o[r],addHelpers:!0})}),i=o.map(function(t){return d(t,[])});return{argTypes:i,apiTypes:r}}var p=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],y=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];O&&arguments.length&&O.throw(E.getApiCheckInstanceCheckers,arguments,{prefix:"creating an apiCheck instance"});var v={throw:o(!0),warn:o(!1),getErrorMessage:l,handleErrorMessage:i,config:{output:p.output||{prefix:"",suffix:"",docsBaseUrl:""},verbose:p.verbose||!1,disabled:p.disabled||!1},utils:f};m(v,function(t,n){return e[n]=t});var b=e.disabled||t.exports.globalConfig.disabled;return m(C.getCheckers(b),function(t,n){return e[n]=t}),m(y,function(t,n){return e[n]=t}),e}function r(t,e){for(var n=[],o=!1,r=0,i=0,a=void 0,s=void 0,d=void 0,c=void 0,p=void 0,u=void 0,f=void 0;(s=t[r++])&&i<e.length;)a=e[i++],p="Argument "+i+(s.isOptional?" (optional)":""),d=s(a,"value",p),u=y(d),c=r>=t.length,f=r>1&&t[r-1].isOptional,u&&c||u&&!c&&!s.isOptional&&!f?(o=!0,n.push(l(d,s,a))):u&&s.isOptional?i--:n.push(v(p)+" passed");return o?n:[]}function i(t,e,n){var o=C.shape({type:C.string,optional:C.bool}),r=C.func.withProperties({__apiCheckData:o}),l=C.shape({__apiCheckData:o}),a=C.oneOfType([r,l])(t,e,n);return y(a)?a:"function"==typeof t||t.hasOwnProperty(t.__apiCheckData.type)?void 0:x(e,n,i.type)}
return t.fc.$touched||l}return!1},function(e){t.options.validation.errorExistsAndShouldBeVisible=e,t.showError=e})}var d=i.noop,c=i.noop;if(!t.options.noFormControl){var p=i.element("<div>"+e+"</div>"),u=p[0].querySelector("[ng-model],[data-ng-model]");u&&u.getAttribute("name")&&n(u.getAttribute("name"))}}function v(){b&&b.link&&b.link.apply(E,x),t.options.link&&t.options.link.apply(E,x)}function h(n){return function(o){var r=e.when(o);return i.forEach(n,function(n){r=r.then(function(o){return e.when(n(o,t.options,t)).then(function(t){return i.isString(t)?t:f(t)})})}),r}}if(t.options.fieldGroup)return void l();a(),d();var b=m(t.options),x=arguments,E=this;y(t.options).then(h(r.templateManipulators.preWrapper)).then(g(t.options)).then(h(r.templateManipulators.postWrapper)).then(p).then(u).then(v).catch(function(e){c("there-was-a-problem-setting-the-template-for-this-field","There was a problem setting the template for this field ",t.options,e)})}function f(t){var e=i.element("<a></a>");return e.append(t).html()}function m(t){return t.type&&r.getType(t.type)}function y(t){function e(e,n){return i.isDefined(t[e])?t[e]:n&&i.isDefined(n[e])?n[e]:void 0}var n=r.getType(t.type,!0,t),o=e("template",n),l=e("templateUrl",n);if(i.isUndefined(o)&&!l)throw d.getFieldError("type-type-has-no-template","Type '"+t.type+"' has not template. On element:",t);return v(l||o,i.isUndefined(o),t)}function v(n,r,l){var a=void 0;if(a=i.isFunction(n)?e.when(n(l)):e.when(n),!r)return a;var s=function(){var e={cache:o};return{v:a.then(function(n){return t.get(n,e)}).then(function(t){return t.data}).catch(function(t){c("problem-loading-template-for-templateurl","Problem loading template for "+n,t)})}}();return"object"==typeof s?s.v:void 0}function g(t){var n=b(t);return function(o){if(!n.length)return e.when(o);n.forEach(function(e){d.checkWrapper(e,t),e.validateOptions&&e.validateOptions(t),E(e,t)});var r=n.map(function(t){return v(t.template||t.templateUrl,!t.template)});return e.all(r).then(function(t){t.forEach(function(t,e){d.checkWrapperTemplate(t,n[e])}),t.reverse();var e=t.shift();return t.forEach(function(t){e=h(e,t)}),h(e,o)})}}function h(t,e){var n=i.element("<a></a>");n.append(t);var o=n.find("formly-transclude");return o.length||(o=s.findByNodeName(n,"formly-transclude")),o.replaceWith(e),n.html()}function b(t){var e=t.wrapper;if(null===e)return[];e=e?O(e).map(r.getWrapper):O(r.getWrapperByType(t.type));var n=r.getType(t.type,!0,t);if(n&&n.wrapper){var o=O(n.wrapper).map(r.getWrapper);e=e.concat(o)}var i=r.getWrapper();return i&&e.push(i),e}function x(t){a.throw(a.formlyFieldOptions,t,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"});var e=t.type&&r.getType(t.type);e&&(e.validateOptions&&e.validateOptions(t),E(e,t))}function C(t){a.throw(a.fieldGroup,t,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"})}function E(t,e){var n=t.apiCheck,o=t.apiCheckInstance,r=t.apiCheckFunction,i=t.apiCheckOptions;if(n){var l=o||a,s=r||"warn",d=l.shape(n);l[s](d,e,i||{prefix:"formly-field "+name,url:a.config.output.docsBaseUrl+"formly-field-type-apicheck-failed"})}}var O=s.arrayify;return p.$inject=["$scope","$timeout","$parse","$controller"],{restrict:"AE",transclude:!0,scope:{options:"=",model:"=",formId:"@",index:"=?",fields:"=?",formState:"=?",form:"=?"},controller:p,link:u}}var r=function(t){return t&&t.__esModule?t.default:t},i=r(n(15));t.exports=o,o.$inject=["$http","$q","$compile","$templateCache","formlyConfig","formlyValidationMessages","formlyApiCheck","formlyUtil","formlyUsability","formlyWarn"]},function(t,e,n){"use strict";function o(t,e){return{restrict:"A",link:function(n,o,r){var i=null,l=o[0],a=e[0];r.$observe("formlyFocus",function(e){"true"===e?t(function(){i=a.activeElement,l.focus()},~~r.focusWait):"false"===e&&a.activeElement===l&&(l.blur(),r.hasOwnProperty("refocus")&&i&&i.focus())})}}}t.exports=o,o.$inject=["$timeout","$document"]},function(t,e,n){"use strict";function o(t,e,n,o){var r=1;return{restrict:"E",template:function(e,n){function i(){return n.rootEl||"ng-form"}
},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<e.length;r++){var l=e[r];"number"==typeof l[0]&&o[l[0]]||(n&&!l[2]?l[2]=n:n&&(l[2]="("+l[2]+") and ("+n+")"),t.push(l))}},t}},function(t,e,n){function o(t,e){for(var n=0;n<t.length;n++){var o=t[n],r=f[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(d(o.parts[i],e))}else{for(var l=[],i=0;i<o.parts.length;i++)l.push(d(o.parts[i],e));f[o.id]={id:o.id,refs:1,parts:l}}}}function r(t){for(var e=[],n={},o=0;o<t.length;o++){var r=t[o],i=r[0],l=r[1],a=r[2],s=r[3],d={css:l,media:a,sourceMap:s};n[i]?n[i].parts.push(d):e.push(n[i]={id:i,parts:[d]})}return e}function i(t,e){var n=v(),o=b[b.length-1];if("top"===t.insertAt)o?o.nextSibling?n.insertBefore(e,o.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),b.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function l(t){t.parentNode.removeChild(t);var e=b.indexOf(t);e>=0&&b.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",i(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",i(t,e),e}function d(t,e){var n,o,r;if(e.singleton){var i=h++;n=g||(g=a(e)),o=c.bind(null,n,i,!1),r=c.bind(null,n,i,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),o=u.bind(null,n),r=function(){l(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),o=p.bind(null,n),r=function(){l(n)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}function c(t,e,n,o){var r=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=x(e,r);else{var i=document.createTextNode(r),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(i,l[e]):t.appendChild(i)}}function p(t,e){var n=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function u(t,e){var n=e.css,o=e.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([n],{type:"text/css"}),i=t.href;t.href=URL.createObjectURL(r),i&&URL.revokeObjectURL(i)}var f={},m=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},y=m(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=m(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,h=0,b=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=y()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=r(t);return o(n,e),function(t){for(var i=[],l=0;l<n.length;l++){var a=n[l],s=f[a.id];s.refs--,i.push(s)}if(t){var d=r(t);o(d,e)}for(var l=0;l<i.length;l++){var s=i[l];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete f[s.id]}}}};var x=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),i=o(r),l=n(12),a=o(l),s=n(14),d=o(s),c=n(15),p=o(c),u=n(49),f=o(u),m=n(53),y=o(m),v=n(67),g=o(v),h=n(70),b=o(h),x=n(72),C=o(x),E=n(75),O=o(E),w=n(77),T=o(w),_=n(84),M=o(_),D="eda.easyformGen.dragDropWay",P=[d.default.name,b.default.name,M.default.name,p.default.name,f.default.name,y.default.name,T.default.name,g.default.name,C.default.name,O.default.name],k=angular.module(D,P).config(a.default).config(i.default).value(l.EASY_FORM_DD_VERSION_NAME,l.E
}},{key:"addNewOptionBasicSelect",value:function(t,e){var n={resultFlag:!1,details:""},o=a.validOption(t,e);if(o.resultFlag===!0){var r={option:e,order:t.rows.length};return t.rows.push(r),n.resultFlag=!0,n.details="",n}return angular.copy(o,n),n}},{key:"addNewOptionGroupedSelect",value:function(t,e,n){var o={resultFlag:!1,details:""},r=a.validOption(t,e);if(r.resultFlag===!0){var i={option:e,group:n,order:t.rows.length};return t.rows.push(i),o.resultFlag=!0,o.details="",o}return angular.copy(r,o),o}},{key:"removeOption",value:function(t,e){var n={resultFlag:!1,details:""};return e!==-1?(t.rows.splice(e,1),n.resultFlag=!0,n.details="",n):(n.resultFlag=!1,n.details="Option index not valid",n)}},{key:"upthisOption",value:function(t,e){var n={resultFlag:!1,details:""};if(e>-1){if(e>0){if(t.rows[e-1]){var o=t.rows[e];return t.rows.splice(e,1),t.rows.splice(e-1,0,o),n.resultFlag=!0,n.details="",n}return n.resultFlag=!1,n.details="Can't retreive option from option index",n}return n.resultFlag=!0,n.details="",n}return n.resultFlag=!1,n.details="Option index not valid",n}},{key:"downthisOption",value:function(t,e){var n={resultFlag:!1,details:""};if(e>-1){if(e<t.rows.length-1){if(t.rows[e+1]){var o=t.rows[e];return t.rows.splice(e,1),t.rows.splice(e+1,0,o),n.resultFlag=!0,n.details="",n}return n.resultFlag=!1,n.details="Can't retreive option from option index",n}return n.resultFlag=!0,n.details="",n}return n.resultFlag=!1,n.details="Option index not valid",n}}]),t}();d.$inject=[],e.default=d,e.LEFT_PANEL_SELECT_OPTION_MANAGE_SERVICE=s},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){var e={rows:[]};angular.copy(e,t)},o=function(t,e){var n={resultFlag:!1,details:""};if("undefined"==typeof e)return n.resultFlag=!1,n.details="Entered option is empty",n;if(""!==e){for(var o=t.rows.length-1;o>=0;o--)if(t.rows[o].option===e)return n.resultFlag=!1,n.details="Entered option is not unique",n;return n.resultFlag=!0,n.details="",n}return n.resultFlag=!1,n.details="Entered option is empty",n};e.resetModel=n,e.validOption=o},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r="controllerModalProxy",i={rows:[]},l=function(){function t(e){n(this,t),this.EasyFormGenFormlyBindingModels=e,this.init()}return o(t,[{key:"init",value:function(){this.proxyModel={},this.resetProxyModel(),this.editPanelModel={toggle:!1,lineIndex:-1,columnIndex:-1,control:{}},this.basicSelectRowCollection=angular.copy(i),this.newOptionBasicSelect=angular.copy({saisie:""}),this.groupedSelectRowCollection=angular.copy(i),this.newOptionGroupedSelect=angular.copy({saisie:""}),this.GroupedSelectGroups=angular.copy({list:[]}),this.newGroupGroupedSelect=angular.copy({saisie:""}),this.groupSelectGroupClick=angular.copy({showList:!1}),this.radioRowCollection=angular.copy(i),this.newOptionRadio=angular.copy({saisie:""})}},{key:"initNyaSelect",value:function(t){return this.resetNyaSelect(t)}},{key:"initProxyModel",value:function(t){return this.resetProxyModel(t)}},{key:"resetNyaSelect",value:function(t){var e=this.EasyFormGenFormlyBindingModels.getEasyFormListControls();return angular.copy(e,t),!0}},{key:"resetProxyModel",value:function(){var t=this.EasyFormGenFormlyBindingModels.getEasyFormListControls();return this.proxyModel=angular.copy(t),!0}},{key:"returnControlFromAddCtrlModalModel",value:function(t){for(var e={selectedControl:"none",formlyType:"none",formlySubtype:"none",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyPlaceholder:"",formlyOptions:[]},n=t.controls.length-1;n>=0;n--)t.selectedControl===t.controls[n].id&&(e.selectedControl=t.selectedControl,e.formlyType=t.controls[n].formlyType,e.formlySubtype=t.controls[n].formlySubtype,e.formlyLabel=t.cont
};return t}Object.defineProperty(e,"__esModule",{value:!0}),e.LEFT_PANEL_GROUPED_SELECT_CONTROL_DIRECTIVE=void 0;var i=n(40),l=o(i),a="leftPanelGroupedSelectControl";r.$inject=[],e.default=r,e.LEFT_PANEL_GROUPED_SELECT_CONTROL_DIRECTIVE=a},function(t,e){t.exports='<div class="panel panel-default">\n <div class="panel-body">\n <div class="row">\n <div class="col-md-12">\n <h5 class="greyText">\n <i class="fa fa-pencil-square-o"></i>\n &nbsp;\n Edit properties :\n </h5>\n </div>\n </div>\n <div class="marginTopFivepixels"></div>\n <div class="row">\n <div class="col-lg-12 col-md-12">\n <label\n for="groupedSelectRowCollection"\n class="control-label greyText editPropertiesLabel">\n Add new options :\n </label>\n </div>\n </div>\n <div class="row">\n <div>\n <div class="form-group">\n <div class="col-sm-9 col-xs-9 col-md-9 col-lg-9">\n <input\n type="text"\n class="form-control"\n id="inputAddNewGroupedOption"\n placeholder="add new option"\n ng-model="leftPanelCtrl.newOptionGroupedSelect.saisie">\n </div>\n <div class="col-sm-3 col-xs-3 col-md-3 col-lg-3">\n <button\n class="btn btn-primary"\n ng-click="leftPanelCtrl.addNewOptionGroupedSelect()">\n add\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-12 col-md-12">\n <label\n for="groupedSelectRowCollection"\n class=" control-label greyText editPropertiesLabel">\n Add new groups :\n </label>\n </div>\n </div>\n <div class="row">\n <div>\n <div class="form-group">\n <div class="col-sm-9 col-xs-9 col-md-9 col-lg-9">\n <input\n id="inputAddNewGroupGroupedOption"\n type="text"\n class="form-control"\n ng-model="leftPanelCtrl.newGroupGroupedSelect.saisie"\n placeholder="Add new group">\n </div>\n <div class="col-sm-3 col-xs-3 col-md-3 col-lg-3">\n <button\n class="btn btn-primary"\n ng-click="leftPanelCtrl.addNewGroupToGroupedSelect()">\n add\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-12 col-md-12">\n <label\n class=" control-label greyText editPropertiesLabel">\n Edit/Remove options/groups:\n </label>\n </div>\n </div>\n <div class="row">\n <div class="form-group">\n <div class-"col-lg-12 col-md-12 col-sm-12 col-xs-12">\n <div class="container">\n <div ng-if="leftPanelCtrl.groupedSelectRowCollection.rows.length === 0">\n <h5 class="text-center greyText">\n <em>\n - no option : add new options -\n </em>\n </h5>\n </div>\n <table\n ng-if="leftPanelCtrl.groupedSelectRowCollection.rows.length > 0"\n class="table table-striped">\n <thead>\n <tr>\n <th st-ratio="20">\n order\n </th>\n <th st-ratio="25">\n group\n </th>\n <th st-ratio="30">\n option\n </th>\n <th st-ratio="25"></th>\n </tr>\n <tr>\n <th st-ratio="20"></th>\n <th st-ratio="25"></th>\n <th st-ratio="30">\n <input\n ng-model="groupedSelectFilter"\n placeholder="search for option"\n class="input-sm form-control"\n type="search" />\n </th>\n <th st-ratio="2
value:function(t){var e=!0;return t.length>0&&angular.forEach(this._itemsNotToCount,function(n){for(var o=t.length-1;o>=0;o--)t[o]===n&&(e=e&&!1)}),e}},{key:"updateLineItemCss",value:function(t,e,n,o,r){if("undefined"!=typeof t&&"undefined"!=typeof e&&"undefined"!=typeof n&&"undefined"!=typeof o&&"undefined"!=typeof r){for(var i=t[n][o].length-1;i>=0;i--)for(var l=0;l<e.length;l++)e[l].item===i&&e[l].isReal===!0&&(t[n][o][i].cssClass=this.easyFormDragWayConfig.getItemCssDependingNumberItemsInRow(r));return!0}}}]),t}();i.$inject=["easyFormDragWayConfig"],e.default=i,e.DRAG_DROP_ITEM_COUNTER_SERVICE=r},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(){function t(t,e,n,o,r){var i=t.ddDecorContainerCtrl.verboseMode,l=t.ddDecorContainerCtrl.currentIndex;if(t.ddDecorContainerCtrl.isCollapsed=!1,t.ddDecorContainerCtrl.config.isEnabled=!1,t.$watch(function(){return t.ddDecorContainerCtrl.isStillCollapsed},function(e,n){e!==n&&0===t.$parent.$parent.$index&&(t.ddDecorContainerCtrl.isCollapsed=e)}),""!==i){var a=angular.lowercase(i);"true"!==a&&"1"!==a||console.dir({whoAmI:"I am verbose from ddDecorContainer link",verbodeMode:a,ParentParentIndex:t.$parent.$parent.$index,ParentIndex:t.$parent.$index,currentIndex:l,styleParam:t.ddDecorContainerCtrl.styleParam,columnindex:t.$parent.$parent.$parent.$parent.$index})}"undefined"!=typeof l&&""!==l&&"0"===l&&"undefined"!=typeof t.ddDecorContainerCtrl.styleParam.title&&(t.ddDecorContainerCtrl.currentTitle=t.ddDecorContainerCtrl.styleParam.title,t.ddDecorContainerCtrl.config.isEnabled=!0,t.ddDecorContainerCtrl.isCollapsed=!0),r(t.$parent,function(t){var n=angular.element(e.children()[1]);n.append(t)})}var e={restrict:"A",template:l.default,scope:{},controller:a.DD_DECOR_CONTAINER_CONTROLLER_NAME,controllerAs:a.DD_DECOR_CONTAINER_CONTROLLERAS_NAME,bindToController:{styleParam:"=ddContainerProperties",isStillCollapsed:"=ddContainerIsCollpased",verboseMode:"@ddContainerVerboseMode",currentIndex:"@ddContainerCurrentIndex",collpaseAll:"&ddCollapseAll"},transclude:!0,link:t};return e}Object.defineProperty(e,"__esModule",{value:!0}),e.DD_DECOR_CONTAINER_DIRECTIVE=void 0;var i=n(57),l=o(i),a=n(58),s="ddDecorContainer";e.default=r,e.DD_DECOR_CONTAINER_DIRECTIVE=s},function(t,e){t.exports='<div ng-click="ddDecorContainerCtrl.collapseFct()">\n <h6\n ng-show="ddDecorContainerCtrl.config.isEnabled"\n class="ddDecorContainerCtrl.isCollapsableZone"\n style="cursor:pointer">\n <button class="btn btn-primary btn-xs">\n <span class="{{ddDecorContainerCtrl.currentIconClass()}}"></span>\n </button>\n &nbsp;\n {{ddDecorContainerCtrl.currentTitle}}\n </h6>\n</div>\n<div uib-collapse="ddDecorContainerCtrl.isCollapsed">\n <div id="ddDecorContainerWillTranscludeHere"></div>\n</div>\n'},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r="ddDecorContainerController",i="ddDecorContainerCtrl",l=function(){function t(){n(this,t),this.init()}return o(t,[{key:"init",value:function(){this.config=angular.extend({},{isEnabled:!1}),this.icons=angular.extend({},{closedClass:"glyphicon glyphicon-eye-open",opened:"glyphicon glyphicon-eye-close"})}},{key:"collapseFct",value:function(){this.collpaseAll({exceptThisOne:this.styleParam.WhenIndex}),this.isCollapsed=!this.isCollapsed,this.isStillCollapsed=this.isCollapsed}},{key:"currentIconClass",value:function(){return this.isCollapsed?this.icons.closedClass:this.icons.opened}}]),t}();e.default=l,e.DD_DECOR_CONTAINER_CONTROLLER_NAME=r,e.DD_DECOR_CONTAINER_CONTROLLERAS_NAME=i},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(){function t(t){var e=t.verboseMode,n=t.currentIndex;if(t.headerConfig={HeaderButton
this.tab=(0,i.initTabModel)(this.easyFormDragWayConfig.isPreviewPanelVisible(),this.easyFormDragWayConfig.arePreviewModelsVisible()),this.returnSaveEvent=!1,this.dataModel={},this.wfFormFields=[],this.wfFormFieldsOnlyNeededProperties=[],this.ihm=(0,i.initIhmModel)(),this.easyFormDragDropProperties=this.easyFormDragWayConfig.getDragDropConfigModel(),this.dragDropModel=[].concat(this.easyFormDragWayConfig.getDragDropPresentationModel()),this.numberOfColumns=1,this.MaxNumberOfColumns=3,this.MinNumberOfColumns=1,this.configuration={},this.animationsEnabled=this.easyFormDragWayConfig.getModalAnimationValue(),this.editPanelModel={toggle:!1},this.debugProxyModel=this.controllerModalProxy.ProxyModel,this.model=[],this.formFieldManage.initConfigurationEditFromScratch(this.configuration,!1),this.controllerModalProxy.initProxyModel()}},{key:"collapseAllGroupControl",value:function(t){var e=this;angular.forEach(this.easyFormDragDropProperties.containerConfig.decoration,function(n){n.WhenIndex!==t&&e.easyFormDragWayConfig.setDragDropConfigContainerDecorationCollapse(e.easyFormDragDropProperties,n.WhenIndex,!0)})}},{key:"onSubmit",value:function(){this.toaster.pop({type:"info",timeout:2e3,title:"should save data model if it were not a static example",body:"data :"+this.$filter("json")(this.dataModel,4),showCloseButton:!0})}},{key:"resetToZeroModel",value:function(){return this.configuration.activeLine=1,this.configuration.lines.length>1&&this.configuration.lines.splice(1,this.configuration.lines.length-2),this.countConfigurationModelLines()}},{key:"countConfigurationModelLines",value:function(){return this.configuration.lines.length}},{key:"saveThisForm",value:function(){return"undefined"==typeof this.configuration.formName?(this.toaster.pop({type:"warning",timeout:2e3,title:"Form name is undefined",body:"Form has not been saved.",showCloseButton:!0}),!1):""===this.configuration.formName?(this.toaster.pop({type:"warning",timeout:2e3,title:"Form name is required",body:"Form has not been saved.",showCloseButton:!0}),!1):(this.toaster.pop({type:"wait",timeout:1e4,title:"Form is being saved",body:"Wait.",showCloseButton:!0}),this.toaster.clear(),this.returnSaveEvent=!0,!0)}},{key:"dragoverCallbackContainer",value:function(t,e,n){return 0!==n}},{key:"dropCallback",value:function(t,e,n,o,r,i){var l=this;if(o){if("itemType"===i&&!n.label)return!1;if("containerType"===i&&!angular.isArray(n))return!1}var a=this.$timeout(function(){l.configuration=angular.copy(l.ddModelConfModelProxyService.refreshAllConfigurationFromDragAndDropModel(l.configuration,l.dragDropModel)),l.formFieldManage.applyConfigurationToformlyModel(l.configuration,l.wfFormFields,l.dataModel),l.wfFormFieldsOnlyNeededProperties=angular.copy(l.wfFormFields),l.ddModelConfModelProxyService.refreshControlsKeys(l.configuration,l.dragDropModel)},200);return this.$scope.$on("$destroy",function(){return l.$timeout.cancel(a)}),n}},{key:"dndItemMoved",value:function(t,e,n){t>0&&this.dragDropModel[t][e].splice(n,1)}},{key:"dragoverCallbackItems",value:function(t,e){return 0!==e}},{key:"disableItemDropIf",value:function(){}},{key:"dropCallbackItems",value:function(t,e,n,o,r,i,l,a,s,d){var c=this;if(a){if("itemType"===d&&!l.label)return!1;if("containerType"===d&&!angular.isArray(l))return!1}var p=this.$timeout(function(){c.configuration=angular.copy(c.ddModelConfModelProxyService.refreshAllConfigurationFromDragAndDropModel(c.configuration,c.dragDropModel)),c.formFieldManage.applyConfigurationToformlyModel(c.configuration,c.wfFormFields,c.dataModel),c.wfFormFieldsOnlyNeededProperties=angular.copy(c.wfFormFields),c.ddModelConfModelProxyService.refreshControlsKeys(c.configuration,c.dragDropModel)},200);return this.ddItemRightClickedManager.setUnRightClicked(l),this.$scope.$on("$destroy",function(){return c.$timeout.cancel(p)}),l}},{key:"saveFromEditPanel",value:function(){this.controllerModalProxy.bindSpecialCtrlTemporyModelsToProxyModel(),this.controllerModalProxy.bindConfigurationModelFromProxyModel(this.controllerModalProxy.getEditPanelModelLineIndex(),this.controllerModalProxy.getEditPanel
2016-06-18 20:01:17 +02:00
//# sourceMappingURL=eda.dragdropway.min.js.map