123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166 |
- /*! Buefy v0.7.4 | MIT License | github.com/buefy/buefy */
- (function webpackUniversalModuleDefinition(root, factory) {
- if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory(require("vue"));
- else if(typeof define === 'function' && define.amd)
- define(["vue"], factory);
- else if(typeof exports === 'object')
- exports["Buefy"] = factory(require("vue"));
- else
- root["Buefy"] = factory(root["Vue"]);
- })(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_18__) {
- return /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, {
- /******/ configurable: false,
- /******/ enumerable: true,
- /******/ get: getter
- /******/ });
- /******/ }
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/";
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 69);
- /******/ })
- /************************************************************************/
- /******/ ([
- /* 0 */
- /***/ (function(module, exports) {
-
- /* globals __VUE_SSR_CONTEXT__ */
-
- // this module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle
-
- module.exports = function normalizeComponent (
- rawScriptExports,
- compiledTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier /* server only */
- ) {
- var esModule
- var scriptExports = rawScriptExports = rawScriptExports || {}
-
- // ES6 modules interop
- var type = typeof rawScriptExports.default
- if (type === 'object' || type === 'function') {
- esModule = rawScriptExports
- scriptExports = rawScriptExports.default
- }
-
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
-
- // render functions
- if (compiledTemplate) {
- options.render = compiledTemplate.render
- options.staticRenderFns = compiledTemplate.staticRenderFns
- }
-
- // scopedId
- if (scopeId) {
- options._scopeId = scopeId
- }
-
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = injectStyles
- }
-
- if (hook) {
- var functional = options.functional
- var existing = functional
- ? options.render
- : options.beforeCreate
- if (!functional) {
- // inject component registration as beforeCreate hook
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- } else {
- // register for functioal component in vue file
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return existing(h, context)
- }
- }
- }
-
- return {
- esModule: esModule,
- exports: scriptExports,
- options: options
- }
- }
-
-
- /***/ }),
- /* 1 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
-
- var _defineProperty = __webpack_require__(101);
-
- var _defineProperty2 = _interopRequireDefault(_defineProperty);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.default = function (obj, key, value) {
- if (key in obj) {
- (0, _defineProperty2.default)(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
-
- return obj;
- };
-
- /***/ }),
- /* 2 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return setOptions; });
- var config = {
- defaultContainerElement: null,
- defaultIconPack: 'mdi',
- defaultIconComponent: null,
- defaultDialogConfirmText: null,
- defaultDialogCancelText: null,
- defaultSnackbarDuration: 3500,
- defaultSnackbarPosition: null,
- defaultToastDuration: 2000,
- defaultToastPosition: null,
- detaultNotificationDuration: 2000,
- defaultNotificationPosition: null,
- defaultTooltipType: 'is-primary',
- defaultTooltipAnimated: false,
- defaultInputAutocomplete: 'on',
- defaultDateFormatter: null,
- defaultDateParser: null,
- defaultDateCreator: null,
- defaultDayNames: null,
- defaultMonthNames: null,
- defaultFirstDayOfWeek: null,
- defaultUnselectableDaysOfWeek: null,
- defaultTimeFormatter: null,
- defaultTimeParser: null,
- defaultModalCanCancel: null,
- defaultModalScroll: null,
- defaultDatepickerMobileNative: true,
- defaultTimepickerMobileNative: true,
- defaultNoticeQueue: true,
- defaultInputHasCounter: true,
- defaultUseHtml5Validation: true
- };
-
- /* harmony default export */ __webpack_exports__["a"] = (config);
-
- var setOptions = function setOptions(options) {
- config = options;
- };
-
- /***/ }),
- /* 3 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(105),
- /* template */
- __webpack_require__(106),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 4 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var store = __webpack_require__(37)('wks');
- var uid = __webpack_require__(26);
- var Symbol = __webpack_require__(8).Symbol;
- var USE_SYMBOL = typeof Symbol == 'function';
-
- var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
- };
-
- $exports.store = store;
-
-
- /***/ }),
- /* 5 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(88), __esModule: true };
-
- /***/ }),
- /* 6 */
- /***/ (function(module, exports) {
-
- var core = module.exports = { version: '2.5.7' };
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
-
-
- /***/ }),
- /* 7 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (immutable) */ __webpack_exports__["a"] = getValueByPath;
- /* harmony export (immutable) */ __webpack_exports__["b"] = indexOf;
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isMobile; });
- /* harmony export (immutable) */ __webpack_exports__["d"] = removeElement;
- /* unused harmony export escapeRegExpChars */
- /**
- * Get value of an object property/path even if it's nested
- */
- function getValueByPath(obj, path) {
- var value = path.split('.').reduce(function (o, i) {
- return o[i];
- }, obj);
- return value;
- }
-
- /**
- * Extension of indexOf method by equality function if specified
- */
- function indexOf(array, obj, fn) {
- if (!array) return -1;
-
- if (!fn || typeof fn !== 'function') return array.indexOf(obj);
-
- for (var i = 0; i < array.length; i++) {
- if (fn(array[i], obj)) {
- return i;
- }
- }
-
- return -1;
- }
-
- /**
- * Mobile detection
- * https://www.abeautifulsite.net/detecting-mobile-devices-with-javascript
- */
- var isMobile = {
- Android: function Android() {
- return typeof window !== 'undefined' && window.navigator.userAgent.match(/Android/i);
- },
- BlackBerry: function BlackBerry() {
- return typeof window !== 'undefined' && window.navigator.userAgent.match(/BlackBerry/i);
- },
- iOS: function iOS() {
- return typeof window !== 'undefined' && window.navigator.userAgent.match(/iPhone|iPad|iPod/i);
- },
- Opera: function Opera() {
- return typeof window !== 'undefined' && window.navigator.userAgent.match(/Opera Mini/i);
- },
- Windows: function Windows() {
- return typeof window !== 'undefined' && window.navigator.userAgent.match(/IEMobile/i);
- },
- any: function any() {
- return isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows();
- }
- };
-
- function removeElement(el) {
- if (typeof el.remove !== 'undefined') {
- el.remove();
- } else if (typeof el.parentNode !== 'undefined') {
- el.parentNode.removeChild(el);
- }
- }
-
- /**
- * Escape regex characters
- * http://stackoverflow.com/a/6969486
- */
- function escapeRegExpChars(value) {
- if (!value) return value;
-
- // eslint-disable-next-line
- return value.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
- }
-
- /***/ }),
- /* 8 */
- /***/ (function(module, exports) {
-
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
-
-
- /***/ }),
- /* 9 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var anObject = __webpack_require__(15);
- var IE8_DOM_DEFINE = __webpack_require__(47);
- var toPrimitive = __webpack_require__(32);
- var dP = Object.defineProperty;
-
- exports.f = __webpack_require__(12) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return dP(O, P, Attributes);
- } catch (e) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
-
-
- /***/ }),
- /* 10 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
-
-
- /* harmony default export */ __webpack_exports__["a"] = ({
- props: {
- size: String,
- expanded: Boolean,
- loading: Boolean,
- rounded: Boolean,
- icon: String,
- iconPack: String,
- // Native options to use in HTML5 validation
- autocomplete: String,
- maxlength: [Number, String],
- useHtml5Validation: {
- type: Boolean,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultUseHtml5Validation;
- }
- }
- },
- data: function data() {
- return {
- isValid: true,
- isFocused: false,
- newIconPack: this.iconPack || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultIconPack
- };
- },
-
- computed: {
- /**
- * Find parent Field, max 3 levels deep.
- */
- parentField: function parentField() {
- var parent = this.$parent;
- for (var i = 0; i < 3; i++) {
- if (parent && !parent.$data._isField) {
- parent = parent.$parent;
- }
- }
- return parent;
- },
-
-
- /**
- * Get the type prop from parent if it's a Field.
- */
- statusType: function statusType() {
- if (!this.parentField) return;
- if (!this.parentField.newType) return;
- if (typeof this.parentField.newType === 'string') {
- return this.parentField.newType;
- } else {
- for (var key in this.parentField.newType) {
- if (this.parentField.newType[key]) {
- return key;
- }
- }
- }
- },
-
-
- /**
- * Get the message prop from parent if it's a Field.
- */
- statusMessage: function statusMessage() {
- if (!this.parentField) return;
-
- return this.parentField.newMessage;
- },
-
-
- /**
- * Fix icon size for inputs, large was too big
- */
- iconSize: function iconSize() {
- switch (this.size) {
- case 'is-small':
- return this.size;
- case 'is-medium':
- return;
- case 'is-large':
- return this.newIconPack === 'mdi' ? 'is-medium' : '';
- }
- }
- },
- methods: {
- /**
- * Focus method that work dynamically depending on the component.
- */
- focus: function focus() {
- var _this = this;
-
- if (this.$data._elementRef === undefined) return;
-
- this.$nextTick(function () {
- var el = _this.$el.querySelector(_this.$data._elementRef);
- if (el) el.focus();
- });
- },
- onBlur: function onBlur($event) {
- this.isFocused = false;
- this.$emit('blur', $event);
- this.checkHtml5Validity();
- },
- onFocus: function onFocus($event) {
- this.isFocused = true;
- this.$emit('focus', $event);
- },
-
-
- /**
- * Check HTML5 validation, set isValid property.
- * If validation fail, send 'is-danger' type,
- * and error message to parent if it's a Field.
- */
- checkHtml5Validity: function checkHtml5Validity() {
- var _this2 = this;
-
- if (!this.useHtml5Validation) return;
-
- if (this.$refs[this.$data._elementRef] === undefined) return;
-
- var el = this.$el.querySelector(this.$data._elementRef);
-
- var type = null;
- var message = null;
- var isValid = true;
- if (!el.checkValidity()) {
- type = 'is-danger';
- message = el.validationMessage;
- isValid = false;
- }
- this.isValid = isValid;
-
- this.$nextTick(function () {
- if (_this2.parentField) {
- // Set type only if not defined
- if (!_this2.parentField.type) {
- _this2.parentField.newType = type;
- }
- // Set message only if not defined
- if (!_this2.parentField.message) {
- _this2.parentField.newMessage = message;
- }
- }
- });
-
- return this.isValid;
- }
- }
- });
-
- /***/ }),
- /* 11 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(70), __esModule: true };
-
- /***/ }),
- /* 12 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__(21)(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
- });
-
-
- /***/ }),
- /* 13 */
- /***/ (function(module, exports) {
-
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
-
-
- /***/ }),
- /* 14 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var dP = __webpack_require__(9);
- var createDesc = __webpack_require__(22);
- module.exports = __webpack_require__(12) ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
-
-
- /***/ }),
- /* 15 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var isObject = __webpack_require__(20);
- module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
- };
-
-
- /***/ }),
- /* 16 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__(50);
- var defined = __webpack_require__(34);
- module.exports = function (it) {
- return IObject(defined(it));
- };
-
-
- /***/ }),
- /* 17 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(104),
- /* template */
- __webpack_require__(107),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 18 */
- /***/ (function(module, exports) {
-
- module.exports = __WEBPACK_EXTERNAL_MODULE_18__;
-
- /***/ }),
- /* 19 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var global = __webpack_require__(8);
- var core = __webpack_require__(6);
- var ctx = __webpack_require__(46);
- var hide = __webpack_require__(14);
- var has = __webpack_require__(13);
- var PROTOTYPE = 'prototype';
-
- var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var IS_WRAP = type & $export.W;
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE];
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
- var key, own, out;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- if (own && has(exports, key)) continue;
- // export native or passed
- out = own ? target[key] : source[key];
- // prevent global pollution for namespaces
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
- // bind timers to global for call from export context
- : IS_BIND && own ? ctx(out, global)
- // wrap global constructors for prevent change them in library
- : IS_WRAP && target[key] == out ? (function (C) {
- var F = function (a, b, c) {
- if (this instanceof C) {
- switch (arguments.length) {
- case 0: return new C();
- case 1: return new C(a);
- case 2: return new C(a, b);
- } return new C(a, b, c);
- } return C.apply(this, arguments);
- };
- F[PROTOTYPE] = C[PROTOTYPE];
- return F;
- // make static versions for prototype methods
- })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
- if (IS_PROTO) {
- (exports.virtual || (exports.virtual = {}))[key] = out;
- // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
- if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
- }
- }
- };
- // type bitmap
- $export.F = 1; // forced
- $export.G = 2; // global
- $export.S = 4; // static
- $export.P = 8; // proto
- $export.B = 16; // bind
- $export.W = 32; // wrap
- $export.U = 64; // safe
- $export.R = 128; // real proto method for `library`
- module.exports = $export;
-
-
- /***/ }),
- /* 20 */
- /***/ (function(module, exports) {
-
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
-
-
- /***/ }),
- /* 21 */
- /***/ (function(module, exports) {
-
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
- };
-
-
- /***/ }),
- /* 22 */
- /***/ (function(module, exports) {
-
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
-
-
- /***/ }),
- /* 23 */
- /***/ (function(module, exports) {
-
- module.exports = {};
-
-
- /***/ }),
- /* 24 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__(49);
- var enumBugKeys = __webpack_require__(38);
-
- module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
- };
-
-
- /***/ }),
- /* 25 */
- /***/ (function(module, exports) {
-
- module.exports = true;
-
-
- /***/ }),
- /* 26 */
- /***/ (function(module, exports) {
-
- var id = 0;
- var px = Math.random();
- module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
- };
-
-
- /***/ }),
- /* 27 */
- /***/ (function(module, exports) {
-
- exports.f = {}.propertyIsEnumerable;
-
-
- /***/ }),
- /* 28 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(122),
- /* template */
- __webpack_require__(123),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 29 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(124),
- /* template */
- __webpack_require__(125),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 30 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(126),
- /* template */
- __webpack_require__(129),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 31 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(136),
- /* template */
- __webpack_require__(137),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 32 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 7.1.1 ToPrimitive(input [, PreferredType])
- var isObject = __webpack_require__(20);
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
- // and the second argument - flag - preferred type is a string
- module.exports = function (it, S) {
- if (!isObject(it)) return it;
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- throw TypeError("Can't convert object to primitive value");
- };
-
-
- /***/ }),
- /* 33 */
- /***/ (function(module, exports) {
-
- var toString = {}.toString;
-
- module.exports = function (it) {
- return toString.call(it).slice(8, -1);
- };
-
-
- /***/ }),
- /* 34 */
- /***/ (function(module, exports) {
-
- // 7.2.1 RequireObjectCoercible(argument)
- module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
- };
-
-
- /***/ }),
- /* 35 */
- /***/ (function(module, exports) {
-
- // 7.1.4 ToInteger
- var ceil = Math.ceil;
- var floor = Math.floor;
- module.exports = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
- };
-
-
- /***/ }),
- /* 36 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var shared = __webpack_require__(37)('keys');
- var uid = __webpack_require__(26);
- module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
- };
-
-
- /***/ }),
- /* 37 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var core = __webpack_require__(6);
- var global = __webpack_require__(8);
- var SHARED = '__core-js_shared__';
- var store = global[SHARED] || (global[SHARED] = {});
-
- (module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
- })('versions', []).push({
- version: core.version,
- mode: __webpack_require__(25) ? 'pure' : 'global',
- copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
- });
-
-
- /***/ }),
- /* 38 */
- /***/ (function(module, exports) {
-
- // IE 8- don't enum bug keys
- module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
- ).split(',');
-
-
- /***/ }),
- /* 39 */
- /***/ (function(module, exports) {
-
- exports.f = Object.getOwnPropertySymbols;
-
-
- /***/ }),
- /* 40 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 7.1.13 ToObject(argument)
- var defined = __webpack_require__(34);
- module.exports = function (it) {
- return Object(defined(it));
- };
-
-
- /***/ }),
- /* 41 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var $at = __webpack_require__(80)(true);
-
- // 21.1.3.27 String.prototype[@@iterator]()
- __webpack_require__(54)(String, 'String', function (iterated) {
- this._t = String(iterated); // target
- this._i = 0; // next index
- // 21.1.5.2.1 %StringIteratorPrototype%.next()
- }, function () {
- var O = this._t;
- var index = this._i;
- var point;
- if (index >= O.length) return { value: undefined, done: true };
- point = $at(O, index);
- this._i += point.length;
- return { value: point, done: false };
- });
-
-
- /***/ }),
- /* 42 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var def = __webpack_require__(9).f;
- var has = __webpack_require__(13);
- var TAG = __webpack_require__(4)('toStringTag');
-
- module.exports = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
- };
-
-
- /***/ }),
- /* 43 */
- /***/ (function(module, exports, __webpack_require__) {
-
- exports.f = __webpack_require__(4);
-
-
- /***/ }),
- /* 44 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var global = __webpack_require__(8);
- var core = __webpack_require__(6);
- var LIBRARY = __webpack_require__(25);
- var wksExt = __webpack_require__(43);
- var defineProperty = __webpack_require__(9).f;
- module.exports = function (name) {
- var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
- if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
- };
-
-
- /***/ }),
- /* 45 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__helpers__ = __webpack_require__(7);
-
-
-
- /* harmony default export */ __webpack_exports__["a"] = ({
- props: {
- type: {
- type: String,
- default: 'is-dark'
- },
- message: String,
- duration: Number,
- queue: {
- type: Boolean,
- default: undefined
- },
- position: {
- type: String,
- default: 'is-top',
- validator: function validator(value) {
- return ['is-top-right', 'is-top', 'is-top-left', 'is-bottom-right', 'is-bottom', 'is-bottom-left'].indexOf(value) > -1;
- }
- },
- container: String
- },
- data: function data() {
- return {
- isActive: false,
- parentTop: null,
- parentBottom: null,
- newContainer: this.container || __WEBPACK_IMPORTED_MODULE_0__config__["a" /* default */].defaultContainerElement
- };
- },
-
- computed: {
- correctParent: function correctParent() {
- switch (this.position) {
- case 'is-top-right':
- case 'is-top':
- case 'is-top-left':
- return this.parentTop;
-
- case 'is-bottom-right':
- case 'is-bottom':
- case 'is-bottom-left':
- return this.parentBottom;
- }
- },
- transition: function transition() {
- switch (this.position) {
- case 'is-top-right':
- case 'is-top':
- case 'is-top-left':
- return {
- enter: 'fadeInDown',
- leave: 'fadeOut'
- };
- case 'is-bottom-right':
- case 'is-bottom':
- case 'is-bottom-left':
- return {
- enter: 'fadeInUp',
- leave: 'fadeOut'
- };
- }
- }
- },
- methods: {
- shouldQueue: function shouldQueue() {
- var queue = this.queue !== undefined ? this.queue : __WEBPACK_IMPORTED_MODULE_0__config__["a" /* default */].defaultNoticeQueue;
-
- if (!queue) return false;
-
- return this.parentTop.childElementCount > 0 || this.parentBottom.childElementCount > 0;
- },
- close: function close() {
- var _this = this;
-
- clearTimeout(this.timer);
- this.isActive = false;
-
- // Timeout for the animation complete before destroying
- setTimeout(function () {
- _this.$destroy();
- Object(__WEBPACK_IMPORTED_MODULE_1__helpers__["d" /* removeElement */])(_this.$el);
- }, 150);
- },
- showNotice: function showNotice() {
- var _this2 = this;
-
- if (this.shouldQueue()) {
- // Call recursively if should queue
- setTimeout(function () {
- return _this2.showNotice();
- }, 250);
- return;
- }
- this.correctParent.insertAdjacentElement('afterbegin', this.$el);
- this.isActive = true;
-
- if (!this.indefinite) {
- this.timer = setTimeout(function () {
- return _this2.close();
- }, this.newDuration);
- }
- },
- setupContainer: function setupContainer() {
- this.parentTop = document.querySelector('.notices.is-top');
- this.parentBottom = document.querySelector('.notices.is-bottom');
-
- if (this.parentTop && this.parentBottom) return;
-
- if (!this.parentTop) {
- this.parentTop = document.createElement('div');
- this.parentTop.className = 'notices is-top';
- }
-
- if (!this.parentBottom) {
- this.parentBottom = document.createElement('div');
- this.parentBottom.className = 'notices is-bottom';
- }
-
- var container = document.querySelector(this.newContainer) || document.body;
-
- container.appendChild(this.parentTop);
- container.appendChild(this.parentBottom);
-
- if (this.newContainer) {
- this.parentTop.classList.add('has-custom-container');
- this.parentBottom.classList.add('has-custom-container');
- }
- }
- },
- beforeMount: function beforeMount() {
- this.setupContainer();
- },
- mounted: function mounted() {
- this.showNotice();
- }
- });
-
- /***/ }),
- /* 46 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // optional / simple context binding
- var aFunction = __webpack_require__(72);
- module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
- };
-
-
- /***/ }),
- /* 47 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = !__webpack_require__(12) && !__webpack_require__(21)(function () {
- return Object.defineProperty(__webpack_require__(48)('div'), 'a', { get: function () { return 7; } }).a != 7;
- });
-
-
- /***/ }),
- /* 48 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var isObject = __webpack_require__(20);
- var document = __webpack_require__(8).document;
- // typeof document.createElement is 'object' in old IE
- var is = isObject(document) && isObject(document.createElement);
- module.exports = function (it) {
- return is ? document.createElement(it) : {};
- };
-
-
- /***/ }),
- /* 49 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var has = __webpack_require__(13);
- var toIObject = __webpack_require__(16);
- var arrayIndexOf = __webpack_require__(74)(false);
- var IE_PROTO = __webpack_require__(36)('IE_PROTO');
-
- module.exports = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
- };
-
-
- /***/ }),
- /* 50 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__(33);
- // eslint-disable-next-line no-prototype-builtins
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
- };
-
-
- /***/ }),
- /* 51 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 7.1.15 ToLength
- var toInteger = __webpack_require__(35);
- var min = Math.min;
- module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
- };
-
-
- /***/ }),
- /* 52 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(77),
- /* template */
- __webpack_require__(108),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 53 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
-
- var _iterator = __webpack_require__(78);
-
- var _iterator2 = _interopRequireDefault(_iterator);
-
- var _symbol = __webpack_require__(5);
-
- var _symbol2 = _interopRequireDefault(_symbol);
-
- var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
- return typeof obj === "undefined" ? "undefined" : _typeof(obj);
- } : function (obj) {
- return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
- };
-
- /***/ }),
- /* 54 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var LIBRARY = __webpack_require__(25);
- var $export = __webpack_require__(19);
- var redefine = __webpack_require__(55);
- var hide = __webpack_require__(14);
- var Iterators = __webpack_require__(23);
- var $iterCreate = __webpack_require__(81);
- var setToStringTag = __webpack_require__(42);
- var getPrototypeOf = __webpack_require__(84);
- var ITERATOR = __webpack_require__(4)('iterator');
- var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
- var FF_ITERATOR = '@@iterator';
- var KEYS = 'keys';
- var VALUES = 'values';
-
- var returnThis = function () { return this; };
-
- module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
- $iterCreate(Constructor, NAME, next);
- var getMethod = function (kind) {
- if (!BUGGY && kind in proto) return proto[kind];
- switch (kind) {
- case KEYS: return function keys() { return new Constructor(this, kind); };
- case VALUES: return function values() { return new Constructor(this, kind); };
- } return function entries() { return new Constructor(this, kind); };
- };
- var TAG = NAME + ' Iterator';
- var DEF_VALUES = DEFAULT == VALUES;
- var VALUES_BUG = false;
- var proto = Base.prototype;
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
- var $default = $native || getMethod(DEFAULT);
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
- var methods, key, IteratorPrototype;
- // Fix native
- if ($anyNative) {
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
- // Set @@toStringTag to native iterators
- setToStringTag(IteratorPrototype, TAG, true);
- // fix for some old engines
- if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
- }
- }
- // fix Array#{values, @@iterator}.name in V8 / FF
- if (DEF_VALUES && $native && $native.name !== VALUES) {
- VALUES_BUG = true;
- $default = function values() { return $native.call(this); };
- }
- // Define iterator
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
- hide(proto, ITERATOR, $default);
- }
- // Plug for library
- Iterators[NAME] = $default;
- Iterators[TAG] = returnThis;
- if (DEFAULT) {
- methods = {
- values: DEF_VALUES ? $default : getMethod(VALUES),
- keys: IS_SET ? $default : getMethod(KEYS),
- entries: $entries
- };
- if (FORCED) for (key in methods) {
- if (!(key in proto)) redefine(proto, key, methods[key]);
- } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
- }
- return methods;
- };
-
-
- /***/ }),
- /* 55 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = __webpack_require__(14);
-
-
- /***/ }),
- /* 56 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- var anObject = __webpack_require__(15);
- var dPs = __webpack_require__(82);
- var enumBugKeys = __webpack_require__(38);
- var IE_PROTO = __webpack_require__(36)('IE_PROTO');
- var Empty = function () { /* empty */ };
- var PROTOTYPE = 'prototype';
-
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
- var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = __webpack_require__(48)('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- __webpack_require__(83).appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
- return createDict();
- };
-
- module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE] = anObject(O);
- result = new Empty();
- Empty[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
- };
-
-
- /***/ }),
- /* 57 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(85);
- var global = __webpack_require__(8);
- var hide = __webpack_require__(14);
- var Iterators = __webpack_require__(23);
- var TO_STRING_TAG = __webpack_require__(4)('toStringTag');
-
- var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
- 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
- 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
- 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
- 'TextTrackList,TouchList').split(',');
-
- for (var i = 0; i < DOMIterables.length; i++) {
- var NAME = DOMIterables[i];
- var Collection = global[NAME];
- var proto = Collection && Collection.prototype;
- if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
- Iterators[NAME] = Iterators.Array;
- }
-
-
- /***/ }),
- /* 58 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- var $keys = __webpack_require__(49);
- var hiddenKeys = __webpack_require__(38).concat('length', 'prototype');
-
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return $keys(O, hiddenKeys);
- };
-
-
- /***/ }),
- /* 59 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(98), __esModule: true };
-
- /***/ }),
- /* 60 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var classof = __webpack_require__(100);
- var ITERATOR = __webpack_require__(4)('iterator');
- var Iterators = __webpack_require__(23);
- module.exports = __webpack_require__(6).getIteratorMethod = function (it) {
- if (it != undefined) return it[ITERATOR]
- || it['@@iterator']
- || Iterators[classof(it)];
- };
-
-
- /***/ }),
- /* 61 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(112),
- /* template */
- __webpack_require__(113),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 62 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormElementMixin__ = __webpack_require__(10);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(2);
- var _this = this;
-
-
-
-
-
- var AM = 'AM';
- var PM = 'PM';
- var HOUR_FORMAT_24 = '24';
- var HOUR_FORMAT_12 = '12';
-
- /* harmony default export */ __webpack_exports__["a"] = ({
- mixins: [__WEBPACK_IMPORTED_MODULE_0__FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: Date,
- inline: Boolean,
- minTime: Date,
- maxTime: Date,
- placeholder: String,
- editable: Boolean,
- disabled: Boolean,
- hourFormat: {
- type: String,
- default: HOUR_FORMAT_24,
- validator: function validator(value) {
- return value === HOUR_FORMAT_24 || value === HOUR_FORMAT_12;
- }
- },
- incrementMinutes: {
- type: Number,
- default: 1
- },
- timeFormatter: {
- type: Function,
- default: function _default(date) {
- _this.formatTime(date);
- }
- },
- timeParser: {
- type: Function,
- default: function _default(date) {
- _this.parseTime(date);
- }
- },
- mobileNative: {
- type: Boolean,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimepickerMobileNative;
- }
- },
- position: String,
- unselectableTimes: Array
- },
- data: function data() {
- return {
- dateSelected: this.value,
- hoursSelected: null,
- minutesSelected: null,
- meridienSelected: null,
- _elementRef: 'input',
- AM: AM,
- PM: PM,
- HOUR_FORMAT_24: HOUR_FORMAT_24,
- HOUR_FORMAT_12: HOUR_FORMAT_12
- };
- },
-
- computed: {
- hours: function hours() {
- var hours = [];
- var numberOfHours = this.isHourFormat24 ? 24 : 12;
- for (var i = 0; i < numberOfHours; i++) {
- var value = i;
- var label = value;
- if (!this.isHourFormat24) {
- value = i + 1;
- label = value;
- if (this.meridienSelected === this.AM) {
- if (value === 12) {
- value = 0;
- }
- } else if (this.meridienSelected === this.PM) {
- if (value !== 12) {
- value += 12;
- }
- }
- }
- hours.push({
- label: this.formatNumber(label),
- value: value
- });
- }
- return hours;
- },
- minutes: function minutes() {
- var minutes = [];
- for (var i = 0; i < 60; i += this.incrementMinutes) {
- minutes.push({
- label: this.formatNumber(i),
- value: i
- });
- }
- return minutes;
- },
- meridiens: function meridiens() {
- return [AM, PM];
- },
- isMobile: function isMobile() {
- return this.mobileNative && __WEBPACK_IMPORTED_MODULE_1__helpers__["c" /* isMobile */].any();
- },
- isHourFormat24: function isHourFormat24() {
- return this.hourFormat === HOUR_FORMAT_24;
- }
- },
- watch: {
- hourFormat: function hourFormat(value) {
- if (this.hoursSelected !== null) {
- this.meridienSelected = this.hoursSelected >= 12 ? PM : AM;
- }
- },
-
-
- /**
- * Emit input event with selected date as payload.
- */
- dateSelected: function dateSelected(value) {
- this.$emit('input', value);
- },
-
-
- /**
- * When v-model is changed:
- * 1. Update internal value.
- * 2. If it's invalid, validate again.
- */
- value: function value(_value) {
- this.updateInternalState(_value);
- this.dateSelected = _value;
-
- !this.isValid && this.$refs.input.checkHtml5Validity();
- }
- },
- methods: {
- onMeridienChange: function onMeridienChange(value) {
- if (this.hoursSelected !== null) {
- if (value === PM) {
- this.hoursSelected += 12;
- } else if (value === AM) {
- this.hoursSelected -= 12;
- }
- }
- this.updateDateSelected(this.hoursSelected, this.minutesSelected, value);
- },
- onHoursChange: function onHoursChange(value) {
- this.updateDateSelected(parseInt(value, 10), this.minutesSelected, this.meridienSelected);
- },
- onMinutesChange: function onMinutesChange(value) {
- this.updateDateSelected(this.hoursSelected, parseInt(value, 10), this.meridienSelected);
- },
- updateDateSelected: function updateDateSelected(hours, minutes, meridiens) {
- if (hours != null && minutes != null && (!this.isHourFormat24 && meridiens !== null || this.isHourFormat24)) {
- if (this.dateSelected && !isNaN(this.dateSelected)) {
- this.dateSelected = new Date(this.dateSelected);
- } else {
- this.dateSelected = new Date();
- this.dateSelected.setMilliseconds(0);
- this.dateSelected.setSeconds(0);
- }
- this.dateSelected.setHours(hours);
- this.dateSelected.setMinutes(minutes);
- }
- },
- updateInternalState: function updateInternalState(value) {
- if (value) {
- this.hoursSelected = value.getHours();
- this.minutesSelected = value.getMinutes();
- this.meridienSelected = value.getHours() >= 12 ? PM : AM;
- } else {
- this.hoursSelected = null;
- this.minutesSelected = null;
- this.meridienSelected = AM;
- }
- },
- isHourDisabled: function isHourDisabled(hour) {
- var _this2 = this;
-
- var disabled = false;
- if (this.minTime) {
- var minHours = this.minTime.getHours();
- disabled = hour < minHours;
- }
- if (this.maxTime) {
- if (!disabled) {
- var maxHours = this.maxTime.getHours();
- disabled = hour > maxHours;
- }
- }
- if (this.unselectableTimes) {
- if (!disabled) {
- if (this.minutesSelected !== null) {
- var unselectable = this.unselectableTimes.filter(function (time) {
- return time.getHours() === hour && time.getMinutes() === _this2.minutesSelected;
- });
- disabled = unselectable.length > 0;
- } else {
- var _unselectable = this.unselectableTimes.filter(function (time) {
- return time.getHours() === hour;
- });
- disabled = _unselectable.length === this.minutes.length;
- }
- }
- }
- return disabled;
- },
- isMinuteDisabled: function isMinuteDisabled(minute) {
- var _this3 = this;
-
- var disabled = false;
- if (this.hoursSelected !== null) {
- if (this.isHourDisabled(this.hoursSelected)) {
- disabled = true;
- } else {
- if (this.minTime) {
- var minHours = this.minTime.getHours();
- var minMinutes = this.minTime.getMinutes();
- disabled = this.hoursSelected === minHours && minute < minMinutes;
- }
- if (this.maxTime) {
- if (!disabled) {
- var maxHours = this.maxTime.getHours();
- var _minMinutes = this.maxTime.getMinutes();
- disabled = this.hoursSelected === maxHours && minute > _minMinutes;
- }
- }
- }
- if (this.unselectableTimes) {
- if (!disabled) {
- var unselectable = this.unselectableTimes.filter(function (time) {
- return time.getHours() === _this3.hoursSelected && time.getMinutes() === minute;
- });
- disabled = unselectable.length > 0;
- }
- }
- }
- return disabled;
- },
-
-
- /*
- * Parse string into date
- */
- onChange: function onChange(value) {
- var date = this.parseTime(value);
- this.updateInternalState(date);
- if (date && !isNaN(date)) {
- this.dateSelected = date;
- } else {
- // Force refresh input value when not valid date
- this.dateSelected = null;
- this.$refs.input.newValue = this.dateSelected;
- }
- },
-
-
- /*
- * Close dropdown time picker
- */
- close: function close() {
- if (this.$refs.dropdown) {
- this.$refs.dropdown.isActive = false;
- }
- },
-
-
- /*
- * Format date into string 'HH-MM-SS'
- */
- formatHHMMSS: function formatHHMMSS(value) {
- var date = new Date(value);
- if (value && !isNaN(date)) {
- var hours = date.getHours();
- var minutes = date.getMinutes();
- return this.formatNumber(hours) + ':' + this.formatNumber(minutes, true) + ':00';
- }
- return '';
- },
-
-
- /*
- * Parse time from string
- */
- onChangeNativePicker: function onChangeNativePicker(event) {
- var date = event.target.value;
- if (date) {
- if (this.dateSelected && !isNaN(this.dateSelected)) {
- this.dateSelected = new Date(this.dateSelected);
- } else {
- this.dateSelected = new Date();
- this.dateSelected.setMilliseconds(0);
- this.dateSelected.setSeconds(0);
- }
- var time = date.split(':');
- this.dateSelected.setHours(parseInt(time[0], 10));
- this.dateSelected.setMinutes(parseInt(time[1], 10));
- } else {
- this.dateSelected = null;
- }
- },
- formatNumber: function formatNumber(value, isMinute) {
- return this.isHourFormat24 || isMinute ? this.pad(value) : value;
- },
- pad: function pad(value) {
- return (value < 10 ? '0' : '') + value;
- },
-
-
- /*
- * Format date into string
- */
- formatValue: function formatValue(date) {
- if (date && !isNaN(date)) {
- return this.formatTime(date);
- } else {
- return null;
- }
- },
- formatTime: function formatTime(date) {
- if (typeof __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeFormatter === 'function') {
- return __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeFormatter(date);
- } else {
- return this.defaultTimeFormatter(date);
- }
- },
- parseTime: function parseTime(date) {
- if (typeof __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeParser === 'function') {
- return __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeParser(date);
- } else {
- return this.defaultTimeParser(date);
- }
- },
- defaultTimeFormatter: function defaultTimeFormatter(date) {
- var hours = date.getHours();
- var minutes = date.getMinutes();
- var period = '';
- if (this.hourFormat === HOUR_FORMAT_12) {
- period = ' ' + (hours < 12 ? AM : PM);
- if (hours > 12) {
- hours -= 12;
- } else if (hours === 0) {
- hours = 12;
- }
- }
- return this.pad(hours) + ':' + this.pad(minutes) + period;
- },
- defaultTimeParser: function defaultTimeParser(timeString) {
- if (timeString) {
- var am = false;
- if (this.hourFormat === HOUR_FORMAT_12) {
- var dateString12 = timeString.split(' ');
- timeString = dateString12[0];
- am = dateString12[1] === AM;
- }
- var time = timeString.split(':');
- var hours = parseInt(time[0], 10);
- var minutes = parseInt(time[1], 10);
- if (isNaN(hours) || hours < 0 || hours > 23 || this.hourFormat === HOUR_FORMAT_12 && (hours < 1 || hours > 12) || isNaN(minutes) || minutes < 0 || minutes > 59) {
- return null;
- }
- var d = null;
- if (this.dateSelected && !isNaN(this.dateSelected)) {
- d = new Date(this.dateSelected);
- } else {
- d = new Date();
- d.setMilliseconds(0);
- d.setSeconds(0);
- }
- d.setMinutes(minutes);
- if (this.hourFormat === HOUR_FORMAT_12) {
- if (am && hours === 12) {
- hours = 0;
- } else if (!am && hours !== 12) {
- hours += 12;
- }
- }
- d.setHours(hours);
- return d;
- }
- return null;
- }
- },
- mounted: function mounted() {
- this.updateInternalState(this.value);
- }
- });
-
- /***/ }),
- /* 63 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(147),
- /* template */
- __webpack_require__(148),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 64 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* unused harmony export isSSR */
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return HTMLElement; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return File; });
- // Polyfills for SSR
-
- var isSSR = typeof window === 'undefined';
-
- var HTMLElement = isSSR ? Object : window.HTMLElement;
- var File = isSSR ? Object : window.File;
-
- /***/ }),
- /* 65 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_icon_Icon__);
-
-
-
- /* harmony default export */ __webpack_exports__["a"] = ({
- components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__components_icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__components_icon_Icon___default.a),
- props: {
- active: {
- type: Boolean,
- default: true
- },
- title: String,
- closable: {
- type: Boolean,
- default: true
- },
- message: String,
- type: String,
- hasIcon: Boolean,
- size: String,
- iconPack: String,
- iconSize: String,
- autoClose: {
- type: Boolean,
- default: false
- },
- duration: {
- type: Number,
- default: 2000
- }
- },
- data: function data() {
- return {
- isActive: this.active
- };
- },
-
- watch: {
- active: function active(value) {
- this.isActive = value;
- },
- isActive: function isActive(value) {
- if (value) {
- this.setAutoClose();
- } else {
- if (this.timer) {
- clearTimeout(this.timer);
- }
- }
- }
- },
- computed: {
- /**
- * Icon name (MDI) based on type.
- */
- icon: function icon() {
- switch (this.type) {
- case 'is-info':
- return 'information';
- case 'is-success':
- return 'check-circle';
- case 'is-warning':
- return 'alert';
- case 'is-danger':
- return 'alert-circle';
- default:
- return null;
- }
- }
- },
- methods: {
- /**
- * Close the Message and emit events.
- */
- close: function close() {
- this.isActive = false;
- this.$emit('close');
- this.$emit('update:active', false);
- },
-
- /**
- * Set timer to auto close message
- */
- setAutoClose: function setAutoClose() {
- var _this = this;
-
- if (this.autoClose) {
- this.timer = setTimeout(function () {
- if (_this.isActive) {
- _this.close();
- }
- }, this.duration);
- }
- }
- },
- mounted: function mounted() {
- this.setAutoClose();
- }
- });
-
- /***/ }),
- /* 66 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(165),
- /* template */
- __webpack_require__(166),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 67 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(192),
- /* template */
- __webpack_require__(193),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 68 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(200),
- /* template */
- __webpack_require__(201),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 69 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- var components_namespaceObject = {};
- __webpack_require__.d(components_namespaceObject, "Autocomplete", function() { return autocomplete; });
- __webpack_require__.d(components_namespaceObject, "Button", function() { return components_button; });
- __webpack_require__.d(components_namespaceObject, "Checkbox", function() { return components_checkbox; });
- __webpack_require__.d(components_namespaceObject, "Clockpicker", function() { return clockpicker; });
- __webpack_require__.d(components_namespaceObject, "Collapse", function() { return collapse; });
- __webpack_require__.d(components_namespaceObject, "Datepicker", function() { return datepicker; });
- __webpack_require__.d(components_namespaceObject, "Dialog", function() { return dialog; });
- __webpack_require__.d(components_namespaceObject, "Dropdown", function() { return dropdown; });
- __webpack_require__.d(components_namespaceObject, "Field", function() { return field; });
- __webpack_require__.d(components_namespaceObject, "Icon", function() { return icon; });
- __webpack_require__.d(components_namespaceObject, "Input", function() { return input; });
- __webpack_require__.d(components_namespaceObject, "Loading", function() { return loading; });
- __webpack_require__.d(components_namespaceObject, "Message", function() { return components_message; });
- __webpack_require__.d(components_namespaceObject, "Modal", function() { return modal; });
- __webpack_require__.d(components_namespaceObject, "Notification", function() { return notification; });
- __webpack_require__.d(components_namespaceObject, "Numberinput", function() { return numberinput; });
- __webpack_require__.d(components_namespaceObject, "Pagination", function() { return pagination; });
- __webpack_require__.d(components_namespaceObject, "Radio", function() { return components_radio; });
- __webpack_require__.d(components_namespaceObject, "Select", function() { return components_select; });
- __webpack_require__.d(components_namespaceObject, "Snackbar", function() { return snackbar; });
- __webpack_require__.d(components_namespaceObject, "Switch", function() { return components_switch; });
- __webpack_require__.d(components_namespaceObject, "Table", function() { return table; });
- __webpack_require__.d(components_namespaceObject, "Tabs", function() { return tabs; });
- __webpack_require__.d(components_namespaceObject, "Tag", function() { return tag; });
- __webpack_require__.d(components_namespaceObject, "Taginput", function() { return taginput; });
- __webpack_require__.d(components_namespaceObject, "Timepicker", function() { return timepicker; });
- __webpack_require__.d(components_namespaceObject, "Toast", function() { return toast; });
- __webpack_require__.d(components_namespaceObject, "Tooltip", function() { return tooltip; });
- __webpack_require__.d(components_namespaceObject, "Upload", function() { return upload; });
-
- // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/object/assign.js
- var object_assign = __webpack_require__(11);
- var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign);
-
- // EXTERNAL MODULE: ./src/scss/buefy-build.scss
- var buefy_build = __webpack_require__(76);
- var buefy_build_default = /*#__PURE__*/__webpack_require__.n(buefy_build);
-
- // EXTERNAL MODULE: ./src/components/autocomplete/Autocomplete.vue
- var Autocomplete = __webpack_require__(52);
- var Autocomplete_default = /*#__PURE__*/__webpack_require__.n(Autocomplete);
-
- // CONCATENATED MODULE: ./src/utils/plugins.js
-
- var use = function use(plugin) {
- if (typeof window !== 'undefined' && window.Vue) {
- window.Vue.use(plugin);
- }
- };
-
- var registerComponent = function registerComponent(Vue, component) {
- Vue.component(component.name, component);
- };
-
- var registerComponentProgrammatic = function registerComponentProgrammatic(Vue, property, component) {
- Vue.prototype[property] = component;
- };
- // CONCATENATED MODULE: ./src/components/autocomplete/index.js
-
-
-
-
- var Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Autocomplete_default.a);
- }
- };
-
- use(Plugin);
-
- /* harmony default export */ var autocomplete = (Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/button/Button.vue
- var Button = __webpack_require__(109);
- var Button_default = /*#__PURE__*/__webpack_require__.n(Button);
-
- // CONCATENATED MODULE: ./src/components/button/index.js
-
-
-
-
- var button_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Button_default.a);
- }
- };
-
- use(button_Plugin);
-
- /* harmony default export */ var components_button = (button_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/checkbox/Checkbox.vue
- var Checkbox = __webpack_require__(61);
- var Checkbox_default = /*#__PURE__*/__webpack_require__.n(Checkbox);
-
- // EXTERNAL MODULE: ./src/components/checkbox/CheckboxButton.vue
- var CheckboxButton = __webpack_require__(114);
- var CheckboxButton_default = /*#__PURE__*/__webpack_require__.n(CheckboxButton);
-
- // CONCATENATED MODULE: ./src/components/checkbox/index.js
-
-
-
-
-
- var checkbox_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Checkbox_default.a);
- registerComponent(Vue, CheckboxButton_default.a);
- }
- };
-
- use(checkbox_Plugin);
-
- /* harmony default export */ var components_checkbox = (checkbox_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/collapse/Collapse.vue
- var Collapse = __webpack_require__(117);
- var Collapse_default = /*#__PURE__*/__webpack_require__.n(Collapse);
-
- // CONCATENATED MODULE: ./src/components/collapse/index.js
-
-
-
-
- var collapse_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Collapse_default.a);
- }
- };
-
- use(collapse_Plugin);
-
- /* harmony default export */ var collapse = (collapse_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/clockpicker/Clockpicker.vue
- var Clockpicker = __webpack_require__(120);
- var Clockpicker_default = /*#__PURE__*/__webpack_require__.n(Clockpicker);
-
- // CONCATENATED MODULE: ./src/components/clockpicker/index.js
-
-
-
-
- var clockpicker_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Clockpicker_default.a);
- }
- };
-
- use(clockpicker_Plugin);
-
- /* harmony default export */ var clockpicker = (clockpicker_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/datepicker/Datepicker.vue
- var Datepicker = __webpack_require__(134);
- var Datepicker_default = /*#__PURE__*/__webpack_require__.n(Datepicker);
-
- // CONCATENATED MODULE: ./src/components/datepicker/index.js
-
-
-
-
- var datepicker_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Datepicker_default.a);
- }
- };
-
- use(datepicker_Plugin);
-
- /* harmony default export */ var datepicker = (datepicker_Plugin);
-
-
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","amd":"vue","root":"Vue"}
- var external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue__ = __webpack_require__(18);
- var external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default = /*#__PURE__*/__webpack_require__.n(external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue__);
-
- // EXTERNAL MODULE: ./src/components/dialog/Dialog.vue
- var Dialog = __webpack_require__(145);
- var Dialog_default = /*#__PURE__*/__webpack_require__.n(Dialog);
-
- // CONCATENATED MODULE: ./src/components/dialog/index.js
-
-
-
-
-
-
- function dialog_open(propsData) {
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var DialogComponent = vm.extend(Dialog_default.a);
- return new DialogComponent({
- el: document.createElement('div'),
- propsData: propsData
- });
- }
-
- var DialogProgrammatic = {
- alert: function alert(params) {
- var message = void 0;
- if (typeof params === 'string') message = params;
- var defaultParam = {
- canCancel: false,
- message: message
- };
- var propsData = assign_default()(defaultParam, params);
- return dialog_open(propsData);
- },
- confirm: function confirm(params) {
- var defaultParam = {};
- var propsData = assign_default()(defaultParam, params);
- return dialog_open(propsData);
- },
- prompt: function prompt(params) {
- var defaultParam = {
- hasInput: true,
- confirmText: 'Done'
- };
- var propsData = assign_default()(defaultParam, params);
- return dialog_open(propsData);
- }
- };
-
- var dialog_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Dialog_default.a);
- registerComponentProgrammatic(Vue, '$dialog', DialogProgrammatic);
- }
- };
-
- use(dialog_Plugin);
-
- /* harmony default export */ var dialog = (dialog_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/dropdown/Dropdown.vue
- var Dropdown = __webpack_require__(28);
- var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown);
-
- // EXTERNAL MODULE: ./src/components/dropdown/DropdownItem.vue
- var DropdownItem = __webpack_require__(29);
- var DropdownItem_default = /*#__PURE__*/__webpack_require__.n(DropdownItem);
-
- // CONCATENATED MODULE: ./src/components/dropdown/index.js
-
-
-
-
-
- var dropdown_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Dropdown_default.a);
- registerComponent(Vue, DropdownItem_default.a);
- }
- };
-
- use(dropdown_Plugin);
-
- /* harmony default export */ var dropdown = (dropdown_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/field/Field.vue
- var Field = __webpack_require__(30);
- var Field_default = /*#__PURE__*/__webpack_require__.n(Field);
-
- // CONCATENATED MODULE: ./src/components/field/index.js
-
-
-
-
- var field_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Field_default.a);
- }
- };
-
- use(field_Plugin);
-
- /* harmony default export */ var field = (field_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/icon/Icon.vue
- var Icon = __webpack_require__(3);
- var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon);
-
- // CONCATENATED MODULE: ./src/components/icon/index.js
-
-
-
-
- var icon_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Icon_default.a);
- }
- };
-
- use(icon_Plugin);
-
- /* harmony default export */ var icon = (icon_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/input/Input.vue
- var Input = __webpack_require__(17);
- var Input_default = /*#__PURE__*/__webpack_require__.n(Input);
-
- // CONCATENATED MODULE: ./src/components/input/index.js
-
-
-
-
- var input_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Input_default.a);
- }
- };
-
- use(input_Plugin);
-
- /* harmony default export */ var input = (input_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/loading/Loading.vue
- var Loading = __webpack_require__(150);
- var Loading_default = /*#__PURE__*/__webpack_require__.n(Loading);
-
- // CONCATENATED MODULE: ./src/components/loading/index.js
-
-
-
-
-
-
- var LoadingProgrammatic = {
- open: function open(params) {
- var defaultParam = {
- programmatic: true
- };
- var propsData = assign_default()(defaultParam, params);
-
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var LoadingComponent = vm.extend(Loading_default.a);
- return new LoadingComponent({
- el: document.createElement('div'),
- propsData: propsData
- });
- }
- };
-
- var loading_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Loading_default.a);
- registerComponentProgrammatic(Vue, '$loading', LoadingProgrammatic);
- }
- };
-
- use(loading_Plugin);
-
- /* harmony default export */ var loading = (loading_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/message/Message.vue
- var Message = __webpack_require__(153);
- var Message_default = /*#__PURE__*/__webpack_require__.n(Message);
-
- // CONCATENATED MODULE: ./src/components/message/index.js
-
-
-
-
- var message_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Message_default.a);
- }
- };
-
- use(message_Plugin);
-
- /* harmony default export */ var components_message = (message_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/modal/Modal.vue
- var Modal = __webpack_require__(63);
- var Modal_default = /*#__PURE__*/__webpack_require__.n(Modal);
-
- // CONCATENATED MODULE: ./src/components/modal/index.js
-
-
-
-
-
-
- var ModalProgrammatic = {
- open: function open(params) {
- var content = void 0;
- var parent = void 0;
- if (typeof params === 'string') content = params;
-
- var defaultParam = {
- programmatic: true,
- content: content
- };
- if (params.parent) {
- parent = params.parent;
- delete params.parent;
- }
- var propsData = assign_default()(defaultParam, params);
-
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var ModalComponent = vm.extend(Modal_default.a);
- return new ModalComponent({
- parent: parent,
- el: document.createElement('div'),
- propsData: propsData
- });
- }
- };
-
- var modal_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Modal_default.a);
- registerComponentProgrammatic(Vue, '$modal', ModalProgrammatic);
- }
- };
-
- use(modal_Plugin);
-
- /* harmony default export */ var modal = (modal_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/notification/Notification.vue
- var Notification = __webpack_require__(156);
- var Notification_default = /*#__PURE__*/__webpack_require__.n(Notification);
-
- // EXTERNAL MODULE: ./src/components/notification/NotificationNotice.vue
- var NotificationNotice = __webpack_require__(159);
- var NotificationNotice_default = /*#__PURE__*/__webpack_require__.n(NotificationNotice);
-
- // EXTERNAL MODULE: ./src/utils/config.js
- var config = __webpack_require__(2);
-
- // CONCATENATED MODULE: ./src/components/notification/index.js
-
-
-
-
-
-
-
-
- var NotificationProgrammatic = {
- open: function open(params) {
- var message = void 0;
- var parent = void 0;
- if (typeof params === 'string') message = params;
-
- var defaultParam = {
- message: message,
- position: config["a" /* default */].defaultNotificationPosition || 'is-top-right'
- };
- if (params.parent) {
- parent = params.parent;
- delete params.parent;
- }
- var propsData = assign_default()(defaultParam, typeof params === 'string' ? {} : params);
-
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var NotificationNoticeComponent = vm.extend(NotificationNotice_default.a);
- return new NotificationNoticeComponent({
- parent: parent,
- el: document.createElement('div'),
- propsData: propsData
- });
- }
- };
-
- var notification_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Notification_default.a);
- registerComponentProgrammatic(Vue, '$notification', NotificationProgrammatic);
- }
- };
-
- use(notification_Plugin);
-
- /* harmony default export */ var notification = (notification_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/numberinput/Numberinput.vue
- var Numberinput = __webpack_require__(162);
- var Numberinput_default = /*#__PURE__*/__webpack_require__.n(Numberinput);
-
- // CONCATENATED MODULE: ./src/components/numberinput/index.js
-
-
-
-
- var numberinput_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Numberinput_default.a);
- }
- };
-
- use(numberinput_Plugin);
-
- /* harmony default export */ var numberinput = (numberinput_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/pagination/Pagination.vue
- var Pagination = __webpack_require__(66);
- var Pagination_default = /*#__PURE__*/__webpack_require__.n(Pagination);
-
- // CONCATENATED MODULE: ./src/components/pagination/index.js
-
-
-
-
- var pagination_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Pagination_default.a);
- }
- };
-
- use(pagination_Plugin);
-
- /* harmony default export */ var pagination = (pagination_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/radio/Radio.vue
- var Radio = __webpack_require__(167);
- var Radio_default = /*#__PURE__*/__webpack_require__.n(Radio);
-
- // EXTERNAL MODULE: ./src/components/radio/RadioButton.vue
- var RadioButton = __webpack_require__(170);
- var RadioButton_default = /*#__PURE__*/__webpack_require__.n(RadioButton);
-
- // CONCATENATED MODULE: ./src/components/radio/index.js
-
-
-
-
-
- var radio_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Radio_default.a);
- registerComponent(Vue, RadioButton_default.a);
- }
- };
-
- use(radio_Plugin);
-
- /* harmony default export */ var components_radio = (radio_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/select/Select.vue
- var Select = __webpack_require__(31);
- var Select_default = /*#__PURE__*/__webpack_require__.n(Select);
-
- // CONCATENATED MODULE: ./src/components/select/index.js
-
-
-
-
- var select_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Select_default.a);
- }
- };
-
- use(select_Plugin);
-
- /* harmony default export */ var components_select = (select_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/snackbar/Snackbar.vue
- var Snackbar = __webpack_require__(173);
- var Snackbar_default = /*#__PURE__*/__webpack_require__.n(Snackbar);
-
- // CONCATENATED MODULE: ./src/components/snackbar/index.js
-
-
-
-
-
-
-
- var SnackbarProgrammatic = {
- open: function open(params) {
- var message = void 0;
- var parent = void 0;
- if (typeof params === 'string') message = params;
-
- var defaultParam = {
- type: 'is-success',
- position: config["a" /* default */].defaultSnackbarPosition || 'is-bottom-right',
- message: message
- };
- if (params.parent) {
- parent = params.parent;
- delete params.parent;
- }
- var propsData = assign_default()(defaultParam, params);
-
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var SnackbarComponent = vm.extend(Snackbar_default.a);
- return new SnackbarComponent({
- parent: parent,
- el: document.createElement('div'),
- propsData: propsData
- });
- }
- };
-
- var snackbar_Plugin = {
- install: function install(Vue) {
- registerComponentProgrammatic(Vue, '$snackbar', SnackbarProgrammatic);
- }
- };
-
- use(snackbar_Plugin);
-
- /* harmony default export */ var snackbar = (snackbar_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/switch/Switch.vue
- var Switch = __webpack_require__(176);
- var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch);
-
- // CONCATENATED MODULE: ./src/components/switch/index.js
-
-
-
-
- var switch_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Switch_default.a);
- }
- };
-
- use(switch_Plugin);
-
- /* harmony default export */ var components_switch = (switch_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/table/Table.vue
- var Table = __webpack_require__(179);
- var Table_default = /*#__PURE__*/__webpack_require__.n(Table);
-
- // EXTERNAL MODULE: ./src/components/table/TableColumn.vue
- var TableColumn = __webpack_require__(67);
- var TableColumn_default = /*#__PURE__*/__webpack_require__.n(TableColumn);
-
- // CONCATENATED MODULE: ./src/components/table/index.js
-
-
-
-
-
- var table_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Table_default.a);
- registerComponent(Vue, TableColumn_default.a);
- }
- };
-
- use(table_Plugin);
-
- /* harmony default export */ var table = (table_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/tabs/Tabs.vue
- var Tabs = __webpack_require__(195);
- var Tabs_default = /*#__PURE__*/__webpack_require__.n(Tabs);
-
- // EXTERNAL MODULE: ./src/components/tabs/TabItem.vue
- var TabItem = __webpack_require__(198);
- var TabItem_default = /*#__PURE__*/__webpack_require__.n(TabItem);
-
- // CONCATENATED MODULE: ./src/components/tabs/index.js
-
-
-
-
-
- var tabs_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Tabs_default.a);
- registerComponent(Vue, TabItem_default.a);
- }
- };
-
- use(tabs_Plugin);
-
- /* harmony default export */ var tabs = (tabs_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/tag/Tag.vue
- var Tag = __webpack_require__(68);
- var Tag_default = /*#__PURE__*/__webpack_require__.n(Tag);
-
- // EXTERNAL MODULE: ./src/components/tag/Taglist.vue
- var Taglist = __webpack_require__(202);
- var Taglist_default = /*#__PURE__*/__webpack_require__.n(Taglist);
-
- // CONCATENATED MODULE: ./src/components/tag/index.js
-
-
-
-
-
- var tag_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Tag_default.a);
- registerComponent(Vue, Taglist_default.a);
- }
- };
-
- use(tag_Plugin);
-
- /* harmony default export */ var tag = (tag_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/taginput/Taginput.vue
- var Taginput = __webpack_require__(205);
- var Taginput_default = /*#__PURE__*/__webpack_require__.n(Taginput);
-
- // CONCATENATED MODULE: ./src/components/taginput/index.js
-
-
-
-
- var taginput_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Taginput_default.a);
- }
- };
-
- use(taginput_Plugin);
-
- /* harmony default export */ var taginput = (taginput_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/timepicker/Timepicker.vue
- var Timepicker = __webpack_require__(208);
- var Timepicker_default = /*#__PURE__*/__webpack_require__.n(Timepicker);
-
- // CONCATENATED MODULE: ./src/components/timepicker/index.js
-
-
-
-
- var timepicker_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Timepicker_default.a);
- }
- };
-
- use(timepicker_Plugin);
-
- /* harmony default export */ var timepicker = (timepicker_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/toast/Toast.vue
- var Toast = __webpack_require__(211);
- var Toast_default = /*#__PURE__*/__webpack_require__.n(Toast);
-
- // CONCATENATED MODULE: ./src/components/toast/index.js
-
-
-
-
-
-
-
- var ToastProgrammatic = {
- open: function open(params) {
- var message = void 0;
- var parent = void 0;
- if (typeof params === 'string') message = params;
-
- var defaultParam = {
- message: message,
- position: config["a" /* default */].defaultToastPosition || 'is-top'
- };
- if (params.parent) {
- parent = params.parent;
- delete params.parent;
- }
- var propsData = assign_default()(defaultParam, params);
-
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var ToastComponent = vm.extend(Toast_default.a);
- return new ToastComponent({
- parent: parent,
- el: document.createElement('div'),
- propsData: propsData
- });
- }
- };
-
- var toast_Plugin = {
- install: function install(Vue) {
- registerComponentProgrammatic(Vue, '$toast', ToastProgrammatic);
- }
- };
-
- use(toast_Plugin);
-
- /* harmony default export */ var toast = (toast_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/tooltip/Tooltip.vue
- var Tooltip = __webpack_require__(214);
- var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip);
-
- // CONCATENATED MODULE: ./src/components/tooltip/index.js
-
-
-
-
- var tooltip_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Tooltip_default.a);
- }
- };
-
- use(tooltip_Plugin);
-
- /* harmony default export */ var tooltip = (tooltip_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/upload/Upload.vue
- var Upload = __webpack_require__(217);
- var Upload_default = /*#__PURE__*/__webpack_require__.n(Upload);
-
- // CONCATENATED MODULE: ./src/components/upload/index.js
-
-
-
-
- var upload_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Upload_default.a);
- }
- };
-
- use(upload_Plugin);
-
- /* harmony default export */ var upload = (upload_Plugin);
-
-
- // CONCATENATED MODULE: ./src/components/index.js
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- // CONCATENATED MODULE: ./src/index.js
-
-
-
-
-
-
-
-
-
- var Buefy = {
- install: function install(Vue) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-
- // Options
- Object(config["b" /* setOptions */])(assign_default()(config["a" /* default */], options));
- // Components
- for (var componentKey in components_namespaceObject) {
- Vue.use(components_namespaceObject[componentKey]);
- }
- // Config component
- var BuefyProgrammatic = {
- setOptions: function setOptions(options) {
- Object(config["b" /* setOptions */])(assign_default()(config["a" /* default */], options));
- }
- };
- registerComponentProgrammatic(Vue, '$buefy', BuefyProgrammatic);
- }
- };
-
- use(Buefy);
-
- /* harmony default export */ var src = __webpack_exports__["default"] = (Buefy);
-
- /***/ }),
- /* 70 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(71);
- module.exports = __webpack_require__(6).Object.assign;
-
-
- /***/ }),
- /* 71 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 19.1.3.1 Object.assign(target, source)
- var $export = __webpack_require__(19);
-
- $export($export.S + $export.F, 'Object', { assign: __webpack_require__(73) });
-
-
- /***/ }),
- /* 72 */
- /***/ (function(module, exports) {
-
- module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
- };
-
-
- /***/ }),
- /* 73 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- // 19.1.2.1 Object.assign(target, source, ...)
- var getKeys = __webpack_require__(24);
- var gOPS = __webpack_require__(39);
- var pIE = __webpack_require__(27);
- var toObject = __webpack_require__(40);
- var IObject = __webpack_require__(50);
- var $assign = Object.assign;
-
- // should work with symbols and should have deterministic property order (V8 bug)
- module.exports = !$assign || __webpack_require__(21)(function () {
- var A = {};
- var B = {};
- // eslint-disable-next-line no-undef
- var S = Symbol();
- var K = 'abcdefghijklmnopqrst';
- A[S] = 7;
- K.split('').forEach(function (k) { B[k] = k; });
- return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
- var T = toObject(target);
- var aLen = arguments.length;
- var index = 1;
- var getSymbols = gOPS.f;
- var isEnum = pIE.f;
- while (aLen > index) {
- var S = IObject(arguments[index++]);
- var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
- var length = keys.length;
- var j = 0;
- var key;
- while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
- } return T;
- } : $assign;
-
-
- /***/ }),
- /* 74 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // false -> Array#indexOf
- // true -> Array#includes
- var toIObject = __webpack_require__(16);
- var toLength = __webpack_require__(51);
- var toAbsoluteIndex = __webpack_require__(75);
- module.exports = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
- if (O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
- };
-
-
- /***/ }),
- /* 75 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var toInteger = __webpack_require__(35);
- var max = Math.max;
- var min = Math.min;
- module.exports = function (index, length) {
- index = toInteger(index);
- return index < 0 ? max(index + length, 0) : min(index, length);
- };
-
-
- /***/ }),
- /* 76 */
- /***/ (function(module, exports) {
-
- // removed by extract-text-webpack-plugin
-
- /***/ }),
- /* 77 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(53);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_get_iterator__ = __webpack_require__(59);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_get_iterator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_get_iterator__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_FormElementMixin__ = __webpack_require__(10);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__input_Input__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__input_Input__);
-
-
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BAutocomplete',
- components: __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_5__input_Input___default.a.name, __WEBPACK_IMPORTED_MODULE_5__input_Input___default.a),
- mixins: [__WEBPACK_IMPORTED_MODULE_4__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: [Number, String],
- data: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- field: {
- type: String,
- default: 'value'
- },
- keepFirst: Boolean,
- clearOnSelect: Boolean,
- openOnFocus: Boolean,
- customFormatter: Function
- },
- data: function data() {
- return {
- selected: null,
- hovered: null,
- isActive: false,
- newValue: this.value,
- newAutocomplete: this.autocomplete || 'off',
- isListInViewportVertically: true,
- hasFocus: false,
- _isAutocomplete: true,
- _elementRef: 'input'
- };
- },
-
- computed: {
- /**
- * White-listed items to not close when clicked.
- * Add input, dropdown and all children.
- */
- whiteList: function whiteList() {
- var whiteList = [];
- whiteList.push(this.$refs.input.$el.querySelector('input'));
- whiteList.push(this.$refs.dropdown);
- // Add all chidren from dropdown
- if (this.$refs.dropdown !== undefined) {
- var children = this.$refs.dropdown.querySelectorAll('*');
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
-
- try {
- for (var _iterator = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_get_iterator___default()(children), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var child = _step.value;
-
- whiteList.push(child);
- }
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator.return) {
- _iterator.return();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
- }
-
- return whiteList;
- },
-
-
- /**
- * Check if exists default slot
- */
- hasDefaultSlot: function hasDefaultSlot() {
- return !!this.$scopedSlots.default;
- },
-
-
- /**
- * Check if exists "empty" slot
- */
- hasEmptySlot: function hasEmptySlot() {
- return !!this.$slots.empty;
- },
-
-
- /**
- * Check if exists "header" slot
- */
- hasHeaderSlot: function hasHeaderSlot() {
- return !!this.$slots.header;
- }
- },
- watch: {
- /**
- * When dropdown is toggled, check the visibility to know when
- * to open upwards.
- */
- isActive: function isActive(active) {
- var _this = this;
-
- if (active) {
- this.calcDropdownInViewportVertical();
- } else {
- this.$nextTick(function () {
- return _this.setHovered(null);
- });
- // Timeout to wait for the animation to finish before recalculating
- setTimeout(function () {
- _this.calcDropdownInViewportVertical();
- }, 100);
- }
- },
-
-
- /**
- * When updating input's value
- * 1. Emit changes
- * 2. If value isn't the same as selected, set null
- * 3. Close dropdown if value is clear or else open it
- */
- newValue: function newValue(value) {
- this.$emit('input', value);
- // Check if selected is invalid
- var currentValue = this.getValue(this.selected);
- if (currentValue && currentValue !== value) {
- this.setSelected(null, false);
- }
- // Close dropdown if input is clear or else open it
- if (this.hasFocus && (!this.openOnFocus || value)) {
- this.isActive = !!value;
- }
- },
-
-
- /**
- * When v-model is changed:
- * 1. Update internal value.
- * 2. If it's invalid, validate again.
- */
- value: function value(_value) {
- this.newValue = _value;
- !this.isValid && this.$refs.input.checkHtml5Validity();
- },
-
-
- /**
- * Select first option if "keep-first
- */
- data: function data(value) {
- // Keep first option always pre-selected
- if (this.keepFirst) {
- this.selectFirstOption(value);
- }
- }
- },
- methods: {
- /**
- * Set which option is currently hovered.
- */
- setHovered: function setHovered(option) {
- if (option === undefined) return;
-
- this.hovered = option;
- },
-
-
- /**
- * Set which option is currently selected, update v-model,
- * update input value and close dropdown.
- */
- setSelected: function setSelected(option) {
- var _this2 = this;
-
- var closeDropdown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
-
- if (option === undefined) return;
-
- this.selected = option;
- this.$emit('select', this.selected);
- if (this.selected !== null) {
- this.newValue = this.clearOnSelect ? '' : this.getValue(this.selected);
- }
- closeDropdown && this.$nextTick(function () {
- _this2.isActive = false;
- });
- },
-
-
- /**
- * Select first option
- */
- selectFirstOption: function selectFirstOption(options) {
- var _this3 = this;
-
- this.$nextTick(function () {
- if (options.length) {
- // If has visible data or open on focus, keep updating the hovered
- if (_this3.openOnFocus || _this3.newValue !== '' && _this3.hovered !== options[0]) {
- _this3.setHovered(options[0]);
- }
- } else {
- _this3.setHovered(null);
- }
- });
- },
-
-
- /**
- * Enter key listener.
- * Select the hovered option.
- */
- enterPressed: function enterPressed() {
- if (this.hovered === null) return;
- this.setSelected(this.hovered);
- },
-
-
- /**
- * Tab key listener.
- * Select hovered option if it exists, close dropdown, then allow
- * native handling to move to next tabbable element.
- */
- tabPressed: function tabPressed() {
- if (this.hovered === null) {
- this.isActive = false;
- return;
- }
- this.setSelected(this.hovered);
- },
-
-
- /**
- * Close dropdown if clicked outside.
- */
- clickedOutside: function clickedOutside(event) {
- if (this.whiteList.indexOf(event.target) < 0) this.isActive = false;
- },
-
-
- /**
- * Return display text for the input.
- * If object, get value from path, or else just the value.
- */
- getValue: function getValue(option) {
- if (!option) return;
-
- if (typeof this.customFormatter !== 'undefined') {
- return this.customFormatter(option);
- }
- return (typeof option === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(option)) === 'object' ? Object(__WEBPACK_IMPORTED_MODULE_3__utils_helpers__["a" /* getValueByPath */])(option, this.field) : option;
- },
-
-
- /**
- * Calculate if the dropdown is vertically visible when activated,
- * otherwise it is openened upwards.
- */
- calcDropdownInViewportVertical: function calcDropdownInViewportVertical() {
- var _this4 = this;
-
- this.$nextTick(function () {
- /**
- * this.$refs.dropdown may be undefined
- * when Autocomplete is conditional rendered
- */
- if (_this4.$refs.dropdown === undefined) return;
-
- var rect = _this4.$refs.dropdown.getBoundingClientRect();
-
- _this4.isListInViewportVertically = rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight);
- });
- },
-
-
- /**
- * Arrows keys listener.
- * If dropdown is active, set hovered option, or else just open.
- */
- keyArrows: function keyArrows(direction) {
- var sum = direction === 'down' ? 1 : -1;
- if (this.isActive) {
- var index = this.data.indexOf(this.hovered) + sum;
- index = index > this.data.length - 1 ? this.data.length : index;
- index = index < 0 ? 0 : index;
-
- this.setHovered(this.data[index]);
-
- var list = this.$refs.dropdown.querySelector('.dropdown-content');
- var element = list.querySelectorAll('a.dropdown-item:not(.is-disabled)')[index];
-
- if (!element) return;
-
- var visMin = list.scrollTop;
- var visMax = list.scrollTop + list.clientHeight - element.clientHeight;
-
- if (element.offsetTop < visMin) {
- list.scrollTop = element.offsetTop;
- } else if (element.offsetTop >= visMax) {
- list.scrollTop = element.offsetTop - list.clientHeight + element.clientHeight;
- }
- } else {
- this.isActive = true;
- }
- },
-
-
- /**
- * Focus listener.
- * If value is the same as selected, select all text.
- */
- focused: function focused(event) {
- if (this.getValue(this.selected) === this.newValue) {
- this.$el.querySelector('input').select();
- }
- if (this.openOnFocus) {
- this.isActive = true;
- if (this.keepFirst) {
- this.selectFirstOption(this.data);
- }
- }
- this.hasFocus = true;
- this.$emit('focus', event);
- },
-
-
- /**
- * Blur listener.
- */
- onBlur: function onBlur(event) {
- this.hasFocus = false;
- this.$emit('blur', event);
- },
- onInput: function onInput(event) {
- var currentValue = this.getValue(this.selected);
- if (currentValue && currentValue === this.newValue) return;
- this.$emit('typing', this.newValue);
- }
- },
- created: function created() {
- if (typeof window !== 'undefined') {
- document.addEventListener('click', this.clickedOutside);
- window.addEventListener('resize', this.calcDropdownInViewportVertical);
- }
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') {
- document.removeEventListener('click', this.clickedOutside);
- window.removeEventListener('resize', this.calcDropdownInViewportVertical);
- }
- }
- });
-
- /***/ }),
- /* 78 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(79), __esModule: true };
-
- /***/ }),
- /* 79 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(41);
- __webpack_require__(57);
- module.exports = __webpack_require__(43).f('iterator');
-
-
- /***/ }),
- /* 80 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var toInteger = __webpack_require__(35);
- var defined = __webpack_require__(34);
- // true -> String#at
- // false -> String#codePointAt
- module.exports = function (TO_STRING) {
- return function (that, pos) {
- var s = String(defined(that));
- var i = toInteger(pos);
- var l = s.length;
- var a, b;
- if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
- a = s.charCodeAt(i);
- return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
- ? TO_STRING ? s.charAt(i) : a
- : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
- };
- };
-
-
- /***/ }),
- /* 81 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var create = __webpack_require__(56);
- var descriptor = __webpack_require__(22);
- var setToStringTag = __webpack_require__(42);
- var IteratorPrototype = {};
-
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
- __webpack_require__(14)(IteratorPrototype, __webpack_require__(4)('iterator'), function () { return this; });
-
- module.exports = function (Constructor, NAME, next) {
- Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
- setToStringTag(Constructor, NAME + ' Iterator');
- };
-
-
- /***/ }),
- /* 82 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var dP = __webpack_require__(9);
- var anObject = __webpack_require__(15);
- var getKeys = __webpack_require__(24);
-
- module.exports = __webpack_require__(12) ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
- return O;
- };
-
-
- /***/ }),
- /* 83 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var document = __webpack_require__(8).document;
- module.exports = document && document.documentElement;
-
-
- /***/ }),
- /* 84 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
- var has = __webpack_require__(13);
- var toObject = __webpack_require__(40);
- var IE_PROTO = __webpack_require__(36)('IE_PROTO');
- var ObjectProto = Object.prototype;
-
- module.exports = Object.getPrototypeOf || function (O) {
- O = toObject(O);
- if (has(O, IE_PROTO)) return O[IE_PROTO];
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
- return O.constructor.prototype;
- } return O instanceof Object ? ObjectProto : null;
- };
-
-
- /***/ }),
- /* 85 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var addToUnscopables = __webpack_require__(86);
- var step = __webpack_require__(87);
- var Iterators = __webpack_require__(23);
- var toIObject = __webpack_require__(16);
-
- // 22.1.3.4 Array.prototype.entries()
- // 22.1.3.13 Array.prototype.keys()
- // 22.1.3.29 Array.prototype.values()
- // 22.1.3.30 Array.prototype[@@iterator]()
- module.exports = __webpack_require__(54)(Array, 'Array', function (iterated, kind) {
- this._t = toIObject(iterated); // target
- this._i = 0; // next index
- this._k = kind; // kind
- // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
- }, function () {
- var O = this._t;
- var kind = this._k;
- var index = this._i++;
- if (!O || index >= O.length) {
- this._t = undefined;
- return step(1);
- }
- if (kind == 'keys') return step(0, index);
- if (kind == 'values') return step(0, O[index]);
- return step(0, [index, O[index]]);
- }, 'values');
-
- // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
- Iterators.Arguments = Iterators.Array;
-
- addToUnscopables('keys');
- addToUnscopables('values');
- addToUnscopables('entries');
-
-
- /***/ }),
- /* 86 */
- /***/ (function(module, exports) {
-
- module.exports = function () { /* empty */ };
-
-
- /***/ }),
- /* 87 */
- /***/ (function(module, exports) {
-
- module.exports = function (done, value) {
- return { value: value, done: !!done };
- };
-
-
- /***/ }),
- /* 88 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(89);
- __webpack_require__(95);
- __webpack_require__(96);
- __webpack_require__(97);
- module.exports = __webpack_require__(6).Symbol;
-
-
- /***/ }),
- /* 89 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- // ECMAScript 6 symbols shim
- var global = __webpack_require__(8);
- var has = __webpack_require__(13);
- var DESCRIPTORS = __webpack_require__(12);
- var $export = __webpack_require__(19);
- var redefine = __webpack_require__(55);
- var META = __webpack_require__(90).KEY;
- var $fails = __webpack_require__(21);
- var shared = __webpack_require__(37);
- var setToStringTag = __webpack_require__(42);
- var uid = __webpack_require__(26);
- var wks = __webpack_require__(4);
- var wksExt = __webpack_require__(43);
- var wksDefine = __webpack_require__(44);
- var enumKeys = __webpack_require__(91);
- var isArray = __webpack_require__(92);
- var anObject = __webpack_require__(15);
- var isObject = __webpack_require__(20);
- var toIObject = __webpack_require__(16);
- var toPrimitive = __webpack_require__(32);
- var createDesc = __webpack_require__(22);
- var _create = __webpack_require__(56);
- var gOPNExt = __webpack_require__(93);
- var $GOPD = __webpack_require__(94);
- var $DP = __webpack_require__(9);
- var $keys = __webpack_require__(24);
- var gOPD = $GOPD.f;
- var dP = $DP.f;
- var gOPN = gOPNExt.f;
- var $Symbol = global.Symbol;
- var $JSON = global.JSON;
- var _stringify = $JSON && $JSON.stringify;
- var PROTOTYPE = 'prototype';
- var HIDDEN = wks('_hidden');
- var TO_PRIMITIVE = wks('toPrimitive');
- var isEnum = {}.propertyIsEnumerable;
- var SymbolRegistry = shared('symbol-registry');
- var AllSymbols = shared('symbols');
- var OPSymbols = shared('op-symbols');
- var ObjectProto = Object[PROTOTYPE];
- var USE_NATIVE = typeof $Symbol == 'function';
- var QObject = global.QObject;
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
- var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
-
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
- var setSymbolDesc = DESCRIPTORS && $fails(function () {
- return _create(dP({}, 'a', {
- get: function () { return dP(this, 'a', { value: 7 }).a; }
- })).a != 7;
- }) ? function (it, key, D) {
- var protoDesc = gOPD(ObjectProto, key);
- if (protoDesc) delete ObjectProto[key];
- dP(it, key, D);
- if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
- } : dP;
-
- var wrap = function (tag) {
- var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
- sym._k = tag;
- return sym;
- };
-
- var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
- return typeof it == 'symbol';
- } : function (it) {
- return it instanceof $Symbol;
- };
-
- var $defineProperty = function defineProperty(it, key, D) {
- if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
- anObject(it);
- key = toPrimitive(key, true);
- anObject(D);
- if (has(AllSymbols, key)) {
- if (!D.enumerable) {
- if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
- it[HIDDEN][key] = true;
- } else {
- if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
- D = _create(D, { enumerable: createDesc(0, false) });
- } return setSymbolDesc(it, key, D);
- } return dP(it, key, D);
- };
- var $defineProperties = function defineProperties(it, P) {
- anObject(it);
- var keys = enumKeys(P = toIObject(P));
- var i = 0;
- var l = keys.length;
- var key;
- while (l > i) $defineProperty(it, key = keys[i++], P[key]);
- return it;
- };
- var $create = function create(it, P) {
- return P === undefined ? _create(it) : $defineProperties(_create(it), P);
- };
- var $propertyIsEnumerable = function propertyIsEnumerable(key) {
- var E = isEnum.call(this, key = toPrimitive(key, true));
- if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
- return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
- };
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
- it = toIObject(it);
- key = toPrimitive(key, true);
- if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
- var D = gOPD(it, key);
- if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
- return D;
- };
- var $getOwnPropertyNames = function getOwnPropertyNames(it) {
- var names = gOPN(toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
- } return result;
- };
- var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
- var IS_OP = it === ObjectProto;
- var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
- } return result;
- };
-
- // 19.4.1.1 Symbol([description])
- if (!USE_NATIVE) {
- $Symbol = function Symbol() {
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
- var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
- var $set = function (value) {
- if (this === ObjectProto) $set.call(OPSymbols, value);
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
- setSymbolDesc(this, tag, createDesc(1, value));
- };
- if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
- return wrap(tag);
- };
- redefine($Symbol[PROTOTYPE], 'toString', function toString() {
- return this._k;
- });
-
- $GOPD.f = $getOwnPropertyDescriptor;
- $DP.f = $defineProperty;
- __webpack_require__(58).f = gOPNExt.f = $getOwnPropertyNames;
- __webpack_require__(27).f = $propertyIsEnumerable;
- __webpack_require__(39).f = $getOwnPropertySymbols;
-
- if (DESCRIPTORS && !__webpack_require__(25)) {
- redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
- }
-
- wksExt.f = function (name) {
- return wrap(wks(name));
- };
- }
-
- $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
-
- for (var es6Symbols = (
- // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
- 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
- ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
-
- for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
-
- $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
- // 19.4.2.1 Symbol.for(key)
- 'for': function (key) {
- return has(SymbolRegistry, key += '')
- ? SymbolRegistry[key]
- : SymbolRegistry[key] = $Symbol(key);
- },
- // 19.4.2.5 Symbol.keyFor(sym)
- keyFor: function keyFor(sym) {
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
- for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
- },
- useSetter: function () { setter = true; },
- useSimple: function () { setter = false; }
- });
-
- $export($export.S + $export.F * !USE_NATIVE, 'Object', {
- // 19.1.2.2 Object.create(O [, Properties])
- create: $create,
- // 19.1.2.4 Object.defineProperty(O, P, Attributes)
- defineProperty: $defineProperty,
- // 19.1.2.3 Object.defineProperties(O, Properties)
- defineProperties: $defineProperties,
- // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
- // 19.1.2.7 Object.getOwnPropertyNames(O)
- getOwnPropertyNames: $getOwnPropertyNames,
- // 19.1.2.8 Object.getOwnPropertySymbols(O)
- getOwnPropertySymbols: $getOwnPropertySymbols
- });
-
- // 24.3.2 JSON.stringify(value [, replacer [, space]])
- $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
- var S = $Symbol();
- // MS Edge converts symbol values to JSON as {}
- // WebKit converts symbol values to JSON as null
- // V8 throws on boxed symbols
- return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
- })), 'JSON', {
- stringify: function stringify(it) {
- var args = [it];
- var i = 1;
- var replacer, $replacer;
- while (arguments.length > i) args.push(arguments[i++]);
- $replacer = replacer = args[1];
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
- if (!isArray(replacer)) replacer = function (key, value) {
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
- if (!isSymbol(value)) return value;
- };
- args[1] = replacer;
- return _stringify.apply($JSON, args);
- }
- });
-
- // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
- $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(14)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
- // 19.4.3.5 Symbol.prototype[@@toStringTag]
- setToStringTag($Symbol, 'Symbol');
- // 20.2.1.9 Math[@@toStringTag]
- setToStringTag(Math, 'Math', true);
- // 24.3.3 JSON[@@toStringTag]
- setToStringTag(global.JSON, 'JSON', true);
-
-
- /***/ }),
- /* 90 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var META = __webpack_require__(26)('meta');
- var isObject = __webpack_require__(20);
- var has = __webpack_require__(13);
- var setDesc = __webpack_require__(9).f;
- var id = 0;
- var isExtensible = Object.isExtensible || function () {
- return true;
- };
- var FREEZE = !__webpack_require__(21)(function () {
- return isExtensible(Object.preventExtensions({}));
- });
- var setMeta = function (it) {
- setDesc(it, META, { value: {
- i: 'O' + ++id, // object ID
- w: {} // weak collections IDs
- } });
- };
- var fastKey = function (it, create) {
- // return primitive with prefix
- if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return 'F';
- // not necessary to add metadata
- if (!create) return 'E';
- // add missing metadata
- setMeta(it);
- // return object ID
- } return it[META].i;
- };
- var getWeak = function (it, create) {
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return true;
- // not necessary to add metadata
- if (!create) return false;
- // add missing metadata
- setMeta(it);
- // return hash weak collections IDs
- } return it[META].w;
- };
- // add metadata on freeze-family methods calling
- var onFreeze = function (it) {
- if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
- return it;
- };
- var meta = module.exports = {
- KEY: META,
- NEED: false,
- fastKey: fastKey,
- getWeak: getWeak,
- onFreeze: onFreeze
- };
-
-
- /***/ }),
- /* 91 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // all enumerable object keys, includes symbols
- var getKeys = __webpack_require__(24);
- var gOPS = __webpack_require__(39);
- var pIE = __webpack_require__(27);
- module.exports = function (it) {
- var result = getKeys(it);
- var getSymbols = gOPS.f;
- if (getSymbols) {
- var symbols = getSymbols(it);
- var isEnum = pIE.f;
- var i = 0;
- var key;
- while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
- } return result;
- };
-
-
- /***/ }),
- /* 92 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 7.2.2 IsArray(argument)
- var cof = __webpack_require__(33);
- module.exports = Array.isArray || function isArray(arg) {
- return cof(arg) == 'Array';
- };
-
-
- /***/ }),
- /* 93 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
- var toIObject = __webpack_require__(16);
- var gOPN = __webpack_require__(58).f;
- var toString = {}.toString;
-
- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
- ? Object.getOwnPropertyNames(window) : [];
-
- var getWindowNames = function (it) {
- try {
- return gOPN(it);
- } catch (e) {
- return windowNames.slice();
- }
- };
-
- module.exports.f = function getOwnPropertyNames(it) {
- return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
- };
-
-
- /***/ }),
- /* 94 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var pIE = __webpack_require__(27);
- var createDesc = __webpack_require__(22);
- var toIObject = __webpack_require__(16);
- var toPrimitive = __webpack_require__(32);
- var has = __webpack_require__(13);
- var IE8_DOM_DEFINE = __webpack_require__(47);
- var gOPD = Object.getOwnPropertyDescriptor;
-
- exports.f = __webpack_require__(12) ? gOPD : function getOwnPropertyDescriptor(O, P) {
- O = toIObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE) try {
- return gOPD(O, P);
- } catch (e) { /* empty */ }
- if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
- };
-
-
- /***/ }),
- /* 95 */
- /***/ (function(module, exports) {
-
-
-
- /***/ }),
- /* 96 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(44)('asyncIterator');
-
-
- /***/ }),
- /* 97 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(44)('observable');
-
-
- /***/ }),
- /* 98 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(57);
- __webpack_require__(41);
- module.exports = __webpack_require__(99);
-
-
- /***/ }),
- /* 99 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var anObject = __webpack_require__(15);
- var get = __webpack_require__(60);
- module.exports = __webpack_require__(6).getIterator = function (it) {
- var iterFn = get(it);
- if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
- return anObject(iterFn.call(it));
- };
-
-
- /***/ }),
- /* 100 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // getting tag from 19.1.3.6 Object.prototype.toString()
- var cof = __webpack_require__(33);
- var TAG = __webpack_require__(4)('toStringTag');
- // ES3 wrong here
- var ARG = cof(function () { return arguments; }()) == 'Arguments';
-
- // fallback for IE11 Script Access Denied error
- var tryGet = function (it, key) {
- try {
- return it[key];
- } catch (e) { /* empty */ }
- };
-
- module.exports = function (it) {
- var O, T, B;
- return it === undefined ? 'Undefined' : it === null ? 'Null'
- // @@toStringTag case
- : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
- // builtinTag case
- : ARG ? cof(O)
- // ES3 arguments fallback
- : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
- };
-
-
- /***/ }),
- /* 101 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(102), __esModule: true };
-
- /***/ }),
- /* 102 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(103);
- var $Object = __webpack_require__(6).Object;
- module.exports = function defineProperty(it, key, desc) {
- return $Object.defineProperty(it, key, desc);
- };
-
-
- /***/ }),
- /* 103 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var $export = __webpack_require__(19);
- // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
- $export($export.S + $export.F * !__webpack_require__(12), 'Object', { defineProperty: __webpack_require__(9).f });
-
-
- /***/ }),
- /* 104 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__ = __webpack_require__(10);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BInput',
- components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a),
- mixins: [__WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: [Number, String],
- type: {
- type: String,
- default: 'text'
- },
- passwordReveal: Boolean,
- hasCounter: {
- type: Boolean,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_2__utils_config__["a" /* default */].defaultInputHasCounter;
- }
- },
- customClass: {
- type: String,
- default: ''
- }
- },
- data: function data() {
- return {
- newValue: this.value,
- newType: this.type,
- newAutocomplete: this.autocomplete || __WEBPACK_IMPORTED_MODULE_2__utils_config__["a" /* default */].defaultInputAutocomplete,
- isPasswordVisible: false,
- _elementRef: this.type === 'textarea' ? 'textarea' : 'input'
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- !this.isValid && this.checkHtml5Validity();
- }
- },
- rootClasses: function rootClasses() {
- return [this.iconPosition, this.size, {
- 'is-expanded': this.expanded,
- 'is-loading': this.loading,
- 'is-clearfix': !this.hasMessage
- }];
- },
- inputClasses: function inputClasses() {
- return [this.statusType, this.size, { 'is-rounded': this.rounded }];
- },
- hasIconRight: function hasIconRight() {
- return this.passwordReveal || this.loading || this.statusType;
- },
-
-
- /**
- * Position of the icon or if it's both sides.
- */
- iconPosition: function iconPosition() {
- if (this.icon && this.hasIconRight) {
- return 'has-icons-left has-icons-right';
- } else if (!this.icon && this.hasIconRight) {
- return 'has-icons-right';
- } else if (this.icon) {
- return 'has-icons-left';
- }
- },
-
-
- /**
- * Icon name (MDI) based on the type.
- */
- statusTypeIcon: function statusTypeIcon() {
- switch (this.statusType) {
- case 'is-success':
- return 'check';
- case 'is-danger':
- return 'alert-circle';
- case 'is-info':
- return 'information';
- case 'is-warning':
- return 'alert';
- }
- },
-
-
- /**
- * Check if have any message prop from parent if it's a Field.
- */
- hasMessage: function hasMessage() {
- return !!this.statusMessage;
- },
-
-
- /**
- * Current password-reveal icon name.
- */
- passwordVisibleIcon: function passwordVisibleIcon() {
- return !this.isPasswordVisible ? 'eye' : 'eye-off';
- },
-
- /**
- * Get value length
- */
- valueLength: function valueLength() {
- if (typeof this.computedValue === 'string') {
- return this.computedValue.length;
- } else if (typeof this.computedValue === 'number') {
- return this.computedValue.toString().length;
- }
- return 0;
- }
- },
- watch: {
- /**
- * When v-model is changed:
- * 1. Set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- },
- methods: {
- /**
- * Toggle the visibility of a password-reveal input
- * by changing the type and focus the input right away.
- */
- togglePasswordVisibility: function togglePasswordVisibility() {
- var _this = this;
-
- this.isPasswordVisible = !this.isPasswordVisible;
- this.newType = this.isPasswordVisible ? 'text' : 'password';
-
- this.$nextTick(function () {
- _this.$refs.input.focus();
- });
- },
-
-
- /**
- * Input's 'input' event listener, 'nextTick' is used to prevent event firing
- * before ui update, helps when using masks (Cleavejs and potentially others).
- */
- onInput: function onInput(event) {
- var _this2 = this;
-
- this.$nextTick(function () {
- if (event.target) {
- _this2.computedValue = event.target.value;
- }
- });
- }
- }
- });
-
- /***/ }),
- /* 105 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BIcon',
- props: {
- type: [String, Object],
- pack: String,
- icon: String,
- size: String,
- customSize: String,
- customClass: String,
- both: Boolean // This is used internally to show both MDI and FA icon
- },
- computed: {
- /**
- * Internal icon name based on the pack.
- * If pack is 'fa', gets the equivalent FA icon name of the MDI,
- * internal icons are always MDI.
- */
- newIcon: function newIcon() {
- return this.newPack === 'mdi' ? this.newPack + '-' + this.icon : this.addFAPrefix(this.getEquivalentIconOf(this.icon));
- },
- newPack: function newPack() {
- return this.pack || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultIconPack;
- },
- newType: function newType() {
- if (!this.type) return;
-
- var splitType = [];
- if (typeof this.type === 'string') {
- splitType = this.type.split('-');
- } else {
- for (var key in this.type) {
- if (this.type[key]) {
- splitType = key.split('-');
- break;
- }
- }
- }
- if (splitType.length <= 1) return;
-
- return 'has-text-' + splitType[1];
- },
- newCustomSize: function newCustomSize() {
- return this.customSize || this.customSizeByPack;
- },
- customSizeByPack: function customSizeByPack() {
- var defaultSize = this.newPack === 'mdi' ? 'mdi-24px' : this.addFAPrefix('lg');
- var mediumSize = this.newPack === 'mdi' ? 'mdi-36px' : this.addFAPrefix('2x');
- var largeSize = this.newPack === 'mdi' ? 'mdi-48px' : this.addFAPrefix('3x');
- switch (this.size) {
- case 'is-small':
- return;
- case 'is-medium':
- return mediumSize;
- case 'is-large':
- return largeSize;
- default:
- return defaultSize;
- }
- },
- useIconComponent: function useIconComponent() {
- return __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultIconComponent;
- }
- },
- methods: {
- addFAPrefix: function addFAPrefix(value) {
- if (this.useIconComponent) {
- return value;
- }
- return 'fa-' + value;
- },
-
-
- /**
- * Equivalent FA icon name of the MDI.
- */
- getEquivalentIconOf: function getEquivalentIconOf(value) {
- // Only transform the class if the both prop is set to true
- if (!this.both) {
- return value;
- }
-
- switch (value) {
- case 'check':
- return 'check';
- case 'information':
- return 'info-circle';
- case 'check-circle':
- return 'check-circle';
- case 'alert':
- return 'exclamation-triangle';
- case 'alert-circle':
- return 'exclamation-circle';
- case 'arrow-up':
- return 'arrow-up';
- case 'chevron-right':
- return 'angle-right';
- case 'chevron-left':
- return 'angle-left';
- case 'chevron-down':
- return 'angle-down';
- case 'eye':
- return 'eye';
- case 'eye-off':
- return 'eye-slash';
- case 'menu-down':
- return 'caret-down';
- case 'menu-up':
- return 'caret-up';
- default:
- return value;
- }
- }
- }
- });
-
- /***/ }),
- /* 106 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('span', {
- staticClass: "icon",
- class: [_vm.newType, _vm.size]
- }, [(!_vm.useIconComponent) ? _c('i', {
- class: [_vm.newPack, _vm.newIcon, _vm.newCustomSize, _vm.customClass]
- }) : _c(_vm.useIconComponent, {
- tag: "component",
- class: [_vm.customClass],
- attrs: {
- "icon": [_vm.newPack, _vm.newIcon],
- "size": _vm.newCustomSize
- }
- })], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 107 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "control",
- class: _vm.rootClasses
- }, [(_vm.type !== 'textarea') ? _c('input', _vm._b({
- ref: "input",
- staticClass: "input",
- class: [_vm.inputClasses, _vm.customClass],
- attrs: {
- "type": _vm.newType,
- "autocomplete": _vm.newAutocomplete,
- "maxlength": _vm.maxlength
- },
- domProps: {
- "value": _vm.computedValue
- },
- on: {
- "input": _vm.onInput,
- "blur": _vm.onBlur,
- "focus": _vm.onFocus
- }
- }, 'input', _vm.$attrs, false)) : _c('textarea', _vm._b({
- ref: "textarea",
- staticClass: "textarea",
- class: [_vm.inputClasses, _vm.customClass],
- attrs: {
- "maxlength": _vm.maxlength
- },
- domProps: {
- "value": _vm.computedValue
- },
- on: {
- "input": _vm.onInput,
- "blur": _vm.onBlur,
- "focus": _vm.onFocus
- }
- }, 'textarea', _vm.$attrs, false)), _vm._v(" "), (_vm.icon) ? _c('b-icon', {
- staticClass: "is-left",
- attrs: {
- "icon": _vm.icon,
- "pack": _vm.iconPack,
- "size": _vm.iconSize
- }
- }) : _vm._e(), _vm._v(" "), (!_vm.loading && (_vm.passwordReveal || _vm.statusType)) ? _c('b-icon', {
- staticClass: "is-right",
- class: {
- 'is-clickable': _vm.passwordReveal
- },
- attrs: {
- "icon": _vm.passwordReveal ? _vm.passwordVisibleIcon : _vm.statusTypeIcon,
- "pack": _vm.iconPack,
- "size": _vm.iconSize,
- "type": !_vm.passwordReveal ? _vm.statusType : 'is-primary',
- "both": ""
- },
- nativeOn: {
- "click": function($event) {
- _vm.togglePasswordVisibility($event)
- }
- }
- }) : _vm._e(), _vm._v(" "), (_vm.maxlength && _vm.hasCounter && _vm.type !== 'number') ? _c('small', {
- staticClass: "help counter",
- class: {
- 'is-invisible': !_vm.isFocused
- }
- }, [_vm._v("\n " + _vm._s(_vm.valueLength) + " / " + _vm._s(_vm.maxlength) + "\n ")]) : _vm._e()], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 108 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "autocomplete control",
- class: {
- 'is-expanded': _vm.expanded
- }
- }, [_c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "type": "text",
- "size": _vm.size,
- "loading": _vm.loading,
- "rounded": _vm.rounded,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "maxlength": _vm.maxlength,
- "autocomplete": _vm.newAutocomplete
- },
- on: {
- "input": _vm.onInput,
- "focus": _vm.focused,
- "blur": _vm.onBlur
- },
- nativeOn: {
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "esc", 27, $event.key)) { return null; }
- $event.preventDefault();
- _vm.isActive = false
- },
- "keydown": [function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "tab", 9, $event.key)) { return null; }
- _vm.tabPressed($event)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.enterPressed($event)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "up", 38, $event.key)) { return null; }
- $event.preventDefault();
- _vm.keyArrows('up')
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "down", 40, $event.key)) { return null; }
- $event.preventDefault();
- _vm.keyArrows('down')
- }]
- },
- model: {
- value: (_vm.newValue),
- callback: function($$v) {
- _vm.newValue = $$v
- },
- expression: "newValue"
- }
- }, 'b-input', _vm.$attrs, false)), _vm._v(" "), _c('transition', {
- attrs: {
- "name": "fade"
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive && (_vm.data.length > 0 || _vm.hasEmptySlot || _vm.hasHeaderSlot)),
- expression: "isActive && (data.length > 0 || hasEmptySlot || hasHeaderSlot)"
- }],
- ref: "dropdown",
- staticClass: "dropdown-menu",
- class: {
- 'is-opened-top': !_vm.isListInViewportVertically
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive),
- expression: "isActive"
- }],
- staticClass: "dropdown-content"
- }, [(_vm.hasHeaderSlot) ? _c('div', {
- staticClass: "dropdown-item"
- }, [_vm._t("header")], 2) : _vm._e(), _vm._v(" "), _vm._l((_vm.data), function(option, index) {
- return _c('a', {
- key: index,
- staticClass: "dropdown-item",
- class: {
- 'is-hovered': option === _vm.hovered
- },
- on: {
- "click": function($event) {
- _vm.setSelected(option)
- }
- }
- }, [(_vm.hasDefaultSlot) ? _vm._t("default", null, {
- option: option,
- index: index
- }) : _c('span', [_vm._v("\n " + _vm._s(_vm.getValue(option, true)) + "\n ")])], 2)
- }), _vm._v(" "), (_vm.data.length === 0 && _vm.hasEmptySlot) ? _c('div', {
- staticClass: "dropdown-item is-disabled"
- }, [_vm._t("empty")], 2) : _vm._e()], 2)])])], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 109 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(110),
- /* template */
- __webpack_require__(111),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 110 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BButton',
- components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a),
- props: {
- type: [String, Object],
- size: String,
- label: String,
- iconPack: String,
- iconLeft: String,
- iconRight: String,
- rounded: Boolean,
- loading: Boolean,
- outlined: Boolean,
- inverted: Boolean,
- focused: Boolean,
- active: Boolean,
- hovered: Boolean,
- selected: Boolean,
- nativeType: {
- type: String,
- default: 'button',
- validator: function validator(value) {
- return ['button', 'submit', 'reset'].indexOf(value) >= 0;
- }
- },
- tag: {
- type: String,
- default: 'button',
- validator: function validator(value) {
- return ['button', 'a', 'input'].indexOf(value) >= 0;
- }
- }
- },
- computed: {
- iconSize: function iconSize() {
- if (!this.size || this.size === 'is-medium') {
- return 'is-small';
- } else if (this.size === 'is-large') {
- return 'is-medium';
- }
- return this.size;
- }
- }
- });
-
- /***/ }),
- /* 111 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c(_vm.tag, {
- tag: "component",
- staticClass: "button",
- class: [_vm.size, _vm.type, {
- 'is-rounded': _vm.rounded,
- 'is-loading': _vm.loading,
- 'is-outlined': _vm.outlined,
- 'is-inverted': _vm.inverted,
- 'is-focused': _vm.focused,
- 'is-active': _vm.active,
- 'is-hovered': _vm.hovered,
- 'is-selected': _vm.selected
- }],
- attrs: {
- "type": _vm.nativeType
- },
- on: {
- "click": function($event) {
- _vm.$emit('click', $event)
- }
- }
- }, [(_vm.iconLeft) ? _c('b-icon', {
- attrs: {
- "pack": _vm.iconPack,
- "icon": _vm.iconLeft,
- "size": _vm.iconSize
- }
- }) : _vm._e(), _vm._v(" "), (_vm.label) ? _c('span', [_vm._v(_vm._s(_vm.label))]) : (_vm.$slots.default) ? _c('span', [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), (_vm.iconRight) ? _c('b-icon', {
- attrs: {
- "pack": _vm.iconPack,
- "icon": _vm.iconRight,
- "size": _vm.iconSize
- }
- }) : _vm._e()], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 112 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BCheckbox',
- props: {
- value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- indeterminate: Boolean,
- type: String,
- disabled: Boolean,
- required: Boolean,
- name: String,
- size: String,
- trueValue: {
- type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- default: true
- },
- falseValue: {
- type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- default: false
- }
- },
- data: function data() {
- return {
- newValue: this.value
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- }
- }
- },
- watch: {
- /**
- * When v-model change, set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- }
- });
-
- /***/ }),
- /* 113 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('label', {
- ref: "label",
- staticClass: "b-checkbox checkbox",
- class: [_vm.size, {
- 'is-disabled': _vm.disabled
- }],
- attrs: {
- "disabled": _vm.disabled
- },
- on: {
- "keydown": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.$refs.label.click()
- }
- }
- }, [_c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- attrs: {
- "type": "checkbox",
- "disabled": _vm.disabled,
- "required": _vm.required,
- "name": _vm.name,
- "true-value": _vm.trueValue,
- "false-value": _vm.falseValue
- },
- domProps: {
- "indeterminate": _vm.indeterminate,
- "value": _vm.nativeValue,
- "checked": Array.isArray(_vm.computedValue) ? _vm._i(_vm.computedValue, _vm.nativeValue) > -1 : _vm._q(_vm.computedValue, _vm.trueValue)
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- },
- "change": function($event) {
- var $$a = _vm.computedValue,
- $$el = $event.target,
- $$c = $$el.checked ? (_vm.trueValue) : (_vm.falseValue);
- if (Array.isArray($$a)) {
- var $$v = _vm.nativeValue,
- $$i = _vm._i($$a, $$v);
- if ($$el.checked) {
- $$i < 0 && (_vm.computedValue = $$a.concat([$$v]))
- } else {
- $$i > -1 && (_vm.computedValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.computedValue = $$c
- }
- }
- }
- }), _vm._v(" "), _c('span', {
- staticClass: "check",
- class: _vm.type
- }), _vm._v(" "), _c('span', {
- staticClass: "control-label"
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 114 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(115),
- /* template */
- __webpack_require__(116),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 115 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BCheckboxButton',
- props: {
- value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- disabled: Boolean,
- required: Boolean,
- name: String,
- size: String,
- type: {
- type: String,
- default: 'is-primary'
- }
- },
- data: function data() {
- return {
- newValue: this.value,
- isFocused: false
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- }
- },
- checked: function checked() {
- if (Array.isArray(this.newValue)) {
- return this.newValue.indexOf(this.nativeValue) >= 0;
- }
- return this.newValue === this.nativeValue;
- }
- },
- watch: {
- /**
- * When v-model change, set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- }
- });
-
- /***/ }),
- /* 116 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "control"
- }, [_c('label', {
- ref: "label",
- staticClass: "b-checkbox checkbox button",
- class: [_vm.checked ? _vm.type : null, _vm.size, {
- 'is-disabled': _vm.disabled,
- 'is-focused': _vm.isFocused
- }],
- attrs: {
- "disabled": _vm.disabled
- },
- on: {
- "keydown": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.$refs.label.click()
- }
- }
- }, [_vm._t("default"), _vm._v(" "), _c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- attrs: {
- "type": "checkbox",
- "disabled": _vm.disabled,
- "required": _vm.required,
- "name": _vm.name
- },
- domProps: {
- "value": _vm.nativeValue,
- "checked": Array.isArray(_vm.computedValue) ? _vm._i(_vm.computedValue, _vm.nativeValue) > -1 : (_vm.computedValue)
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- },
- "focus": function($event) {
- _vm.isFocused = true
- },
- "blur": function($event) {
- _vm.isFocused = false
- },
- "change": function($event) {
- var $$a = _vm.computedValue,
- $$el = $event.target,
- $$c = $$el.checked ? (true) : (false);
- if (Array.isArray($$a)) {
- var $$v = _vm.nativeValue,
- $$i = _vm._i($$a, $$v);
- if ($$el.checked) {
- $$i < 0 && (_vm.computedValue = $$a.concat([$$v]))
- } else {
- $$i > -1 && (_vm.computedValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.computedValue = $$c
- }
- }
- }
- })], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 117 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(118),
- /* template */
- __webpack_require__(119),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 118 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BCollapse',
- props: {
- open: {
- type: Boolean,
- default: true
- },
- animation: {
- type: String,
- default: 'fade'
- },
- ariaId: {
- type: String,
- default: ''
- }
- },
- data: function data() {
- return {
- isOpen: this.open
- };
- },
-
- watch: {
- open: function open(value) {
- this.isOpen = value;
- }
- },
- methods: {
- /**
- * Toggle and emit events
- */
- toggle: function toggle() {
- this.isOpen = !this.isOpen;
- this.$emit('update:open', this.isOpen);
- this.$emit(this.isOpen ? 'open' : 'close');
- }
- }
- });
-
- /***/ }),
- /* 119 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "collapse"
- }, [_c('div', {
- staticClass: "collapse-trigger",
- on: {
- "click": _vm.toggle
- }
- }, [_vm._t("trigger", null, {
- open: _vm.isOpen
- })], 2), _vm._v(" "), _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isOpen),
- expression: "isOpen"
- }],
- staticClass: "collapse-content",
- attrs: {
- "id": _vm.ariaId,
- "aria-expanded": _vm.isOpen
- }
- }, [_vm._t("default")], 2)])], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 120 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(121),
- /* template */
- __webpack_require__(133),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 121 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__ = __webpack_require__(62);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__ = __webpack_require__(28);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__ = __webpack_require__(29);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__input_Input__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field__ = __webpack_require__(30);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__field_Field__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ClockpickerFace__ = __webpack_require__(130);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ClockpickerFace___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__ClockpickerFace__);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
-
-
-
-
- var outerPadding = 12;
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BClockpicker',
- components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_7__ClockpickerFace___default.a.name, __WEBPACK_IMPORTED_MODULE_7__ClockpickerFace___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_4__input_Input___default.a.name, __WEBPACK_IMPORTED_MODULE_4__input_Input___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_5__field_Field___default.a.name, __WEBPACK_IMPORTED_MODULE_5__field_Field___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_6__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_6__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default.a.name, __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default.a.name, __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default.a), _components),
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__["a" /* default */]],
- props: {
- pickerSize: {
- type: Number,
- default: 290
- },
- hourFormat: {
- type: String,
- default: '12',
- validator: function validator(value) {
- return value === '24' || value === '12';
- }
- },
- incrementMinutes: {
- type: Number,
- default: 5
- },
- autoSwitch: {
- type: Boolean,
- default: true
- },
- type: {
- type: String,
- default: 'is-primary'
- }
- },
- data: function data() {
- return {
- isSelectingHour: true,
- isDragging: false,
- _isClockpicker: true
- };
- },
-
- computed: {
- hoursDisplay: function hoursDisplay() {
- if (this.hoursSelected == null) return '--';
- if (this.isHourFormat24) return this.pad(this.hoursSelected);
-
- var display = this.hoursSelected;
- if (this.meridienSelected === this.PM) display -= 12;
- if (display === 0) display = 12;
- return display;
- },
- minutesDisplay: function minutesDisplay() {
- return this.minutesSelected == null ? '--' : this.pad(this.minutesSelected);
- },
- minFaceValue: function minFaceValue() {
- return this.isSelectingHour && !this.isHourFormat24 && this.meridienSelected === this.PM ? 12 : 0;
- },
- maxFaceValue: function maxFaceValue() {
- return this.isSelectingHour ? !this.isHourFormat24 && this.meridienSelected === this.AM ? 11 : 23 : 59;
- },
- faceFormatter: function faceFormatter() {
- return this.isSelectingHour && !this.isHourFormat24 ? function (val) {
- return val;
- } : this.formatNumber;
- },
- faceSize: function faceSize() {
- return this.pickerSize - outerPadding * 2;
- }
- },
- methods: {
- onClockInput: function onClockInput(value) {
- if (this.isSelectingHour) {
- this.hoursSelected = value;
- this.onHoursChange(value);
- } else {
- this.minutesSelected = value;
- this.onMinutesChange(value);
- }
- },
- onClockChange: function onClockChange(value) {
- if (this.autoSwitch && this.isSelectingHour) {
- this.isSelectingHour = !this.isSelectingHour;
- }
- },
- onMeridienClick: function onMeridienClick(value) {
- if (this.meridienSelected !== value) {
- this.meridienSelected = value;
- this.onMeridienChange(value);
- }
- },
- faceDisabledValues: function faceDisabledValues() {
- return this.isSelectingHour ? this.isHourDisabled : this.isMinuteDisabled;
- }
- },
- created: function created() {
- this.incrementMinutes = 5;
- }
- });
-
- /***/ }),
- /* 122 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator__ = __webpack_require__(59);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_symbol__);
-
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDropdown',
- props: {
- value: {
- type: [String, Number, Boolean, Object, Array, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_symbol___default.a, Function],
- default: null
- },
- disabled: Boolean,
- hoverable: Boolean,
- inline: Boolean,
- position: {
- type: String,
- validator: function validator(value) {
- return ['is-top-right', 'is-top-left', 'is-bottom-left'].indexOf(value) > -1;
- }
- },
- mobileModal: {
- type: Boolean,
- default: true
- },
- ariaRole: {
- type: String,
- default: ''
- },
- animation: {
- type: String,
- default: 'fade'
- }
- },
- data: function data() {
- return {
- selected: this.value,
- isActive: false,
- _isDropdown: true // Used internally by DropdownItem
- };
- },
-
- computed: {
- rootClasses: function rootClasses() {
- return [this.position, {
- 'is-disabled': this.disabled,
- 'is-hoverable': this.hoverable,
- 'is-inline': this.inline,
- 'is-active': this.isActive || this.inline,
- 'is-mobile-modal': this.isMobileModal
- }];
- },
- isMobileModal: function isMobileModal() {
- return this.mobileModal && !this.inline && !this.hoverable;
- },
- ariaRoleMenu: function ariaRoleMenu() {
- return this.ariaRole === 'menu' || this.ariaRole === 'list' ? this.ariaRole : null;
- }
- },
- watch: {
- /**
- * When v-model is changed set the new selected item.
- */
- value: function value(_value) {
- this.selected = _value;
- },
-
-
- /**
- * Emit event when isActive value is changed.
- */
- isActive: function isActive(value) {
- this.$emit('active-change', value);
- }
- },
- methods: {
- /**
- * Click listener from DropdownItem.
- * 1. Set new selected item.
- * 2. Emit input event to update the user v-model.
- * 3. Close the dropdown.
- */
- selectItem: function selectItem(value) {
- if (this.selected !== value) {
- this.$emit('change', value);
- this.selected = value;
- }
- this.$emit('input', value);
- this.isActive = false;
- },
-
-
- /**
- * White-listed items to not close when clicked.
- */
- isInWhiteList: function isInWhiteList(el) {
- if (el === this.$refs.dropdownMenu) return true;
- if (el === this.$refs.trigger) return true;
- // All chidren from dropdown
- if (this.$refs.dropdownMenu !== undefined) {
- var children = this.$refs.dropdownMenu.querySelectorAll('*');
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
-
- try {
- for (var _iterator = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default()(children), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var child = _step.value;
-
- if (el === child) {
- return true;
- }
- }
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator.return) {
- _iterator.return();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
- }
- // All children from trigger
- if (this.$refs.trigger !== undefined) {
- var _children = this.$refs.trigger.querySelectorAll('*');
- var _iteratorNormalCompletion2 = true;
- var _didIteratorError2 = false;
- var _iteratorError2 = undefined;
-
- try {
- for (var _iterator2 = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default()(_children), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
- var _child = _step2.value;
-
- if (el === _child) {
- return true;
- }
- }
- } catch (err) {
- _didIteratorError2 = true;
- _iteratorError2 = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion2 && _iterator2.return) {
- _iterator2.return();
- }
- } finally {
- if (_didIteratorError2) {
- throw _iteratorError2;
- }
- }
- }
- }
-
- return false;
- },
-
-
- /**
- * Close dropdown if clicked outside.
- */
- clickedOutside: function clickedOutside(event) {
- if (this.inline) return;
-
- if (!this.isInWhiteList(event.target)) this.isActive = false;
- },
-
-
- /**
- * Toggle dropdown if it's not disabled.
- */
- toggle: function toggle() {
- var _this = this;
-
- if (this.disabled || this.hoverable) return;
-
- if (!this.isActive) {
- // if not active, toggle after clickOutside event
- // this fixes toggling programmatic
- this.$nextTick(function () {
- _this.isActive = !_this.isActive;
- });
- } else {
- this.isActive = !this.isActive;
- }
- }
- },
- created: function created() {
- if (typeof window !== 'undefined') {
- document.addEventListener('click', this.clickedOutside);
- }
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') {
- document.removeEventListener('click', this.clickedOutside);
- }
- }
- });
-
- /***/ }),
- /* 123 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "dropdown",
- class: _vm.rootClasses
- }, [(!_vm.inline) ? _c('div', {
- ref: "trigger",
- staticClass: "dropdown-trigger",
- attrs: {
- "role": "button",
- "aria-haspopup": "true"
- },
- on: {
- "click": _vm.toggle
- }
- }, [_vm._t("trigger")], 2) : _vm._e(), _vm._v(" "), _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [(_vm.isMobileModal) ? _c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive),
- expression: "isActive"
- }],
- staticClass: "background",
- attrs: {
- "aria-hidden": !_vm.isActive
- }
- }) : _vm._e()]), _vm._v(" "), _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: ((!_vm.disabled && (_vm.isActive || _vm.hoverable)) || _vm.inline),
- expression: "(!disabled && (isActive || hoverable)) || inline"
- }],
- ref: "dropdownMenu",
- staticClass: "dropdown-menu",
- attrs: {
- "aria-hidden": !_vm.isActive
- }
- }, [_c('div', {
- staticClass: "dropdown-content",
- attrs: {
- "role": _vm.ariaRoleMenu
- }
- }, [_vm._t("default")], 2)])])], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 124 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDropdownItem',
- props: {
- value: {
- type: [String, Number, Boolean, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a, Function],
- default: null
- },
- separator: Boolean,
- disabled: Boolean,
- custom: Boolean,
- paddingless: Boolean,
- hasLink: Boolean,
- ariaRole: {
- type: String,
- default: ''
- }
- },
- computed: {
- anchorClasses: function anchorClasses() {
- return {
- 'is-disabled': this.$parent.disabled || this.disabled,
- 'is-paddingless': this.paddingless,
- 'is-active': this.value !== null && this.value === this.$parent.selected
- };
- },
- itemClasses: function itemClasses() {
- return {
- 'dropdown-item': !this.hasLink,
- 'is-disabled': this.disabled,
- 'is-paddingless': this.paddingless,
- 'is-active': this.value !== null && this.value === this.$parent.selected,
- 'has-link': this.hasLink
- };
- },
- ariaRoleItem: function ariaRoleItem() {
- return this.ariaRole === 'menuitem' || this.ariaRole === 'listitem' ? this.ariaRole : null;
- },
-
- /**
- * Check if item can be clickable.
- */
- isClickable: function isClickable() {
- return !this.$parent.disabled && !this.separator && !this.disabled && !this.custom;
- }
- },
- methods: {
- /**
- * Click listener, select the item.
- */
- selectItem: function selectItem() {
- if (!this.isClickable) return;
-
- this.$parent.selectItem(this.value);
- this.$emit('click');
- }
- },
- created: function created() {
- if (!this.$parent.$data._isDropdown) {
- this.$destroy();
- throw new Error('You should wrap bDropdownItem on a bDropdown');
- }
- }
- });
-
- /***/ }),
- /* 125 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return (_vm.separator) ? _c('hr', {
- staticClass: "dropdown-divider"
- }) : (!_vm.custom && !_vm.hasLink) ? _c('a', {
- staticClass: "dropdown-item",
- class: _vm.anchorClasses,
- attrs: {
- "role": _vm.ariaRoleItem,
- "tabindex": "0"
- },
- on: {
- "click": _vm.selectItem
- }
- }, [_vm._t("default")], 2) : _c('div', {
- class: _vm.itemClasses,
- attrs: {
- "role": _vm.ariaRoleItem,
- "tabindex": "0"
- },
- on: {
- "click": _vm.selectItem
- }
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
-
- /***/ }),
- /* 126 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FieldBody__ = __webpack_require__(127);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FieldBody___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__FieldBody__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BField',
- components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__FieldBody___default.a.name, __WEBPACK_IMPORTED_MODULE_1__FieldBody___default.a),
- props: {
- type: [String, Object],
- label: String,
- labelFor: String,
- message: [String, Array, Object],
- grouped: Boolean,
- groupMultiline: Boolean,
- position: String,
- expanded: Boolean,
- horizontal: Boolean,
- addons: {
- type: Boolean,
- default: true
- },
- customClass: String
- },
- data: function data() {
- return {
- newType: this.type,
- newMessage: this.message,
- fieldLabelSize: null,
- _isField: true // Used internally by Input and Select
- };
- },
-
- computed: {
- rootClasses: function rootClasses() {
- return [this.newPosition, {
- 'is-expanded': this.expanded,
- 'is-grouped-multiline': this.groupMultiline,
- 'is-horizontal': this.horizontal
- }];
- },
-
- /**
- * Correct Bulma class for the side of the addon or group.
- *
- * This is not kept like the others (is-small, etc.),
- * because since 'has-addons' is set automatically it
- * doesn't make sense to teach users what addons are exactly.
- */
- newPosition: function newPosition() {
- if (this.position === undefined) return;
-
- var position = this.position.split('-');
- if (position.length < 1) return;
-
- var prefix = this.grouped ? 'is-grouped-' : 'has-addons-';
-
- if (this.position) return prefix + position[1];
- },
-
- /**
- * Formatted message in case it's an array
- * (each element is separated by <br> tag)
- */
- formattedMessage: function formattedMessage() {
- if (typeof this.newMessage === 'string') {
- return this.newMessage;
- } else {
- var messages = [];
- if (Array.isArray(this.newMessage)) {
- this.newMessage.forEach(function (message) {
- if (typeof message === 'string') {
- messages.push(message);
- } else {
- for (var key in message) {
- if (message[key]) {
- messages.push(key);
- }
- }
- }
- });
- } else {
- for (var key in this.newMessage) {
- if (this.newMessage[key]) {
- messages.push(key);
- }
- }
- }
- return messages.filter(function (m) {
- if (m) return m;
- }).join(' <br> ');
- }
- }
- },
- watch: {
- /**
- * Set internal type when prop change.
- */
- type: function type(value) {
- this.newType = value;
- },
-
-
- /**
- * Set internal message when prop change.
- */
- message: function message(value) {
- this.newMessage = value;
- }
- },
- methods: {
- /**
- * Field has addons if there are more than one slot
- * (element / component) in the Field.
- * Or is grouped when prop is set.
- * Is a method to be called when component re-render.
- */
- fieldType: function fieldType() {
- if (this.grouped) return 'is-grouped';
-
- var renderedNode = 0;
- if (this.$slots.default) {
- renderedNode = this.$slots.default.reduce(function (i, node) {
- return node.tag ? i + 1 : i;
- }, 0);
- }
- if (renderedNode > 1 && this.addons && !this.horizontal) {
- return 'has-addons';
- }
- }
- },
- mounted: function mounted() {
- if (this.horizontal) {
- // Bulma docs: .is-normal for any .input or .button
- var elements = this.$el.querySelectorAll('.input, .select, .button, .textarea');
- if (elements.length > 0) {
- this.fieldLabelSize = 'is-normal';
- }
- }
- }
- });
-
- /***/ }),
- /* 127 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(128),
- /* template */
- null,
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 128 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BFieldBody',
- props: {
- message: {
- type: String
- },
- type: {
- type: [String, Object]
- }
- },
- render: function render(createElement) {
- var _this = this;
-
- return createElement('div', { attrs: { 'class': 'field-body' } }, this.$slots.default.map(function (element) {
- // skip returns and comments
- if (!element.tag) {
- return element;
- }
- if (_this.message) {
- return createElement('b-field', { attrs: { message: _this.message, 'type': _this.type } }, [element]);
- }
- return createElement('b-field', { attrs: { 'type': _this.type } }, [element]);
- }));
- }
- });
-
- /***/ }),
- /* 129 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "field",
- class: [_vm.rootClasses, _vm.fieldType()]
- }, [(_vm.horizontal) ? _c('div', {
- staticClass: "field-label",
- class: [_vm.customClass, _vm.fieldLabelSize]
- }, [(_vm.label) ? _c('label', {
- staticClass: "label",
- class: _vm.customClass,
- attrs: {
- "for": _vm.labelFor
- }
- }, [_vm._v("\n " + _vm._s(_vm.label) + "\n ")]) : _vm._e()]) : [(_vm.label) ? _c('label', {
- staticClass: "label",
- class: _vm.customClass,
- attrs: {
- "for": _vm.labelFor
- }
- }, [_vm._v("\n " + _vm._s(_vm.label) + "\n ")]) : _vm._e()], _vm._v(" "), (_vm.horizontal) ? _c('b-field-body', {
- attrs: {
- "message": _vm.newMessage ? _vm.formattedMessage : '',
- "type": _vm.newType
- }
- }, [_vm._t("default")], 2) : [_vm._t("default")], _vm._v(" "), (_vm.newMessage && !_vm.horizontal) ? _c('p', {
- staticClass: "help",
- class: _vm.newType,
- domProps: {
- "innerHTML": _vm._s(_vm.formattedMessage)
- }
- }) : _vm._e()], 2)
- },staticRenderFns: []}
-
- /***/ }),
- /* 130 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(131),
- /* template */
- __webpack_require__(132),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 131 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- // These should match the variables in clockpicker.scss
- var indicatorSize = 40;
- var paddingInner = 5;
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BClockpickerFace',
- props: {
- pickerSize: Number,
- min: Number,
- max: Number,
- double: Boolean,
- value: Number,
- faceNumbers: Array,
- disabledValues: Function
- },
- data: function data() {
- return {
- isDragging: false,
- inputValue: this.value,
- prevAngle: 720
- };
- },
-
- computed: {
- /**
- * How many number indicators are shown on the face
- */
- count: function count() {
- return this.max - this.min + 1;
- },
-
- /**
- * How many number indicators are shown per ring on the face
- */
- countPerRing: function countPerRing() {
- return this.double ? this.count / 2 : this.count;
- },
-
- /**
- * Radius of the clock face
- */
- radius: function radius() {
- return this.pickerSize / 2;
- },
-
- /**
- * Radius of the outer ring of number indicators
- */
- outerRadius: function outerRadius() {
- return this.radius - paddingInner - indicatorSize / 2;
- },
-
- /**
- * Radius of the inner ring of number indicators
- */
- innerRadius: function innerRadius() {
- return Math.max(this.outerRadius * 0.6, this.outerRadius - paddingInner - indicatorSize);
- // 48px gives enough room for the outer ring of numbers
- },
-
- /**
- * The angle for each selectable value
- * For hours this ends up being 30 degrees, for minutes 6 degrees
- */
- degreesPerUnit: function degreesPerUnit() {
- return 360 / this.countPerRing;
- },
-
- /**
- * Used for calculating x/y grid location based on degrees
- */
- degrees: function degrees() {
- return this.degreesPerUnit * Math.PI / 180;
- },
-
- /**
- * Calculates the angle the clock hand should be rotated for the
- * selected value
- */
- handRotateAngle: function handRotateAngle() {
- var currentAngle = this.prevAngle;
- while (currentAngle < 0) {
- currentAngle += 360;
- }var targetAngle = this.calcHandAngle(this.displayedValue);
- var degreesDiff = this.shortestDistanceDegrees(currentAngle, targetAngle);
- var angle = this.prevAngle + degreesDiff;
- return angle;
- },
-
- /**
- * Determines how long the selector hand is based on if the
- * selected value is located along the outer or inner ring
- */
- handScale: function handScale() {
- return this.calcHandScale(this.displayedValue);
- },
- handStyle: function handStyle() {
- return {
- transform: 'rotate(' + this.handRotateAngle + 'deg) scaleY(' + this.handScale + ')',
- transition: '.3s cubic-bezier(.25,.8,.50,1)'
- };
- },
-
- /**
- * The value the hand should be pointing at
- */
- displayedValue: function displayedValue() {
- return this.inputValue == null ? this.min : this.inputValue;
- }
- },
- watch: {
- value: function value(_value) {
- if (_value !== this.inputValue) {
- this.prevAngle = this.handRotateAngle;
- }
- this.inputValue = _value;
- }
- },
- methods: {
- isDisabled: function isDisabled(value) {
- return this.disabledValues && this.disabledValues(value);
- },
-
- /**
- * Calculates the distance between two points
- */
- euclidean: function euclidean(p0, p1) {
- var dx = p1.x - p0.x;
- var dy = p1.y - p0.y;
-
- return Math.sqrt(dx * dx + dy * dy);
- },
- shortestDistanceDegrees: function shortestDistanceDegrees(start, stop) {
- var modDiff = (stop - start) % 360;
- var shortestDistance = 180 - Math.abs(Math.abs(modDiff) - 180);
- return (modDiff + 360) % 360 < 180 ? shortestDistance * 1 : shortestDistance * -1;
- },
-
- /**
- * Calculates the angle of the line from the center point
- * to the given point.
- */
- coordToAngle: function coordToAngle(center, p1) {
- var value = 2 * Math.atan2(p1.y - center.y - this.euclidean(center, p1), p1.x - center.x);
- return Math.abs(value * 180 / Math.PI);
- },
-
- /**
- * Generates the inline style translate() property for a
- * number indicator, which determines it's location on the
- * clock face
- */
- getNumberTranslate: function getNumberTranslate(value) {
- var _getNumberCoords = this.getNumberCoords(value),
- x = _getNumberCoords.x,
- y = _getNumberCoords.y;
-
- return 'translate(' + x + 'px, ' + y + 'px)';
- },
-
- /***
- * Calculates the coordinates on the clock face for a number
- * indicator value
- */
- getNumberCoords: function getNumberCoords(value) {
- var radius = this.isInnerRing(value) ? this.innerRadius : this.outerRadius;
- return {
- x: Math.round(radius * Math.sin((value - this.min) * this.degrees)),
- y: Math.round(-radius * Math.cos((value - this.min) * this.degrees))
- };
- },
- getFaceNumberClasses: function getFaceNumberClasses(num) {
- return {
- 'active': num.value === this.displayedValue,
- 'disabled': this.isDisabled(num.value)
- };
- },
-
- /**
- * Determines if a value resides on the inner ring
- */
- isInnerRing: function isInnerRing(value) {
- return this.double && value - this.min >= this.countPerRing;
- },
- calcHandAngle: function calcHandAngle(value) {
- var angle = this.degreesPerUnit * (value - this.min);
- if (this.isInnerRing(value)) angle -= 360;
- return angle;
- },
- calcHandScale: function calcHandScale(value) {
- return this.isInnerRing(value) ? this.innerRadius / this.outerRadius : 1;
- },
- onMouseDown: function onMouseDown(e) {
- e.preventDefault();
- this.isDragging = true;
- this.onDragMove(e);
- },
- onMouseUp: function onMouseUp() {
- this.isDragging = false;
- if (!this.isDisabled(this.inputValue)) {
- this.$emit('change', this.inputValue);
- }
- },
- onDragMove: function onDragMove(e) {
- e.preventDefault();
- if (!this.isDragging && e.type !== 'click') return;
-
- var _$refs$clock$getBound = this.$refs.clock.getBoundingClientRect(),
- width = _$refs$clock$getBound.width,
- top = _$refs$clock$getBound.top,
- left = _$refs$clock$getBound.left;
-
- var _ref = 'touches' in e ? e.touches[0] : e,
- clientX = _ref.clientX,
- clientY = _ref.clientY;
-
- var center = { x: width / 2, y: -width / 2 };
- var coords = { x: clientX - left, y: top - clientY };
- var handAngle = Math.round(this.coordToAngle(center, coords) + 360) % 360;
- var insideClick = this.double && this.euclidean(center, coords) < (this.outerRadius + this.innerRadius) / 2 - 16;
-
- var value = Math.round(handAngle / this.degreesPerUnit) + this.min + (insideClick ? this.countPerRing : 0);
-
- // Necessary to fix edge case when selecting left part of max value
- if (handAngle >= 360 - this.degreesPerUnit / 2) {
- value = insideClick ? this.max : this.min;
- }
- this.update(value);
- },
- update: function update(value) {
- if (this.inputValue !== value && !this.isDisabled(value)) {
- this.prevAngle = this.handRotateAngle;
- this.inputValue = value;
- this.$emit('input', value);
- }
- }
- }
- });
-
- /***/ }),
- /* 132 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "b-clockpicker-face",
- on: {
- "mousedown": _vm.onMouseDown,
- "mouseup": _vm.onMouseUp,
- "mousemove": _vm.onDragMove,
- "touchstart": _vm.onMouseDown,
- "touchend": _vm.onMouseUp,
- "touchmove": _vm.onDragMove
- }
- }, [_c('div', {
- ref: "clock",
- staticClass: "b-clockpicker-face-outer-ring"
- }, [_c('div', {
- staticClass: "b-clockpicker-face-hand",
- style: (_vm.handStyle)
- }), _vm._v(" "), _vm._l((_vm.faceNumbers), function(num, index) {
- return _c('span', {
- key: index,
- staticClass: "b-clockpicker-face-number",
- class: _vm.getFaceNumberClasses(num),
- style: ({
- transform: _vm.getNumberTranslate(num.value)
- })
- }, [_c('span', [_vm._v(_vm._s(num.label))])])
- })], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 133 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "b-clockpicker control",
- class: [_vm.size, _vm.type, {
- 'is-expanded': _vm.expanded
- }]
- }, [(!_vm.isMobile || _vm.inline) ? _c('b-dropdown', {
- ref: "dropdown",
- attrs: {
- "position": _vm.position,
- "disabled": _vm.disabled,
- "inline": _vm.inline
- }
- }, [(!_vm.inline) ? _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "slot": "trigger",
- "autocomplete": "off",
- "value": _vm.formatValue(_vm.dateSelected),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "loading": _vm.loading,
- "disabled": _vm.disabled,
- "readonly": !_vm.editable,
- "rounded": _vm.rounded
- },
- on: {
- "focus": function($event) {
- _vm.$emit('focus', $event)
- },
- "blur": function($event) {
- _vm.$emit('blur', $event) && _vm.checkHtml5Validity()
- }
- },
- nativeOn: {
- "change": function($event) {
- _vm.onChange($event.target.value)
- }
- },
- slot: "trigger"
- }, 'b-input', _vm.$attrs, false)) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "card",
- attrs: {
- "disabled": _vm.disabled,
- "custom": ""
- }
- }, [(_vm.inline) ? _c('header', {
- staticClass: "card-header"
- }, [_c('div', {
- staticClass: "b-clockpicker-header card-header-title"
- }, [_c('div', {
- staticClass: "b-clockpicker-time"
- }, [_c('span', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.isSelectingHour
- },
- on: {
- "click": function($event) {
- _vm.isSelectingHour = true
- }
- }
- }, [_vm._v(_vm._s(_vm.hoursDisplay))]), _vm._v(" "), _c('span', [_vm._v(":")]), _vm._v(" "), _c('span', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: !_vm.isSelectingHour
- },
- on: {
- "click": function($event) {
- _vm.isSelectingHour = false
- }
- }
- }, [_vm._v(_vm._s(_vm.minutesDisplay))])]), _vm._v(" "), (!_vm.isHourFormat24) ? _c('div', {
- staticClass: "b-clockpicker-period"
- }, [_c('div', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.meridienSelected == _vm.AM
- },
- on: {
- "click": function($event) {
- _vm.onMeridienClick(_vm.AM)
- }
- }
- }, [_vm._v("am")]), _vm._v(" "), _c('div', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.meridienSelected == _vm.PM
- },
- on: {
- "click": function($event) {
- _vm.onMeridienClick(_vm.PM)
- }
- }
- }, [_vm._v("pm")])]) : _vm._e()])]) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "card-content"
- }, [_c('div', {
- staticClass: "b-clockpicker-body",
- style: ({
- width: _vm.faceSize + 'px',
- height: _vm.faceSize + 'px'
- })
- }, [(!_vm.inline) ? _c('div', {
- staticClass: "b-clockpicker-time"
- }, [_c('div', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.isSelectingHour
- },
- on: {
- "click": function($event) {
- _vm.isSelectingHour = true
- }
- }
- }, [_vm._v("Hours")]), _vm._v(" "), _c('span', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: !_vm.isSelectingHour
- },
- on: {
- "click": function($event) {
- _vm.isSelectingHour = false
- }
- }
- }, [_vm._v("Min")])]) : _vm._e(), _vm._v(" "), (!_vm.isHourFormat24 && !_vm.inline) ? _c('div', {
- staticClass: "b-clockpicker-period"
- }, [_c('div', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.meridienSelected == _vm.AM
- },
- on: {
- "click": function($event) {
- _vm.onMeridienClick(_vm.AM)
- }
- }
- }, [_vm._v(_vm._s(_vm.AM))]), _vm._v(" "), _c('div', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.meridienSelected == _vm.PM
- },
- on: {
- "click": function($event) {
- _vm.onMeridienClick(_vm.PM)
- }
- }
- }, [_vm._v(_vm._s(_vm.PM))])]) : _vm._e(), _vm._v(" "), _c('b-clockpicker-face', {
- attrs: {
- "picker-size": _vm.faceSize,
- "min": _vm.minFaceValue,
- "max": _vm.maxFaceValue,
- "face-numbers": _vm.isSelectingHour ? _vm.hours : _vm.minutes,
- "disabled-values": _vm.faceDisabledValues(),
- "double": _vm.isSelectingHour && _vm.isHourFormat24,
- "value": _vm.isSelectingHour ? _vm.hoursSelected : _vm.minutesSelected
- },
- on: {
- "input": _vm.onClockInput,
- "change": _vm.onClockChange
- }
- })], 1)]), _vm._v(" "), (_vm.$slots.default !== undefined && _vm.$slots.default.length) ? _c('footer', {
- staticClass: "b-clockpicker-footer card-footer"
- }, [_vm._t("default")], 2) : _vm._e()])], 1) : _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "type": "time",
- "autocomplete": "off",
- "value": _vm.formatHHMMSS(_vm.value),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "loading": _vm.loading,
- "max": _vm.formatHHMMSS(_vm.maxTime),
- "min": _vm.formatHHMMSS(_vm.minTime),
- "disabled": _vm.disabled,
- "readonly": false
- },
- on: {
- "focus": function($event) {
- _vm.$emit('focus', $event)
- },
- "blur": function($event) {
- _vm.$emit('blur', $event) && _vm.checkHtml5Validity()
- }
- },
- nativeOn: {
- "change": function($event) {
- _vm.onChangeNativePicker($event)
- }
- }
- }, 'b-input', _vm.$attrs, false))], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 134 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(135),
- /* template */
- __webpack_require__(144),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 135 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_FormElementMixin__ = __webpack_require__(10);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown__ = __webpack_require__(28);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem__ = __webpack_require__(29);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__input_Input__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__input_Input__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__field_Field__ = __webpack_require__(30);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__field_Field___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__field_Field__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__select_Select__ = __webpack_require__(31);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__select_Select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__select_Select__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__DatepickerTable__ = __webpack_require__(138);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__DatepickerTable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10__DatepickerTable__);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
-
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDatepicker',
- components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_10__DatepickerTable___default.a.name, __WEBPACK_IMPORTED_MODULE_10__DatepickerTable___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_6__input_Input___default.a.name, __WEBPACK_IMPORTED_MODULE_6__input_Input___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_7__field_Field___default.a.name, __WEBPACK_IMPORTED_MODULE_7__field_Field___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_8__select_Select___default.a.name, __WEBPACK_IMPORTED_MODULE_8__select_Select___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_9__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_9__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown___default.a.name, __WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem___default.a.name, __WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem___default.a), _components),
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: Date,
- dayNames: {
- type: Array,
- default: function _default() {
- if (Array.isArray(__WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDayNames)) {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDayNames;
- } else {
- return ['Su', 'M', 'Tu', 'W', 'Th', 'F', 'S'];
- }
- }
- },
- monthNames: {
- type: Array,
- default: function _default() {
- if (Array.isArray(__WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultMonthNames)) {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultMonthNames;
- } else {
- return ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
- }
- }
- },
- firstDayOfWeek: {
- type: Number,
- default: function _default() {
- if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultFirstDayOfWeek === 'number') {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultFirstDayOfWeek;
- } else {
- return 0;
- }
- }
- },
- inline: Boolean,
- minDate: Date,
- maxDate: Date,
- focusedDate: Date,
- placeholder: String,
- editable: Boolean,
- disabled: Boolean,
- unselectableDates: Array,
- unselectableDaysOfWeek: {
- type: Array,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultUnselectableDaysOfWeek;
- }
- },
- selectableDates: Array,
- dateFormatter: {
- type: Function,
- default: function _default(date) {
- if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateFormatter === 'function') {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateFormatter(date);
- } else {
- var yyyyMMdd = date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + date.getDate();
- var d = new Date(yyyyMMdd);
- return d.toLocaleDateString();
- }
- }
- },
- dateParser: {
- type: Function,
- default: function _default(date) {
- if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateParser === 'function') {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateParser(date);
- } else {
- return new Date(Date.parse(date));
- }
- }
- },
- dateCreator: {
- type: Function,
- default: function _default() {
- if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateCreator === 'function') {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateCreator();
- } else {
- return new Date();
- }
- }
- },
- mobileNative: {
- type: Boolean,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDatepickerMobileNative;
- }
- },
- position: String,
- events: Array,
- indicators: {
- type: String,
- default: 'dots'
- },
- openOnFocus: Boolean
- },
- data: function data() {
- var focusedDate = this.value || this.focusedDate || this.dateCreator();
-
- return {
- dateSelected: this.value,
- focusedDateData: {
- month: focusedDate.getMonth(),
- year: focusedDate.getFullYear()
- },
- _elementRef: 'input',
- _isDatepicker: true
- };
- },
-
- computed: {
- /*
- * Returns an array of years for the year dropdown. If earliest/latest
- * dates are set by props, range of years will fall within those dates.
- */
- listOfYears: function listOfYears() {
- var latestYear = this.focusedDateData.year + 3;
- if (this.maxDate && this.maxDate.getFullYear() < latestYear) {
- latestYear = this.maxDate.getFullYear();
- }
-
- var earliestYear = latestYear - 100 + 3;
- if (this.minDate && this.minDate.getFullYear() > earliestYear) {
- earliestYear = this.minDate.getFullYear();
- }
-
- var arrayOfYears = [];
- for (var i = earliestYear; i <= latestYear; i++) {
- arrayOfYears.push(i);
- }
-
- return arrayOfYears.reverse();
- },
- isFirstMonth: function isFirstMonth() {
- if (!this.minDate) return false;
- var dateToCheck = new Date(this.focusedDateData.year, this.focusedDateData.month);
- var date = new Date(this.minDate.getFullYear(), this.minDate.getMonth());
- return dateToCheck <= date;
- },
- isLastMonth: function isLastMonth() {
- if (!this.maxDate) return false;
- var dateToCheck = new Date(this.focusedDateData.year, this.focusedDateData.month);
- var date = new Date(this.maxDate.getFullYear(), this.maxDate.getMonth());
- return dateToCheck >= date;
- },
- isMobile: function isMobile() {
- return this.mobileNative && __WEBPACK_IMPORTED_MODULE_2__utils_helpers__["c" /* isMobile */].any();
- }
- },
- watch: {
- /*
- * Emit input event with selected date as payload, set isActive to false.
- * Update internal focusedDateData
- */
- dateSelected: function dateSelected(value) {
- var currentDate = !value ? this.dateCreator() : value;
- this.focusedDateData = {
- month: currentDate.getMonth(),
- year: currentDate.getFullYear()
- };
- this.$emit('input', value);
- this.toggle();
- },
-
-
- /**
- * When v-model is changed:
- * 1. Update internal value.
- * 2. If it's invalid, validate again.
- */
- value: function value(_value) {
- this.dateSelected = _value;
-
- !this.isValid && this.$refs.input.checkHtml5Validity();
- },
- focusedDate: function focusedDate(value) {
- if (value) {
- this.focusedDateData = {
- month: value.getMonth(),
- year: value.getFullYear()
- };
- }
- },
-
-
- /*
- * Emit input event on month and/or year change
- */
- 'focusedDateData.month': function focusedDateDataMonth(value) {
- this.$emit('change-month', value);
- },
- 'focusedDateData.year': function focusedDateDataYear(value) {
- this.$emit('change-year', value);
- }
- },
- methods: {
- /*
- * Emit input event with selected date as payload for v-model in parent
- */
- updateSelectedDate: function updateSelectedDate(date) {
- this.dateSelected = date;
- },
-
-
- /*
- * Parse string into date
- */
- onChange: function onChange(value) {
- var date = this.dateParser(value);
- if (date && !isNaN(date)) {
- this.dateSelected = date;
- } else {
- // Force refresh input value when not valid date
- this.dateSelected = null;
- this.$refs.input.newValue = this.dateSelected;
- }
- },
-
-
- /*
- * Format date into string
- */
- formatValue: function formatValue(value) {
- if (value && !isNaN(value)) {
- return this.dateFormatter(value);
- } else {
- return null;
- }
- },
-
-
- /*
- * Either decrement month by 1 if not January or decrement year by 1
- * and set month to 11 (December)
- */
- decrementMonth: function decrementMonth() {
- if (this.disabled) return;
-
- if (this.focusedDateData.month > 0) {
- this.focusedDateData.month -= 1;
- } else {
- this.focusedDateData.month = 11;
- this.focusedDateData.year -= 1;
- }
- },
-
-
- /*
- * Either increment month by 1 if not December or increment year by 1
- * and set month to 0 (January)
- */
- incrementMonth: function incrementMonth() {
- if (this.disabled) return;
-
- if (this.focusedDateData.month < 11) {
- this.focusedDateData.month += 1;
- } else {
- this.focusedDateData.month = 0;
- this.focusedDateData.year += 1;
- }
- },
-
-
- /*
- * Format date into string 'YYYY-MM-DD'
- */
- formatYYYYMMDD: function formatYYYYMMDD(value) {
- var date = new Date(value);
- if (value && !isNaN(date)) {
- var year = date.getFullYear();
- var month = date.getMonth() + 1;
- var day = date.getDate();
- return year + '-' + ((month < 10 ? '0' : '') + month) + '-' + ((day < 10 ? '0' : '') + day);
- }
- return '';
- },
-
-
- /*
- * Parse date from string
- */
- onChangeNativePicker: function onChangeNativePicker(event) {
- var date = event.target.value;
- this.dateSelected = date ? new Date(date.replace(/-/g, '/')) : null;
- },
-
-
- /*
- * Toggle datepicker
- */
- toggle: function toggle(active) {
- if (this.$refs.dropdown) {
- this.$refs.dropdown.isActive = typeof active === 'boolean' ? active : !this.$refs.dropdown.isActive;
- }
- },
-
-
- /*
- * Call default onFocus method and show datepicker
- */
- handleOnFocus: function handleOnFocus() {
- this.onFocus();
- if (this.openOnFocus) {
- this.toggle(true);
- }
- },
-
-
- /**
- * Keypress event that is bound to the document.
- */
- keyPress: function keyPress(event) {
- // Esc key
- if (this.$refs.dropdown.isActive && event.keyCode === 27) {
- this.toggle(false);
- }
- }
- },
- created: function created() {
- if (typeof window !== 'undefined') {
- document.addEventListener('keyup', this.keyPress);
- }
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') {
- document.removeEventListener('keyup', this.keyPress);
- }
- }
- });
-
- /***/ }),
- /* 136 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__ = __webpack_require__(10);
-
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BSelect',
- components: __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default.a),
- mixins: [__WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: {
- type: [String, Number, Boolean, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a, Function],
- default: null
- },
- placeholder: String,
- multiple: Boolean,
- nativeSize: [String, Number]
- },
- data: function data() {
- return {
- selected: this.value,
- _elementRef: 'select'
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.selected;
- },
- set: function set(value) {
- this.selected = value;
- this.$emit('input', value);
- !this.isValid && this.checkHtml5Validity();
- }
- },
- spanClasses: function spanClasses() {
- return [this.size, this.statusType, {
- 'is-fullwidth': this.expanded,
- 'is-loading': this.loading,
- 'is-multiple': this.multiple,
- 'is-rounded': this.rounded,
- 'is-empty': this.selected === null
- }];
- }
- },
- watch: {
- /**
- * When v-model is changed:
- * 1. Set the selected option.
- * 2. If it's invalid, validate again.
- */
- value: function value(_value) {
- this.selected = _value;
- !this.isValid && this.checkHtml5Validity();
- }
- }
- });
-
- /***/ }),
- /* 137 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "control",
- class: {
- 'is-expanded': _vm.expanded, 'has-icons-left': _vm.icon
- }
- }, [_c('span', {
- staticClass: "select",
- class: _vm.spanClasses
- }, [_c('select', _vm._b({
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- ref: "select",
- attrs: {
- "multiple": _vm.multiple,
- "size": _vm.nativeSize
- },
- on: {
- "blur": function($event) {
- _vm.$emit('blur', $event) && _vm.checkHtml5Validity()
- },
- "focus": function($event) {
- _vm.$emit('focus', $event)
- },
- "change": function($event) {
- var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {
- return o.selected
- }).map(function(o) {
- var val = "_value" in o ? o._value : o.value;
- return val
- });
- _vm.computedValue = $event.target.multiple ? $$selectedVal : $$selectedVal[0]
- }
- }
- }, 'select', _vm.$attrs, false), [(_vm.placeholder) ? [(_vm.computedValue == null) ? _c('option', {
- attrs: {
- "disabled": "",
- "hidden": ""
- },
- domProps: {
- "value": null
- }
- }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")]) : _vm._e()] : _vm._e(), _vm._v(" "), _vm._t("default")], 2)]), _vm._v(" "), (_vm.icon) ? _c('b-icon', {
- staticClass: "is-left",
- attrs: {
- "icon": _vm.icon,
- "pack": _vm.iconPack,
- "size": _vm.iconSize
- }
- }) : _vm._e()], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 138 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(139),
- /* template */
- __webpack_require__(143),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 139 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow__ = __webpack_require__(140);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDatepickerTable',
- components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow___default.a.name, __WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow___default.a),
- props: {
- value: Date,
- dayNames: Array,
- monthNames: Array,
- firstDayOfWeek: Number,
- events: Array,
- indicators: String,
- minDate: Date,
- maxDate: Date,
- focused: Object,
- disabled: Boolean,
- dateCreator: Function,
- unselectableDates: Array,
- unselectableDaysOfWeek: Array,
- selectableDates: Array
- },
- computed: {
- visibleDayNames: function visibleDayNames() {
- var visibleDayNames = [];
- var index = this.firstDayOfWeek;
- while (visibleDayNames.length < this.dayNames.length) {
- var currentDayName = this.dayNames[index % this.dayNames.length];
- visibleDayNames.push(currentDayName);
- index++;
- }
- return visibleDayNames;
- },
- hasEvents: function hasEvents() {
- return this.events && this.events.length;
- },
-
-
- /*
- * Return array of all events in the specified month
- */
- eventsInThisMonth: function eventsInThisMonth() {
- if (!this.events) return [];
-
- var monthEvents = [];
-
- for (var i = 0; i < this.events.length; i++) {
- var event = this.events[i];
-
- if (!event.hasOwnProperty('date')) {
- event = { date: event };
- }
- if (!event.hasOwnProperty('type')) {
- event.type = 'is-primary';
- }
- if (event.date.getMonth() === this.focused.month && event.date.getFullYear() === this.focused.year) {
- monthEvents.push(event);
- }
- }
-
- return monthEvents;
- },
-
- /*
- * Return array of all weeks in the specified month
- */
- weeksInThisMonth: function weeksInThisMonth() {
- var month = this.focused.month;
- var year = this.focused.year;
- var weeksInThisMonth = [];
- var daysInThisMonth = new Date(year, month + 1, 0).getDate();
-
- var startingDay = 1;
-
- while (startingDay <= daysInThisMonth + 6) {
- var newWeek = this.weekBuilder(startingDay, month, year);
- var weekValid = false;
-
- newWeek.forEach(function (day) {
- if (day.getMonth() === month) {
- weekValid = true;
- }
- });
-
- if (weekValid) {
- weeksInThisMonth.push(newWeek);
- }
-
- startingDay += 7;
- }
-
- return weeksInThisMonth;
- }
- },
- methods: {
- /*
- * Emit input event with selected date as payload for v-model in parent
- */
- updateSelectedDate: function updateSelectedDate(date) {
- this.$emit('input', date);
- },
-
-
- /*
- * Return array of all days in the week that the startingDate is within
- */
- weekBuilder: function weekBuilder(startingDate, month, year) {
- var thisMonth = new Date(year, month);
-
- var thisWeek = [];
-
- var dayOfWeek = new Date(year, month, startingDate).getDay();
-
- var end = dayOfWeek >= this.firstDayOfWeek ? dayOfWeek - this.firstDayOfWeek : 7 - this.firstDayOfWeek + dayOfWeek;
-
- var daysAgo = 1;
- for (var i = 0; i < end; i++) {
- thisWeek.unshift(new Date(thisMonth.getFullYear(), thisMonth.getMonth(), startingDate - daysAgo));
- daysAgo++;
- }
-
- thisWeek.push(new Date(year, month, startingDate));
-
- var daysForward = 1;
- while (thisWeek.length < 7) {
- thisWeek.push(new Date(year, month, startingDate + daysForward));
- daysForward++;
- }
-
- return thisWeek;
- },
- eventsInThisWeek: function eventsInThisWeek(week) {
- return this.eventsInThisMonth.filter(function (event) {
- var stripped = new Date(Date.parse(event.date));
- stripped.setHours(0);
- stripped.setMinutes(0);
- stripped.setSeconds(0);
- stripped.setMilliseconds(0);
- var timed = stripped.getTime();
-
- return week.some(function (weekDate) {
- return weekDate.getTime() === timed;
- });
- });
- }
- }
- });
-
- /***/ }),
- /* 140 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(141),
- /* template */
- __webpack_require__(142),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 141 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDatepickerTableRow',
- props: {
- selectedDate: Date,
- week: {
- type: Array,
- required: true
- },
- month: {
- type: Number,
- required: true
- },
- minDate: Date,
- maxDate: Date,
- disabled: Boolean,
- unselectableDates: Array,
- unselectableDaysOfWeek: Array,
- selectableDates: Array,
- events: Array,
- indicators: String,
- dateCreator: Function
- },
- methods: {
- /*
- * Check that selected day is within earliest/latest params and
- * is within this month
- */
- selectableDate: function selectableDate(day) {
- var validity = [];
-
- if (this.minDate) {
- validity.push(day >= this.minDate);
- }
-
- if (this.maxDate) {
- validity.push(day <= this.maxDate);
- }
-
- validity.push(day.getMonth() === this.month);
-
- if (this.selectableDates) {
- for (var i = 0; i < this.selectableDates.length; i++) {
- var enabledDate = this.selectableDates[i];
- if (day.getDate() === enabledDate.getDate() && day.getFullYear() === enabledDate.getFullYear() && day.getMonth() === enabledDate.getMonth()) {
- return true;
- } else {
- validity.push(false);
- }
- }
- }
-
- if (this.unselectableDates) {
- for (var _i = 0; _i < this.unselectableDates.length; _i++) {
- var disabledDate = this.unselectableDates[_i];
- validity.push(day.getDate() !== disabledDate.getDate() || day.getFullYear() !== disabledDate.getFullYear() || day.getMonth() !== disabledDate.getMonth());
- }
- }
-
- if (this.unselectableDaysOfWeek) {
- for (var _i2 = 0; _i2 < this.unselectableDaysOfWeek.length; _i2++) {
- var dayOfWeek = this.unselectableDaysOfWeek[_i2];
- validity.push(day.getDay() !== dayOfWeek);
- }
- }
-
- return validity.indexOf(false) < 0;
- },
-
-
- /*
- * Emit select event with chosen date as payload
- */
- emitChosenDate: function emitChosenDate(day) {
- if (this.disabled) return;
-
- if (this.selectableDate(day)) {
- this.$emit('select', day);
- }
- },
- eventsDateMatch: function eventsDateMatch(day) {
- if (!this.events.length) return false;
-
- var dayEvents = [];
-
- for (var i = 0; i < this.events.length; i++) {
- if (this.events[i].date.getDay() === day.getDay()) {
- dayEvents.push(this.events[i]);
- }
- }
-
- if (!dayEvents.length) {
- return false;
- }
-
- return dayEvents;
- },
-
-
- /*
- * Build classObject for cell using validations
- */
- classObject: function classObject(day) {
- function dateMatch(dateOne, dateTwo) {
- // if either date is null or undefined, return false
- if (!dateOne || !dateTwo) {
- return false;
- }
-
- return dateOne.getDate() === dateTwo.getDate() && dateOne.getFullYear() === dateTwo.getFullYear() && dateOne.getMonth() === dateTwo.getMonth();
- }
-
- return {
- 'is-selected': dateMatch(day, this.selectedDate),
- 'is-today': dateMatch(day, this.dateCreator()),
- 'is-selectable': this.selectableDate(day) && !this.disabled,
- 'is-unselectable': !this.selectableDate(day) || this.disabled
- };
- }
- }
- });
-
- /***/ }),
- /* 142 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "datepicker-row"
- }, [_vm._l((_vm.week), function(day, index) {
- return [(_vm.selectableDate(day) && !_vm.disabled) ? _c('a', {
- key: index,
- staticClass: "datepicker-cell",
- class: [_vm.classObject(day), {
- 'has-event': _vm.eventsDateMatch(day)
- }, _vm.indicators],
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": _vm.disabled
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.emitChosenDate(day)
- },
- "keydown": [function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.emitChosenDate(day)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
- $event.preventDefault();
- _vm.emitChosenDate(day)
- }]
- }
- }, [_vm._v("\n " + _vm._s(day.getDate()) + "\n\n "), (_vm.eventsDateMatch(day)) ? _c('div', {
- staticClass: "events"
- }, _vm._l((_vm.eventsDateMatch(day)), function(event, index) {
- return _c('div', {
- key: index,
- staticClass: "event",
- class: event.type
- })
- })) : _vm._e()]) : _c('div', {
- key: index,
- staticClass: "datepicker-cell",
- class: _vm.classObject(day)
- }, [_vm._v("\n " + _vm._s(day.getDate()) + "\n ")])]
- })], 2)
- },staticRenderFns: []}
-
- /***/ }),
- /* 143 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('section', {
- staticClass: "datepicker-table"
- }, [_c('header', {
- staticClass: "datepicker-header"
- }, _vm._l((_vm.visibleDayNames), function(day, index) {
- return _c('div', {
- key: index,
- staticClass: "datepicker-cell"
- }, [_vm._v("\n " + _vm._s(day) + "\n ")])
- })), _vm._v(" "), _c('div', {
- staticClass: "datepicker-body",
- class: {
- 'has-events': _vm.hasEvents
- }
- }, _vm._l((_vm.weeksInThisMonth), function(week, index) {
- return _c('b-datepicker-table-row', {
- key: index,
- attrs: {
- "selected-date": _vm.value,
- "week": week,
- "month": _vm.focused.month,
- "min-date": _vm.minDate,
- "max-date": _vm.maxDate,
- "disabled": _vm.disabled,
- "unselectable-dates": _vm.unselectableDates,
- "unselectable-days-of-week": _vm.unselectableDaysOfWeek,
- "selectable-dates": _vm.selectableDates,
- "events": _vm.eventsInThisWeek(week),
- "indicators": _vm.indicators,
- "date-creator": _vm.dateCreator
- },
- on: {
- "select": _vm.updateSelectedDate
- }
- })
- }))])
- },staticRenderFns: []}
-
- /***/ }),
- /* 144 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "datepicker control",
- class: [_vm.size, {
- 'is-expanded': _vm.expanded
- }]
- }, [(!_vm.isMobile || _vm.inline) ? _c('b-dropdown', {
- ref: "dropdown",
- attrs: {
- "position": _vm.position,
- "disabled": _vm.disabled,
- "inline": _vm.inline
- }
- }, [(!_vm.inline) ? _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "slot": "trigger",
- "autocomplete": "off",
- "value": _vm.formatValue(_vm.dateSelected),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "rounded": _vm.rounded,
- "loading": _vm.loading,
- "disabled": _vm.disabled,
- "readonly": !_vm.editable
- },
- on: {
- "focus": _vm.handleOnFocus,
- "blur": _vm.onBlur
- },
- nativeOn: {
- "click": function($event) {
- $event.stopPropagation();
- _vm.toggle(true)
- },
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- _vm.toggle(true)
- },
- "change": function($event) {
- _vm.onChange($event.target.value)
- }
- },
- slot: "trigger"
- }, 'b-input', _vm.$attrs, false)) : _vm._e(), _vm._v(" "), _c('b-dropdown-item', {
- attrs: {
- "disabled": _vm.disabled,
- "custom": ""
- }
- }, [_c('header', {
- staticClass: "datepicker-header"
- }, [(_vm.$slots.header !== undefined && _vm.$slots.header.length) ? [_vm._t("header")] : _c('div', {
- staticClass: "pagination field is-centered",
- class: _vm.size
- }, [_c('a', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (!_vm.isFirstMonth && !_vm.disabled),
- expression: "!isFirstMonth && !disabled"
- }],
- staticClass: "pagination-previous",
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": _vm.disabled
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.decrementMonth($event)
- },
- "keydown": [function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.decrementMonth($event)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
- $event.preventDefault();
- _vm.decrementMonth($event)
- }]
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "chevron-left",
- "pack": _vm.iconPack,
- "both": "",
- "type": "is-primary is-clickable"
- }
- })], 1), _vm._v(" "), _c('a', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (!_vm.isLastMonth && !_vm.disabled),
- expression: "!isLastMonth && !disabled"
- }],
- staticClass: "pagination-next",
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": _vm.disabled
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.incrementMonth($event)
- },
- "keydown": [function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.incrementMonth($event)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
- $event.preventDefault();
- _vm.incrementMonth($event)
- }]
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "chevron-right",
- "pack": _vm.iconPack,
- "both": "",
- "type": "is-primary is-clickable"
- }
- })], 1), _vm._v(" "), _c('div', {
- staticClass: "pagination-list"
- }, [_c('b-field', [_c('b-select', {
- attrs: {
- "disabled": _vm.disabled,
- "size": _vm.size
- },
- model: {
- value: (_vm.focusedDateData.month),
- callback: function($$v) {
- _vm.$set(_vm.focusedDateData, "month", $$v)
- },
- expression: "focusedDateData.month"
- }
- }, _vm._l((_vm.monthNames), function(month, index) {
- return _c('option', {
- key: month,
- domProps: {
- "value": index
- }
- }, [_vm._v("\n " + _vm._s(month) + "\n ")])
- })), _vm._v(" "), _c('b-select', {
- attrs: {
- "disabled": _vm.disabled,
- "size": _vm.size
- },
- model: {
- value: (_vm.focusedDateData.year),
- callback: function($$v) {
- _vm.$set(_vm.focusedDateData, "year", $$v)
- },
- expression: "focusedDateData.year"
- }
- }, _vm._l((_vm.listOfYears), function(year) {
- return _c('option', {
- key: year,
- domProps: {
- "value": year
- }
- }, [_vm._v("\n " + _vm._s(year) + "\n ")])
- }))], 1)], 1)])], 2), _vm._v(" "), _c('div', {
- staticClass: "datepicker-content"
- }, [_c('b-datepicker-table', {
- attrs: {
- "day-names": _vm.dayNames,
- "month-names": _vm.monthNames,
- "first-day-of-week": _vm.firstDayOfWeek,
- "min-date": _vm.minDate,
- "max-date": _vm.maxDate,
- "focused": _vm.focusedDateData,
- "disabled": _vm.disabled,
- "unselectable-dates": _vm.unselectableDates,
- "unselectable-days-of-week": _vm.unselectableDaysOfWeek,
- "selectable-dates": _vm.selectableDates,
- "events": _vm.events,
- "indicators": _vm.indicators,
- "date-creator": _vm.dateCreator
- },
- on: {
- "close": function($event) {
- _vm.toggle(false)
- }
- },
- model: {
- value: (_vm.dateSelected),
- callback: function($$v) {
- _vm.dateSelected = $$v
- },
- expression: "dateSelected"
- }
- })], 1), _vm._v(" "), (_vm.$slots.default !== undefined && _vm.$slots.default.length) ? _c('footer', {
- staticClass: "datepicker-footer"
- }, [_vm._t("default")], 2) : _vm._e()])], 1) : _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "type": "date",
- "autocomplete": "off",
- "value": _vm.formatYYYYMMDD(_vm.value),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "loading": _vm.loading,
- "max": _vm.formatYYYYMMDD(_vm.maxDate),
- "min": _vm.formatYYYYMMDD(_vm.minDate),
- "disabled": _vm.disabled,
- "readonly": false
- },
- on: {
- "focus": _vm.handleOnFocus,
- "blur": _vm.onBlur
- },
- nativeOn: {
- "change": function($event) {
- _vm.onChangeNativePicker($event)
- },
- "click": function($event) {
- $event.stopPropagation();
- _vm.toggle(true)
- },
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- _vm.toggle(true)
- }
- }
- }, 'b-input', _vm.$attrs, false))], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 145 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(146),
- /* template */
- __webpack_require__(149),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 146 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__modal_Modal__ = __webpack_require__(63);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__modal_Modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__modal_Modal__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_helpers__ = __webpack_require__(7);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDialog',
- components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a),
- extends: __WEBPACK_IMPORTED_MODULE_2__modal_Modal___default.a,
- props: {
- title: String,
- message: String,
- icon: String,
- iconPack: String,
- hasIcon: Boolean,
- type: {
- type: String,
- default: 'is-primary'
- },
- size: String,
- confirmText: {
- type: String,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogConfirmText ? __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogConfirmText : 'OK';
- }
- },
- cancelText: {
- type: String,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogCancelText ? __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogCancelText : 'Cancel';
- }
- },
- hasInput: Boolean, // Used internally to know if it's prompt
- inputAttrs: {
- type: Object,
- default: function _default() {
- return {};
- }
- },
- onConfirm: {
- type: Function,
- default: function _default() {}
- },
- focusOn: {
- type: String,
- default: 'confirm'
- }
- },
- data: function data() {
- var prompt = this.hasInput ? this.inputAttrs.value || '' : '';
-
- return {
- prompt: prompt,
- isActive: false,
- validationMessage: ''
- };
- },
-
- computed: {
- /**
- * Icon name (MDI) based on the type.
- */
- iconByType: function iconByType() {
- switch (this.type) {
- case 'is-info':
- return 'information';
- case 'is-success':
- return 'check-circle';
- case 'is-warning':
- return 'alert';
- case 'is-danger':
- return 'alert-circle';
- default:
- return null;
- }
- },
- showCancel: function showCancel() {
- return this.cancelOptions.indexOf('button') >= 0;
- }
- },
- methods: {
- /**
- * If it's a prompt Dialog, validate the input.
- * Call the onConfirm prop (function) and close the Dialog.
- */
- confirm: function confirm() {
- var _this = this;
-
- if (this.$refs.input !== undefined) {
- if (!this.$refs.input.checkValidity()) {
- this.validationMessage = this.$refs.input.validationMessage;
- this.$nextTick(function () {
- return _this.$refs.input.select();
- });
- return;
- }
- }
-
- this.onConfirm(this.prompt);
- this.close();
- },
-
-
- /**
- * Close the Dialog.
- */
- close: function close() {
- var _this2 = this;
-
- this.isActive = false;
- // Timeout for the animation complete before destroying
- setTimeout(function () {
- _this2.$destroy();
- Object(__WEBPACK_IMPORTED_MODULE_4__utils_helpers__["d" /* removeElement */])(_this2.$el);
- }, 150);
- }
- },
- beforeMount: function beforeMount() {
- var _this3 = this;
-
- // Insert the Dialog component in body tag
- this.$nextTick(function () {
- document.body.appendChild(_this3.$el);
- });
- },
- mounted: function mounted() {
- var _this4 = this;
-
- this.isActive = true;
-
- if (typeof this.inputAttrs.required === 'undefined') {
- this.$set(this.inputAttrs, 'required', true);
- }
-
- this.$nextTick(function () {
- // Handle which element receives focus
- if (_this4.hasInput) {
- _this4.$refs.input.focus();
- } else if (_this4.focusOn === 'cancel' && _this4.showCancel) {
- _this4.$refs.cancelButton.focus();
- } else {
- _this4.$refs.confirmButton.focus();
- }
- });
- }
- });
-
- /***/ }),
- /* 147 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_config__ = __webpack_require__(2);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BModal',
- props: {
- active: Boolean,
- component: [Object, Function],
- content: String,
- programmatic: Boolean,
- props: Object,
- events: Object,
- width: {
- type: [String, Number],
- default: 960
- },
- hasModalCard: Boolean,
- animation: {
- type: String,
- default: 'zoom-out'
- },
- canCancel: {
- type: [Array, Boolean],
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalCanCancel ? __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalCanCancel : ['escape', 'x', 'outside', 'button'];
- }
- },
- onCancel: {
- type: Function,
- default: function _default() {}
- },
- scroll: {
- type: String,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalScroll ? __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalScroll : 'clip';
- },
- validator: function validator(value) {
- return ['clip', 'keep'].indexOf(value) >= 0;
- }
- }
- },
- data: function data() {
- return {
- isActive: this.active || false,
- savedScrollTop: null,
- newWidth: typeof this.width === 'number' ? this.width + 'px' : this.width
- };
- },
-
- computed: {
- cancelOptions: function cancelOptions() {
- return typeof this.canCancel === 'boolean' ? this.canCancel ? ['escape', 'x', 'outside', 'button'] : [] : this.canCancel;
- },
- showX: function showX() {
- return this.cancelOptions.indexOf('x') >= 0;
- }
- },
- watch: {
- active: function active(value) {
- this.isActive = value;
- },
- isActive: function isActive() {
- this.handleScroll();
- }
- },
- methods: {
- handleScroll: function handleScroll() {
- if (typeof window === 'undefined') return;
-
- if (this.scroll === 'clip') {
- if (this.isActive) {
- document.documentElement.classList.add('is-clipped');
- } else {
- document.documentElement.classList.remove('is-clipped');
- }
- return;
- }
-
- this.savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
-
- if (this.isActive) {
- document.body.classList.add('is-noscroll');
- } else {
- document.body.classList.remove('is-noscroll');
- }
-
- if (this.isActive) {
- document.body.style.top = '-' + this.savedScrollTop + 'px';
- return;
- }
-
- document.documentElement.scrollTop = this.savedScrollTop;
- document.body.style.top = null;
- this.savedScrollTop = null;
- },
-
-
- /**
- * Close the Modal if canCancel and call the onCancel prop (function).
- */
- cancel: function cancel(method) {
- if (this.cancelOptions.indexOf(method) < 0) return;
-
- this.onCancel.apply(null, arguments);
- this.close();
- },
-
-
- /**
- * Call the onCancel prop (function).
- * Emit events, and destroy modal if it's programmatic.
- */
- close: function close() {
- var _this = this;
-
- this.$emit('close');
- this.$emit('update:active', false);
-
- // Timeout for the animation complete before destroying
- if (this.programmatic) {
- this.isActive = false;
- setTimeout(function () {
- _this.$destroy();
- Object(__WEBPACK_IMPORTED_MODULE_0__utils_helpers__["d" /* removeElement */])(_this.$el);
- }, 150);
- }
- },
-
-
- /**
- * Keypress event that is bound to the document.
- */
- keyPress: function keyPress(event) {
- // Esc key
- if (this.isActive && event.keyCode === 27) this.cancel('escape');
- }
- },
- created: function created() {
- if (typeof window !== 'undefined') {
- document.addEventListener('keyup', this.keyPress);
- }
- },
- beforeMount: function beforeMount() {
- // Insert the Modal component in body tag
- // only if it's programmatic
- this.programmatic && document.body.appendChild(this.$el);
- },
- mounted: function mounted() {
- if (this.programmatic) this.isActive = true;else if (this.isActive) this.handleScroll();
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') {
- document.removeEventListener('keyup', this.keyPress);
- // reset scroll
- document.documentElement.classList.remove('is-clipped');
- var savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
- document.body.classList.remove('is-noscroll');
- document.documentElement.scrollTop = savedScrollTop;
- document.body.style.top = null;
- }
- }
- });
-
- /***/ }),
- /* 148 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [(_vm.isActive) ? _c('div', {
- staticClass: "modal is-active"
- }, [_c('div', {
- staticClass: "modal-background",
- on: {
- "click": function($event) {
- _vm.cancel('outside')
- }
- }
- }), _vm._v(" "), _c('div', {
- staticClass: "animation-content",
- class: {
- 'modal-content': !_vm.hasModalCard
- },
- style: ({
- maxWidth: _vm.newWidth
- })
- }, [(_vm.component) ? _c(_vm.component, _vm._g(_vm._b({
- tag: "component",
- on: {
- "close": _vm.close
- }
- }, 'component', _vm.props, false), _vm.events)) : (_vm.content) ? _c('div', {
- domProps: {
- "innerHTML": _vm._s(_vm.content)
- }
- }) : _vm._t("default")], 2), _vm._v(" "), (_vm.showX) ? _c('button', {
- staticClass: "modal-close is-large",
- attrs: {
- "type": "button"
- },
- on: {
- "click": function($event) {
- _vm.cancel('x')
- }
- }
- }) : _vm._e()]) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 149 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [(_vm.isActive) ? _c('div', {
- staticClass: "dialog modal is-active",
- class: _vm.size
- }, [_c('div', {
- staticClass: "modal-background",
- on: {
- "click": function($event) {
- _vm.cancel('outside')
- }
- }
- }), _vm._v(" "), _c('div', {
- staticClass: "modal-card animation-content"
- }, [(_vm.title) ? _c('header', {
- staticClass: "modal-card-head"
- }, [_c('p', {
- staticClass: "modal-card-title"
- }, [_vm._v(_vm._s(_vm.title))])]) : _vm._e(), _vm._v(" "), _c('section', {
- staticClass: "modal-card-body",
- class: {
- 'is-titleless': !_vm.title, 'is-flex': _vm.hasIcon
- }
- }, [_c('div', {
- staticClass: "media"
- }, [(_vm.hasIcon) ? _c('div', {
- staticClass: "media-left"
- }, [_c('b-icon', {
- attrs: {
- "icon": _vm.icon ? _vm.icon : _vm.iconByType,
- "pack": _vm.iconPack,
- "type": _vm.type,
- "both": !_vm.icon,
- "size": "is-large"
- }
- })], 1) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "media-content"
- }, [_c('p', {
- domProps: {
- "innerHTML": _vm._s(_vm.message)
- }
- }), _vm._v(" "), (_vm.hasInput) ? _c('div', {
- staticClass: "field"
- }, [_c('div', {
- staticClass: "control"
- }, [_c('input', _vm._b({
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.prompt),
- expression: "prompt"
- }],
- ref: "input",
- staticClass: "input",
- class: {
- 'is-danger': _vm.validationMessage
- },
- domProps: {
- "value": (_vm.prompt)
- },
- on: {
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- _vm.confirm($event)
- },
- "input": function($event) {
- if ($event.target.composing) { return; }
- _vm.prompt = $event.target.value
- }
- }
- }, 'input', _vm.inputAttrs, false))]), _vm._v(" "), _c('p', {
- staticClass: "help is-danger"
- }, [_vm._v(_vm._s(_vm.validationMessage))])]) : _vm._e()])])]), _vm._v(" "), _c('footer', {
- staticClass: "modal-card-foot"
- }, [(_vm.showCancel) ? _c('button', {
- ref: "cancelButton",
- staticClass: "button",
- on: {
- "click": function($event) {
- _vm.cancel('button')
- }
- }
- }, [_vm._v("\n " + _vm._s(_vm.cancelText) + "\n ")]) : _vm._e(), _vm._v(" "), _c('button', {
- ref: "confirmButton",
- staticClass: "button",
- class: _vm.type,
- on: {
- "click": _vm.confirm
- }
- }, [_vm._v("\n " + _vm._s(_vm.confirmText) + "\n ")])])])]) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 150 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(151),
- /* template */
- __webpack_require__(152),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 151 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_ssr__ = __webpack_require__(64);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BLoading',
- props: {
- active: Boolean,
- programmatic: Boolean,
- container: [Object, Function, __WEBPACK_IMPORTED_MODULE_1__utils_ssr__["b" /* HTMLElement */]],
- isFullPage: {
- type: Boolean,
- default: true
- },
- animation: {
- type: String,
- default: 'fade'
- },
- canCancel: {
- type: Boolean,
- default: false
- },
- onCancel: {
- type: Function,
- default: function _default() {}
- }
- },
- data: function data() {
- return {
- isActive: this.active || false
- };
- },
-
- watch: {
- active: function active(value) {
- this.isActive = value;
- }
- },
- methods: {
- /**
- * Close the Modal if canCancel.
- */
- cancel: function cancel() {
- if (!this.canCancel || !this.isActive) return;
-
- this.close();
- },
-
- /**
- * Emit events, and destroy modal if it's programmatic.
- */
- close: function close() {
- var _this = this;
-
- this.onCancel.apply(null, arguments);
- this.$emit('close');
- this.$emit('update:active', false);
-
- // Timeout for the animation complete before destroying
- if (this.programmatic) {
- this.isActive = false;
- setTimeout(function () {
- _this.$destroy();
- Object(__WEBPACK_IMPORTED_MODULE_0__utils_helpers__["d" /* removeElement */])(_this.$el);
- }, 150);
- }
- },
-
- /**
- * Keypress event that is bound to the document.
- */
- keyPress: function keyPress(event) {
- // Esc key
- if (event.keyCode === 27) this.cancel();
- }
- },
- created: function created() {
- if (typeof window !== 'undefined') {
- document.addEventListener('keyup', this.keyPress);
- }
- },
- beforeMount: function beforeMount() {
- // Insert the Loading component in body tag
- // only if it's programmatic
- if (this.programmatic) {
- if (!this.container) {
- document.body.appendChild(this.$el);
- } else {
- this.isFullPage = false;
- this.container.appendChild(this.$el);
- }
- }
- },
- mounted: function mounted() {
- if (this.programmatic) this.isActive = true;
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') {
- document.removeEventListener('keyup', this.keyPress);
- }
- }
- });
-
- /***/ }),
- /* 152 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [(_vm.isActive) ? _c('div', {
- staticClass: "loading-overlay is-active",
- class: {
- 'is-full-page': _vm.isFullPage
- }
- }, [_c('div', {
- staticClass: "loading-background",
- on: {
- "click": _vm.cancel
- }
- }), _vm._v(" "), _vm._t("default", [_c('div', {
- staticClass: "loading-icon"
- })])], 2) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 153 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(154),
- /* template */
- __webpack_require__(155),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 154 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__ = __webpack_require__(65);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BMessage',
- mixins: [__WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__["a" /* default */]],
- props: {
- ariaCloseLabel: String
- },
- data: function data() {
- return {
- newIconSize: this.iconSize || this.size || 'is-large'
- };
- }
- });
-
- /***/ }),
- /* 155 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": "fade"
- }
- }, [(_vm.isActive) ? _c('article', {
- staticClass: "message",
- class: [_vm.type, _vm.size]
- }, [(_vm.title) ? _c('header', {
- staticClass: "message-header"
- }, [_c('p', [_vm._v(_vm._s(_vm.title))]), _vm._v(" "), (_vm.closable) ? _c('button', {
- staticClass: "delete",
- attrs: {
- "type": "button",
- "aria-label": _vm.ariaCloseLabel
- },
- on: {
- "click": _vm.close
- }
- }) : _vm._e()]) : _vm._e(), _vm._v(" "), _c('section', {
- staticClass: "message-body"
- }, [_c('div', {
- staticClass: "media"
- }, [(_vm.icon && _vm.hasIcon) ? _c('div', {
- staticClass: "media-left"
- }, [_c('b-icon', {
- class: _vm.type,
- attrs: {
- "icon": _vm.icon,
- "pack": _vm.iconPack,
- "both": "",
- "size": _vm.newIconSize
- }
- })], 1) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "media-content"
- }, [_vm._t("default")], 2)])])]) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 156 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(157),
- /* template */
- __webpack_require__(158),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 157 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__ = __webpack_require__(65);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BNotification',
- mixins: [__WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__["a" /* default */]],
- props: {
- position: String,
- ariaCloseLabel: String
- }
- });
-
- /***/ }),
- /* 158 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": "fade"
- }
- }, [_c('article', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive),
- expression: "isActive"
- }],
- staticClass: "notification",
- class: [_vm.type, _vm.position]
- }, [(_vm.closable) ? _c('button', {
- staticClass: "delete",
- attrs: {
- "type": "button",
- "aria-label": _vm.ariaCloseLabel
- },
- on: {
- "click": _vm.close
- }
- }) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "media"
- }, [(_vm.icon && _vm.hasIcon) ? _c('div', {
- staticClass: "media-left"
- }, [_c('b-icon', {
- attrs: {
- "icon": _vm.icon,
- "pack": _vm.iconPack,
- "both": "",
- "size": "is-large",
- "aria-hidden": ""
- }
- })], 1) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "media-content"
- }, [(_vm.message) ? _c('p', {
- staticClass: "text"
- }, [_vm._v(_vm._s(_vm.message))]) : _vm._t("default")], 2)])])])
- },staticRenderFns: []}
-
- /***/ }),
- /* 159 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(160),
- /* template */
- __webpack_require__(161),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 160 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__ = __webpack_require__(45);
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BNotificationNotice',
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__["a" /* default */]],
- props: {
- indefinite: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- newDuration: this.duration || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].detaultNotificationDuration
- };
- }
- });
-
- /***/ }),
- /* 161 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('b-notification', _vm._b({
- on: {
- "close": _vm.close
- }
- }, 'b-notification', _vm.$options.propsData, false))
- },staticRenderFns: []}
-
- /***/ }),
- /* 162 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(163),
- /* template */
- __webpack_require__(164),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 163 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__input_Input__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__input_Input__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__ = __webpack_require__(10);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BNumberinput',
- components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_2__input_Input___default.a.name, __WEBPACK_IMPORTED_MODULE_2__input_Input___default.a), _components),
- mixins: [__WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: Number,
- min: [Number, String],
- max: [Number, String],
- step: [Number, String],
- disabled: Boolean,
- type: {
- type: String,
- default: 'is-primary'
- },
- editable: {
- type: Boolean,
- default: true
- },
- controlsRounded: {
- type: Boolean,
- default: false
- },
- controlsPosition: String
- },
- data: function data() {
- return {
- newValue: this.value || parseFloat(this.min) || 0,
- newStep: this.step || 1,
- _elementRef: 'input'
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- !this.isValid && this.checkHtml5Validity();
- }
- },
- fieldClasses: function fieldClasses() {
- return [{ 'has-addons': this.controlsPosition === 'compact' }, { 'is-grouped': this.controlsPosition !== 'compact' }];
- },
- buttonClasses: function buttonClasses() {
- return [this.type, this.size, { 'is-rounded': this.controlsRounded }];
- },
- minNumber: function minNumber() {
- return typeof this.min === 'string' ? parseFloat(this.min) : this.min;
- },
- maxNumber: function maxNumber() {
- return typeof this.max === 'string' ? parseFloat(this.max) : this.max;
- },
- stepNumber: function stepNumber() {
- return typeof this.newStep === 'string' ? parseFloat(this.newStep) : this.newStep;
- },
- disabledMin: function disabledMin() {
- return this.computedValue - this.stepNumber < this.minNumber;
- },
- disabledMax: function disabledMax() {
- return this.computedValue + this.stepNumber > this.maxNumber;
- },
- stepDecimals: function stepDecimals() {
- var step = this.stepNumber.toString();
- var index = step.indexOf('.');
- if (index >= 0) {
- return step.substring(index + 1).length;
- }
- return 0;
- }
- },
- watch: {
- /**
- * When v-model is changed:
- * 1. Set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- },
- methods: {
- decrement: function decrement() {
- if (typeof this.minNumber === 'undefined' || this.computedValue - this.stepNumber >= this.minNumber) {
- var value = this.computedValue - this.stepNumber;
- this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
- }
- },
- increment: function increment() {
- if (typeof this.maxNumber === 'undefined' || this.computedValue + this.stepNumber <= this.maxNumber) {
- var value = this.computedValue + this.stepNumber;
- this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
- }
- },
- onControlClick: function onControlClick(event, inc) {
- if (event.detail !== 0) return;
- if (inc) this.increment();else this.decrement();
- },
- onStartLongPress: function onStartLongPress(event, inc) {
- var _this = this;
-
- if (event.button !== 0 && event.type !== 'touchstart') return;
- this._$intervalTime = new Date();
- clearInterval(this._$intervalRef);
- this._$intervalRef = this._$intervalRef = setInterval(function () {
- if (inc) _this.increment();else _this.decrement();
- }, 100);
- },
- onStopLongPress: function onStopLongPress(inc) {
- var d = new Date();
- if (d - this._$intervalTime < 100) {
- if (inc) this.increment();else this.decrement();
- }
- clearInterval(this._$intervalRef);
- this._$intervalRef = null;
- },
- onChange: function onChange(event) {
- var value = event.target.value;
- if (value) {
- var number = parseFloat(value);
- if (number < this.minNumber) {
- this.computedValue = this.minNumber;
- } else if (number > this.maxNumber) {
- this.computedValue = this.maxNumber;
- }
- }
- }
- }
- });
-
- /***/ }),
- /* 164 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "b-numberinput field",
- class: _vm.fieldClasses
- }, [_c('p', {
- staticClass: "control"
- }, [_c('button', {
- staticClass: "button",
- class: _vm.buttonClasses,
- attrs: {
- "type": "button",
- "disabled": _vm.disabled || _vm.disabledMin
- },
- on: {
- "mousedown": function($event) {
- _vm.onStartLongPress($event, false)
- },
- "mouseup": function($event) {
- _vm.onStopLongPress(false)
- },
- "mouseleave": function($event) {
- _vm.onStopLongPress(false)
- },
- "touchstart": function($event) {
- $event.preventDefault();
- _vm.onStartLongPress($event, false)
- },
- "touchend": function($event) {
- _vm.onStopLongPress(false)
- },
- "touchcancel": function($event) {
- _vm.onStopLongPress(false)
- },
- "click": function($event) {
- _vm.onControlClick($event, false)
- }
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "minus",
- "pack": _vm.iconPack,
- "size": _vm.iconSize
- }
- })], 1)]), _vm._v(" "), _c('b-input', _vm._b({
- attrs: {
- "type": "number",
- "step": _vm.newStep,
- "max": _vm.max,
- "min": _vm.min,
- "size": _vm.size,
- "disabled": _vm.disabled,
- "readonly": !_vm.editable,
- "loading": _vm.loading,
- "rounded": _vm.rounded,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "autocomplete": _vm.autocomplete,
- "expanded": _vm.expanded
- },
- on: {
- "focus": function($event) {
- _vm.$emit('focus', $event)
- },
- "blur": function($event) {
- _vm.$emit('blur', $event)
- }
- },
- model: {
- value: (_vm.computedValue),
- callback: function($$v) {
- _vm.computedValue = _vm._n($$v)
- },
- expression: "computedValue"
- }
- }, 'b-input', _vm.$attrs, false)), _vm._v(" "), _c('p', {
- staticClass: "control"
- }, [_c('button', {
- staticClass: "button",
- class: _vm.buttonClasses,
- attrs: {
- "type": "button",
- "disabled": _vm.disabled || _vm.disabledMax
- },
- on: {
- "mousedown": function($event) {
- _vm.onStartLongPress($event, true)
- },
- "mouseup": function($event) {
- _vm.onStopLongPress(true)
- },
- "mouseleave": function($event) {
- _vm.onStopLongPress(true)
- },
- "touchstart": function($event) {
- $event.preventDefault();
- _vm.onStartLongPress($event, true)
- },
- "touchend": function($event) {
- _vm.onStopLongPress(true)
- },
- "touchcancel": function($event) {
- _vm.onStopLongPress(true)
- },
- "click": function($event) {
- _vm.onControlClick($event, true)
- }
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "plus",
- "pack": _vm.iconPack,
- "size": _vm.iconSize
- }
- })], 1)])], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 165 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BPagination',
- components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a),
- props: {
- total: [Number, String],
- perPage: {
- type: [Number, String],
- default: 20
- },
- current: {
- type: [Number, String],
- default: 1
- },
- size: String,
- simple: Boolean,
- rounded: Boolean,
- order: String,
- iconPack: String,
- ariaNextLabel: String,
- ariaPreviousLabel: String,
- ariaPageLabel: String,
- ariaCurrentLabel: String
- },
- computed: {
- rootClasses: function rootClasses() {
- return [this.order, this.size, {
- 'is-simple': this.simple,
- 'is-rounded': this.rounded
- }];
- },
-
-
- /**
- * Total page size (count).
- */
- pageCount: function pageCount() {
- return Math.ceil(this.total / this.perPage);
- },
-
-
- /**
- * First item of the page (count).
- */
- firstItem: function firstItem() {
- var firstItem = this.current * this.perPage - this.perPage + 1;
- return firstItem >= 0 ? firstItem : 0;
- },
-
-
- /**
- * Check if previous button is available.
- */
- hasPrev: function hasPrev() {
- return this.current > 1;
- },
-
-
- /**
- * Check if first page button should be visible.
- */
- hasFirst: function hasFirst() {
- return this.current >= 3;
- },
-
-
- /**
- * Check if first ellipsis should be visible.
- */
- hasFirstEllipsis: function hasFirstEllipsis() {
- return this.current >= 4;
- },
-
-
- /**
- * Check if last page button should be visible.
- */
- hasLast: function hasLast() {
- return this.current <= this.pageCount - 2;
- },
-
-
- /**
- * Check if last ellipsis should be visible.
- */
- hasLastEllipsis: function hasLastEllipsis() {
- return this.current < this.pageCount - 2 && this.current <= this.pageCount - 3;
- },
-
-
- /**
- * Check if next button is available.
- */
- hasNext: function hasNext() {
- return this.current < this.pageCount;
- },
-
-
- /**
- * Get near pages, 1 before and 1 after the current.
- * Also add the click event to the array.
- */
- pagesInRange: function pagesInRange() {
- var _this = this;
-
- if (this.simple) return;
-
- var left = Math.max(1, this.current - 1);
- var right = Math.min(this.current + 1, this.pageCount);
-
- var pages = [];
-
- var _loop = function _loop(i) {
- pages.push({
- number: i,
- isCurrent: _this.current === i,
- click: function click(event) {
- if (_this.current === i) return;
- _this.$emit('change', i);
- _this.$emit('update:current', i);
-
- // Set focus on element to keep tab order
- _this.$nextTick(function () {
- return event.target.focus();
- });
- }
- });
- };
-
- for (var i = left; i <= right; i++) {
- _loop(i);
- }
- return pages;
- }
- },
- watch: {
- /**
- * If current page is trying to be greater than page count, set to last.
- */
- pageCount: function pageCount(value) {
- if (this.current > value) this.last();
- }
- },
- methods: {
- /**
- * Previous button click listener.
- */
- prev: function prev() {
- if (!this.hasPrev) return;
- this.$emit('change', this.current - 1);
- this.$emit('update:current', this.current - 1);
- },
-
-
- /**
- * First button click listener.
- */
- first: function first() {
- this.$emit('change', 1);
- this.$emit('update:current', 1);
- },
-
-
- /**
- * Last button click listener.
- */
- last: function last() {
- this.$emit('change', this.pageCount);
- this.$emit('update:current', this.pageCount);
- },
-
-
- /**
- * Next button click listener.
- */
- next: function next() {
- if (!this.hasNext) return;
- this.$emit('change', this.current + 1);
- this.$emit('update:current', this.current + 1);
- },
-
-
- /**
- * Get text for aria-label according to page number.
- */
- getAriaPageLabel: function getAriaPageLabel(pageNumber, isCurrent) {
- if (this.ariaPageLabel && (!isCurrent || !this.ariaCurrentLabel)) {
- return this.ariaPageLabel + ' ' + pageNumber + '.';
- } else if (this.ariaPageLabel && isCurrent && this.ariaCurrentLabel) {
- return this.ariaCurrentLabel + ', ' + this.ariaPageLabel + ' ' + pageNumber + '.';
- }
- return null;
- }
- }
- });
-
- /***/ }),
- /* 166 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('nav', {
- staticClass: "pagination",
- class: _vm.rootClasses
- }, [_c('a', {
- staticClass: "pagination-previous",
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": !_vm.hasPrev,
- "aria-label": _vm.ariaPreviousLabel
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.prev($event)
- }
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "chevron-left",
- "pack": _vm.iconPack,
- "both": "",
- "aria-hidden": ""
- }
- })], 1), _vm._v(" "), _c('a', {
- staticClass: "pagination-next",
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": !_vm.hasNext,
- "aria-label": _vm.ariaNextLabel
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.next($event)
- }
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "chevron-right",
- "pack": _vm.iconPack,
- "both": "",
- "aria-hidden": ""
- }
- })], 1), _vm._v(" "), (!_vm.simple) ? _c('ul', {
- staticClass: "pagination-list"
- }, [(_vm.hasFirst) ? _c('li', [_c('a', {
- staticClass: "pagination-link",
- attrs: {
- "role": "button",
- "href": "#",
- "aria-label": _vm.getAriaPageLabel(1, false)
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.first($event)
- }
- }
- }, [_vm._v("\n 1\n ")])]) : _vm._e(), _vm._v(" "), (_vm.hasFirstEllipsis) ? _c('li', [_c('span', {
- staticClass: "pagination-ellipsis"
- }, [_vm._v("…")])]) : _vm._e(), _vm._v(" "), _vm._l((_vm.pagesInRange), function(page) {
- return _c('li', {
- key: page.number
- }, [_c('a', {
- staticClass: "pagination-link",
- class: {
- 'is-current': page.isCurrent
- },
- attrs: {
- "role": "button",
- "href": "#",
- "aria-label": _vm.getAriaPageLabel(page.number, page.isCurrent),
- "aria-current": page.isCurrent
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- page.click($event)
- }
- }
- }, [_vm._v("\n " + _vm._s(page.number) + "\n ")])])
- }), _vm._v(" "), (_vm.hasLastEllipsis) ? _c('li', [_c('span', {
- staticClass: "pagination-ellipsis"
- }, [_vm._v("…")])]) : _vm._e(), _vm._v(" "), (_vm.hasLast) ? _c('li', [_c('a', {
- staticClass: "pagination-link",
- attrs: {
- "role": "button",
- "href": "#",
- "aria-label": _vm.getAriaPageLabel(_vm.pageCount, false)
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.last($event)
- }
- }
- }, [_vm._v("\n " + _vm._s(_vm.pageCount) + "\n ")])]) : _vm._e()], 2) : _vm._e(), _vm._v(" "), (_vm.simple) ? _c('small', {
- staticClass: "info"
- }, [(_vm.perPage == 1) ? [_vm._v("\n " + _vm._s(_vm.firstItem) + " / " + _vm._s(_vm.total) + "\n ")] : [_vm._v("\n " + _vm._s(_vm.firstItem) + "-" + _vm._s(Math.min(_vm.current * _vm.perPage, _vm.total)) + " / " + _vm._s(_vm.total) + "\n ")]], 2) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 167 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(168),
- /* template */
- __webpack_require__(169),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 168 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BRadio',
- props: {
- value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- type: String,
- disabled: Boolean,
- required: Boolean,
- name: String,
- size: String
- },
- data: function data() {
- return {
- newValue: this.value
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- }
- }
- },
- watch: {
- /**
- * When v-model change, set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- }
- });
-
- /***/ }),
- /* 169 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('label', {
- ref: "label",
- staticClass: "b-radio radio",
- class: [_vm.size, {
- 'is-disabled': _vm.disabled
- }],
- attrs: {
- "disabled": _vm.disabled,
- "tabindex": _vm.disabled ? false : 0
- },
- on: {
- "keydown": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
- $event.preventDefault();
- _vm.$refs.label.click()
- }
- }
- }, [_c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- attrs: {
- "tabindex": "-1",
- "type": "radio",
- "disabled": _vm.disabled,
- "required": _vm.required,
- "name": _vm.name
- },
- domProps: {
- "value": _vm.nativeValue,
- "checked": _vm._q(_vm.computedValue, _vm.nativeValue)
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- },
- "change": function($event) {
- _vm.computedValue = _vm.nativeValue
- }
- }
- }), _vm._v(" "), _c('span', {
- staticClass: "check",
- class: _vm.type
- }), _vm._v(" "), _c('span', {
- staticClass: "control-label"
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 170 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(171),
- /* template */
- __webpack_require__(172),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 171 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BRadioButton',
- props: {
- value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- type: {
- type: String,
- default: 'is-primary'
- },
- disabled: Boolean,
- required: Boolean,
- name: String,
- size: String
- },
- data: function data() {
- return {
- newValue: this.value
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- }
- }
- },
- watch: {
- /**
- * When v-model change, set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- }
- });
-
- /***/ }),
- /* 172 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "control"
- }, [_c('label', {
- ref: "label",
- staticClass: "b-radio radio button",
- class: [_vm.newValue === _vm.nativeValue ? _vm.type : null, _vm.size],
- attrs: {
- "disabled": _vm.disabled,
- "tabindex": _vm.disabled ? false : 0
- },
- on: {
- "keydown": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
- $event.preventDefault();
- _vm.$refs.label.click()
- }
- }
- }, [_vm._t("default"), _vm._v(" "), _c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- attrs: {
- "tabindex": "-1",
- "type": "radio",
- "disabled": _vm.disabled,
- "required": _vm.required,
- "name": _vm.name
- },
- domProps: {
- "value": _vm.nativeValue,
- "checked": _vm._q(_vm.computedValue, _vm.nativeValue)
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- },
- "change": function($event) {
- _vm.computedValue = _vm.nativeValue
- }
- }
- })], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 173 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(174),
- /* template */
- __webpack_require__(175),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 174 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__ = __webpack_require__(45);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BSnackbar',
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__["a" /* default */]],
- props: {
- actionText: {
- type: String,
- default: 'OK'
- },
- onAction: {
- type: Function,
- default: function _default() {}
- },
- indefinite: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- newDuration: this.duration || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultSnackbarDuration
- };
- },
-
- methods: {
- /**
- * Click listener.
- * Call action prop before closing (from Mixin).
- */
- action: function action() {
- this.onAction();
- this.close();
- }
- }
- });
-
- /***/ }),
- /* 175 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "enter-active-class": _vm.transition.enter,
- "leave-active-class": _vm.transition.leave
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive),
- expression: "isActive"
- }],
- staticClass: "snackbar",
- class: [_vm.type, _vm.position]
- }, [_c('p', {
- staticClass: "text"
- }, [_vm._v(_vm._s(_vm.message))]), _vm._v(" "), (_vm.actionText) ? _c('div', {
- staticClass: "action",
- class: _vm.type,
- on: {
- "click": _vm.action
- }
- }, [_c('button', {
- staticClass: "button"
- }, [_vm._v(_vm._s(_vm.actionText))])]) : _vm._e()])])
- },staticRenderFns: []}
-
- /***/ }),
- /* 176 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(177),
- /* template */
- __webpack_require__(178),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 177 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BSwitch',
- props: {
- value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- disabled: Boolean,
- type: String,
- name: String,
- required: Boolean,
- size: String,
- trueValue: {
- type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- default: true
- },
- falseValue: {
- type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- default: false
- }
- },
- data: function data() {
- return {
- newValue: this.value,
- isMouseDown: false
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- }
- }
- },
- watch: {
- /**
- * When v-model change, set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- }
- });
-
- /***/ }),
- /* 178 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('label', {
- ref: "label",
- staticClass: "switch",
- class: [_vm.size, {
- 'is-disabled': _vm.disabled
- }],
- attrs: {
- "disabled": _vm.disabled
- },
- on: {
- "keydown": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.$refs.label.click()
- },
- "mousedown": function($event) {
- _vm.isMouseDown = true
- },
- "mouseup": function($event) {
- _vm.isMouseDown = false
- },
- "mouseout": function($event) {
- _vm.isMouseDown = false
- },
- "blur": function($event) {
- _vm.isMouseDown = false
- }
- }
- }, [_c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- attrs: {
- "type": "checkbox",
- "disabled": _vm.disabled,
- "name": _vm.name,
- "required": _vm.required,
- "true-value": _vm.trueValue,
- "false-value": _vm.falseValue
- },
- domProps: {
- "value": _vm.nativeValue,
- "checked": Array.isArray(_vm.computedValue) ? _vm._i(_vm.computedValue, _vm.nativeValue) > -1 : _vm._q(_vm.computedValue, _vm.trueValue)
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- },
- "change": function($event) {
- var $$a = _vm.computedValue,
- $$el = $event.target,
- $$c = $$el.checked ? (_vm.trueValue) : (_vm.falseValue);
- if (Array.isArray($$a)) {
- var $$v = _vm.nativeValue,
- $$i = _vm._i($$a, $$v);
- if ($$el.checked) {
- $$i < 0 && (_vm.computedValue = $$a.concat([$$v]))
- } else {
- $$i > -1 && (_vm.computedValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.computedValue = $$c
- }
- }
- }
- }), _vm._v(" "), _c('span', {
- staticClass: "check",
- class: [{
- 'is-elastic': _vm.isMouseDown && !_vm.disabled
- }, _vm.type]
- }), _vm._v(" "), _c('span', {
- staticClass: "control-label"
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 179 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(180),
- /* template */
- __webpack_require__(194),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 180 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__ = __webpack_require__(181);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox__ = __webpack_require__(61);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pagination_Pagination__ = __webpack_require__(66);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pagination_Pagination___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__pagination_Pagination__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TableMobileSort__ = __webpack_require__(189);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TableMobileSort___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__TableMobileSort__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TableColumn__ = __webpack_require__(67);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TableColumn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__TableColumn__);
-
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTable',
- components: (_components = {}, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox___default.a.name, __WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox___default.a), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_4__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_4__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_5__pagination_Pagination___default.a.name, __WEBPACK_IMPORTED_MODULE_5__pagination_Pagination___default.a), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_6__TableMobileSort___default.a.name, __WEBPACK_IMPORTED_MODULE_6__TableMobileSort___default.a), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_7__TableColumn___default.a.name, __WEBPACK_IMPORTED_MODULE_7__TableColumn___default.a), _components),
- props: {
- data: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- columns: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- bordered: Boolean,
- striped: Boolean,
- narrowed: Boolean,
- hoverable: Boolean,
- loading: Boolean,
- detailed: Boolean,
- checkable: Boolean,
- selected: Object,
- focusable: Boolean,
- customIsChecked: Function,
- isRowCheckable: {
- type: Function,
- default: function _default() {
- return true;
- }
- },
- checkedRows: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- mobileCards: {
- type: Boolean,
- default: true
- },
- defaultSort: [String, Array],
- defaultSortDirection: {
- type: String,
- default: 'asc'
- },
- paginated: Boolean,
- currentPage: {
- type: Number,
- default: 1
- },
- perPage: {
- type: [Number, String],
- default: 20
- },
- showDetailIcon: {
- type: Boolean,
- default: true
- },
- paginationSimple: Boolean,
- paginationSize: String,
- backendSorting: Boolean,
- rowClass: {
- type: Function,
- default: function _default() {
- return '';
- }
- },
- openedDetailed: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- hasDetailedVisible: {
- type: Function,
- default: function _default() {
- return true;
- }
- },
- detailKey: {
- type: String,
- default: ''
- },
- customDetailRow: {
- type: Boolean,
- default: false
- },
- backendPagination: Boolean,
- total: {
- type: [Number, String],
- default: 0
- },
- iconPack: String,
- mobileSortPlaceholder: String,
- customRowKey: String,
- draggable: {
- type: Boolean,
- defualt: false
- },
- ariaNextLabel: String,
- ariaPreviousLabel: String,
- ariaPageLabel: String,
- ariaCurrentLabel: String
- },
- data: function data() {
- return {
- getValueByPath: __WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */],
- newColumns: [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(this.columns)),
- visibleDetailRows: this.openedDetailed,
- newData: this.data,
- newDataTotal: this.backendPagination ? this.total : this.data.length,
- newCheckedRows: [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(this.checkedRows)),
- newCurrentPage: this.currentPage,
- currentSortColumn: {},
- isAsc: true,
- firstTimeSort: true, // Used by first time initSort
- _isTable: true // Used by TableColumn
- };
- },
-
- computed: {
- /**
- * return if detailed row tabled
- * will be with chevron column & icon or not
- */
- showDetailRowIcon: function showDetailRowIcon() {
- return this.detailed && this.showDetailIcon;
- },
- tableClasses: function tableClasses() {
- return {
- 'is-bordered': this.bordered,
- 'is-striped': this.striped,
- 'is-narrow': this.narrowed,
- 'has-mobile-cards': this.mobileCards,
- 'is-hoverable': (this.hoverable || this.focusable) && this.visibleData.length
- };
- },
-
-
- /**
- * Splitted data based on the pagination.
- */
- visibleData: function visibleData() {
- if (!this.paginated) return this.newData;
-
- var currentPage = this.newCurrentPage;
- var perPage = this.perPage;
-
- if (this.newData.length <= perPage) {
- return this.newData;
- } else {
- var start = (currentPage - 1) * perPage;
- var end = parseInt(start, 10) + parseInt(perPage, 10);
- return this.newData.slice(start, end);
- }
- },
- visibleColumns: function visibleColumns() {
- if (!this.newColumns) return this.newColumns;
- return this.newColumns.filter(function (column) {
- return column.visible || column.visible === undefined;
- });
- },
-
-
- /**
- * Check if all rows in the page are checked.
- */
- isAllChecked: function isAllChecked() {
- var _this = this;
-
- var validVisibleData = this.visibleData.filter(function (row) {
- return _this.isRowCheckable(row);
- });
- if (validVisibleData.length === 0) return false;
- var isAllChecked = validVisibleData.some(function (currentVisibleRow) {
- return Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["b" /* indexOf */])(_this.newCheckedRows, currentVisibleRow, _this.customIsChecked) < 0;
- });
- return !isAllChecked;
- },
-
-
- /**
- * Check if all rows in the page are checkable.
- */
- isAllUncheckable: function isAllUncheckable() {
- var _this2 = this;
-
- var validVisibleData = this.visibleData.filter(function (row) {
- return _this2.isRowCheckable(row);
- });
- return validVisibleData.length === 0;
- },
-
-
- /**
- * Check if has any sortable column.
- */
- hasSortablenewColumns: function hasSortablenewColumns() {
- return this.newColumns.some(function (column) {
- return column.sortable;
- });
- },
-
-
- /**
- * Return total column count based if it's checkable or expanded
- */
- columnCount: function columnCount() {
- var count = this.newColumns.length;
- count += this.checkable ? 1 : 0;
- count += this.detailed ? 1 : 0;
-
- return count;
- }
- },
- watch: {
- /**
- * When data prop change:
- * 1. Update internal value.
- * 2. Reset newColumns (thead), in case it's on a v-for loop.
- * 3. Sort again if it's not backend-sort.
- * 4. Set new total if it's not backend-paginated.
- */
- data: function data(value) {
- var _this3 = this;
-
- // Save newColumns before resetting
- var newColumns = this.newColumns;
-
- this.newColumns = [];
- this.newData = value;
-
- // Prevent table from being headless, data could change and created hook
- // on column might not trigger
- this.$nextTick(function () {
- if (!_this3.newColumns.length) _this3.newColumns = newColumns;
- });
-
- if (!this.backendSorting) {
- this.sort(this.currentSortColumn, true);
- }
- if (!this.backendPagination) {
- this.newDataTotal = value.length;
- }
- },
-
-
- /**
- * When Pagination total change, update internal total
- * only if it's backend-paginated.
- */
- total: function total(newTotal) {
- if (!this.backendPagination) return;
-
- this.newDataTotal = newTotal;
- },
-
-
- /**
- * When checkedRows prop change, update internal value without
- * mutating original data.
- */
- checkedRows: function checkedRows(rows) {
- this.newCheckedRows = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(rows));
- },
- columns: function columns(value) {
- this.newColumns = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(value));
- },
- newColumns: function newColumns(value) {
- this.checkSort();
- },
-
-
- /**
- * When the user wants to control the detailed rows via props.
- * Or wants to open the details of certain row with the router for example.
- */
- openedDetailed: function openedDetailed(expandedRows) {
- this.visibleDetailRows = expandedRows;
- },
- currentPage: function currentPage(newVal) {
- this.newCurrentPage = newVal;
- }
- },
- methods: {
- /**
- * Sort an array by key without mutating original data.
- * Call the user sort function if it was passed.
- */
- sortBy: function sortBy(array, key, fn, isAsc) {
- var sorted = [];
- // Sorting without mutating original data
- if (fn && typeof fn === 'function') {
- sorted = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(array)).sort(function (a, b) {
- return fn(a, b, isAsc);
- });
- } else {
- sorted = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(array)).sort(function (a, b) {
- // Get nested values from objects
- var newA = Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */])(a, key);
- var newB = Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */])(b, key);
-
- // sort boolean type
- if (typeof newA === 'boolean' && typeof newB === 'boolean') {
- return isAsc ? newA - newB : newB - newA;
- }
-
- if (!newA && newA !== 0) return 1;
- if (!newB && newB !== 0) return -1;
- if (newA === newB) return 0;
-
- newA = typeof newA === 'string' ? newA.toUpperCase() : newA;
- newB = typeof newB === 'string' ? newB.toUpperCase() : newB;
-
- return isAsc ? newA > newB ? 1 : -1 : newA > newB ? -1 : 1;
- });
- }
-
- return sorted;
- },
-
-
- /**
- * Sort the column.
- * Toggle current direction on column if it's sortable
- * and not just updating the prop.
- */
- sort: function sort(column) {
- var updatingData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
-
- if (!column || !column.sortable) return;
-
- if (!updatingData) {
- this.isAsc = column === this.currentSortColumn ? !this.isAsc : this.defaultSortDirection.toLowerCase() !== 'desc';
- }
- if (!this.firstTimeSort) {
- this.$emit('sort', column.field, this.isAsc ? 'asc' : 'desc');
- }
- if (!this.backendSorting) {
- this.newData = this.sortBy(this.newData, column.field, column.customSort, this.isAsc);
- }
- this.currentSortColumn = column;
- },
-
-
- /**
- * Check if the row is checked (is added to the array).
- */
- isRowChecked: function isRowChecked(row) {
- return Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["b" /* indexOf */])(this.newCheckedRows, row, this.customIsChecked) >= 0;
- },
-
-
- /**
- * Remove a checked row from the array.
- */
- removeCheckedRow: function removeCheckedRow(row) {
- var index = Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["b" /* indexOf */])(this.newCheckedRows, row, this.customIsChecked);
- if (index >= 0) {
- this.newCheckedRows.splice(index, 1);
- }
- },
-
-
- /**
- * Header checkbox click listener.
- * Add or remove all rows in current page.
- */
- checkAll: function checkAll() {
- var _this4 = this;
-
- var isAllChecked = this.isAllChecked;
- this.visibleData.forEach(function (currentRow) {
- _this4.removeCheckedRow(currentRow);
- if (!isAllChecked) {
- if (_this4.isRowCheckable(currentRow)) {
- _this4.newCheckedRows.push(currentRow);
- }
- }
- });
-
- this.$emit('check', this.newCheckedRows);
- this.$emit('check-all', this.newCheckedRows);
-
- // Emit checked rows to update user variable
- this.$emit('update:checkedRows', this.newCheckedRows);
- },
-
-
- /**
- * Row checkbox click listener.
- * Add or remove a single row.
- */
- checkRow: function checkRow(row) {
- if (!this.isRowChecked(row)) {
- this.newCheckedRows.push(row);
- } else {
- this.removeCheckedRow(row);
- }
-
- this.$emit('check', this.newCheckedRows, row);
-
- // Emit checked rows to update user variable
- this.$emit('update:checkedRows', this.newCheckedRows);
- },
-
-
- /**
- * Row click listener.
- * Emit all necessary events.
- */
- selectRow: function selectRow(row, index) {
- this.$emit('click', row);
-
- if (this.selected === row) return;
-
- // Emit new and old row
- this.$emit('select', row, this.selected);
-
- // Emit new row to update user variable
- this.$emit('update:selected', row);
- },
-
-
- /**
- * Paginator change listener.
- */
- pageChanged: function pageChanged(page) {
- this.newCurrentPage = page > 0 ? page : 1;
- this.$emit('page-change', this.newCurrentPage);
- this.$emit('update:currentPage', this.newCurrentPage);
- },
-
-
- /**
- * Toggle to show/hide details slot
- */
- toggleDetails: function toggleDetails(obj) {
- var found = this.isVisibleDetailRow(obj);
-
- if (found) {
- this.closeDetailRow(obj);
- this.$emit('details-close', obj);
- } else {
- this.openDetailRow(obj);
- this.$emit('details-open', obj);
- }
-
- // Syncs the detailed rows with the parent component
- this.$emit('update:openedDetailed', this.visibleDetailRows);
- },
- openDetailRow: function openDetailRow(obj) {
- var index = this.handleDetailKey(obj);
- this.visibleDetailRows.push(index);
- },
- closeDetailRow: function closeDetailRow(obj) {
- var index = this.handleDetailKey(obj);
- var i = this.visibleDetailRows.indexOf(index);
- this.visibleDetailRows.splice(i, 1);
- },
- isVisibleDetailRow: function isVisibleDetailRow(obj) {
- var index = this.handleDetailKey(obj);
- var result = this.visibleDetailRows.indexOf(index) >= 0;
- return result;
- },
- isActiveDetailRow: function isActiveDetailRow(row) {
- return this.detailed && !this.customDetailRow && this.isVisibleDetailRow(row);
- },
- isActiveCustomDetailRow: function isActiveCustomDetailRow(row) {
- return this.detailed && this.customDetailRow && this.isVisibleDetailRow(row);
- },
-
-
- /**
- * When the detailKey is defined we use the object[detailKey] as index.
- * If not, use the object reference by default.
- */
- handleDetailKey: function handleDetailKey(index) {
- var key = this.detailKey;
- return !key.length ? index : index[key];
- },
- checkPredefinedDetailedRows: function checkPredefinedDetailedRows() {
- var defaultExpandedRowsDefined = this.openedDetailed.length > 0;
- if (defaultExpandedRowsDefined && !this.detailKey.length) {
- throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"');
- }
- },
-
-
- /**
- * Call initSort only first time (For example async data).
- */
- checkSort: function checkSort() {
- if (this.newColumns.length && this.firstTimeSort) {
- this.initSort();
- this.firstTimeSort = false;
- } else if (this.newColumns.length) {
- if (this.currentSortColumn.field) {
- for (var i = 0; i < this.newColumns.length; i++) {
- if (this.newColumns[i].field === this.currentSortColumn.field) {
- this.currentSortColumn = this.newColumns[i];
- break;
- }
- }
- }
- }
- },
-
-
- /**
- * Check if footer slot has custom content.
- */
- hasCustomFooterSlot: function hasCustomFooterSlot() {
- if (this.$slots.footer.length > 1) return true;
-
- var tag = this.$slots.footer[0].tag;
- if (tag !== 'th' && tag !== 'td') return false;
-
- return true;
- },
-
-
- /**
- * Check if bottom-left slot exists.
- */
- hasBottomLeftSlot: function hasBottomLeftSlot() {
- return typeof this.$slots['bottom-left'] !== 'undefined';
- },
-
-
- /**
- * Table arrow keys listener, change selection.
- */
- pressedArrow: function pressedArrow(pos) {
- if (!this.visibleData.length) return;
-
- var index = this.visibleData.indexOf(this.selected) + pos;
-
- // Prevent from going up from first and down from last
- index = index < 0 ? 0 : index > this.visibleData.length - 1 ? this.visibleData.length - 1 : index;
-
- this.selectRow(this.visibleData[index]);
- },
-
-
- /**
- * Focus table element if has selected prop.
- */
- focus: function focus() {
- if (!this.focusable) return;
-
- this.$el.querySelector('table').focus();
- },
-
-
- /**
- * Initial sorted column based on the default-sort prop.
- */
- initSort: function initSort() {
- var _this5 = this;
-
- if (!this.defaultSort) return;
-
- var sortField = '';
- var sortDirection = this.defaultSortDirection;
-
- if (Array.isArray(this.defaultSort)) {
- sortField = this.defaultSort[0];
- if (this.defaultSort[1]) {
- sortDirection = this.defaultSort[1];
- }
- } else {
- sortField = this.defaultSort;
- }
-
- this.newColumns.forEach(function (column) {
- if (column.field === sortField) {
- _this5.isAsc = sortDirection.toLowerCase() !== 'desc';
- _this5.sort(column, true);
- }
- });
- },
-
- /**
- * Emits drag start event
- */
- handleDragStart: function handleDragStart(event, row, index) {
- this.$emit('dragstart', { event: event, row: row, index: index });
- },
-
- /**
- * Emits drop event
- */
- handleDrop: function handleDrop(event, row, index) {
- this.$emit('drop', { event: event, row: row, index: index });
- },
-
- /**
- * Emits drag over event
- */
- handleDragOver: function handleDragOver(event, row, index) {
- this.$emit('dragover', { event: event, row: row, index: index });
- },
-
- /**
- * Emits drag leave event
- */
- handleDragLeave: function handleDragLeave(event, row, index) {
- this.$emit('dragleave', { event: event, row: row, index: index });
- }
- },
-
- mounted: function mounted() {
- this.checkPredefinedDetailedRows();
- this.checkSort();
- }
- });
-
- /***/ }),
- /* 181 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
-
- var _from = __webpack_require__(182);
-
- var _from2 = _interopRequireDefault(_from);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.default = function (arr) {
- if (Array.isArray(arr)) {
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
- arr2[i] = arr[i];
- }
-
- return arr2;
- } else {
- return (0, _from2.default)(arr);
- }
- };
-
- /***/ }),
- /* 182 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(183), __esModule: true };
-
- /***/ }),
- /* 183 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(41);
- __webpack_require__(184);
- module.exports = __webpack_require__(6).Array.from;
-
-
- /***/ }),
- /* 184 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var ctx = __webpack_require__(46);
- var $export = __webpack_require__(19);
- var toObject = __webpack_require__(40);
- var call = __webpack_require__(185);
- var isArrayIter = __webpack_require__(186);
- var toLength = __webpack_require__(51);
- var createProperty = __webpack_require__(187);
- var getIterFn = __webpack_require__(60);
-
- $export($export.S + $export.F * !__webpack_require__(188)(function (iter) { Array.from(iter); }), 'Array', {
- // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
- from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
- var O = toObject(arrayLike);
- var C = typeof this == 'function' ? this : Array;
- var aLen = arguments.length;
- var mapfn = aLen > 1 ? arguments[1] : undefined;
- var mapping = mapfn !== undefined;
- var index = 0;
- var iterFn = getIterFn(O);
- var length, result, step, iterator;
- if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
- // if object isn't iterable or it's array with default iterator - use simple case
- if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
- for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
- createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
- }
- } else {
- length = toLength(O.length);
- for (result = new C(length); length > index; index++) {
- createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
- }
- }
- result.length = index;
- return result;
- }
- });
-
-
- /***/ }),
- /* 185 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // call something on iterator step with safe closing on error
- var anObject = __webpack_require__(15);
- module.exports = function (iterator, fn, value, entries) {
- try {
- return entries ? fn(anObject(value)[0], value[1]) : fn(value);
- // 7.4.6 IteratorClose(iterator, completion)
- } catch (e) {
- var ret = iterator['return'];
- if (ret !== undefined) anObject(ret.call(iterator));
- throw e;
- }
- };
-
-
- /***/ }),
- /* 186 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // check on default Array iterator
- var Iterators = __webpack_require__(23);
- var ITERATOR = __webpack_require__(4)('iterator');
- var ArrayProto = Array.prototype;
-
- module.exports = function (it) {
- return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
- };
-
-
- /***/ }),
- /* 187 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var $defineProperty = __webpack_require__(9);
- var createDesc = __webpack_require__(22);
-
- module.exports = function (object, index, value) {
- if (index in object) $defineProperty.f(object, index, createDesc(0, value));
- else object[index] = value;
- };
-
-
- /***/ }),
- /* 188 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var ITERATOR = __webpack_require__(4)('iterator');
- var SAFE_CLOSING = false;
-
- try {
- var riter = [7][ITERATOR]();
- riter['return'] = function () { SAFE_CLOSING = true; };
- // eslint-disable-next-line no-throw-literal
- Array.from(riter, function () { throw 2; });
- } catch (e) { /* empty */ }
-
- module.exports = function (exec, skipClosing) {
- if (!skipClosing && !SAFE_CLOSING) return false;
- var safe = false;
- try {
- var arr = [7];
- var iter = arr[ITERATOR]();
- iter.next = function () { return { done: safe = true }; };
- arr[ITERATOR] = function () { return iter; };
- exec(arr);
- } catch (e) { /* empty */ }
- return safe;
- };
-
-
- /***/ }),
- /* 189 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(190),
- /* template */
- __webpack_require__(191),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 190 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__select_Select__ = __webpack_require__(31);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__select_Select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__select_Select__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__icon_Icon__);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTableMobileSort',
- components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_1__select_Select___default.a.name, __WEBPACK_IMPORTED_MODULE_1__select_Select___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default.a), _components),
- props: {
- currentSortColumn: Object,
- isAsc: Boolean,
- columns: Array,
- placeholder: String
- },
- data: function data() {
- return {
- mobileSort: this.currentSortColumn
- };
- },
-
- computed: {
- showPlaceholder: function showPlaceholder() {
- var _this = this;
-
- return !this.columns || !this.columns.some(function (column) {
- return column === _this.mobileSort;
- });
- }
- },
- watch: {
- mobileSort: function mobileSort(column) {
- if (this.currentSortColumn === column) return;
-
- this.$emit('sort', column);
- },
- currentSortColumn: function currentSortColumn(column) {
- this.mobileSort = column;
- }
- },
- methods: {
- sort: function sort() {
- this.$emit('sort', this.mobileSort);
- }
- }
- });
-
- /***/ }),
- /* 191 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "field table-mobile-sort"
- }, [_c('div', {
- staticClass: "field has-addons"
- }, [_c('b-select', {
- attrs: {
- "expanded": ""
- },
- model: {
- value: (_vm.mobileSort),
- callback: function($$v) {
- _vm.mobileSort = $$v
- },
- expression: "mobileSort"
- }
- }, [(_vm.placeholder) ? [_c('option', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.showPlaceholder),
- expression: "showPlaceholder"
- }],
- attrs: {
- "selected": "",
- "disabled": "",
- "hidden": ""
- },
- domProps: {
- "value": {}
- }
- }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e(), _vm._v(" "), _vm._l((_vm.columns), function(column, index) {
- return (column.sortable) ? _c('option', {
- key: index,
- domProps: {
- "value": column
- }
- }, [_vm._v("\n " + _vm._s(column.label) + "\n ")]) : _vm._e()
- })], 2), _vm._v(" "), _c('div', {
- staticClass: "control"
- }, [_c('button', {
- staticClass: "button is-primary",
- on: {
- "click": _vm.sort
- }
- }, [_c('b-icon', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.currentSortColumn === _vm.mobileSort),
- expression: "currentSortColumn === mobileSort"
- }],
- class: {
- 'is-desc': !_vm.isAsc
- },
- attrs: {
- "icon": "arrow-up",
- "size": "is-small",
- "both": ""
- }
- })], 1)])], 1)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 192 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTableColumn',
- props: {
- label: String,
- customKey: [String, Number],
- field: String,
- meta: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- width: [Number, String],
- numeric: Boolean,
- centered: Boolean,
- sortable: Boolean,
- visible: {
- type: Boolean,
- default: true
- },
- customSort: Function,
- internal: Boolean // Used internally by Table
- },
- data: function data() {
- return {
- newKey: this.customKey || this.label
- };
- },
-
- computed: {
- rootClasses: function rootClasses() {
- return {
- 'has-text-right': this.numeric && !this.centered,
- 'has-text-centered': this.centered
- };
- }
- },
- methods: {
- addRefToTable: function addRefToTable() {
- var _this = this;
-
- if (!this.$parent.$data._isTable) {
- this.$destroy();
- throw new Error('You should wrap bTableColumn on a bTable');
- }
-
- if (this.internal) return;
-
- // Since we're using scoped prop the columns gonna be multiplied,
- // this finds when to stop based on the newKey property.
- var repeated = this.$parent.newColumns.some(function (column) {
- return column.newKey === _this.newKey;
- });
- !repeated && this.$parent.newColumns.push(this);
- }
- },
- beforeMount: function beforeMount() {
- this.addRefToTable();
- },
- beforeUpdate: function beforeUpdate() {
- this.addRefToTable();
- },
- beforeDestroy: function beforeDestroy() {
- var index = this.$parent.newColumns.map(function (column) {
- return column.newKey;
- }).indexOf(this.newKey);
- if (index >= 0) {
- this.$parent.newColumns.splice(index, 1);
- }
- }
- });
-
- /***/ }),
- /* 193 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return (_vm.visible) ? _c('td', {
- class: _vm.rootClasses,
- attrs: {
- "data-label": _vm.label
- }
- }, [_c('span', [_vm._t("default")], 2)]) : _vm._e()
- },staticRenderFns: []}
-
- /***/ }),
- /* 194 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "b-table",
- class: {
- 'is-loading': _vm.loading
- }
- }, [(_vm.mobileCards && _vm.hasSortablenewColumns) ? _c('b-table-mobile-sort', {
- attrs: {
- "current-sort-column": _vm.currentSortColumn,
- "is-asc": _vm.isAsc,
- "columns": _vm.newColumns,
- "placeholder": _vm.mobileSortPlaceholder
- },
- on: {
- "sort": function (column) { return _vm.sort(column); }
- }
- }) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "table-wrapper"
- }, [_c('table', {
- staticClass: "table",
- class: _vm.tableClasses,
- attrs: {
- "tabindex": !_vm.focusable ? false : 0
- },
- on: {
- "keydown": [function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "up", 38, $event.key)) { return null; }
- if ($event.target !== $event.currentTarget) { return null; }
- $event.preventDefault();
- _vm.pressedArrow(-1)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "down", 40, $event.key)) { return null; }
- if ($event.target !== $event.currentTarget) { return null; }
- $event.preventDefault();
- _vm.pressedArrow(1)
- }]
- }
- }, [(_vm.newColumns.length) ? _c('thead', [_c('tr', [(_vm.showDetailRowIcon) ? _c('th', {
- attrs: {
- "width": "40px"
- }
- }) : _vm._e(), _vm._v(" "), (_vm.checkable) ? _c('th', {
- staticClass: "checkbox-cell"
- }, [_c('b-checkbox', {
- attrs: {
- "value": _vm.isAllChecked,
- "disabled": _vm.isAllUncheckable
- },
- nativeOn: {
- "change": function($event) {
- _vm.checkAll($event)
- }
- }
- })], 1) : _vm._e(), _vm._v(" "), _vm._l((_vm.visibleColumns), function(column, index) {
- return _c('th', {
- key: index,
- class: {
- 'is-current-sort': _vm.currentSortColumn === column,
- 'is-sortable': column.sortable
- },
- style: ({
- width: column.width + 'px'
- }),
- on: {
- "click": function($event) {
- $event.stopPropagation();
- _vm.sort(column)
- }
- }
- }, [_c('div', {
- staticClass: "th-wrap",
- class: {
- 'is-numeric': column.numeric,
- 'is-centered': column.centered
- }
- }, [(_vm.$scopedSlots.header) ? _vm._t("header", null, {
- column: column,
- index: index
- }) : [_vm._v(_vm._s(column.label))], _vm._v(" "), _c('b-icon', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.currentSortColumn === column),
- expression: "currentSortColumn === column"
- }],
- class: {
- 'is-desc': !_vm.isAsc
- },
- attrs: {
- "icon": "arrow-up",
- "pack": _vm.iconPack,
- "both": "",
- "size": "is-small"
- }
- })], 2)])
- })], 2)]) : _vm._e(), _vm._v(" "), (_vm.visibleData.length) ? _c('tbody', [_vm._l((_vm.visibleData), function(row, index) {
- return [_c('tr', {
- key: _vm.customRowKey ? row[_vm.customRowKey] : index,
- class: [_vm.rowClass(row, index), {
- 'is-selected': row === _vm.selected,
- 'is-checked': _vm.isRowChecked(row),
- }],
- attrs: {
- "draggable": _vm.draggable
- },
- on: {
- "click": function($event) {
- _vm.selectRow(row)
- },
- "dblclick": function($event) {
- _vm.$emit('dblclick', row)
- },
- "contextmenu": function($event) {
- _vm.$emit('contextmenu', row, $event)
- },
- "dragstart": function($event) {
- _vm.handleDragStart($event, row, index)
- },
- "drop": function($event) {
- _vm.handleDrop($event, row, index)
- },
- "dragover": function($event) {
- _vm.handleDragOver($event, row, index)
- },
- "dragleave": function($event) {
- _vm.handleDragLeave($event, row, index)
- }
- }
- }, [(_vm.showDetailRowIcon) ? _c('td', {
- staticClass: "chevron-cell"
- }, [(_vm.hasDetailedVisible(row)) ? _c('a', {
- attrs: {
- "role": "button"
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- _vm.toggleDetails(row)
- }
- }
- }, [_c('b-icon', {
- class: {
- 'is-expanded': _vm.isVisibleDetailRow(row)
- },
- attrs: {
- "icon": "chevron-right",
- "pack": _vm.iconPack,
- "both": ""
- }
- })], 1) : _vm._e()]) : _vm._e(), _vm._v(" "), (_vm.checkable) ? _c('td', {
- staticClass: "checkbox-cell"
- }, [_c('b-checkbox', {
- attrs: {
- "disabled": !_vm.isRowCheckable(row),
- "value": _vm.isRowChecked(row)
- },
- nativeOn: {
- "change": function($event) {
- _vm.checkRow(row)
- },
- "click": function($event) {
- $event.stopPropagation();
- }
- }
- })], 1) : _vm._e(), _vm._v(" "), (_vm.$scopedSlots.default) ? _vm._t("default", null, {
- row: row,
- index: index
- }) : _vm._l((_vm.newColumns), function(column) {
- return _c('BTableColumn', _vm._b({
- key: column.field,
- attrs: {
- "internal": ""
- }
- }, 'BTableColumn', column, false), [(column.renderHtml) ? _c('span', {
- domProps: {
- "innerHTML": _vm._s(_vm.getValueByPath(row, column.field))
- }
- }) : [_vm._v("\n " + _vm._s(_vm.getValueByPath(row, column.field)) + "\n ")]], 2)
- })], 2), _vm._v(" "), (_vm.isActiveDetailRow(row)) ? _c('tr', {
- staticClass: "detail"
- }, [_c('td', {
- attrs: {
- "colspan": _vm.columnCount
- }
- }, [_c('div', {
- staticClass: "detail-container"
- }, [_vm._t("detail", null, {
- row: row,
- index: index
- })], 2)])]) : _vm._e(), _vm._v(" "), (_vm.isActiveCustomDetailRow(row)) ? _vm._t("detail", null, {
- row: row,
- index: index
- }) : _vm._e()]
- })], 2) : _c('tbody', [_c('tr', {
- staticClass: "is-empty"
- }, [_c('td', {
- attrs: {
- "colspan": _vm.columnCount
- }
- }, [_vm._t("empty")], 2)])]), _vm._v(" "), (_vm.$slots.footer !== undefined) ? _c('tfoot', [_c('tr', {
- staticClass: "table-footer"
- }, [(_vm.hasCustomFooterSlot()) ? _vm._t("footer") : _c('th', {
- attrs: {
- "colspan": _vm.columnCount
- }
- }, [_vm._t("footer")], 2)], 2)]) : _vm._e()])]), _vm._v(" "), ((_vm.checkable && _vm.hasBottomLeftSlot()) || _vm.paginated) ? _c('div', {
- staticClass: "level"
- }, [_c('div', {
- staticClass: "level-left"
- }, [_vm._t("bottom-left")], 2), _vm._v(" "), _c('div', {
- staticClass: "level-right"
- }, [(_vm.paginated) ? _c('div', {
- staticClass: "level-item"
- }, [_c('b-pagination', {
- attrs: {
- "icon-pack": _vm.iconPack,
- "total": _vm.newDataTotal,
- "per-page": _vm.perPage,
- "simple": _vm.paginationSimple,
- "size": _vm.paginationSize,
- "current": _vm.newCurrentPage,
- "aria-next-label": _vm.ariaNextLabel,
- "aria-previous-label": _vm.ariaPreviousLabel,
- "aria-page-label": _vm.ariaPageLabel,
- "aria-current-label": _vm.ariaCurrentLabel
- },
- on: {
- "change": _vm.pageChanged
- }
- })], 1) : _vm._e()])]) : _vm._e()], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 195 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(196),
- /* template */
- __webpack_require__(197),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 196 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
-
- // EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/defineProperty.js
- var defineProperty = __webpack_require__(1);
- var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
-
- // EXTERNAL MODULE: ./src/components/icon/Icon.vue
- var Icon = __webpack_require__(3);
- var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon);
-
- // CONCATENATED MODULE: ./src/utils/SlotComponent.js
- /* harmony default export */ var SlotComponent = ({
- name: 'BSlotComponent',
- props: {
- component: {
- type: Object,
- required: true
- },
- name: {
- type: String,
- default: 'default'
- },
- tag: {
- type: String,
- default: 'div'
- },
- event: {
- type: String,
- default: 'hook:updated'
- }
- },
- methods: {
- refresh: function refresh() {
- this.$forceUpdate();
- },
- isVueComponent: function isVueComponent() {
- return this.component && this.component._isVue;
- }
- },
- created: function created() {
- if (this.isVueComponent()) {
- this.component.$on(this.event, this.refresh);
- }
- },
- beforeDestroy: function beforeDestroy() {
- if (this.isVueComponent()) {
- this.component.$off(this.event, this.refresh);
- }
- },
- render: function render(h) {
- if (this.isVueComponent()) {
- var slots = this.component.$slots[this.name];
- return h(this.tag, {}, slots);
- }
- }
- });
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/tabs/Tabs.vue
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ var Tabs = __webpack_exports__["default"] = ({
- name: 'BTabs',
- components: (_components = {}, defineProperty_default()(_components, Icon_default.a.name, Icon_default.a), defineProperty_default()(_components, SlotComponent.name, SlotComponent), _components),
- props: {
- value: Number,
- expanded: Boolean,
- type: String,
- size: String,
- position: String,
- animated: {
- type: Boolean,
- default: true
- },
- destroyOnHide: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- activeTab: this.value || 0,
- tabItems: [],
- contentHeight: 0,
- isTransitioning: false,
- _isTabs: true // Used internally by TabItem
- };
- },
-
- computed: {
- navClasses: function navClasses() {
- return [this.type, this.size, this.position, {
- 'is-fullwidth': this.expanded,
- 'is-toggle-rounded is-toggle': this.type === 'is-toggle-rounded'
- }];
- }
- },
- watch: {
- /**
- * When v-model is changed set the new active tab.
- */
- value: function value(_value) {
- this.changeTab(_value);
- },
-
-
- /**
- * When tab-items are updated, set active one.
- */
- tabItems: function tabItems() {
- if (this.activeTab < this.tabItems.length) {
- this.tabItems[this.activeTab].isActive = true;
- }
- }
- },
- methods: {
- /**
- * Change the active tab and emit change event.
- */
- changeTab: function changeTab(newIndex) {
- if (this.activeTab === newIndex) return;
-
- if (this.activeTab < this.tabItems.length) {
- this.tabItems[this.activeTab].deactivate(this.activeTab, newIndex);
- }
- this.tabItems[newIndex].activate(this.activeTab, newIndex);
- this.activeTab = newIndex;
- this.$emit('change', newIndex);
- },
-
-
- /**
- * Tab click listener, emit input event and change active tab.
- */
- tabClick: function tabClick(value) {
- this.$emit('input', value);
- this.changeTab(value);
- }
- },
- mounted: function mounted() {
- if (this.activeTab < this.tabItems.length) {
- this.tabItems[this.activeTab].isActive = true;
- }
- }
- });
-
- /***/ }),
- /* 197 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "b-tabs",
- class: {
- 'is-fullwidth': _vm.expanded
- }
- }, [_c('nav', {
- staticClass: "tabs",
- class: _vm.navClasses
- }, [_c('ul', _vm._l((_vm.tabItems), function(tabItem, index) {
- return _c('li', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (tabItem.visible),
- expression: "tabItem.visible"
- }],
- key: index,
- class: {
- 'is-active': _vm.activeTab === index, 'is-disabled': tabItem.disabled
- }
- }, [_c('a', {
- on: {
- "click": function($event) {
- _vm.tabClick(index)
- }
- }
- }, [(tabItem.$slots.header) ? [_c('b-slot-component', {
- attrs: {
- "component": tabItem,
- "name": "header",
- "tag": "span"
- }
- })] : [(tabItem.icon) ? _c('b-icon', {
- attrs: {
- "icon": tabItem.icon,
- "pack": tabItem.iconPack,
- "size": _vm.size
- }
- }) : _vm._e(), _vm._v(" "), _c('span', [_vm._v(_vm._s(tabItem.label))])]], 2)])
- }))]), _vm._v(" "), _c('section', {
- staticClass: "tab-content",
- class: {
- 'is-transitioning': _vm.isTransitioning
- }
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 198 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(199),
- /* template */
- null,
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 199 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTabItem',
- props: {
- label: String,
- icon: String,
- iconPack: String,
- disabled: Boolean,
- visible: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- isActive: false,
- transitionName: null
- };
- },
-
- methods: {
- /**
- * Activate tab, alter animation name based on the index.
- */
- activate: function activate(oldIndex, index) {
- this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
- this.isActive = true;
- },
-
-
- /**
- * Deactivate tab, alter animation name based on the index.
- */
- deactivate: function deactivate(oldIndex, index) {
- this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
- this.isActive = false;
- }
- },
- created: function created() {
- if (!this.$parent.$data._isTabs) {
- this.$destroy();
- throw new Error('You should wrap bTabItem on a bTabs');
- }
- this.$parent.tabItems.push(this);
- },
- beforeDestroy: function beforeDestroy() {
- var index = this.$parent.tabItems.indexOf(this);
- if (index >= 0) {
- this.$parent.tabItems.splice(index, 1);
- }
- },
- render: function render(createElement) {
- var _this = this;
-
- // if destroy apply v-if
- if (this.$parent.destroyOnHide) {
- if (!this.isActive || !this.visible) {
- return;
- }
- }
- var vnode = createElement('div', {
- directives: [{
- name: 'show',
- value: this.isActive && this.visible
- }],
- attrs: { 'class': 'tab-item' }
- }, this.$slots.default);
- // check animated prop
- if (this.$parent.animated) {
- return createElement('transition', {
- props: {
- 'name': this.transitionName
- },
- on: {
- 'before-enter': function beforeEnter() {
- _this.$parent.isTransitioning = true;
- },
- 'after-enter': function afterEnter() {
- _this.$parent.isTransitioning = false;
- }
- }
- }, [vnode]);
- }
- return vnode;
- }
- });
-
- /***/ }),
- /* 200 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTag',
- props: {
- attached: Boolean,
- closable: Boolean,
- type: String,
- size: String,
- rounded: Boolean,
- disabled: Boolean,
- ellipsis: Boolean,
- tabstop: {
- type: Boolean,
- default: true
- }
- },
- methods: {
- /**
- * Emit close event when delete button is clicked
- * or delete key is pressed.
- */
- close: function close() {
- if (this.disabled) return;
-
- this.$emit('close');
- }
- }
- });
-
- /***/ }),
- /* 201 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return (_vm.attached && _vm.closable) ? _c('div', {
- staticClass: "tags has-addons"
- }, [_c('span', {
- staticClass: "tag",
- class: [_vm.type, _vm.size, {
- 'is-rounded': _vm.rounded
- }]
- }, [_c('span', {
- class: {
- 'has-ellipsis': _vm.ellipsis
- }
- }, [_vm._t("default")], 2)]), _vm._v(" "), _c('a', {
- staticClass: "tag is-delete",
- class: [_vm.size, {
- 'is-rounded': _vm.rounded
- }],
- attrs: {
- "role": "button",
- "tabindex": _vm.tabstop ? 0 : false,
- "disabled": _vm.disabled
- },
- on: {
- "click": function($event) {
- _vm.close()
- },
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "delete", [8, 46], $event.key)) { return null; }
- $event.preventDefault();
- _vm.close()
- }
- }
- })]) : _c('span', {
- staticClass: "tag",
- class: [_vm.type, _vm.size, {
- 'is-rounded': _vm.rounded
- }]
- }, [_c('span', {
- class: {
- 'has-ellipsis': _vm.ellipsis
- }
- }, [_vm._t("default")], 2), _vm._v(" "), (_vm.closable) ? _c('a', {
- staticClass: "delete is-small",
- attrs: {
- "role": "button",
- "disabled": _vm.disabled,
- "tabindex": _vm.tabstop ? 0 : false
- },
- on: {
- "click": function($event) {
- _vm.close()
- },
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "delete", [8, 46], $event.key)) { return null; }
- $event.preventDefault();
- _vm.close()
- }
- }
- }) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 202 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(203),
- /* template */
- __webpack_require__(204),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 203 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTaglist',
- props: {
- attached: Boolean
- }
- });
-
- /***/ }),
- /* 204 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "tags",
- class: {
- 'has-addons': _vm.attached
- }
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
-
- /***/ }),
- /* 205 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(206),
- /* template */
- __webpack_require__(207),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 206 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(53);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tag_Tag__ = __webpack_require__(68);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tag_Tag___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__tag_Tag__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete__ = __webpack_require__(52);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_FormElementMixin__ = __webpack_require__(10);
-
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTaginput',
- components: (_components = {}, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete___default.a.name, __WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete___default.a), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_3__tag_Tag___default.a.name, __WEBPACK_IMPORTED_MODULE_3__tag_Tag___default.a), _components),
- mixins: [__WEBPACK_IMPORTED_MODULE_5__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- data: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- type: String,
- rounded: {
- type: Boolean,
- default: false
- },
- attached: {
- type: Boolean,
- default: false
- },
- maxtags: {
- type: [Number, String],
- required: false
- },
- field: {
- type: String,
- default: 'value'
- },
- autocomplete: Boolean,
- nativeAutocomplete: String,
- disabled: Boolean,
- ellipsis: Boolean,
- closable: {
- type: Boolean,
- default: true
- },
- confirmKeyCodes: {
- type: Array,
- default: function _default() {
- return [13, 188];
- }
- },
- removeOnKeys: {
- type: Array,
- default: function _default() {
- return [8];
- }
- },
- allowNew: Boolean,
- onPasteSeparators: {
- type: Array,
- default: function _default() {
- return [','];
- }
- },
- beforeAdding: {
- type: Function,
- default: function _default() {
- return true;
- }
- },
- allowDuplicates: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- tags: this.value || [],
- newTag: '',
- _elementRef: 'input',
- _isTaginput: true
- };
- },
-
- computed: {
- rootClasses: function rootClasses() {
- return {
- 'is-expanded': this.expanded
- };
- },
- containerClasses: function containerClasses() {
- return {
- 'is-focused': this.isFocused,
- 'is-focusable': this.hasInput
- };
- },
- valueLength: function valueLength() {
- return this.newTag.trim().length;
- },
- defaultSlotName: function defaultSlotName() {
- return this.hasDefaultSlot ? 'default' : 'dontrender';
- },
- emptySlotName: function emptySlotName() {
- return this.hasEmptySlot ? 'empty' : 'dontrender';
- },
- headerSlotName: function headerSlotName() {
- return this.hasHeaderSlot ? 'header' : 'dontrender';
- },
- hasDefaultSlot: function hasDefaultSlot() {
- return !!this.$scopedSlots.default;
- },
- hasEmptySlot: function hasEmptySlot() {
- return !!this.$slots.empty;
- },
- hasHeaderSlot: function hasHeaderSlot() {
- return !!this.$slots.header;
- },
-
-
- /**
- * Show the input field if a maxtags hasn't been set or reached.
- */
- hasInput: function hasInput() {
- return this.maxtags == null || this.tagsLength < this.maxtags;
- },
- tagsLength: function tagsLength() {
- return this.tags.length;
- },
-
-
- /**
- * If Taginput has onPasteSeparators prop,
- * returning new RegExp used to split pasted string.
- */
- separatorsAsRegExp: function separatorsAsRegExp() {
- var sep = this.onPasteSeparators;
-
- return sep.length ? new RegExp(sep.map(function (s) {
- return s ? s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') : null;
- }).join('|'), 'g') : null;
- }
- },
- watch: {
- /**
- * When v-model is changed set internal value.
- */
- value: function value(_value) {
- this.tags = _value;
- },
- hasInput: function hasInput() {
- if (!this.hasInput) this.onBlur();
- }
- },
- methods: {
- addTag: function addTag(tag) {
- var tagToAdd = tag || this.newTag.trim();
-
- if (tagToAdd) {
- if (!this.autocomplete) {
- var reg = this.separatorsAsRegExp;
- if (reg && tagToAdd.match(reg)) {
- tagToAdd.split(reg).map(function (t) {
- return t.trim();
- }).filter(function (t) {
- return t.length !== 0;
- }).map(this.addTag);
- return;
- }
- }
-
- // Add the tag input if it is not blank
- // or previously added (if not allowDuplicates).
- var add = !this.allowDuplicates ? this.tags.indexOf(tagToAdd) === -1 : true;
- if (add && this.beforeAdding(tagToAdd)) {
- this.tags.push(tagToAdd);
- this.$emit('input', this.tags);
- this.$emit('add', tagToAdd);
- }
- }
-
- this.newTag = '';
- },
- getNormalizedTagText: function getNormalizedTagText(tag) {
- if ((typeof tag === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(tag)) === 'object') {
- return Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */])(tag, this.field);
- }
-
- return tag;
- },
- customOnBlur: function customOnBlur($event) {
- // Add tag on-blur if not select only
- if (!this.autocomplete) this.addTag();
-
- this.onBlur($event);
- },
- onSelect: function onSelect(option) {
- var _this = this;
-
- if (!option) return;
-
- this.addTag(option);
- this.$nextTick(function () {
- _this.newTag = '';
- });
- },
- removeTag: function removeTag(index) {
- var tag = this.tags.splice(index, 1)[0];
- this.$emit('input', this.tags);
- this.$emit('remove', tag);
- return tag;
- },
- removeLastTag: function removeLastTag() {
- if (this.tagsLength > 0) {
- this.removeTag(this.tagsLength - 1);
- }
- },
- keydown: function keydown(event) {
- if (this.removeOnKeys.indexOf(event.keyCode) !== -1 && !this.newTag.length) {
- this.removeLastTag();
- }
- // Stop if is to accept select only
- if (this.autocomplete && !this.allowNew) return;
-
- if (this.confirmKeyCodes.indexOf(event.keyCode) >= 0) {
- event.preventDefault();
- this.addTag();
- }
- },
- onTyping: function onTyping($event) {
- this.$emit('typing', $event.trim());
- }
- }
- });
-
- /***/ }),
- /* 207 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "taginput control",
- class: _vm.rootClasses
- }, [_c('div', {
- staticClass: "taginput-container",
- class: [_vm.statusType, _vm.size, _vm.containerClasses],
- attrs: {
- "disabled": _vm.disabled
- },
- on: {
- "click": function($event) {
- _vm.hasInput && _vm.focus($event)
- }
- }
- }, [_vm._l((_vm.tags), function(tag, index) {
- return _c('b-tag', {
- key: index,
- attrs: {
- "type": _vm.type,
- "size": _vm.size,
- "rounded": _vm.rounded,
- "attached": _vm.attached,
- "tabstop": false,
- "disabled": _vm.disabled,
- "ellipsis": _vm.ellipsis,
- "closable": _vm.closable
- },
- on: {
- "close": function($event) {
- _vm.removeTag(index)
- }
- }
- }, [_vm._v("\n " + _vm._s(_vm.getNormalizedTagText(tag)) + "\n ")])
- }), _vm._v(" "), (_vm.hasInput) ? _c('b-autocomplete', _vm._b({
- ref: "autocomplete",
- attrs: {
- "data": _vm.data,
- "field": _vm.field,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "maxlength": _vm.maxlength,
- "has-counter": false,
- "size": _vm.size,
- "disabled": _vm.disabled,
- "loading": _vm.loading,
- "autocomplete": _vm.nativeAutocomplete,
- "keep-first": !_vm.allowNew
- },
- on: {
- "typing": _vm.onTyping,
- "focus": _vm.onFocus,
- "blur": _vm.customOnBlur,
- "select": _vm.onSelect
- },
- nativeOn: {
- "keydown": function($event) {
- _vm.keydown($event)
- }
- },
- scopedSlots: _vm._u([{
- key: _vm.defaultSlotName,
- fn: function(props) {
- return [_vm._t("default", null, {
- option: props.option,
- index: props.index
- })]
- }
- }]),
- model: {
- value: (_vm.newTag),
- callback: function($$v) {
- _vm.newTag = $$v
- },
- expression: "newTag"
- }
- }, 'b-autocomplete', _vm.$attrs, false), [_c('template', {
- slot: _vm.headerSlotName
- }, [_vm._t("header")], 2), _vm._v(" "), _c('template', {
- slot: _vm.emptySlotName
- }, [_vm._t("empty")], 2)], 2) : _vm._e()], 2), _vm._v(" "), (_vm.maxtags || _vm.maxlength) ? _c('p', {
- staticClass: "help counter"
- }, [(_vm.maxlength && _vm.valueLength > 0) ? [_vm._v("\n " + _vm._s(_vm.valueLength) + " / " + _vm._s(_vm.maxlength) + "\n ")] : (_vm.maxtags) ? [_vm._v("\n " + _vm._s(_vm.tagsLength) + " / " + _vm._s(_vm.maxtags) + "\n ")] : _vm._e()], 2) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 208 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(209),
- /* template */
- __webpack_require__(210),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 209 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__ = __webpack_require__(62);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__ = __webpack_require__(28);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__ = __webpack_require__(29);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__input_Input__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field__ = __webpack_require__(30);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__field_Field__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__select_Select__ = __webpack_require__(31);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__select_Select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__select_Select__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__icon_Icon__);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTimepicker',
- components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_4__input_Input___default.a.name, __WEBPACK_IMPORTED_MODULE_4__input_Input___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_5__field_Field___default.a.name, __WEBPACK_IMPORTED_MODULE_5__field_Field___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_6__select_Select___default.a.name, __WEBPACK_IMPORTED_MODULE_6__select_Select___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_7__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_7__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default.a.name, __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default.a.name, __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default.a), _components),
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__["a" /* default */]],
- inheritAttrs: false,
- data: function data() {
- return {
- _isTimepicker: true
- };
- }
- });
-
- /***/ }),
- /* 210 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "timepicker control",
- class: [_vm.size, {
- 'is-expanded': _vm.expanded
- }]
- }, [(!_vm.isMobile || _vm.inline) ? _c('b-dropdown', {
- ref: "dropdown",
- attrs: {
- "position": _vm.position,
- "disabled": _vm.disabled,
- "inline": _vm.inline
- }
- }, [(!_vm.inline) ? _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "slot": "trigger",
- "autocomplete": "off",
- "value": _vm.formatValue(_vm.dateSelected),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "loading": _vm.loading,
- "disabled": _vm.disabled,
- "readonly": !_vm.editable,
- "rounded": _vm.rounded
- },
- on: {
- "focus": function($event) {
- _vm.$emit('focus', $event)
- },
- "blur": function($event) {
- _vm.$emit('blur', $event) && _vm.checkHtml5Validity()
- }
- },
- nativeOn: {
- "change": function($event) {
- _vm.onChange($event.target.value)
- }
- },
- slot: "trigger"
- }, 'b-input', _vm.$attrs, false)) : _vm._e(), _vm._v(" "), _c('b-dropdown-item', {
- attrs: {
- "disabled": _vm.disabled,
- "custom": ""
- }
- }, [_c('b-field', {
- attrs: {
- "grouped": "",
- "position": "is-centered"
- }
- }, [_c('b-select', {
- attrs: {
- "disabled": _vm.disabled,
- "placeholder": "00"
- },
- nativeOn: {
- "change": function($event) {
- _vm.onHoursChange($event.target.value)
- }
- },
- model: {
- value: (_vm.hoursSelected),
- callback: function($$v) {
- _vm.hoursSelected = $$v
- },
- expression: "hoursSelected"
- }
- }, _vm._l((_vm.hours), function(hour) {
- return _c('option', {
- key: hour.value,
- attrs: {
- "disabled": _vm.isHourDisabled(hour.value)
- },
- domProps: {
- "value": hour.value
- }
- }, [_vm._v("\n " + _vm._s(hour.label) + "\n ")])
- })), _vm._v(" "), _c('span', {
- staticClass: "control is-colon"
- }, [_vm._v(":")]), _vm._v(" "), _c('b-select', {
- attrs: {
- "disabled": _vm.disabled,
- "placeholder": "00"
- },
- nativeOn: {
- "change": function($event) {
- _vm.onMinutesChange($event.target.value)
- }
- },
- model: {
- value: (_vm.minutesSelected),
- callback: function($$v) {
- _vm.minutesSelected = $$v
- },
- expression: "minutesSelected"
- }
- }, _vm._l((_vm.minutes), function(minute) {
- return _c('option', {
- key: minute.value,
- attrs: {
- "disabled": _vm.isMinuteDisabled(minute.value)
- },
- domProps: {
- "value": minute.value
- }
- }, [_vm._v("\n " + _vm._s(minute.label) + "\n ")])
- })), _vm._v(" "), (!_vm.isHourFormat24) ? _c('b-select', {
- attrs: {
- "disabled": _vm.disabled
- },
- nativeOn: {
- "change": function($event) {
- _vm.onMeridienChange($event.target.value)
- }
- },
- model: {
- value: (_vm.meridienSelected),
- callback: function($$v) {
- _vm.meridienSelected = $$v
- },
- expression: "meridienSelected"
- }
- }, _vm._l((_vm.meridiens), function(meridien) {
- return _c('option', {
- key: meridien,
- domProps: {
- "value": meridien
- }
- }, [_vm._v("\n " + _vm._s(meridien) + "\n ")])
- })) : _vm._e()], 1), _vm._v(" "), (_vm.$slots.default !== undefined && _vm.$slots.default.length) ? _c('footer', {
- staticClass: "timepicker-footer"
- }, [_vm._t("default")], 2) : _vm._e()], 1)], 1) : _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "type": "time",
- "autocomplete": "off",
- "value": _vm.formatHHMMSS(_vm.value),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "loading": _vm.loading,
- "max": _vm.formatHHMMSS(_vm.maxTime),
- "min": _vm.formatHHMMSS(_vm.minTime),
- "disabled": _vm.disabled,
- "readonly": false
- },
- on: {
- "focus": function($event) {
- _vm.$emit('focus', $event)
- },
- "blur": function($event) {
- _vm.$emit('blur', $event) && _vm.checkHtml5Validity()
- }
- },
- nativeOn: {
- "change": function($event) {
- _vm.onChangeNativePicker($event)
- }
- }
- }, 'b-input', _vm.$attrs, false))], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 211 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(212),
- /* template */
- __webpack_require__(213),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 212 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__ = __webpack_require__(45);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BToast',
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__["a" /* default */]],
- data: function data() {
- return {
- newDuration: this.duration || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultToastDuration
- };
- }
- });
-
- /***/ }),
- /* 213 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "enter-active-class": _vm.transition.enter,
- "leave-active-class": _vm.transition.leave
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive),
- expression: "isActive"
- }],
- staticClass: "toast",
- class: [_vm.type, _vm.position],
- attrs: {
- "aria-hidden": !_vm.isActive,
- "role": "alert"
- }
- }, [_c('div', {
- domProps: {
- "innerHTML": _vm._s(_vm.message)
- }
- })])])
- },staticRenderFns: []}
-
- /***/ }),
- /* 214 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(215),
- /* template */
- __webpack_require__(216),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 215 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTooltip',
- props: {
- active: {
- type: Boolean,
- default: true
- },
- type: String,
- label: String,
- position: {
- type: String,
- default: 'is-top',
- validator: function validator(value) {
- return ['is-top', 'is-bottom', 'is-left', 'is-right'].indexOf(value) > -1;
- }
- },
- always: Boolean,
- animated: Boolean,
- square: Boolean,
- dashed: Boolean,
- multilined: Boolean,
- size: {
- type: String,
- default: 'is-medium'
- }
- },
- computed: {
- newType: function newType() {
- return this.type || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultTooltipType;
- },
- newAnimated: function newAnimated() {
- return this.animated || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultTooltipAnimated;
- }
- }
- });
-
- /***/ }),
- /* 216 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('span', {
- class: [_vm.newType, _vm.position, _vm.size, {
- 'b-tooltip': _vm.active,
- 'is-square': _vm.square,
- 'is-animated': _vm.newAnimated,
- 'is-always': _vm.always,
- 'is-multiline': _vm.multilined,
- 'is-dashed': _vm.dashed
- }],
- attrs: {
- "data-label": _vm.label
- }
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
-
- /***/ }),
- /* 217 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(218),
- /* template */
- __webpack_require__(219),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 218 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_FormElementMixin__ = __webpack_require__(10);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_ssr__ = __webpack_require__(64);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BUpload',
- mixins: [__WEBPACK_IMPORTED_MODULE_0__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: {
- type: [Object, Function, __WEBPACK_IMPORTED_MODULE_1__utils_ssr__["a" /* File */], Array]
- },
- multiple: Boolean,
- disabled: Boolean,
- accept: String,
- dragDrop: Boolean,
- type: {
- type: String,
- default: 'is-primary'
- },
- native: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- newValue: this.value,
- dragDropFocus: false,
- _elementRef: 'input'
- };
- },
-
- watch: {
- /**
- * When v-model is changed:
- * 1. Set internal value.
- * 2. Reset input value if array is empty
- * 3. If it's invalid, validate again.
- */
- value: function value(_value) {
- this.newValue = _value;
- if (!this.newValue || Array.isArray(this.newValue) && this.newValue.length === 0) {
- this.$refs.input.value = null;
- }
- !this.isValid && !this.dragDrop && this.checkHtml5Validity();
- }
- },
- methods: {
-
- /**
- * Listen change event on input type 'file',
- * emit 'input' event and validate
- */
- onFileChange: function onFileChange(event) {
- if (this.disabled || this.loading) return;
- if (this.dragDrop) {
- this.updateDragDropFocus(false);
- }
- var value = event.target.files || event.dataTransfer.files;
- if (value.length === 0) {
- if (!this.newValue) {
- return;
- }
- this.newValue = null;
- } else if (!this.multiple) {
- // only one element in case drag drop mode and isn't multiple
- if (this.dragDrop && value.length !== 1) return;else {
- var file = value[0];
- if (this.checkType(file)) {
- this.newValue = file;
- } else if (this.newValue) {
- this.newValue = null;
- } else {
- return;
- }
- }
- } else {
- // always new values if native or undefined local
- var newValues = false;
- if (this.native || !this.newValue) {
- this.newValue = [];
- newValues = true;
- }
- for (var i = 0; i < value.length; i++) {
- var _file = value[i];
- if (this.checkType(_file)) {
- this.newValue.push(_file);
- newValues = true;
- }
- }
- if (!newValues) {
- return;
- }
- }
- this.$emit('input', this.newValue);
- !this.dragDrop && this.checkHtml5Validity();
- },
-
-
- /**
- * Listen drag-drop to update internal variable
- */
- updateDragDropFocus: function updateDragDropFocus(focus) {
- if (!this.disabled && !this.loading) {
- this.dragDropFocus = focus;
- }
- },
-
-
- /**
- * Check mime type of file
- */
- checkType: function checkType(file) {
- if (!this.accept) return true;
- var types = this.accept.split(',');
- if (types.length === 0) return true;
- var valid = false;
- for (var i = 0; i < types.length && !valid; i++) {
- var type = types[i].trim();
- if (type) {
- if (type.substring(0, 1) === '.') {
- // check extension
- var extIndex = file.name.lastIndexOf('.');
- var extension = extIndex >= 0 ? file.name.substring(extIndex) : '';
- if (extension.toLowerCase() === type.toLowerCase()) {
- valid = true;
- }
- } else {
- // check mime type
- if (file.type.match(type)) {
- valid = true;
- }
- }
- }
- }
- return valid;
- }
- }
- });
-
- /***/ }),
- /* 219 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('label', {
- staticClass: "upload control"
- }, [(!_vm.dragDrop) ? [_vm._t("default")] : _c('div', {
- staticClass: "upload-draggable",
- class: [_vm.type, {
- 'is-loading': _vm.loading,
- 'is-disabled': _vm.disabled,
- 'is-hovered': _vm.dragDropFocus
- }],
- on: {
- "dragover": function($event) {
- $event.preventDefault();
- _vm.updateDragDropFocus(true)
- },
- "dragleave": function($event) {
- $event.preventDefault();
- _vm.updateDragDropFocus(false)
- },
- "dragenter": function($event) {
- $event.preventDefault();
- _vm.updateDragDropFocus(true)
- },
- "drop": function($event) {
- $event.preventDefault();
- _vm.onFileChange($event)
- }
- }
- }, [_vm._t("default")], 2), _vm._v(" "), _c('input', _vm._b({
- ref: "input",
- class: {
- 'file-draggable': _vm.dragDrop
- },
- attrs: {
- "type": "file",
- "multiple": _vm.multiple,
- "accept": _vm.accept,
- "disabled": _vm.disabled
- },
- on: {
- "change": _vm.onFileChange
- }
- }, 'input', _vm.$attrs, false))], 2)
- },staticRenderFns: []}
-
- /***/ })
- /******/ ]);
- });
|