eda.stepway.js 254 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644
  1. !function(e){function r(e,r,o){return 4===arguments.length?t.apply(this,arguments):void n(e,{declarative:!0,deps:r,declare:o})}function t(e,r,t,o){n(e,{declarative:!1,deps:r,executingRequire:t,execute:o})}function n(e,r){r.name=e,e in p||(p[e]=r),r.normalizedDeps=r.deps}function o(e,r){if(r[e.groupIndex]=r[e.groupIndex]||[],-1==v.call(r[e.groupIndex],e)){r[e.groupIndex].push(e);for(var t=0,n=e.normalizedDeps.length;n>t;t++){var a=e.normalizedDeps[t],u=p[a];if(u&&!u.evaluated){var d=e.groupIndex+(u.declarative!=e.declarative);if(void 0===u.groupIndex||u.groupIndex<d){if(void 0!==u.groupIndex&&(r[u.groupIndex].splice(v.call(r[u.groupIndex],u),1),0==r[u.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");u.groupIndex=d}o(u,r)}}}}function a(e){var r=p[e];r.groupIndex=0;var t=[];o(r,t);for(var n=!!r.declarative==t.length%2,a=t.length-1;a>=0;a--){for(var u=t[a],i=0;i<u.length;i++){var s=u[i];n?d(s):l(s)}n=!n}}function u(e){return x[e]||(x[e]={name:e,dependencies:[],exports:{},importers:[]})}function d(r){if(!r.module){var t=r.module=u(r.name),n=r.module.exports,o=r.declare.call(e,function(e,r){if(t.locked=!0,"object"==typeof e)for(var o in e)n[o]=e[o];else n[e]=r;for(var a=0,u=t.importers.length;u>a;a++){var d=t.importers[a];if(!d.locked)for(var i=0;i<d.dependencies.length;++i)d.dependencies[i]===t&&d.setters[i](n)}return t.locked=!1,r},r.name);t.setters=o.setters,t.execute=o.execute;for(var a=0,i=r.normalizedDeps.length;i>a;a++){var l,s=r.normalizedDeps[a],c=p[s],v=x[s];v?l=v.exports:c&&!c.declarative?l=c.esModule:c?(d(c),v=c.module,l=v.exports):l=f(s),v&&v.importers?(v.importers.push(t),t.dependencies.push(v)):t.dependencies.push(null),t.setters[a]&&t.setters[a](l)}}}function i(e){var r,t=p[e];if(t)t.declarative?c(e,[]):t.evaluated||l(t),r=t.module.exports;else if(r=f(e),!r)throw new Error("Unable to load dependency "+e+".");return(!t||t.declarative)&&r&&r.__useDefault?r["default"]:r}function l(r){if(!r.module){var t={},n=r.module={exports:t,id:r.name};if(!r.executingRequire)for(var o=0,a=r.normalizedDeps.length;a>o;o++){var u=r.normalizedDeps[o],d=p[u];d&&l(d)}r.evaluated=!0;var c=r.execute.call(e,function(e){for(var t=0,n=r.deps.length;n>t;t++)if(r.deps[t]==e)return i(r.normalizedDeps[t]);throw new TypeError("Module "+e+" not declared as a dependency.")},t,n);c&&(n.exports=c),t=n.exports,t&&t.__esModule?r.esModule=t:r.esModule=s(t)}}function s(r){if(r===e)return r;var t={};if("object"==typeof r||"function"==typeof r)if(g){var n;for(var o in r)(n=Object.getOwnPropertyDescriptor(r,o))&&h(t,o,n)}else{var a=r&&r.hasOwnProperty;for(var o in r)(!a||r.hasOwnProperty(o))&&(t[o]=r[o])}return t["default"]=r,h(t,"__useDefault",{value:!0}),t}function c(r,t){var n=p[r];if(n&&!n.evaluated&&n.declarative){t.push(r);for(var o=0,a=n.normalizedDeps.length;a>o;o++){var u=n.normalizedDeps[o];-1==v.call(t,u)&&(p[u]?c(u,t):f(u))}n.evaluated||(n.evaluated=!0,n.module.execute.call(e))}}function f(e){if(D[e])return D[e];if("@node/"==e.substr(0,6))return y(e.substr(6));var r=p[e];if(!r)throw"Module "+e+" not present.";return a(e),c(e,[]),p[e]=void 0,r.declarative&&h(r.module.exports,"__esModule",{value:!0}),D[e]=r.declarative?r.module.exports:r.esModule}var p={},v=Array.prototype.indexOf||function(e){for(var r=0,t=this.length;t>r;r++)if(this[r]===e)return r;return-1},g=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(m){g=!1}var h;!function(){try{Object.defineProperty({},"a",{})&&(h=Object.defineProperty)}catch(e){h=function(e,r,t){try{e[r]=t.value||t.get.call(e)}catch(n){}}}}();var x={},y="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,D={"@empty":{}};return function(e,n,o){return function(a){a(function(a){for(var u={_nodeRequire:y,register:r,registerDynamic:t,get:f,set:function(e,r){D[e]=r},newModule:function(e){return e}},d=0;d<n.length;d++)(function(e,r){r&&r.__esModule?D[e]=r:D[e]=s(r)})(n[d],arguments[d]);o(u);var i=f(e[0]);if(e.length>1)for(var d=1;d<e.length;d++)f(e[d]);return i.__useDefault?i["default"]:i})}}}("undefined"!=typeof self?self:global)
  2. (["1"], [], function($__System) {
  3. !function(){var t=$__System;if("undefined"!=typeof window&&"undefined"!=typeof document&&window.location)var s=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"");t.set("@@cjs-helpers",t.newModule({getPathVars:function(t){var n,o=t.lastIndexOf("!");n=-1!=o?t.substr(0,o):t;var e=n.split("/");return e.pop(),e=e.join("/"),"file:///"==n.substr(0,8)?(n=n.substr(7),e=e.substr(7),isWindows&&(n=n.substr(1),e=e.substr(1))):s&&n.substr(0,s.length)===s&&(n=n.substr(s.length),e=e.substr(s.length)),{filename:n,dirname:e}}}))}();
  4. $__System.register("2", [], function (_export) {
  5. "use strict";
  6. return {
  7. setters: [],
  8. execute: function () {
  9. _export("default", window.angular);
  10. }
  11. };
  12. });
  13. $__System.registerDynamic("3", [], true, function($__require, exports, module) {
  14. ;
  15. var global = this,
  16. __define = global.define;
  17. global.define = undefined;
  18. module.exports = {
  19. "stepway": {"version": "1.2.0"},
  20. "dragdropway": {"version": "1.2.0"},
  21. "formviewer": {"version": "1.2.0"}
  22. };
  23. global.define = __define;
  24. return module.exports;
  25. });
  26. $__System.register('4', ['3'], function (_export) {
  27. 'use strict';
  28. var easyFormConfig, EASY_FORM_VERSION_NAME, EASY_FORM_VERSION_VALUE, ACTIVE_MODAL_ANIMATION;
  29. function easyFromConfig(easyFormSteWayConfigProvider) {
  30. //enable/disable easy form modal animation
  31. //HERE : disabling animation due to angular bootstrap backdrop bug with angular >= 1.4
  32. easyFormSteWayConfigProvider.setModalAnimation(ACTIVE_MODAL_ANIMATION);
  33. }
  34. return {
  35. setters: [function (_) {
  36. easyFormConfig = _['default'];
  37. }],
  38. execute: function () {
  39. EASY_FORM_VERSION_NAME = 'easyFormGenVersion';
  40. EASY_FORM_VERSION_VALUE = easyFormConfig.stepway.version;
  41. ACTIVE_MODAL_ANIMATION = false;
  42. easyFromConfig.$inject = ['easyFormSteWayConfigProvider'];
  43. _export('default', easyFromConfig);
  44. _export('EASY_FORM_VERSION_NAME', EASY_FORM_VERSION_NAME);
  45. _export('EASY_FORM_VERSION_VALUE', EASY_FORM_VERSION_VALUE);
  46. }
  47. };
  48. });
  49. $__System.register("5", [], function (_export) {
  50. "use strict";
  51. var richTextTemplate, blankTemplate, subTitleTemplate, basicSelectTemplate, groupedSelectTemplate, datepickerTemplate, validationTemplate;
  52. return {
  53. setters: [],
  54. execute: function () {
  55. richTextTemplate = "\n\t<text-angular name=\"{{id}}\"\n\t\tclass=\"richTextAngular\"\n\t\tng-model=\"model[options.key || index]\">\n\t</text-angular>";
  56. blankTemplate = "<div></div>";
  57. subTitleTemplate = "\n\t<div class=\"row\">\n\t\t<div class=\"\">\n\t\t\t<h4 class=\"text-center\">\n\t\t\t{{options.templateOptions.placeholder}}\n\t\t\t<h4><hr/>\n\t\t</div>\n\t</div>";
  58. basicSelectTemplate = "\n<ol\n\tclass=\"nya-bs-select col-sm-12 col-xs-12 col-md-12 col-lg12\"\n\tng-model=\"model[options.key || index]\"\n\tid=\"{{id}}\"\n\tdisabled=\"options.templateOptions.options.length === 0\">\n\t<li class=\"nya-bs-option\" nya-bs-option=\"option in options.templateOptions.options\">\n\t\t<a>{{option.name}}</a>\n\t</li>\n</ol>";
  59. groupedSelectTemplate = "\n\t<ol class=\"nya-bs-select col-sm-12 col-xs-12 col-md-12 col-lg12\"\n\t\tng-model=\"model[options.key || index]\"\n\t\tdata-live-search=\"true\"\n\t\tdisabled=\"options.templateOptions.options.length === 0\">\n\t\t<li nya-bs-option=\"option in options.templateOptions.options group by option.group\">\n\t\t\t<span class=\"dropdown-header\">{{$group}}</span>\n\t\t\t<a>\n\t\t\t\t<span>{{option.name}}</span>\n\t\t\t\t<span class=\"glyphicon glyphicon-ok check-mark\"></span>\n\t\t\t</a>\n\t\t</li>\n\t</ol>";
  60. datepickerTemplate = "\n<p class=\"input-group\">\n <span class=\"input-group-btn\">\n <button\n type=\"button\"\n class=\"btn btn-default\"\n ng-click=\"formlyDatePicker.open($event)\">\n <i class=\"glyphicon glyphicon-calendar\"></i>\n </button>\n </span>\n <input type=\"text\"\n id=\"{{::id}}\"\n name=\"{{::id}}\"\n ng-model=\"model[options.key]\"\n class=\"form-control\"\n ng-click=\"datepicker.open($event)\"\n uib-datepicker-popup=\"{{to.datepickerOptions.format}}\"\n is-open=\"datepicker.opened\"\n datepicker-options=\"to.datepickerOptions\"\n />\n</p>\n";
  61. validationTemplate = "\n\t<div class=\"formly-template-wrapper form-group\"\n\t\t\t\t\t\tng-class=\"{'has-error': options.validation.errorExistsAndShouldBeVisible}\">\n\t\t\t\t<formly-transclude></formly-transclude>\n\t\t\t\t<div class=\"validation\"\n\t\t\t\t\t\t\tng-if=\"options.validation.errorExistsAndShouldBeVisible\"\n\t\t\t\t\t\t\tng-messages=\"options.formControl.$error\">\n\t\t\t\t\t<div ng-messages-include=\"validation.html\"></div>\n\t\t\t\t\t<div ng-message=\"{{::name}}\" ng-repeat=\"(name, message) in ::options.validation.messages\">\n\t\t\t\t\t\t{{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>";
  62. _export("richTextTemplate", richTextTemplate);
  63. _export("blankTemplate", blankTemplate);
  64. _export("subTitleTemplate", subTitleTemplate);
  65. _export("basicSelectTemplate", basicSelectTemplate);
  66. _export("groupedSelectTemplate", groupedSelectTemplate);
  67. _export("datepickerTemplate", datepickerTemplate);
  68. _export("validationTemplate", validationTemplate);
  69. }
  70. };
  71. });
  72. $__System.register('6', ['5'], function (_export) {
  73. /* global angular */
  74. 'use strict';
  75. var richTextTemplate, blankTemplate, subTitleTemplate, basicSelectTemplate, groupedSelectTemplate, datepickerTemplate, validationTemplate;
  76. function formlyConfig(formlyConfigProvider) {
  77. formlyConfigProvider.setType({
  78. name: 'richEditor',
  79. template: richTextTemplate,
  80. wrapper: ['bootstrapLabel', 'bootstrapHasError']
  81. });
  82. formlyConfigProvider.setType({
  83. name: 'blank',
  84. template: blankTemplate
  85. });
  86. formlyConfigProvider.setType({
  87. name: 'subTitle',
  88. template: subTitleTemplate
  89. });
  90. formlyConfigProvider.setType({
  91. name: 'basicSelect',
  92. template: basicSelectTemplate,
  93. wrapper: ['bootstrapLabel', 'bootstrapHasError']
  94. });
  95. formlyConfigProvider.setType({
  96. name: 'groupedSelect',
  97. template: groupedSelectTemplate,
  98. wrapper: ['bootstrapLabel', 'bootstrapHasError']
  99. });
  100. // impplement from : http://jsbin.com/koredu/edit?js,output
  101. formlyConfigProvider.setType({
  102. name: 'upload',
  103. 'extends': 'input',
  104. wrapper: ['bootstrapLabel', 'bootstrapHasError'],
  105. link: function link(scope, el, attrs) {
  106. el.on("change", function (changeEvent) {
  107. var file = changeEvent.target.files[0];
  108. if (file) {
  109. // console.log('scope.id', scope.id);
  110. var fd = new FormData();
  111. // use key on backEnd
  112. fd.append('uploadFile', file);
  113. scope.$emit('fileToUpload', fd);
  114. var fileProp = {};
  115. for (var properties in file) {
  116. if (!angular.isFunction(file[properties])) {
  117. fileProp[properties] = file[properties];
  118. }
  119. }
  120. scope.fc.$setViewValue(fileProp);
  121. } else {
  122. scope.fc.$setViewValue(undefined);
  123. }
  124. });
  125. el.on("focusout", function (focusoutEvent) {
  126. // dont run validation , user still opening pop up file dialog
  127. if ($window.document.activeElement.id === scope.id) {
  128. // so we set it untouched
  129. scope.$apply(function (scope) {
  130. scope.fc.$setUntouched();
  131. });
  132. } else {
  133. // element losing focus so we trigger validation
  134. scope.fc.$validate();
  135. }
  136. });
  137. },
  138. defaultOptions: {
  139. templateOptions: {
  140. type: 'file',
  141. required: true
  142. }
  143. }
  144. });
  145. ////////////////////////////
  146. // angular UI date picker
  147. ////////////////////////////
  148. // thx Kent C. Dodds
  149. var attributes = ['date-disabled', 'custom-class', 'show-weeks', 'starting-day', 'init-date', 'min-mode', 'max-mode', 'format-day', 'format-month', 'format-year', 'format-day-header', 'format-day-title', 'format-month-title', 'year-range', 'shortcut-propagation', 'datepicker-popup', 'show-button-bar', 'current-text', 'clear-text', 'close-text', 'close-on-date-selection', 'datepicker-append-to-body'];
  150. var bindings = ['datepicker-mode', 'min-date', 'max-date'];
  151. var ngModelAttrs = {};
  152. angular.forEach(attributes, function (attr) {
  153. ngModelAttrs[camelize(attr)] = { attribute: attr };
  154. });
  155. angular.forEach(bindings, function (binding) {
  156. ngModelAttrs[camelize(binding)] = { bound: binding };
  157. });
  158. formlyConfigProvider.setType({
  159. name: 'datepicker',
  160. template: datepickerTemplate,
  161. defaultOptions: {
  162. ngModelAttrs: ngModelAttrs,
  163. templateOptions: {
  164. datepickerOptions: {
  165. format: 'dd/MM/yyyy',
  166. initDate: new Date(),
  167. showWeeks: false
  168. }
  169. }
  170. },
  171. wrapper: ['bootstrapLabel', 'bootstrapHasError'],
  172. controller: ['$scope', function ($scope) {
  173. // console.info('ui calendar init');
  174. $scope.datepicker = {};
  175. // make sure the initial value is of type DATE!
  176. var currentModelVal = $scope.model[$scope.options.key];
  177. if (typeof currentModelVal == 'string') {
  178. $scope.model[$scope.options.key] = new Date(currentModelVal);
  179. }
  180. $scope.datepicker.opened = false;
  181. $scope.datepicker.open = function ($event) {
  182. $event.preventDefault();
  183. $event.stopPropagation();
  184. // console.info('ui calendar open event');
  185. $scope.datepicker.opened = !$scope.datepicker.opened;
  186. };
  187. }]
  188. });
  189. /**
  190. * wrappers to show validation errors
  191. * without having to rewrite formly types
  192. */
  193. formlyConfigProvider.setWrapper([{
  194. template: validationTemplate
  195. }]);
  196. function camelize(string) {
  197. string = string.replace(/[\-_\s]+(.)?/g, function (match, chr) {
  198. return chr ? chr.toUpperCase() : '';
  199. });
  200. // Ensure 1st char is always lowercase
  201. return string.replace(/^([A-Z])/, function (match, chr) {
  202. return chr ? chr.toLowerCase() : '';
  203. });
  204. }
  205. }
  206. return {
  207. setters: [function (_) {
  208. richTextTemplate = _.richTextTemplate;
  209. blankTemplate = _.blankTemplate;
  210. subTitleTemplate = _.subTitleTemplate;
  211. basicSelectTemplate = _.basicSelectTemplate;
  212. groupedSelectTemplate = _.groupedSelectTemplate;
  213. datepickerTemplate = _.datepickerTemplate;
  214. validationTemplate = _.validationTemplate;
  215. }],
  216. execute: function () {
  217. formlyConfig.$inject = ['formlyConfigProvider'];
  218. _export('default', formlyConfig);
  219. }
  220. };
  221. });
  222. $__System.registerDynamic("7", [], true, function($__require, exports, module) {
  223. ;
  224. var global = this,
  225. __define = global.define;
  226. global.define = undefined;
  227. module.exports = {
  228. "SAY_HI": "Hello",
  229. "EDIT_TAB": "Edit / Create",
  230. "PREVIEW_TAB": "Preview",
  231. "WIZARD_LINES": "lines",
  232. "WIZARD_LAYOUT": "layout",
  233. "WIZARD_CONTROLS": "controls",
  234. "WIZARD_SAVE": "save",
  235. "PAGER_PREVIOUS": "Previous",
  236. "PAGER_NEXT": "Next",
  237. "COMMAND_PANEL": "Command",
  238. "VISUAL_PANEL": "Visual",
  239. "ADD_NEW_LINE": "Add a new line",
  240. "SELECTED_LINE": "Selected line",
  241. "NUMBER_OF_COLUMN": "number of columns",
  242. "APPLY_CTRL2COL": "Apply controls to columns",
  243. "CLIC_TAP_2_OPEN": "Click / Tap on column to open control selection",
  244. "SELECT_2_APPLY_COL": "Select desired control and valid to apply it to column",
  245. "CUSTOM_SUBMIT_BTN": "Customize Submit button Text",
  246. "CUSTOM_CANCEL_BTN": "Customize Cancel button Text",
  247. "NAME_THIS_FORM": "Name this form",
  248. "SAVE_THIS_FORM": "save this form",
  249. "FINAL_STEP": "Final Step : form preview",
  250. "DATA_MODEL": "DATA MODEL",
  251. "FIELDS_MODEL": "FIELDS MODEL (ready to save to database one)",
  252. "SELECT_A_CTRL": "Select a control",
  253. "SELECT_CTRL_IN_LIST": "Select a control in the list below",
  254. "COL_WILL_BE_BLANK": "Column will be blank",
  255. "EDIT_PROPERTIES": "Edit properties",
  256. "HEADER_TEXT": "Header text",
  257. "ADD_EDIT_HEADER_HERE": "Add / edit header text here",
  258. "SUBTITLE_TEXT": "Subtitle text",
  259. "ADD_EDIT_SUBTIL_HERE": "Add / edit subtitle text here",
  260. "LABEL_TEXT": "Label text",
  261. "ADD_EDIT_LABEL_HERE": "Add / edit control label here",
  262. "PLACEHOLDER": "placeholder",
  263. "ADD_EDIT_PLACEHOLD": "Add / edit placeholder text here",
  264. "REQUIRED": "Required",
  265. "DESCRIPTION": "Description",
  266. "ADDEDIT_DESCRIPTION": "Add / edit description here",
  267. "DATE_FORMAT": "Date format",
  268. "ADD_NEW_RADIO": "Add new radio",
  269. "ADD_RADIO_PLACEHOLD": "add new radio",
  270. "EDIT_REMOVE_RADIO": "Edit/Remove radio",
  271. "NO_RADIO_ADD_NEW": "no radio : add new radio values",
  272. "SEARCH_4_OPTION": "search for option",
  273. "ADD": "add",
  274. "ORDER": "order",
  275. "OPTION": "option",
  276. "GROUP": "group",
  277. "ADD_NEW_OPTIONS": "Add new options",
  278. "ADD_A_NEW_OPTION": "add new option",
  279. "EDIT_REMOVE_OPTIONS": "Edit/Remove options",
  280. "NO_OPTION_ADD_NEW": "no option : add new options",
  281. "ADD_NEW_GROUPS": "Add new groups",
  282. "ADD_A_NEW_GROUP": "Add new group",
  283. "EDIT_GROUPS_OPTIONS": "Edit/Remove options/groups",
  284. "NO_GROUP_ADD_NEW": "add new groups",
  285. "OK": "OK",
  286. "CANCEL": "Cancel"
  287. };
  288. global.define = __define;
  289. return module.exports;
  290. });
  291. $__System.registerDynamic("8", [], true, function($__require, exports, module) {
  292. ;
  293. var global = this,
  294. __define = global.define;
  295. global.define = undefined;
  296. module.exports = {
  297. "SAY_HI": "Bonjour",
  298. "EDIT_TAB": "Edition / Creation",
  299. "PREVIEW_TAB": "Aperçu",
  300. "WIZARD_LINES": "lignes",
  301. "WIZARD_LAYOUT": "disposition",
  302. "WIZARD_CONTROLS": "contrôles",
  303. "WIZARD_SAVE": "sauvegarder",
  304. "PAGER_PREVIOUS": "Précédent",
  305. "PAGER_NEXT": "Suivant",
  306. "COMMAND_PANEL": "Commandes",
  307. "VISUAL_PANEL": "Visuel",
  308. "ADD_NEW_LINE": "Ajouter une nouvelle ligne",
  309. "SELECTED_LINE": "Ligne sélectionnée",
  310. "NUMBER_OF_COLUMN": "nombre de colonnes",
  311. "APPLY_CTRL2COL": "Appliquer les contrôles aux colonnes",
  312. "CLIC_TAP_2_OPEN": "Cliquer sur une colonne pour ouvrir le menu d'édition",
  313. "SELECT_2_APPLY_COL": "Sélectionner un contrôle puis valider pour l'appliquer à la colonne",
  314. "CUSTOM_SUBMIT_BTN": "Personnaliser le texte du bouton envoie",
  315. "CUSTOM_CANCEL_BTN": "Personnaliser le texte du bouton annuler",
  316. "NAME_THIS_FORM": "Nommer le formulaire",
  317. "SAVE_THIS_FORM": "sauvegarder le formulaire",
  318. "FINAL_STEP": "Dernière étape : aperçu du formulaire",
  319. "DATA_MODEL": "MODELE DE DONNEES",
  320. "FIELDS_MODEL": "MODELE DES CHAMPS (modèle compatible base de données)",
  321. "SELECT_A_CTRL": "Sélectionner un contrôle",
  322. "SELECT_CTRL_IN_LIST": "Sélectionner un contrôle dans la liste ci-dessous",
  323. "COL_WILL_BE_BLANK": "La colonne sera vide",
  324. "EDIT_PROPERTIES": "Editer les propriétés",
  325. "HEADER_TEXT": "Texte du titre principal",
  326. "ADD_EDIT_HEADER_HERE": "Editer le textes du titre principal",
  327. "SUBTITLE_TEXT": "Texte du sous-titre",
  328. "ADD_EDIT_SUBTIL_HERE": "Editer le textes du sous-titre",
  329. "LABEL_TEXT": "Texte de l'étiquette",
  330. "ADD_EDIT_LABEL_HERE": "Editer le texte de l'étiquette",
  331. "PLACEHOLDER": "placeholder",
  332. "ADD_EDIT_PLACEHOLD": "Editer le placeholder",
  333. "REQUIRED": "Requis",
  334. "DESCRIPTION": "Description",
  335. "ADDEDIT_DESCRIPTION": "Ajouter / editer la description",
  336. "DATE_FORMAT": "Format de la date",
  337. "ADD_NEW_RADIO": "Ajouter un nouveau choix à cocher",
  338. "ADD_RADIO_PLACEHOLD": "Ajouter un nouveau choix à cocher",
  339. "EDIT_REMOVE_RADIO": "Editer / supprimer un choix à cocher",
  340. "NO_RADIO_ADD_NEW": "aucun choix à cocher : en ajouter un",
  341. "SEARCH_4_OPTION": "rechercher une option",
  342. "ADD": "ajouter",
  343. "ORDER": "ordre",
  344. "OPTION": "option",
  345. "GROUP": "groupe",
  346. "ADD_NEW_OPTIONS": "Ajouter de nouvelles options",
  347. "ADD_A_NEW_OPTION": "ajoutre une option",
  348. "EDIT_REMOVE_OPTIONS": "Editer / supprimer des options",
  349. "NO_OPTION_ADD_NEW": "aucune option : en ajouter",
  350. "ADD_NEW_GROUPS": "Ajouter de nouveaux groupes",
  351. "ADD_A_NEW_GROUP": "Ajouter un nouveau groupe",
  352. "EDIT_GROUPS_OPTIONS": "Editer / supprimer les groupes et options",
  353. "NO_GROUP_ADD_NEW": "ajouter de nouveaux groupes",
  354. "OK": "Valider",
  355. "CANCEL": "Annuler"
  356. };
  357. global.define = __define;
  358. return module.exports;
  359. });
  360. $__System.registerDynamic("9", [], true, function($__require, exports, module) {
  361. ;
  362. var global = this,
  363. __define = global.define;
  364. global.define = undefined;
  365. module.exports = {
  366. "SAY_HI": "Hola",
  367. "EDIT_TAB": "Editar / Crear",
  368. "PREVIEW_TAB": "Previsualizar",
  369. "WIZARD_LINES": "lineas",
  370. "WIZARD_LAYOUT": "diseño",
  371. "WIZARD_CONTROLS": "controles",
  372. "WIZARD_SAVE": "guardar",
  373. "PAGER_PREVIOUS": "Anterior",
  374. "PAGER_NEXT": "Siguiente",
  375. "COMMAND_PANEL": "Comando",
  376. "VISUAL_PANEL": "Visual",
  377. "ADD_NEW_LINE": "Agregar nueva linea",
  378. "SELECTED_LINE": "Linea seleccionada",
  379. "NUMBER_OF_COLUMN": "numero de columnas",
  380. "APPLY_CTRL2COL": "Aplicar controles a columnas",
  381. "CLIC_TAP_2_OPEN": "Click / Toque en la columna para seleccionar controles",
  382. "SELECT_2_APPLY_COL": "Selecciona el control deseado para aplicarlo a la columna",
  383. "CUSTOM_SUBMIT_BTN": "Personalizar texto de boton Enviar",
  384. "CUSTOM_CANCEL_BTN": "Personalizar texto de boton Cancelar",
  385. "NAME_THIS_FORM": "Nombrar formulario",
  386. "SAVE_THIS_FORM": "guardar formulario",
  387. "FINAL_STEP": "Ultimo paso : previsualizar formulario",
  388. "DATA_MODEL": "MODELO DE DATOS",
  389. "FIELDS_MODEL": "MODELO DE CAMPOS (listo para guardar en base de datos uno)",
  390. "SELECT_A_CTRL": "Selecciona un control",
  391. "SELECT_CTRL_IN_LIST": "Selecciona un control de la lista",
  392. "COL_WILL_BE_BLANK": "Columna sera vacia",
  393. "EDIT_PROPERTIES": "Editar propiedades",
  394. "HEADER_TEXT": "Texto de encabezado",
  395. "ADD_EDIT_HEADER_HERE": "Agregar / editar texto de encabezado aqui",
  396. "SUBTITLE_TEXT": "Texto de subtitulo",
  397. "ADD_EDIT_SUBTIL_HERE": "Agregar / editar texto de subtitulo aqui",
  398. "LABEL_TEXT": "Texto de etiqueta",
  399. "ADD_EDIT_LABEL_HERE": "Agregar / editar texto de etiqueta aqui",
  400. "PLACEHOLDER": "Marcador",
  401. "ADD_EDIT_PLACEHOLD": "Agregar / editar texto de marcador aqui",
  402. "REQUIRED": "Requerido",
  403. "DESCRIPTION": "Descripcion",
  404. "ADDEDIT_DESCRIPTION": "Agregar / editar descripcion aqui",
  405. "DATE_FORMAT": "Formato de fecha",
  406. "ADD_NEW_RADIO": "Agregar nuevo radio",
  407. "ADD_RADIO_PLACEHOLD": "agregar nuevo radio",
  408. "EDIT_REMOVE_RADIO": "Editar/Eliminar radio",
  409. "NO_RADIO_ADD_NEW": "sin radio : agregar nuevos valores de radio",
  410. "SEARCH_4_OPTION": "buscar opcion",
  411. "ADD": "agregar",
  412. "ORDER": "orden",
  413. "OPTION": "opcion",
  414. "GROUP": "grupo",
  415. "ADD_NEW_OPTIONS": "agregar nuevas opciones",
  416. "ADD_A_NEW_OPTION": "agregar nueva opcione",
  417. "EDIT_REMOVE_OPTIONS": "Editar/Eliminar opciones",
  418. "NO_OPTION_ADD_NEW": "sin opcion : agregar nuevas opciones",
  419. "ADD_NEW_GROUPS": "Agregar nuevos grupos",
  420. "ADD_A_NEW_GROUP": "Agregar nuevo grupo",
  421. "EDIT_GROUPS_OPTIONS": "Editar/Eliminar opciones/grupos",
  422. "NO_GROUP_ADD_NEW": "agregar nuevos grupos",
  423. "OK": "OK",
  424. "CANCEL": "Cancelar"
  425. };
  426. global.define = __define;
  427. return module.exports;
  428. });
  429. $__System.registerDynamic("a", [], true, function($__require, exports, module) {
  430. ;
  431. var global = this,
  432. __define = global.define;
  433. global.define = undefined;
  434. module.exports = {
  435. "SAY_HI": "Hallo",
  436. "EDIT_TAB": "Bearbeiten / Schaffen",
  437. "PREVIEW_TAB": "Vorschau",
  438. "WIZARD_LINES": "Linien",
  439. "WIZARD_LAYOUT": "Layout",
  440. "WIZARD_CONTROLS": "Steuerung",
  441. "WIZARD_SAVE": "sparen",
  442. "PAGER_PREVIOUS": "vorher.",
  443. "PAGER_NEXT": "nächste",
  444. "COMMAND_PANEL": "Anweisung",
  445. "VISUAL_PANEL": "visuell",
  446. "ADD_NEW_LINE": "Hinzufügen neuer Leitung",
  447. "SELECTED_LINE": "ausgewählte Linie",
  448. "NUMBER_OF_COLUMN": "Anzahl von Spalten",
  449. "APPLY_CTRL2COL": "gelten diese Steuer Spalte",
  450. "CLIC_TAP_2_OPEN": "klicken Sie auf Spalte zur Steuerungsauswahl öffnen",
  451. "SELECT_2_APPLY_COL": "Wählen Sie die gewünschte Steuerung und gültig , um es in Spalte anwenden",
  452. "CUSTOM_SUBMIT_BTN": "Passen Submit-Button Text",
  453. "CUSTOM_CANCEL_BTN": "Passen Cancel-Button Text",
  454. "NAME_THIS_FORM": "Nennen dieses Formular",
  455. "SAVE_THIS_FORM": "Speichern dieses Formular",
  456. "FINAL_STEP": "Endschritt : Formular Vorschau",
  457. "DATA_MODEL": "DATEN MODELL",
  458. "FIELDS_MODEL": "FELDER MODELL (Datenbank-kompatibel)",
  459. "SELECT_A_CTRL": "Wählen Sie ein Steuer",
  460. "SELECT_CTRL_IN_LIST": "Wählen Sie ein Steuer aus der Liste unten",
  461. "COL_WILL_BE_BLANK": "die Spalte werde leer sein",
  462. "EDIT_PROPERTIES": "Anzeigen",
  463. "HEADER_TEXT": "Kopftext",
  464. "ADD_EDIT_HEADER_HERE": "Kopftext ändern",
  465. "SUBTITLE_TEXT": "Untertitel",
  466. "ADD_EDIT_SUBTIL_HERE": "Untertitel ändern",
  467. "LABEL_TEXT": "Etikett",
  468. "ADD_EDIT_LABEL_HERE": "Etikett ändern",
  469. "PLACEHOLDER": "placeholder",
  470. "ADD_EDIT_PLACEHOLD": "placeholder ändern",
  471. "REQUIRED": "erforderlich",
  472. "DESCRIPTION": "Beschreibung",
  473. "ADDEDIT_DESCRIPTION": "Beschreibung ändern",
  474. "DATE_FORMAT": "Datumsformat",
  475. "ADD_NEW_RADIO": "Radiobutton hinzufügen",
  476. "ADD_RADIO_PLACEHOLD": "Radiobutton hinzufügen",
  477. "EDIT_REMOVE_RADIO": "Radiobutton ändern",
  478. "NO_RADIO_ADD_NEW": "kein Radiobutton : Radiobutton hinzufügen",
  479. "SEARCH_4_OPTION": "option suchen",
  480. "ADD": "hinzufügen",
  481. "ORDER": "bestellen",
  482. "OPTION": "Option",
  483. "GROUP": "Gruppe",
  484. "ADD_NEW_OPTIONS": "Optionen hinzufügen",
  485. "ADD_A_NEW_OPTION": "Option hinzufügen",
  486. "EDIT_REMOVE_OPTIONS": "Optionen ändern",
  487. "NO_OPTION_ADD_NEW": "kein option : Option hinzufügen",
  488. "ADD_NEW_GROUPS": "Gruppen hinzufügen",
  489. "ADD_A_NEW_GROUP": "Gruppe hinzufügen",
  490. "EDIT_GROUPS_OPTIONS": "Gruppen ändern",
  491. "NO_GROUP_ADD_NEW": "keine Gruppe : Gruppe hinzufügen",
  492. "OK": "bestätigen",
  493. "CANCEL": "stornieren"
  494. };
  495. global.define = __define;
  496. return module.exports;
  497. });
  498. $__System.registerDynamic("b", [], true, function($__require, exports, module) {
  499. ;
  500. var global = this,
  501. __define = global.define;
  502. global.define = undefined;
  503. module.exports = {
  504. "SAY_HI": "Merhaba",
  505. "EDIT_TAB": "Düzenle / Oluştur",
  506. "PREVIEW_TAB": "Önizleme",
  507. "WIZARD_LINES": "satırlar",
  508. "WIZARD_LAYOUT": "düzen",
  509. "WIZARD_CONTROLS": "kontroller",
  510. "WIZARD_SAVE": "kaydet",
  511. "PAGER_PREVIOUS": "Geri",
  512. "PAGER_NEXT": "İleri",
  513. "COMMAND_PANEL": "Komut",
  514. "VISUAL_PANEL": "Görsel",
  515. "ADD_NEW_LINE": "Yeni satır ekle",
  516. "SELECTED_LINE": "Seçili satır",
  517. "NUMBER_OF_COLUMN": "sütun sayısı",
  518. "APPLY_CTRL2COL": "Sütunlara form ögesi ekle",
  519. "CLIC_TAP_2_OPEN": "Form ögesi eklemek için sütunlara tıkla",
  520. "SELECT_2_APPLY_COL": "İstediğin ögeyi seçtikten sonra gerekli yerleri doldur ve kaydet",
  521. "CUSTOM_SUBMIT_BTN": "Gönder butonu yazısını düzenle",
  522. "CUSTOM_CANCEL_BTN": "İptal butonu yazısını düzenle",
  523. "NAME_THIS_FORM": "Forma isim ver",
  524. "SAVE_THIS_FORM": "formu kaydet",
  525. "FINAL_STEP": "Son aşama : form önizlemesi",
  526. "DATA_MODEL": "VERİ MODELİ",
  527. "FIELDS_MODEL": "ALAN MODELİ (veritabanına kaydetmeye hazır)",
  528. "SELECT_A_CTRL": "Form ögesi seç",
  529. "SELECT_CTRL_IN_LIST": "Verilen listeden bir form ögesi seç",
  530. "COL_WILL_BE_BLANK": "Sütun boş kalacak",
  531. "EDIT_PROPERTIES": "Özellikleri düzenle",
  532. "HEADER_TEXT": "Başlık yazısı",
  533. "ADD_EDIT_HEADER_HERE": "Başlık yazısını ekle / düzenle",
  534. "SUBTITLE_TEXT": "Altyazı",
  535. "ADD_EDIT_SUBTIL_HERE": "Altyazı ekle / düzenle",
  536. "LABEL_TEXT": "Form ögesinin adı",
  537. "ADD_EDIT_LABEL_HERE": "Ad ekle / düzenle",
  538. "PLACEHOLDER": "Form ögesinin içine geçici yazı ekle",
  539. "ADD_EDIT_PLACEHOLD": "Geçici yazı ekle / düzenle",
  540. "REQUIRED": "Gerekli",
  541. "DESCRIPTION": "Açıklama",
  542. "ADDEDIT_DESCRIPTION": "Açıklama ekle / düzenle",
  543. "DATE_FORMAT": "Tarih formatı",
  544. "ADD_NEW_RADIO": "Radio butonu ekle",
  545. "ADD_RADIO_PLACEHOLD": "radio butonu ekle",
  546. "EDIT_REMOVE_RADIO": "Radio butonunu ekle / düzenle",
  547. "NO_RADIO_ADD_NEW": "radio butonu yok : yeni buton ekle",
  548. "SEARCH_4_OPTION": "seçenek ara",
  549. "ADD": "ekle",
  550. "ORDER": "sıra",
  551. "OPTION": "seçenek",
  552. "GROUP": "grup",
  553. "ADD_NEW_OPTIONS": "Yeni seçenek ekle",
  554. "ADD_A_NEW_OPTION": "yeni seçenek ekle",
  555. "EDIT_REMOVE_OPTIONS": "Seçenekleri düzenle/sil",
  556. "NO_OPTION_ADD_NEW": "seçenek yok : yeni seçenek ekle",
  557. "ADD_NEW_GROUPS": "Yeni grup ekle",
  558. "ADD_A_NEW_GROUP": "Yeni grup ekle",
  559. "EDIT_GROUPS_OPTIONS": "Seçenek/Grup Ekle/sil",
  560. "NO_GROUP_ADD_NEW": "yeni grup ekle",
  561. "OK": "TAMAM",
  562. "CANCEL": "İptal"
  563. };
  564. global.define = __define;
  565. return module.exports;
  566. });
  567. $__System.registerDynamic("c", [], true, function($__require, exports, module) {
  568. ;
  569. var global = this,
  570. __define = global.define;
  571. global.define = undefined;
  572. module.exports = {
  573. "SAY_HI": "こんにちわ",
  574. "EDIT_TAB": "編集 / 作成",
  575. "PREVIEW_TAB": "プレビュー",
  576. "WIZARD_LINES": "ライン",
  577. "WIZARD_LAYOUT": "レイアウト",
  578. "WIZARD_CONTROLS": "コントロール",
  579. "WIZARD_SAVE": "サーブ",
  580. "PAGER_PREVIOUS": "前",
  581. "PAGER_NEXT": "次",
  582. "COMMAND_PANEL": "コマンド",
  583. "VISUAL_PANEL": "ビジュアル",
  584. "ADD_NEW_LINE": "新しいライン追加",
  585. "SELECTED_LINE": "選択されたライン",
  586. "NUMBER_OF_COLUMN": "カラムの数",
  587. "APPLY_CTRL2COL": "カラムにコントロール適用",
  588. "CLIC_TAP_2_OPEN": "コントロール選択を広げるには列をクリック",
  589. "SELECT_2_APPLY_COL": "好きなコントロールを選び適用",
  590. "CUSTOM_SUBMIT_BTN": "適用ボタンの文字変更する場合",
  591. "CUSTOM_CANCEL_BTN": "キャンセルボタンの文字変更する場合",
  592. "NAME_THIS_FORM": "形式に名前を付ける",
  593. "SAVE_THIS_FORM": "形式をサーブ",
  594. "FINAL_STEP": "ファイナルステップ : プレビュー形式",
  595. "DATA_MODEL": "データーモデル",
  596. "FIELDS_MODEL": "モデルフィールド",
  597. "SELECT_A_CTRL": "コントロールを選び選択",
  598. "SELECT_CTRL_IN_LIST": "以下のリストからコントロールを選び選択",
  599. "COL_WILL_BE_BLANK": "空になる列",
  600. "EDIT_PROPERTIES": "プロパティの変更",
  601. "HEADER_TEXT": "ヘッダーテキスト",
  602. "ADD_EDIT_HEADER_HERE": "ヘッダーテキスト文字変更",
  603. "SUBTITLE_TEXT": "サブタイトル テキスト",
  604. "ADD_EDIT_SUBTIL_HERE": "サブタイトルテキスト文字変更",
  605. "LABEL_TEXT": "ラベルテキスト",
  606. "ADD_EDIT_LABEL_HERE": "ラベルテキスト文字変更",
  607. "PLACEHOLDER": "プレースホルダー",
  608. "ADD_EDIT_PLACEHOLD": "プレースホルダー文字変更",
  609. "REQUIRED": "必須",
  610. "DESCRIPTION": "説明",
  611. "ADDEDIT_DESCRIPTION": "説明の変更",
  612. "DATE_FORMAT": "日付の形式",
  613. "ADD_NEW_RADIO": "新ラジオボタンを追加",
  614. "ADD_RADIO_PLACEHOLD": "新ラジオボタンを追加",
  615. "EDIT_REMOVE_RADIO": "ラジオボタン変更",
  616. "NO_RADIO_ADD_NEW": "ラジオ無し : 新ラジオボタン追加",
  617. "SEARCH_4_OPTION": "オプション検索",
  618. "ADD": "追加",
  619. "ORDER": "順番",
  620. "OPTION": "オプション",
  621. "GROUP": "グループ",
  622. "ADD_NEW_OPTIONS": "新しいオプション追加",
  623. "ADD_A_NEW_OPTION": "新しいオプション追加",
  624. "EDIT_REMOVE_OPTIONS": "オプションの変更",
  625. "NO_OPTION_ADD_NEW": "オプション無し : 新しいオプション追加",
  626. "ADD_NEW_GROUPS": "新しいグループ追加",
  627. "ADD_A_NEW_GROUP": "新しいグループ追加",
  628. "EDIT_GROUPS_OPTIONS": "グループを変更",
  629. "NO_GROUP_ADD_NEW": "グループを追加",
  630. "OK": "オッケー",
  631. "CANCEL": "キャンセル"
  632. };
  633. global.define = __define;
  634. return module.exports;
  635. });
  636. $__System.register('d', ['7', '8', '9', 'a', 'b', 'c'], function (_export) {
  637. 'use strict';
  638. var localEn, localFr, localEs, localDe, localTr, localJp, TRANSLATE_CONFIG;
  639. function translateConfig($translateProvider) {
  640. $translateProvider.translations('en', localEn);
  641. $translateProvider.translations('fr', localFr);
  642. $translateProvider.translations('es', localEs);
  643. $translateProvider.translations('de', localDe);
  644. $translateProvider.translations('tr', localTr);
  645. $translateProvider.translations('jp', localJp);
  646. }
  647. return {
  648. setters: [function (_) {
  649. localEn = _['default'];
  650. }, function (_2) {
  651. localFr = _2['default'];
  652. }, function (_3) {
  653. localEs = _3['default'];
  654. }, function (_a) {
  655. localDe = _a['default'];
  656. }, function (_b) {
  657. localTr = _b['default'];
  658. }, function (_c) {
  659. localJp = _c['default'];
  660. }],
  661. execute: function () {
  662. TRANSLATE_CONFIG = 'easyFormTranslateConfig';
  663. translateConfig.$inject = ['$translateProvider'];
  664. _export('default', translateConfig);
  665. _export('TRANSLATE_CONFIG', TRANSLATE_CONFIG);
  666. }
  667. };
  668. });
  669. $__System.register('e', ['d'], function (_export) {
  670. /* global angular */
  671. 'use strict';
  672. var translateConfig, TRANSLATE_CONFIG, TRANSLATE_MODULE;
  673. return {
  674. setters: [function (_d) {
  675. translateConfig = _d['default'];
  676. TRANSLATE_CONFIG = _d.TRANSLATE_CONFIG;
  677. }],
  678. execute: function () {
  679. TRANSLATE_MODULE = 'eda.easyFormGenerator.translate';
  680. _export('default', angular.module(TRANSLATE_MODULE, []).config(translateConfig));
  681. }
  682. };
  683. });
  684. $__System.register('f', [], function (_export) {
  685. /* global angular */
  686. 'use strict';
  687. var CORE_MODULES;
  688. return {
  689. setters: [],
  690. execute: function () {
  691. CORE_MODULES = ['textAngular', 'textAngularSetup', 'ngAnimate', 'toaster', 'formly', 'formlyBootstrap', 'ui.bootstrap', 'nya.bootstrap.select', 'pascalprecht.translate'];
  692. _export('default', angular.module('edaStepWayEasyFormGen.core', CORE_MODULES));
  693. }
  694. };
  695. });
  696. $__System.registerDynamic("10", [], true, function($__require, exports, module) {
  697. ;
  698. var global = this,
  699. __define = global.define;
  700. global.define = undefined;
  701. module.exports = "<section id=\"pageWfEdit\">\n\t<div ng-init=\"\">\n\t\t<div class=\"container\">\n\t\t\t<section id=\"preview\">\n\t\t\t\t<div id=\"preview-content\">\n\t\t\t\t\t<div class=\"content-container\">\n\t\t\t\t\t\t<!-- taoster alert -->\n\t\t\t\t\t\t<toaster-container toaster-options=\"{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'position-class': 'toast-top-full-width',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'extendedTimeout':500,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'timeOut':500,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\">\n\t\t\t\t\t\t</toaster-container>\n\t\t\t\t\t\t<uib-tabset justified=\"true\">\n\t\t\t\t\t\t\t<uib-tab active=\"vm.tab.editTab.active\" heading=\"{{'EDIT_TAB' | translate}}\">\n\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<!-- STEP INDICATOR -->\n\t\t\t\t\t\t\t\t<div class=\"row stepwizardTopmargin\">\n\t\t\t\t\t\t\t\t\t<div class=\"col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"stepwizard\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row stepwizard-row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"stepwizard-step col-md-3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-circle\" ng-class=\"{'btn-primary': vm.configuration.stepIndicators[0], 'btn-default': !vm.configuration.stepIndicators[0]}\" >0</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{'WIZARD_LINES' | translate}}</p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"stepwizard-step col-md-3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-circle\" ng-class=\"{'btn-primary': vm.configuration.stepIndicators[1], 'btn-default': !vm.configuration.stepIndicators[1], 'disabled': (vm.configuration.configStepCounter < 1)}\" >1</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{'WIZARD_LAYOUT' | translate}}</p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"stepwizard-step col-md-3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-default btn-circle\" ng-class=\"{'btn-primary': vm.configuration.stepIndicators[2], 'btn-default': !vm.configuration.stepIndicators[2], 'disabled': (vm.configuration.configStepCounter < 2)}\" >2</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{'WIZARD_CONTROLS' | translate}}</p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"stepwizard-step col-md-3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-default btn-circle\" ng-class=\"{'btn-primary': vm.configuration.stepIndicators[3], 'btn-default': !vm.configuration.stepIndicators[3], 'disabled': (vm.configuration.configStepCounter < 3)}\" >3</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{'WIZARD_SAVE' | translate}}</p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<ul class=\"pager\">\n\t\t\t\t\t\t\t\t\t<li ng-class=\"{'disabled':vm.stepIndicators[0]}\">\n\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-primary customPagerButton\" ng-click=\"vm.previousConfigStep()\" >\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-arrow-left fa-2x pull-left\"></i>\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"pull-right\">{{'PAGER_PREVIOUS' | translate}}</span>\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t<li ng-class=\"{'disabled':vm.stepIndicators[3]}\">\n\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-primary customPagerButton\" ng-click=\"vm.nextConfigStep()\">\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"pull-left\">{{'PAGER_NEXT' | translate}}</span>\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-arrow-right fa-2x pull-right\"></i>\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t<div class=\"animate-switch-container\" ng-switch on=\"vm.configuration.listConfigStep[vm.configuration.configStepCounter]\">\n\t\t\t\t\t\t\t\t\t<div class=\"animate-switch\" ng-switch-when=\"init\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4\" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"commandPanel\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel panel-default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-heading\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"panel-title\"><i class=\"fa fa-keyboard-o\"></i>&nbsp;{{'COMMAND_PANEL' | translate}}</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"addNewLine\">{{'ADD_NEW_LINE' | translate}} :</span>&nbsp;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-primary\" ng-click=\"vm.addNewline()\"><i class=\"fa fa-plus fa-1x\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-8\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"visualPanel\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel panel-default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-heading\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"panel-title\"><i class=\"fa fa-eye\"></i>&nbsp;{{'VISUAL_PANEL' | translate}}</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- lines -->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-group\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"list-group-item\" ng-repeat=\"line in vm.configuration.lines track by $index\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- columns -->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-switch on=\"line.columns.length\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row linesList\" ng-switch-when=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 lineCommandButtons\" ng-show=\"vm.configuration.lines.length > 1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-warning\" ng-hide=\"$index==0\" ng-click=\"vm.upThisLine($index)\"><i class=\"fa fa-arrow-up\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-warning\" ng-hide=\"$index==(vm.configuration.lines.length-1)\" ng-click=\"vm.downThisLine($index)\"><i class=\"fa fa-arrow-down\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-danger pull-right\" ng-click=\"vm.removeThisLine($index)\"><i class=\"fa fa-trash-o\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row linesList\" ng-switch-when=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 lineCommandButtons\" ng-show=\"vm.configuration.lines.length > 1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-warning\" ng-hide=\"$index==0\" ng-click=\"vm.upThisLine($index)\"><i class=\"fa fa-arrow-up\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-warning\" ng-hide=\"$index==(vm.configuration.lines.length-1)\" ng-click=\"vm.downThisLine($index)\"><i class=\"fa fa-arrow-down\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-danger pull-right\" ng-click=\"vm.removeThisLine($index)\"><i class=\"fa fa-trash-o\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-6 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-6 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row linesList\" ng-switch-when=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 lineCommandButtons\" ng-show=\"vm.configuration.lines.length > 1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-warning\" ng-hide=\"$index==0\" ng-click=\"vm.upThisLine($index)\"><i class=\"fa fa-arrow-up\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-warning\" ng-hide=\"$index==(vm.configuration.lines.length-1)\" ng-click=\"vm.downThisLine($index)\"><i class=\"fa fa-arrow-down\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-danger pull-right\" ng-click=\"vm.removeThisLine($index)\"><i class=\"fa fa-trash-o\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[2].control.type !== 'none' ? line.columns[2].control.type + ' ' + line.columns[2].control.subtype || '' : 'column 3'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"animate-switch\" ng-switch-when=\"first\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4\">\n\t\t\t\t\t\t\t\t\t\t\t<div id=\"commandPanel\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel panel-default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-heading\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"panel-title\"><i class=\"fa fa-keyboard-o\"></i>&nbsp;{{'COMMAND_PANEL' | translate}}</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"numberOfcolumsText text-center\"><i>- {{'SELECTED_LINE' | translate}} -</i></h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"numberOfcolumsText text-center\">{{'NUMBER_OF_COLUMN' | translate}} :</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-2 col-xs-offset-3 col-sm-2 col-sm-offset-3 col-md-2 col-md-offset-3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-primary pull-right btnMinusColumns\" ng-click=\"vm.decreaseNumberOfColumns()\"><i class=\"fa fa-minus fa-1x\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-2 col-sm-2 col-md-2 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"numberOfColumnsLabel \">{{vm.configuration.lines[vm.configuration.activeLine -1].columns.length}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-2 col-sm-2 col-md-2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-primary pull-left btnAddColumns\" ng-click=\"vm.increaseNumberOfColumns()\"><i class=\"fa fa-plus fa-1x\"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-8\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"visualPanel\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel panel-default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-heading\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"panel-title\"><i class=\"fa fa-eye\"></i>&nbsp;{{'VISUAL_PANEL' | translate}}</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- lines / columns -->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-group\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"list-group-item\" ng-repeat=\"line in vm.configuration.lines track by $index\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- columns -->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-switch on=\"line.columns.length\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row linesList\" ng-switch-when=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 lineCommandButtons\" ng-show=\"vm.configuration.lines.length > 1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn\" ng-class=\"{'btn-warning':($index + 1) !== vm.configuration.activeLine, 'btn-success': ($index + 1) === vm.configuration.activeLine}\" ng-click=\"vm.setActiveLineNumber($index + 1)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa\" ng-class=\"{'fa-square-o': ($index + 1) !== vm.configuration.activeLine, 'fa-check-square-o': ($index + 1) === vm.configuration.activeLine}\"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row linesList\" ng-switch-when=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 lineCommandButtons\" ng-show=\"vm.configuration.lines.length > 1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn\" ng-class=\"{'btn-warning':($index + 1) !== vm.configuration.activeLine, 'btn-success': ($index + 1) === vm.configuration.activeLine}\" ng-click=\"vm.setActiveLineNumber($index + 1)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa\" ng-class=\"{'fa-square-o': ($index + 1) !== vm.configuration.activeLine, 'fa-check-square-o': ($index + 1) === vm.configuration.activeLine}\"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-6 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-6 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row linesList\" ng-switch-when=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 lineCommandButtons\" ng-show=\"vm.configuration.lines.length > 1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn\" ng-class=\"{'btn-warning':($index + 1) !== vm.configuration.activeLine, 'btn-success': ($index + 1) === vm.configuration.activeLine}\" ng-click=\"vm.setActiveLineNumber($index + 1)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa\" ng-class=\"{'fa-square-o': ($index + 1) !== vm.configuration.activeLine, 'fa-check-square-o': ($index + 1) === vm.configuration.activeLine}\"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block btn-default disabled\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[2].control.type !== 'none' ? line.columns[2].control.type + ' ' + line.columns[2].control.subtype || '' : 'column 3'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t<div class=\"animate-switch\" ng-switch-when=\"second\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"commandPanel\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel panel-default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-heading\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"panel-title\"><i class=\"fa fa-keyboard-o\"></i>&nbsp;{{'COMMAND_PANEL' | translate}}</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class=\"numberOfcolumsText text-center\">- {{'APPLY_CTRL2COL' | translate}} -</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-lg-12\" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<blockquote>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"numberOfcolumsText\"><i class=\"fa fa-minus\"></i>&nbsp; {{'CLIC_TAP_2_OPEN' | translate}}.</p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"numberOfcolumsText\"><i class=\"fa fa-minus\"></i>&nbsp; {{'SELECT_2_APPLY_COL' | translate}}.</p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</blockquote>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-8\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"visualPanel\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel panel-default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-heading\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"panel-title\"><i class=\"fa fa-eye\"></i>&nbsp;{{'VISUAL_PANEL' | translate}}</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- lines / columns -->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-group\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"list-group-item\" ng-repeat=\"line in vm.configuration.lines track by $index\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- columns -->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-switch on=\"line.columns.length\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row linesList\" ng-switch-when=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 lineCommandButtons\" ng-show=\"vm.configuration.lines.length > 1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn\" ng-class=\"{'btn-warning':($index + 1) !== vm.configuration.activeLine, 'btn-success': ($index + 1) === vm.configuration.activeLine}\" ng-click=\"vm.setActiveLineNumber($index + 1)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa\" ng-class=\"{'fa-square-o': ($index + 1) !== vm.configuration.activeLine, 'fa-check-square-o': ($index + 1) === vm.configuration.activeLine}\"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block\" ng-class=\"{'btn-primary': !line.columns[0].control.edited, 'btn-success': line.columns[0].control.edited}\" ng-click=\"vm.showModalAddCtrlToColumn('', $index, 0)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row linesList\" ng-switch-when=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 lineCommandButtons\" ng-show=\"vm.configuration.lines.length > 1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn\" ng-class=\"{'btn-warning':($index + 1) !== vm.configuration.activeLine, 'btn-success': ($index + 1) === vm.configuration.activeLine}\" ng-click=\"vm.setActiveLineNumber($index + 1)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa\" ng-class=\"{'fa-square-o': ($index + 1) !== vm.configuration.activeLine, 'fa-check-square-o': ($index + 1) === vm.configuration.activeLine}\"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-6 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block\" ng-class=\"{'btn-primary': !line.columns[0].control.edited, 'btn-success': line.columns[0].control.edited}\" ng-click=\"vm.showModalAddCtrlToColumn('', $index, 0)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-6 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block\" ng-class=\"{'btn-primary': !line.columns[1].control.edited, 'btn-success': line.columns[1].control.edited}\" ng-click=\"vm.showModalAddCtrlToColumn('', $index, 1)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row linesList\" ng-switch-when=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12 lineCommandButtons\" ng-show=\"vm.configuration.lines.length > 1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn\" ng-class=\"{'btn-warning':($index + 1) !== vm.configuration.activeLine, 'btn-success': ($index + 1) === vm.configuration.activeLine}\" ng-click=\"vm.setActiveLineNumber($index + 1)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa\" ng-class=\"{'fa-square-o': ($index + 1) !== vm.configuration.activeLine, 'fa-check-square-o': ($index + 1) === vm.configuration.activeLine}\"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block\" ng-class=\"{'btn-primary': !line.columns[0].control.edited, 'btn-success': line.columns[0].control.edited}\" ng-click=\"vm.showModalAddCtrlToColumn('', $index, 0)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[0].control.type !== 'none' ? line.columns[0].control.type + ' ' + line.columns[0].control.subtype || '' : 'column 1'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block\" ng-class=\"{'btn-primary': !line.columns[1].control.edited, 'btn-success': line.columns[1].control.edited}\" ng-click=\"vm.showModalAddCtrlToColumn('', $index, 1)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[1].control.type !== 'none' ? line.columns[1].control.type + ' ' + line.columns[1].control.subtype || '' : 'column 2'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4 well\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-block\" ng-class=\"{'btn-primary': !line.columns[2].control.edited, 'btn-success': line.columns[2].control.edited}\" ng-click=\"vm.showModalAddCtrlToColumn('', $index, 2)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{line.columns[2].control.type !== 'none' ? line.columns[2].control.type + ' ' + line.columns[2].control.subtype || '' : 'column 3'}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"animate-switch\" ng-switch-when=\"third\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-4\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"commandPanel\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel panel-default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-heading\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"panel-title\"><i class=\"fa fa-keyboard-o\"></i>&nbsp;{{'COMMAND_PANEL' | translate}}</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"inputSubmitButtontext\" class=\" greyText control-label\">{{'CUSTOM_SUBMIT_BTN' | translate}} :</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"inputSubmitButtontext\" placeholder=\"\" ng-model=\"vm.configuration.submitButtonText\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"inputCancelButtontext\" class=\" greyText control-label\">{{'CUSTOM_CANCEL_BTN' | translate}} :</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"inputCancelButtontext\" placeholder=\"\" ng-model=\"vm.configuration.cancelButtonText\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-12\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"inputNameFormtext\" class=\" greyText control-label\">{{'NAME_THIS_FORM' | translate}} :</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"inputNameFormtext\" placeholder=\"\" ng-model=\"vm.configuration.formName\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-primary btn-block btn-lg\" ng-click=\"vm.saveThisForm()\">{{'SAVE_THIS_FORM' | translate}}</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-8\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"visualPanel\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel panel-default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-heading\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"panel-title\"><i class=\"fa fa-thumbs-o-up\"></i>&nbsp;{{'FINAL_STEP' | translate}}</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<form ng-submit=\"vm.onSubmit()\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<formly-form id=\"saveFormlyFom\" model=\"vm.dataModel\" fields=\"vm.wfFormFields\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"pull-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-primary\" type=\"submit\">{{vm.configuration.submitButtonText}}</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-primary\" type=\"cancel\">{{vm.configuration.cancelButtonText}}</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</formly-form>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</uib-tab>\n\n\t\t\t\t\t\t\t<uib-tab active=\"vm.tab.previewTab.active\" ng-if=\"vm.tab.previewTab.tabVisible\" heading=\"{{'PREVIEW_TAB' | translate}}\">\n\t\t\t\t\t\t\t<div class=\"panel panel-default\">\n\t\t\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\t<!-- formly here -->\n\t\t\t\t\t\t\t\t\t<form ng-submit=\"vm.onSubmit()\">\n\t\t\t\t\t\t\t\t\t\t<formly-form id=\"previewFormlyForm\" model=\"vm.dataModel\" fields=\"vm.wfFormFields\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"pull-right\">\n\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-primary\" type=\"submit\">{{vm.configuration.submitButtonText}}</button>\n\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-primary\" type=\"cancel\">{{vm.configuration.cancelButtonText}}</button>\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</formly-form>\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div ng-if=\"vm.tab.previewTab.modelsVisible\" class=\"panel panel-default\">\n\t\t\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\t<p>{{'DATA_MODEL' | translate}}</p>\n\t\t\t\t\t\t\t\t\t<pre>\n\t\t\t\t\t\t\t\t\t\t{{vm.dataModel | json}}\n\t\t\t\t\t\t\t\t\t</pre>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div ng-if=\"vm.tab.previewTab.modelsVisible\" class=\"panel panel-default\">\n\t\t\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\t<p>{{'FIELDS_MODEL' | translate}}</p>\n\t\t\t\t\t\t\t\t\t<pre>\n\t\t\t\t\t\t\t\t\t\t{{vm.wfFormFieldsOnlyNeededProperties | json}}\n\t\t\t\t\t\t\t\t\t</pre>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</uib-tab>\n\t\t\t\t\t\t</uib-tabset>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</section>\n\t\t\t<hr/>\n\t\t\t<!--<section>\n\t\t\t\t<h6 class=\"text-right\">Easy form generator : {{vm.easyFormGeneratorVERSION}} — Erwan DATIN (MacKentoch)</h6>\n\t\t\t</section>-->\n\t\t</div>\n\t</div>\n</section>\n";
  702. global.define = __define;
  703. return module.exports;
  704. });
  705. $__System.register('11', [], function (_export) {
  706. /* global angular */
  707. 'use strict';
  708. var DEBUG_MODEL, initDebugModel, DEFAULT_TAB_MODEL, initTabModel, COLUMN_TEMPLATE, initColumnTemplate, LINE_TEMPLATE, initLineTemplate;
  709. return {
  710. setters: [],
  711. execute: function () {
  712. DEBUG_MODEL = {
  713. showDebug: false,
  714. configurationModelNumberofLines: 1
  715. };
  716. initDebugModel = function initDebugModel() {
  717. return angular.copy(DEBUG_MODEL);
  718. };
  719. DEFAULT_TAB_MODEL = {
  720. editTab: {
  721. active: true
  722. },
  723. previewTab: {
  724. active: false,
  725. tabVisible: true,
  726. modelsVisible: true
  727. }
  728. };
  729. initTabModel = function initTabModel(isPreviewPanelVisible, arePreviewModelsVisible) {
  730. var _tabModel = angular.copy(DEFAULT_TAB_MODEL);
  731. angular.extend(_tabModel.previewTab, {
  732. tabVisible: isPreviewPanelVisible,
  733. modelsVisible: arePreviewModelsVisible
  734. });
  735. return _tabModel;
  736. };
  737. COLUMN_TEMPLATE = {
  738. numColumn: -1,
  739. exist: true,
  740. control: {
  741. type: 'none',
  742. key: 'none',
  743. subtype: 'none'
  744. // templateOptions: {
  745. // label: 'none',
  746. // placeholder: 'none',
  747. // required: false,
  748. // description: 'Descriptive text'
  749. // }
  750. }
  751. };
  752. initColumnTemplate = function initColumnTemplate() {
  753. return angular.copy(COLUMN_TEMPLATE);
  754. };
  755. LINE_TEMPLATE = {
  756. line: -1,
  757. activeColumn: 1,
  758. columns: [{
  759. numColumn: 1,
  760. exist: true,
  761. control: {
  762. type: 'none',
  763. key: 'none'
  764. // templateOptions: {
  765. // label: 'none',
  766. // placeholder: 'none',
  767. // required: false,
  768. // description: 'Descriptive text'
  769. // }
  770. }
  771. }]
  772. };
  773. initLineTemplate = function initLineTemplate() {
  774. return angular.copy(LINE_TEMPLATE);
  775. };
  776. _export('initDebugModel', initDebugModel);
  777. _export('initTabModel', initTabModel);
  778. _export('initColumnTemplate', initColumnTemplate);
  779. _export('initLineTemplate', initLineTemplate);
  780. }
  781. };
  782. });
  783. $__System.registerDynamic("12", [], true, function($__require, exports, module) {
  784. ;
  785. var global = this,
  786. __define = global.define;
  787. global.define = undefined;
  788. module.exports = "<div class=\"modal-header\">\n <h3 class=\"modal-title greyText\">\n {{'SELECT_A_CTRL' | translate}}\n </h3>\n</div>\n<div class=\"modal-body\">\n <hr/>\n <div class=\"row\">\n <div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\n <h5 class=\"greyText\">\n <i class=\"fa fa-filter\"></i>\n &nbsp;\n {{'SELECT_CTRL_IN_LIST' | translate}} :\n </h5>\n </div>\n <div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\n <ol\n class=\"nya-bs-select col-xs-12 col-sm-12 col-md-12 col-lg-12\"\n ng-model=\"editControlModCtrl.modelNyaSelect\"\n data-live-search=\"false\">\n <li nya-bs-option=\"option in editControlModCtrl.nyaSelectFiltered.controls group by option.group\">\n <span class=\"dropdown-header greyText\">\n {{$group}}\n </span> <!-- group header cannot be searched -->\n <a ng-click=\"editControlModCtrl.selectThisControl(option.id)\">\n <span>\n {{ option.name }}\n </span>\n <span class=\"glyphicon glyphicon-ok check-mark\"></span>\n </a>\n </li>\n </ol>\n </div>\n </div>\n <hr/>\n <div ng-switch on=\"editControlModCtrl.nyaSelect.selectedControl\">\n <!--no control selected-->\n <div ng-switch-when=\"none\">\n <div class=\"row\">\n <div class=\"col-sm-12\">\n <h5 class=\"text-center texteRouge\">\n <i class=\"fa fa-arrow-up\"></i>\n &nbsp; {{'SELECT_A_CTRL' | translate}}\n </h5>\n </div>\n </div>\n </div>\n <!--empty (or blank) control -->\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 <!--header-->\n <div ng-switch-when=\"Header\">\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\"><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 <h2 class=\"text-center\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption}}\n </h2>\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 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=\"inputTextDescriptionUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'HEADER_TEXT' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption\"\n id=\"inputHeaderTextUpdate\"\n placeholder=\"{{'ADD_EDIT_HEADER_HERE' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!--Subtitle-->\n <div ng-switch-when=\"Subtitle\">\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 <div class=\"\">\n <h4 class=\"text-center\">\n {{editControlModCtrl.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=\"editControlModCtrl.nyaSelect.temporyConfig.formlyPlaceholder\"\n id=\"inputSubTitleTextUpdate\"\n placeholder=\"{{'ADD_EDIT_SUBTIL_HERE' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- TextInput -->\n <div ng-switch-when=\"TextInput\">\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 for=\"inputText\"\n class=\"control-label textControlLabel\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyLabel}}\n <span\n ng-if=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n class=\"textControlLabel\">\n *\n </span>\n </label>\n <div class=\"\">\n <input\n type=\"text\"\n class=\"form-control\"\n id=\"inputText\"\n placeholder=\"{{editControlModCtrl.nyaSelect.temporyConfig.formlyPlaceholder}}\">\n <p class=\"help-block\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption}}\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 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=\"form-group\">\n <label\n for=\"inputTextLabelUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'LABEL_TEXT' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyLabel\"\n id=\"inputTextLabelUpdate\"\n placeholder=\"{{'ADD_EDIT_LABEL_HERE' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextplaceholderUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'PLACEHOLDER' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyPlaceholder\"\n id=\"inputTextplaceholderUpdate\"\n placeholder=\"{{'ADD_EDIT_PLACEHOLD' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextRequiredUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'REQUIRED' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <div class=\"checkboxCssCorrection\">&nbsp;</div>\n <input\n type=\"checkbox\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n id=\"inputTextRequiredUpdate\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextDescriptionUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'DESCRIPTION' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption\"\n id=\"inputTextDescriptionUpdate\"\n placeholder=\"{{'ADDEDIT_DESCRIPTION' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- password -->\n <div ng-switch-when=\"Password\">\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 for=\"inputPassword\"\n class=\"control-label textControlLabel\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyLabel}}\n <span\n ng-if=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n class=\"textControlLabel\">\n *\n </span>\n </label>\n <div class=\"\">\n <input\n type=\"password\"\n class=\"form-control\"\n id=\"inputPassword\"\n placeholder=\"{{editControlModCtrl.nyaSelect.temporyConfig.formlyPlaceholder}}\">\n <p class=\"help-block\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption}}\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 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=\"form-group\">\n <label\n for=\"inputTextLabelUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'LABEL_TEXT' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyLabel\"\n id=\"inputTextLabelUpdate\"\n placeholder=\"{{'ADD_EDIT_LABEL_HERE' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextplaceholderUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'PLACEHOLDER' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyPlaceholder\"\n id=\"inputTextplaceholderUpdate\"\n placeholder=\"{{'ADD_EDIT_PLACEHOLD' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextRequiredUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'REQUIRED' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <div class=\"checkboxCssCorrection\">\n &nbsp;\n </div>\n <input\n type=\"checkbox\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n id=\"inputTextRequiredUpdate\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextDescriptionUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'DESCRIPTION' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption\"\n id=\"inputTextDescriptionUpdate\"\n placeholder=\"{{'ADDEDIT_DESCRIPTION' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div ng-switch-when=\"Email\">\n <!-- password -->\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 for=\"inputEmail\"\n class=\"control-label textControlLabel\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyLabel}}\n <span\n ng-if=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n class=\"textControlLabel\">\n *\n </span>\n </label>\n <div class=\"\">\n <input\n type=\"text\"\n class=\"form-control\"\n id=\"inputEmail\"\n placeholder=\"{{editControlModCtrl.nyaSelect.temporyConfig.formlyPlaceholder}}\">\n <p class=\"help-block\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption}}\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 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=\"form-group\">\n <label\n for=\"inputTextLabelUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'LABEL_TEXT' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyLabel\"\n id=\"inputTextLabelUpdate\"\n placeholder=\"{{'ADD_EDIT_LABEL_HERE' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextplaceholderUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'PLACEHOLDER' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyPlaceholder\"\n id=\"inputTextplaceholderUpdate\"\n placeholder=\"{{'ADD_EDIT_PLACEHOLD' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextRequiredUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'REQUIRED' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <div class=\"checkboxCssCorrection\">\n &nbsp;\n </div>\n <input\n type=\"checkbox\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n id=\"inputTextRequiredUpdate\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextDescriptionUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'DESCRIPTION' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption\"\n id=\"inputTextDescriptionUpdate\"\n placeholder=\"{{'ADDEDIT_DESCRIPTION' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div ng-switch-when=\"Date\">\n <!-- datetimepicker (input type date not ok in all browsers) -->\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 for=\"inputDate\"\n class=\"control-label textControlLabel\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyLabel}}\n <span\n ng-if=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n class=\"textControlLabel\">\n *\n </span>\n </label>\n <div class=\"\">\n <div class=\"input-group\" >\n <span class=\"input-group-addon\">\n <i class=\"glyphicon glyphicon-calendar\"></i>\n </span>\n <input\n type=\"text\"\n class=\"form-control\"\n uib-datepicker-popup=\"{{editControlModCtrl.nyaSelect.temporyConfig.datepickerOptions.format}}\"\n ng-model=\"editControlModCtrl.demodt.dt\"\n is-open=\"editControlModCtrl.demodt.opened\"\n datepicker-options=\"editControlModCtrl.dateOptions\"\n close-text=\"Close\"\n ng-click=\"editControlModCtrl.open($event)\"\n />\n </div>\n <p class=\"help-block\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption}}\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 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=\"form-group\">\n <label class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'DATE_FORMAT' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <ol\n class=\"nya-bs-select col-sm-12 col-xs-12 col-md-12 col-lg12\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.datepickerOptions.format\"\n id=\"dateformatSelect\">\n <li\n class=\"nya-bs-option\"\n nya-bs-option=\"dateformat in editControlModCtrl.demodt.formats\"\n value=\"dateformat\">\n <a>\n {{dateformat}}\n </a>\n </li>\n </ol>\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextLabelUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'LABEL_TEXT' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyLabel\"\n id=\"inputTextLabelUpdate\"\n placeholder=\"{{'ADD_EDIT_LABEL_HERE' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextRequiredUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'REQUIRED' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <div class=\"checkboxCssCorrection\">\n &nbsp;\n </div>\n <input\n type=\"checkbox\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n id=\"inputTextRequiredUpdate\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextDescriptionUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'DESCRIPTION' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption\"\n id=\"inputTextDescriptionUpdate\"\n placeholder=\"{{'ADDEDIT_DESCRIPTION' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div ng-switch-when=\"Texarea\">\n <!-- textarea -->\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 for=\"textArea\"\n class=\"control-label textControlLabel\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyLabel}}\n <span\n ng-if=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n class=\"textControlLabel\">\n *\n </span>\n </label>\n <div class=\"\">\n <textarea\n class=\"form-control\"\n ng-model=\"model[options.key]\"\n rows=\"3\"\n id=\"textArea\">\n </textarea>\n <p class=\"help-block\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption}}\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 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=\"form-group\">\n <label\n for=\"inputTextLabelUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'LABEL_TEXT' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyLabel\"\n id=\"inputTextLabelUpdate\"\n placeholder=\"{{'ADD_EDIT_LABEL_HERE' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextRequiredUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'REQUIRED' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <div class=\"checkboxCssCorrection\">\n &nbsp;\n </div>\n <input\n type=\"checkbox\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n id=\"inputTextRequiredUpdate\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextDescriptionUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">{{'DESCRIPTION' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption\"\n id=\"inputTextDescriptionUpdate\"\n placeholder=\"{{'ADDEDIT_DESCRIPTION' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div ng-switch-when=\"RichTextEditor\">\n <!-- TextInput -->\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 for=\"RichTextEditor\"\n class=\"control-label textControlLabel\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyLabel}}\n <span\n ng-if=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n class=\"textControlLabel\">\n *\n </span>\n </label>\n <div class=\"\">\n <text-angular\n ng-model=\"editControlModCtrl.model[options.key]\">\n </text-angular>\n <p class=\"help-block\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption}}\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 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 <!-- required can't be applied to rich text editor (textAngular) right now -->\n <!--<div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextRequiredUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">Required :\n </label>\n <div class=\"col-lg-9\">\n <div class=\"checkboxCssCorrection\">\n &nbsp;\n </div>\n <input\n type=\"checkbox\"\n ng-model=\"nyaSelect.temporyConfig.formlyRequired\" id=\"inputTextRequiredUpdate\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>-->\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextDescriptionUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">{{'DESCRIPTION' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption\"\n id=\"inputTextDescriptionUpdate\"\n placeholder=\"{{'ADDEDIT_DESCRIPTION' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div ng-switch-when=\"Radio\">\n <!-- radios -->\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 for=\"basicSelect\"\n class=\"control-label textControlLabel\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyLabel}}\n <span\n ng-if=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n class=\"textControlLabel\">\n *\n </span>\n </label>\n <div class=\"\">\n <div\n class=\"radio\"\n ng-repeat=\"radioRow in editControlModCtrl.radioRowCollection.rows\">\n <label>\n <input\n type=\"radio\"\n name=\"optionsRadios\"\n id=\"{{'optionsRadio-' + $index}}\"\n value=\"$index\"\n checked=\"\">\n {{radioRow.option}}\n </label>\n </div>\n <p class=\"help-block\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption}}\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=\"radioRowCollection\"\n class=\" control-label greyText editPropertiesLabel\">\n {{'ADD_NEW_RADIO' | 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=\"inputAddNewRadioOption\"\n placeholder=\"{{'ADD_RADIO_PLACEHOLD' | translate}}\"\n ng-model=\"editControlModCtrl.newOptionRadio.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=\"editControlModCtrl.addNewOptionRadio()\">\n {{'ADD' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-lg-3 col-md-3\">\n <label\n for=\"radioRowCollection\"\n class=\" control-label greyText editPropertiesLabel\">\n {{'EDIT_REMOVE_RADIO' | translate}} :\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-show=\"editControlModCtrl.radioRowCollection.rows.length === 0\">\n <h5 class=\"text-center greyText\">\n <em>\n - {{'NO_RADIO_ADD_NEW' | translate}} -\n </em>\n </h5>\n </div>\n <table\n ng-if=\"editControlModCtrl.radioRowCollection.rows.length > 0\"\n class=\"table table-striped\">\n <thead>\n <tr>\n <th st-ratio=\"20\">\n {{'ORDER' | translate}}\n </th>\n <th st-ratio=\"55\">\n {{'OPTION' | translate}}\n </th>\n <th st-ratio=\"25\">\n </th>\n </tr>\n <tr>\n <th st-ratio=\"20\">\n </th>\n <th st-ratio=\"55\">\n <input\n ng-model=\"editControlModCtrl.radioFilter\"\n placeholder=\"{{'SEARCH_4_OPTION' | translate}}\"\n class=\"input-sm form-control\"\n type=\"search\"\n />\n </th>\n <th st-ratio=\"25\">\n </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat=\"radioRow in editControlModCtrl.radioRowCollection.rows | filter:radioFilter as radioRow\">\n <td st-ratio=\"20\">\n {{$index}}\n </td>\n <td st-ratio=\"55\">\n {{radioRow.option}}\n </td>\n <td st-ratio=\"25\">\n <div class=\"pull-right\">\n <button\n class=\"btn btn-primary\"\n ng-click=\"editControlModCtrl.upThisRadioRow($index)\">\n <i class=\"fa fa-arrow-up\"></i>\n </button>\n <button\n class=\"btn btn-primary\"\n ng-click=\"editControlModCtrl.downThisRadioRow($index)\">\n <i class=\"fa fa-arrow-down\"></i>\n </button>\n <button\n class=\"btn btn-danger\"\n ng-click=\"editControlModCtrl.removeRadioRow($index)\">\n <i class=\"fa fa-trash-o\"></i>\n </button>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </div>\n <hr/>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextLabelUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">{{'LABEL_TEXT' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyLabel\"\n id=\"inputTextLabelUpdate\"\n placeholder=\"{{'ADD_EDIT_LABEL_HERE' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextRequiredUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">{{'REQUIRED' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <div class=\"checkboxCssCorrection\">\n &nbsp;\n </div>\n <input\n type=\"checkbox\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n id=\"inputTextRequiredUpdate\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextDescriptionUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">{{'DESCRIPTION' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption\"\n id=\"inputTextDescriptionUpdate\"\n placeholder=\"{{'ADDEDIT_DESCRIPTION' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div ng-switch-when=\"Checkbox\">\n <!-- checkbox -->\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 <div class=\"col-md-12\">\n <div class=\"checkbox\">\n <label>\n <input\n type=\"checkbox\"\n id=\"checkBox\">\n <span class=\"blackText\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyLabel}}\n </span>\n <span\n ng-if=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\"\n class=\"textControlLabel\">\n *\n </span>\n </label>\n </div>\n <p class=\"help-block\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption}}\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 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=\"form-group\">\n <label\n for=\"inputTextLabelUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'LABEL_TEXT' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyLabel\"\n id=\"inputTextLabelUpdate\"\n placeholder=\"{{'ADD_EDIT_LABEL_HERE' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextRequiredUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'REQUIRED' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <div class=\"checkboxCssCorrection\">&nbsp;</div>\n <input\n type=\"checkbox\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyRequired\" id=\"inputTextRequiredUpdate\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextDescriptionUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'DESCRIPTION' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption\"\n id=\"inputTextDescriptionUpdate\"\n placeholder=\"{{'ADDEDIT_DESCRIPTION' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div ng-switch-when=\"BasicSelect\">\n <!-- basic selects -->\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 for=\"basicSelect\"\n class=\"control-label textControlLabel\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyLabel}}\n <span\n ng-if=\"editControlModCtrl.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=\"editControlModCtrl.modelbasicSelect\"\n id=\"basicSelect\"\n disabled=\"editControlModCtrl.basicSelectRowCollection.rows.length === 0\">\n <li\n class=\"nya-bs-option\"\n nya-bs-option=\"basicSelectRow in editControlModCtrl.basicSelectRowCollection.rows\"\n value=\"$index\">\n <a>\n {{basicSelectRow.option}}\n </a>\n </li>\n </ol>\n <p class=\"help-block\">\n {{editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption}}\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 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=\"basicSelectRowCollection\"\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=\"inputAddNewBasicOption\"\n placeholder=\"{{'ADD_A_NEW_OPTION' | translate}}\"\n ng-model=\"editControlModCtrl.newOptionBasicSelect.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=\"editControlModCtrl.addNewOptionBasicSelect()\">\n {{'ADD' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-lg-3 col-md-3\">\n <label class=\" control-label greyText editPropertiesLabel\">\n {{'EDIT_REMOVE_OPTIONS' | translate}} :\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=\"editControlModCtrl.basicSelectRowCollection.rows.length === 0\">\n <h5 class=\"text-center greyText\">\n <em>\n - {{'NO_OPTION_ADD_NEW' | translate}} -\n </em>\n </h5>\n </div>\n <table\n ng-if=\"editControlModCtrl.basicSelectRowCollection.rows.length > 0\"\n class=\"table table-striped\">\n <thead>\n <tr>\n <th st-ratio=\"20\">\n {{'ORDER' | translate}}\n </th>\n <th st-ratio=\"55\">\n {{'OPTION' | translate}}\n </th>\n <th st-ratio=\"25\">\n </th>\n </tr>\n <tr>\n <th st-ratio=\"20\">\n </th>\n <th st-ratio=\"55\">\n <input\n ng-model=\"basicSelectFilter\"\n placeholder=\"{{'SEARCH_4_OPTION' | translate}}\"\n class=\"input-sm form-control\"\n type=\"search\"\n />\n </th>\n <th st-ratio=\"25\">\n </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat=\"basicSelectRow in editControlModCtrl.basicSelectRowCollection.rows | filter:basicSelectFilter as basicSelectRow\">\n <td st-ratio=\"20\">\n {{$index}}\n </td>\n <td st-ratio=\"55\">\n {{basicSelectRow.option}}\n </td>\n <td st-ratio=\"25\">\n <div class=\"pull-right\">\n <button\n class=\"btn btn-primary\"\n ng-click=\"editControlModCtrl.upThisRow($index)\">\n <i class=\"fa fa-arrow-up\"></i>\n </button>\n <button\n class=\"btn btn-primary\"\n ng-click=\"editControlModCtrl.downThisRow($index)\">\n <i class=\"fa fa-arrow-down\"></i>\n </button>\n <button\n class=\"btn btn-danger\"\n ng-click=\"editControlModCtrl.removeRow($index)\">\n <i class=\"fa fa-trash-o\"></i>\n </button>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </div>\n <hr/>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextLabelUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'LABEL_TEXT' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyLabel\"\n id=\"inputTextLabelUpdate\"\n placeholder=\"{{'ADD_EDIT_LABEL_HERE' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextRequiredUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n Required :\n </label>\n <div class=\"col-lg-9\">\n <div class=\"checkboxCssCorrection\">\n &nbsp;\n </div>\n <input\n type=\"checkbox\"\n ng-model=\"nyaSelect.temporyConfig.formlyRequired\"\n id=\"inputTextRequiredUpdate\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextDescriptionUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'DESCRIPTION' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption\" id=\"inputTextDescriptionUpdate\"\n placeholder=\"{{'ADDEDIT_DESCRIPTION' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- grouped selects -->\n <div ng-switch-when=\"GroupedSelect\">\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 {{editControlModCtrl.nyaSelect.temporyConfig.formlyLabel}}\n <span\n ng-if=\"editControlModCtrl.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=\"editControlModCtrl.groupedSelectRowCollection.rows.length === 0\">\n <li\n nya-bs-option=\"groupedSelectRow in editControlModCtrl.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 {{editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption}}\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=\"editControlModCtrl.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=\"editControlModCtrl.addNewOptionGroupedSelect()\">\n {{'ADD' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\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_GROUPS' | 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 id=\"inputAddNewGroupGroupedOption\"\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.newGroupGroupedSelect.saisie\" id=\"inputTextLabelUpdateGroupedSelect\"\n placeholder=\"{{'ADD_A_NEW_GROUP' | translate}}\">\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=\"editControlModCtrl.addNewGroupToGroupedSelect()\">\n {{'ADD' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-lg-3 col-md-3\">\n <label class=\" control-label greyText editPropertiesLabel\">\n {{'EDIT_GROUPS_OPTIONS' | translate}} :\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=\"editControlModCtrl.groupedSelectRowCollection.rows.length === 0\">\n <h5 class=\"text-center greyText\">\n <em>\n - {{'NO_OPTION_ADD_NEW' | translate}} -\n </em>\n </h5>\n </div>\n <table\n ng-if=\"editControlModCtrl.groupedSelectRowCollection.rows.length > 0\"\n class=\"table table-striped\">\n <thead>\n <tr>\n <th st-ratio=\"20\">\n {{'ORDER' | translate}}\n </th>\n <th st-ratio=\"25\">\n {{'GROUP' | translate}}\n </th>\n <th st-ratio=\"30\">\n {{'OPTION' | translate}}\n </th>\n <th st-ratio=\"25\">\n </th>\n </tr>\n <tr>\n <th st-ratio=\"20\">\n </th>\n <th st-ratio=\"25\">\n </th>\n <th st-ratio=\"30\">\n <input\n ng-model=\"editControlModCtrl.groupedSelectFilter\"\n placeholder=\"{{'SEARCH_4_OPTION' | translate}}\"\n class=\"input-sm form-control\"\n type=\"search\"\n />\n </th>\n <th st-ratio=\"25\">\n </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat=\"groupedSelectRow in editControlModCtrl.groupedSelectRowCollection.rows | filter:editControlModCtrl.groupedSelectFilter as groupedSelectRow\">\n <td st-ratio=\"20\">\n {{$index}}\n </td>\n <td st-ratio=\"25\">\n <div ng-if=\"editControlModCtrl.groupSelectGroupClick.showList === true\">\n <div ng-if=\"editControlModCtrl.GroupedSelectGroups.list.length === 0\">\n <p class=\"text-left noGroupText\">- {{'NO_GROUP_ADD_NEW' | translate}} -</p>\n </div>\n <div ng-if=\"editControlModCtrl.GroupedSelectGroups.list.length > 0\">\n <ol class=\"nya-bs-select col-sm-12 col-xs-12 col-md-12 col-lg12 editGroupedSelectnyaSelect\" ng-model=\"groupedSelectRow.group\" id=\"modelGroupedOptionGroupedChoose\"\n disabled=\"editControlModCtrl.GroupedSelectGroups.list.length === 0\">\n <li class=\"nya-bs-option\" nya-bs-option=\"GroupedSelectGroup in editControlModCtrl.GroupedSelectGroups.list\" value=\"GroupedSelectGroup\">\n <a>{{GroupedSelectGroup}}</a>\n </li>\n </ol>\n </div>\n </div>\n <div ng-if=\"editControlModCtrl.groupSelectGroupClick.showList === false\">\n {{groupedSelectRow.group}}\n </div>\n </td>\n <td st-ratio=\"30\">\n {{groupedSelectRow.option}}\n </td>\n <td st-ratio=\"25\">\n <div class=\"pull-right\">\n <button\n class=\"btn btn-primary\"\n ng-click=\"editControlModCtrl.upThisGroupedSelectRow($index)\">\n <i class=\"fa fa-arrow-up\"></i>\n </button>\n <button\n class=\"btn btn-primary\"\n ng-click=\"editControlModCtrl.downThisGroupedSelectRow($index)\">\n <i class=\"fa fa-arrow-down\"></i>\n </button>\n <button\n class=\"btn btn-warning\"\n ng-click=\"editControlModCtrl.showGroupListToChoose()\">\n <i class=\"fa fa-pencil-square-o\"></i>\n </button>\n <button\n class=\"btn btn-danger\"\n ng-click=\"editControlModCtrl.removeGroupedSelectRow($index)\">\n <i class=\"fa fa-trash-o\"></i>\n </button>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </div>\n <hr/>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextLabelUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'LABEL_TEXT' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyLabel\"\n id=\"inputTextLabelUpdate\"\n placeholder=\"{{'ADD_EDIT_LABEL_HERE' | translate}}\">\n </div>\n </div>\n </div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"marginTopFivepixels\"></div>\n <div class=\"row\">\n <div class=\"form-group\">\n <label\n for=\"inputTextDescriptionUpdate\"\n class=\"col-lg-3 control-label greyText editPropertiesLabel\">\n {{'DESCRIPTION' | translate}} :\n </label>\n <div class=\"col-lg-9\">\n <input\n type=\"text\"\n class=\"form-control\"\n ng-model=\"editControlModCtrl.nyaSelect.temporyConfig.formlyDesciption\"\n id=\"inputTextDescriptionUpdate\"\n placeholder=\"{{'ADDEDIT_DESCRIPTION' | translate}}\">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<div class=\"modal-footer\">\n <button\n class=\"btn btn-primary\"\n ng-class=\"{'disabled': editControlModCtrl.nyaSelect.selectedControl === 'none'}\"\n ng-click=\"editControlModCtrl.ok()\">\n {{'OK' | translate}}\n </button>\n <button\n class=\"btn btn-warning\"\n ng-click=\"editControlModCtrl.cancel()\">\n {{'CANCEL' | translate}}\n </button>\n</div>\n";
  789. global.define = __define;
  790. return module.exports;
  791. });
  792. $__System.register('13', ['11', '12', '14', '15', '16'], function (_export) {
  793. var initDebugModel, initTabModel, initColumnTemplate, initLineTemplate, editControlModalTemplate, EDIT_MODAL_CONTROLLER_NAME, EDIT_MODAL_CONTROLLERAS_NAME, _createClass, _classCallCheck, STEP_WAY_MAIN_CONTROLLER_NAME, STEP_WAY_MAIN_CONTROLLERAS_NAME, edaStepWayEasyFormGenController, toInject;
  794. return {
  795. setters: [function (_3) {
  796. initDebugModel = _3.initDebugModel;
  797. initTabModel = _3.initTabModel;
  798. initColumnTemplate = _3.initColumnTemplate;
  799. initLineTemplate = _3.initLineTemplate;
  800. }, function (_4) {
  801. editControlModalTemplate = _4['default'];
  802. }, function (_5) {
  803. EDIT_MODAL_CONTROLLER_NAME = _5.EDIT_MODAL_CONTROLLER_NAME;
  804. EDIT_MODAL_CONTROLLERAS_NAME = _5.EDIT_MODAL_CONTROLLERAS_NAME;
  805. }, function (_) {
  806. _createClass = _['default'];
  807. }, function (_2) {
  808. _classCallCheck = _2['default'];
  809. }],
  810. execute: function () {
  811. /* global angular */
  812. 'use strict';
  813. STEP_WAY_MAIN_CONTROLLER_NAME = 'edaStepWayEasyFormGenController';
  814. STEP_WAY_MAIN_CONTROLLERAS_NAME = 'vm';
  815. edaStepWayEasyFormGenController = (function () {
  816. function edaStepWayEasyFormGenController(easyFormGenVersion, $filter, toaster, $timeout, $uibModal, $log, $formlyProxy, $modalProxy, easyFormSteWayConfig) {
  817. _classCallCheck(this, edaStepWayEasyFormGenController);
  818. this.easyFormGenVersion = easyFormGenVersion;
  819. this.$filter = $filter;
  820. this.toaster = toaster;
  821. this.$timeout = $timeout;
  822. this.$modal = $uibModal;
  823. this.$log = $log;
  824. this.$formlyProxy = $formlyProxy;
  825. this.$modalProxy = $modalProxy;
  826. this.easyFormSteWayConfig = easyFormSteWayConfig;
  827. this.init();
  828. }
  829. _createClass(edaStepWayEasyFormGenController, [{
  830. key: 'init',
  831. value: function init() {
  832. this.dataModel = {};
  833. this.wfFormFields = [];
  834. this.wfFormFieldsOnlyNeededProperties = [];
  835. this.easyFormGeneratorVERSION = this.easyFormGenVersion;
  836. this.debug = initDebugModel();
  837. this.tab = initTabModel(this.easyFormSteWayConfig.isPreviewPanelVisible(), this.easyFormSteWayConfig.arePreviewModelsVisible());
  838. this.configuration = {}; //configuration model (contains array of lines which contains array of columns)
  839. this.numberOfColumns = 1;
  840. this.MaxNumberOfColumns = 3;
  841. this.MinNumberOfColumns = 1;
  842. this.columnTemplate = initColumnTemplate(); //TODO : check is really needed
  843. this.lineTemplate = initLineTemplate(); //TODO : check if really needed
  844. this.nyaSelect = {};
  845. this.animationsEnabled = this.easyFormSteWayConfig.getModalAnimationValue(); //-> disabling animation untill correction in angular bootstrap
  846. this.editControlModalSize = 'lg';
  847. this.formlyList = {};
  848. this.previewLoadedForm = { fieldsModel: [] };
  849. this.configurationLoaded = {};
  850. this.returnSaveEvent = false;
  851. //this.resetToZeroModel = resetToZeroModel; //function no more used
  852. this.$formlyProxy.initConfigurationEditFromScratch(this.configuration);
  853. this.$modalProxy.initNyaSelect(this.nyaSelect);
  854. //console.info(`main controller : init nyaSelect model`);
  855. //console.dir(angular.copy(this.nyaSelect));
  856. }
  857. }, {
  858. key: 'onSubmit',
  859. value: function onSubmit() {
  860. var JSONedModel = this.$filter('json')(this.dataModel, 4);
  861. this.toaster.pop({
  862. type: 'info',
  863. timeout: 2000,
  864. title: 'it should save data model if it were not in editor',
  865. body: 'data : ' + JSONedModel,
  866. showCloseButton: true
  867. });
  868. }
  869. }, {
  870. key: 'countConfigurationModelLines',
  871. value: function countConfigurationModelLines() {
  872. this.debug.configurationModelNumberofLines = this.configuration.lines.length;
  873. return this.configuration.lines.length;
  874. }
  875. }, {
  876. key: 'setActiveLineNumber',
  877. value: function setActiveLineNumber(lineNumber) {
  878. if (lineNumber <= this.countConfigurationModelLines()) this.configuration.activeLine = lineNumber;
  879. }
  880. }, {
  881. key: 'upThisLine',
  882. value: function upThisLine(indexLine) {
  883. if (indexLine > -1) {
  884. if (this.configuration.lines[indexLine - 1]) {
  885. var currentLineObj = this.configuration.lines[indexLine];
  886. this.configuration.lines.splice(indexLine, 1);
  887. this.configuration.lines.splice(indexLine - 1, 0, currentLineObj);
  888. //manage selected aciveLine
  889. this.configuration.activeLine = 1;
  890. }
  891. }
  892. //re-render formfield
  893. this.$formlyProxy.applyConfigurationToformlyModel(this.configuration, this.wfFormFields, this.dataModel);
  894. this.wfFormFieldsOnlyNeededProperties = angular.copy(this.wfFormFields);
  895. }
  896. }, {
  897. key: 'downThisLine',
  898. value: function downThisLine(indexLine) {
  899. if (indexLine > -1) {
  900. if (this.configuration.lines[indexLine + 1]) {
  901. var currentLineObj = this.configuration.lines[indexLine];
  902. this.configuration.lines.splice(indexLine, 1);
  903. this.configuration.lines.splice(indexLine + 1, 0, currentLineObj);
  904. //manage selected aciveLine
  905. this.configuration.activeLine = 1;
  906. }
  907. }
  908. //re-render formfield
  909. this.$formlyProxy.applyConfigurationToformlyModel(this.configuration, this.wfFormFields, this.dataModel);
  910. this.wfFormFieldsOnlyNeededProperties = angular.copy(this.wfFormFields);
  911. }
  912. }, {
  913. key: 'addNewline',
  914. value: function addNewline() {
  915. this.configuration.lines.push(initLineTemplate());
  916. //re-render formfield
  917. this.$formlyProxy.applyConfigurationToformlyModel(this.configuration, this.wfFormFields, this.dataModel);
  918. this.wfFormFieldsOnlyNeededProperties = angular.copy(this.wfFormFields);
  919. }
  920. }, {
  921. key: 'removeThisLine',
  922. value: function removeThisLine(index) {
  923. if (index > -1) {
  924. if (this.configuration.lines.length > 1) {
  925. //manage selected aciveLine
  926. if (this.configuration.activeLine === index + 1) this.configuration.activeLine = 1;
  927. this.configuration.lines.splice(index, 1);
  928. } else {
  929. this.$timeout(function () {
  930. this.toaster.pop({
  931. type: 'warning',
  932. title: 'Last line',
  933. body: 'Can\'t delete the last line',
  934. showCloseButton: true
  935. });
  936. }, 100);
  937. }
  938. //re-render formfield
  939. this.$formlyProxy.applyConfigurationToformlyModel(this.configuration, this.wfFormFields, this.dataModel);
  940. this.wfFormFieldsOnlyNeededProperties = angular.copy(this.wfFormFields);
  941. }
  942. }
  943. }, {
  944. key: 'increaseNumberOfColumns',
  945. value: function increaseNumberOfColumns() {
  946. var lineIndex = this.configuration.activeLine - 1;
  947. if (this.configuration.lines[lineIndex].columns.length < this.MaxNumberOfColumns) {
  948. var newNumberOfColumns = this.configuration.lines[lineIndex].columns.push(angular.copy(initColumnTemplate()));
  949. this.configuration.lines[lineIndex].columns[newNumberOfColumns - 1].numColumn = newNumberOfColumns;
  950. }
  951. //re-render formfield
  952. this.$formlyProxy.applyConfigurationToformlyModel(this.configuration, this.wfFormFields, this.dataModel);
  953. this.wfFormFieldsOnlyNeededProperties = angular.copy(this.wfFormFields);
  954. }
  955. }, {
  956. key: 'decreaseNumberOfColumns',
  957. value: function decreaseNumberOfColumns() {
  958. if (this.configuration.lines[this.configuration.activeLine - 1].columns.length > 1) {
  959. this.configuration.lines[this.configuration.activeLine - 1].columns.splice(this.configuration.lines[this.configuration.activeLine - 1].columns.length - 1, 1);
  960. }
  961. this.$formlyProxy.applyConfigurationToformlyModel(this.configuration, this.wfFormFields, this.dataModel);
  962. this.wfFormFieldsOnlyNeededProperties = angular.copy(this.wfFormFields);
  963. }
  964. }, {
  965. key: 'resetStepCounter',
  966. value: function resetStepCounter() {
  967. this.configuration.configStepCounter = 0;
  968. }
  969. }, {
  970. key: 'nextConfigStep',
  971. value: function nextConfigStep() {
  972. var configStepCounterMAX = this.configuration.listConfigStep.length - 1;
  973. if (this.configuration.configStepCounter !== configStepCounterMAX) {
  974. this.configuration.configStepCounter++;
  975. }
  976. this.setTrueThisStepIndicator(this.configuration.configStepCounter);
  977. }
  978. }, {
  979. key: 'resetAllIndicators',
  980. value: function resetAllIndicators() {
  981. for (var i = this.configuration.stepIndicators.length - 1; i >= 0; i--) {
  982. this.configuration.stepIndicators[i] = false;
  983. }
  984. }
  985. }, {
  986. key: 'setTrueThisStepIndicator',
  987. value: function setTrueThisStepIndicator(indexIndicator) {
  988. this.resetAllIndicators();
  989. this.configuration.stepIndicators[indexIndicator] = true;
  990. }
  991. }, {
  992. key: 'previousConfigStep',
  993. value: function previousConfigStep() {
  994. if (this.configuration.configStepCounter !== 0) {
  995. this.configuration.configStepCounter--;
  996. }
  997. this.setTrueThisStepIndicator(this.configuration.configStepCounter);
  998. }
  999. }, {
  1000. key: 'stepReachable',
  1001. value: function stepReachable(indexStep) {
  1002. if (indexStep < this.configuration.configStepCounter) {
  1003. return 'disabled';
  1004. } else {
  1005. return 'enabled';
  1006. }
  1007. }
  1008. }, {
  1009. key: 'showModalAddCtrlToColumn',
  1010. value: function showModalAddCtrlToColumn(size, indexLine, numcolumn) {
  1011. var _this = this;
  1012. var editControlModal = {};
  1013. angular.extend(editControlModal, {
  1014. animation: this.animationsEnabled,
  1015. template: editControlModalTemplate,
  1016. controller: EDIT_MODAL_CONTROLLER_NAME,
  1017. controllerAs: EDIT_MODAL_CONTROLLERAS_NAME,
  1018. size: this.editControlModalSize,
  1019. resolve: {
  1020. nyaSelect: function nyaSelect() {
  1021. return _this.$modalProxy.getNyASelectFromSelectedLineColumn(_this.nyaSelect, _this.configuration, indexLine, numcolumn);
  1022. }
  1023. }
  1024. });
  1025. var modalInstance = this.$modal.open(editControlModal);
  1026. modalInstance.result.then(function (modalAddCtrlModel) {
  1027. _this.$modalProxy.bindConfigurationModelFromModalReturn(indexLine, numcolumn, modalAddCtrlModel, _this.configuration);
  1028. _this.$formlyProxy.applyConfigurationToformlyModel(_this.configuration, _this.wfFormFields, _this.dataModel);
  1029. _this.wfFormFieldsOnlyNeededProperties = angular.copy(_this.wfFormFields);
  1030. }, function () {
  1031. //$log.info('Modal dismissed at: ' + new Date());
  1032. });
  1033. }
  1034. }, {
  1035. key: 'previewExistingform',
  1036. value: function previewExistingform(formlyform) {
  1037. var configlines = JSON.parse(formlyform.formlyField);
  1038. //here to replace with $scope.configuration : initialise configuration with lines
  1039. this.configurationLoaded = {};
  1040. this.$formlyProxy.bindConfigurationLines(this.configurationLoaded, configlines);
  1041. this.$formlyProxy.applyConfigurationToformlyModel(this.configurationLoaded, this.previewLoadedForm.fieldsModel, this.dataModel);
  1042. this.wfFormFieldsOnlyNeededProperties = angular.copy(this.wfFormFields);
  1043. this.previewLoadedForm.cancelButtonText = formlyform.cancelButtonText;
  1044. this.previewLoadedForm.submitButtonText = formlyform.submitButtonText;
  1045. }
  1046. }, {
  1047. key: 'saveThisForm',
  1048. value: function saveThisForm() {
  1049. if (typeof this.configuration.formName === 'undefined') {
  1050. this.toaster.pop({
  1051. type: 'warning',
  1052. timeout: 2000,
  1053. title: 'Form name is undefined',
  1054. body: 'Form has not been saved.',
  1055. showCloseButton: true
  1056. });
  1057. return false;
  1058. }
  1059. if (this.configuration.formName === '') {
  1060. this.toaster.pop({
  1061. type: 'warning',
  1062. timeout: 2000,
  1063. title: 'Form name is required',
  1064. body: 'Form has not been saved.',
  1065. showCloseButton: true
  1066. });
  1067. return false;
  1068. }
  1069. this.toaster.pop({
  1070. type: 'wait',
  1071. timeout: 10000,
  1072. title: 'Form is being saved',
  1073. body: 'Wait.',
  1074. showCloseButton: true
  1075. });
  1076. this.toaster.clear();
  1077. this.returnSaveEvent = true;
  1078. return true;
  1079. }
  1080. }]);
  1081. return edaStepWayEasyFormGenController;
  1082. })();
  1083. toInject = ['easyFormGenVersion', '$filter', 'toaster', '$timeout', '$uibModal', '$log', '$formlyProxy', '$modalProxy', 'easyFormSteWayConfig'];
  1084. edaStepWayEasyFormGenController.$inject = toInject;
  1085. _export('default', edaStepWayEasyFormGenController);
  1086. _export('STEP_WAY_MAIN_CONTROLLER_NAME', STEP_WAY_MAIN_CONTROLLER_NAME);
  1087. _export('STEP_WAY_MAIN_CONTROLLERAS_NAME', STEP_WAY_MAIN_CONTROLLERAS_NAME);
  1088. }
  1089. };
  1090. });
  1091. $__System.register('17', ['10', '13'], function (_export) {
  1092. 'use strict';
  1093. var easyformTemplate, edaStepWayEasyFormGenController, STEP_WAY_MAIN_CONTROLLER_NAME, STEP_WAY_MAIN_CONTROLLERAS_NAME, STEP_WAY_DIRECTIVE_NAME;
  1094. function edaStepWayEasyFormGenDirective($templateCache, $timeout, $formlyProxy, $modalProxy) {
  1095. var directive = {
  1096. restrict: 'E',
  1097. scope: {
  1098. edaEasyFormGeneratorModel: '=',
  1099. edaSaveFormEvent: '&edaSaveFormEvent'
  1100. },
  1101. controller: STEP_WAY_MAIN_CONTROLLER_NAME,
  1102. controllerAs: STEP_WAY_MAIN_CONTROLLERAS_NAME,
  1103. replace: false,
  1104. template: easyformTemplate,
  1105. link: linkFct
  1106. };
  1107. return directive;
  1108. function linkFct(scope) {
  1109. //watch "scope.easyFormGeneratorModel"
  1110. scope.$watch(function () {
  1111. return scope.edaEasyFormGeneratorModel;
  1112. }, function (newValue, oldValue) {
  1113. loadExistingConfigurationModel();
  1114. }, true);
  1115. //watch "scope.vm.returnSaveEvent"" = catch saving form event
  1116. scope.$watch(function () {
  1117. return scope.vm.returnSaveEvent;
  1118. }, function (newValue, oldValue) {
  1119. if (newValue === true) {
  1120. var _easyFormGeneratorModel = {
  1121. formName: scope.vm.configuration.formName,
  1122. btnSubmitText: scope.vm.configuration.submitButtonText,
  1123. btnCancelText: scope.vm.configuration.cancelButtonText,
  1124. edaFieldsModel: scope.vm.configuration.lines,
  1125. edaFieldsModelStringified: angular.toJson(scope.vm.configuration.lines),
  1126. formlyFieldsModel: scope.vm.wfFormFieldsOnlyNeededProperties,
  1127. dataModel: scope.vm.dataModel
  1128. };
  1129. scope.edaSaveFormEvent({ edaEasyFormGeneratorModel: _easyFormGeneratorModel });
  1130. //back to false, waiting next save event
  1131. scope.returnSaveEvent = false;
  1132. }
  1133. });
  1134. function loadExistingConfigurationModel() {
  1135. if (angular.isDefined(scope.edaEasyFormGeneratorModel)) {
  1136. var configlines = returnAttributeConfigurationLinesIfNotEmpty();
  1137. scope.configurationLoaded = {};
  1138. $formlyProxy.bindConfigurationLines(scope.configurationLoaded, configlines);
  1139. /**
  1140. * rebind special control properties :
  1141. *
  1142. * formly expression properties
  1143. * Validators
  1144. * Validation
  1145. */
  1146. $modalProxy.refreshControlFormlyExpressionProperties(scope.configurationLoaded);
  1147. $modalProxy.refreshControlFormlyValidators(scope.configurationLoaded);
  1148. $modalProxy.refreshControlFormlyValidation(scope.configurationLoaded);
  1149. //apply configuration model
  1150. scope.vm.configuration = angular.copy(scope.configurationLoaded);
  1151. //apply formly model
  1152. $formlyProxy.applyConfigurationToformlyModel(scope.configurationLoaded, scope.vm.wfFormFields, scope.vm.model);
  1153. scope.vm.wfFormFieldsOnlyNeededProperties = angular.copy(scope.vm.wfFormFields);
  1154. scope.vm.dataModel = returnAttributeDataModelIfNotEmpty();
  1155. scope.vm.configuration.formName = angular.isString(scope.edaEasyFormGeneratorModel.formName) ? scope.edaEasyFormGeneratorModel.formName : '';
  1156. scope.vm.configuration.submitButtonText = angular.isString(scope.edaEasyFormGeneratorModel.btnSubmitText) ? scope.edaEasyFormGeneratorModel.btnSubmitText : 'Submit';
  1157. scope.vm.configuration.cancelButtonText = angular.isString(scope.edaEasyFormGeneratorModel.btnCancelText) ? scope.edaEasyFormGeneratorModel.btnCancelText : 'Cancel';
  1158. }
  1159. }
  1160. function returnAttributeConfigurationLinesIfNotEmpty() {
  1161. var edaEasyFormGeneratorModelToReturn = angular.isArray(scope.edaEasyFormGeneratorModel.edaFieldsModel) ? scope.edaEasyFormGeneratorModel.edaFieldsModel.length > 0 ? scope.edaEasyFormGeneratorModel.edaFieldsModel : emptyEdaFieldsModel() : emptyEdaFieldsModel();
  1162. return edaEasyFormGeneratorModelToReturn;
  1163. }
  1164. function returnAttributeDataModelIfNotEmpty() {
  1165. var dataModelToReturn = angular.isArray(scope.edaEasyFormGeneratorModel.dataModel) ? scope.edaEasyFormGeneratorModel.dataModel.length > 0 ? scope.edaEasyFormGeneratorModel.dataModel : {} : {};
  1166. return dataModelToReturn;
  1167. }
  1168. /**
  1169. * empty fields model : to display at least an empty line
  1170. * otherwise would look like ugly empty line like it were a bug
  1171. */
  1172. function emptyEdaFieldsModel() {
  1173. var emptyModel = [{
  1174. "line": 1,
  1175. "activeColumn": 1,
  1176. "columns": [{
  1177. "numColumn": 1,
  1178. "exist": true,
  1179. "control": {
  1180. "type": "none",
  1181. "key": "none"
  1182. }
  1183. }]
  1184. }];
  1185. return emptyModel;
  1186. }
  1187. }
  1188. }
  1189. return {
  1190. setters: [function (_) {
  1191. easyformTemplate = _['default'];
  1192. }, function (_2) {
  1193. edaStepWayEasyFormGenController = _2['default'];
  1194. STEP_WAY_MAIN_CONTROLLER_NAME = _2.STEP_WAY_MAIN_CONTROLLER_NAME;
  1195. STEP_WAY_MAIN_CONTROLLERAS_NAME = _2.STEP_WAY_MAIN_CONTROLLERAS_NAME;
  1196. }],
  1197. execute: function () {
  1198. STEP_WAY_DIRECTIVE_NAME = 'edaStepWayEasyFormGen';
  1199. edaStepWayEasyFormGenDirective.$inject = ['$templateCache', '$timeout', '$formlyProxy', '$modalProxy'];
  1200. _export('default', edaStepWayEasyFormGenDirective);
  1201. _export('STEP_WAY_DIRECTIVE_NAME', STEP_WAY_DIRECTIVE_NAME);
  1202. }
  1203. };
  1204. });
  1205. $__System.register('18', [], function (_export) {
  1206. /* global angular */
  1207. 'use strict';
  1208. var EASY_FORM_STEP_WAY_CONFIG_NAME;
  1209. function easyFormSteWayConfig($translateProvider) {
  1210. var _configuration = defaultConfig();
  1211. var _controlsList = controlsList();
  1212. var _defaultLanguage = getDefaultLanguage();
  1213. var _currentLanguage = initDefaultLanguage();
  1214. var _showPreviewPanel = getDefaultshowPreviewPanel();
  1215. var _showPreviewModels = getDefaultShowPreviewModel();
  1216. /* jshint validthis:true */
  1217. this.$get = easyFormStepWayConfigGET;
  1218. this.setModalAnimation = setModalAnimation;
  1219. this.getModalAnimation = getModalAnimation;
  1220. this.configuration = _configuration;
  1221. this.getEnabledControls = getEnabledControls;
  1222. this.disableControl = disableControl;
  1223. this.enableControl = enableControl;
  1224. this.setLanguage = setLanguage;
  1225. this.getCurrentLanguage = getCurrentLanguage;
  1226. this.showPreviewPanel = showPreviewPanel;
  1227. this.showPreviewModels = showPreviewModels;
  1228. //set default config
  1229. function defaultConfig() {
  1230. var _defaultConfiguration = {
  1231. modalAnimated: false
  1232. };
  1233. return _defaultConfiguration;
  1234. }
  1235. //show preview panel by default
  1236. function getDefaultshowPreviewPanel() {
  1237. return true;
  1238. }
  1239. //show preview data, fields models in preview panel
  1240. function getDefaultShowPreviewModel() {
  1241. return true;
  1242. }
  1243. function getCurrentLanguage() {
  1244. return _currentLanguage;
  1245. }
  1246. //list of controls
  1247. function controlsList() {
  1248. var controls = [{ name: 'empty', enabled: true }, { name: 'Header', enabled: true }, { name: 'Subtitle', enabled: true }, { name: 'TextInput', enabled: true }, { name: 'Password', enabled: true }, { name: 'Email', enabled: true }, { name: 'Date', enabled: true }, { name: 'Texarea', enabled: true }, { name: 'RichTextEditor', enabled: true }, { name: 'Radio', enabled: true }, { name: 'Checkbox', enabled: true }, { name: 'BasicSelect', enabled: true }, { name: 'GroupedSelect', enabled: true }];
  1249. return controls;
  1250. }
  1251. function showPreviewPanel(wantToShow) {
  1252. if (angular.isDefined(wantToShow)) {
  1253. if (wantToShow === true) _showPreviewPanel = true;
  1254. if (wantToShow === false) _showPreviewPanel = false;
  1255. }
  1256. }
  1257. function showPreviewModels(wantToShow) {
  1258. if (angular.isDefined(wantToShow)) {
  1259. if (wantToShow === true) _showPreviewModels = true;
  1260. if (wantToShow === false) _showPreviewModels = false;
  1261. }
  1262. }
  1263. //language : set default to english
  1264. function getDefaultLanguage() {
  1265. var lang = 'en';
  1266. return lang;
  1267. }
  1268. function setDefaultLanguage() {
  1269. _currentLanguage = _defaultLanguage;
  1270. $translateProvider.preferredLanguage(_currentLanguage);
  1271. return _currentLanguage;
  1272. }
  1273. function setLanguage(language) {
  1274. if (angular.isString(language)) {
  1275. _currentLanguage = language;
  1276. $translateProvider.preferredLanguage(language);
  1277. } else {
  1278. setDefaultLanguage();
  1279. }
  1280. }
  1281. function initDefaultLanguage() {
  1282. $translateProvider.useSanitizeValueStrategy('escape'); //security : Enable escaping of HTML
  1283. $translateProvider.fallbackLanguage(_defaultLanguage); //fallback language to default language
  1284. $translateProvider.preferredLanguage(_defaultLanguage);
  1285. return _defaultLanguage;
  1286. }
  1287. function getEnabledControls() {
  1288. return _controlsList;
  1289. }
  1290. function disableControl(controlName) {
  1291. if (angular.isString(controlName)) {
  1292. angular.forEach(_controlsList, function (aControl) {
  1293. if (aControl.name === controlName) aControl.enabled = false;
  1294. });
  1295. }
  1296. }
  1297. function enableControl(controlName) {
  1298. if (angular.isString(controlName)) {
  1299. angular.forEach(_controlsList, function (aControl) {
  1300. if (aControl.name === controlName) aControl.enabled = true;
  1301. });
  1302. }
  1303. }
  1304. function setModalAnimation(flagConfig) {
  1305. var valueToApply = flagConfig === true ? flagConfig : flagConfig === false ? flagConfig : _configuration.modalAnimated;
  1306. _configuration.modalAnimated = valueToApply;
  1307. }
  1308. function getModalAnimation() {
  1309. return _configuration.modalAnimated;
  1310. }
  1311. //$get implementation :
  1312. easyFormStepWayConfigGET.$inject = ['$translate'];
  1313. function easyFormStepWayConfigGET($translate) {
  1314. var service = {
  1315. setModalAnimation: setModalAnimationFct,
  1316. getModalAnimationValue: getModalAnimationValue,
  1317. getListEnabledControl: getListEnabledControl,
  1318. setLanguage: switchLanguage,
  1319. getCurrentLanguage: getCurrentLanguage,
  1320. isPreviewPanelVisible: isPreviewPanelVisible,
  1321. arePreviewModelsVisible: arePreviewModelsVisible
  1322. };
  1323. return service;
  1324. function getModalAnimationValue() {
  1325. return _configuration.modalAnimated;
  1326. }
  1327. function setModalAnimationFct(value) {
  1328. setModalAnimation(value);
  1329. }
  1330. function getListEnabledControl() {
  1331. return angular.copy(_controlsList);
  1332. }
  1333. function switchLanguage(language) {
  1334. if (angular.isString(language)) {
  1335. _currentLanguage = language;
  1336. $translate.use(language);
  1337. } else {
  1338. setDefaultLanguage();
  1339. }
  1340. }
  1341. function isPreviewPanelVisible() {
  1342. return _showPreviewPanel;
  1343. }
  1344. function arePreviewModelsVisible() {
  1345. return _showPreviewModels;
  1346. }
  1347. }
  1348. }
  1349. return {
  1350. setters: [],
  1351. execute: function () {
  1352. EASY_FORM_STEP_WAY_CONFIG_NAME = 'easyFormSteWayConfig';
  1353. easyFormSteWayConfig.$inject = ['$translateProvider'];
  1354. _export('default', easyFormSteWayConfig);
  1355. _export('EASY_FORM_STEP_WAY_CONFIG_NAME', EASY_FORM_STEP_WAY_CONFIG_NAME);
  1356. }
  1357. };
  1358. });
  1359. $__System.register('19', ['13', '17', '18'], function (_export) {
  1360. /* global angular */
  1361. 'use strict';
  1362. var edaStepWayEasyFormGenController, STEP_WAY_MAIN_CONTROLLER_NAME, edaStepWayEasyFormGenDirective, STEP_WAY_DIRECTIVE_NAME, easyFormSteWayConfig, EASY_FORM_STEP_WAY_CONFIG_NAME, STEP_WAY_MAIN_MODULE;
  1363. return {
  1364. setters: [function (_) {
  1365. edaStepWayEasyFormGenController = _['default'];
  1366. STEP_WAY_MAIN_CONTROLLER_NAME = _.STEP_WAY_MAIN_CONTROLLER_NAME;
  1367. }, function (_2) {
  1368. edaStepWayEasyFormGenDirective = _2['default'];
  1369. STEP_WAY_DIRECTIVE_NAME = _2.STEP_WAY_DIRECTIVE_NAME;
  1370. }, function (_3) {
  1371. easyFormSteWayConfig = _3['default'];
  1372. EASY_FORM_STEP_WAY_CONFIG_NAME = _3.EASY_FORM_STEP_WAY_CONFIG_NAME;
  1373. }],
  1374. execute: function () {
  1375. STEP_WAY_MAIN_MODULE = 'easyFormStepwayMainModule';
  1376. _export('default', angular.module(STEP_WAY_MAIN_MODULE, []).controller(STEP_WAY_MAIN_CONTROLLER_NAME, edaStepWayEasyFormGenController).directive(STEP_WAY_DIRECTIVE_NAME, edaStepWayEasyFormGenDirective).provider(EASY_FORM_STEP_WAY_CONFIG_NAME, easyFormSteWayConfig));
  1377. }
  1378. };
  1379. });
  1380. $__System.register('14', ['15', '16'], function (_export) {
  1381. var _createClass, _classCallCheck, EDIT_MODAL_CONTROLLER_NAME, EDIT_MODAL_CONTROLLERAS_NAME, editControlModalController, toInject;
  1382. return {
  1383. setters: [function (_2) {
  1384. _createClass = _2['default'];
  1385. }, function (_3) {
  1386. _classCallCheck = _3['default'];
  1387. }],
  1388. execute: function () {
  1389. 'use strict';
  1390. EDIT_MODAL_CONTROLLER_NAME = 'editControlModalController';
  1391. EDIT_MODAL_CONTROLLERAS_NAME = 'editControlModCtrl';
  1392. editControlModalController = (function () {
  1393. function editControlModalController($uibModalInstance, nyaSelect, toaster, selectOptionManage, $modalProxy) {
  1394. _classCallCheck(this, editControlModalController);
  1395. this.$modalInstance = $uibModalInstance;
  1396. this.nyaSelect = nyaSelect;
  1397. this.toaster = toaster;
  1398. this.selectOptionManage = selectOptionManage;
  1399. this.$modalProxy = $modalProxy;
  1400. this.init();
  1401. }
  1402. _createClass(editControlModalController, [{
  1403. key: 'init',
  1404. value: function init() {
  1405. var initOptionModel = { rows: [] };
  1406. this.radioRowCollection = initOptionModel;
  1407. this.newOptionRadio = { saisie: '' };
  1408. this.basicSelectRowCollection = initOptionModel;
  1409. this.newOptionBasicSelect = { saisie: '' };
  1410. this.groupedSelectRowCollection = initOptionModel;
  1411. this.newOptionGroupedSelect = { saisie: '' };
  1412. this.GroupedSelectGroups = { list: [] };
  1413. this.newGroupGroupedSelect = { saisie: '' };
  1414. this.groupSelectGroupClick = { showList: false };
  1415. this.demodt = {};
  1416. this.dateOptions = this.dateOptionsInit();
  1417. this.demodt.formats = ['dd-MMMM-yyyy', 'yyyy/MM/dd', 'dd.MM.yyyy', 'shortDate'];
  1418. this.nyaSelect.selectedControl = this.nyaSelect.temporyConfig.selectedControl;
  1419. this.nyaSelectFiltered = {};
  1420. this.modelNyaSelect = {};
  1421. //init today date
  1422. this.today();
  1423. //init nyaSelect model depending selected control
  1424. this.initNyaSelectConformingSelectedControl();
  1425. }
  1426. }, {
  1427. key: 'initNyaSelectConformingSelectedControl',
  1428. value: function initNyaSelectConformingSelectedControl() {
  1429. //place nya-select to selection if not none :
  1430. if (this.nyaSelect.selectedControl !== 'none') {
  1431. for (var i = this.nyaSelect.controls.length - 1; i >= 0; i--) {
  1432. if (this.nyaSelect.controls[i].id === this.nyaSelect.selectedControl) this.modelNyaSelect = this.nyaSelect.controls[i];
  1433. }
  1434. if (this.nyaSelect.selectedControl === 'BasicSelect') this.bindBasicSelectFromNYA();
  1435. if (this.nyaSelect.selectedControl === 'GroupedSelect') this.bindGroupedSelectFromNYA();
  1436. if (this.nyaSelect.selectedControl === 'Radio') this.bindRadioFromNYA();
  1437. }
  1438. this.initNyaSelectFiltered();
  1439. // console.info(`modal controller : nyaSelect`);
  1440. // console.dir(this.nyaSelect);
  1441. }
  1442. }, {
  1443. key: 'initNyaSelectFiltered',
  1444. value: function initNyaSelectFiltered() {
  1445. var listCtrl = [].concat(this.$modalProxy.getFilteredNyaSelectObject());
  1446. angular.extend(this.nyaSelectFiltered, {
  1447. 'controls': listCtrl,
  1448. 'selectedControl': this.nyaSelect.selectedControl,
  1449. 'temporyConfig': this.nyaSelect.temporyConfig
  1450. });
  1451. }
  1452. }, {
  1453. key: 'bindBasicSelectFromNYA',
  1454. value: function bindBasicSelectFromNYA() {
  1455. if (this.nyaSelect.temporyConfig.formlyOptions.length > 0) {
  1456. for (var i = 0; i <= this.nyaSelect.temporyConfig.formlyOptions.length - 1; i++) {
  1457. var newOption = {
  1458. 'option': this.nyaSelect.temporyConfig.formlyOptions[i].name,
  1459. 'order': i,
  1460. 'group': ''
  1461. };
  1462. this.basicSelectRowCollection.rows.push(newOption);
  1463. }
  1464. }
  1465. }
  1466. }, {
  1467. key: 'bindRadioFromNYA',
  1468. value: function bindRadioFromNYA() {
  1469. if (this.nyaSelect.temporyConfig.formlyOptions.length > 0) {
  1470. for (var i = 0; i <= this.nyaSelect.temporyConfig.formlyOptions.length - 1; i++) {
  1471. var newOption = {
  1472. 'option': this.nyaSelect.temporyConfig.formlyOptions[i].name,
  1473. 'order': i,
  1474. 'group': ''
  1475. };
  1476. this.radioRowCollection.rows.push(newOption);
  1477. }
  1478. }
  1479. }
  1480. }, {
  1481. key: 'bindGroupedSelectFromNYA',
  1482. value: function bindGroupedSelectFromNYA() {
  1483. if (this.nyaSelect.temporyConfig.formlyOptions.length > 0) {
  1484. for (var i = 0; i <= this.nyaSelect.temporyConfig.formlyOptions.length - 1; i++) {
  1485. var newOption = {
  1486. 'option': this.nyaSelect.temporyConfig.formlyOptions[i].name,
  1487. 'order': i,
  1488. 'group': this.nyaSelect.temporyConfig.formlyOptions[i].group
  1489. };
  1490. this.groupedSelectRowCollection.rows.push(newOption);
  1491. }
  1492. var filteredgroup = _.uniq(_.pluck(this.groupedSelectRowCollection.rows, 'group'));
  1493. angular.copy(filteredgroup, this.GroupedSelectGroups.list);
  1494. }
  1495. }
  1496. }, {
  1497. key: 'addNewOptionRadio',
  1498. value: function addNewOptionRadio() {
  1499. var result = this.selectOptionManage.addNewOptionRadio(this.radioRowCollection, this.newOptionRadio.saisie);
  1500. if (result.resultFlag === false) {
  1501. this.toaster.pop({
  1502. type: 'warning',
  1503. timeout: 2000,
  1504. title: result.details,
  1505. body: '\'' + this.newOptionRadio.saisie + '\' cannot be added.',
  1506. showCloseButton: true
  1507. });
  1508. }
  1509. this.newOptionRadio = { saisie: '' }; //reset input
  1510. }
  1511. }, {
  1512. key: 'removeRadioRow',
  1513. value: function removeRadioRow(index) {
  1514. var result = this.selectOptionManage.removeOption(this.radioRowCollection, index);
  1515. if (result.resultFlag === false) {
  1516. this.toaster.pop({
  1517. type: 'warning',
  1518. timeout: 2000,
  1519. title: result.details,
  1520. body: 'Delete was cancelled.',
  1521. showCloseButton: true
  1522. });
  1523. }
  1524. }
  1525. }, {
  1526. key: 'upThisRadioRow',
  1527. value: function upThisRadioRow(index) {
  1528. var result = this.selectOptionManage.upthisOption(this.radioRowCollection, index);
  1529. if (result.resultFlag === false) {
  1530. this.toaster.pop({
  1531. type: 'warning',
  1532. timeout: 2000,
  1533. title: result.details,
  1534. body: 'Operation cancelled.',
  1535. showCloseButton: true
  1536. });
  1537. }
  1538. }
  1539. }, {
  1540. key: 'downThisRadioRow',
  1541. value: function downThisRadioRow(index) {
  1542. var result = this.selectOptionManage.downthisOption(this.radioRowCollection, index);
  1543. if (result.resultFlag === false) {
  1544. this.toaster.pop({
  1545. type: 'warning',
  1546. timeout: 2000,
  1547. title: result.details,
  1548. body: 'Operation cancelled.',
  1549. showCloseButton: true
  1550. });
  1551. }
  1552. }
  1553. }, {
  1554. key: 'addNewOptionBasicSelect',
  1555. value: function addNewOptionBasicSelect() {
  1556. var result = this.selectOptionManage.addNewOptionBasicSelect(this.basicSelectRowCollection, this.newOptionBasicSelect.saisie);
  1557. if (result.resultFlag === false) {
  1558. this.toaster.pop({
  1559. type: 'warning',
  1560. timeout: 2000,
  1561. title: result.details,
  1562. body: '\'' + this.newOptionBasicSelect.saisie + '\' cannot be added.',
  1563. showCloseButton: true
  1564. });
  1565. }
  1566. this.newOptionBasicSelect = { saisie: '' }; //reset input
  1567. }
  1568. }, {
  1569. key: 'removeRow',
  1570. value: function removeRow(index) {
  1571. var result = this.selectOptionManage.removeOption(this.basicSelectRowCollection, index);
  1572. if (result.resultFlag === false) {
  1573. this.toaster.pop({
  1574. type: 'warning',
  1575. timeout: 2000,
  1576. title: result.details,
  1577. body: 'Delete was cancelled.',
  1578. showCloseButton: true
  1579. });
  1580. }
  1581. }
  1582. }, {
  1583. key: 'upThisRow',
  1584. value: function upThisRow(index) {
  1585. var result = this.selectOptionManage.upthisOption(this.basicSelectRowCollection, index);
  1586. if (result.resultFlag === false) {
  1587. this.toaster.pop({
  1588. type: 'warning',
  1589. timeout: 2000,
  1590. title: result.details,
  1591. body: 'Operation cancelled.',
  1592. showCloseButton: true
  1593. });
  1594. }
  1595. }
  1596. }, {
  1597. key: 'downThisRow',
  1598. value: function downThisRow(index) {
  1599. var result = this.selectOptionManage.downthisOption(this.basicSelectRowCollection, index);
  1600. if (result.resultFlag === false) {
  1601. this.toaster.pop({
  1602. type: 'warning',
  1603. timeout: 2000,
  1604. title: result.details,
  1605. body: 'Operation cancelled.',
  1606. showCloseButton: true
  1607. });
  1608. }
  1609. }
  1610. }, {
  1611. key: 'showGroupListToChoose',
  1612. value: function showGroupListToChoose() {
  1613. this.groupSelectGroupClick.showList = !this.groupSelectGroupClick.showList;
  1614. }
  1615. }, {
  1616. key: 'addNewGroupToGroupedSelect',
  1617. value: function addNewGroupToGroupedSelect() {
  1618. if (this.newGroupGroupedSelect.saisie !== '') {
  1619. for (var i = this.GroupedSelectGroups.list.length - 1; i >= 0; i--) {
  1620. if (this.GroupedSelectGroups.list[i] === this.newGroupGroupedSelect.saisie) {
  1621. this.toaster.pop({
  1622. type: 'warning',
  1623. timeout: 2000,
  1624. title: 'Group already exists',
  1625. body: 'No group added.',
  1626. showCloseButton: true
  1627. });
  1628. }
  1629. }
  1630. this.GroupedSelectGroups.list.push(this.newGroupGroupedSelect.saisie);
  1631. } else {
  1632. this.toaster.pop({
  1633. type: 'warning',
  1634. timeout: 2000,
  1635. title: 'Not a valid group to add',
  1636. body: 'No group added.',
  1637. showCloseButton: true
  1638. });
  1639. }
  1640. this.newGroupGroupedSelect.saisie = '';
  1641. }
  1642. }, {
  1643. key: 'addNewOptionGroupedSelect',
  1644. value: function addNewOptionGroupedSelect() {
  1645. var result = this.selectOptionManage.addNewOptionGroupedSelect(this.groupedSelectRowCollection, this.newOptionGroupedSelect.saisie, '');
  1646. if (result.resultFlag === false) {
  1647. this.toaster.pop({
  1648. type: 'warning',
  1649. timeout: 2000,
  1650. title: result.details,
  1651. body: '\'' + this.newOptionGroupedSelect.saisie + '\' cannot be added.',
  1652. showCloseButton: true
  1653. });
  1654. }
  1655. //bind nya : dont bind here $apply is not done fast enough
  1656. //bindGroupedSelectToNya();
  1657. //reset input
  1658. this.newOptionGroupedSelect = { saisie: '' };
  1659. }
  1660. }, {
  1661. key: 'removeGroupedSelectRow',
  1662. value: function removeGroupedSelectRow(index) {
  1663. var result = this.selectOptionManage.removeOption(this.groupedSelectRowCollection, index);
  1664. if (result.resultFlag === false) {
  1665. this.toaster.pop({
  1666. type: 'warning',
  1667. timeout: 2000,
  1668. title: result.details,
  1669. body: 'Delete was cancelled.',
  1670. showCloseButton: true
  1671. });
  1672. }
  1673. }
  1674. }, {
  1675. key: 'upThisGroupedSelectRow',
  1676. value: function upThisGroupedSelectRow(index) {
  1677. var result = this.selectOptionManage.upthisOption(this.groupedSelectRowCollection, index);
  1678. if (result.resultFlag === false) {
  1679. this.toaster.pop({
  1680. type: 'warning',
  1681. timeout: 2000,
  1682. title: result.details,
  1683. body: 'Operation cancelled.',
  1684. showCloseButton: true
  1685. });
  1686. }
  1687. }
  1688. }, {
  1689. key: 'downThisGroupedSelectRow',
  1690. value: function downThisGroupedSelectRow(index) {
  1691. var result = this.selectOptionManage.downthisOption(this.groupedSelectRowCollection, index);
  1692. if (result.resultFlag === false) {
  1693. this.toaster.pop({
  1694. type: 'warning',
  1695. timeout: 2000,
  1696. title: result.details,
  1697. body: 'Operation cancelled.',
  1698. showCloseButton: true
  1699. });
  1700. }
  1701. }
  1702. }, {
  1703. key: 'today',
  1704. value: function today() {
  1705. this.demodt.dt = new Date();
  1706. }
  1707. }, {
  1708. key: 'clear',
  1709. value: function clear() {
  1710. this.demodt.dt = null;
  1711. }
  1712. }, {
  1713. key: 'open',
  1714. value: function open($event) {
  1715. $event.preventDefault();
  1716. $event.stopPropagation();
  1717. this.demodt.opened = true;
  1718. }
  1719. }, {
  1720. key: 'dateOptionsInit',
  1721. value: function dateOptionsInit() {
  1722. return {
  1723. formatYear: 'yy',
  1724. startingDay: 1,
  1725. showWeeks: true,
  1726. initDate: null
  1727. };
  1728. }
  1729. }, {
  1730. key: 'selectThisControl',
  1731. value: function selectThisControl(controlName) {
  1732. this.nyaSelect.selectedControl = 'none';
  1733. this.resetTemporyConfig();
  1734. for (var i = this.nyaSelect.controls.length - 1; i >= 0; i--) {
  1735. if (this.nyaSelect.controls[i].id === controlName) this.nyaSelect.selectedControl = this.nyaSelect.controls[i].id;
  1736. }
  1737. if (this.nyaSelect.selectedControl === 'Date') this.initDatePicker();
  1738. }
  1739. }, {
  1740. key: 'ok',
  1741. value: function ok() {
  1742. if (this.nyaSelect.selectedControl === 'BasicSelect') this.bindBasicSelectToNya();
  1743. if (this.nyaSelect.selectedControl === 'GroupedSelect') this.bindGroupedSelectToNya();
  1744. if (this.nyaSelect.selectedControl === 'Radio') this.bindRadioToNya();
  1745. //save config to control
  1746. this.$modalProxy.applyConfigToSelectedControl(this.nyaSelect);
  1747. //return current model to parent controller :
  1748. this.$modalInstance.close(this.nyaSelect);
  1749. }
  1750. }, {
  1751. key: 'cancel',
  1752. value: function cancel() {
  1753. this.$modalInstance.dismiss('cancel');
  1754. }
  1755. }, {
  1756. key: 'bindBasicSelectToNya',
  1757. value: function bindBasicSelectToNya() {
  1758. var resetNyASelectOptions = [];
  1759. this.nyaSelect.temporyConfig.formlyOptions = resetNyASelectOptions;
  1760. if (this.basicSelectRowCollection.rows.length > 0) {
  1761. for (var i = 0; i <= this.basicSelectRowCollection.rows.length - 1; i++) {
  1762. var newOption = {
  1763. 'name': this.basicSelectRowCollection.rows[i].option,
  1764. 'value': i,
  1765. 'group': ''
  1766. };
  1767. this.nyaSelect.temporyConfig.formlyOptions.push(newOption);
  1768. }
  1769. }
  1770. }
  1771. }, {
  1772. key: 'bindGroupedSelectToNya',
  1773. value: function bindGroupedSelectToNya() {
  1774. this.nyaSelect.temporyConfig.formlyOptions = [];
  1775. for (var i = 0; i <= this.groupedSelectRowCollection.rows.length - 1; i++) {
  1776. var newOption = {
  1777. 'name': this.groupedSelectRowCollection.rows[i].option,
  1778. 'value': i,
  1779. 'group': this.groupedSelectRowCollection.rows[i].group
  1780. };
  1781. this.nyaSelect.temporyConfig.formlyOptions.push(newOption);
  1782. }
  1783. }
  1784. }, {
  1785. key: 'bindRadioToNya',
  1786. value: function bindRadioToNya() {
  1787. var resetNyASelectOptions = [];
  1788. this.nyaSelect.temporyConfig.formlyOptions = resetNyASelectOptions;
  1789. if (this.radioRowCollection.rows.length > 0) {
  1790. for (var i = 0; i <= this.radioRowCollection.rows.length - 1; i++) {
  1791. var newOption = {
  1792. 'name': this.radioRowCollection.rows[i].option,
  1793. 'value': i,
  1794. 'group': ''
  1795. };
  1796. this.nyaSelect.temporyConfig.formlyOptions.push(newOption);
  1797. }
  1798. }
  1799. }
  1800. }, {
  1801. key: 'initDatePicker',
  1802. value: function initDatePicker() {
  1803. this.nyaSelect.temporyConfig.datepickerOptions = {
  1804. format: this.demodt.formats[0]
  1805. };
  1806. }
  1807. }, {
  1808. key: 'resetTemporyConfig',
  1809. value: function resetTemporyConfig() {
  1810. this.nyaSelectFiltered.temporyConfig = {
  1811. formlyLabel: '',
  1812. formlyRequired: false,
  1813. formlyPlaceholder: '',
  1814. formlyDesciption: '',
  1815. formlyOptions: []
  1816. };
  1817. }
  1818. }]);
  1819. return editControlModalController;
  1820. })();
  1821. toInject = ['$uibModalInstance', 'nyaSelect', 'toaster', 'selectOptionManage', '$modalProxy'];
  1822. editControlModalController.$inject = toInject;
  1823. _export('default', editControlModalController);
  1824. _export('EDIT_MODAL_CONTROLLER_NAME', EDIT_MODAL_CONTROLLER_NAME);
  1825. _export('EDIT_MODAL_CONTROLLERAS_NAME', EDIT_MODAL_CONTROLLERAS_NAME);
  1826. }
  1827. };
  1828. });
  1829. $__System.register('1a', ['14'], function (_export) {
  1830. /* global angular */
  1831. 'use strict';
  1832. var editModalController, EDIT_MODAL_CONTROLLER_NAME, EDIT_CONTROLE_MODAL_NAME;
  1833. return {
  1834. setters: [function (_) {
  1835. editModalController = _['default'];
  1836. EDIT_MODAL_CONTROLLER_NAME = _.EDIT_MODAL_CONTROLLER_NAME;
  1837. }],
  1838. execute: function () {
  1839. EDIT_CONTROLE_MODAL_NAME = 'editControlModalModule';
  1840. _export('default', angular.module(EDIT_CONTROLE_MODAL_NAME, []).controller(EDIT_MODAL_CONTROLLER_NAME, editModalController));
  1841. }
  1842. };
  1843. });
  1844. $__System.register('1b', [], function (_export) {
  1845. /* global angular */
  1846. 'use strict';
  1847. var resetNyaSelect, getResetConfig, returnControlFromAddCtrlModalModel, validKeyUniqueness;
  1848. return {
  1849. setters: [],
  1850. execute: function () {
  1851. resetNyaSelect = function resetNyaSelect(nyaSelectObj) {
  1852. var newNyaSelectObj = {
  1853. controls: [{
  1854. id: 'empty',
  1855. name: 'no control',
  1856. subtitle: 'no control',
  1857. group: 'Blank',
  1858. formlyType: 'blank',
  1859. formlySubtype: '',
  1860. formlyLabel: '',
  1861. formlyRequired: false,
  1862. formlyDesciption: '',
  1863. formlyOptions: [],
  1864. formlyExpressionProperties: {},
  1865. formlyValidators: {},
  1866. formlyValidation: {}
  1867. }, {
  1868. id: 'Header',
  1869. name: 'Header',
  1870. subtitle: 'no control',
  1871. group: 'Decoration',
  1872. formlyType: 'header',
  1873. formlySubtype: '',
  1874. formlyLabel: '',
  1875. formlyRequired: false,
  1876. formlyDesciption: '',
  1877. formlyOptions: [],
  1878. formlyExpressionProperties: {},
  1879. formlyValidators: {},
  1880. formlyValidation: {}
  1881. }, {
  1882. id: 'Subtitle',
  1883. name: 'Subtitle',
  1884. subtitle: 'no control',
  1885. group: 'Decoration',
  1886. formlyType: 'subTitle',
  1887. formlySubtype: '',
  1888. formlyLabel: '',
  1889. formlyRequired: false,
  1890. formlyDesciption: '',
  1891. formlyOptions: [],
  1892. formlyExpressionProperties: {},
  1893. formlyValidators: {},
  1894. formlyValidation: {}
  1895. }, {
  1896. id: 'TextInput',
  1897. name: 'Text input',
  1898. subtitle: 'Text input',
  1899. group: 'input',
  1900. formlyType: 'input',
  1901. formlySubtype: '',
  1902. formlyLabel: '',
  1903. formlyRequired: false,
  1904. formlyDesciption: '',
  1905. formlyOptions: [],
  1906. formlyExpressionProperties: {},
  1907. formlyValidators: {},
  1908. formlyValidation: {
  1909. messages: {
  1910. required: function required(viewValue, modelValue, scope) {
  1911. //return a required validation message :
  1912. //-> '<label as name> is required '
  1913. //-> or if not exists or empty just 'this field is required'
  1914. var defaultReturnMsg = 'this Text input field is required';
  1915. var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
  1916. return returnMsg;
  1917. }
  1918. }
  1919. }
  1920. }, {
  1921. id: 'Password',
  1922. name: 'Password',
  1923. subtitle: 'Password',
  1924. group: 'input',
  1925. formlyType: 'input',
  1926. formlySubtype: 'password',
  1927. formlyLabel: '',
  1928. formlyRequired: false,
  1929. formlyDesciption: '',
  1930. formlyOptions: [],
  1931. formlyExpressionProperties: {},
  1932. formlyValidators: {},
  1933. formlyValidation: {
  1934. messages: {
  1935. required: function required(viewValue, modelValue, scope) {
  1936. //return a required validation message :
  1937. //-> '<label as name> is required '
  1938. //-> or if not exists or empty just 'this field is required'
  1939. var defaultReturnMsg = 'this Password field is required';
  1940. var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
  1941. return returnMsg;
  1942. }
  1943. }
  1944. }
  1945. }, {
  1946. id: 'Email',
  1947. name: 'Email',
  1948. subtitle: 'Email',
  1949. group: 'input',
  1950. formlyType: 'input',
  1951. formlySubtype: 'email',
  1952. formlyLabel: '',
  1953. formlyRequired: false,
  1954. formlyDesciption: '',
  1955. formlyOptions: [],
  1956. formlyExpressionProperties: {},
  1957. formlyValidators: {
  1958. emailShape: {
  1959. expression: function expression(viewValue, modelValue) {
  1960. var value = modelValue || viewValue;
  1961. return (/^[a-z]+[a-z0-9._]+@[a-z]+\.[a-z.]{2,5}$/.test(value)
  1962. );
  1963. },
  1964. message: '$viewValue + \' is not a valid email\''
  1965. }
  1966. },
  1967. formlyValidation: {
  1968. messages: {
  1969. required: function required(viewValue, modelValue, scope) {
  1970. //return a required validation message :
  1971. //-> '<label as name> is required '
  1972. //-> or if not exists or empty just 'this field is required'
  1973. var defaultReturnMsg = 'this Email field is required';
  1974. var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
  1975. //check if validation is really dued to require validation
  1976. //and not another validation like emailShape validator
  1977. if (scope.to.required) return returnMsg;
  1978. }
  1979. }
  1980. }
  1981. }, {
  1982. id: 'Date',
  1983. name: 'Date',
  1984. subtitle: 'Date',
  1985. group: 'input',
  1986. formlyType: 'datepicker',
  1987. formlySubtype: '',
  1988. formlyLabel: '',
  1989. formlyRequired: false,
  1990. formlyDesciption: '',
  1991. formlyOptions: [],
  1992. datepickerOptions: 'dd-MMMM-yyyy',
  1993. formlyExpressionProperties: {},
  1994. formlyValidators: {},
  1995. formlyValidation: {
  1996. messages: {
  1997. required: function required(viewValue, modelValue, scope) {
  1998. //return a required validation message :
  1999. //-> '<label as name> is required '
  2000. //-> or if not exists or empty just 'this field is required'
  2001. var defaultReturnMsg = 'this Date field is required';
  2002. var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
  2003. return returnMsg;
  2004. }
  2005. }
  2006. }
  2007. }, {
  2008. id: 'Texarea',
  2009. name: 'Textarea',
  2010. subtitle: 'Textarea',
  2011. group: 'Textarea',
  2012. formlyType: 'textarea',
  2013. formlySubtype: '',
  2014. formlyLabel: '',
  2015. formlyRequired: false,
  2016. formlyDesciption: '',
  2017. formlyOptions: [],
  2018. formlyExpressionProperties: {},
  2019. formlyValidators: {},
  2020. formlyValidation: {
  2021. messages: {
  2022. required: function required(viewValue, modelValue, scope) {
  2023. //return a required validation message :
  2024. //-> '<label as name> is required '
  2025. //-> or if not exists or empty just 'this field is required'
  2026. var defaultReturnMsg = 'this Textarea field is required';
  2027. var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
  2028. return returnMsg;
  2029. }
  2030. }
  2031. }
  2032. }, {
  2033. id: 'RichTextEditor',
  2034. name: 'RichTextEditor',
  2035. subtitle: 'RichTextEditor',
  2036. group: 'Textarea',
  2037. formlyType: 'richEditor',
  2038. formlySubtype: '',
  2039. formlyLabel: '',
  2040. formlyRequired: false,
  2041. formlyDesciption: '',
  2042. formlyOptions: [],
  2043. formlyExpressionProperties: {},
  2044. formlyValidators: {},
  2045. formlyValidation: {
  2046. messages: {
  2047. required: function required(viewValue, modelValue, scope) {
  2048. //return a required validation message :
  2049. //-> '<label as name> is required '
  2050. //-> or if not exists or empty just 'this field is required'
  2051. var defaultReturnMsg = 'this RichTextEditor field is required';
  2052. var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
  2053. return returnMsg;
  2054. }
  2055. }
  2056. }
  2057. }, {
  2058. id: 'Radio',
  2059. name: 'Radio',
  2060. subtitle: 'Radio',
  2061. options: [],
  2062. group: 'Radio',
  2063. formlyType: 'radio',
  2064. formlySubtype: '',
  2065. formlyLabel: '',
  2066. formlyRequired: false,
  2067. formlyDesciption: '',
  2068. formlyOptions: [],
  2069. formlyExpressionProperties: {},
  2070. formlyValidators: {},
  2071. formlyValidation: {
  2072. messages: {
  2073. required: function required(viewValue, modelValue, scope) {
  2074. //return a required validation message :
  2075. //-> '<label as name> is required '
  2076. //-> or if not exists or empty just 'this field is required'
  2077. var defaultReturnMsg = 'this Password field is required';
  2078. var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
  2079. return returnMsg;
  2080. }
  2081. }
  2082. }
  2083. }, {
  2084. id: 'Checkbox',
  2085. name: 'Checkbox',
  2086. subtitle: 'Checkbox',
  2087. group: 'Checkbox',
  2088. formlyType: 'checkbox',
  2089. formlySubtype: '',
  2090. formlyLabel: '',
  2091. formlyRequired: false,
  2092. formlyDesciption: '',
  2093. formlyOptions: [],
  2094. formlyExpressionProperties: {},
  2095. formlyValidators: {},
  2096. formlyValidation: {
  2097. messages: {
  2098. required: function required(viewValue, modelValue, scope) {
  2099. //return a required validation message :
  2100. //-> '<label as name> is required '
  2101. //-> or if not exists or empty just 'this field is required'
  2102. var defaultReturnMsg = 'this Checkbox field is required';
  2103. var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
  2104. return returnMsg;
  2105. }
  2106. }
  2107. }
  2108. }, {
  2109. id: 'BasicSelect',
  2110. name: 'Basic select',
  2111. subtitle: 'Basic select',
  2112. options: [],
  2113. group: 'Select',
  2114. formlyType: 'basicSelect',
  2115. formlySubtype: '',
  2116. formlyLabel: '',
  2117. formlyRequired: false,
  2118. formlyDesciption: '',
  2119. formlyOptions: [],
  2120. formlyExpressionProperties: {},
  2121. formlyValidators: {},
  2122. formlyValidation: {
  2123. messages: {
  2124. required: function required(viewValue, modelValue, scope) {
  2125. //return a required validation message :
  2126. //-> '<label as name> is required '
  2127. //-> or if not exists or empty just 'this field is required'
  2128. var defaultReturnMsg = 'this Basic select field is required';
  2129. var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
  2130. return returnMsg;
  2131. }
  2132. }
  2133. }
  2134. }, {
  2135. id: 'GroupedSelect',
  2136. name: 'Grouped Select',
  2137. subtitle: 'Grouped Select',
  2138. options: [],
  2139. group: 'Select',
  2140. formlyType: 'groupedSelect',
  2141. formlySubtype: '',
  2142. formlyLabel: '',
  2143. formlyRequired: false,
  2144. formlyDesciption: '',
  2145. formlyOptions: [],
  2146. formlyExpressionProperties: {},
  2147. formlyValidators: {},
  2148. formlyValidation: {
  2149. messages: {
  2150. required: function required(viewValue, modelValue, scope) {
  2151. //return a required validation message :
  2152. //-> '<label as name> is required '
  2153. //-> or if not exists or empty just 'this field is required'
  2154. var defaultReturnMsg = 'this Grouped Select field is required';
  2155. var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
  2156. return returnMsg;
  2157. }
  2158. }
  2159. }
  2160. }],
  2161. selectedControl: 'none',
  2162. temporyConfig: {
  2163. selectedControl: 'none',
  2164. formlyLabel: '',
  2165. formlyRequired: false,
  2166. formlyDesciption: '',
  2167. formlyPlaceholder: '',
  2168. formlyOptions: [],
  2169. //expressions/validation fields
  2170. formlyExpressionProperties: {},
  2171. formlyValidators: {},
  2172. formlyValidation: {}
  2173. }
  2174. };
  2175. //reset
  2176. angular.copy(newNyaSelectObj, nyaSelectObj);
  2177. return true;
  2178. };
  2179. getResetConfig = function getResetConfig() {
  2180. var emptyConfig = {};
  2181. angular.extend(emptyConfig, {
  2182. formlyLabel: '',
  2183. formlyRequired: false,
  2184. formlyPlaceholder: '',
  2185. formlyDesciption: '',
  2186. formlyOptions: []
  2187. });
  2188. return emptyConfig;
  2189. };
  2190. /**
  2191. * data passed back to parent controller
  2192. * after control being finsihed editing in modal
  2193. */
  2194. returnControlFromAddCtrlModalModel = function returnControlFromAddCtrlModalModel(CtrlModalModel) {
  2195. var modelToReturn = {
  2196. selectedControl: 'none',
  2197. formlyType: 'none',
  2198. formlySubtype: 'none',
  2199. formlyLabel: '',
  2200. formlyRequired: false,
  2201. formlyDesciption: '',
  2202. formlyPlaceholder: '',
  2203. formlyOptions: [],
  2204. //validation fields
  2205. formlyExpressionProperties: {},
  2206. formlyValidators: {},
  2207. formlyValidation: {}
  2208. };
  2209. for (var i = CtrlModalModel.controls.length - 1; i >= 0; i--) {
  2210. if (CtrlModalModel.selectedControl === CtrlModalModel.controls[i].id) {
  2211. modelToReturn.selectedControl = CtrlModalModel.selectedControl;
  2212. modelToReturn.formlyType = CtrlModalModel.controls[i].formlyType;
  2213. modelToReturn.formlySubtype = CtrlModalModel.controls[i].formlySubtype;
  2214. modelToReturn.formlyLabel = CtrlModalModel.controls[i].formlyLabel;
  2215. modelToReturn.formlyRequired = CtrlModalModel.controls[i].formlyRequired;
  2216. modelToReturn.formlyDesciption = CtrlModalModel.controls[i].formlyDesciption;
  2217. modelToReturn.formlyPlaceholder = CtrlModalModel.controls[i].formlyPlaceholder;
  2218. modelToReturn.formlyOptions = CtrlModalModel.controls[i].formlyOptions;
  2219. modelToReturn.formlyExpressionProperties = angular.copy(CtrlModalModel.controls[i].formlyExpressionProperties);
  2220. modelToReturn.formlyValidators = angular.copy(CtrlModalModel.controls[i].formlyValidators);
  2221. modelToReturn.formlyValidation = angular.copy(CtrlModalModel.controls[i].formlyValidation);
  2222. //particular properties
  2223. //datetpicker format
  2224. if (CtrlModalModel.controls[i].formlyType === 'datepicker') {
  2225. modelToReturn.datepickerOptions = CtrlModalModel.controls[i].datepickerOptions;
  2226. }
  2227. }
  2228. }
  2229. return modelToReturn;
  2230. };
  2231. /**
  2232. * validKeyUniqueness
  2233. * to be sure the "keys" are unique (in same formly field model)
  2234. */
  2235. validKeyUniqueness = function validKeyUniqueness(thisKey, configurationObj) {
  2236. var isUnique = true;
  2237. //each lines
  2238. for (var i = configurationObj.lines.length - 1; i >= 0; i--) {
  2239. //each columns
  2240. for (var j = configurationObj.lines[i].columns.length - 1; j >= 0; j--) {
  2241. if (configurationObj.lines[i].columns[j].control.key === thisKey) {
  2242. isUnique = false;
  2243. }
  2244. }
  2245. }
  2246. return isUnique;
  2247. };
  2248. _export('resetNyaSelect', resetNyaSelect);
  2249. _export('returnControlFromAddCtrlModalModel', returnControlFromAddCtrlModalModel);
  2250. _export('validKeyUniqueness', validKeyUniqueness);
  2251. _export('getResetConfig', getResetConfig);
  2252. }
  2253. };
  2254. });
  2255. $__System.register('1c', ['15', '16', '1b'], function (_export) {
  2256. var _createClass, _classCallCheck, resetNyaSelect, returnControlFromAddCtrlModalModel, validKeyUniqueness, getResetConfig, CONTROLLER_MODAL_PROXY_SERVICE, $modalProxy;
  2257. return {
  2258. setters: [function (_) {
  2259. _createClass = _['default'];
  2260. }, function (_2) {
  2261. _classCallCheck = _2['default'];
  2262. }, function (_b) {
  2263. resetNyaSelect = _b.resetNyaSelect;
  2264. returnControlFromAddCtrlModalModel = _b.returnControlFromAddCtrlModalModel;
  2265. validKeyUniqueness = _b.validKeyUniqueness;
  2266. getResetConfig = _b.getResetConfig;
  2267. }],
  2268. execute: function () {
  2269. 'use strict';
  2270. CONTROLLER_MODAL_PROXY_SERVICE = '$modalProxy';
  2271. $modalProxy = (function () {
  2272. function $modalProxy(easyFormSteWayConfig) {
  2273. _classCallCheck(this, $modalProxy);
  2274. this.easyFormSteWayConfig = easyFormSteWayConfig;
  2275. }
  2276. _createClass($modalProxy, [{
  2277. key: 'initNyaSelect',
  2278. value: function initNyaSelect(nyaSelectObj) {
  2279. return resetNyaSelect(nyaSelectObj);
  2280. }
  2281. }, {
  2282. key: 'getControlsDefinition',
  2283. value: function getControlsDefinition() {
  2284. var controls = {};
  2285. resetNyaSelect(controls);
  2286. return controls;
  2287. }
  2288. }, {
  2289. key: 'getNyASelectFromSelectedLineColumn',
  2290. value: function getNyASelectFromSelectedLineColumn(nyaSelectObj, configurationObj, indexLine, numcolumn) {
  2291. resetNyaSelect(nyaSelectObj);
  2292. /**
  2293. * data send to modal controller
  2294. */
  2295. if (typeof configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions != 'undefined') {
  2296. nyaSelectObj.temporyConfig.selectedControl = typeof configurationObj.lines[indexLine].columns[numcolumn].control.selectedControl != 'undefined' ? configurationObj.lines[indexLine].columns[numcolumn].control.selectedControl : 'none';
  2297. nyaSelectObj.temporyConfig.formlyLabel = typeof configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.label != 'undefined' ? configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.label : '';
  2298. nyaSelectObj.temporyConfig.formlyRequired = typeof configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.required != 'undefined' ? configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.required : '';
  2299. nyaSelectObj.temporyConfig.formlyDesciption = typeof configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.description != 'undefined' ? configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.description : '';
  2300. nyaSelectObj.temporyConfig.formlyPlaceholder = typeof configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.placeholder != 'undefined' ? configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.placeholder : '';
  2301. nyaSelectObj.temporyConfig.formlyOptions = typeof configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.options != 'undefined' ? configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.options : '';
  2302. nyaSelectObj.temporyConfig.formlyExpressionProperties = typeof configurationObj.lines[indexLine].columns[numcolumn].control.formlyExpressionProperties != 'undefined' ? angular.copy(configurationObj.lines[indexLine].columns[numcolumn].control.formlyExpressionProperties) : {};
  2303. nyaSelectObj.temporyConfig.formlyValidators = typeof configurationObj.lines[indexLine].columns[numcolumn].control.formlyValidators != 'undefined' ? angular.copy(configurationObj.lines[indexLine].columns[numcolumn].control.formlyValidators) : {};
  2304. nyaSelectObj.temporyConfig.formlyValidation = typeof configurationObj.lines[indexLine].columns[numcolumn].control.formlyValidation != 'undefined' ? angular.copy(configurationObj.lines[indexLine].columns[numcolumn].control.formlyValidation) : {};
  2305. // particular case : datepicker
  2306. if (nyaSelectObj.temporyConfig.selectedControl === 'Date') {
  2307. nyaSelectObj.temporyConfig.datepickerOptions = typeof configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.datepickerOptions != 'undefined' ? angular.copy(configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.datepickerOptions) : '';
  2308. }
  2309. }
  2310. return nyaSelectObj;
  2311. }
  2312. }, {
  2313. key: 'bindConfigurationModelFromModalReturn',
  2314. value: function bindConfigurationModelFromModalReturn(indexLine, numcolumn, modalAddCtrlModel, configurationObj) {
  2315. var extractedProps = returnControlFromAddCtrlModalModel(modalAddCtrlModel);
  2316. configurationObj.lines[indexLine].columns[numcolumn].control.selectedControl = extractedProps.selectedControl;
  2317. configurationObj.lines[indexLine].columns[numcolumn].control.type = extractedProps.formlyType;
  2318. configurationObj.lines[indexLine].columns[numcolumn].control.subtype = extractedProps.formlySubtype;
  2319. //reset templateOptions
  2320. configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions = {
  2321. label: '',
  2322. required: false,
  2323. description: '',
  2324. placeholder: '',
  2325. options: []
  2326. };
  2327. //then bind templateOptions
  2328. configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.label = extractedProps.formlyLabel;
  2329. configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.required = extractedProps.formlyRequired;
  2330. configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.description = extractedProps.formlyDesciption;
  2331. configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.placeholder = extractedProps.formlyPlaceholder;
  2332. configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.options = extractedProps.formlyOptions;
  2333. configurationObj.lines[indexLine].columns[numcolumn].control.formlyExpressionProperties = angular.copy(extractedProps.formlyExpressionProperties);
  2334. configurationObj.lines[indexLine].columns[numcolumn].control.formlyValidators = angular.copy(extractedProps.formlyValidators);
  2335. configurationObj.lines[indexLine].columns[numcolumn].control.formlyValidation = angular.copy(extractedProps.formlyValidation);
  2336. //////////////////////////////////////////
  2337. // add additionnal particular properties
  2338. //////////////////////////////////////////
  2339. //-> datepicker : datepickerOptions
  2340. if (configurationObj.lines[indexLine].columns[numcolumn].control.type === 'datepicker') {
  2341. configurationObj.lines[indexLine].columns[numcolumn].control.templateOptions.datepickerOptions = angular.copy(extractedProps.datepickerOptions);
  2342. }
  2343. /**
  2344. * unique key (set only first time) in this model is formly control type + Date.now();
  2345. */
  2346. var newKey = configurationObj.lines[indexLine].columns[numcolumn].control.type + '-' + Date.now();
  2347. if (validKeyUniqueness(newKey, configurationObj) === true) {
  2348. configurationObj.lines[indexLine].columns[numcolumn].control.key = newKey;
  2349. } else {
  2350. /**
  2351. * 2nd attempt
  2352. */
  2353. newKey = configurationObj.lines[indexLine].columns[numcolumn].control.type + '-' + Date.now();
  2354. if (validKeyUniqueness(newKey, configurationObj) === true) {
  2355. configurationObj.lines[indexLine].columns[numcolumn].control.key = newKey;
  2356. } else {
  2357. /**
  2358. * 3rd attempt
  2359. */
  2360. newKey = configurationObj.lines[indexLine].columns[numcolumn].control.type + '-' + Date.now();
  2361. }
  2362. }
  2363. configurationObj.lines[indexLine].columns[numcolumn].control.edited = true;
  2364. }
  2365. }, {
  2366. key: 'applyConfigToSelectedControl',
  2367. value: function applyConfigToSelectedControl(nyaSelectObj) {
  2368. /**
  2369. * used in modal (edit control)
  2370. */
  2371. for (var i = nyaSelectObj.controls.length - 1; i >= 0; i--) {
  2372. if (nyaSelectObj.controls[i].id === nyaSelectObj.selectedControl) {
  2373. nyaSelectObj.controls[i].formlyLabel = nyaSelectObj.temporyConfig.formlyLabel;
  2374. nyaSelectObj.controls[i].formlyRequired = nyaSelectObj.temporyConfig.formlyRequired;
  2375. nyaSelectObj.controls[i].formlyDesciption = nyaSelectObj.temporyConfig.formlyDesciption;
  2376. nyaSelectObj.controls[i].formlyPlaceholder = nyaSelectObj.temporyConfig.formlyPlaceholder;
  2377. nyaSelectObj.controls[i].formlyOptions = nyaSelectObj.temporyConfig.formlyOptions;
  2378. if (nyaSelectObj.controls[i].id === 'Date') {
  2379. nyaSelectObj.controls[i].datepickerOptions = angular.copy(nyaSelectObj.temporyConfig.datepickerOptions);
  2380. }
  2381. }
  2382. }
  2383. }
  2384. }, {
  2385. key: 'resetTemporyConfig',
  2386. value: function resetTemporyConfig() {
  2387. return getResetConfig();
  2388. }
  2389. /**
  2390. * loading forms will not be able to retrieve formlyExpressionProperties
  2391. * -> here does the job
  2392. */
  2393. }, {
  2394. key: 'refreshControlFormlyExpressionProperties',
  2395. value: function refreshControlFormlyExpressionProperties(configurationModel) {
  2396. var _this = this;
  2397. if (angular.isObject(configurationModel)) {
  2398. //iterates lines
  2399. angular.forEach(configurationModel.lines, function (line, indexLine) {
  2400. angular.forEach(line.columns, function (column, controlIndex) {
  2401. var _controlsDefinition = _this.getControlsDefinition();
  2402. angular.forEach(_controlsDefinition.controls, function (aControl, aControlIndex) {
  2403. if (column.control.type === aControl.formlyType && column.control.subtype === aControl.formlySubtype) {
  2404. //----> update control formlyExpressionProperties property
  2405. column.control.formlyExpressionProperties = aControl.formlyExpressionProperties;
  2406. }
  2407. });
  2408. });
  2409. });
  2410. }
  2411. }
  2412. /**
  2413. * loading forms will not be able to retrieve formlyValidators
  2414. * -> here does the job
  2415. */
  2416. }, {
  2417. key: 'refreshControlFormlyValidators',
  2418. value: function refreshControlFormlyValidators(configurationModel) {
  2419. var _this2 = this;
  2420. if (angular.isObject(configurationModel)) {
  2421. //iterates lines
  2422. angular.forEach(configurationModel.lines, function (line, indexLine) {
  2423. angular.forEach(line.columns, function (column, controlIndex) {
  2424. var _controlsDefinition = _this2.getControlsDefinition();
  2425. angular.forEach(_controlsDefinition.controls, function (aControl, aControlIndex) {
  2426. if (column.control.type === aControl.formlyType && column.control.subtype === aControl.formlySubtype) {
  2427. //----> update control formlyValidators property
  2428. column.control.formlyValidators = aControl.formlyValidators;
  2429. }
  2430. });
  2431. });
  2432. });
  2433. }
  2434. }
  2435. /**
  2436. * loading forms will not be able to retrieve formlyValidation
  2437. * -> here does the job
  2438. */
  2439. }, {
  2440. key: 'refreshControlFormlyValidation',
  2441. value: function refreshControlFormlyValidation(configurationModel) {
  2442. var _this3 = this;
  2443. if (angular.isObject(configurationModel)) {
  2444. //iterates lines
  2445. angular.forEach(configurationModel.lines, function (line, indexLine) {
  2446. angular.forEach(line.columns, function (column, controlIndex) {
  2447. var _controlsDefinition = _this3.getControlsDefinition();
  2448. angular.forEach(_controlsDefinition.controls, function (aControl, aControlIndex) {
  2449. if (column.control.type === aControl.formlyType && column.control.subtype === aControl.formlySubtype) {
  2450. //----> update control formlyValidation property
  2451. column.control.formlyValidation = aControl.formlyValidation;
  2452. }
  2453. });
  2454. });
  2455. });
  2456. }
  2457. }
  2458. }, {
  2459. key: 'filterDisabledControl',
  2460. value: function filterDisabledControl(nyaSelectObj) {
  2461. var listAllEnabledControl = this.easyFormSteWayConfig.getListEnabledControl();
  2462. var filteredNyaList = [];
  2463. angular.forEach(listAllEnabledControl, function (enabledControl) {
  2464. angular.forEach(nyaSelectObj.controls, function (nyaControl) {
  2465. if (nyaControl.id === enabledControl.name && enabledControl.enabled === true) {
  2466. filteredNyaList = filteredNyaList.concat(nyaControl);
  2467. }
  2468. });
  2469. });
  2470. return filteredNyaList;
  2471. }
  2472. }, {
  2473. key: 'getFilteredNyaSelectObject',
  2474. value: function getFilteredNyaSelectObject() {
  2475. var newNyaSelectObj = {};
  2476. resetNyaSelect(newNyaSelectObj);
  2477. return angular.copy(this.filterDisabledControl(angular.copy(newNyaSelectObj)));
  2478. //return angular.copy(angular.copy(newNyaSelectObj));
  2479. }
  2480. }]);
  2481. return $modalProxy;
  2482. })();
  2483. $modalProxy.$inject = ['easyFormSteWayConfig'];
  2484. _export('default', $modalProxy);
  2485. _export('CONTROLLER_MODAL_PROXY_SERVICE', CONTROLLER_MODAL_PROXY_SERVICE);
  2486. }
  2487. };
  2488. });
  2489. $__System.register('1d', ['1c'], function (_export) {
  2490. /* global angular */
  2491. 'use strict';
  2492. var $modalProxy, CONTROLLER_MODAL_PROXY_SERVICE, MODAL_PROXY_MODULE_NAME;
  2493. return {
  2494. setters: [function (_c) {
  2495. $modalProxy = _c['default'];
  2496. CONTROLLER_MODAL_PROXY_SERVICE = _c.CONTROLLER_MODAL_PROXY_SERVICE;
  2497. }],
  2498. execute: function () {
  2499. MODAL_PROXY_MODULE_NAME = 'modalProxyModule';
  2500. _export('default', angular.module(MODAL_PROXY_MODULE_NAME, []).service(CONTROLLER_MODAL_PROXY_SERVICE, $modalProxy));
  2501. }
  2502. };
  2503. });
  2504. $__System.register('1e', [], function (_export) {
  2505. /* global angular */
  2506. 'use strict';
  2507. var configurationModelInit, configurationModelResult, isTemplateOptionDefined, extractTemplateOptionLabel, extractTemplateOptionDatepickerOptions, extractFormlyExpressionProperties, extractFormlyValidators, extractFormlyValidation, extractTemplateOptionRequired, extractTemplateOptionOptions, extractTemplateOptionType, extractTemplateOptionPlaceholder, extractTemplateOptionDescription, addDatepickerOptionsProperty, addOneColumnHeader, addOneColumnControl, addTwoColumnControl, addThreeColumnControl, resetDataModel, resetFormlyModel;
  2508. return {
  2509. setters: [],
  2510. execute: function () {
  2511. configurationModelInit = {
  2512. activeLine: 1,
  2513. listConfigStep: ['init', 'first', 'second', 'third'],
  2514. stepIndicators: [true, false, false, false],
  2515. configStepCounter: 0,
  2516. submitButtonText: 'submit',
  2517. cancelButtonText: 'cancel',
  2518. lines: [{
  2519. line: 1,
  2520. activeColumn: 1,
  2521. columns: [{
  2522. numColumn: 1,
  2523. exist: true,
  2524. control: {
  2525. type: 'none',
  2526. key: 'none' // ,
  2527. // templateOptions: {
  2528. // label: 'none',
  2529. // placeholder: 'none',
  2530. // required: false,
  2531. // description: 'Descriptive text'
  2532. // }
  2533. }
  2534. }]
  2535. }]
  2536. };
  2537. configurationModelResult = {
  2538. activeLine: 1,
  2539. listConfigStep: ['init', 'first', 'second', 'third'],
  2540. stepIndicators: [true, false, false, false],
  2541. configStepCounter: 0,
  2542. submitButtonText: 'submit',
  2543. cancelButtonText: 'cancel',
  2544. lines: []
  2545. };
  2546. isTemplateOptionDefined = function isTemplateOptionDefined(obj) {
  2547. return typeof obj.templateOptions !== 'undefined' ? true : false;
  2548. };
  2549. extractTemplateOptionLabel = function extractTemplateOptionLabel(obj) {
  2550. return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.label !== 'undefined' ? obj.templateOptions.label : '' : '';
  2551. };
  2552. extractTemplateOptionDatepickerOptions = function extractTemplateOptionDatepickerOptions(obj) {
  2553. return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.datepickerOptions !== 'undefined' ? angular.copy(obj.templateOptions.datepickerOptions) : { format: '' } : { format: '' };
  2554. };
  2555. extractFormlyExpressionProperties = function extractFormlyExpressionProperties(obj) {
  2556. return typeof obj.formlyExpressionProperties !== 'undefined' ? angular.copy(obj.formlyExpressionProperties) : {};
  2557. };
  2558. extractFormlyValidators = function extractFormlyValidators(obj) {
  2559. return typeof obj.formlyValidators !== 'undefined' ? angular.copy(obj.formlyValidators) : {};
  2560. };
  2561. extractFormlyValidation = function extractFormlyValidation(obj) {
  2562. return typeof obj.formlyValidation !== 'undefined' ? angular.copy(obj.formlyValidation) : {};
  2563. };
  2564. extractTemplateOptionRequired = function extractTemplateOptionRequired(obj) {
  2565. return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.required !== 'undefined' ? obj.templateOptions.required : '' : '';
  2566. };
  2567. extractTemplateOptionOptions = function extractTemplateOptionOptions(obj) {
  2568. return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.options !== 'undefined' ? obj.templateOptions.options : '' : '';
  2569. };
  2570. extractTemplateOptionType = function extractTemplateOptionType(obj) {
  2571. return typeof obj.subtype !== 'undefined' ? obj.subtype : '';
  2572. };
  2573. extractTemplateOptionPlaceholder = function extractTemplateOptionPlaceholder(obj) {
  2574. return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.placeholder !== 'undefined' ? obj.templateOptions.placeholder : '' : '';
  2575. };
  2576. extractTemplateOptionDescription = function extractTemplateOptionDescription(obj) {
  2577. return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.description !== 'undefined' ? obj.templateOptions.description : '' : '';
  2578. };
  2579. addDatepickerOptionsProperty = function addDatepickerOptionsProperty(fieldToPush, configurationModel, lineIndex) {
  2580. fieldToPush.templateOptions.datepickerOptions = extractTemplateOptionDatepickerOptions(configurationModel.lines[lineIndex].columns[0].control);
  2581. };
  2582. addOneColumnHeader = function addOneColumnHeader(formlyModel, configurationModel, lineIndex) {
  2583. var headerTemplateCol0 = '<div class="row"><div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><h2 class="text-center">' + extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[0].control) + '<h2></div></div><hr/>';
  2584. formlyModel.push({
  2585. template: typeof configurationModel.lines[lineIndex].columns[0].control.type !== 'undefined' ? configurationModel.lines[lineIndex].columns[0].control.type === 'header' ? headerTemplateCol0 : '<div></div>' : '<div></div>'
  2586. });
  2587. };
  2588. addOneColumnControl = function addOneColumnControl(formlyModel, configurationModel, lineIndex) {
  2589. var fieldToPush = {
  2590. className: 'col-xs-12',
  2591. type: typeof configurationModel.lines[lineIndex].columns[0].control.type !== 'undefined' ? configurationModel.lines[lineIndex].columns[0].control.type === 'none' ? 'blank' : configurationModel.lines[lineIndex].columns[0].control.type : 'blank',
  2592. key: typeof configurationModel.lines[lineIndex].columns[0].control.key !== 'undefined' ? configurationModel.lines[lineIndex].columns[0].control.key : 'blank' + Date.now(),
  2593. templateOptions: {
  2594. type: extractTemplateOptionType(configurationModel.lines[lineIndex].columns[0].control),
  2595. label: extractTemplateOptionLabel(configurationModel.lines[lineIndex].columns[0].control),
  2596. required: extractTemplateOptionRequired(configurationModel.lines[lineIndex].columns[0].control),
  2597. placeholder: extractTemplateOptionPlaceholder(configurationModel.lines[lineIndex].columns[0].control),
  2598. description: extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[0].control),
  2599. options: extractTemplateOptionOptions(configurationModel.lines[lineIndex].columns[0].control)
  2600. },
  2601. expressionProperties: extractFormlyExpressionProperties(configurationModel.lines[lineIndex].columns[0].control),
  2602. validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[0].control),
  2603. validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[0].control)
  2604. };
  2605. //////////////////////////////////////////////
  2606. //datepicker additionnal particular property
  2607. //////////////////////////////////////////////
  2608. if (configurationModel.lines[lineIndex].columns[0].control.type === 'datepicker') {
  2609. addDatepickerOptionsProperty(fieldToPush, configurationModel, lineIndex);
  2610. }
  2611. formlyModel.push(fieldToPush);
  2612. };
  2613. addTwoColumnControl = function addTwoColumnControl(formlyModel, configurationModel, lineIndex) {
  2614. //text header is stored in "description" in templateOtion model
  2615. var headerTemplateCol0 = {
  2616. className: 'col-xs-6',
  2617. template: '<div class="row"><div class=""><h2 class="text-center">' + extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[0].control) + '<h2><hr/></div></div>'
  2618. };
  2619. var headerTemplateCol1 = {
  2620. className: 'col-xs-6',
  2621. template: '<div class="row"><div class=""><h2 class="text-center">' + extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[1].control) + '<h2><hr/></div></div>'
  2622. };
  2623. var controlCol0 = {
  2624. className: 'col-xs-6',
  2625. type: typeof configurationModel.lines[lineIndex].columns[0].control.type !== 'undefined' ? configurationModel.lines[lineIndex].columns[0].control.type === 'none' ? 'blank' : configurationModel.lines[lineIndex].columns[0].control.type : 'blank',
  2626. key: typeof configurationModel.lines[lineIndex].columns[0].control.key !== 'undefined' ? configurationModel.lines[lineIndex].columns[0].control.key : 'blank' + Date.now(),
  2627. templateOptions: {
  2628. type: extractTemplateOptionType(configurationModel.lines[lineIndex].columns[0].control),
  2629. label: extractTemplateOptionLabel(configurationModel.lines[lineIndex].columns[0].control),
  2630. required: extractTemplateOptionRequired(configurationModel.lines[lineIndex].columns[0].control),
  2631. placeholder: extractTemplateOptionPlaceholder(configurationModel.lines[lineIndex].columns[0].control),
  2632. description: extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[0].control),
  2633. options: extractTemplateOptionOptions(configurationModel.lines[lineIndex].columns[0].control)
  2634. },
  2635. expressionProperties: extractFormlyExpressionProperties(configurationModel.lines[lineIndex].columns[0].control),
  2636. validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[0].control),
  2637. validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[0].control)
  2638. };
  2639. //////////////////////////////////////////////
  2640. //datepicker additionnal particular property
  2641. //////////////////////////////////////////////
  2642. if (configurationModel.lines[lineIndex].columns[0].control.type === 'datepicker') {
  2643. addDatepickerOptionsProperty(controlCol0, configurationModel, lineIndex);
  2644. }
  2645. var controlCol1 = {
  2646. className: 'col-xs-6',
  2647. type: typeof configurationModel.lines[lineIndex].columns[1].control.type !== 'undefined' ? configurationModel.lines[lineIndex].columns[1].control.type === 'none' ? 'blank' : configurationModel.lines[lineIndex].columns[1].control.type : 'blank',
  2648. key: typeof configurationModel.lines[lineIndex].columns[1].control.key !== 'undefined' ? configurationModel.lines[lineIndex].columns[1].control.key : 'blank' + Date.now(),
  2649. templateOptions: {
  2650. type: extractTemplateOptionType(configurationModel.lines[lineIndex].columns[1].control),
  2651. label: extractTemplateOptionLabel(configurationModel.lines[lineIndex].columns[1].control),
  2652. required: extractTemplateOptionRequired(configurationModel.lines[lineIndex].columns[1].control),
  2653. placeholder: extractTemplateOptionPlaceholder(configurationModel.lines[lineIndex].columns[1].control),
  2654. description: extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[1].control),
  2655. options: extractTemplateOptionOptions(configurationModel.lines[lineIndex].columns[1].control)
  2656. },
  2657. expressionProperties: extractFormlyExpressionProperties(configurationModel.lines[lineIndex].columns[1].control),
  2658. validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[1].control),
  2659. validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[1].control)
  2660. };
  2661. //////////////////////////////////////////////
  2662. //datepicker additionnal particular property
  2663. //////////////////////////////////////////////
  2664. if (configurationModel.lines[lineIndex].columns[1].control.type === 'datepicker') {
  2665. addDatepickerOptionsProperty(controlCol1, configurationModel, lineIndex);
  2666. }
  2667. var FieldGroup = [];
  2668. if (configurationModel.lines[lineIndex].columns[0].control.type === 'header') {
  2669. FieldGroup.push(headerTemplateCol0);
  2670. } else {
  2671. FieldGroup.push(controlCol0);
  2672. }
  2673. if (configurationModel.lines[lineIndex].columns[1].control.type === 'header') {
  2674. FieldGroup.push(headerTemplateCol1);
  2675. } else {
  2676. FieldGroup.push(controlCol1);
  2677. }
  2678. formlyModel.push({
  2679. className: 'row',
  2680. fieldGroup: FieldGroup
  2681. });
  2682. };
  2683. addThreeColumnControl = function addThreeColumnControl(formlyModel, configurationModel, lineIndex) {
  2684. //text header is stored in "description" in templateOtion model
  2685. var headerTemplateCol0 = {
  2686. className: 'col-xs-4',
  2687. template: '<div class="row"><div class=""><h2 class="text-center">' + extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[0].control) + '<h2><hr/></div></div>'
  2688. };
  2689. var headerTemplateCol1 = {
  2690. className: 'col-xs-4',
  2691. template: '<div class="row"><div class=""><h2 class="text-center">' + extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[1].control) + '<h2><hr/></div></div>'
  2692. };
  2693. var headerTemplateCol2 = {
  2694. className: 'col-xs-4',
  2695. template: '<div class="row"><div class=""><h2 class="text-center">' + extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[2].control) + '<h2><hr/></div></div>'
  2696. };
  2697. var controlCol0 = {
  2698. className: 'col-xs-4',
  2699. type: typeof configurationModel.lines[lineIndex].columns[0].control.type !== 'undefined' ? configurationModel.lines[lineIndex].columns[0].control.type === 'none' ? 'blank' : configurationModel.lines[lineIndex].columns[0].control.type : 'blank',
  2700. key: typeof configurationModel.lines[lineIndex].columns[0].control.key !== 'undefined' ? configurationModel.lines[lineIndex].columns[0].control.key : 'blank' + Date.now(),
  2701. templateOptions: {
  2702. type: extractTemplateOptionType(configurationModel.lines[lineIndex].columns[0].control),
  2703. label: extractTemplateOptionLabel(configurationModel.lines[lineIndex].columns[0].control),
  2704. required: extractTemplateOptionRequired(configurationModel.lines[lineIndex].columns[0].control),
  2705. placeholder: extractTemplateOptionPlaceholder(configurationModel.lines[lineIndex].columns[0].control),
  2706. description: extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[0].control),
  2707. options: extractTemplateOptionOptions(configurationModel.lines[lineIndex].columns[0].control)
  2708. },
  2709. expressionProperties: extractFormlyExpressionProperties(configurationModel.lines[lineIndex].columns[0].control),
  2710. validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[0].control),
  2711. validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[0].control)
  2712. };
  2713. //////////////////////////////////////////////
  2714. //datepicker additionnal particular property
  2715. //////////////////////////////////////////////
  2716. if (configurationModel.lines[lineIndex].columns[0].control.type === 'datepicker') {
  2717. addDatepickerOptionsProperty(controlCol0, configurationModel, lineIndex);
  2718. }
  2719. var controlCol1 = {
  2720. className: 'col-xs-4',
  2721. type: typeof configurationModel.lines[lineIndex].columns[1].control.type !== 'undefined' ? configurationModel.lines[lineIndex].columns[1].control.type === 'none' ? 'blank' : configurationModel.lines[lineIndex].columns[1].control.type : 'blank',
  2722. key: typeof configurationModel.lines[lineIndex].columns[1].control.key !== 'undefined' ? configurationModel.lines[lineIndex].columns[1].control.key : 'blank' + Date.now(),
  2723. templateOptions: {
  2724. type: extractTemplateOptionType(configurationModel.lines[lineIndex].columns[1].control),
  2725. label: extractTemplateOptionLabel(configurationModel.lines[lineIndex].columns[1].control),
  2726. required: extractTemplateOptionRequired(configurationModel.lines[lineIndex].columns[1].control),
  2727. placeholder: extractTemplateOptionPlaceholder(configurationModel.lines[lineIndex].columns[1].control),
  2728. description: extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[1].control),
  2729. options: extractTemplateOptionOptions(configurationModel.lines[lineIndex].columns[1].control)
  2730. },
  2731. expressionProperties: extractFormlyExpressionProperties(configurationModel.lines[lineIndex].columns[1].control),
  2732. validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[1].control),
  2733. validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[1].control)
  2734. };
  2735. //////////////////////////////////////////////
  2736. //datepicker additionnal particular property
  2737. //////////////////////////////////////////////
  2738. if (configurationModel.lines[lineIndex].columns[1].control.type === 'datepicker') {
  2739. addDatepickerOptionsProperty(controlCol1, configurationModel, lineIndex);
  2740. }
  2741. var controlCol2 = {
  2742. className: 'col-xs-4',
  2743. type: typeof configurationModel.lines[lineIndex].columns[2].control.type !== 'undefined' ? configurationModel.lines[lineIndex].columns[2].control.type === 'none' ? 'blank' : configurationModel.lines[lineIndex].columns[2].control.type : 'blank',
  2744. key: typeof configurationModel.lines[lineIndex].columns[2].control.key !== 'undefined' ? configurationModel.lines[lineIndex].columns[2].control.key : 'blank' + Date.now(),
  2745. templateOptions: {
  2746. type: extractTemplateOptionType(configurationModel.lines[lineIndex].columns[2].control),
  2747. label: extractTemplateOptionLabel(configurationModel.lines[lineIndex].columns[2].control),
  2748. required: extractTemplateOptionRequired(configurationModel.lines[lineIndex].columns[2].control),
  2749. placeholder: extractTemplateOptionPlaceholder(configurationModel.lines[lineIndex].columns[2].control),
  2750. description: extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[2].control),
  2751. options: extractTemplateOptionOptions(configurationModel.lines[lineIndex].columns[2].control)
  2752. },
  2753. expressionProperties: extractFormlyExpressionProperties(configurationModel.lines[lineIndex].columns[2].control),
  2754. validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[2].control),
  2755. validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[2].control)
  2756. };
  2757. //////////////////////////////////////////////
  2758. //datepicker additionnal particular property
  2759. //////////////////////////////////////////////
  2760. if (configurationModel.lines[lineIndex].columns[2].control.type === 'datepicker') {
  2761. addDatepickerOptionsProperty(controlCol2, configurationModel, lineIndex);
  2762. }
  2763. var FieldGroup = [];
  2764. if (configurationModel.lines[lineIndex].columns[0].control.type === 'header') {
  2765. FieldGroup.push(headerTemplateCol0);
  2766. } else {
  2767. FieldGroup.push(controlCol0);
  2768. }
  2769. if (configurationModel.lines[lineIndex].columns[1].control.type === 'header') {
  2770. FieldGroup.push(headerTemplateCol1);
  2771. } else {
  2772. FieldGroup.push(controlCol1);
  2773. }
  2774. if (configurationModel.lines[lineIndex].columns[2].control.type === 'header') {
  2775. FieldGroup.push(headerTemplateCol2);
  2776. } else {
  2777. FieldGroup.push(controlCol2);
  2778. }
  2779. formlyModel.push({
  2780. className: 'row',
  2781. fieldGroup: FieldGroup
  2782. });
  2783. };
  2784. resetDataModel = function resetDataModel(obj) {
  2785. var emptyDataModel = {};
  2786. angular.copy(emptyDataModel, obj);
  2787. return true;
  2788. };
  2789. resetFormlyModel = function resetFormlyModel(formlyModel) {
  2790. var resetformly = [];
  2791. angular.copy(resetformly, formlyModel);
  2792. };
  2793. _export('configurationModelInit', configurationModelInit);
  2794. _export('configurationModelResult', configurationModelResult);
  2795. _export('resetDataModel', resetDataModel);
  2796. _export('resetFormlyModel', resetFormlyModel);
  2797. _export('isTemplateOptionDefined', isTemplateOptionDefined);
  2798. _export('extractTemplateOptionLabel', extractTemplateOptionLabel);
  2799. _export('extractTemplateOptionDatepickerOptions', extractTemplateOptionDatepickerOptions);
  2800. _export('extractFormlyExpressionProperties', extractFormlyExpressionProperties);
  2801. _export('extractFormlyValidators', extractFormlyValidators);
  2802. _export('extractFormlyValidation', extractFormlyValidation);
  2803. _export('extractTemplateOptionRequired', extractTemplateOptionRequired);
  2804. _export('extractTemplateOptionOptions', extractTemplateOptionOptions);
  2805. _export('extractTemplateOptionType', extractTemplateOptionType);
  2806. _export('extractTemplateOptionPlaceholder', extractTemplateOptionPlaceholder);
  2807. _export('extractTemplateOptionDescription', extractTemplateOptionDescription);
  2808. _export('addDatepickerOptionsProperty', addDatepickerOptionsProperty);
  2809. _export('addOneColumnHeader', addOneColumnHeader);
  2810. _export('addOneColumnControl', addOneColumnControl);
  2811. _export('addTwoColumnControl', addTwoColumnControl);
  2812. _export('addThreeColumnControl', addThreeColumnControl);
  2813. }
  2814. };
  2815. });
  2816. $__System.register('1f', ['15', '16', '1e'], function (_export) {
  2817. var _createClass, _classCallCheck, configurationModelInit, configurationModelResult, resetDataModel, resetFormlyModel, addOneColumnHeader, addOneColumnControl, addTwoColumnControl, addThreeColumnControl, FORMLY_PROXY_SERVICE, $formlyProxy;
  2818. return {
  2819. setters: [function (_) {
  2820. _createClass = _['default'];
  2821. }, function (_2) {
  2822. _classCallCheck = _2['default'];
  2823. }, function (_e) {
  2824. configurationModelInit = _e.configurationModelInit;
  2825. configurationModelResult = _e.configurationModelResult;
  2826. resetDataModel = _e.resetDataModel;
  2827. resetFormlyModel = _e.resetFormlyModel;
  2828. addOneColumnHeader = _e.addOneColumnHeader;
  2829. addOneColumnControl = _e.addOneColumnControl;
  2830. addTwoColumnControl = _e.addTwoColumnControl;
  2831. addThreeColumnControl = _e.addThreeColumnControl;
  2832. }],
  2833. execute: function () {
  2834. /* global angular */
  2835. 'use strict';
  2836. FORMLY_PROXY_SERVICE = '$formlyProxy';
  2837. $formlyProxy = (function () {
  2838. function $formlyProxy() {
  2839. _classCallCheck(this, $formlyProxy);
  2840. this.init();
  2841. }
  2842. _createClass($formlyProxy, [{
  2843. key: 'init',
  2844. value: function init() {}
  2845. }, {
  2846. key: 'initConfigurationEditFromScratch',
  2847. value: function initConfigurationEditFromScratch(configurationModel) {
  2848. angular.copy(configurationModelInit, configurationModel);
  2849. }
  2850. }, {
  2851. key: 'bindConfigurationLines',
  2852. value: function bindConfigurationLines(configurationModel, lines) {
  2853. if (angular.isArray(lines)) {
  2854. var configModelResult = configurationModelResult;
  2855. configModelResult.lines = [].concat(lines);
  2856. angular.copy(configModelResult, configurationModel);
  2857. return this.getMessageObject('configuration model is bound', 'lines are bound to configuration model.');
  2858. } else {
  2859. return this.getErrorObject('lines is not an array', 'Checks lines type, it is not an array.');
  2860. }
  2861. }
  2862. }, {
  2863. key: 'applyConfigurationToformlyModel',
  2864. value: function applyConfigurationToformlyModel(configurationModel, formlyModel, formlyDataModel) {
  2865. resetFormlyModel(formlyModel);
  2866. resetDataModel(formlyDataModel);
  2867. /**
  2868. * manage header here line0
  2869. */
  2870. var lineNumber = configurationModel.lines.length;
  2871. for (var i = 0; i < lineNumber; i++) {
  2872. //1 column line control
  2873. if (configurationModel.lines[i].columns.length === 1) {
  2874. //test if template control = header
  2875. if (configurationModel.lines[i].columns[0].control.type === 'header') {
  2876. addOneColumnHeader(formlyModel, configurationModel, i);
  2877. } else {
  2878. addOneColumnControl(formlyModel, configurationModel, i);
  2879. }
  2880. }
  2881. if (configurationModel.lines[i].columns.length === 2) {
  2882. addTwoColumnControl(formlyModel, configurationModel, i);
  2883. }
  2884. if (configurationModel.lines[i].columns.length === 3) {
  2885. addThreeColumnControl(formlyModel, configurationModel, i);
  2886. }
  2887. }
  2888. }
  2889. }, {
  2890. key: 'getMessageObject',
  2891. value: function getMessageObject(messageTitle, messageBody) {
  2892. var messageObj = {
  2893. noError: true,
  2894. title: messageTitle,
  2895. Message: messageBody
  2896. };
  2897. return messageObj;
  2898. }
  2899. }]);
  2900. return $formlyProxy;
  2901. })();
  2902. $formlyProxy.$inject = [];
  2903. _export('default', $formlyProxy);
  2904. _export('FORMLY_PROXY_SERVICE', FORMLY_PROXY_SERVICE);
  2905. }
  2906. };
  2907. });
  2908. $__System.register('20', ['1f'], function (_export) {
  2909. /* global angular */
  2910. 'use strict';
  2911. var $formlyProxy, FORMLY_PROXY_SERVICE, FORMLY_PROXY_MODULE_NAME;
  2912. return {
  2913. setters: [function (_f) {
  2914. $formlyProxy = _f['default'];
  2915. FORMLY_PROXY_SERVICE = _f.FORMLY_PROXY_SERVICE;
  2916. }],
  2917. execute: function () {
  2918. FORMLY_PROXY_MODULE_NAME = 'formlyProxyModule';
  2919. _export('default', angular.module(FORMLY_PROXY_MODULE_NAME, []).service(FORMLY_PROXY_SERVICE, $formlyProxy));
  2920. }
  2921. };
  2922. });
  2923. $__System.registerDynamic("21", [], true, function($__require, exports, module) {
  2924. ;
  2925. var global = this,
  2926. __define = global.define;
  2927. global.define = undefined;
  2928. var $Object = Object;
  2929. module.exports = {
  2930. create: $Object.create,
  2931. getProto: $Object.getPrototypeOf,
  2932. isEnum: {}.propertyIsEnumerable,
  2933. getDesc: $Object.getOwnPropertyDescriptor,
  2934. setDesc: $Object.defineProperty,
  2935. setDescs: $Object.defineProperties,
  2936. getKeys: $Object.keys,
  2937. getNames: $Object.getOwnPropertyNames,
  2938. getSymbols: $Object.getOwnPropertySymbols,
  2939. each: [].forEach
  2940. };
  2941. global.define = __define;
  2942. return module.exports;
  2943. });
  2944. $__System.registerDynamic("22", ["21"], true, function($__require, exports, module) {
  2945. ;
  2946. var global = this,
  2947. __define = global.define;
  2948. global.define = undefined;
  2949. var $ = $__require('21');
  2950. module.exports = function defineProperty(it, key, desc) {
  2951. return $.setDesc(it, key, desc);
  2952. };
  2953. global.define = __define;
  2954. return module.exports;
  2955. });
  2956. $__System.registerDynamic("23", ["22"], true, function($__require, exports, module) {
  2957. ;
  2958. var global = this,
  2959. __define = global.define;
  2960. global.define = undefined;
  2961. module.exports = {
  2962. "default": $__require('22'),
  2963. __esModule: true
  2964. };
  2965. global.define = __define;
  2966. return module.exports;
  2967. });
  2968. $__System.registerDynamic("15", ["23"], true, function($__require, exports, module) {
  2969. "use strict";
  2970. ;
  2971. var global = this,
  2972. __define = global.define;
  2973. global.define = undefined;
  2974. var _Object$defineProperty = $__require('23')["default"];
  2975. exports["default"] = (function() {
  2976. function defineProperties(target, props) {
  2977. for (var i = 0; i < props.length; i++) {
  2978. var descriptor = props[i];
  2979. descriptor.enumerable = descriptor.enumerable || false;
  2980. descriptor.configurable = true;
  2981. if ("value" in descriptor)
  2982. descriptor.writable = true;
  2983. _Object$defineProperty(target, descriptor.key, descriptor);
  2984. }
  2985. }
  2986. return function(Constructor, protoProps, staticProps) {
  2987. if (protoProps)
  2988. defineProperties(Constructor.prototype, protoProps);
  2989. if (staticProps)
  2990. defineProperties(Constructor, staticProps);
  2991. return Constructor;
  2992. };
  2993. })();
  2994. exports.__esModule = true;
  2995. global.define = __define;
  2996. return module.exports;
  2997. });
  2998. $__System.registerDynamic("16", [], true, function($__require, exports, module) {
  2999. "use strict";
  3000. ;
  3001. var global = this,
  3002. __define = global.define;
  3003. global.define = undefined;
  3004. exports["default"] = function(instance, Constructor) {
  3005. if (!(instance instanceof Constructor)) {
  3006. throw new TypeError("Cannot call a class as a function");
  3007. }
  3008. };
  3009. exports.__esModule = true;
  3010. global.define = __define;
  3011. return module.exports;
  3012. });
  3013. $__System.register('24', ['15', '16'], function (_export) {
  3014. var _createClass, _classCallCheck, SELECT_OPTION_MANAGE_NAME, selectOptionManage;
  3015. return {
  3016. setters: [function (_) {
  3017. _createClass = _['default'];
  3018. }, function (_2) {
  3019. _classCallCheck = _2['default'];
  3020. }],
  3021. execute: function () {
  3022. /* global angular */
  3023. 'use strict';
  3024. SELECT_OPTION_MANAGE_NAME = 'selectOptionManage';
  3025. selectOptionManage = (function () {
  3026. function selectOptionManage() {
  3027. _classCallCheck(this, selectOptionManage);
  3028. }
  3029. _createClass(selectOptionManage, [{
  3030. key: 'initModel',
  3031. value: function initModel(selectObj) {
  3032. this.resetModel(selectObj);
  3033. }
  3034. }, {
  3035. key: 'resetModel',
  3036. value: function resetModel(selectObj) {
  3037. var zeroModel = { rows: [] };
  3038. angular.copy(zeroModel, selectObj);
  3039. }
  3040. }, {
  3041. key: 'isOptionUnique',
  3042. value: function isOptionUnique(selectObj, textValue) {
  3043. for (var i = selectObj.rows.length - 1; i >= 0; i--) {
  3044. if (selectObj.rows[i].option === textValue) return false;
  3045. }
  3046. return true;
  3047. }
  3048. }, {
  3049. key: 'isOptionValidFormat',
  3050. value: function isOptionValidFormat(textValue) {
  3051. if (textValue !== '') return true;
  3052. return false;
  3053. }
  3054. }, {
  3055. key: 'addNewOptionRadio',
  3056. value: function addNewOptionRadio(selectObj, newOptionText) {
  3057. var fullResponse = {
  3058. resultFlag: false,
  3059. details: ''
  3060. };
  3061. var checkResult = this.validOption(selectObj, newOptionText);
  3062. if (checkResult.resultFlag === true) {
  3063. var newOption = {
  3064. option: newOptionText,
  3065. order: selectObj.rows.length
  3066. };
  3067. selectObj.rows.push(newOption);
  3068. fullResponse.resultFlag = true;
  3069. fullResponse.details = '';
  3070. return fullResponse;
  3071. } else {
  3072. angular.copy(checkResult, fullResponse);
  3073. return fullResponse;
  3074. }
  3075. }
  3076. }, {
  3077. key: 'addNewOptionBasicSelect',
  3078. value: function addNewOptionBasicSelect(selectObj, newOptionText) {
  3079. var fullResponse = {
  3080. resultFlag: false,
  3081. details: ''
  3082. };
  3083. var checkResult = this.validOption(selectObj, newOptionText);
  3084. if (checkResult.resultFlag === true) {
  3085. var newOption = {
  3086. option: newOptionText,
  3087. order: selectObj.rows.length
  3088. };
  3089. selectObj.rows.push(newOption);
  3090. fullResponse.resultFlag = true;
  3091. fullResponse.details = '';
  3092. return fullResponse;
  3093. } else {
  3094. angular.copy(checkResult, fullResponse);
  3095. return fullResponse;
  3096. }
  3097. }
  3098. }, {
  3099. key: 'addNewOptionGroupedSelect',
  3100. value: function addNewOptionGroupedSelect(selectObj, newOptionText, newOptionGroup) {
  3101. var fullResponse = {
  3102. resultFlag: false,
  3103. details: ''
  3104. };
  3105. var checkResult = this.validOption(selectObj, newOptionText);
  3106. if (checkResult.resultFlag === true) {
  3107. var newOption = {
  3108. option: newOptionText,
  3109. group: newOptionGroup,
  3110. order: selectObj.rows.length
  3111. };
  3112. selectObj.rows.push(newOption);
  3113. fullResponse.resultFlag = true;
  3114. fullResponse.details = '';
  3115. return fullResponse;
  3116. } else {
  3117. angular.copy(checkResult, fullResponse);
  3118. return fullResponse;
  3119. }
  3120. }
  3121. }, {
  3122. key: 'removeOption',
  3123. value: function removeOption(selectObj, AtIndex) {
  3124. var fullResponse = {
  3125. resultFlag: false,
  3126. details: ''
  3127. };
  3128. if (AtIndex !== -1) {
  3129. selectObj.rows.splice(AtIndex, 1);
  3130. fullResponse.resultFlag = true;
  3131. fullResponse.details = '';
  3132. return fullResponse;
  3133. } else {
  3134. fullResponse.resultFlag = false;
  3135. fullResponse.details = 'Option index not valid';
  3136. return fullResponse;
  3137. }
  3138. }
  3139. }, {
  3140. key: 'upthisOption',
  3141. value: function upthisOption(selectObj, indexOption) {
  3142. var fullResponse = {
  3143. resultFlag: false,
  3144. details: ''
  3145. };
  3146. if (indexOption > -1) {
  3147. if (indexOption > 0) {
  3148. if (selectObj.rows[indexOption - 1]) {
  3149. var currentOption = selectObj.rows[indexOption];
  3150. selectObj.rows.splice(indexOption, 1);
  3151. selectObj.rows.splice(indexOption - 1, 0, currentOption);
  3152. fullResponse.resultFlag = true;
  3153. fullResponse.details = '';
  3154. return fullResponse;
  3155. } else {
  3156. fullResponse.resultFlag = false;
  3157. fullResponse.details = 'Can\'t retreive option from option index';
  3158. return fullResponse;
  3159. }
  3160. } else {
  3161. fullResponse.resultFlag = true;
  3162. fullResponse.details = '';
  3163. return fullResponse;
  3164. }
  3165. } else {
  3166. fullResponse.resultFlag = false;
  3167. fullResponse.details = 'Option index not valid';
  3168. return fullResponse;
  3169. }
  3170. }
  3171. }, {
  3172. key: 'downthisOption',
  3173. value: function downthisOption(selectObj, indexOption) {
  3174. var fullResponse = {
  3175. resultFlag: false,
  3176. details: ''
  3177. };
  3178. if (indexOption > -1) {
  3179. if (indexOption < selectObj.rows.length - 1) {
  3180. if (selectObj.rows[indexOption + 1]) {
  3181. var currentOption = selectObj.rows[indexOption];
  3182. selectObj.rows.splice(indexOption, 1);
  3183. selectObj.rows.splice(indexOption + 1, 0, currentOption);
  3184. fullResponse.resultFlag = true;
  3185. fullResponse.details = '';
  3186. return fullResponse;
  3187. } else {
  3188. fullResponse.resultFlag = false;
  3189. fullResponse.details = 'Can\'t retreive option from option index';
  3190. return fullResponse;
  3191. }
  3192. } else {
  3193. fullResponse.resultFlag = true;
  3194. fullResponse.details = '';
  3195. return fullResponse;
  3196. }
  3197. } else {
  3198. fullResponse.resultFlag = false;
  3199. fullResponse.details = 'Option index not valid';
  3200. return fullResponse;
  3201. }
  3202. }
  3203. }, {
  3204. key: 'validOption',
  3205. value: function validOption(selectObj, newOptionText) {
  3206. var fullResponse = {
  3207. resultFlag: false,
  3208. details: ''
  3209. };
  3210. if (typeof newOptionText === 'undefined') {
  3211. fullResponse.resultFlag = false;
  3212. fullResponse.details = 'Entered option is empty';
  3213. return fullResponse;
  3214. }
  3215. if (newOptionText !== '') {
  3216. for (var i = selectObj.rows.length - 1; i >= 0; i--) {
  3217. if (selectObj.rows[i].option === newOptionText) {
  3218. fullResponse.resultFlag = false;
  3219. fullResponse.details = 'Entered option is not unique';
  3220. return fullResponse;
  3221. }
  3222. }
  3223. fullResponse.resultFlag = true;
  3224. fullResponse.details = '';
  3225. return fullResponse;
  3226. }
  3227. fullResponse.resultFlag = false;
  3228. fullResponse.details = 'Entered option is empty';
  3229. return fullResponse;
  3230. }
  3231. }]);
  3232. return selectOptionManage;
  3233. })();
  3234. selectOptionManage.$inject = [];
  3235. _export('default', selectOptionManage);
  3236. _export('SELECT_OPTION_MANAGE_NAME', SELECT_OPTION_MANAGE_NAME);
  3237. }
  3238. };
  3239. });
  3240. $__System.register('25', ['24'], function (_export) {
  3241. /* global angular */
  3242. 'use strict';
  3243. var selectOptionManage, SELECT_OPTION_MANAGE_NAME, COMMON_MODULE_NAME;
  3244. return {
  3245. setters: [function (_) {
  3246. selectOptionManage = _['default'];
  3247. SELECT_OPTION_MANAGE_NAME = _.SELECT_OPTION_MANAGE_NAME;
  3248. }],
  3249. execute: function () {
  3250. COMMON_MODULE_NAME = 'commonModule';
  3251. _export('default', angular.module(COMMON_MODULE_NAME, []).service(SELECT_OPTION_MANAGE_NAME, selectOptionManage));
  3252. }
  3253. };
  3254. });
  3255. $__System.register('26', [], function (_export) {
  3256. 'use strict';
  3257. var DROP_ZONE_DIRECTIVE_NAME;
  3258. function dropzone() {
  3259. var directive = {
  3260. restrict: 'AE',
  3261. link: linkFct
  3262. };
  3263. return directive;
  3264. function linkFct(scope, element, attrs) {
  3265. var config = undefined;
  3266. var dropzone = undefined;
  3267. //console.log(scope);
  3268. config = scope[attrs.dropzone];
  3269. // create a Dropzone for the element with the given options
  3270. dropzone = new Dropzone(element[0], config.options);
  3271. // bind the given event handlers
  3272. angular.forEach(config.eventHandlers, function (handler, event) {
  3273. return dropzone.on(event, handler);
  3274. });
  3275. }
  3276. }
  3277. return {
  3278. setters: [],
  3279. execute: function () {
  3280. DROP_ZONE_DIRECTIVE_NAME = 'dropzone';
  3281. _export('default', dropzone);
  3282. _export('DROP_ZONE_DIRECTIVE_NAME', DROP_ZONE_DIRECTIVE_NAME);
  3283. }
  3284. };
  3285. });
  3286. $__System.register('27', ['26'], function (_export) {
  3287. 'use strict';
  3288. var dropzone, DROP_ZONE_DIRECTIVE_NAME, DROP_ZONE_MODULE_NAME;
  3289. return {
  3290. setters: [function (_) {
  3291. dropzone = _['default'];
  3292. DROP_ZONE_DIRECTIVE_NAME = _.DROP_ZONE_DIRECTIVE_NAME;
  3293. }],
  3294. execute: function () {
  3295. DROP_ZONE_MODULE_NAME = 'easyFirmStepWay.dropzone.module';
  3296. _export('default', angular.module(DROP_ZONE_MODULE_NAME, []).directive(DROP_ZONE_DIRECTIVE_NAME, dropzone));
  3297. }
  3298. };
  3299. });
  3300. $__System.register('1', ['2', '4', '6', '19', '20', '25', '27', 'e', 'f', '1a', '1d'], function (_export) {
  3301. 'use strict';
  3302. var easyFormStepWayConfig, EASY_FORM_VERSION_NAME, EASY_FORM_VERSION_VALUE, formlyConfig, easyFormStepwayMainModule, easyFormStepwayFormlyProxyModule, easyFormStepwayCommonModules, dropZoneModule, translateConfig, easyFormStepWayCoreModule, easyFormStepwayModalModule, easyFormStepwayModalProxyModule, STEP_WAY_MODULE_NAME, STEP_WAY_MODULES_INJECT, mainModule;
  3303. return {
  3304. setters: [function (_) {}, function (_2) {
  3305. easyFormStepWayConfig = _2['default'];
  3306. EASY_FORM_VERSION_NAME = _2.EASY_FORM_VERSION_NAME;
  3307. EASY_FORM_VERSION_VALUE = _2.EASY_FORM_VERSION_VALUE;
  3308. }, function (_3) {
  3309. formlyConfig = _3['default'];
  3310. }, function (_4) {
  3311. easyFormStepwayMainModule = _4['default'];
  3312. }, function (_5) {
  3313. easyFormStepwayFormlyProxyModule = _5['default'];
  3314. }, function (_6) {
  3315. easyFormStepwayCommonModules = _6['default'];
  3316. }, function (_7) {
  3317. dropZoneModule = _7['default'];
  3318. }, function (_e) {
  3319. translateConfig = _e['default'];
  3320. }, function (_f) {
  3321. easyFormStepWayCoreModule = _f['default'];
  3322. }, function (_a) {
  3323. easyFormStepwayModalModule = _a['default'];
  3324. }, function (_d) {
  3325. easyFormStepwayModalProxyModule = _d['default'];
  3326. }],
  3327. execute: function () {
  3328. STEP_WAY_MODULE_NAME = 'eda.easyformGen.stepway';
  3329. STEP_WAY_MODULES_INJECT = [easyFormStepWayCoreModule.name, translateConfig.name, easyFormStepwayMainModule.name, easyFormStepwayModalModule.name, easyFormStepwayModalProxyModule.name, easyFormStepwayFormlyProxyModule.name, easyFormStepwayCommonModules.name, dropZoneModule.name];
  3330. mainModule = angular.module(STEP_WAY_MODULE_NAME, STEP_WAY_MODULES_INJECT).value(EASY_FORM_VERSION_NAME, EASY_FORM_VERSION_VALUE).config(formlyConfig).config(easyFormStepWayConfig);
  3331. _export('default', mainModule);
  3332. }
  3333. };
  3334. });
  3335. })
  3336. (function(factory) {
  3337. factory();
  3338. });
  3339. //# sourceMappingURL=eda.stepway.js.map