eventman/static/js/eda.easyFormViewer.min.js

8 lines
155 KiB
JavaScript
Raw Normal View History

2017-04-02 16:28:59 +02:00
!function(e){function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="/",n(0)}([function(e,n,t){"use strict";t(1),t(6),t(59)},function(e,n,t){"use strict";t(2),t(3),t(5)},function(e,n,t){
//! api-check version 7.5.5 built with ♥ by Kent C. Dodds <kent@doddsfamily.us> (http://kent.doddsfamily.us) (ó ì_í)=óò=(ì_í ò)
!function(n,t){e.exports=t()}(this,function(){return function(e){function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=t(1),i=o(r);n.default=i.default,e.exports=n.default},function(e,n,t){"use strict";function o(){function n(o,i,l){if(n.config.disabled||e.exports.globalConfig.disabled)return{apiTypes:{},argTypes:{},passed:!0,message:"",failed:!1};t(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 c=d(o,i);return c.args=i,a.length?(c.message=n.getErrorMessage(o,i,a,l),c.failed=!0,c.passed=!1):(c.message="",c.failed=!1,c.passed=!0),c}function t(e){var t=e[0],o=e[1],i=Array.isArray(o)||o&&"object"==typeof o&&"number"==typeof o.length;if(Array.isArray(t)&&!i)throw new Error(l(t,[o],["If an array is provided for the api, an array must be provided for the args as well."],{prefix:"apiCheck"}));var a=r(C.checkApiCheckApi,e);if(a.length){var s=n.getErrorMessage(C.checkApiCheckApi,e,a,{prefix:"apiCheck"});n.handleErrorMessage(s,!0)}}function o(e){return function(t,o,r){var i=n(t,o,r);return n.handleErrorMessage(i.message,e),i}}function i(e,n){if(n&&e)throw new Error(e);e&&console.warn(e)}function l(e,t){function o(){var e=s.onlyPrefix;return e||(e=((c.prefix||"")+" "+(s.prefix||"")).trim()),e}function r(){var e=s.onlySuffix;return e||(e=((s.suffix||"")+" "+(c.suffix||"")).trim()),e}function i(){var e=s.url;return e||(e=c.docsBaseUrl&&s.urlSuffix&&(""+c.docsBaseUrl+s.urlSuffix).trim()),e}var l=arguments.length<=2||void 0===arguments[2]?[]:arguments[2],s=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],c=n.config.output||{},d=o(),p=r(),u=i(),f="apiCheck failed! "+l.join(", "),m="\n\n"+a(e,t);return(d+" "+f+" "+p+" "+(u||"")+m).trim()}function a(e,n){function t(e){m(e,function(n,o){c.indexOf(n)===-1&&(c.push(n),"object"==typeof n?t(e):"function"==typeof n&&(e[o]=n.displayName||n.name||"anonymous function"))})}function o(e){return e&&e.length?(e&&1===e.length&&(e=e[0]),u(e,null,2)):"nothing"}function r(){var e="\n",t=!0;n&&1===n.length&&(t="object"==typeof n[0]&&null!==n[0]&&!!Object.keys(n[0]).length);var o="type"+(t?"s":""),r=e+e;return"You passed:"+e+p+r+("With the "+o+":"+e+a+r)+("The API calls for:"+e+l)}var i=d(e,n),l=i.apiTypes,a=i.argTypes,s=Array.prototype.slice.call(n||[]),c=[];t(s);var p=o(s);return a=o(a),l=o(l),r()}function d(t,o){t=g(t),o=g(o);var r=t.map(function(t,r){var i=e.exports.globalConfig.hasOwnProperty("verbose");return b(t,{terse:i?!e.exports.globalConfig.verbose:!n.config.verbose,obj:o[r],addHelpers:!0})}),i=o.map(function(e){return c(e,[])});return{argTypes:i,apiTypes:r}}var p=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],v=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];E&&arguments.length&&E.throw(C.getApiCheckInstanceCheckers,arguments,{prefix:"creating an apiCheck instance"});var y={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(y,function(e,t){return n[t]=e});var h=n.disabled||e.exports.globalConfig.disabled;return m(x.getCheckers(h),function(e,t){return n[t]=e}),m(v,function(e,t){return n[t]=e}),n}function r(e,n){for(var t=[],o=!1,r=0,i=0,a=void 0,s=void 0,c=void 0,d=void 0,p=void 0,u=void 0,f=void 0;(s=e[r++])&&i<n.length;)a=n[i++],p="Argument "+i+(s.isOptional?" (optional)":""),c=s(a,"value",p),u=v(c),d=r>=e.length,f=r>1&&e[r-1].isOptional,u&&d||u&&!d&&!s.isOptional&&!f?(o=!0,t.push(l(c,s,a))):u&&s.isOptional?i--:t.push(y(p)+" passed");return o?t:[]}function i(e,n,t){var o=x.shape({type:x.string,optional:x.bool}),r=x.func.withProperties({__apiCheckData:o}),l=x.shape({__apiCheckData:o}),a=x.oneOfType([r,l])(e,n,t);return v(a)?a:"function"==typeof e||e.hasOwnProperty(e.__apiCheckData.type)?void 0:T(n,t,i.type)}
return e.fc.$touched||l}return!1},function(n){e.options.validation.errorExistsAndShouldBeVisible=n,e.showError=n})}var c=i.noop,d=i.noop;if(!e.options.noFormControl){var p=i.element("<div>"+n+"</div>"),u=p[0].querySelector("[ng-model],[data-ng-model]");u&&u.getAttribute("name")&&t(u.getAttribute("name"))}}function y(){h&&h.link&&h.link.apply(C,T),e.options.link&&e.options.link.apply(C,T)}function b(t){return function(o){var r=n.when(o);return i.forEach(t,function(t){r=r.then(function(o){return n.when(t(o,e.options,e)).then(function(e){return i.isString(e)?e:f(e)})})}),r}}if(e.options.fieldGroup)return void l();a(),c();var h=m(e.options),T=arguments,C=this;v(e.options).then(b(r.templateManipulators.preWrapper)).then(g(e.options)).then(b(r.templateManipulators.postWrapper)).then(p).then(u).then(y).catch(function(n){d("there-was-a-problem-setting-the-template-for-this-field","There was a problem setting the template for this field ",e.options,n)})}function f(e){var n=i.element("<a></a>");return n.append(e).html()}function m(e){return e.type&&r.getType(e.type)}function v(e){function n(n,t){return i.isDefined(e[n])?e[n]:t&&i.isDefined(t[n])?t[n]:void 0}var t=r.getType(e.type,!0,e),o=n("template",t),l=n("templateUrl",t);if(i.isUndefined(o)&&!l)throw c.getFieldError("type-type-has-no-template","Type '"+e.type+"' has not template. On element:",e);return y(l||o,i.isUndefined(o),e)}function y(t,r,l){var a=void 0;if(a=i.isFunction(t)?n.when(t(l)):n.when(t),!r)return a;var s=function(){var n={cache:o};return{v:a.then(function(t){return e.get(t,n)}).then(function(e){return e.data}).catch(function(e){d("problem-loading-template-for-templateurl","Problem loading template for "+t,e)})}}();return"object"==typeof s?s.v:void 0}function g(e){var t=h(e);return function(o){if(!t.length)return n.when(o);t.forEach(function(n){c.checkWrapper(n,e),n.validateOptions&&n.validateOptions(e),C(n,e)});var r=t.map(function(e){return y(e.template||e.templateUrl,!e.template)});return n.all(r).then(function(e){e.forEach(function(e,n){c.checkWrapperTemplate(e,t[n])}),e.reverse();var n=e.shift();return e.forEach(function(e){n=b(n,e)}),b(n,o)})}}function b(e,n){var t=i.element("<a></a>");t.append(e);var o=t.find("formly-transclude");return o.length||(o=s.findByNodeName(t,"formly-transclude")),o.replaceWith(n),t.html()}function h(e){var n=e.wrapper;if(null===n)return[];n=n?E(n).map(r.getWrapper):E(r.getWrapperByType(e.type));var t=r.getType(e.type,!0,e);if(t&&t.wrapper){var o=E(t.wrapper).map(r.getWrapper);n=n.concat(o)}var i=r.getWrapper();return i&&n.push(i),n}function T(e){a.throw(a.formlyFieldOptions,e,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"});var n=e.type&&r.getType(e.type);n&&(n.validateOptions&&n.validateOptions(e),C(n,e))}function x(e){a.throw(a.fieldGroup,e,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"})}function C(e,n){var t=e.apiCheck,o=e.apiCheckInstance,r=e.apiCheckFunction,i=e.apiCheckOptions;if(t){var l=o||a,s=r||"warn",c=l.shape(t);l[s](c,n,i||{prefix:"formly-field "+name,url:a.config.output.docsBaseUrl+"formly-field-type-apicheck-failed"})}}var E=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(e){return e&&e.__esModule?e.default:e},i=r(t(15));e.exports=o,o.$inject=["$http","$q","$compile","$templateCache","formlyConfig","formlyValidationMessages","formlyApiCheck","formlyUtil","formlyUsability","formlyWarn"]},function(e,n,t){"use strict";function o(e,n){return{restrict:"A",link:function(t,o,r){var i=null,l=o[0],a=n[0];r.$observe("formlyFocus",function(n){"true"===n?e(function(){i=a.activeElement,l.focus()},~~r.focusWait):"false"===n&&a.activeElement===l&&(l.blur(),r.hasOwnProperty("refocus")&&i&&i.focus())})}}}e.exports=o,o.$inject=["$timeout","$document"]},function(e,n,t){"use strict";function o(e,n,t,o){var r=1;return{restrict:"E",template:function(n,t){function i(){return t.rootEl||"ng-form"}
moduleName:c.default.name},{name:p.EDIT_DATE_COMPONENT,component:p.editDateControlComponent,moduleName:u.default.name},{name:T.EDIT_BASIC_SELECT_COMPONENT,component:T.editBasicSelectControlComponent,moduleName:x.default.name},{name:E.EDIT_GROUPED_SELECT_COMPONENT,component:E.editGroupedSelectControlComponent,moduleName:O.default.name},{name:m.EDIT_CHECKBOX_COMPONENT,component:m.editCheckBoxControlComponent,moduleName:v.default.name},{name:g.EDIT_EMAIL_COMPONENT,component:g.editEmailControlComponent,moduleName:b.default.name},{name:w.EDIT_HEADER_CONTROL_COMPONENT,component:w.editHeaderControlComponent,moduleName:D.default.name},{name:R.EDIT_PASSWORD_CONTROL_COMPONENT,component:R.editPasswordControlComponent,moduleName:k.default.name},{name:A.EDIT_RADIO_CONTROL_COMPONENT,component:A.editRadioControlComponent,moduleName:L.default.name},{name:N.EDIT_RICH_TEXT_EDITOR_COMPONENT,component:N.editRichTextEditorControlComponent,moduleName:j.default.name},{name:F.EDIT_SUBTITLE_CONTROL_COMPONENT,component:F.editSubTitleControlComponent,moduleName:q.default.name},{name:W.EDIT_TEXTAREA_CONTROL_COMPONENT,component:W.editTextareaControlComponent,moduleName:H.default.name},{name:J.EDIT_TEXTINPUT_CONTROL_COMPONENT,component:J.editTextInputControlComponent,moduleName:Q.default.name}];n.configs=K,n.controls=z},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.BlankConfig={id:"empty",name:"no control",subtitle:"no control",group:"Blank",formlyType:"blank",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDescription:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}},function(e,n){"use strict";function t(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o,r,i=n.EDIT_BLANK_CONTROL_COMPONENT="editBlankControl",l=n.editBlankControlComponent={template:'\n <div ng-switch-when="empty">\n <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-eye"></i>\n &nbsp;\n {{\'PREVIEW_TAB\' | translate}} :\n </h5>\n </div>\n </div>\n <hr/>\n <div class="row">\n <div class="col-sm-12">\n <h5 class="text-center greyText">\n {{\'COL_WILL_BE_BLANK\' | translate}}\n </h5>\n </div>\n </div>\n </div>\n </div>\n </div>\n ',bindings:{},controller:(r=o=function e(){t(this,e)},o.$inject=[],r)},a="stepway.editBlankControl.module";n.default=angular.module(a,[]).component(i,l)},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.IpAdressConfig={id:"IpAdress",name:"IpAdress",subtitle:"IpAdress",group:"input",formlyType:"input",formlySubtype:"ipadress",formlyLabel:"",formlyRequired:!1,formlyDescription:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{ipAddressShape:{expression:function(e,n){var t=n||e;return/(\d{1,3}\.){3}\d{1,3}/.test(t)},message:"$viewValue + ' is not a valid IP Address'"}},formlyValidation:{messages:{required:function(e,n,t){var o="this IP Adress field is required",r="undefined"!=typeof t.to.label&&""!==t.to.label?t.to.label+" is required":o;if(t.to.required)return r}}}}},function(e,n){"use strict";function t(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o,r,i=n.EDIT_IP_ADRESS_COMPONENT="editIpAdressControl",l=n.editIpAdressControlComponent={template:'\n <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-eye"></i>\n &nbsp;\n {{\'PREVIEW_TAB\' | translate}} :\n </h5>\n </div>\n </div>\n <hr/>\n <div class="row">\n <div class="col-md-12">\n <div class="form-group">\n <label\n
bindings:{nyaSelect:"=",basicSelectRowCollection:"=",newOptionBasicSelect:"=",addNewOptionBasicSelect:"&",upThisRow:"&",downThisRow:"&",removeRow:"&"},controller:(r=o=function e(){t(this,e)},o.$inject=[],r)},a="stepway.editBasicSelect.module";n.default=angular.module(a,[]).component(i,l)},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.GroupedSelectConfig={id:"GroupedSelect",name:"Grouped Select",subtitle:"Grouped Select",options:[],group:"Select",formlyType:"groupedSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDescription:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,n,t){var o="this Grouped Select field is required",r="undefined"!=typeof t.to.label&&""!==t.to.label?t.to.label+" is required":o;return r}}}}},function(e,n){"use strict";function t(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o,r,i=n.EDIT_GROUPED_SELECT_COMPONENT="editGroupedSelectControl",l=n.editGroupedSelectControlComponent={template:'\n <div class="panel panel-default">\n <div class="panel-body">\n <div class="row">\n <div class="col-md-12">\n <h5\n class="greyText">\n <i class="fa fa-eye"></i>\n &nbsp;\n {{\'PREVIEW_TAB\' | translate}} :\n </h5>\n </div>\n </div>\n <hr/>\n <div class="row">\n <div class="col-md-12">\n <div class="form-group">\n <label\n for="select"\n class="control-label textControlLabel">\n {{$ctrl.nyaSelect.temporyConfig.formlyLabel}}\n <span\n ng-if="$ctrl.nyaSelect.temporyConfig.formlyRequired"\n class="textControlLabel">\n *\n </span>\n </label>\n <div class="">\n <ol\n class="nya-bs-select col-sm-12 col-xs-12 col-md-12 col-lg12"\n ng-model="modelGroupedSelect"\n data-live-search="true"\n disabled="$ctrl.groupedSelectRowCollection.rows.length === 0">\n <li\n nya-bs-option="groupedSelectRow in $ctrl.groupedSelectRowCollection.rows group by groupedSelectRow.group"\n value="$index">\n <span class="dropdown-header">\n {{groupedSelectRow.group}}\n </span>\n <a>\n <span>\n {{groupedSelectRow.option}}\n </span>\n <span class="glyphicon glyphicon-ok check-mark">\n </span>\n </a>\n </li>\n </ol>\n <p class="help-block">\n {{$ctrl.nyaSelect.temporyConfig.formlyDescription}}\n </p>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="panel panel-default">\n <div class="panel-body">\n <div class="row">\n <div class="col-md-12">\n <h5\n class="greyText">\n <i class="fa fa-pencil-square-o"></i>\n &nbsp;\n {{\'EDIT_PROPERTIES\' | translate}} :\n </h5>\n </div>\n </div>\n <hr/>\n <div class="row">\n <div class="col-lg-3 col-md-3">\n <label\n for="groupedSelectRowCollection"\n class=" control-label greyText editPropertiesLabel">\n {{\'ADD_NEW_OPTIONS\' | translate}} :\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_A_NEW_OPTION\' | translate}}"\n ng-model="$ctrl.newOptionGroupedSelect.saisie">\n
},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(40),r="stepway.editRichTextEditor.module";n.default=angular.module(r,[]).component(o.EDIT_RICH_TEXT_EDITOR_COMPONENT,o.editRichTextEditorControlComponent)},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.SubTitleConfig={id:"Subtitle",name:"Subtitle",subtitle:"no control",group:"Decoration",formlyType:"subTitle",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDescription:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}},function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0}),n.editSubTitleControlComponent=n.EDIT_SUBTITLE_CONTROL_COMPONENT=void 0;var i=function(){function e(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(n,t,o){return t&&e(n.prototype,t),o&&e(n,o),n}}(),l=t(45),a=o(l);n.EDIT_SUBTITLE_CONTROL_COMPONENT="editSubTitleControl",n.editSubTitleControlComponent={template:a.default,bindings:{nyaSelect:"="},controller:function(){function e(){r(this,e)}return i(e,null,[{key:"$inject",get:function(){return[]}}]),e}()}},function(e,n){e.exports='<div class="panel panel-default">\n <div class="panel-body">\n <div class="row">\n <div class="col-md-12">\n <h5\n class="greyText">\n <i class="fa fa-eye"></i>\n &nbsp;\n {{\'PREVIEW_TAB\' | translate}} :\n </h5>\n </div>\n </div>\n <hr/>\n <div class="row">\n <div class="col-md-12">\n <div class="form-group">\n <div class="">\n <h4 class="text-center">\n {{$ctrl.nyaSelect.temporyConfig.formlyPlaceholder}}\n </h4>\n <hr/>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<div class="panel panel-default">\n <div class="panel-body">\n <div class="row">\n <div class="col-md-12">\n <h5\n class="greyText">\n <i class="fa fa-pencil-square-o"></i>\n &nbsp;\n {{\'EDIT_PROPERTIES\' | translate}} :\n </h5>\n </div>\n </div>\n <hr/>\n <div class="marginTopFivepixels"></div>\n <div class="row">\n <div class="form-group">\n <label\n for="inputSubTitleTextUpdate"\n class="col-lg-3 control-label greyText editPropertiesLabel">\n {{\'SUBTITLE_TEXT\' | translate}} :\n </label>\n <div class="col-lg-9">\n <input\n type="text"\n class="form-control"\n ng-model="$ctrl.nyaSelect.temporyConfig.formlyPlaceholder"\n id="inputSubTitleTextUpdate"\n placeholder="{{\'ADD_EDIT_SUBTIL_HERE\' | translate}}">\n </div>\n </div>\n </div>\n </div>\n</div>\n'},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(44),r="stepway.editSubTitleControl.module";n.default=angular.module(r,[]).component(o.EDIT_SUBTITLE_CONTROL_COMPONENT,o.editSubTitleControlComponent)},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.TextAreaConfig={id:"Texarea",name:"Textarea",subtitle:"Textarea",group:"Textarea",formlyType:"textarea",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDescription:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,n,t){var o="this Textarea field is required",r="undefined"!=typeof t.to.label&&""!==t.to.label?t.to.label+" is required":o;return r}}}}},function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0}),n.editTextareaControlComp
2016-06-18 20:01:17 +02:00
//# sourceMappingURL=eda.easyFormViewer.min.js.map