eda.stepway.js 254 KB

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