| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298722997230072301723027230372304723057230672307723087230972310723117231272313723147231572316723177231872319723207232172322723237232472325723267232772328723297233072331723327233372334723357233672337723387233972340723417234272343723447234572346723477234872349723507235172352723537235472355723567235772358723597236072361723627236372364723657236672367723687236972370723717237272373723747237572376723777237872379723807238172382723837238472385723867238772388723897239072391723927239372394723957239672397723987239972400724017240272403724047240572406724077240872409724107241172412724137241472415724167241772418724197242072421724227242372424724257242672427724287242972430724317243272433724347243572436724377243872439724407244172442724437244472445724467244772448724497245072451724527245372454724557245672457724587245972460724617246272463724647246572466724677246872469724707247172472724737247472475724767247772478724797248072481724827248372484724857248672487724887248972490724917249272493724947249572496724977249872499725007250172502725037250472505725067250772508725097251072511725127251372514725157251672517725187251972520725217252272523725247252572526725277252872529725307253172532725337253472535725367253772538725397254072541725427254372544725457254672547725487254972550725517255272553725547255572556725577255872559725607256172562725637256472565725667256772568725697257072571725727257372574725757257672577725787257972580725817258272583725847258572586725877258872589725907259172592725937259472595725967259772598725997260072601726027260372604726057260672607726087260972610726117261272613726147261572616726177261872619726207262172622726237262472625726267262772628726297263072631726327263372634726357263672637726387263972640726417264272643726447264572646726477264872649726507265172652726537265472655726567265772658726597266072661726627266372664726657266672667726687266972670726717267272673726747267572676726777267872679726807268172682726837268472685726867268772688726897269072691726927269372694726957269672697726987269972700727017270272703727047270572706727077270872709727107271172712727137271472715727167271772718727197272072721727227272372724727257272672727727287272972730727317273272733727347273572736727377273872739727407274172742727437274472745727467274772748727497275072751727527275372754727557275672757727587275972760727617276272763727647276572766727677276872769727707277172772727737277472775727767277772778727797278072781727827278372784727857278672787727887278972790727917279272793727947279572796727977279872799728007280172802728037280472805728067280772808728097281072811728127281372814728157281672817728187281972820728217282272823728247282572826728277282872829728307283172832728337283472835728367283772838728397284072841728427284372844728457284672847728487284972850728517285272853728547285572856728577285872859728607286172862728637286472865728667286772868728697287072871728727287372874728757287672877728787287972880728817288272883728847288572886728877288872889728907289172892728937289472895728967289772898728997290072901729027290372904729057290672907729087290972910729117291272913729147291572916729177291872919729207292172922729237292472925729267292772928729297293072931729327293372934729357293672937729387293972940729417294272943729447294572946729477294872949729507295172952729537295472955729567295772958729597296072961729627296372964729657296672967729687296972970729717297272973729747297572976729777297872979729807298172982729837298472985729867298772988729897299072991729927299372994729957299672997729987299973000730017300273003730047300573006730077300873009730107301173012730137301473015730167301773018730197302073021730227302373024730257302673027730287302973030730317303273033730347303573036730377303873039730407304173042730437304473045730467304773048730497305073051730527305373054730557305673057730587305973060730617306273063730647306573066730677306873069730707307173072730737307473075730767307773078730797308073081730827308373084730857308673087730887308973090730917309273093730947309573096730977309873099731007310173102731037310473105731067310773108731097311073111731127311373114731157311673117731187311973120731217312273123731247312573126731277312873129731307313173132731337313473135731367313773138731397314073141731427314373144731457314673147731487314973150731517315273153731547315573156731577315873159731607316173162731637316473165731667316773168731697317073171731727317373174731757317673177731787317973180731817318273183731847318573186731877318873189731907319173192731937319473195731967319773198731997320073201732027320373204732057320673207732087320973210732117321273213732147321573216732177321873219732207322173222732237322473225732267322773228732297323073231732327323373234732357323673237732387323973240732417324273243732447324573246732477324873249732507325173252732537325473255732567325773258732597326073261732627326373264732657326673267732687326973270732717327273273732747327573276732777327873279732807328173282732837328473285732867328773288732897329073291732927329373294732957329673297732987329973300733017330273303733047330573306733077330873309733107331173312733137331473315733167331773318733197332073321733227332373324733257332673327733287332973330733317333273333733347333573336733377333873339733407334173342733437334473345733467334773348733497335073351733527335373354733557335673357733587335973360733617336273363733647336573366733677336873369733707337173372733737337473375733767337773378733797338073381733827338373384733857338673387733887338973390733917339273393733947339573396733977339873399734007340173402734037340473405734067340773408734097341073411734127341373414734157341673417734187341973420734217342273423734247342573426734277342873429734307343173432734337343473435734367343773438734397344073441734427344373444734457344673447734487344973450734517345273453734547345573456734577345873459734607346173462734637346473465734667346773468734697347073471734727347373474734757347673477734787347973480734817348273483734847348573486734877348873489734907349173492734937349473495734967349773498734997350073501735027350373504735057350673507735087350973510735117351273513735147351573516735177351873519735207352173522735237352473525735267352773528735297353073531735327353373534735357353673537735387353973540735417354273543735447354573546735477354873549735507355173552735537355473555735567355773558735597356073561735627356373564735657356673567735687356973570735717357273573735747357573576735777357873579735807358173582735837358473585735867358773588735897359073591735927359373594735957359673597735987359973600736017360273603736047360573606736077360873609736107361173612736137361473615736167361773618736197362073621736227362373624736257362673627736287362973630736317363273633736347363573636736377363873639736407364173642736437364473645736467364773648736497365073651736527365373654736557365673657736587365973660736617366273663736647366573666736677366873669736707367173672736737367473675736767367773678736797368073681736827368373684736857368673687736887368973690736917369273693736947369573696736977369873699737007370173702737037370473705737067370773708737097371073711737127371373714737157371673717737187371973720737217372273723737247372573726737277372873729737307373173732737337373473735737367373773738737397374073741737427374373744737457374673747737487374973750737517375273753737547375573756737577375873759737607376173762737637376473765737667376773768737697377073771737727377373774737757377673777737787377973780737817378273783737847378573786737877378873789737907379173792737937379473795737967379773798737997380073801738027380373804738057380673807738087380973810738117381273813738147381573816738177381873819738207382173822738237382473825738267382773828738297383073831738327383373834738357383673837738387383973840738417384273843738447384573846738477384873849738507385173852738537385473855738567385773858738597386073861738627386373864738657386673867738687386973870738717387273873738747387573876738777387873879738807388173882738837388473885738867388773888738897389073891738927389373894738957389673897738987389973900739017390273903739047390573906739077390873909739107391173912739137391473915739167391773918739197392073921739227392373924739257392673927739287392973930739317393273933739347393573936739377393873939739407394173942739437394473945739467394773948739497395073951739527395373954739557395673957739587395973960739617396273963739647396573966739677396873969739707397173972739737397473975739767397773978739797398073981739827398373984739857398673987739887398973990739917399273993739947399573996739977399873999740007400174002740037400474005740067400774008740097401074011740127401374014740157401674017740187401974020740217402274023740247402574026740277402874029740307403174032740337403474035740367403774038740397404074041740427404374044740457404674047740487404974050740517405274053740547405574056740577405874059740607406174062740637406474065740667406774068740697407074071740727407374074740757407674077740787407974080740817408274083740847408574086740877408874089740907409174092740937409474095740967409774098740997410074101741027410374104741057410674107741087410974110741117411274113741147411574116741177411874119741207412174122741237412474125741267412774128741297413074131741327413374134741357413674137741387413974140741417414274143741447414574146741477414874149741507415174152741537415474155741567415774158741597416074161741627416374164741657416674167741687416974170741717417274173741747417574176741777417874179741807418174182741837418474185741867418774188741897419074191741927419374194741957419674197741987419974200742017420274203742047420574206742077420874209742107421174212742137421474215742167421774218742197422074221742227422374224742257422674227742287422974230742317423274233742347423574236742377423874239742407424174242742437424474245742467424774248742497425074251742527425374254742557425674257742587425974260742617426274263742647426574266742677426874269742707427174272742737427474275742767427774278742797428074281742827428374284742857428674287742887428974290742917429274293742947429574296742977429874299743007430174302743037430474305743067430774308743097431074311743127431374314743157431674317743187431974320743217432274323743247432574326743277432874329743307433174332743337433474335743367433774338743397434074341743427434374344743457434674347743487434974350743517435274353743547435574356743577435874359743607436174362743637436474365743667436774368743697437074371743727437374374743757437674377743787437974380743817438274383743847438574386743877438874389743907439174392743937439474395743967439774398743997440074401744027440374404744057440674407744087440974410744117441274413744147441574416744177441874419744207442174422744237442474425744267442774428744297443074431744327443374434744357443674437744387443974440744417444274443744447444574446744477444874449744507445174452744537445474455744567445774458744597446074461744627446374464744657446674467744687446974470744717447274473744747447574476744777447874479744807448174482744837448474485744867448774488744897449074491744927449374494744957449674497744987449974500745017450274503745047450574506745077450874509745107451174512745137451474515745167451774518745197452074521745227452374524745257452674527745287452974530745317453274533745347453574536745377453874539745407454174542745437454474545745467454774548745497455074551745527455374554745557455674557745587455974560745617456274563745647456574566745677456874569745707457174572745737457474575745767457774578745797458074581745827458374584745857458674587745887458974590745917459274593745947459574596745977459874599746007460174602746037460474605746067460774608746097461074611746127461374614746157461674617746187461974620746217462274623746247462574626746277462874629746307463174632746337463474635746367463774638746397464074641746427464374644746457464674647746487464974650746517465274653746547465574656746577465874659746607466174662746637466474665746667466774668746697467074671746727467374674746757467674677746787467974680746817468274683746847468574686746877468874689746907469174692746937469474695746967469774698746997470074701747027470374704747057470674707747087470974710747117471274713747147471574716747177471874719747207472174722747237472474725747267472774728747297473074731747327473374734747357473674737747387473974740747417474274743747447474574746747477474874749747507475174752747537475474755747567475774758747597476074761747627476374764747657476674767747687476974770747717477274773747747477574776747777477874779747807478174782747837478474785747867478774788747897479074791747927479374794747957479674797747987479974800748017480274803748047480574806748077480874809748107481174812748137481474815748167481774818748197482074821748227482374824748257482674827748287482974830748317483274833748347483574836748377483874839748407484174842748437484474845748467484774848748497485074851748527485374854748557485674857748587485974860748617486274863748647486574866748677486874869748707487174872748737487474875748767487774878748797488074881748827488374884748857488674887748887488974890748917489274893748947489574896748977489874899749007490174902749037490474905749067490774908749097491074911749127491374914749157491674917749187491974920749217492274923749247492574926749277492874929749307493174932749337493474935749367493774938749397494074941749427494374944749457494674947749487494974950749517495274953749547495574956749577495874959749607496174962749637496474965749667496774968749697497074971749727497374974749757497674977749787497974980749817498274983749847498574986749877498874989749907499174992749937499474995749967499774998749997500075001750027500375004750057500675007750087500975010750117501275013750147501575016750177501875019750207502175022750237502475025750267502775028750297503075031750327503375034750357503675037750387503975040750417504275043750447504575046750477504875049750507505175052750537505475055750567505775058750597506075061750627506375064750657506675067750687506975070750717507275073750747507575076750777507875079750807508175082750837508475085750867508775088750897509075091750927509375094750957509675097750987509975100751017510275103751047510575106751077510875109751107511175112751137511475115751167511775118751197512075121751227512375124751257512675127751287512975130751317513275133751347513575136751377513875139751407514175142751437514475145751467514775148751497515075151751527515375154751557515675157751587515975160751617516275163751647516575166751677516875169751707517175172751737517475175751767517775178751797518075181751827518375184751857518675187751887518975190751917519275193751947519575196751977519875199752007520175202752037520475205752067520775208752097521075211752127521375214752157521675217752187521975220752217522275223752247522575226752277522875229752307523175232752337523475235752367523775238752397524075241752427524375244752457524675247752487524975250752517525275253752547525575256752577525875259752607526175262752637526475265752667526775268752697527075271752727527375274752757527675277752787527975280752817528275283752847528575286752877528875289752907529175292752937529475295752967529775298752997530075301753027530375304753057530675307753087530975310753117531275313753147531575316753177531875319753207532175322753237532475325753267532775328753297533075331753327533375334753357533675337753387533975340753417534275343753447534575346753477534875349753507535175352753537535475355753567535775358753597536075361753627536375364753657536675367753687536975370753717537275373753747537575376753777537875379753807538175382753837538475385753867538775388753897539075391753927539375394753957539675397753987539975400754017540275403754047540575406754077540875409754107541175412754137541475415754167541775418754197542075421754227542375424754257542675427754287542975430754317543275433754347543575436754377543875439754407544175442754437544475445754467544775448754497545075451754527545375454754557545675457754587545975460754617546275463754647546575466754677546875469754707547175472754737547475475754767547775478754797548075481754827548375484754857548675487754887548975490754917549275493754947549575496754977549875499755007550175502755037550475505755067550775508755097551075511755127551375514755157551675517755187551975520755217552275523755247552575526755277552875529755307553175532755337553475535755367553775538755397554075541755427554375544755457554675547755487554975550755517555275553755547555575556755577555875559755607556175562755637556475565755667556775568755697557075571755727557375574755757557675577755787557975580755817558275583755847558575586755877558875589755907559175592755937559475595755967559775598755997560075601756027560375604756057560675607756087560975610756117561275613756147561575616756177561875619756207562175622756237562475625756267562775628756297563075631756327563375634756357563675637756387563975640756417564275643756447564575646756477564875649756507565175652756537565475655756567565775658756597566075661756627566375664756657566675667756687566975670756717567275673756747567575676756777567875679756807568175682756837568475685756867568775688756897569075691756927569375694756957569675697756987569975700757017570275703757047570575706757077570875709757107571175712757137571475715757167571775718757197572075721757227572375724757257572675727757287572975730757317573275733757347573575736757377573875739757407574175742757437574475745757467574775748757497575075751757527575375754757557575675757757587575975760757617576275763757647576575766757677576875769757707577175772757737577475775757767577775778757797578075781757827578375784757857578675787757887578975790757917579275793757947579575796757977579875799758007580175802758037580475805758067580775808758097581075811758127581375814758157581675817758187581975820758217582275823758247582575826758277582875829758307583175832758337583475835758367583775838758397584075841758427584375844758457584675847758487584975850758517585275853758547585575856758577585875859758607586175862758637586475865758667586775868758697587075871758727587375874758757587675877758787587975880758817588275883758847588575886758877588875889758907589175892758937589475895758967589775898758997590075901759027590375904759057590675907759087590975910759117591275913759147591575916759177591875919759207592175922759237592475925759267592775928759297593075931759327593375934759357593675937759387593975940759417594275943759447594575946759477594875949759507595175952759537595475955759567595775958759597596075961759627596375964759657596675967759687596975970759717597275973759747597575976759777597875979759807598175982759837598475985759867598775988759897599075991759927599375994759957599675997759987599976000760017600276003760047600576006760077600876009760107601176012760137601476015760167601776018760197602076021760227602376024760257602676027760287602976030760317603276033760347603576036760377603876039760407604176042760437604476045760467604776048760497605076051760527605376054760557605676057760587605976060760617606276063760647606576066760677606876069760707607176072760737607476075760767607776078760797608076081760827608376084760857608676087760887608976090760917609276093760947609576096760977609876099761007610176102761037610476105761067610776108761097611076111761127611376114761157611676117761187611976120761217612276123761247612576126761277612876129761307613176132761337613476135761367613776138761397614076141761427614376144761457614676147761487614976150761517615276153761547615576156761577615876159761607616176162761637616476165761667616776168761697617076171761727617376174761757617676177761787617976180761817618276183761847618576186761877618876189761907619176192761937619476195761967619776198761997620076201762027620376204762057620676207762087620976210762117621276213762147621576216762177621876219762207622176222762237622476225762267622776228762297623076231762327623376234762357623676237762387623976240762417624276243762447624576246762477624876249762507625176252762537625476255762567625776258762597626076261762627626376264762657626676267762687626976270762717627276273762747627576276762777627876279762807628176282762837628476285762867628776288762897629076291762927629376294762957629676297762987629976300763017630276303763047630576306763077630876309763107631176312763137631476315763167631776318763197632076321763227632376324763257632676327763287632976330763317633276333763347633576336763377633876339763407634176342763437634476345763467634776348763497635076351763527635376354763557635676357763587635976360763617636276363763647636576366763677636876369763707637176372763737637476375763767637776378763797638076381763827638376384763857638676387763887638976390763917639276393763947639576396763977639876399764007640176402764037640476405764067640776408764097641076411764127641376414764157641676417764187641976420764217642276423764247642576426764277642876429764307643176432764337643476435764367643776438764397644076441764427644376444764457644676447764487644976450764517645276453764547645576456764577645876459764607646176462764637646476465764667646776468764697647076471764727647376474764757647676477764787647976480764817648276483764847648576486764877648876489764907649176492764937649476495764967649776498764997650076501765027650376504765057650676507765087650976510765117651276513765147651576516765177651876519765207652176522765237652476525765267652776528765297653076531765327653376534765357653676537765387653976540765417654276543765447654576546765477654876549765507655176552765537655476555765567655776558765597656076561765627656376564765657656676567765687656976570765717657276573765747657576576765777657876579765807658176582765837658476585765867658776588765897659076591765927659376594765957659676597765987659976600766017660276603766047660576606766077660876609766107661176612766137661476615766167661776618766197662076621766227662376624766257662676627766287662976630766317663276633766347663576636766377663876639766407664176642766437664476645766467664776648766497665076651766527665376654766557665676657766587665976660766617666276663766647666576666766677666876669766707667176672766737667476675766767667776678766797668076681766827668376684766857668676687766887668976690766917669276693766947669576696766977669876699767007670176702767037670476705767067670776708767097671076711767127671376714767157671676717767187671976720767217672276723767247672576726767277672876729767307673176732767337673476735767367673776738767397674076741767427674376744767457674676747767487674976750767517675276753767547675576756767577675876759767607676176762767637676476765767667676776768767697677076771767727677376774767757677676777767787677976780767817678276783767847678576786767877678876789767907679176792767937679476795767967679776798767997680076801768027680376804768057680676807768087680976810768117681276813768147681576816768177681876819768207682176822768237682476825768267682776828768297683076831768327683376834768357683676837768387683976840768417684276843768447684576846768477684876849768507685176852768537685476855768567685776858768597686076861768627686376864768657686676867768687686976870768717687276873768747687576876768777687876879768807688176882768837688476885768867688776888768897689076891768927689376894768957689676897768987689976900769017690276903769047690576906769077690876909769107691176912769137691476915769167691776918769197692076921769227692376924769257692676927769287692976930769317693276933769347693576936769377693876939769407694176942769437694476945769467694776948769497695076951769527695376954769557695676957769587695976960769617696276963769647696576966769677696876969769707697176972769737697476975769767697776978769797698076981769827698376984769857698676987769887698976990769917699276993769947699576996769977699876999770007700177002770037700477005770067700777008770097701077011770127701377014770157701677017770187701977020770217702277023770247702577026770277702877029770307703177032770337703477035770367703777038770397704077041770427704377044770457704677047770487704977050770517705277053770547705577056770577705877059770607706177062770637706477065770667706777068770697707077071770727707377074770757707677077770787707977080770817708277083770847708577086770877708877089770907709177092770937709477095770967709777098770997710077101771027710377104771057710677107771087710977110771117711277113771147711577116771177711877119771207712177122771237712477125771267712777128771297713077131771327713377134771357713677137771387713977140771417714277143771447714577146771477714877149771507715177152771537715477155771567715777158771597716077161771627716377164771657716677167771687716977170771717717277173771747717577176771777717877179771807718177182771837718477185771867718777188771897719077191771927719377194771957719677197771987719977200772017720277203772047720577206772077720877209772107721177212772137721477215772167721777218772197722077221772227722377224772257722677227772287722977230772317723277233772347723577236772377723877239772407724177242772437724477245772467724777248772497725077251772527725377254772557725677257772587725977260772617726277263772647726577266772677726877269772707727177272772737727477275772767727777278772797728077281772827728377284772857728677287772887728977290772917729277293772947729577296772977729877299773007730177302773037730477305773067730777308773097731077311773127731377314773157731677317773187731977320773217732277323773247732577326773277732877329773307733177332773337733477335773367733777338773397734077341773427734377344773457734677347773487734977350773517735277353773547735577356773577735877359773607736177362773637736477365773667736777368773697737077371773727737377374773757737677377773787737977380773817738277383773847738577386773877738877389773907739177392773937739477395773967739777398773997740077401774027740377404774057740677407774087740977410774117741277413774147741577416774177741877419774207742177422774237742477425774267742777428774297743077431774327743377434774357743677437774387743977440774417744277443774447744577446774477744877449774507745177452774537745477455774567745777458774597746077461774627746377464774657746677467774687746977470774717747277473774747747577476774777747877479774807748177482774837748477485774867748777488774897749077491774927749377494774957749677497774987749977500775017750277503775047750577506775077750877509775107751177512775137751477515775167751777518775197752077521775227752377524775257752677527775287752977530775317753277533775347753577536775377753877539775407754177542775437754477545775467754777548775497755077551775527755377554775557755677557775587755977560775617756277563775647756577566775677756877569775707757177572775737757477575775767757777578775797758077581775827758377584775857758677587775887758977590775917759277593775947759577596775977759877599776007760177602776037760477605776067760777608776097761077611776127761377614776157761677617776187761977620776217762277623776247762577626776277762877629776307763177632776337763477635776367763777638776397764077641776427764377644776457764677647776487764977650776517765277653776547765577656776577765877659776607766177662776637766477665776667766777668776697767077671776727767377674776757767677677776787767977680776817768277683776847768577686776877768877689776907769177692776937769477695776967769777698776997770077701777027770377704777057770677707777087770977710777117771277713777147771577716777177771877719777207772177722777237772477725777267772777728777297773077731777327773377734777357773677737777387773977740777417774277743777447774577746777477774877749777507775177752777537775477755777567775777758777597776077761777627776377764777657776677767777687776977770777717777277773777747777577776777777777877779777807778177782777837778477785777867778777788777897779077791777927779377794777957779677797777987779977800778017780277803778047780577806778077780877809778107781177812778137781477815778167781777818778197782077821778227782377824778257782677827778287782977830778317783277833778347783577836778377783877839778407784177842778437784477845778467784777848778497785077851778527785377854778557785677857778587785977860778617786277863778647786577866778677786877869778707787177872778737787477875778767787777878778797788077881778827788377884778857788677887778887788977890778917789277893778947789577896778977789877899779007790177902779037790477905779067790777908779097791077911779127791377914779157791677917779187791977920779217792277923779247792577926779277792877929779307793177932779337793477935779367793777938779397794077941779427794377944779457794677947779487794977950779517795277953779547795577956779577795877959779607796177962779637796477965779667796777968779697797077971779727797377974779757797677977779787797977980779817798277983779847798577986779877798877989779907799177992779937799477995779967799777998779997800078001780027800378004780057800678007780087800978010780117801278013780147801578016780177801878019780207802178022780237802478025780267802778028780297803078031780327803378034780357803678037780387803978040780417804278043780447804578046780477804878049780507805178052780537805478055780567805778058780597806078061780627806378064780657806678067780687806978070780717807278073780747807578076780777807878079780807808178082780837808478085780867808778088780897809078091780927809378094780957809678097780987809978100781017810278103781047810578106781077810878109781107811178112781137811478115781167811778118781197812078121781227812378124781257812678127781287812978130781317813278133781347813578136781377813878139781407814178142781437814478145781467814778148781497815078151781527815378154781557815678157781587815978160781617816278163781647816578166781677816878169781707817178172781737817478175781767817778178781797818078181781827818378184781857818678187781887818978190781917819278193781947819578196781977819878199782007820178202782037820478205782067820778208782097821078211782127821378214782157821678217782187821978220782217822278223782247822578226782277822878229782307823178232782337823478235782367823778238782397824078241782427824378244782457824678247782487824978250782517825278253782547825578256782577825878259782607826178262782637826478265782667826778268782697827078271782727827378274782757827678277782787827978280782817828278283782847828578286782877828878289782907829178292782937829478295782967829778298782997830078301783027830378304783057830678307783087830978310783117831278313783147831578316783177831878319783207832178322783237832478325783267832778328783297833078331783327833378334783357833678337783387833978340783417834278343783447834578346783477834878349783507835178352783537835478355783567835778358783597836078361783627836378364783657836678367783687836978370783717837278373783747837578376783777837878379783807838178382783837838478385783867838778388783897839078391783927839378394783957839678397783987839978400784017840278403784047840578406784077840878409784107841178412784137841478415784167841778418784197842078421784227842378424784257842678427784287842978430784317843278433784347843578436784377843878439784407844178442784437844478445784467844778448784497845078451784527845378454784557845678457784587845978460784617846278463784647846578466784677846878469784707847178472784737847478475784767847778478784797848078481784827848378484784857848678487784887848978490784917849278493784947849578496784977849878499785007850178502785037850478505785067850778508785097851078511785127851378514785157851678517785187851978520785217852278523785247852578526785277852878529785307853178532785337853478535785367853778538785397854078541785427854378544785457854678547785487854978550785517855278553785547855578556785577855878559785607856178562785637856478565785667856778568785697857078571785727857378574785757857678577785787857978580785817858278583785847858578586785877858878589785907859178592785937859478595785967859778598785997860078601786027860378604786057860678607786087860978610786117861278613786147861578616786177861878619786207862178622786237862478625786267862778628786297863078631786327863378634786357863678637786387863978640786417864278643786447864578646786477864878649786507865178652786537865478655786567865778658786597866078661786627866378664786657866678667786687866978670786717867278673786747867578676786777867878679786807868178682786837868478685786867868778688786897869078691786927869378694786957869678697786987869978700787017870278703787047870578706787077870878709787107871178712787137871478715787167871778718787197872078721787227872378724787257872678727787287872978730787317873278733787347873578736787377873878739787407874178742787437874478745787467874778748787497875078751787527875378754787557875678757787587875978760787617876278763787647876578766787677876878769787707877178772787737877478775787767877778778787797878078781787827878378784787857878678787787887878978790787917879278793787947879578796787977879878799788007880178802788037880478805788067880778808788097881078811788127881378814788157881678817788187881978820788217882278823788247882578826788277882878829788307883178832788337883478835788367883778838788397884078841788427884378844788457884678847788487884978850788517885278853788547885578856788577885878859788607886178862788637886478865788667886778868788697887078871788727887378874788757887678877788787887978880788817888278883788847888578886788877888878889788907889178892788937889478895788967889778898788997890078901789027890378904789057890678907789087890978910789117891278913789147891578916789177891878919789207892178922789237892478925789267892778928789297893078931789327893378934789357893678937789387893978940789417894278943789447894578946789477894878949789507895178952789537895478955789567895778958789597896078961789627896378964789657896678967789687896978970789717897278973789747897578976789777897878979789807898178982789837898478985789867898778988789897899078991789927899378994789957899678997789987899979000790017900279003790047900579006790077900879009790107901179012790137901479015790167901779018790197902079021790227902379024790257902679027790287902979030790317903279033790347903579036790377903879039790407904179042790437904479045790467904779048790497905079051790527905379054790557905679057790587905979060790617906279063790647906579066790677906879069790707907179072790737907479075790767907779078790797908079081790827908379084790857908679087790887908979090790917909279093790947909579096790977909879099791007910179102791037910479105791067910779108791097911079111791127911379114791157911679117791187911979120791217912279123791247912579126791277912879129791307913179132791337913479135791367913779138791397914079141791427914379144791457914679147791487914979150791517915279153791547915579156791577915879159791607916179162791637916479165791667916779168791697917079171791727917379174791757917679177791787917979180791817918279183791847918579186791877918879189791907919179192791937919479195791967919779198791997920079201792027920379204792057920679207792087920979210792117921279213792147921579216792177921879219792207922179222792237922479225792267922779228792297923079231792327923379234792357923679237792387923979240792417924279243792447924579246792477924879249792507925179252792537925479255792567925779258792597926079261792627926379264792657926679267792687926979270792717927279273792747927579276792777927879279792807928179282792837928479285792867928779288792897929079291792927929379294792957929679297792987929979300793017930279303793047930579306793077930879309793107931179312793137931479315793167931779318793197932079321793227932379324793257932679327793287932979330793317933279333793347933579336793377933879339793407934179342793437934479345793467934779348793497935079351793527935379354793557935679357793587935979360793617936279363793647936579366793677936879369793707937179372793737937479375793767937779378793797938079381793827938379384793857938679387793887938979390793917939279393793947939579396793977939879399794007940179402794037940479405794067940779408794097941079411794127941379414794157941679417794187941979420794217942279423794247942579426794277942879429794307943179432794337943479435794367943779438794397944079441794427944379444794457944679447794487944979450794517945279453794547945579456794577945879459794607946179462794637946479465794667946779468794697947079471794727947379474794757947679477794787947979480794817948279483794847948579486794877948879489794907949179492794937949479495794967949779498794997950079501795027950379504795057950679507795087950979510795117951279513795147951579516795177951879519795207952179522795237952479525795267952779528795297953079531795327953379534795357953679537795387953979540795417954279543795447954579546795477954879549795507955179552795537955479555795567955779558795597956079561795627956379564795657956679567795687956979570795717957279573795747957579576795777957879579795807958179582795837958479585795867958779588795897959079591795927959379594795957959679597795987959979600796017960279603796047960579606796077960879609796107961179612796137961479615796167961779618796197962079621796227962379624796257962679627796287962979630796317963279633796347963579636796377963879639796407964179642796437964479645796467964779648796497965079651796527965379654796557965679657796587965979660796617966279663796647966579666796677966879669796707967179672796737967479675796767967779678796797968079681796827968379684796857968679687796887968979690796917969279693796947969579696796977969879699797007970179702797037970479705797067970779708797097971079711797127971379714797157971679717797187971979720797217972279723797247972579726797277972879729797307973179732797337973479735797367973779738797397974079741797427974379744797457974679747797487974979750797517975279753797547975579756797577975879759797607976179762797637976479765797667976779768797697977079771797727977379774797757977679777797787977979780797817978279783797847978579786797877978879789797907979179792797937979479795797967979779798797997980079801798027980379804798057980679807798087980979810798117981279813798147981579816798177981879819798207982179822798237982479825798267982779828798297983079831798327983379834798357983679837798387983979840798417984279843798447984579846798477984879849798507985179852798537985479855798567985779858798597986079861798627986379864798657986679867798687986979870798717987279873798747987579876798777987879879798807988179882798837988479885798867988779888798897989079891798927989379894798957989679897798987989979900799017990279903799047990579906799077990879909799107991179912799137991479915799167991779918799197992079921799227992379924799257992679927799287992979930799317993279933799347993579936799377993879939799407994179942799437994479945799467994779948799497995079951799527995379954799557995679957799587995979960799617996279963799647996579966799677996879969799707997179972799737997479975799767997779978799797998079981799827998379984799857998679987799887998979990799917999279993799947999579996799977999879999800008000180002800038000480005800068000780008800098001080011800128001380014800158001680017800188001980020800218002280023800248002580026800278002880029800308003180032800338003480035800368003780038800398004080041800428004380044800458004680047800488004980050800518005280053800548005580056800578005880059800608006180062800638006480065800668006780068800698007080071800728007380074800758007680077800788007980080800818008280083800848008580086800878008880089800908009180092800938009480095800968009780098800998010080101801028010380104801058010680107801088010980110801118011280113801148011580116801178011880119801208012180122801238012480125801268012780128801298013080131801328013380134801358013680137801388013980140801418014280143801448014580146801478014880149801508015180152801538015480155801568015780158801598016080161801628016380164801658016680167801688016980170801718017280173801748017580176801778017880179801808018180182801838018480185801868018780188801898019080191801928019380194801958019680197801988019980200802018020280203802048020580206802078020880209802108021180212802138021480215802168021780218802198022080221802228022380224802258022680227802288022980230802318023280233802348023580236802378023880239802408024180242802438024480245802468024780248802498025080251802528025380254802558025680257802588025980260802618026280263802648026580266802678026880269802708027180272802738027480275802768027780278802798028080281802828028380284802858028680287802888028980290802918029280293802948029580296802978029880299803008030180302803038030480305803068030780308803098031080311803128031380314803158031680317803188031980320803218032280323803248032580326803278032880329803308033180332803338033480335803368033780338803398034080341803428034380344803458034680347803488034980350803518035280353803548035580356803578035880359803608036180362803638036480365803668036780368803698037080371803728037380374803758037680377803788037980380803818038280383803848038580386803878038880389803908039180392803938039480395803968039780398803998040080401804028040380404804058040680407804088040980410804118041280413804148041580416804178041880419804208042180422804238042480425804268042780428804298043080431804328043380434804358043680437804388043980440804418044280443804448044580446804478044880449804508045180452804538045480455804568045780458804598046080461804628046380464804658046680467804688046980470804718047280473804748047580476804778047880479804808048180482804838048480485804868048780488804898049080491804928049380494804958049680497804988049980500805018050280503805048050580506805078050880509805108051180512805138051480515805168051780518805198052080521805228052380524805258052680527805288052980530805318053280533805348053580536805378053880539805408054180542805438054480545805468054780548805498055080551805528055380554805558055680557805588055980560805618056280563805648056580566805678056880569805708057180572805738057480575805768057780578805798058080581805828058380584805858058680587805888058980590805918059280593805948059580596805978059880599806008060180602806038060480605806068060780608806098061080611806128061380614806158061680617806188061980620806218062280623806248062580626806278062880629806308063180632806338063480635806368063780638806398064080641806428064380644806458064680647806488064980650806518065280653806548065580656806578065880659806608066180662806638066480665806668066780668806698067080671806728067380674806758067680677806788067980680806818068280683806848068580686806878068880689806908069180692806938069480695806968069780698806998070080701807028070380704807058070680707807088070980710807118071280713807148071580716807178071880719807208072180722807238072480725807268072780728807298073080731807328073380734807358073680737807388073980740807418074280743807448074580746807478074880749807508075180752807538075480755807568075780758807598076080761807628076380764807658076680767807688076980770807718077280773807748077580776807778077880779807808078180782807838078480785807868078780788807898079080791807928079380794807958079680797807988079980800808018080280803808048080580806808078080880809808108081180812808138081480815808168081780818808198082080821808228082380824808258082680827808288082980830808318083280833808348083580836808378083880839808408084180842808438084480845808468084780848808498085080851808528085380854808558085680857808588085980860808618086280863808648086580866808678086880869808708087180872808738087480875808768087780878808798088080881808828088380884808858088680887808888088980890808918089280893808948089580896808978089880899809008090180902809038090480905809068090780908809098091080911809128091380914809158091680917809188091980920809218092280923809248092580926809278092880929809308093180932809338093480935809368093780938809398094080941809428094380944809458094680947809488094980950809518095280953809548095580956809578095880959809608096180962809638096480965809668096780968809698097080971809728097380974809758097680977809788097980980809818098280983809848098580986809878098880989809908099180992809938099480995809968099780998809998100081001810028100381004810058100681007810088100981010810118101281013810148101581016810178101881019810208102181022810238102481025810268102781028810298103081031810328103381034810358103681037810388103981040810418104281043810448104581046810478104881049810508105181052810538105481055810568105781058810598106081061810628106381064810658106681067810688106981070810718107281073810748107581076810778107881079810808108181082810838108481085810868108781088810898109081091810928109381094810958109681097810988109981100811018110281103811048110581106811078110881109811108111181112811138111481115811168111781118811198112081121811228112381124811258112681127811288112981130811318113281133811348113581136811378113881139811408114181142811438114481145811468114781148811498115081151811528115381154811558115681157811588115981160811618116281163811648116581166811678116881169811708117181172811738117481175811768117781178811798118081181811828118381184811858118681187811888118981190811918119281193811948119581196811978119881199812008120181202812038120481205812068120781208812098121081211812128121381214812158121681217812188121981220812218122281223812248122581226812278122881229812308123181232812338123481235812368123781238812398124081241812428124381244812458124681247812488124981250812518125281253812548125581256812578125881259812608126181262812638126481265812668126781268812698127081271812728127381274812758127681277812788127981280812818128281283812848128581286812878128881289812908129181292812938129481295812968129781298812998130081301813028130381304813058130681307813088130981310813118131281313813148131581316813178131881319813208132181322813238132481325813268132781328813298133081331813328133381334813358133681337813388133981340813418134281343813448134581346813478134881349813508135181352813538135481355813568135781358813598136081361813628136381364813658136681367813688136981370813718137281373813748137581376813778137881379813808138181382813838138481385813868138781388813898139081391813928139381394813958139681397813988139981400814018140281403814048140581406814078140881409814108141181412814138141481415814168141781418814198142081421814228142381424814258142681427814288142981430814318143281433814348143581436814378143881439814408144181442814438144481445814468144781448814498145081451814528145381454814558145681457814588145981460814618146281463814648146581466814678146881469814708147181472814738147481475814768147781478814798148081481814828148381484814858148681487814888148981490814918149281493814948149581496814978149881499815008150181502815038150481505815068150781508815098151081511815128151381514815158151681517815188151981520815218152281523815248152581526815278152881529815308153181532815338153481535815368153781538815398154081541815428154381544815458154681547815488154981550815518155281553815548155581556815578155881559815608156181562815638156481565815668156781568815698157081571815728157381574815758157681577815788157981580815818158281583815848158581586815878158881589815908159181592815938159481595815968159781598815998160081601816028160381604816058160681607816088160981610816118161281613816148161581616816178161881619816208162181622816238162481625816268162781628816298163081631816328163381634816358163681637816388163981640816418164281643816448164581646816478164881649816508165181652816538165481655816568165781658816598166081661816628166381664816658166681667816688166981670816718167281673816748167581676816778167881679816808168181682816838168481685816868168781688816898169081691816928169381694816958169681697816988169981700817018170281703817048170581706817078170881709817108171181712817138171481715817168171781718817198172081721817228172381724817258172681727817288172981730817318173281733817348173581736817378173881739817408174181742817438174481745817468174781748817498175081751817528175381754817558175681757817588175981760817618176281763817648176581766817678176881769817708177181772817738177481775817768177781778817798178081781817828178381784817858178681787817888178981790817918179281793817948179581796817978179881799818008180181802818038180481805818068180781808818098181081811818128181381814818158181681817818188181981820818218182281823818248182581826818278182881829818308183181832818338183481835818368183781838818398184081841818428184381844818458184681847818488184981850818518185281853818548185581856818578185881859818608186181862818638186481865818668186781868818698187081871818728187381874818758187681877818788187981880818818188281883818848188581886818878188881889818908189181892818938189481895818968189781898818998190081901819028190381904819058190681907819088190981910819118191281913819148191581916819178191881919819208192181922819238192481925819268192781928819298193081931819328193381934819358193681937819388193981940819418194281943819448194581946819478194881949819508195181952819538195481955819568195781958819598196081961819628196381964819658196681967819688196981970819718197281973819748197581976819778197881979819808198181982819838198481985819868198781988819898199081991819928199381994819958199681997819988199982000820018200282003820048200582006820078200882009820108201182012820138201482015820168201782018820198202082021820228202382024820258202682027820288202982030820318203282033820348203582036820378203882039820408204182042820438204482045820468204782048820498205082051820528205382054820558205682057820588205982060820618206282063820648206582066820678206882069820708207182072820738207482075820768207782078820798208082081820828208382084820858208682087820888208982090820918209282093820948209582096820978209882099821008210182102821038210482105821068210782108821098211082111821128211382114821158211682117821188211982120821218212282123821248212582126821278212882129821308213182132821338213482135821368213782138821398214082141821428214382144821458214682147821488214982150821518215282153821548215582156821578215882159821608216182162821638216482165821668216782168821698217082171821728217382174821758217682177821788217982180821818218282183821848218582186821878218882189821908219182192821938219482195821968219782198821998220082201822028220382204822058220682207822088220982210822118221282213822148221582216822178221882219822208222182222822238222482225822268222782228822298223082231822328223382234822358223682237822388223982240822418224282243822448224582246822478224882249822508225182252822538225482255822568225782258822598226082261822628226382264822658226682267822688226982270822718227282273822748227582276822778227882279822808228182282822838228482285822868228782288822898229082291822928229382294822958229682297822988229982300823018230282303823048230582306823078230882309823108231182312823138231482315823168231782318823198232082321823228232382324823258232682327823288232982330823318233282333823348233582336823378233882339823408234182342823438234482345823468234782348823498235082351823528235382354823558235682357823588235982360823618236282363823648236582366823678236882369823708237182372823738237482375823768237782378823798238082381823828238382384823858238682387823888238982390823918239282393823948239582396823978239882399824008240182402824038240482405824068240782408824098241082411824128241382414824158241682417824188241982420824218242282423824248242582426824278242882429824308243182432824338243482435824368243782438824398244082441824428244382444824458244682447824488244982450824518245282453824548245582456824578245882459824608246182462824638246482465824668246782468824698247082471824728247382474824758247682477824788247982480824818248282483824848248582486824878248882489824908249182492824938249482495824968249782498824998250082501825028250382504825058250682507825088250982510825118251282513825148251582516825178251882519825208252182522825238252482525825268252782528825298253082531825328253382534825358253682537825388253982540825418254282543825448254582546825478254882549825508255182552825538255482555825568255782558825598256082561825628256382564825658256682567825688256982570825718257282573825748257582576825778257882579825808258182582825838258482585825868258782588825898259082591825928259382594825958259682597825988259982600826018260282603826048260582606826078260882609826108261182612826138261482615826168261782618826198262082621826228262382624826258262682627826288262982630826318263282633826348263582636826378263882639826408264182642826438264482645826468264782648826498265082651826528265382654826558265682657826588265982660826618266282663826648266582666826678266882669826708267182672826738267482675826768267782678826798268082681826828268382684826858268682687826888268982690826918269282693826948269582696826978269882699827008270182702827038270482705827068270782708827098271082711827128271382714827158271682717827188271982720827218272282723827248272582726827278272882729827308273182732827338273482735827368273782738827398274082741827428274382744827458274682747827488274982750827518275282753827548275582756827578275882759827608276182762827638276482765827668276782768827698277082771827728277382774827758277682777827788277982780827818278282783827848278582786827878278882789827908279182792827938279482795827968279782798827998280082801828028280382804828058280682807828088280982810828118281282813828148281582816828178281882819828208282182822828238282482825828268282782828828298283082831828328283382834828358283682837828388283982840828418284282843828448284582846828478284882849828508285182852828538285482855828568285782858828598286082861828628286382864828658286682867828688286982870828718287282873828748287582876828778287882879828808288182882828838288482885828868288782888828898289082891828928289382894828958289682897828988289982900829018290282903829048290582906829078290882909829108291182912829138291482915829168291782918829198292082921829228292382924829258292682927829288292982930829318293282933829348293582936829378293882939829408294182942829438294482945829468294782948829498295082951829528295382954829558295682957829588295982960829618296282963829648296582966829678296882969829708297182972829738297482975829768297782978829798298082981829828298382984829858298682987829888298982990829918299282993829948299582996829978299882999830008300183002830038300483005830068300783008830098301083011830128301383014830158301683017830188301983020830218302283023830248302583026830278302883029830308303183032830338303483035830368303783038830398304083041830428304383044830458304683047830488304983050830518305283053830548305583056830578305883059830608306183062830638306483065830668306783068830698307083071830728307383074830758307683077830788307983080830818308283083830848308583086830878308883089830908309183092830938309483095830968309783098830998310083101831028310383104831058310683107831088310983110831118311283113831148311583116831178311883119831208312183122831238312483125831268312783128831298313083131831328313383134831358313683137831388313983140831418314283143831448314583146831478314883149831508315183152831538315483155831568315783158831598316083161831628316383164831658316683167831688316983170831718317283173831748317583176831778317883179831808318183182831838318483185831868318783188831898319083191831928319383194831958319683197831988319983200832018320283203832048320583206832078320883209832108321183212832138321483215832168321783218832198322083221832228322383224832258322683227832288322983230832318323283233832348323583236832378323883239832408324183242832438324483245832468324783248832498325083251832528325383254832558325683257832588325983260832618326283263832648326583266832678326883269832708327183272832738327483275832768327783278832798328083281832828328383284832858328683287832888328983290832918329283293832948329583296832978329883299833008330183302833038330483305833068330783308833098331083311833128331383314833158331683317833188331983320833218332283323833248332583326833278332883329833308333183332833338333483335833368333783338833398334083341833428334383344833458334683347833488334983350833518335283353833548335583356833578335883359833608336183362833638336483365833668336783368833698337083371833728337383374833758337683377833788337983380833818338283383833848338583386833878338883389833908339183392833938339483395833968339783398833998340083401834028340383404834058340683407834088340983410834118341283413834148341583416834178341883419834208342183422834238342483425834268342783428834298343083431834328343383434834358343683437834388343983440834418344283443834448344583446834478344883449834508345183452834538345483455834568345783458834598346083461834628346383464834658346683467834688346983470834718347283473834748347583476834778347883479834808348183482834838348483485834868348783488834898349083491834928349383494834958349683497834988349983500835018350283503835048350583506835078350883509835108351183512835138351483515835168351783518835198352083521835228352383524835258352683527835288352983530835318353283533835348353583536835378353883539835408354183542835438354483545835468354783548835498355083551835528355383554835558355683557835588355983560835618356283563835648356583566835678356883569835708357183572835738357483575835768357783578835798358083581835828358383584835858358683587835888358983590835918359283593835948359583596835978359883599836008360183602836038360483605836068360783608836098361083611836128361383614836158361683617836188361983620836218362283623836248362583626836278362883629836308363183632836338363483635836368363783638836398364083641836428364383644836458364683647836488364983650836518365283653836548365583656836578365883659836608366183662836638366483665836668366783668836698367083671836728367383674836758367683677836788367983680836818368283683836848368583686836878368883689836908369183692836938369483695836968369783698836998370083701837028370383704837058370683707837088370983710837118371283713837148371583716837178371883719837208372183722837238372483725837268372783728837298373083731837328373383734837358373683737837388373983740837418374283743837448374583746837478374883749837508375183752837538375483755837568375783758837598376083761837628376383764837658376683767837688376983770837718377283773837748377583776837778377883779837808378183782837838378483785837868378783788837898379083791837928379383794837958379683797837988379983800838018380283803838048380583806838078380883809838108381183812838138381483815838168381783818838198382083821838228382383824838258382683827838288382983830838318383283833838348383583836838378383883839838408384183842838438384483845838468384783848838498385083851838528385383854838558385683857838588385983860838618386283863838648386583866838678386883869838708387183872838738387483875838768387783878838798388083881838828388383884838858388683887838888388983890838918389283893838948389583896838978389883899839008390183902839038390483905839068390783908839098391083911839128391383914839158391683917839188391983920839218392283923839248392583926839278392883929839308393183932839338393483935839368393783938839398394083941839428394383944839458394683947839488394983950839518395283953839548395583956839578395883959839608396183962839638396483965839668396783968839698397083971839728397383974839758397683977839788397983980839818398283983839848398583986839878398883989839908399183992839938399483995839968399783998839998400084001840028400384004840058400684007840088400984010840118401284013840148401584016840178401884019840208402184022840238402484025840268402784028840298403084031840328403384034840358403684037840388403984040840418404284043840448404584046840478404884049840508405184052840538405484055840568405784058840598406084061840628406384064840658406684067840688406984070840718407284073840748407584076840778407884079840808408184082840838408484085840868408784088840898409084091840928409384094840958409684097840988409984100841018410284103841048410584106841078410884109841108411184112841138411484115841168411784118841198412084121841228412384124841258412684127841288412984130841318413284133841348413584136841378413884139841408414184142841438414484145841468414784148841498415084151841528415384154841558415684157841588415984160841618416284163841648416584166841678416884169841708417184172841738417484175841768417784178841798418084181841828418384184841858418684187841888418984190841918419284193841948419584196841978419884199842008420184202842038420484205842068420784208842098421084211842128421384214842158421684217842188421984220842218422284223842248422584226842278422884229842308423184232842338423484235842368423784238842398424084241842428424384244842458424684247842488424984250842518425284253842548425584256842578425884259842608426184262842638426484265842668426784268842698427084271842728427384274842758427684277842788427984280842818428284283842848428584286842878428884289842908429184292842938429484295842968429784298842998430084301843028430384304843058430684307843088430984310843118431284313843148431584316843178431884319843208432184322843238432484325843268432784328843298433084331843328433384334843358433684337843388433984340843418434284343843448434584346843478434884349843508435184352843538435484355843568435784358843598436084361843628436384364843658436684367843688436984370843718437284373843748437584376843778437884379843808438184382843838438484385843868438784388843898439084391843928439384394843958439684397843988439984400844018440284403844048440584406844078440884409844108441184412844138441484415844168441784418844198442084421844228442384424844258442684427844288442984430844318443284433844348443584436844378443884439844408444184442844438444484445844468444784448844498445084451844528445384454844558445684457844588445984460844618446284463844648446584466844678446884469844708447184472844738447484475844768447784478844798448084481844828448384484844858448684487844888448984490844918449284493844948449584496844978449884499845008450184502845038450484505845068450784508845098451084511845128451384514845158451684517845188451984520845218452284523845248452584526845278452884529845308453184532845338453484535845368453784538845398454084541845428454384544845458454684547845488454984550845518455284553845548455584556845578455884559845608456184562845638456484565845668456784568845698457084571845728457384574845758457684577845788457984580845818458284583845848458584586845878458884589845908459184592845938459484595845968459784598845998460084601846028460384604846058460684607846088460984610846118461284613846148461584616846178461884619846208462184622846238462484625846268462784628846298463084631846328463384634846358463684637846388463984640846418464284643846448464584646846478464884649846508465184652846538465484655846568465784658846598466084661846628466384664846658466684667846688466984670846718467284673846748467584676846778467884679846808468184682846838468484685846868468784688846898469084691846928469384694846958469684697846988469984700847018470284703847048470584706847078470884709847108471184712847138471484715847168471784718847198472084721847228472384724847258472684727847288472984730847318473284733847348473584736847378473884739847408474184742847438474484745847468474784748847498475084751847528475384754847558475684757847588475984760847618476284763847648476584766847678476884769847708477184772847738477484775847768477784778847798478084781847828478384784847858478684787847888478984790847918479284793847948479584796847978479884799848008480184802848038480484805848068480784808848098481084811848128481384814848158481684817848188481984820848218482284823848248482584826848278482884829848308483184832848338483484835848368483784838848398484084841848428484384844848458484684847848488484984850848518485284853848548485584856848578485884859848608486184862848638486484865848668486784868848698487084871848728487384874848758487684877848788487984880848818488284883848848488584886848878488884889848908489184892848938489484895848968489784898848998490084901849028490384904849058490684907849088490984910849118491284913849148491584916849178491884919849208492184922849238492484925849268492784928849298493084931849328493384934849358493684937849388493984940849418494284943849448494584946849478494884949849508495184952849538495484955849568495784958849598496084961849628496384964849658496684967849688496984970849718497284973849748497584976849778497884979849808498184982849838498484985849868498784988849898499084991849928499384994849958499684997849988499985000850018500285003850048500585006850078500885009850108501185012850138501485015850168501785018850198502085021850228502385024850258502685027850288502985030850318503285033850348503585036850378503885039850408504185042850438504485045850468504785048850498505085051850528505385054850558505685057850588505985060850618506285063850648506585066850678506885069850708507185072850738507485075850768507785078850798508085081850828508385084850858508685087850888508985090850918509285093850948509585096850978509885099851008510185102851038510485105851068510785108851098511085111851128511385114851158511685117851188511985120851218512285123851248512585126851278512885129851308513185132851338513485135851368513785138851398514085141851428514385144851458514685147851488514985150851518515285153851548515585156851578515885159851608516185162851638516485165851668516785168851698517085171851728517385174851758517685177851788517985180851818518285183851848518585186851878518885189851908519185192851938519485195851968519785198851998520085201852028520385204852058520685207852088520985210852118521285213852148521585216852178521885219852208522185222852238522485225852268522785228852298523085231852328523385234852358523685237852388523985240852418524285243852448524585246852478524885249852508525185252852538525485255852568525785258852598526085261852628526385264852658526685267852688526985270852718527285273852748527585276852778527885279852808528185282852838528485285852868528785288852898529085291852928529385294852958529685297852988529985300853018530285303853048530585306853078530885309853108531185312853138531485315853168531785318853198532085321853228532385324853258532685327853288532985330853318533285333853348533585336853378533885339853408534185342853438534485345853468534785348853498535085351853528535385354853558535685357853588535985360853618536285363853648536585366853678536885369853708537185372853738537485375853768537785378853798538085381853828538385384853858538685387853888538985390853918539285393853948539585396853978539885399854008540185402854038540485405854068540785408854098541085411854128541385414854158541685417854188541985420854218542285423854248542585426854278542885429854308543185432854338543485435854368543785438854398544085441854428544385444854458544685447854488544985450854518545285453854548545585456854578545885459854608546185462854638546485465854668546785468854698547085471854728547385474854758547685477854788547985480854818548285483854848548585486854878548885489854908549185492854938549485495854968549785498854998550085501855028550385504855058550685507855088550985510855118551285513855148551585516855178551885519855208552185522855238552485525855268552785528855298553085531855328553385534855358553685537855388553985540855418554285543855448554585546855478554885549855508555185552855538555485555855568555785558855598556085561855628556385564855658556685567855688556985570855718557285573855748557585576855778557885579855808558185582855838558485585855868558785588855898559085591855928559385594855958559685597855988559985600856018560285603856048560585606856078560885609856108561185612856138561485615856168561785618856198562085621856228562385624856258562685627856288562985630856318563285633856348563585636856378563885639856408564185642856438564485645856468564785648856498565085651856528565385654856558565685657856588565985660856618566285663856648566585666856678566885669856708567185672856738567485675856768567785678856798568085681856828568385684856858568685687856888568985690856918569285693856948569585696856978569885699857008570185702857038570485705857068570785708857098571085711857128571385714857158571685717857188571985720857218572285723857248572585726857278572885729857308573185732857338573485735857368573785738857398574085741857428574385744857458574685747857488574985750857518575285753857548575585756857578575885759857608576185762857638576485765857668576785768857698577085771857728577385774857758577685777857788577985780857818578285783857848578585786857878578885789857908579185792857938579485795857968579785798857998580085801858028580385804858058580685807858088580985810858118581285813858148581585816858178581885819858208582185822858238582485825858268582785828858298583085831858328583385834858358583685837858388583985840858418584285843858448584585846858478584885849858508585185852858538585485855858568585785858858598586085861858628586385864858658586685867858688586985870858718587285873858748587585876858778587885879858808588185882858838588485885858868588785888858898589085891858928589385894858958589685897858988589985900859018590285903859048590585906859078590885909859108591185912859138591485915859168591785918859198592085921859228592385924859258592685927859288592985930859318593285933859348593585936859378593885939859408594185942859438594485945859468594785948859498595085951859528595385954859558595685957859588595985960859618596285963859648596585966859678596885969859708597185972859738597485975859768597785978859798598085981859828598385984859858598685987859888598985990859918599285993859948599585996859978599885999860008600186002860038600486005860068600786008860098601086011860128601386014860158601686017860188601986020860218602286023860248602586026860278602886029860308603186032860338603486035860368603786038860398604086041860428604386044860458604686047860488604986050860518605286053860548605586056860578605886059860608606186062860638606486065860668606786068860698607086071860728607386074860758607686077860788607986080860818608286083860848608586086860878608886089860908609186092860938609486095860968609786098860998610086101861028610386104861058610686107861088610986110861118611286113861148611586116861178611886119861208612186122861238612486125861268612786128861298613086131861328613386134861358613686137861388613986140861418614286143861448614586146861478614886149861508615186152861538615486155861568615786158861598616086161861628616386164861658616686167861688616986170861718617286173861748617586176861778617886179861808618186182861838618486185861868618786188861898619086191861928619386194861958619686197861988619986200862018620286203862048620586206862078620886209862108621186212862138621486215862168621786218862198622086221862228622386224862258622686227862288622986230862318623286233862348623586236862378623886239862408624186242862438624486245862468624786248862498625086251862528625386254862558625686257862588625986260862618626286263862648626586266862678626886269862708627186272862738627486275862768627786278862798628086281862828628386284862858628686287862888628986290862918629286293862948629586296862978629886299863008630186302863038630486305863068630786308863098631086311863128631386314863158631686317863188631986320863218632286323863248632586326863278632886329863308633186332863338633486335863368633786338863398634086341863428634386344863458634686347863488634986350863518635286353863548635586356863578635886359863608636186362863638636486365863668636786368863698637086371863728637386374863758637686377863788637986380863818638286383863848638586386863878638886389863908639186392863938639486395863968639786398863998640086401864028640386404864058640686407864088640986410864118641286413864148641586416864178641886419864208642186422864238642486425864268642786428864298643086431864328643386434864358643686437864388643986440864418644286443864448644586446864478644886449864508645186452864538645486455864568645786458864598646086461864628646386464864658646686467864688646986470864718647286473864748647586476864778647886479864808648186482864838648486485864868648786488864898649086491864928649386494864958649686497864988649986500865018650286503865048650586506865078650886509865108651186512865138651486515865168651786518865198652086521865228652386524865258652686527865288652986530865318653286533865348653586536865378653886539865408654186542865438654486545865468654786548865498655086551865528655386554865558655686557865588655986560865618656286563865648656586566865678656886569865708657186572865738657486575865768657786578865798658086581865828658386584865858658686587865888658986590865918659286593865948659586596865978659886599866008660186602866038660486605866068660786608866098661086611866128661386614866158661686617866188661986620866218662286623866248662586626866278662886629866308663186632866338663486635866368663786638866398664086641866428664386644866458664686647866488664986650866518665286653866548665586656866578665886659866608666186662866638666486665866668666786668866698667086671866728667386674866758667686677866788667986680866818668286683866848668586686866878668886689866908669186692866938669486695866968669786698866998670086701867028670386704867058670686707867088670986710867118671286713867148671586716867178671886719867208672186722867238672486725867268672786728867298673086731867328673386734867358673686737867388673986740867418674286743867448674586746867478674886749867508675186752867538675486755867568675786758867598676086761867628676386764867658676686767867688676986770867718677286773867748677586776867778677886779867808678186782867838678486785867868678786788867898679086791867928679386794867958679686797867988679986800868018680286803868048680586806868078680886809868108681186812868138681486815868168681786818868198682086821868228682386824868258682686827868288682986830868318683286833868348683586836868378683886839868408684186842868438684486845868468684786848868498685086851868528685386854868558685686857868588685986860868618686286863868648686586866868678686886869868708687186872868738687486875868768687786878868798688086881868828688386884868858688686887868888688986890868918689286893868948689586896868978689886899869008690186902869038690486905869068690786908869098691086911869128691386914869158691686917869188691986920869218692286923869248692586926869278692886929869308693186932869338693486935869368693786938869398694086941869428694386944869458694686947869488694986950869518695286953869548695586956869578695886959869608696186962869638696486965869668696786968869698697086971869728697386974869758697686977869788697986980869818698286983869848698586986869878698886989869908699186992869938699486995869968699786998869998700087001870028700387004870058700687007870088700987010870118701287013870148701587016870178701887019870208702187022870238702487025870268702787028870298703087031870328703387034870358703687037870388703987040870418704287043870448704587046870478704887049870508705187052870538705487055870568705787058870598706087061870628706387064870658706687067870688706987070870718707287073870748707587076870778707887079870808708187082870838708487085870868708787088870898709087091870928709387094870958709687097870988709987100871018710287103871048710587106871078710887109871108711187112871138711487115871168711787118871198712087121871228712387124871258712687127871288712987130871318713287133871348713587136871378713887139871408714187142871438714487145871468714787148871498715087151871528715387154871558715687157871588715987160871618716287163871648716587166871678716887169871708717187172871738717487175871768717787178871798718087181871828718387184871858718687187871888718987190871918719287193871948719587196871978719887199872008720187202872038720487205872068720787208872098721087211872128721387214872158721687217872188721987220872218722287223872248722587226872278722887229872308723187232872338723487235872368723787238872398724087241872428724387244872458724687247872488724987250872518725287253872548725587256872578725887259872608726187262872638726487265872668726787268872698727087271872728727387274872758727687277872788727987280872818728287283872848728587286872878728887289872908729187292872938729487295872968729787298872998730087301873028730387304873058730687307873088730987310873118731287313873148731587316873178731887319873208732187322873238732487325873268732787328873298733087331873328733387334873358733687337873388733987340873418734287343873448734587346873478734887349873508735187352873538735487355873568735787358873598736087361873628736387364873658736687367873688736987370873718737287373873748737587376873778737887379873808738187382873838738487385873868738787388873898739087391873928739387394873958739687397873988739987400874018740287403874048740587406874078740887409874108741187412874138741487415874168741787418874198742087421874228742387424874258742687427874288742987430874318743287433874348743587436874378743887439874408744187442874438744487445874468744787448874498745087451874528745387454874558745687457874588745987460874618746287463874648746587466874678746887469874708747187472874738747487475874768747787478874798748087481874828748387484874858748687487874888748987490874918749287493874948749587496874978749887499875008750187502875038750487505875068750787508875098751087511875128751387514875158751687517875188751987520875218752287523875248752587526875278752887529875308753187532875338753487535875368753787538875398754087541875428754387544875458754687547875488754987550875518755287553875548755587556875578755887559875608756187562875638756487565875668756787568875698757087571875728757387574875758757687577875788757987580875818758287583875848758587586875878758887589875908759187592875938759487595875968759787598875998760087601876028760387604876058760687607876088760987610876118761287613876148761587616876178761887619876208762187622876238762487625876268762787628876298763087631876328763387634876358763687637876388763987640876418764287643876448764587646876478764887649876508765187652876538765487655876568765787658876598766087661876628766387664876658766687667876688766987670876718767287673876748767587676876778767887679876808768187682876838768487685876868768787688876898769087691876928769387694876958769687697876988769987700877018770287703877048770587706877078770887709877108771187712877138771487715877168771787718877198772087721877228772387724877258772687727877288772987730877318773287733877348773587736877378773887739877408774187742877438774487745877468774787748877498775087751877528775387754877558775687757877588775987760877618776287763877648776587766877678776887769877708777187772877738777487775877768777787778877798778087781877828778387784877858778687787877888778987790877918779287793877948779587796877978779887799878008780187802878038780487805878068780787808878098781087811878128781387814878158781687817878188781987820878218782287823878248782587826878278782887829878308783187832878338783487835878368783787838878398784087841878428784387844878458784687847878488784987850878518785287853878548785587856878578785887859878608786187862878638786487865878668786787868878698787087871878728787387874878758787687877878788787987880878818788287883878848788587886878878788887889878908789187892878938789487895878968789787898878998790087901879028790387904879058790687907879088790987910879118791287913879148791587916879178791887919879208792187922879238792487925879268792787928879298793087931879328793387934879358793687937879388793987940879418794287943879448794587946879478794887949879508795187952879538795487955879568795787958879598796087961879628796387964879658796687967879688796987970879718797287973879748797587976879778797887979879808798187982879838798487985879868798787988879898799087991879928799387994879958799687997879988799988000880018800288003880048800588006880078800888009880108801188012880138801488015880168801788018880198802088021880228802388024880258802688027880288802988030880318803288033880348803588036880378803888039880408804188042880438804488045880468804788048880498805088051880528805388054880558805688057880588805988060880618806288063880648806588066880678806888069880708807188072880738807488075880768807788078880798808088081880828808388084880858808688087880888808988090880918809288093880948809588096880978809888099881008810188102881038810488105881068810788108881098811088111881128811388114881158811688117881188811988120881218812288123881248812588126881278812888129881308813188132881338813488135881368813788138881398814088141881428814388144881458814688147881488814988150881518815288153881548815588156881578815888159881608816188162881638816488165881668816788168881698817088171881728817388174881758817688177881788817988180881818818288183881848818588186881878818888189881908819188192881938819488195881968819788198881998820088201882028820388204882058820688207882088820988210882118821288213882148821588216882178821888219882208822188222882238822488225882268822788228882298823088231882328823388234882358823688237882388823988240882418824288243882448824588246882478824888249882508825188252882538825488255882568825788258882598826088261882628826388264882658826688267882688826988270882718827288273882748827588276882778827888279882808828188282882838828488285882868828788288882898829088291882928829388294882958829688297882988829988300883018830288303883048830588306883078830888309883108831188312883138831488315883168831788318883198832088321883228832388324883258832688327883288832988330883318833288333883348833588336883378833888339883408834188342883438834488345883468834788348883498835088351883528835388354883558835688357883588835988360883618836288363883648836588366883678836888369883708837188372883738837488375883768837788378883798838088381883828838388384883858838688387883888838988390883918839288393883948839588396883978839888399884008840188402884038840488405884068840788408884098841088411884128841388414884158841688417884188841988420884218842288423884248842588426884278842888429884308843188432884338843488435884368843788438884398844088441884428844388444884458844688447884488844988450884518845288453884548845588456884578845888459884608846188462884638846488465884668846788468884698847088471884728847388474884758847688477884788847988480884818848288483884848848588486884878848888489884908849188492884938849488495884968849788498884998850088501885028850388504885058850688507885088850988510885118851288513885148851588516885178851888519885208852188522885238852488525885268852788528885298853088531885328853388534885358853688537885388853988540885418854288543885448854588546885478854888549885508855188552885538855488555885568855788558885598856088561885628856388564885658856688567885688856988570885718857288573885748857588576885778857888579885808858188582885838858488585885868858788588885898859088591885928859388594885958859688597885988859988600886018860288603886048860588606886078860888609886108861188612886138861488615886168861788618886198862088621886228862388624886258862688627886288862988630886318863288633886348863588636886378863888639886408864188642886438864488645886468864788648886498865088651886528865388654886558865688657886588865988660886618866288663886648866588666886678866888669886708867188672886738867488675886768867788678886798868088681886828868388684886858868688687886888868988690886918869288693886948869588696886978869888699887008870188702887038870488705887068870788708887098871088711887128871388714887158871688717887188871988720887218872288723887248872588726887278872888729887308873188732887338873488735887368873788738887398874088741887428874388744887458874688747887488874988750887518875288753887548875588756887578875888759887608876188762887638876488765887668876788768887698877088771887728877388774887758877688777887788877988780887818878288783887848878588786887878878888789887908879188792887938879488795887968879788798887998880088801888028880388804888058880688807888088880988810888118881288813888148881588816888178881888819888208882188822888238882488825888268882788828888298883088831888328883388834888358883688837888388883988840888418884288843888448884588846888478884888849888508885188852888538885488855888568885788858888598886088861888628886388864888658886688867888688886988870888718887288873888748887588876888778887888879888808888188882888838888488885888868888788888888898889088891888928889388894888958889688897888988889988900889018890288903889048890588906889078890888909889108891188912889138891488915889168891788918889198892088921889228892388924889258892688927889288892988930889318893288933889348893588936889378893888939889408894188942889438894488945889468894788948889498895088951889528895388954889558895688957889588895988960889618896288963889648896588966889678896888969889708897188972889738897488975889768897788978889798898088981889828898388984889858898688987889888898988990889918899288993889948899588996889978899888999890008900189002890038900489005890068900789008890098901089011890128901389014890158901689017890188901989020890218902289023890248902589026890278902889029890308903189032890338903489035890368903789038890398904089041890428904389044890458904689047890488904989050890518905289053890548905589056890578905889059890608906189062890638906489065890668906789068890698907089071890728907389074890758907689077890788907989080890818908289083890848908589086890878908889089890908909189092890938909489095890968909789098890998910089101891028910389104891058910689107891088910989110891118911289113891148911589116891178911889119891208912189122891238912489125891268912789128891298913089131891328913389134891358913689137891388913989140891418914289143891448914589146891478914889149891508915189152891538915489155891568915789158891598916089161891628916389164891658916689167891688916989170891718917289173891748917589176891778917889179891808918189182891838918489185891868918789188891898919089191891928919389194891958919689197891988919989200892018920289203892048920589206892078920889209892108921189212892138921489215892168921789218892198922089221892228922389224892258922689227892288922989230892318923289233892348923589236892378923889239892408924189242892438924489245892468924789248892498925089251892528925389254892558925689257892588925989260892618926289263892648926589266892678926889269892708927189272892738927489275892768927789278892798928089281892828928389284892858928689287892888928989290892918929289293892948929589296892978929889299893008930189302893038930489305893068930789308893098931089311893128931389314893158931689317893188931989320893218932289323893248932589326893278932889329893308933189332893338933489335893368933789338893398934089341893428934389344893458934689347893488934989350893518935289353893548935589356893578935889359893608936189362893638936489365893668936789368893698937089371893728937389374893758937689377893788937989380893818938289383893848938589386893878938889389893908939189392893938939489395893968939789398893998940089401894028940389404894058940689407894088940989410894118941289413894148941589416894178941889419894208942189422894238942489425894268942789428894298943089431894328943389434894358943689437894388943989440894418944289443894448944589446894478944889449894508945189452894538945489455894568945789458894598946089461894628946389464894658946689467894688946989470894718947289473894748947589476894778947889479894808948189482894838948489485894868948789488894898949089491894928949389494894958949689497894988949989500895018950289503895048950589506895078950889509895108951189512895138951489515895168951789518895198952089521895228952389524895258952689527895288952989530895318953289533895348953589536895378953889539895408954189542895438954489545895468954789548895498955089551895528955389554895558955689557895588955989560895618956289563895648956589566895678956889569895708957189572895738957489575895768957789578895798958089581895828958389584895858958689587895888958989590895918959289593895948959589596895978959889599896008960189602896038960489605896068960789608896098961089611896128961389614896158961689617896188961989620896218962289623896248962589626896278962889629896308963189632896338963489635896368963789638896398964089641896428964389644896458964689647896488964989650896518965289653896548965589656896578965889659896608966189662896638966489665896668966789668896698967089671896728967389674896758967689677896788967989680896818968289683896848968589686896878968889689896908969189692896938969489695896968969789698896998970089701897028970389704897058970689707897088970989710897118971289713897148971589716897178971889719897208972189722897238972489725897268972789728897298973089731897328973389734897358973689737897388973989740897418974289743897448974589746897478974889749897508975189752897538975489755897568975789758897598976089761897628976389764897658976689767897688976989770897718977289773897748977589776897778977889779897808978189782897838978489785897868978789788897898979089791897928979389794897958979689797897988979989800898018980289803898048980589806898078980889809898108981189812898138981489815898168981789818898198982089821898228982389824898258982689827898288982989830898318983289833898348983589836898378983889839898408984189842898438984489845898468984789848898498985089851898528985389854898558985689857898588985989860898618986289863898648986589866898678986889869898708987189872898738987489875898768987789878898798988089881898828988389884898858988689887898888988989890898918989289893898948989589896898978989889899899008990189902899038990489905899068990789908899098991089911899128991389914899158991689917899188991989920899218992289923899248992589926899278992889929899308993189932899338993489935899368993789938899398994089941899428994389944899458994689947899488994989950899518995289953899548995589956899578995889959899608996189962899638996489965899668996789968899698997089971899728997389974899758997689977899788997989980899818998289983899848998589986899878998889989899908999189992899938999489995899968999789998899999000090001900029000390004900059000690007900089000990010900119001290013900149001590016900179001890019900209002190022900239002490025900269002790028900299003090031900329003390034900359003690037900389003990040900419004290043900449004590046900479004890049900509005190052900539005490055900569005790058900599006090061900629006390064900659006690067900689006990070900719007290073900749007590076900779007890079900809008190082900839008490085900869008790088900899009090091900929009390094900959009690097900989009990100901019010290103901049010590106901079010890109901109011190112901139011490115901169011790118901199012090121901229012390124901259012690127901289012990130901319013290133901349013590136901379013890139901409014190142901439014490145901469014790148901499015090151901529015390154901559015690157901589015990160901619016290163901649016590166901679016890169901709017190172901739017490175901769017790178901799018090181901829018390184901859018690187901889018990190901919019290193901949019590196901979019890199902009020190202902039020490205902069020790208902099021090211902129021390214902159021690217902189021990220902219022290223902249022590226902279022890229902309023190232902339023490235902369023790238902399024090241902429024390244902459024690247902489024990250902519025290253902549025590256902579025890259902609026190262902639026490265902669026790268902699027090271902729027390274902759027690277902789027990280902819028290283902849028590286902879028890289902909029190292902939029490295902969029790298902999030090301903029030390304903059030690307903089030990310903119031290313903149031590316903179031890319903209032190322903239032490325903269032790328903299033090331903329033390334903359033690337903389033990340903419034290343903449034590346903479034890349903509035190352903539035490355903569035790358903599036090361903629036390364903659036690367903689036990370903719037290373903749037590376903779037890379903809038190382903839038490385903869038790388903899039090391903929039390394903959039690397903989039990400904019040290403904049040590406904079040890409904109041190412904139041490415904169041790418904199042090421904229042390424904259042690427904289042990430904319043290433904349043590436904379043890439904409044190442904439044490445904469044790448904499045090451904529045390454904559045690457904589045990460904619046290463904649046590466904679046890469904709047190472904739047490475904769047790478904799048090481904829048390484904859048690487904889048990490904919049290493904949049590496904979049890499905009050190502905039050490505905069050790508905099051090511905129051390514905159051690517905189051990520905219052290523905249052590526905279052890529905309053190532905339053490535905369053790538905399054090541905429054390544905459054690547905489054990550905519055290553905549055590556905579055890559905609056190562905639056490565905669056790568905699057090571905729057390574905759057690577905789057990580905819058290583905849058590586905879058890589905909059190592905939059490595905969059790598905999060090601906029060390604906059060690607906089060990610906119061290613906149061590616906179061890619906209062190622906239062490625906269062790628906299063090631906329063390634906359063690637906389063990640906419064290643906449064590646906479064890649906509065190652906539065490655906569065790658906599066090661906629066390664906659066690667906689066990670906719067290673906749067590676906779067890679906809068190682906839068490685906869068790688906899069090691906929069390694906959069690697906989069990700907019070290703907049070590706907079070890709907109071190712907139071490715907169071790718907199072090721907229072390724907259072690727907289072990730907319073290733907349073590736907379073890739907409074190742907439074490745907469074790748907499075090751907529075390754907559075690757907589075990760907619076290763907649076590766907679076890769907709077190772907739077490775907769077790778907799078090781907829078390784907859078690787907889078990790907919079290793907949079590796907979079890799908009080190802908039080490805908069080790808908099081090811908129081390814908159081690817908189081990820908219082290823908249082590826908279082890829908309083190832908339083490835908369083790838908399084090841908429084390844908459084690847908489084990850908519085290853908549085590856908579085890859908609086190862908639086490865908669086790868908699087090871908729087390874908759087690877908789087990880908819088290883908849088590886908879088890889908909089190892908939089490895908969089790898908999090090901909029090390904909059090690907909089090990910909119091290913909149091590916909179091890919909209092190922909239092490925909269092790928909299093090931909329093390934909359093690937909389093990940909419094290943909449094590946909479094890949909509095190952909539095490955909569095790958909599096090961909629096390964909659096690967909689096990970909719097290973909749097590976909779097890979909809098190982909839098490985909869098790988909899099090991909929099390994909959099690997909989099991000910019100291003910049100591006910079100891009910109101191012910139101491015910169101791018910199102091021910229102391024910259102691027910289102991030910319103291033910349103591036910379103891039910409104191042910439104491045910469104791048910499105091051910529105391054910559105691057910589105991060910619106291063910649106591066910679106891069910709107191072910739107491075910769107791078910799108091081910829108391084910859108691087910889108991090910919109291093910949109591096910979109891099911009110191102911039110491105911069110791108911099111091111911129111391114911159111691117911189111991120911219112291123911249112591126911279112891129911309113191132911339113491135911369113791138911399114091141911429114391144911459114691147911489114991150911519115291153911549115591156911579115891159911609116191162911639116491165911669116791168911699117091171911729117391174911759117691177911789117991180911819118291183911849118591186911879118891189911909119191192911939119491195911969119791198911999120091201912029120391204912059120691207912089120991210912119121291213912149121591216912179121891219912209122191222912239122491225912269122791228912299123091231912329123391234912359123691237912389123991240912419124291243912449124591246912479124891249912509125191252912539125491255912569125791258912599126091261912629126391264912659126691267912689126991270912719127291273912749127591276912779127891279912809128191282912839128491285912869128791288912899129091291912929129391294912959129691297912989129991300913019130291303913049130591306913079130891309913109131191312913139131491315913169131791318913199132091321913229132391324913259132691327913289132991330913319133291333913349133591336913379133891339913409134191342913439134491345913469134791348913499135091351913529135391354913559135691357913589135991360913619136291363913649136591366913679136891369913709137191372913739137491375913769137791378913799138091381913829138391384913859138691387913889138991390913919139291393913949139591396913979139891399914009140191402914039140491405914069140791408914099141091411914129141391414914159141691417914189141991420914219142291423914249142591426914279142891429914309143191432914339143491435914369143791438914399144091441914429144391444914459144691447914489144991450914519145291453914549145591456914579145891459914609146191462914639146491465914669146791468914699147091471914729147391474914759147691477914789147991480914819148291483914849148591486914879148891489914909149191492914939149491495914969149791498914999150091501915029150391504915059150691507915089150991510915119151291513915149151591516915179151891519915209152191522915239152491525915269152791528915299153091531915329153391534915359153691537915389153991540915419154291543915449154591546915479154891549915509155191552915539155491555915569155791558915599156091561915629156391564915659156691567915689156991570915719157291573915749157591576915779157891579915809158191582915839158491585915869158791588915899159091591915929159391594915959159691597915989159991600916019160291603916049160591606916079160891609916109161191612916139161491615916169161791618916199162091621916229162391624916259162691627916289162991630916319163291633916349163591636916379163891639916409164191642916439164491645916469164791648916499165091651916529165391654916559165691657916589165991660916619166291663916649166591666916679166891669916709167191672916739167491675916769167791678916799168091681916829168391684916859168691687916889168991690916919169291693916949169591696916979169891699917009170191702917039170491705917069170791708917099171091711917129171391714917159171691717917189171991720917219172291723917249172591726917279172891729917309173191732917339173491735917369173791738917399174091741917429174391744917459174691747917489174991750917519175291753917549175591756917579175891759917609176191762917639176491765917669176791768917699177091771917729177391774917759177691777917789177991780917819178291783917849178591786917879178891789917909179191792917939179491795917969179791798917999180091801918029180391804918059180691807918089180991810918119181291813918149181591816918179181891819918209182191822918239182491825918269182791828918299183091831918329183391834918359183691837918389183991840918419184291843918449184591846918479184891849918509185191852918539185491855918569185791858918599186091861918629186391864918659186691867918689186991870918719187291873918749187591876918779187891879918809188191882918839188491885918869188791888918899189091891918929189391894918959189691897918989189991900919019190291903919049190591906919079190891909919109191191912919139191491915919169191791918919199192091921919229192391924919259192691927919289192991930919319193291933919349193591936919379193891939919409194191942919439194491945919469194791948919499195091951919529195391954919559195691957919589195991960919619196291963919649196591966919679196891969919709197191972919739197491975919769197791978919799198091981919829198391984919859198691987919889198991990919919199291993919949199591996919979199891999920009200192002920039200492005920069200792008920099201092011920129201392014920159201692017920189201992020920219202292023920249202592026920279202892029920309203192032920339203492035920369203792038920399204092041920429204392044920459204692047920489204992050920519205292053920549205592056920579205892059920609206192062920639206492065920669206792068920699207092071920729207392074920759207692077920789207992080920819208292083920849208592086920879208892089920909209192092920939209492095920969209792098920999210092101921029210392104921059210692107921089210992110921119211292113921149211592116921179211892119921209212192122921239212492125921269212792128921299213092131921329213392134921359213692137921389213992140921419214292143921449214592146921479214892149921509215192152921539215492155921569215792158921599216092161921629216392164921659216692167921689216992170921719217292173921749217592176921779217892179921809218192182921839218492185921869218792188921899219092191921929219392194921959219692197921989219992200922019220292203922049220592206922079220892209922109221192212922139221492215922169221792218922199222092221922229222392224922259222692227922289222992230922319223292233922349223592236922379223892239922409224192242922439224492245922469224792248922499225092251922529225392254922559225692257922589225992260922619226292263922649226592266922679226892269922709227192272922739227492275922769227792278922799228092281922829228392284922859228692287922889228992290922919229292293922949229592296922979229892299923009230192302923039230492305923069230792308923099231092311923129231392314923159231692317923189231992320923219232292323923249232592326923279232892329923309233192332923339233492335923369233792338923399234092341923429234392344923459234692347923489234992350923519235292353923549235592356923579235892359923609236192362923639236492365923669236792368923699237092371923729237392374923759237692377923789237992380923819238292383923849238592386923879238892389923909239192392923939239492395923969239792398923999240092401924029240392404924059240692407924089240992410924119241292413924149241592416924179241892419924209242192422924239242492425924269242792428924299243092431924329243392434924359243692437924389243992440924419244292443924449244592446924479244892449924509245192452924539245492455924569245792458924599246092461924629246392464924659246692467924689246992470924719247292473924749247592476924779247892479924809248192482924839248492485924869248792488924899249092491924929249392494924959249692497924989249992500925019250292503925049250592506925079250892509925109251192512925139251492515925169251792518925199252092521925229252392524925259252692527925289252992530925319253292533925349253592536925379253892539925409254192542925439254492545925469254792548925499255092551925529255392554925559255692557925589255992560925619256292563925649256592566925679256892569925709257192572925739257492575925769257792578925799258092581925829258392584925859258692587925889258992590925919259292593925949259592596925979259892599926009260192602926039260492605926069260792608926099261092611926129261392614926159261692617926189261992620926219262292623926249262592626926279262892629926309263192632926339263492635926369263792638926399264092641926429264392644926459264692647926489264992650926519265292653926549265592656926579265892659926609266192662926639266492665926669266792668926699267092671926729267392674926759267692677926789267992680926819268292683926849268592686926879268892689926909269192692926939269492695926969269792698926999270092701927029270392704927059270692707927089270992710927119271292713927149271592716927179271892719927209272192722927239272492725927269272792728927299273092731927329273392734927359273692737927389273992740927419274292743927449274592746927479274892749927509275192752927539275492755927569275792758927599276092761927629276392764927659276692767927689276992770927719277292773927749277592776927779277892779927809278192782927839278492785927869278792788927899279092791927929279392794927959279692797927989279992800928019280292803928049280592806928079280892809928109281192812928139281492815928169281792818928199282092821928229282392824928259282692827928289282992830928319283292833928349283592836928379283892839928409284192842928439284492845928469284792848928499285092851928529285392854928559285692857928589285992860928619286292863928649286592866928679286892869928709287192872928739287492875928769287792878928799288092881928829288392884928859288692887928889288992890928919289292893928949289592896928979289892899929009290192902929039290492905929069290792908929099291092911929129291392914929159291692917929189291992920929219292292923929249292592926929279292892929929309293192932929339293492935929369293792938929399294092941929429294392944929459294692947929489294992950929519295292953929549295592956929579295892959929609296192962929639296492965929669296792968929699297092971929729297392974929759297692977929789297992980929819298292983929849298592986929879298892989929909299192992929939299492995929969299792998929999300093001930029300393004930059300693007930089300993010930119301293013930149301593016930179301893019930209302193022930239302493025930269302793028930299303093031930329303393034930359303693037930389303993040930419304293043930449304593046930479304893049930509305193052930539305493055930569305793058930599306093061930629306393064930659306693067930689306993070930719307293073930749307593076930779307893079930809308193082930839308493085930869308793088930899309093091930929309393094930959309693097930989309993100931019310293103931049310593106931079310893109931109311193112931139311493115931169311793118931199312093121931229312393124931259312693127931289312993130931319313293133931349313593136931379313893139931409314193142931439314493145931469314793148931499315093151931529315393154931559315693157931589315993160931619316293163931649316593166931679316893169931709317193172931739317493175931769317793178931799318093181931829318393184931859318693187931889318993190931919319293193931949319593196931979319893199932009320193202932039320493205932069320793208932099321093211932129321393214932159321693217932189321993220932219322293223932249322593226932279322893229932309323193232932339323493235932369323793238932399324093241932429324393244932459324693247932489324993250932519325293253932549325593256932579325893259932609326193262932639326493265932669326793268932699327093271932729327393274932759327693277932789327993280932819328293283932849328593286932879328893289932909329193292932939329493295932969329793298932999330093301933029330393304933059330693307933089330993310933119331293313933149331593316933179331893319933209332193322933239332493325933269332793328933299333093331933329333393334933359333693337933389333993340933419334293343933449334593346933479334893349933509335193352933539335493355933569335793358933599336093361933629336393364933659336693367933689336993370933719337293373933749337593376933779337893379933809338193382933839338493385933869338793388933899339093391933929339393394933959339693397933989339993400934019340293403934049340593406934079340893409934109341193412934139341493415934169341793418934199342093421934229342393424934259342693427934289342993430934319343293433934349343593436934379343893439934409344193442934439344493445934469344793448934499345093451934529345393454934559345693457934589345993460934619346293463934649346593466934679346893469934709347193472934739347493475934769347793478934799348093481934829348393484934859348693487934889348993490934919349293493934949349593496934979349893499935009350193502935039350493505935069350793508935099351093511935129351393514935159351693517935189351993520935219352293523935249352593526935279352893529935309353193532935339353493535935369353793538935399354093541935429354393544935459354693547935489354993550935519355293553935549355593556935579355893559935609356193562935639356493565935669356793568935699357093571935729357393574935759357693577935789357993580935819358293583935849358593586935879358893589935909359193592935939359493595935969359793598935999360093601936029360393604936059360693607936089360993610936119361293613936149361593616936179361893619936209362193622936239362493625936269362793628936299363093631936329363393634936359363693637936389363993640936419364293643936449364593646936479364893649936509365193652936539365493655936569365793658936599366093661936629366393664936659366693667936689366993670936719367293673936749367593676936779367893679936809368193682936839368493685936869368793688936899369093691936929369393694936959369693697936989369993700937019370293703937049370593706937079370893709937109371193712937139371493715937169371793718937199372093721937229372393724937259372693727937289372993730937319373293733937349373593736937379373893739937409374193742937439374493745937469374793748937499375093751937529375393754937559375693757937589375993760937619376293763937649376593766937679376893769937709377193772937739377493775937769377793778937799378093781937829378393784937859378693787937889378993790937919379293793937949379593796937979379893799938009380193802938039380493805938069380793808938099381093811938129381393814938159381693817938189381993820938219382293823938249382593826938279382893829938309383193832938339383493835938369383793838938399384093841938429384393844938459384693847938489384993850938519385293853938549385593856938579385893859938609386193862938639386493865938669386793868938699387093871938729387393874938759387693877938789387993880938819388293883938849388593886938879388893889938909389193892938939389493895938969389793898938999390093901939029390393904939059390693907939089390993910939119391293913939149391593916939179391893919939209392193922939239392493925939269392793928939299393093931939329393393934939359393693937939389393993940939419394293943939449394593946939479394893949939509395193952939539395493955939569395793958939599396093961939629396393964939659396693967939689396993970939719397293973939749397593976939779397893979939809398193982939839398493985939869398793988939899399093991939929399393994939959399693997939989399994000940019400294003940049400594006940079400894009940109401194012940139401494015940169401794018940199402094021940229402394024940259402694027940289402994030940319403294033940349403594036940379403894039940409404194042940439404494045940469404794048940499405094051940529405394054940559405694057940589405994060940619406294063940649406594066940679406894069940709407194072940739407494075940769407794078940799408094081940829408394084940859408694087940889408994090940919409294093940949409594096940979409894099941009410194102941039410494105941069410794108941099411094111941129411394114941159411694117941189411994120941219412294123941249412594126941279412894129941309413194132941339413494135941369413794138941399414094141941429414394144941459414694147941489414994150941519415294153941549415594156941579415894159941609416194162941639416494165941669416794168941699417094171941729417394174941759417694177941789417994180941819418294183941849418594186941879418894189941909419194192941939419494195941969419794198941999420094201942029420394204942059420694207942089420994210942119421294213942149421594216942179421894219942209422194222942239422494225942269422794228942299423094231942329423394234942359423694237942389423994240942419424294243942449424594246942479424894249942509425194252942539425494255942569425794258942599426094261942629426394264942659426694267942689426994270942719427294273942749427594276942779427894279942809428194282942839428494285942869428794288942899429094291942929429394294942959429694297942989429994300943019430294303943049430594306943079430894309943109431194312943139431494315943169431794318943199432094321943229432394324943259432694327943289432994330943319433294333943349433594336943379433894339943409434194342943439434494345943469434794348943499435094351943529435394354943559435694357943589435994360943619436294363943649436594366943679436894369943709437194372943739437494375943769437794378943799438094381943829438394384943859438694387943889438994390943919439294393943949439594396943979439894399944009440194402944039440494405944069440794408944099441094411944129441394414944159441694417944189441994420944219442294423944249442594426944279442894429944309443194432944339443494435944369443794438944399444094441944429444394444944459444694447944489444994450944519445294453944549445594456944579445894459944609446194462944639446494465944669446794468944699447094471944729447394474944759447694477944789447994480944819448294483944849448594486944879448894489944909449194492944939449494495944969449794498944999450094501945029450394504945059450694507945089450994510945119451294513945149451594516945179451894519945209452194522945239452494525945269452794528945299453094531945329453394534945359453694537945389453994540945419454294543945449454594546945479454894549945509455194552945539455494555945569455794558945599456094561945629456394564945659456694567945689456994570945719457294573945749457594576945779457894579945809458194582945839458494585945869458794588945899459094591945929459394594945959459694597945989459994600946019460294603946049460594606946079460894609946109461194612946139461494615946169461794618946199462094621946229462394624946259462694627946289462994630946319463294633946349463594636946379463894639946409464194642946439464494645946469464794648946499465094651946529465394654946559465694657946589465994660946619466294663946649466594666946679466894669946709467194672946739467494675946769467794678946799468094681946829468394684946859468694687946889468994690946919469294693946949469594696946979469894699947009470194702947039470494705947069470794708947099471094711947129471394714947159471694717947189471994720947219472294723947249472594726947279472894729947309473194732947339473494735947369473794738947399474094741947429474394744947459474694747947489474994750947519475294753947549475594756947579475894759947609476194762947639476494765947669476794768947699477094771947729477394774947759477694777947789477994780947819478294783947849478594786947879478894789947909479194792947939479494795947969479794798947999480094801948029480394804948059480694807948089480994810948119481294813948149481594816948179481894819948209482194822948239482494825948269482794828948299483094831948329483394834948359483694837948389483994840948419484294843948449484594846948479484894849948509485194852948539485494855948569485794858948599486094861948629486394864948659486694867948689486994870948719487294873948749487594876948779487894879948809488194882948839488494885948869488794888948899489094891948929489394894948959489694897948989489994900949019490294903949049490594906949079490894909949109491194912949139491494915949169491794918949199492094921949229492394924949259492694927949289492994930949319493294933949349493594936949379493894939949409494194942949439494494945949469494794948949499495094951949529495394954949559495694957949589495994960949619496294963949649496594966949679496894969949709497194972949739497494975949769497794978949799498094981949829498394984949859498694987949889498994990949919499294993949949499594996949979499894999950009500195002950039500495005950069500795008950099501095011950129501395014950159501695017950189501995020950219502295023950249502595026950279502895029950309503195032950339503495035950369503795038950399504095041950429504395044950459504695047950489504995050950519505295053950549505595056950579505895059950609506195062950639506495065950669506795068950699507095071950729507395074950759507695077950789507995080950819508295083950849508595086950879508895089950909509195092950939509495095950969509795098950999510095101951029510395104951059510695107951089510995110951119511295113951149511595116951179511895119951209512195122951239512495125951269512795128951299513095131951329513395134951359513695137951389513995140951419514295143951449514595146951479514895149951509515195152951539515495155951569515795158951599516095161951629516395164951659516695167951689516995170951719517295173951749517595176951779517895179951809518195182951839518495185951869518795188951899519095191951929519395194951959519695197951989519995200952019520295203952049520595206952079520895209952109521195212952139521495215952169521795218952199522095221952229522395224952259522695227952289522995230952319523295233952349523595236952379523895239952409524195242952439524495245952469524795248952499525095251952529525395254952559525695257952589525995260952619526295263952649526595266952679526895269952709527195272952739527495275952769527795278952799528095281952829528395284952859528695287952889528995290952919529295293952949529595296952979529895299953009530195302953039530495305953069530795308953099531095311953129531395314953159531695317953189531995320953219532295323953249532595326953279532895329953309533195332953339533495335953369533795338953399534095341953429534395344953459534695347953489534995350953519535295353953549535595356953579535895359953609536195362953639536495365953669536795368953699537095371953729537395374953759537695377953789537995380953819538295383953849538595386953879538895389953909539195392953939539495395953969539795398953999540095401954029540395404954059540695407954089540995410954119541295413954149541595416954179541895419954209542195422954239542495425954269542795428954299543095431954329543395434954359543695437954389543995440954419544295443954449544595446954479544895449954509545195452954539545495455954569545795458954599546095461954629546395464954659546695467954689546995470954719547295473954749547595476954779547895479954809548195482954839548495485954869548795488954899549095491954929549395494954959549695497954989549995500955019550295503955049550595506955079550895509955109551195512955139551495515955169551795518955199552095521955229552395524955259552695527955289552995530955319553295533955349553595536955379553895539955409554195542955439554495545955469554795548955499555095551955529555395554955559555695557955589555995560955619556295563955649556595566955679556895569955709557195572955739557495575955769557795578955799558095581955829558395584955859558695587955889558995590955919559295593955949559595596955979559895599956009560195602956039560495605956069560795608956099561095611956129561395614956159561695617956189561995620956219562295623956249562595626956279562895629956309563195632956339563495635956369563795638956399564095641956429564395644956459564695647956489564995650956519565295653956549565595656956579565895659956609566195662956639566495665956669566795668956699567095671956729567395674956759567695677956789567995680956819568295683956849568595686956879568895689956909569195692956939569495695956969569795698956999570095701957029570395704957059570695707957089570995710957119571295713957149571595716957179571895719957209572195722957239572495725957269572795728957299573095731957329573395734957359573695737957389573995740957419574295743957449574595746957479574895749957509575195752957539575495755957569575795758957599576095761957629576395764957659576695767957689576995770957719577295773957749577595776957779577895779957809578195782957839578495785957869578795788957899579095791957929579395794957959579695797957989579995800958019580295803958049580595806958079580895809958109581195812958139581495815958169581795818958199582095821958229582395824958259582695827958289582995830958319583295833958349583595836958379583895839958409584195842958439584495845958469584795848958499585095851958529585395854958559585695857958589585995860958619586295863958649586595866958679586895869958709587195872958739587495875958769587795878958799588095881958829588395884958859588695887958889588995890958919589295893958949589595896958979589895899959009590195902959039590495905959069590795908959099591095911959129591395914959159591695917959189591995920959219592295923959249592595926959279592895929959309593195932959339593495935959369593795938959399594095941959429594395944959459594695947959489594995950959519595295953959549595595956959579595895959959609596195962959639596495965959669596795968959699597095971959729597395974959759597695977959789597995980959819598295983959849598595986959879598895989959909599195992959939599495995959969599795998959999600096001960029600396004960059600696007960089600996010960119601296013960149601596016960179601896019960209602196022960239602496025960269602796028960299603096031960329603396034960359603696037960389603996040960419604296043960449604596046960479604896049960509605196052960539605496055960569605796058960599606096061960629606396064960659606696067960689606996070960719607296073960749607596076960779607896079960809608196082960839608496085960869608796088960899609096091960929609396094960959609696097960989609996100961019610296103961049610596106961079610896109961109611196112961139611496115961169611796118961199612096121961229612396124961259612696127961289612996130961319613296133961349613596136961379613896139961409614196142961439614496145961469614796148961499615096151961529615396154961559615696157961589615996160961619616296163961649616596166961679616896169961709617196172961739617496175961769617796178961799618096181961829618396184961859618696187961889618996190961919619296193961949619596196961979619896199962009620196202962039620496205962069620796208962099621096211962129621396214962159621696217962189621996220962219622296223962249622596226962279622896229962309623196232962339623496235962369623796238962399624096241962429624396244962459624696247962489624996250962519625296253962549625596256962579625896259962609626196262962639626496265962669626796268962699627096271962729627396274962759627696277962789627996280962819628296283962849628596286962879628896289962909629196292962939629496295962969629796298962999630096301963029630396304963059630696307963089630996310963119631296313963149631596316963179631896319963209632196322963239632496325963269632796328963299633096331963329633396334963359633696337963389633996340963419634296343963449634596346963479634896349963509635196352963539635496355 |
- /*!
- *
- * ant-design-vue v1.7.5
- *
- * Copyright 2017-present, ant-design-vue.
- * All rights reserved.
- *
- */
- (function webpackUniversalModuleDefinition(root, factory) {
- if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory(require("templates/static/js/moment"), require("templates/static/js/vue"));
- else if(typeof define === 'function' && define.amd)
- define(["templates/static/js/moment", "vue"], factory);
- else if(typeof exports === 'object')
- exports["antd"] = factory(require("templates/static/js/moment"), require("templates/static/js/vue"));
- else
- root["antd"] = factory(root["moment"], root["Vue"]);
- })(window, function(__WEBPACK_EXTERNAL_MODULE_moment__, __WEBPACK_EXTERNAL_MODULE_vue__) {
- 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, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // 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 = 0);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ "./components sync recursive ^\\.\\/[^_][\\w-]+\\/style\\/index\\.js?$":
- /*!*************************************************************!*\
- !*** ./components sync ^\.\/[^_][\w-]+\/style\/index\.js?$ ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var map = {
- "./affix/style/index.js": "./components/affix/style/index.js",
- "./alert/style/index.js": "./components/alert/style/index.js",
- "./anchor/style/index.js": "./components/anchor/style/index.js",
- "./auto-complete/style/index.js": "./components/auto-complete/style/index.js",
- "./avatar/style/index.js": "./components/avatar/style/index.js",
- "./back-top/style/index.js": "./components/back-top/style/index.js",
- "./badge/style/index.js": "./components/badge/style/index.js",
- "./base/style/index.js": "./components/base/style/index.js",
- "./breadcrumb/style/index.js": "./components/breadcrumb/style/index.js",
- "./button/style/index.js": "./components/button/style/index.js",
- "./calendar/style/index.js": "./components/calendar/style/index.js",
- "./card/style/index.js": "./components/card/style/index.js",
- "./carousel/style/index.js": "./components/carousel/style/index.js",
- "./cascader/style/index.js": "./components/cascader/style/index.js",
- "./checkbox/style/index.js": "./components/checkbox/style/index.js",
- "./col/style/index.js": "./components/col/style/index.js",
- "./collapse/style/index.js": "./components/collapse/style/index.js",
- "./comment/style/index.js": "./components/comment/style/index.js",
- "./config-provider/style/index.js": "./components/config-provider/style/index.js",
- "./date-picker/style/index.js": "./components/date-picker/style/index.js",
- "./descriptions/style/index.js": "./components/descriptions/style/index.js",
- "./divider/style/index.js": "./components/divider/style/index.js",
- "./drawer/style/index.js": "./components/drawer/style/index.js",
- "./dropdown/style/index.js": "./components/dropdown/style/index.js",
- "./empty/style/index.js": "./components/empty/style/index.js",
- "./form-model/style/index.js": "./components/form-model/style/index.js",
- "./form/style/index.js": "./components/form/style/index.js",
- "./grid/style/index.js": "./components/grid/style/index.js",
- "./icon/style/index.js": "./components/icon/style/index.js",
- "./input-number/style/index.js": "./components/input-number/style/index.js",
- "./input/style/index.js": "./components/input/style/index.js",
- "./layout/style/index.js": "./components/layout/style/index.js",
- "./list/style/index.js": "./components/list/style/index.js",
- "./locale-provider/style/index.js": "./components/locale-provider/style/index.js",
- "./mentions/style/index.js": "./components/mentions/style/index.js",
- "./menu/style/index.js": "./components/menu/style/index.js",
- "./message/style/index.js": "./components/message/style/index.js",
- "./modal/style/index.js": "./components/modal/style/index.js",
- "./notification/style/index.js": "./components/notification/style/index.js",
- "./page-header/style/index.js": "./components/page-header/style/index.js",
- "./pagination/style/index.js": "./components/pagination/style/index.js",
- "./popconfirm/style/index.js": "./components/popconfirm/style/index.js",
- "./popover/style/index.js": "./components/popover/style/index.js",
- "./progress/style/index.js": "./components/progress/style/index.js",
- "./radio/style/index.js": "./components/radio/style/index.js",
- "./rate/style/index.js": "./components/rate/style/index.js",
- "./result/style/index.js": "./components/result/style/index.js",
- "./row/style/index.js": "./components/row/style/index.js",
- "./select/style/index.js": "./components/select/style/index.js",
- "./skeleton/style/index.js": "./components/skeleton/style/index.js",
- "./slider/style/index.js": "./components/slider/style/index.js",
- "./space/style/index.js": "./components/space/style/index.js",
- "./spin/style/index.js": "./components/spin/style/index.js",
- "./statistic/style/index.js": "./components/statistic/style/index.js",
- "./steps/style/index.js": "./components/steps/style/index.js",
- "./switch/style/index.js": "./components/switch/style/index.js",
- "./table/style/index.js": "./components/table/style/index.js",
- "./tabs/style/index.js": "./components/tabs/style/index.js",
- "./tag/style/index.js": "./components/tag/style/index.js",
- "./time-picker/style/index.js": "./components/time-picker/style/index.js",
- "./timeline/style/index.js": "./components/timeline/style/index.js",
- "./tooltip/style/index.js": "./components/tooltip/style/index.js",
- "./transfer/style/index.js": "./components/transfer/style/index.js",
- "./tree-select/style/index.js": "./components/tree-select/style/index.js",
- "./tree/style/index.js": "./components/tree/style/index.js",
- "./upload/style/index.js": "./components/upload/style/index.js",
- "./version/style/index.js": "./components/version/style/index.js"
- };
- function webpackContext(req) {
- var id = webpackContextResolve(req);
- return __webpack_require__(id);
- }
- function webpackContextResolve(req) {
- if(!__webpack_require__.o(map, req)) {
- var e = new Error("Cannot find module '" + req + "'");
- e.code = 'MODULE_NOT_FOUND';
- throw e;
- }
- return map[req];
- }
- webpackContext.keys = function webpackContextKeys() {
- return Object.keys(map);
- };
- webpackContext.resolve = webpackContextResolve;
- module.exports = webpackContext;
- webpackContext.id = "./components sync recursive ^\\.\\/[^_][\\w-]+\\/style\\/index\\.js?$";
- /***/ }),
- /***/ "./components/_util/BaseMixin.js":
- /*!***************************************!*\
- !*** ./components/_util/BaseMixin.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./props-util */ "./components/_util/props-util.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- methods: {
- setState: function setState() {
- var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var callback = arguments[1];
- var newState = typeof state === 'function' ? state(this.$data, this.$props) : state;
- if (this.getDerivedStateFromProps) {
- var s = this.getDerivedStateFromProps(Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this), babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$data, newState));
- if (s === null) {
- return;
- } else {
- newState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, newState, s || {});
- }
- }
- babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()(this.$data, newState);
- this.$forceUpdate();
- this.$nextTick(function () {
- callback && callback();
- });
- },
- __emit: function __emit() {
- // 直接调用listeners,底层组件不需要vueTool记录events
- var args = [].slice.call(arguments, 0);
- var eventName = args[0];
- var event = this.$listeners[eventName];
- if (args.length && event) {
- if (Array.isArray(event)) {
- for (var i = 0, l = event.length; i < l; i++) {
- event[i].apply(event, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(args.slice(1)));
- }
- } else {
- event.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(args.slice(1)));
- }
- }
- }
- }
- });
- /***/ }),
- /***/ "./components/_util/ContainerRender.jsx":
- /*!**********************************************!*\
- !*** ./components/_util/ContainerRender.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- autoMount: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- autoDestroy: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- visible: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- forceRender: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- parent: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- getComponent: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
- getContainer: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
- children: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired
- },
- mounted: function mounted() {
- if (this.autoMount) {
- this.renderComponent();
- }
- },
- updated: function updated() {
- if (this.autoMount) {
- this.renderComponent();
- }
- },
- beforeDestroy: function beforeDestroy() {
- if (this.autoDestroy) {
- this.removeContainer();
- }
- },
- methods: {
- removeContainer: function removeContainer() {
- if (this.container) {
- this._component && this._component.$destroy();
- this.container.parentNode.removeChild(this.container);
- this.container = null;
- this._component = null;
- }
- },
- renderComponent: function renderComponent() {
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var ready = arguments[1];
- var visible = this.visible,
- forceRender = this.forceRender,
- getContainer = this.getContainer,
- parent = this.parent;
- var self = this;
- if (visible || parent._component || parent.$refs._component || forceRender) {
- var el = this.componentEl;
- if (!this.container) {
- this.container = getContainer();
- el = document.createElement('div');
- this.componentEl = el;
- this.container.appendChild(el);
- }
- // self.getComponent 不要放在 render 中,会因为响应式数据问题导致,多次触发 render
- var com = { component: self.getComponent(props) };
- if (!this._component) {
- this._component = new this.$root.constructor({
- el: el,
- parent: self,
- data: {
- _com: com
- },
- mounted: function mounted() {
- this.$nextTick(function () {
- if (ready) {
- ready.call(self);
- }
- });
- },
- updated: function updated() {
- this.$nextTick(function () {
- if (ready) {
- ready.call(self);
- }
- });
- },
- methods: {
- setComponent: function setComponent(_com) {
- this.$data._com = _com;
- }
- },
- render: function render() {
- return this.$data._com.component;
- }
- });
- } else {
- this._component.setComponent(com);
- }
- }
- }
- },
- render: function render() {
- return this.children({
- renderComponent: this.renderComponent,
- removeContainer: this.removeContainer
- });
- }
- });
- /***/ }),
- /***/ "./components/_util/FormDecoratorDirective.js":
- /*!****************************************************!*\
- !*** ./components/_util/FormDecoratorDirective.js ***!
- \****************************************************/
- /*! exports provided: antDecorator, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "antDecorator", function() { return antDecorator; });
- function antDecorator(Vue) {
- return Vue.directive('decorator', {});
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- // just for tag
- install: function install(Vue) {
- antDecorator(Vue);
- }
- });
- /***/ }),
- /***/ "./components/_util/KeyCode.js":
- /*!*************************************!*\
- !*** ./components/_util/KeyCode.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /**
- * @ignore
- * some key-codes definition and utils from closure-library
- * @author yiminghe@gmail.com
- */
- var KeyCode = {
- /**
- * MAC_ENTER
- */
- MAC_ENTER: 3,
- /**
- * BACKSPACE
- */
- BACKSPACE: 8,
- /**
- * TAB
- */
- TAB: 9,
- /**
- * NUMLOCK on FF/Safari Mac
- */
- NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac
- /**
- * ENTER
- */
- ENTER: 13,
- /**
- * SHIFT
- */
- SHIFT: 16,
- /**
- * CTRL
- */
- CTRL: 17,
- /**
- * ALT
- */
- ALT: 18,
- /**
- * PAUSE
- */
- PAUSE: 19,
- /**
- * CAPS_LOCK
- */
- CAPS_LOCK: 20,
- /**
- * ESC
- */
- ESC: 27,
- /**
- * SPACE
- */
- SPACE: 32,
- /**
- * PAGE_UP
- */
- PAGE_UP: 33, // also NUM_NORTH_EAST
- /**
- * PAGE_DOWN
- */
- PAGE_DOWN: 34, // also NUM_SOUTH_EAST
- /**
- * END
- */
- END: 35, // also NUM_SOUTH_WEST
- /**
- * HOME
- */
- HOME: 36, // also NUM_NORTH_WEST
- /**
- * LEFT
- */
- LEFT: 37, // also NUM_WEST
- /**
- * UP
- */
- UP: 38, // also NUM_NORTH
- /**
- * RIGHT
- */
- RIGHT: 39, // also NUM_EAST
- /**
- * DOWN
- */
- DOWN: 40, // also NUM_SOUTH
- /**
- * PRINT_SCREEN
- */
- PRINT_SCREEN: 44,
- /**
- * INSERT
- */
- INSERT: 45, // also NUM_INSERT
- /**
- * DELETE
- */
- DELETE: 46, // also NUM_DELETE
- /**
- * ZERO
- */
- ZERO: 48,
- /**
- * ONE
- */
- ONE: 49,
- /**
- * TWO
- */
- TWO: 50,
- /**
- * THREE
- */
- THREE: 51,
- /**
- * FOUR
- */
- FOUR: 52,
- /**
- * FIVE
- */
- FIVE: 53,
- /**
- * SIX
- */
- SIX: 54,
- /**
- * SEVEN
- */
- SEVEN: 55,
- /**
- * EIGHT
- */
- EIGHT: 56,
- /**
- * NINE
- */
- NINE: 57,
- /**
- * QUESTION_MARK
- */
- QUESTION_MARK: 63, // needs localization
- /**
- * A
- */
- A: 65,
- /**
- * B
- */
- B: 66,
- /**
- * C
- */
- C: 67,
- /**
- * D
- */
- D: 68,
- /**
- * E
- */
- E: 69,
- /**
- * F
- */
- F: 70,
- /**
- * G
- */
- G: 71,
- /**
- * H
- */
- H: 72,
- /**
- * I
- */
- I: 73,
- /**
- * J
- */
- J: 74,
- /**
- * K
- */
- K: 75,
- /**
- * L
- */
- L: 76,
- /**
- * M
- */
- M: 77,
- /**
- * N
- */
- N: 78,
- /**
- * O
- */
- O: 79,
- /**
- * P
- */
- P: 80,
- /**
- * Q
- */
- Q: 81,
- /**
- * R
- */
- R: 82,
- /**
- * S
- */
- S: 83,
- /**
- * T
- */
- T: 84,
- /**
- * U
- */
- U: 85,
- /**
- * V
- */
- V: 86,
- /**
- * W
- */
- W: 87,
- /**
- * X
- */
- X: 88,
- /**
- * Y
- */
- Y: 89,
- /**
- * Z
- */
- Z: 90,
- /**
- * META
- */
- META: 91, // WIN_KEY_LEFT
- /**
- * WIN_KEY_RIGHT
- */
- WIN_KEY_RIGHT: 92,
- /**
- * CONTEXT_MENU
- */
- CONTEXT_MENU: 93,
- /**
- * NUM_ZERO
- */
- NUM_ZERO: 96,
- /**
- * NUM_ONE
- */
- NUM_ONE: 97,
- /**
- * NUM_TWO
- */
- NUM_TWO: 98,
- /**
- * NUM_THREE
- */
- NUM_THREE: 99,
- /**
- * NUM_FOUR
- */
- NUM_FOUR: 100,
- /**
- * NUM_FIVE
- */
- NUM_FIVE: 101,
- /**
- * NUM_SIX
- */
- NUM_SIX: 102,
- /**
- * NUM_SEVEN
- */
- NUM_SEVEN: 103,
- /**
- * NUM_EIGHT
- */
- NUM_EIGHT: 104,
- /**
- * NUM_NINE
- */
- NUM_NINE: 105,
- /**
- * NUM_MULTIPLY
- */
- NUM_MULTIPLY: 106,
- /**
- * NUM_PLUS
- */
- NUM_PLUS: 107,
- /**
- * NUM_MINUS
- */
- NUM_MINUS: 109,
- /**
- * NUM_PERIOD
- */
- NUM_PERIOD: 110,
- /**
- * NUM_DIVISION
- */
- NUM_DIVISION: 111,
- /**
- * F1
- */
- F1: 112,
- /**
- * F2
- */
- F2: 113,
- /**
- * F3
- */
- F3: 114,
- /**
- * F4
- */
- F4: 115,
- /**
- * F5
- */
- F5: 116,
- /**
- * F6
- */
- F6: 117,
- /**
- * F7
- */
- F7: 118,
- /**
- * F8
- */
- F8: 119,
- /**
- * F9
- */
- F9: 120,
- /**
- * F10
- */
- F10: 121,
- /**
- * F11
- */
- F11: 122,
- /**
- * F12
- */
- F12: 123,
- /**
- * NUMLOCK
- */
- NUMLOCK: 144,
- /**
- * SEMICOLON
- */
- SEMICOLON: 186, // needs localization
- /**
- * DASH
- */
- DASH: 189, // needs localization
- /**
- * EQUALS
- */
- EQUALS: 187, // needs localization
- /**
- * COMMA
- */
- COMMA: 188, // needs localization
- /**
- * PERIOD
- */
- PERIOD: 190, // needs localization
- /**
- * SLASH
- */
- SLASH: 191, // needs localization
- /**
- * APOSTROPHE
- */
- APOSTROPHE: 192, // needs localization
- /**
- * SINGLE_QUOTE
- */
- SINGLE_QUOTE: 222, // needs localization
- /**
- * OPEN_SQUARE_BRACKET
- */
- OPEN_SQUARE_BRACKET: 219, // needs localization
- /**
- * BACKSLASH
- */
- BACKSLASH: 220, // needs localization
- /**
- * CLOSE_SQUARE_BRACKET
- */
- CLOSE_SQUARE_BRACKET: 221, // needs localization
- /**
- * WIN_KEY
- */
- WIN_KEY: 224,
- /**
- * MAC_FF_META
- */
- MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91
- /**
- * WIN_IME
- */
- WIN_IME: 229
- };
- /*
- whether text and modified key is entered at the same time.
- */
- KeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) {
- var keyCode = e.keyCode;
- if (e.altKey && !e.ctrlKey || e.metaKey ||
- // Function keys don't generate text
- keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
- return false;
- }
- // The following keys are quite harmless, even in combination with
- // CTRL, ALT or SHIFT.
- switch (keyCode) {
- case KeyCode.ALT:
- case KeyCode.CAPS_LOCK:
- case KeyCode.CONTEXT_MENU:
- case KeyCode.CTRL:
- case KeyCode.DOWN:
- case KeyCode.END:
- case KeyCode.ESC:
- case KeyCode.HOME:
- case KeyCode.INSERT:
- case KeyCode.LEFT:
- case KeyCode.MAC_FF_META:
- case KeyCode.META:
- case KeyCode.NUMLOCK:
- case KeyCode.NUM_CENTER:
- case KeyCode.PAGE_DOWN:
- case KeyCode.PAGE_UP:
- case KeyCode.PAUSE:
- case KeyCode.PRINT_SCREEN:
- case KeyCode.RIGHT:
- case KeyCode.SHIFT:
- case KeyCode.UP:
- case KeyCode.WIN_KEY:
- case KeyCode.WIN_KEY_RIGHT:
- return false;
- default:
- return true;
- }
- };
- /*
- whether character is entered.
- */
- KeyCode.isCharacterKey = function isCharacterKey(keyCode) {
- if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
- return true;
- }
- if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
- return true;
- }
- if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
- return true;
- }
- // Safari sends zero key code for non-latin characters.
- if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
- return true;
- }
- switch (keyCode) {
- case KeyCode.SPACE:
- case KeyCode.QUESTION_MARK:
- case KeyCode.NUM_PLUS:
- case KeyCode.NUM_MINUS:
- case KeyCode.NUM_PERIOD:
- case KeyCode.NUM_DIVISION:
- case KeyCode.SEMICOLON:
- case KeyCode.DASH:
- case KeyCode.EQUALS:
- case KeyCode.COMMA:
- case KeyCode.PERIOD:
- case KeyCode.SLASH:
- case KeyCode.APOSTROPHE:
- case KeyCode.SINGLE_QUOTE:
- case KeyCode.OPEN_SQUARE_BRACKET:
- case KeyCode.BACKSLASH:
- case KeyCode.CLOSE_SQUARE_BRACKET:
- return true;
- default:
- return false;
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (KeyCode);
- /***/ }),
- /***/ "./components/_util/Portal.js":
- /*!************************************!*\
- !*** ./components/_util/Portal.js ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vnode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./vnode */ "./components/_util/vnode.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Portal',
- props: {
- getContainer: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
- children: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.isRequired,
- didUpdate: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
- },
- mounted: function mounted() {
- this.createContainer();
- },
- updated: function updated() {
- var _this = this;
- var didUpdate = this.$props.didUpdate;
- if (didUpdate) {
- this.$nextTick(function () {
- didUpdate(_this.$props);
- });
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.removeContainer();
- },
- methods: {
- createContainer: function createContainer() {
- this._container = this.$props.getContainer();
- this.$forceUpdate();
- },
- removeContainer: function removeContainer() {
- if (this._container && this._container.parentNode) {
- this._container.parentNode.removeChild(this._container);
- }
- }
- },
- render: function render() {
- if (this._container) {
- return Object(_vnode__WEBPACK_IMPORTED_MODULE_1__["cloneElement"])(this.$props.children, {
- directives: [{
- name: 'ant-portal',
- value: this._container
- }]
- });
- }
- return null;
- }
- });
- /***/ }),
- /***/ "./components/_util/PortalWrapper.js":
- /*!*******************************************!*\
- !*** ./components/_util/PortalWrapper.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _switchScrollingEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./switchScrollingEffect */ "./components/_util/switchScrollingEffect.js");
- /* harmony import */ var _setStyle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./setStyle */ "./components/_util/setStyle.js");
- /* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Portal */ "./components/_util/Portal.js");
- var openCount = 0;
- var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
- // https://github.com/ant-design/ant-design/issues/19340
- // https://github.com/ant-design/ant-design/issues/19332
- var cacheOverflow = {};
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'PortalWrapper',
- props: {
- wrapperClassName: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- forceRender: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- getContainer: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- children: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- visible: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
- },
- data: function data() {
- var visible = this.$props.visible;
- openCount = visible ? openCount + 1 : openCount;
- return {};
- },
- updated: function updated() {
- this.setWrapperClassName();
- },
- watch: {
- visible: function visible(val) {
- openCount = val ? openCount + 1 : openCount - 1;
- },
- getContainer: function getContainer(_getContainer, prevGetContainer) {
- var getContainerIsFunc = typeof _getContainer === 'function' && typeof prevGetContainer === 'function';
- if (getContainerIsFunc ? _getContainer.toString() !== prevGetContainer.toString() : _getContainer !== prevGetContainer) {
- this.removeCurrentContainer(false);
- }
- }
- },
- beforeDestroy: function beforeDestroy() {
- var visible = this.$props.visible;
- // 离开时不会 render, 导到离开时数值不变,改用 func 。。
- openCount = visible && openCount ? openCount - 1 : openCount;
- this.removeCurrentContainer(visible);
- },
- methods: {
- getParent: function getParent() {
- var getContainer = this.$props.getContainer;
- if (getContainer) {
- if (typeof getContainer === 'string') {
- return document.querySelectorAll(getContainer)[0];
- }
- if (typeof getContainer === 'function') {
- return getContainer();
- }
- if ((typeof getContainer === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(getContainer)) === 'object' && getContainer instanceof window.HTMLElement) {
- return getContainer;
- }
- }
- return document.body;
- },
- getDomContainer: function getDomContainer() {
- if (windowIsUndefined) {
- return null;
- }
- if (!this.container) {
- this.container = document.createElement('div');
- var parent = this.getParent();
- if (parent) {
- parent.appendChild(this.container);
- }
- }
- this.setWrapperClassName();
- return this.container;
- },
- setWrapperClassName: function setWrapperClassName() {
- var wrapperClassName = this.$props.wrapperClassName;
- if (this.container && wrapperClassName && wrapperClassName !== this.container.className) {
- this.container.className = wrapperClassName;
- }
- },
- savePortal: function savePortal(c) {
- // Warning: don't rename _component
- // https://github.com/react-component/util/pull/65#discussion_r352407916
- this._component = c;
- },
- removeCurrentContainer: function removeCurrentContainer() {
- this.container = null;
- this._component = null;
- },
- /**
- * Enhance ./switchScrollingEffect
- * 1. Simulate document body scroll bar with
- * 2. Record body has overflow style and recover when all of PortalWrapper invisible
- * 3. Disable body scroll when PortalWrapper has open
- *
- * @memberof PortalWrapper
- */
- switchScrollingEffect: function switchScrollingEffect() {
- if (openCount === 1 && !Object.keys(cacheOverflow).length) {
- Object(_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_3__["default"])();
- // Must be set after switchScrollingEffect
- cacheOverflow = Object(_setStyle__WEBPACK_IMPORTED_MODULE_4__["default"])({
- overflow: 'hidden',
- overflowX: 'hidden',
- overflowY: 'hidden'
- });
- } else if (!openCount) {
- Object(_setStyle__WEBPACK_IMPORTED_MODULE_4__["default"])(cacheOverflow);
- cacheOverflow = {};
- Object(_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_3__["default"])(true);
- }
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$props = this.$props,
- children = _$props.children,
- forceRender = _$props.forceRender,
- visible = _$props.visible;
- var portal = null;
- var childProps = {
- getOpenCount: function getOpenCount() {
- return openCount;
- },
- getContainer: this.getDomContainer,
- switchScrollingEffect: this.switchScrollingEffect
- };
- if (forceRender || visible || this._component) {
- portal = h(_Portal__WEBPACK_IMPORTED_MODULE_5__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- getContainer: this.getDomContainer,
- children: children(childProps)
- }
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.savePortal
- }]
- }]));
- }
- return portal;
- }
- });
- /***/ }),
- /***/ "./components/_util/antDirective.js":
- /*!******************************************!*\
- !*** ./components/_util/antDirective.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _antInputDirective__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./antInputDirective */ "./components/_util/antInputDirective.js");
- /* harmony import */ var _FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FormDecoratorDirective */ "./components/_util/FormDecoratorDirective.js");
- /* harmony import */ var _portalDirective__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portalDirective */ "./components/_util/portalDirective.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- install: function install(Vue) {
- Vue.use(vue_ref__WEBPACK_IMPORTED_MODULE_0___default.a, { name: 'ant-ref' });
- Object(_antInputDirective__WEBPACK_IMPORTED_MODULE_1__["antInput"])(Vue);
- Object(_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_2__["antDecorator"])(Vue);
- Object(_portalDirective__WEBPACK_IMPORTED_MODULE_3__["antPortal"])(Vue);
- }
- });
- /***/ }),
- /***/ "./components/_util/antInputDirective.js":
- /*!***********************************************!*\
- !*** ./components/_util/antInputDirective.js ***!
- \***********************************************/
- /*! exports provided: inBrowser, UA, isIE9, antInput, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inBrowser", function() { return inBrowser; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UA", function() { return UA; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIE9", function() { return isIE9; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "antInput", function() { return antInput; });
- /**
- * Not type checking this file because flow doesn't like attaching
- * properties to Elements.
- */
- var inBrowser = typeof window !== 'undefined';
- var UA = inBrowser && window.navigator.userAgent.toLowerCase();
- var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
- function makeMap(str, expectsLowerCase) {
- var map = Object.create(null);
- var list = str.split(',');
- for (var i = 0; i < list.length; i++) {
- map[list[i]] = true;
- }
- return expectsLowerCase ? function (val) {
- return map[val.toLowerCase()];
- } : function (val) {
- return map[val];
- };
- }
- var isTextInputType = makeMap('text,number,password,search,email,tel,url');
- function onCompositionStart(e) {
- e.target.composing = true;
- }
- function onCompositionEnd(e) {
- // prevent triggering an input event for no reason
- if (!e.target.composing) return;
- e.target.composing = false;
- trigger(e.target, 'input');
- }
- function trigger(el, type) {
- var e = document.createEvent('HTMLEvents');
- e.initEvent(type, true, true);
- el.dispatchEvent(e);
- }
- /* istanbul ignore if */
- if (isIE9) {
- // http://www.matts411.com/post/internet-explorer-9-oninput/
- document.addEventListener('selectionchange', function () {
- var el = document.activeElement;
- if (el && el.vmodel) {
- trigger(el, 'input');
- }
- });
- }
- function antInput(Vue) {
- return Vue.directive('ant-input', {
- inserted: function inserted(el, binding, vnode) {
- if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
- if (!binding.modifiers || !binding.modifiers.lazy) {
- el.addEventListener('compositionstart', onCompositionStart);
- el.addEventListener('compositionend', onCompositionEnd);
- // Safari < 10.2 & UIWebView doesn't fire compositionend when
- // switching focus before confirming composition choice
- // this also fixes the issue where some browsers e.g. iOS Chrome
- // fires "change" instead of "input" on autocomplete.
- el.addEventListener('change', onCompositionEnd);
- /* istanbul ignore if */
- if (isIE9) {
- el.vmodel = true;
- }
- }
- }
- }
- });
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- install: function install(Vue) {
- antInput(Vue);
- }
- });
- /***/ }),
- /***/ "./components/_util/colors.js":
- /*!************************************!*\
- !*** ./components/_util/colors.js ***!
- \************************************/
- /*! exports provided: PresetColorTypes */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PresetColorTypes", function() { return PresetColorTypes; });
- /* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./type */ "./components/_util/type.js");
- var PresetColorTypes = Object(_type__WEBPACK_IMPORTED_MODULE_0__["tuple"])('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');
- /***/ }),
- /***/ "./components/_util/createChainedFunction.js":
- /*!***************************************************!*\
- !*** ./components/_util/createChainedFunction.js ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createChainedFunction; });
- /**
- * Safe chained function
- *
- * Will only create a new function if needed,
- * otherwise will pass back existing functions or null.
- *
- * @returns {function|null}
- */
- function createChainedFunction() {
- var args = [].slice.call(arguments, 0);
- if (args.length === 1) {
- return args[0];
- }
- return function chainedFunction() {
- for (var i = 0; i < args.length; i++) {
- if (args[i] && args[i].apply) {
- args[i].apply(this, arguments);
- }
- }
- };
- }
- /***/ }),
- /***/ "./components/_util/css-animation/Event.js":
- /*!*************************************************!*\
- !*** ./components/_util/css-animation/Event.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var START_EVENT_NAME_MAP = {
- transitionstart: {
- transition: 'transitionstart',
- WebkitTransition: 'webkitTransitionStart',
- MozTransition: 'mozTransitionStart',
- OTransition: 'oTransitionStart',
- msTransition: 'MSTransitionStart'
- },
- animationstart: {
- animation: 'animationstart',
- WebkitAnimation: 'webkitAnimationStart',
- MozAnimation: 'mozAnimationStart',
- OAnimation: 'oAnimationStart',
- msAnimation: 'MSAnimationStart'
- }
- };
- var END_EVENT_NAME_MAP = {
- transitionend: {
- transition: 'transitionend',
- WebkitTransition: 'webkitTransitionEnd',
- MozTransition: 'mozTransitionEnd',
- OTransition: 'oTransitionEnd',
- msTransition: 'MSTransitionEnd'
- },
- animationend: {
- animation: 'animationend',
- WebkitAnimation: 'webkitAnimationEnd',
- MozAnimation: 'mozAnimationEnd',
- OAnimation: 'oAnimationEnd',
- msAnimation: 'MSAnimationEnd'
- }
- };
- var startEvents = [];
- var endEvents = [];
- function detectEvents() {
- var testEl = document.createElement('div');
- var style = testEl.style;
- if (!('AnimationEvent' in window)) {
- delete START_EVENT_NAME_MAP.animationstart.animation;
- delete END_EVENT_NAME_MAP.animationend.animation;
- }
- if (!('TransitionEvent' in window)) {
- delete START_EVENT_NAME_MAP.transitionstart.transition;
- delete END_EVENT_NAME_MAP.transitionend.transition;
- }
- function process(EVENT_NAME_MAP, events) {
- for (var baseEventName in EVENT_NAME_MAP) {
- if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {
- var baseEvents = EVENT_NAME_MAP[baseEventName];
- for (var styleName in baseEvents) {
- if (styleName in style) {
- events.push(baseEvents[styleName]);
- break;
- }
- }
- }
- }
- }
- process(START_EVENT_NAME_MAP, startEvents);
- process(END_EVENT_NAME_MAP, endEvents);
- }
- if (typeof window !== 'undefined' && typeof document !== 'undefined') {
- detectEvents();
- }
- function addEventListener(node, eventName, eventListener) {
- node.addEventListener(eventName, eventListener, false);
- }
- function removeEventListener(node, eventName, eventListener) {
- node.removeEventListener(eventName, eventListener, false);
- }
- var TransitionEvents = {
- // Start events
- startEvents: startEvents,
- addStartEventListener: function addStartEventListener(node, eventListener) {
- if (startEvents.length === 0) {
- window.setTimeout(eventListener, 0);
- return;
- }
- startEvents.forEach(function (startEvent) {
- addEventListener(node, startEvent, eventListener);
- });
- },
- removeStartEventListener: function removeStartEventListener(node, eventListener) {
- if (startEvents.length === 0) {
- return;
- }
- startEvents.forEach(function (startEvent) {
- removeEventListener(node, startEvent, eventListener);
- });
- },
- // End events
- endEvents: endEvents,
- addEndEventListener: function addEndEventListener(node, eventListener) {
- if (endEvents.length === 0) {
- window.setTimeout(eventListener, 0);
- return;
- }
- endEvents.forEach(function (endEvent) {
- addEventListener(node, endEvent, eventListener);
- });
- },
- removeEndEventListener: function removeEndEventListener(node, eventListener) {
- if (endEvents.length === 0) {
- return;
- }
- endEvents.forEach(function (endEvent) {
- removeEventListener(node, endEvent, eventListener);
- });
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (TransitionEvents);
- /***/ }),
- /***/ "./components/_util/css-animation/index.js":
- /*!*************************************************!*\
- !*** ./components/_util/css-animation/index.js ***!
- \*************************************************/
- /*! exports provided: isCssAnimationSupported, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCssAnimationSupported", function() { return isCssAnimationSupported; });
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Event */ "./components/_util/css-animation/Event.js");
- /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! component-classes */ "./node_modules/component-classes/index.js");
- /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(component_classes__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../requestAnimationTimeout */ "./components/_util/requestAnimationTimeout.js");
- // https://github.com/yiminghe/css-animation 1.5.0
- var isCssAnimationSupported = _Event__WEBPACK_IMPORTED_MODULE_1__["default"].endEvents.length !== 0;
- var capitalPrefixes = ['Webkit', 'Moz', 'O',
- // ms is special .... !
- 'ms'];
- var prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];
- function getStyleProperty(node, name) {
- // old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle
- var style = window.getComputedStyle(node, null);
- var ret = '';
- for (var i = 0; i < prefixes.length; i++) {
- ret = style.getPropertyValue(prefixes[i] + name);
- if (ret) {
- break;
- }
- }
- return ret;
- }
- function fixBrowserByTimeout(node) {
- if (isCssAnimationSupported) {
- var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0;
- var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0;
- var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0;
- var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0;
- var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay);
- // sometimes, browser bug
- node.rcEndAnimTimeout = setTimeout(function () {
- node.rcEndAnimTimeout = null;
- if (node.rcEndListener) {
- node.rcEndListener();
- }
- }, time * 1000 + 200);
- }
- }
- function clearBrowserBugTimeout(node) {
- if (node.rcEndAnimTimeout) {
- clearTimeout(node.rcEndAnimTimeout);
- node.rcEndAnimTimeout = null;
- }
- }
- var cssAnimation = function cssAnimation(node, transitionName, endCallback) {
- var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(transitionName)) === 'object';
- var className = nameIsObj ? transitionName.name : transitionName;
- var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active';
- var end = endCallback;
- var start = void 0;
- var active = void 0;
- var nodeClasses = component_classes__WEBPACK_IMPORTED_MODULE_2___default()(node);
- if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') {
- end = endCallback.end;
- start = endCallback.start;
- active = endCallback.active;
- }
- if (node.rcEndListener) {
- node.rcEndListener();
- }
- node.rcEndListener = function (e) {
- if (e && e.target !== node) {
- return;
- }
- if (node.rcAnimTimeout) {
- Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["cancelAnimationTimeout"])(node.rcAnimTimeout);
- node.rcAnimTimeout = null;
- }
- clearBrowserBugTimeout(node);
- nodeClasses.remove(className);
- nodeClasses.remove(activeClassName);
- _Event__WEBPACK_IMPORTED_MODULE_1__["default"].removeEndEventListener(node, node.rcEndListener);
- node.rcEndListener = null;
- // Usually this optional end is used for informing an owner of
- // a leave animation and telling it to remove the child.
- if (end) {
- end();
- }
- };
- _Event__WEBPACK_IMPORTED_MODULE_1__["default"].addEndEventListener(node, node.rcEndListener);
- if (start) {
- start();
- }
- nodeClasses.add(className);
- node.rcAnimTimeout = Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["requestAnimationTimeout"])(function () {
- node.rcAnimTimeout = null;
- nodeClasses.add(className);
- nodeClasses.add(activeClassName);
- if (active) {
- Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["requestAnimationTimeout"])(active, 0);
- }
- fixBrowserByTimeout(node);
- // 30ms for firefox
- }, 30);
- return {
- stop: function stop() {
- if (node.rcEndListener) {
- node.rcEndListener();
- }
- }
- };
- };
- cssAnimation.style = function (node, style, callback) {
- if (node.rcEndListener) {
- node.rcEndListener();
- }
- node.rcEndListener = function (e) {
- if (e && e.target !== node) {
- return;
- }
- if (node.rcAnimTimeout) {
- Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["cancelAnimationTimeout"])(node.rcAnimTimeout);
- node.rcAnimTimeout = null;
- }
- clearBrowserBugTimeout(node);
- _Event__WEBPACK_IMPORTED_MODULE_1__["default"].removeEndEventListener(node, node.rcEndListener);
- node.rcEndListener = null;
- // Usually this optional callback is used for informing an owner of
- // a leave animation and telling it to remove the child.
- if (callback) {
- callback();
- }
- };
- _Event__WEBPACK_IMPORTED_MODULE_1__["default"].addEndEventListener(node, node.rcEndListener);
- node.rcAnimTimeout = Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["requestAnimationTimeout"])(function () {
- for (var s in style) {
- if (style.hasOwnProperty(s)) {
- node.style[s] = style[s];
- }
- }
- node.rcAnimTimeout = null;
- fixBrowserByTimeout(node);
- }, 0);
- };
- cssAnimation.setTransition = function (node, p, value) {
- var property = p;
- var v = value;
- if (value === undefined) {
- v = property;
- property = '';
- }
- property = property || '';
- capitalPrefixes.forEach(function (prefix) {
- node.style[prefix + 'Transition' + property] = v;
- });
- };
- cssAnimation.isCssAnimationSupported = isCssAnimationSupported;
- /* harmony default export */ __webpack_exports__["default"] = (cssAnimation);
- /***/ }),
- /***/ "./components/_util/easings.js":
- /*!*************************************!*\
- !*** ./components/_util/easings.js ***!
- \*************************************/
- /*! exports provided: easeInOutCubic */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeInOutCubic", function() { return easeInOutCubic; });
- function easeInOutCubic(t, b, c, d) {
- var cc = c - b;
- t /= d / 2;
- if (t < 1) {
- return cc / 2 * t * t * t + b;
- }
- return cc / 2 * ((t -= 2) * t * t + 2) + b;
- }
- /***/ }),
- /***/ "./components/_util/env.js":
- /*!*********************************!*\
- !*** ./components/_util/env.js ***!
- \*********************************/
- /*! exports provided: inBrowser, inWeex, weexPlatform, UA, isIE, isIE9, isEdge, isAndroid, isIOS, isChrome, isPhantomJS, isFF */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inBrowser", function() { return inBrowser; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inWeex", function() { return inWeex; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "weexPlatform", function() { return weexPlatform; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UA", function() { return UA; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIE", function() { return isIE; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIE9", function() { return isIE9; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEdge", function() { return isEdge; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAndroid", function() { return isAndroid; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIOS", function() { return isIOS; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isChrome", function() { return isChrome; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPhantomJS", function() { return isPhantomJS; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFF", function() { return isFF; });
- /* eslint-disable no-undef */
- // Browser environment sniffing
- var inBrowser = typeof window !== 'undefined';
- var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
- var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
- var UA = inBrowser && window.navigator.userAgent.toLowerCase();
- var isIE = UA && /msie|trident/.test(UA);
- var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
- var isEdge = UA && UA.indexOf('edge/') > 0;
- var isAndroid = UA && UA.indexOf('android') > 0 || weexPlatform === 'android';
- var isIOS = UA && /iphone|ipad|ipod|ios/.test(UA) || weexPlatform === 'ios';
- var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
- var isPhantomJS = UA && /phantomjs/.test(UA);
- var isFF = UA && UA.match(/firefox\/(\d+)/);
- /***/ }),
- /***/ "./components/_util/getRequestAnimationFrame.js":
- /*!******************************************************!*\
- !*** ./components/_util/getRequestAnimationFrame.js ***!
- \******************************************************/
- /*! exports provided: default, cancelRequestAnimationFrame */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getRequestAnimationFrame; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cancelRequestAnimationFrame", function() { return cancelRequestAnimationFrame; });
- var availablePrefixs = ['moz', 'ms', 'webkit'];
- function requestAnimationFramePolyfill() {
- var lastTime = 0;
- return function (callback) {
- var currTime = new Date().getTime();
- var timeToCall = Math.max(0, 16 - (currTime - lastTime));
- var id = window.setTimeout(function () {
- callback(currTime + timeToCall);
- }, timeToCall);
- lastTime = currTime + timeToCall;
- return id;
- };
- }
- function getRequestAnimationFrame() {
- if (typeof window === 'undefined') {
- return function () {};
- }
- if (window.requestAnimationFrame) {
- // https://github.com/vuejs/vue/issues/4465
- return window.requestAnimationFrame.bind(window);
- }
- var prefix = availablePrefixs.filter(function (key) {
- return key + 'RequestAnimationFrame' in window;
- })[0];
- return prefix ? window[prefix + 'RequestAnimationFrame'] : requestAnimationFramePolyfill();
- }
- function cancelRequestAnimationFrame(id) {
- if (typeof window === 'undefined') {
- return null;
- }
- if (window.cancelAnimationFrame) {
- return window.cancelAnimationFrame(id);
- }
- var prefix = availablePrefixs.filter(function (key) {
- return key + 'CancelAnimationFrame' in window || key + 'CancelRequestAnimationFrame' in window;
- })[0];
- return prefix ? (window[prefix + 'CancelAnimationFrame'] || window[prefix + 'CancelRequestAnimationFrame']).call(this, id) : clearTimeout(id);
- }
- /***/ }),
- /***/ "./components/_util/getScroll.js":
- /*!***************************************!*\
- !*** ./components/_util/getScroll.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getScroll; });
- function getScroll(target, top) {
- if (typeof window === 'undefined') {
- return 0;
- }
- var prop = top ? 'pageYOffset' : 'pageXOffset';
- var method = top ? 'scrollTop' : 'scrollLeft';
- var isWindow = target === window;
- var ret = isWindow ? target[prop] : target[method];
- // ie6,7,8 standard mode
- if (isWindow && typeof ret !== 'number') {
- ret = window.document.documentElement[method];
- }
- return ret;
- }
- /***/ }),
- /***/ "./components/_util/getScrollBarSize.js":
- /*!**********************************************!*\
- !*** ./components/_util/getScrollBarSize.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getScrollBarSize; });
- var cached = void 0;
- function getScrollBarSize(fresh) {
- if (fresh || cached === undefined) {
- var inner = document.createElement('div');
- inner.style.width = '100%';
- inner.style.height = '200px';
- var outer = document.createElement('div');
- var outerStyle = outer.style;
- outerStyle.position = 'absolute';
- outerStyle.top = 0;
- outerStyle.left = 0;
- outerStyle.pointerEvents = 'none';
- outerStyle.visibility = 'hidden';
- outerStyle.width = '200px';
- outerStyle.height = '150px';
- outerStyle.overflow = 'hidden';
- outer.appendChild(inner);
- document.body.appendChild(outer);
- var widthContained = inner.offsetWidth;
- outer.style.overflow = 'scroll';
- var widthScroll = inner.offsetWidth;
- if (widthContained === widthScroll) {
- widthScroll = outer.clientWidth;
- }
- document.body.removeChild(outer);
- cached = widthContained - widthScroll;
- }
- return cached;
- }
- /***/ }),
- /***/ "./components/_util/getTransitionProps.js":
- /*!************************************************!*\
- !*** ./components/_util/getTransitionProps.js ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _css_animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./css-animation */ "./components/_util/css-animation/index.js");
- var noop = function noop() {};
- var getTransitionProps = function getTransitionProps(transitionName) {
- var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var beforeEnter = opt.beforeEnter,
- enter = opt.enter,
- afterEnter = opt.afterEnter,
- leave = opt.leave,
- afterLeave = opt.afterLeave,
- _opt$appear = opt.appear,
- appear = _opt$appear === undefined ? true : _opt$appear,
- tag = opt.tag,
- nativeOn = opt.nativeOn;
- var transitionProps = {
- props: {
- appear: appear,
- css: false
- },
- on: {
- beforeEnter: beforeEnter || noop,
- enter: enter || function (el, done) {
- Object(_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(el, transitionName + '-enter', done);
- },
- afterEnter: afterEnter || noop,
- leave: leave || function (el, done) {
- Object(_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(el, transitionName + '-leave', done);
- },
- afterLeave: afterLeave || noop
- },
- nativeOn: nativeOn
- };
- // transition-group
- if (tag) {
- transitionProps.tag = tag;
- }
- return transitionProps;
- };
- /* harmony default export */ __webpack_exports__["default"] = (getTransitionProps);
- /***/ }),
- /***/ "./components/_util/interopDefault.js":
- /*!********************************************!*\
- !*** ./components/_util/interopDefault.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return interopDefault; });
- // https://github.com/moment/moment/issues/3650
- function interopDefault(m) {
- return m["default"] || m;
- }
- /***/ }),
- /***/ "./components/_util/isFlexSupported.js":
- /*!*********************************************!*\
- !*** ./components/_util/isFlexSupported.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isFlexSupported; });
- function isFlexSupported() {
- if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
- var documentElement = window.document.documentElement;
- return 'flex' in documentElement.style || 'webkitFlex' in documentElement.style || 'Flex' in documentElement.style || 'msFlex' in documentElement.style;
- }
- return false;
- }
- /***/ }),
- /***/ "./components/_util/isNumeric.js":
- /*!***************************************!*\
- !*** ./components/_util/isNumeric.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var isNumeric = function isNumeric(value) {
- return !isNaN(parseFloat(value)) && isFinite(value);
- };
- /* harmony default export */ __webpack_exports__["default"] = (isNumeric);
- /***/ }),
- /***/ "./components/_util/isValid.js":
- /*!*************************************!*\
- !*** ./components/_util/isValid.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var isValid = function isValid(value) {
- return value !== undefined && value !== null && value !== '';
- };
- /* harmony default export */ __webpack_exports__["default"] = (isValid);
- /***/ }),
- /***/ "./components/_util/moment-util.js":
- /*!*****************************************!*\
- !*** ./components/_util/moment-util.js ***!
- \*****************************************/
- /*! exports provided: TimeType, TimesType, TimeOrTimesType, checkValidate, stringToMoment, momentToString */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeType", function() { return TimeType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimesType", function() { return TimesType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeOrTimesType", function() { return TimeOrTimesType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkValidate", function() { return checkValidate; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stringToMoment", function() { return stringToMoment; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "momentToString", function() { return momentToString; });
- /* harmony import */ var _interopDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interopDefault */ "./components/_util/interopDefault.js");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./warning */ "./components/_util/warning.js");
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js");
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
- var TimeType = {
- validator: function validator(value) {
- return typeof value === 'string' || lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(value) || moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](value);
- }
- };
- var TimesType = {
- validator: function validator(value) {
- if (Array.isArray(value)) {
- return value.length === 0 || value.findIndex(function (val) {
- return typeof val !== 'string';
- }) === -1 || value.findIndex(function (val) {
- return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(val) && !moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](val);
- }) === -1;
- }
- return false;
- }
- };
- var TimeOrTimesType = {
- validator: function validator(value) {
- if (Array.isArray(value)) {
- return value.length === 0 || value.findIndex(function (val) {
- return typeof val !== 'string';
- }) === -1 || value.findIndex(function (val) {
- return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(val) && !moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](val);
- }) === -1;
- } else {
- return typeof value === 'string' || lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(value) || moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](value);
- }
- }
- };
- function checkValidate(componentName, value, propName, valueFormat) {
- var values = Array.isArray(value) ? value : [value];
- values.forEach(function (val) {
- if (!val) return;
- valueFormat && Object(_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(val, valueFormat).isValid(), componentName, 'When set `valueFormat`, `' + propName + '` should provides invalidate string time. ');
- !valueFormat && Object(_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(val) && val.isValid(), componentName, '`' + propName + '` provides invalidate moment time. If you want to set empty value, use `null` instead.');
- });
- }
- var stringToMoment = function stringToMoment(value, valueFormat) {
- if (Array.isArray(value)) {
- return value.map(function (val) {
- return typeof val === 'string' && val ? Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(val, valueFormat) : val || null;
- });
- } else {
- return typeof value === 'string' && value ? Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(value, valueFormat) : value || null;
- }
- };
- var momentToString = function momentToString(value, valueFormat) {
- if (Array.isArray(value)) {
- return value.map(function (val) {
- return Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(val) ? val.format(valueFormat) : val;
- });
- } else {
- return Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(value) ? value.format(valueFormat) : value;
- }
- };
- /***/ }),
- /***/ "./components/_util/openAnimation.js":
- /*!*******************************************!*\
- !*** ./components/_util/openAnimation.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _css_animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./css-animation */ "./components/_util/css-animation/index.js");
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
- function animate(node, show, done) {
- var height = void 0;
- var requestAnimationFrameId = void 0;
- var appearRequestAnimationFrameId = void 0;
- return Object(_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(node, 'ant-motion-collapse-legacy', {
- start: function start() {
- if (appearRequestAnimationFrameId) {
- raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(appearRequestAnimationFrameId);
- }
- if (!show) {
- node.style.height = node.offsetHeight + 'px';
- node.style.opacity = '1';
- } else {
- height = node.offsetHeight;
- // not get offsetHeight when appear
- // set it into raf get correct offsetHeight
- if (height === 0) {
- appearRequestAnimationFrameId = raf__WEBPACK_IMPORTED_MODULE_1___default()(function () {
- height = node.offsetHeight;
- node.style.height = '0px';
- node.style.opacity = '0';
- });
- } else {
- node.style.height = '0px';
- node.style.opacity = '0';
- }
- }
- },
- active: function active() {
- if (requestAnimationFrameId) {
- raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(requestAnimationFrameId);
- }
- requestAnimationFrameId = raf__WEBPACK_IMPORTED_MODULE_1___default()(function () {
- node.style.height = (show ? height : 0) + 'px';
- node.style.opacity = show ? '1' : '0';
- });
- },
- end: function end() {
- if (appearRequestAnimationFrameId) {
- raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(appearRequestAnimationFrameId);
- }
- if (requestAnimationFrameId) {
- raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(requestAnimationFrameId);
- }
- node.style.height = '';
- node.style.opacity = '';
- done && done();
- }
- });
- }
- var animation = {
- enter: function enter(node, done) {
- vue__WEBPACK_IMPORTED_MODULE_2___default.a.nextTick(function () {
- animate(node, true, done);
- });
- },
- leave: function leave(node, done) {
- return animate(node, false, done);
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (animation);
- /***/ }),
- /***/ "./components/_util/portalDirective.js":
- /*!*********************************************!*\
- !*** ./components/_util/portalDirective.js ***!
- \*********************************************/
- /*! exports provided: antPortal, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "antPortal", function() { return antPortal; });
- function antPortal(Vue) {
- return Vue.directive('ant-portal', {
- inserted: function inserted(el, binding) {
- var value = binding.value;
- var parentNode = typeof value === 'function' ? value(el) : value;
- if (parentNode !== el.parentNode) {
- parentNode.appendChild(el);
- }
- },
- componentUpdated: function componentUpdated(el, binding) {
- var value = binding.value;
- var parentNode = typeof value === 'function' ? value(el) : value;
- if (parentNode !== el.parentNode) {
- parentNode.appendChild(el);
- }
- }
- });
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- install: function install(Vue) {
- antPortal(Vue);
- }
- });
- /***/ }),
- /***/ "./components/_util/props-util.js":
- /*!****************************************!*\
- !*** ./components/_util/props-util.js ***!
- \****************************************/
- /*! exports provided: getEvents, getDataEvents, getListeners, getClass, getStyle, getComponentName, isEmptyElement, isStringElement, filterEmpty, mergeProps, hasProp, filterProps, getOptionProps, getComponentFromProp, getSlotOptions, slotHasProp, getPropsData, getKey, getAttrs, getValueByProp, parseStyleText, initDefaultProps, isValidElement, camelize, getSlots, getSlot, getAllProps, getAllChildren, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEvents", function() { return getEvents; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataEvents", function() { return getDataEvents; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getListeners", function() { return getListeners; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClass", function() { return getClass; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyle", function() { return getStyle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getComponentName", function() { return getComponentName; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmptyElement", function() { return isEmptyElement; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isStringElement", function() { return isStringElement; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterEmpty", function() { return filterEmpty; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeProps", function() { return mergeProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasProp", function() { return hasProp; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterProps", function() { return filterProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOptionProps", function() { return getOptionProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getComponentFromProp", function() { return getComponentFromProp; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlotOptions", function() { return getSlotOptions; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slotHasProp", function() { return slotHasProp; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPropsData", function() { return getPropsData; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKey", function() { return getKey; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAttrs", function() { return getAttrs; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueByProp", function() { return getValueByProp; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseStyleText", function() { return parseStyleText; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initDefaultProps", function() { return initDefaultProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidElement", function() { return isValidElement; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "camelize", function() { return camelize; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlots", function() { return getSlots; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlot", function() { return getSlot; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAllProps", function() { return getAllProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAllChildren", function() { return getAllChildren; });
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- function getType(fn) {
- var match = fn && fn.toString().match(/^\s*function (\w+)/);
- return match ? match[1] : '';
- }
- var camelizeRE = /-(\w)/g;
- var camelize = function camelize(str) {
- return str.replace(camelizeRE, function (_, c) {
- return c ? c.toUpperCase() : '';
- });
- };
- var parseStyleText = function parseStyleText() {
- var cssText = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
- var camel = arguments[1];
- var res = {};
- var listDelimiter = /;(?![^(]*\))/g;
- var propertyDelimiter = /:(.+)/;
- cssText.split(listDelimiter).forEach(function (item) {
- if (item) {
- var tmp = item.split(propertyDelimiter);
- if (tmp.length > 1) {
- var k = camel ? camelize(tmp[0].trim()) : tmp[0].trim();
- res[k] = tmp[1].trim();
- }
- }
- });
- return res;
- };
- var hasProp = function hasProp(instance, prop) {
- var $options = instance.$options || {};
- var propsData = $options.propsData || {};
- return prop in propsData;
- };
- var slotHasProp = function slotHasProp(slot, prop) {
- var $options = slot.componentOptions || {};
- var propsData = $options.propsData || {};
- return prop in propsData;
- };
- var filterProps = function filterProps(props) {
- var propsData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var res = {};
- Object.keys(props).forEach(function (k) {
- if (k in propsData || props[k] !== undefined) {
- res[k] = props[k];
- }
- });
- return res;
- };
- var getScopedSlots = function getScopedSlots(ele) {
- return ele.data && ele.data.scopedSlots || {};
- };
- var getSlots = function getSlots(ele) {
- var componentOptions = ele.componentOptions || {};
- if (ele.$vnode) {
- componentOptions = ele.$vnode.componentOptions || {};
- }
- var children = ele.children || componentOptions.children || [];
- var slots = {};
- children.forEach(function (child) {
- if (!isEmptyElement(child)) {
- var name = child.data && child.data.slot || 'default';
- slots[name] = slots[name] || [];
- slots[name].push(child);
- }
- });
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, slots, getScopedSlots(ele));
- };
- var getSlot = function getSlot(self) {
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- return self.$scopedSlots && self.$scopedSlots[name] && self.$scopedSlots[name](options) || self.$slots[name] || [];
- };
- var getAllChildren = function getAllChildren(ele) {
- var componentOptions = ele.componentOptions || {};
- if (ele.$vnode) {
- componentOptions = ele.$vnode.componentOptions || {};
- }
- return ele.children || componentOptions.children || [];
- };
- var getSlotOptions = function getSlotOptions(ele) {
- if (ele.fnOptions) {
- // 函数式组件
- return ele.fnOptions;
- }
- var componentOptions = ele.componentOptions;
- if (ele.$vnode) {
- componentOptions = ele.$vnode.componentOptions;
- }
- return componentOptions ? componentOptions.Ctor.options || {} : {};
- };
- var getOptionProps = function getOptionProps(instance) {
- if (instance.componentOptions) {
- var componentOptions = instance.componentOptions;
- var _componentOptions$pro = componentOptions.propsData,
- propsData = _componentOptions$pro === undefined ? {} : _componentOptions$pro,
- _componentOptions$Cto = componentOptions.Ctor,
- Ctor = _componentOptions$Cto === undefined ? {} : _componentOptions$Cto;
- var props = (Ctor.options || {}).props || {};
- var res = {};
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
- try {
- for (var _iterator = Object.entries(props)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var _ref = _step.value;
- var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref, 2);
- var k = _ref2[0];
- var v = _ref2[1];
- var def = v['default'];
- if (def !== undefined) {
- res[k] = typeof def === 'function' && getType(v.type) !== 'Function' ? def.call(instance) : def;
- }
- }
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator['return']) {
- _iterator['return']();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, res, propsData);
- }
- var _instance$$options = instance.$options,
- $options = _instance$$options === undefined ? {} : _instance$$options,
- _instance$$props = instance.$props,
- $props = _instance$$props === undefined ? {} : _instance$$props;
- return filterProps($props, $options.propsData);
- };
- var getComponentFromProp = function getComponentFromProp(instance, prop) {
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : instance;
- var execute = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
- if (instance.$createElement) {
- var h = instance.$createElement;
- var temp = instance[prop];
- if (temp !== undefined) {
- return typeof temp === 'function' && execute ? temp(h, options) : temp;
- }
- return instance.$scopedSlots[prop] && execute && instance.$scopedSlots[prop](options) || instance.$scopedSlots[prop] || instance.$slots[prop] || undefined;
- } else {
- var _h = instance.context.$createElement;
- var _temp = getPropsData(instance)[prop];
- if (_temp !== undefined) {
- return typeof _temp === 'function' && execute ? _temp(_h, options) : _temp;
- }
- var slotScope = getScopedSlots(instance)[prop];
- if (slotScope !== undefined) {
- return typeof slotScope === 'function' && execute ? slotScope(_h, options) : slotScope;
- }
- var slotsProp = [];
- var componentOptions = instance.componentOptions || {};
- (componentOptions.children || []).forEach(function (child) {
- if (child.data && child.data.slot === prop) {
- if (child.data.attrs) {
- delete child.data.attrs.slot;
- }
- if (child.tag === 'template') {
- slotsProp.push(child.children);
- } else {
- slotsProp.push(child);
- }
- }
- });
- return slotsProp.length ? slotsProp : undefined;
- }
- };
- var getAllProps = function getAllProps(ele) {
- var data = ele.data || {};
- var componentOptions = ele.componentOptions || {};
- if (ele.$vnode) {
- data = ele.$vnode.data || {};
- componentOptions = ele.$vnode.componentOptions || {};
- }
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, data.props, data.attrs, componentOptions.propsData);
- };
- var getPropsData = function getPropsData(ele) {
- var componentOptions = ele.componentOptions;
- if (ele.$vnode) {
- componentOptions = ele.$vnode.componentOptions;
- }
- return componentOptions ? componentOptions.propsData || {} : {};
- };
- var getValueByProp = function getValueByProp(ele, prop) {
- return getPropsData(ele)[prop];
- };
- var getAttrs = function getAttrs(ele) {
- var data = ele.data;
- if (ele.$vnode) {
- data = ele.$vnode.data;
- }
- return data ? data.attrs || {} : {};
- };
- var getKey = function getKey(ele) {
- var key = ele.key;
- if (ele.$vnode) {
- key = ele.$vnode.key;
- }
- return key;
- };
- function getEvents(child) {
- var events = {};
- if (child.componentOptions && child.componentOptions.listeners) {
- events = child.componentOptions.listeners;
- } else if (child.data && child.data.on) {
- events = child.data.on;
- }
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, events);
- }
- // 获取 xxx.native 或者 原生标签 事件
- function getDataEvents(child) {
- var events = {};
- if (child.data && child.data.on) {
- events = child.data.on;
- }
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, events);
- }
- // use getListeners instead this.$listeners
- // https://github.com/vueComponent/ant-design-vue/issues/1705
- function getListeners(context) {
- return (context.$vnode ? context.$vnode.componentOptions.listeners : context.$listeners) || {};
- }
- function getClass(ele) {
- var data = {};
- if (ele.data) {
- data = ele.data;
- } else if (ele.$vnode && ele.$vnode.data) {
- data = ele.$vnode.data;
- }
- var tempCls = data['class'] || {};
- var staticClass = data.staticClass;
- var cls = {};
- staticClass && staticClass.split(' ').forEach(function (c) {
- cls[c.trim()] = true;
- });
- if (typeof tempCls === 'string') {
- tempCls.split(' ').forEach(function (c) {
- cls[c.trim()] = true;
- });
- } else if (Array.isArray(tempCls)) {
- classnames__WEBPACK_IMPORTED_MODULE_4___default()(tempCls).split(' ').forEach(function (c) {
- cls[c.trim()] = true;
- });
- } else {
- cls = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, cls, tempCls);
- }
- return cls;
- }
- function getStyle(ele, camel) {
- var data = {};
- if (ele.data) {
- data = ele.data;
- } else if (ele.$vnode && ele.$vnode.data) {
- data = ele.$vnode.data;
- }
- var style = data.style || data.staticStyle;
- if (typeof style === 'string') {
- style = parseStyleText(style, camel);
- } else if (camel && style) {
- // 驼峰化
- var res = {};
- Object.keys(style).forEach(function (k) {
- return res[camelize(k)] = style[k];
- });
- return res;
- }
- return style;
- }
- function getComponentName(opts) {
- return opts && (opts.Ctor.options.name || opts.tag);
- }
- function isEmptyElement(c) {
- return !(c.tag || c.text && c.text.trim() !== '');
- }
- function isStringElement(c) {
- return !c.tag;
- }
- function filterEmpty() {
- var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- return children.filter(function (c) {
- return !isEmptyElement(c);
- });
- }
- var initDefaultProps = function initDefaultProps(propTypes, defaultProps) {
- Object.keys(defaultProps).forEach(function (k) {
- if (propTypes[k]) {
- propTypes[k].def && (propTypes[k] = propTypes[k].def(defaultProps[k]));
- } else {
- throw new Error('not have ' + k + ' prop');
- }
- });
- return propTypes;
- };
- function mergeProps() {
- var args = [].slice.call(arguments, 0);
- var props = {};
- args.forEach(function () {
- var p = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var _iteratorNormalCompletion2 = true;
- var _didIteratorError2 = false;
- var _iteratorError2 = undefined;
- try {
- for (var _iterator2 = Object.entries(p)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
- var _ref3 = _step2.value;
- var _ref4 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref3, 2);
- var k = _ref4[0];
- var v = _ref4[1];
- props[k] = props[k] || {};
- if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default()(v)) {
- babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()(props[k], v);
- } else {
- props[k] = v;
- }
- }
- } catch (err) {
- _didIteratorError2 = true;
- _iteratorError2 = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion2 && _iterator2['return']) {
- _iterator2['return']();
- }
- } finally {
- if (_didIteratorError2) {
- throw _iteratorError2;
- }
- }
- }
- });
- return props;
- }
- function isValidElement(element) {
- return element && (typeof element === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(element)) === 'object' && 'componentOptions' in element && 'context' in element && element.tag !== undefined; // remove text node
- }
- /* harmony default export */ __webpack_exports__["default"] = (hasProp);
- /***/ }),
- /***/ "./components/_util/proxyComponent.jsx":
- /*!*********************************************!*\
- !*** ./components/_util/proxyComponent.jsx ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return wrapWithConnect; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./props-util */ "./components/_util/props-util.js");
- function getDisplayName(WrappedComponent) {
- return WrappedComponent.name || 'Component';
- }
- function wrapWithConnect(WrappedComponent) {
- var tempProps = WrappedComponent.props || {};
- var methods = WrappedComponent.methods || {};
- var props = {};
- Object.keys(tempProps).forEach(function (k) {
- props[k] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tempProps[k], { required: false });
- });
- WrappedComponent.props.__propsSymbol__ = _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any;
- WrappedComponent.props.children = _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]);
- var ProxyWrappedComponent = {
- props: props,
- model: WrappedComponent.model,
- name: 'Proxy_' + getDisplayName(WrappedComponent),
- methods: {
- getProxyWrappedInstance: function getProxyWrappedInstance() {
- return this.$refs.wrappedInstance;
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$slots = this.$slots,
- $slots = _$slots === undefined ? {} : _$slots,
- $scopedSlots = this.$scopedSlots;
- var props = Object(_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this);
- var wrapProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- __propsSymbol__: Symbol(),
- componentWillReceiveProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props),
- children: $slots['default'] || props.children || []
- }),
- on: Object(_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
- };
- if (Object.keys($scopedSlots).length) {
- wrapProps.scopedSlots = $scopedSlots;
- }
- var slotsKey = Object.keys($slots);
- return h(
- WrappedComponent,
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([wrapProps, { ref: 'wrappedInstance' }]),
- [slotsKey.length ? slotsKey.map(function (name) {
- return h(
- 'template',
- { slot: name },
- [$slots[name]]
- );
- }) : null]
- );
- }
- };
- Object.keys(methods).map(function (m) {
- ProxyWrappedComponent.methods[m] = function () {
- var _getProxyWrappedInsta;
- return (_getProxyWrappedInsta = this.getProxyWrappedInstance())[m].apply(_getProxyWrappedInsta, arguments);
- };
- });
- return ProxyWrappedComponent;
- }
- /***/ }),
- /***/ "./components/_util/raf.js":
- /*!*********************************!*\
- !*** ./components/_util/raf.js ***!
- \*********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return wrapperRaf; });
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_0__);
- var id = 0;
- var ids = {};
- // Support call raf with delay specified frame
- function wrapperRaf(callback) {
- var delayFrames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
- var myId = id++;
- var restFrames = delayFrames;
- function internalCallback() {
- restFrames -= 1;
- if (restFrames <= 0) {
- callback();
- delete ids[myId];
- } else {
- ids[myId] = raf__WEBPACK_IMPORTED_MODULE_0___default()(internalCallback);
- }
- }
- ids[myId] = raf__WEBPACK_IMPORTED_MODULE_0___default()(internalCallback);
- return myId;
- }
- wrapperRaf.cancel = function (pid) {
- if (pid === undefined) return;
- raf__WEBPACK_IMPORTED_MODULE_0___default.a.cancel(ids[pid]);
- delete ids[pid];
- };
- wrapperRaf.ids = ids; // export this for test usage
- /***/ }),
- /***/ "./components/_util/requestAnimationTimeout.js":
- /*!*****************************************************!*\
- !*** ./components/_util/requestAnimationTimeout.js ***!
- \*****************************************************/
- /*! exports provided: cancelAnimationTimeout, requestAnimationTimeout */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cancelAnimationTimeout", function() { return cancelAnimationTimeout; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "requestAnimationTimeout", function() { return requestAnimationTimeout; });
- /* harmony import */ var _getRequestAnimationFrame__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getRequestAnimationFrame */ "./components/_util/getRequestAnimationFrame.js");
- var raf = Object(_getRequestAnimationFrame__WEBPACK_IMPORTED_MODULE_0__["default"])();
- var cancelAnimationTimeout = function cancelAnimationTimeout(frame) {
- return Object(_getRequestAnimationFrame__WEBPACK_IMPORTED_MODULE_0__["cancelRequestAnimationFrame"])(frame.id);
- };
- var requestAnimationTimeout = function requestAnimationTimeout(callback, delay) {
- var start = Date.now();
- function timeout() {
- if (Date.now() - start >= delay) {
- callback.call();
- } else {
- frame.id = raf(timeout);
- }
- }
- var frame = {
- id: raf(timeout)
- };
- return frame;
- };
- /***/ }),
- /***/ "./components/_util/responsiveObserve.js":
- /*!***********************************************!*\
- !*** ./components/_util/responsiveObserve.js ***!
- \***********************************************/
- /*! exports provided: responsiveArray, responsiveMap, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "responsiveArray", function() { return responsiveArray; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "responsiveMap", function() { return responsiveMap; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- // matchMedia polyfill for
- // https://github.com/WickyNilliams/enquire.js/issues/82
- var enquire = void 0;
- // TODO: Will be removed in antd 4.0 because we will no longer support ie9
- if (typeof window !== 'undefined') {
- var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {
- return {
- media: mediaQuery,
- matches: false,
- addListener: function addListener() {},
- removeListener: function removeListener() {}
- };
- };
- // ref: https://github.com/ant-design/ant-design/issues/18774
- if (!window.matchMedia) window.matchMedia = matchMediaPolyfill;
- // eslint-disable-next-line global-require
- enquire = __webpack_require__(/*! enquire.js */ "./node_modules/enquire.js/src/index.js");
- }
- var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
- var responsiveMap = {
- xs: '(max-width: 575px)',
- sm: '(min-width: 576px)',
- md: '(min-width: 768px)',
- lg: '(min-width: 992px)',
- xl: '(min-width: 1200px)',
- xxl: '(min-width: 1600px)'
- };
- var subscribers = [];
- var subUid = -1;
- var screens = {};
- var responsiveObserve = {
- dispatch: function dispatch(pointMap) {
- screens = pointMap;
- if (subscribers.length < 1) {
- return false;
- }
- subscribers.forEach(function (item) {
- item.func(screens);
- });
- return true;
- },
- subscribe: function subscribe(func) {
- if (subscribers.length === 0) {
- this.register();
- }
- var token = (++subUid).toString();
- subscribers.push({
- token: token,
- func: func
- });
- func(screens);
- return token;
- },
- unsubscribe: function unsubscribe(token) {
- subscribers = subscribers.filter(function (item) {
- return item.token !== token;
- });
- if (subscribers.length === 0) {
- this.unregister();
- }
- },
- unregister: function unregister() {
- Object.keys(responsiveMap).map(function (screen) {
- return enquire.unregister(responsiveMap[screen]);
- });
- },
- register: function register() {
- var _this = this;
- Object.keys(responsiveMap).map(function (screen) {
- return enquire.register(responsiveMap[screen], {
- match: function match() {
- var pointMap = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, screens, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, screen, true));
- _this.dispatch(pointMap);
- },
- unmatch: function unmatch() {
- var pointMap = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, screens, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, screen, false));
- _this.dispatch(pointMap);
- },
- // Keep a empty destroy to avoid triggering unmatch when unregister
- destroy: function destroy() {}
- });
- });
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (responsiveObserve);
- /***/ }),
- /***/ "./components/_util/scrollTo.js":
- /*!**************************************!*\
- !*** ./components/_util/scrollTo.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return scrollTo; });
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _getScroll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getScroll */ "./components/_util/getScroll.js");
- /* harmony import */ var _easings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./easings */ "./components/_util/easings.js");
- // interface ScrollToOptions {
- // /** Scroll container, default as window */
- // getContainer?: () => HTMLElement | Window;
- // /** Scroll end callback */
- // callback?: () => any;
- // /** Animation duration, default as 450 */
- // duration?: number;
- // }
- function scrollTo(y) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var _options$getContainer = options.getContainer,
- getContainer = _options$getContainer === undefined ? function () {
- return window;
- } : _options$getContainer,
- callback = options.callback,
- _options$duration = options.duration,
- duration = _options$duration === undefined ? 450 : _options$duration;
- var container = getContainer();
- var scrollTop = Object(_getScroll__WEBPACK_IMPORTED_MODULE_1__["default"])(container, true);
- var startTime = Date.now();
- var frameFunc = function frameFunc() {
- var timestamp = Date.now();
- var time = timestamp - startTime;
- var nextScrollTop = Object(_easings__WEBPACK_IMPORTED_MODULE_2__["easeInOutCubic"])(time > duration ? duration : time, scrollTop, y, duration);
- if (container === window) {
- window.scrollTo(window.pageXOffset, nextScrollTop);
- } else {
- container.scrollTop = nextScrollTop;
- }
- if (time < duration) {
- raf__WEBPACK_IMPORTED_MODULE_0___default()(frameFunc);
- } else if (typeof callback === 'function') {
- callback();
- }
- };
- raf__WEBPACK_IMPORTED_MODULE_0___default()(frameFunc);
- }
- /***/ }),
- /***/ "./components/_util/setStyle.js":
- /*!**************************************!*\
- !*** ./components/_util/setStyle.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /**
- * Easy to set element style, return previous style
- * IE browser compatible(IE browser doesn't merge overflow style, need to set it separately)
- * https://github.com/ant-design/ant-design/issues/19393
- *
- */
- function setStyle(style) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var _options$element = options.element,
- element = _options$element === undefined ? document.body : _options$element;
- var oldStyle = {};
- var styleKeys = Object.keys(style);
- // IE browser compatible
- styleKeys.forEach(function (key) {
- oldStyle[key] = element.style[key];
- });
- styleKeys.forEach(function (key) {
- element.style[key] = style[key];
- });
- return oldStyle;
- }
- /* harmony default export */ __webpack_exports__["default"] = (setStyle);
- /***/ }),
- /***/ "./components/_util/store/PropTypes.js":
- /*!*********************************************!*\
- !*** ./components/_util/store/PropTypes.js ***!
- \*********************************************/
- /*! exports provided: storeShape */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "storeShape", function() { return storeShape; });
- /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vue-types */ "./components/_util/vue-types/index.js");
- var storeShape = _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].shape({
- subscribe: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
- setState: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
- getState: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired
- });
- /***/ }),
- /***/ "./components/_util/store/Provider.jsx":
- /*!*********************************************!*\
- !*** ./components/_util/store/Provider.jsx ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PropTypes */ "./components/_util/store/PropTypes.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'StoreProvider',
- props: {
- store: _PropTypes__WEBPACK_IMPORTED_MODULE_0__["storeShape"].isRequired
- },
- provide: function provide() {
- return {
- storeContext: this.$props
- };
- },
- render: function render() {
- return this.$slots['default'][0];
- }
- });
- /***/ }),
- /***/ "./components/_util/store/connect.jsx":
- /*!********************************************!*\
- !*** ./components/_util/store/connect.jsx ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return connect; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _proxyComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../proxyComponent */ "./components/_util/proxyComponent.jsx");
- function getDisplayName(WrappedComponent) {
- return WrappedComponent.name || 'Component';
- }
- var defaultMapStateToProps = function defaultMapStateToProps() {
- return {};
- };
- function connect(mapStateToProps) {
- var shouldSubscribe = !!mapStateToProps;
- var finalMapStateToProps = mapStateToProps || defaultMapStateToProps;
- return function wrapWithConnect(WrappedComponent) {
- var tempProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(WrappedComponent.props || {}, ['store']);
- var props = {
- __propsSymbol__: _vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any
- };
- Object.keys(tempProps).forEach(function (k) {
- props[k] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tempProps[k], { required: false });
- });
- var Connect = {
- name: 'Connect_' + getDisplayName(WrappedComponent),
- props: props,
- inject: {
- storeContext: { 'default': function _default() {
- return {};
- } }
- },
- data: function data() {
- this.store = this.storeContext.store;
- this.preProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this), ['__propsSymbol__']);
- return {
- subscribed: finalMapStateToProps(this.store.getState(), this.$props)
- };
- },
- watch: {
- __propsSymbol__: function __propsSymbol__() {
- if (mapStateToProps && mapStateToProps.length === 2) {
- this.subscribed = finalMapStateToProps(this.store.getState(), this.$props);
- }
- }
- },
- mounted: function mounted() {
- this.trySubscribe();
- },
- beforeDestroy: function beforeDestroy() {
- this.tryUnsubscribe();
- },
- methods: {
- handleChange: function handleChange() {
- if (!this.unsubscribe) {
- return;
- }
- var props = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this), ['__propsSymbol__']);
- var nextSubscribed = finalMapStateToProps(this.store.getState(), props);
- if (!shallowequal__WEBPACK_IMPORTED_MODULE_2___default()(this.preProps, props) || !shallowequal__WEBPACK_IMPORTED_MODULE_2___default()(this.subscribed, nextSubscribed)) {
- this.subscribed = nextSubscribed;
- }
- },
- trySubscribe: function trySubscribe() {
- if (shouldSubscribe) {
- this.unsubscribe = this.store.subscribe(this.handleChange);
- this.handleChange();
- }
- },
- tryUnsubscribe: function tryUnsubscribe() {
- if (this.unsubscribe) {
- this.unsubscribe();
- this.unsubscribe = null;
- }
- },
- getWrappedInstance: function getWrappedInstance() {
- return this.$refs.wrappedInstance;
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$slots = this.$slots,
- $slots = _$slots === undefined ? {} : _$slots,
- $scopedSlots = this.$scopedSlots,
- subscribed = this.subscribed,
- store = this.store;
- var props = Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
- this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(props, ['__propsSymbol__']));
- var wrapProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, subscribed, {
- store: store
- }),
- on: Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
- scopedSlots: $scopedSlots
- };
- return h(
- WrappedComponent,
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([wrapProps, { ref: 'wrappedInstance' }]),
- [Object.keys($slots).map(function (name) {
- return h(
- 'template',
- { slot: name },
- [$slots[name]]
- );
- })]
- );
- }
- };
- return Object(_proxyComponent__WEBPACK_IMPORTED_MODULE_6__["default"])(Connect);
- };
- }
- /***/ }),
- /***/ "./components/_util/store/create.js":
- /*!******************************************!*\
- !*** ./components/_util/store/create.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return create; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- function create(initialState) {
- var state = initialState;
- var listeners = [];
- function setState(partial) {
- state = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, state, partial);
- for (var i = 0; i < listeners.length; i++) {
- listeners[i]();
- }
- }
- function getState() {
- return state;
- }
- function subscribe(listener) {
- listeners.push(listener);
- return function unsubscribe() {
- var index = listeners.indexOf(listener);
- listeners.splice(index, 1);
- };
- }
- return {
- setState: setState,
- getState: getState,
- subscribe: subscribe
- };
- }
- /***/ }),
- /***/ "./components/_util/store/index.js":
- /*!*****************************************!*\
- !*** ./components/_util/store/index.js ***!
- \*****************************************/
- /*! exports provided: Provider, connect, create */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Provider */ "./components/_util/store/Provider.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Provider", function() { return _Provider__WEBPACK_IMPORTED_MODULE_0__["default"]; });
- /* harmony import */ var _connect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./connect */ "./components/_util/store/connect.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "connect", function() { return _connect__WEBPACK_IMPORTED_MODULE_1__["default"]; });
- /* harmony import */ var _create__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create */ "./components/_util/store/create.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "create", function() { return _create__WEBPACK_IMPORTED_MODULE_2__["default"]; });
- /***/ }),
- /***/ "./components/_util/styleChecker.js":
- /*!******************************************!*\
- !*** ./components/_util/styleChecker.js ***!
- \******************************************/
- /*! exports provided: isFlexSupported, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFlexSupported", function() { return isFlexSupported; });
- var isStyleSupport = function isStyleSupport(styleName) {
- if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
- var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
- var documentElement = window.document.documentElement;
- return styleNameList.some(function (name) {
- return name in documentElement.style;
- });
- }
- return false;
- };
- var isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']);
- /* harmony default export */ __webpack_exports__["default"] = (isStyleSupport);
- /***/ }),
- /***/ "./components/_util/switchScrollingEffect.js":
- /*!***************************************************!*\
- !*** ./components/_util/switchScrollingEffect.js ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _getScrollBarSize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getScrollBarSize */ "./components/_util/getScrollBarSize.js");
- /* harmony default export */ __webpack_exports__["default"] = (function (close) {
- var bodyIsOverflowing = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
- if (!bodyIsOverflowing) {
- return;
- }
- if (close) {
- document.body.style.position = '';
- document.body.style.width = '';
- return;
- }
- var scrollBarSize = Object(_getScrollBarSize__WEBPACK_IMPORTED_MODULE_0__["default"])();
- if (scrollBarSize) {
- document.body.style.position = 'relative';
- document.body.style.width = 'calc(100% - ' + scrollBarSize + 'px)';
- }
- });
- /***/ }),
- /***/ "./components/_util/throttleByAnimationFrame.js":
- /*!******************************************************!*\
- !*** ./components/_util/throttleByAnimationFrame.js ***!
- \******************************************************/
- /*! exports provided: default, throttleByAnimationFrameDecorator */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return throttleByAnimationFrame; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throttleByAnimationFrameDecorator", function() { return throttleByAnimationFrameDecorator; });
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_1__);
- function throttleByAnimationFrame(fn) {
- var requestId = void 0;
- var later = function later(args) {
- return function () {
- requestId = null;
- fn.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(args));
- };
- };
- var throttled = function throttled() {
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- if (requestId == null) {
- requestId = raf__WEBPACK_IMPORTED_MODULE_1___default()(later(args));
- }
- };
- throttled.cancel = function () {
- return raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(requestId);
- };
- return throttled;
- }
- function throttleByAnimationFrameDecorator() {
- return function (target, key, descriptor) {
- var fn = descriptor.value;
- var definingProperty = false;
- return {
- configurable: true,
- get: function get() {
- if (definingProperty || this === target.prototype || this.hasOwnProperty(key)) {
- return fn;
- }
- var boundFn = throttleByAnimationFrame(fn.bind(this));
- definingProperty = true;
- Object.defineProperty(this, key, {
- value: boundFn,
- configurable: true,
- writable: true
- });
- definingProperty = false;
- return boundFn;
- }
- };
- };
- }
- /***/ }),
- /***/ "./components/_util/transButton.jsx":
- /*!******************************************!*\
- !*** ./components/_util/transButton.jsx ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
- /**
- * Wrap of sub component which need use as Button capacity (like Icon component).
- * This helps accessibility reader to tread as a interactive button to operation.
- */
- var inlineStyle = {
- border: 0,
- background: 'transparent',
- padding: 0,
- lineHeight: 'inherit',
- display: 'inline-block'
- };
- var TransButton = {
- props: {
- noStyle: _vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
- },
- methods: {
- onKeyDown: function onKeyDown(event) {
- var keyCode = event.keyCode;
- if (keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].ENTER) {
- event.preventDefault();
- }
- },
- onKeyUp: function onKeyUp(event) {
- var keyCode = event.keyCode;
- if (keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].ENTER) {
- this.$emit('click', event);
- }
- },
- setRef: function setRef(btn) {
- this.div = btn;
- },
- focus: function focus() {
- if (this.div) {
- this.div.focus();
- }
- },
- blur: function blur() {
- if (this.div) {
- this.div.blur();
- }
- }
- },
- render: function render() {
- var h = arguments[0];
- var noStyle = this.$props.noStyle;
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- role: 'button',
- tabIndex: 0
- }
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.setRef
- }],
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$listeners, {
- keydown: this.onKeyDown,
- keyup: this.onKeyUp
- })
- }, {
- style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, !noStyle ? inlineStyle : null)
- }]),
- [this.$slots['default']]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (TransButton);
- /***/ }),
- /***/ "./components/_util/triggerEvent.js":
- /*!******************************************!*\
- !*** ./components/_util/triggerEvent.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return triggerEvent; });
- function triggerEvent(el, type) {
- if ('createEvent' in document) {
- // modern browsers, IE9+
- var e = document.createEvent('HTMLEvents');
- e.initEvent(type, false, true);
- el.dispatchEvent(e);
- }
- }
- /***/ }),
- /***/ "./components/_util/type.js":
- /*!**********************************!*\
- !*** ./components/_util/type.js ***!
- \**********************************/
- /*! exports provided: tuple, tupleNum */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuple", function() { return tuple; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tupleNum", function() { return tupleNum; });
- // https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead
- var tuple = function tuple() {
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- return args;
- };
- var tupleNum = function tupleNum() {
- for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
- return args;
- };
- /***/ }),
- /***/ "./components/_util/vnode.js":
- /*!***********************************!*\
- !*** ./components/_util/vnode.js ***!
- \***********************************/
- /*! exports provided: cloneVNode, cloneVNodes, cloneElement */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneVNode", function() { return cloneVNode; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneVNodes", function() { return cloneVNodes; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneElement", function() { return cloneElement; });
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./props-util */ "./components/_util/props-util.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- function cloneVNode(vnode, deep) {
- var componentOptions = vnode.componentOptions;
- var data = vnode.data;
- var listeners = {};
- if (componentOptions && componentOptions.listeners) {
- listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, componentOptions.listeners);
- }
- var on = {};
- if (data && data.on) {
- on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.on);
- }
- var cloned = new vnode.constructor(vnode.tag, data ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data, { on: on }) : data, vnode.children, vnode.text, vnode.elm, vnode.context, componentOptions ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, componentOptions, { listeners: listeners }) : componentOptions, vnode.asyncFactory);
- cloned.ns = vnode.ns;
- cloned.isStatic = vnode.isStatic;
- cloned.key = vnode.key;
- cloned.isComment = vnode.isComment;
- cloned.fnContext = vnode.fnContext;
- cloned.fnOptions = vnode.fnOptions;
- cloned.fnScopeId = vnode.fnScopeId;
- cloned.isCloned = true;
- if (deep) {
- if (vnode.children) {
- cloned.children = cloneVNodes(vnode.children, true);
- }
- if (componentOptions && componentOptions.children) {
- componentOptions.children = cloneVNodes(componentOptions.children, true);
- }
- }
- return cloned;
- }
- function cloneVNodes(vnodes, deep) {
- var len = vnodes.length;
- var res = new Array(len);
- for (var i = 0; i < len; i++) {
- res[i] = cloneVNode(vnodes[i], deep);
- }
- return res;
- }
- function cloneElement(n) {
- var nodeProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var deep = arguments[2];
- var ele = n;
- if (Array.isArray(n)) {
- ele = Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["filterEmpty"])(n)[0];
- }
- if (!ele) {
- return null;
- }
- var node = cloneVNode(ele, deep);
- // // 函数式组件不支持clone https://github.com/vueComponent/ant-design-vue/pull/1947
- // warning(
- // !(node.fnOptions && node.fnOptions.functional),
- // `can not use cloneElement for functional component (${node.fnOptions && node.fnOptions.name})`,
- // );
- var _nodeProps$props = nodeProps.props,
- props = _nodeProps$props === undefined ? {} : _nodeProps$props,
- key = nodeProps.key,
- _nodeProps$on = nodeProps.on,
- on = _nodeProps$on === undefined ? {} : _nodeProps$on,
- _nodeProps$nativeOn = nodeProps.nativeOn,
- nativeOn = _nodeProps$nativeOn === undefined ? {} : _nodeProps$nativeOn,
- children = nodeProps.children,
- _nodeProps$directives = nodeProps.directives,
- directives = _nodeProps$directives === undefined ? [] : _nodeProps$directives;
- var data = node.data || {};
- var cls = {};
- var style = {};
- var _nodeProps$attrs = nodeProps.attrs,
- attrs = _nodeProps$attrs === undefined ? {} : _nodeProps$attrs,
- ref = nodeProps.ref,
- _nodeProps$domProps = nodeProps.domProps,
- domProps = _nodeProps$domProps === undefined ? {} : _nodeProps$domProps,
- _nodeProps$style = nodeProps.style,
- tempStyle = _nodeProps$style === undefined ? {} : _nodeProps$style,
- _nodeProps$class = nodeProps['class'],
- tempCls = _nodeProps$class === undefined ? {} : _nodeProps$class,
- _nodeProps$scopedSlot = nodeProps.scopedSlots,
- scopedSlots = _nodeProps$scopedSlot === undefined ? {} : _nodeProps$scopedSlot;
- if (typeof data.style === 'string') {
- style = Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["parseStyleText"])(data.style);
- } else {
- style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.style, style);
- }
- if (typeof tempStyle === 'string') {
- style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, style, Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["parseStyleText"])(style));
- } else {
- style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, style, tempStyle);
- }
- if (typeof data['class'] === 'string' && data['class'].trim() !== '') {
- data['class'].split(' ').forEach(function (c) {
- cls[c.trim()] = true;
- });
- } else if (Array.isArray(data['class'])) {
- classnames__WEBPACK_IMPORTED_MODULE_3___default()(data['class']).split(' ').forEach(function (c) {
- cls[c.trim()] = true;
- });
- } else {
- cls = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data['class'], cls);
- }
- if (typeof tempCls === 'string' && tempCls.trim() !== '') {
- tempCls.split(' ').forEach(function (c) {
- cls[c.trim()] = true;
- });
- } else {
- cls = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, cls, tempCls);
- }
- node.data = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data, {
- style: style,
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.attrs, attrs),
- 'class': cls,
- domProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.domProps, domProps),
- scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.scopedSlots, scopedSlots),
- directives: [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(data.directives || []), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(directives))
- });
- if (node.componentOptions) {
- node.componentOptions.propsData = node.componentOptions.propsData || {};
- node.componentOptions.listeners = node.componentOptions.listeners || {};
- node.componentOptions.propsData = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.componentOptions.propsData, props);
- node.componentOptions.listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.componentOptions.listeners, on);
- if (children) {
- node.componentOptions.children = children;
- }
- } else {
- if (children) {
- node.children = children;
- }
- node.data.on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.data.on || {}, on);
- }
- node.data.on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.data.on || {}, nativeOn);
- if (key !== undefined) {
- node.key = key;
- node.data.key = key;
- }
- if (typeof ref === 'string') {
- node.data.ref = ref;
- }
- return node;
- }
- /***/ }),
- /***/ "./components/_util/vue-types/index.js":
- /*!*********************************************!*\
- !*** ./components/_util/vue-types/index.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./components/_util/vue-types/utils.js");
- var VuePropTypes = {
- get any() {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('any', {
- type: null
- });
- },
- get func() {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('function', {
- type: Function
- }).def(currentDefaults.func);
- },
- get bool() {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('boolean', {
- type: Boolean
- }).def(currentDefaults.bool);
- },
- get string() {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('string', {
- type: String
- }).def(currentDefaults.string);
- },
- get number() {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('number', {
- type: Number
- }).def(currentDefaults.number);
- },
- get array() {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('array', {
- type: Array
- }).def(currentDefaults.array);
- },
- get object() {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('object', {
- type: Object
- }).def(currentDefaults.object);
- },
- get integer() {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('integer', {
- type: Number,
- validator: function validator(value) {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isInteger"])(value);
- }
- }).def(currentDefaults.integer);
- },
- get symbol() {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('symbol', {
- type: null,
- validator: function validator(value) {
- return (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) === 'symbol';
- }
- });
- },
- custom: function custom(validatorFn) {
- var warnMsg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'custom validation failed';
- if (typeof validatorFn !== 'function') {
- throw new TypeError('[VueTypes error]: You must provide a function as argument');
- }
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])(validatorFn.name || '<<anonymous function>>', {
- validator: function validator() {
- var valid = validatorFn.apply(undefined, arguments);
- if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])(this._vueTypes_name + ' - ' + warnMsg);
- return valid;
- }
- });
- },
- oneOf: function oneOf(arr) {
- if (!Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(arr)) {
- throw new TypeError('[VueTypes error]: You must provide an array as argument');
- }
- var msg = 'oneOf - value should be one of "' + arr.join('", "') + '"';
- var allowedTypes = arr.reduce(function (ret, v) {
- if (v !== null && v !== undefined) {
- ret.indexOf(v.constructor) === -1 && ret.push(v.constructor);
- }
- return ret;
- }, []);
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('oneOf', {
- type: allowedTypes.length > 0 ? allowedTypes : null,
- validator: function validator(value) {
- var valid = arr.indexOf(value) !== -1;
- if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])(msg);
- return valid;
- }
- });
- },
- instanceOf: function instanceOf(instanceConstructor) {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('instanceOf', {
- type: instanceConstructor
- });
- },
- oneOfType: function oneOfType(arr) {
- if (!Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(arr)) {
- throw new TypeError('[VueTypes error]: You must provide an array as argument');
- }
- var hasCustomValidators = false;
- var nativeChecks = arr.reduce(function (ret, type) {
- if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(type)) {
- if (type._vueTypes_name === 'oneOf') {
- return ret.concat(type.type || []);
- }
- if (type.type && !Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(type.validator)) {
- if (Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(type.type)) return ret.concat(type.type);
- ret.push(type.type);
- } else if (Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(type.validator)) {
- hasCustomValidators = true;
- }
- return ret;
- }
- ret.push(type);
- return ret;
- }, []);
- if (!hasCustomValidators) {
- // we got just native objects (ie: Array, Object)
- // delegate to Vue native prop check
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('oneOfType', {
- type: nativeChecks
- }).def(undefined);
- }
- var typesStr = arr.map(function (type) {
- if (type && Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(type.type)) {
- return type.type.map(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"]);
- }
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"])(type);
- }).reduce(function (ret, type) {
- return ret.concat(Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(type) ? type : [type]);
- }, []).join('", "');
- return this.custom(function oneOfType(value) {
- var valid = arr.some(function (type) {
- if (type._vueTypes_name === 'oneOf') {
- return type.type ? Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type.type, value, true) : true;
- }
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, value, true);
- });
- if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('oneOfType - value type should be one of "' + typesStr + '"');
- return valid;
- }).def(undefined);
- },
- arrayOf: function arrayOf(type) {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('arrayOf', {
- type: Array,
- validator: function validator(values) {
- var valid = values.every(function (value) {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, value);
- });
- if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('arrayOf - value must be an array of "' + Object(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"])(type) + '"');
- return valid;
- }
- });
- },
- objectOf: function objectOf(type) {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('objectOf', {
- type: Object,
- validator: function validator(obj) {
- var valid = Object.keys(obj).every(function (key) {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, obj[key]);
- });
- if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('objectOf - value must be an object of "' + Object(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"])(type) + '"');
- return valid;
- }
- });
- },
- shape: function shape(obj) {
- var keys = Object.keys(obj);
- var requiredKeys = keys.filter(function (key) {
- return obj[key] && obj[key].required === true;
- });
- var type = Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('shape', {
- type: Object,
- validator: function validator(value) {
- var _this = this;
- if (!lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(value)) {
- return false;
- }
- var valueKeys = Object.keys(value);
- // check for required keys (if any)
- if (requiredKeys.length > 0 && requiredKeys.some(function (req) {
- return valueKeys.indexOf(req) === -1;
- })) {
- Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('shape - at least one of required properties "' + requiredKeys.join('", "') + '" is not present');
- return false;
- }
- return valueKeys.every(function (key) {
- if (keys.indexOf(key) === -1) {
- if (_this._vueTypes_isLoose === true) return true;
- Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('shape - object is missing "' + key + '" property');
- return false;
- }
- var type = obj[key];
- return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, value[key]);
- });
- }
- });
- Object.defineProperty(type, '_vueTypes_isLoose', {
- enumerable: false,
- writable: true,
- value: false
- });
- Object.defineProperty(type, 'loose', {
- get: function get() {
- this._vueTypes_isLoose = true;
- return this;
- },
- enumerable: false
- });
- return type;
- }
- };
- var typeDefaults = function typeDefaults() {
- return {
- func: undefined,
- bool: undefined,
- string: undefined,
- number: undefined,
- array: undefined,
- object: undefined,
- integer: undefined
- };
- };
- var currentDefaults = typeDefaults();
- Object.defineProperty(VuePropTypes, 'sensibleDefaults', {
- enumerable: false,
- set: function set(value) {
- if (value === false) {
- currentDefaults = {};
- } else if (value === true) {
- currentDefaults = typeDefaults();
- } else if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(value)) {
- currentDefaults = value;
- }
- },
- get: function get() {
- return currentDefaults;
- }
- });
- /* harmony default export */ __webpack_exports__["default"] = (VuePropTypes);
- /***/ }),
- /***/ "./components/_util/vue-types/utils.js":
- /*!*********************************************!*\
- !*** ./components/_util/vue-types/utils.js ***!
- \*********************************************/
- /*! exports provided: hasOwn, getType, getNativeType, noop, has, isInteger, isArray, isFunction, withDefault, withRequired, toType, validateType, warn */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasOwn", function() { return hasOwn; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getType", function() { return getType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNativeType", function() { return getNativeType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "has", function() { return has; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInteger", function() { return isInteger; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArray", function() { return isArray; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFunction", function() { return isFunction; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withDefault", function() { return withDefault; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withRequired", function() { return withRequired; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toType", function() { return toType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateType", function() { return validateType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warn", function() { return warn; });
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
- var ObjProto = Object.prototype;
- var toString = ObjProto.toString;
- var hasOwn = ObjProto.hasOwnProperty;
- var FN_MATCH_REGEXP = /^\s*function (\w+)/;
- // https://github.com/vuejs/vue/blob/dev/src/core/util/props.js#L159
- var getType = function getType(fn) {
- var type = fn !== null && fn !== undefined ? fn.type ? fn.type : fn : null;
- var match = type && type.toString().match(FN_MATCH_REGEXP);
- return match && match[1];
- };
- var getNativeType = function getNativeType(value) {
- if (value === null || value === undefined) return null;
- var match = value.constructor.toString().match(FN_MATCH_REGEXP);
- return match && match[1];
- };
- /**
- * No-op function
- */
- var noop = function noop() {};
- /**
- * Checks for a own property in an object
- *
- * @param {object} obj - Object
- * @param {string} prop - Property to check
- */
- var has = function has(obj, prop) {
- return hasOwn.call(obj, prop);
- };
- /**
- * Determines whether the passed value is an integer. Uses `Number.isInteger` if available
- *
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger
- * @param {*} value - The value to be tested for being an integer.
- * @returns {boolean}
- */
- var isInteger = Number.isInteger || function (value) {
- return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
- };
- /**
- * Determines whether the passed value is an Array.
- *
- * @param {*} value - The value to be tested for being an array.
- * @returns {boolean}
- */
- var isArray = Array.isArray || function (value) {
- return toString.call(value) === '[object Array]';
- };
- /**
- * Checks if a value is a function
- *
- * @param {any} value - Value to check
- * @returns {boolean}
- */
- var isFunction = function isFunction(value) {
- return toString.call(value) === '[object Function]';
- };
- /**
- * Adds a `def` method to the object returning a new object with passed in argument as `default` property
- *
- * @param {object} type - Object to enhance
- */
- var withDefault = function withDefault(type) {
- Object.defineProperty(type, 'def', {
- value: function value(def) {
- if (def === undefined && this['default'] === undefined) {
- this['default'] = undefined;
- return this;
- }
- if (!isFunction(def) && !validateType(this, def)) {
- warn(this._vueTypes_name + ' - invalid default value: "' + def + '"', def);
- return this;
- }
- this['default'] = isArray(def) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(def) ? function () {
- return def;
- } : def;
- return this;
- },
- enumerable: false,
- writable: false
- });
- };
- /**
- * Adds a `isRequired` getter returning a new object with `required: true` key-value
- *
- * @param {object} type - Object to enhance
- */
- var withRequired = function withRequired(type) {
- Object.defineProperty(type, 'isRequired', {
- get: function get() {
- this.required = true;
- return this;
- },
- enumerable: false
- });
- };
- /**
- * Adds `isRequired` and `def` modifiers to an object
- *
- * @param {string} name - Type internal name
- * @param {object} obj - Object to enhance
- * @returns {object}
- */
- var toType = function toType(name, obj) {
- Object.defineProperty(obj, '_vueTypes_name', {
- enumerable: false,
- writable: false,
- value: name
- });
- withRequired(obj);
- withDefault(obj);
- if (isFunction(obj.validator)) {
- obj.validator = obj.validator.bind(obj);
- }
- return obj;
- };
- /**
- * Validates a given value against a prop type object
- *
- * @param {Object|*} type - Type to use for validation. Either a type object or a constructor
- * @param {*} value - Value to check
- * @param {boolean} silent - Silence warnings
- * @returns {boolean}
- */
- var validateType = function validateType(type, value) {
- var silent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
- var typeToCheck = type;
- var valid = true;
- var expectedType = void 0;
- if (!lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(type)) {
- typeToCheck = { type: type };
- }
- var namePrefix = typeToCheck._vueTypes_name ? typeToCheck._vueTypes_name + ' - ' : '';
- if (hasOwn.call(typeToCheck, 'type') && typeToCheck.type !== null) {
- if (isArray(typeToCheck.type)) {
- valid = typeToCheck.type.some(function (type) {
- return validateType(type, value, true);
- });
- expectedType = typeToCheck.type.map(function (type) {
- return getType(type);
- }).join(' or ');
- } else {
- expectedType = getType(typeToCheck);
- if (expectedType === 'Array') {
- valid = isArray(value);
- } else if (expectedType === 'Object') {
- valid = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(value);
- } else if (expectedType === 'String' || expectedType === 'Number' || expectedType === 'Boolean' || expectedType === 'Function') {
- valid = getNativeType(value) === expectedType;
- } else {
- valid = value instanceof typeToCheck.type;
- }
- }
- }
- if (!valid) {
- silent === false && warn(namePrefix + 'value "' + value + '" should be of type "' + expectedType + '"');
- return false;
- }
- if (hasOwn.call(typeToCheck, 'validator') && isFunction(typeToCheck.validator)) {
- valid = typeToCheck.validator(value);
- if (!valid && silent === false) warn(namePrefix + 'custom validation failed');
- return valid;
- }
- return valid;
- };
- var warn = noop;
- if (true) {
- var hasConsole = typeof console !== 'undefined';
- warn = function warn(msg) {
- if (hasConsole) {
- console.warn('[VueTypes warn]: ' + msg);
- }
- };
- }
- /***/ }),
- /***/ "./components/_util/warning.js":
- /*!*************************************!*\
- !*** ./components/_util/warning.js ***!
- \*************************************/
- /*! exports provided: resetWarned, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _vc_util_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vc-util/warning */ "./components/vc-util/warning.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resetWarned", function() { return _vc_util_warning__WEBPACK_IMPORTED_MODULE_0__["resetWarned"]; });
- /* harmony default export */ __webpack_exports__["default"] = (function (valid, component) {
- var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
- Object(_vc_util_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(valid, '[antdv: ' + component + '] ' + message);
- });
- /***/ }),
- /***/ "./components/_util/wave.jsx":
- /*!***********************************!*\
- !*** ./components/_util/wave.jsx ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _css_animation_Event__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./css-animation/Event */ "./components/_util/css-animation/Event.js");
- /* harmony import */ var _raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raf */ "./components/_util/raf.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var styleForPesudo = void 0;
- // Where el is the DOM element you'd like to test for visibility
- function isHidden(element) {
- if (false) {}
- return !element || element.offsetParent === null;
- }
- function isNotGrey(color) {
- // eslint-disable-next-line no-useless-escape
- var match = (color || '').match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);
- if (match && match[1] && match[2] && match[3]) {
- return !(match[1] === match[2] && match[2] === match[3]);
- }
- return true;
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Wave',
- props: ['insertExtraNode'],
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- var node = _this.$el;
- if (node.nodeType !== 1) {
- return;
- }
- _this.instance = _this.bindAnimationEvent(node);
- });
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
- } }
- },
- beforeDestroy: function beforeDestroy() {
- if (this.instance) {
- this.instance.cancel();
- }
- if (this.clickWaveTimeoutId) {
- clearTimeout(this.clickWaveTimeoutId);
- }
- this.destroy = true;
- },
- methods: {
- onClick: function onClick(node, waveColor) {
- if (!node || isHidden(node) || node.className.indexOf('-leave') >= 0) {
- return;
- }
- var insertExtraNode = this.$props.insertExtraNode;
- this.extraNode = document.createElement('div');
- var extraNode = this.extraNode;
- extraNode.className = 'ant-click-animating-node';
- var attributeName = this.getAttributeName();
- node.removeAttribute(attributeName);
- node.setAttribute(attributeName, 'true');
- // Not white or transparent or grey
- styleForPesudo = styleForPesudo || document.createElement('style');
- if (waveColor && waveColor !== '#ffffff' && waveColor !== 'rgb(255, 255, 255)' && isNotGrey(waveColor) && !/rgba\(\d*, \d*, \d*, 0\)/.test(waveColor) && // any transparent rgba color
- waveColor !== 'transparent') {
- // Add nonce if CSP exist
- if (this.csp && this.csp.nonce) {
- styleForPesudo.nonce = this.csp.nonce;
- }
- extraNode.style.borderColor = waveColor;
- styleForPesudo.innerHTML = '\n [ant-click-animating-without-extra-node=\'true\']::after, .ant-click-animating-node {\n --antd-wave-shadow-color: ' + waveColor + ';\n }';
- if (!document.body.contains(styleForPesudo)) {
- document.body.appendChild(styleForPesudo);
- }
- }
- if (insertExtraNode) {
- node.appendChild(extraNode);
- }
- _css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].addStartEventListener(node, this.onTransitionStart);
- _css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].addEndEventListener(node, this.onTransitionEnd);
- },
- onTransitionStart: function onTransitionStart(e) {
- if (this.destroy) return;
- var node = this.$el;
- if (!e || e.target !== node) {
- return;
- }
- if (!this.animationStart) {
- this.resetEffect(node);
- }
- },
- onTransitionEnd: function onTransitionEnd(e) {
- if (!e || e.animationName !== 'fadeEffect') {
- return;
- }
- this.resetEffect(e.target);
- },
- getAttributeName: function getAttributeName() {
- var insertExtraNode = this.$props.insertExtraNode;
- return insertExtraNode ? 'ant-click-animating' : 'ant-click-animating-without-extra-node';
- },
- bindAnimationEvent: function bindAnimationEvent(node) {
- var _this2 = this;
- if (!node || !node.getAttribute || node.getAttribute('disabled') || node.className.indexOf('disabled') >= 0) {
- return;
- }
- var onClick = function onClick(e) {
- // Fix radio button click twice
- if (e.target.tagName === 'INPUT' || isHidden(e.target)) {
- return;
- }
- _this2.resetEffect(node);
- // Get wave color from target
- var waveColor = getComputedStyle(node).getPropertyValue('border-top-color') || // Firefox Compatible
- getComputedStyle(node).getPropertyValue('border-color') || getComputedStyle(node).getPropertyValue('background-color');
- _this2.clickWaveTimeoutId = window.setTimeout(function () {
- return _this2.onClick(node, waveColor);
- }, 0);
- _raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(_this2.animationStartId);
- _this2.animationStart = true;
- // Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.
- _this2.animationStartId = Object(_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
- _this2.animationStart = false;
- }, 10);
- };
- node.addEventListener('click', onClick, true);
- return {
- cancel: function cancel() {
- node.removeEventListener('click', onClick, true);
- }
- };
- },
- resetEffect: function resetEffect(node) {
- if (!node || node === this.extraNode || !(node instanceof Element)) {
- return;
- }
- var insertExtraNode = this.$props.insertExtraNode;
- var attributeName = this.getAttributeName();
- node.setAttribute(attributeName, 'false'); // edge has bug on `removeAttribute` #14466
- if (styleForPesudo) {
- styleForPesudo.innerHTML = '';
- }
- if (insertExtraNode && this.extraNode && node.contains(this.extraNode)) {
- node.removeChild(this.extraNode);
- }
- _css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].removeStartEventListener(node, this.onTransitionStart);
- _css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].removeEndEventListener(node, this.onTransitionEnd);
- }
- },
- render: function render() {
- if (this.configProvider.csp) {
- this.csp = this.configProvider.csp;
- }
- return this.$slots['default'] && this.$slots['default'][0];
- }
- });
- /***/ }),
- /***/ "./components/affix/index.jsx":
- /*!************************************!*\
- !*** ./components/affix/index.jsx ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _vc_resize_observer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-resize-observer */ "./components/vc-resize-observer/index.jsx");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_throttleByAnimationFrame__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/throttleByAnimationFrame */ "./components/_util/throttleByAnimationFrame.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils */ "./components/affix/utils.js");
- function getDefaultTarget() {
- return typeof window !== 'undefined' ? window : null;
- }
- // Affix
- var AffixProps = {
- /**
- * 距离窗口顶部达到指定偏移量后触发
- */
- offsetTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- /** 距离窗口底部达到指定偏移量后触发 */
- offsetBottom: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- /** 固定状态改变时触发的回调函数 */
- // onChange?: (affixed?: boolean) => void;
- /** 设置 Affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 */
- target: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(getDefaultTarget),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
- };
- var AffixStatus = {
- None: 'none',
- Prepare: 'Prepare'
- };
- var Affix = {
- name: 'AAffix',
- props: AffixProps,
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- return {
- affixStyle: undefined,
- placeholderStyle: undefined,
- status: AffixStatus.None,
- lastAffix: false,
- prevTarget: null
- };
- },
- beforeMount: function beforeMount() {
- this.updatePosition = Object(_util_throttleByAnimationFrame__WEBPACK_IMPORTED_MODULE_7__["default"])(this.updatePosition);
- this.lazyUpdatePosition = Object(_util_throttleByAnimationFrame__WEBPACK_IMPORTED_MODULE_7__["default"])(this.lazyUpdatePosition);
- },
- mounted: function mounted() {
- var _this = this;
- var target = this.target;
- if (target) {
- // [Legacy] Wait for parent component ref has its value.
- // We should use target as directly element instead of function which makes element check hard.
- this.timeout = setTimeout(function () {
- Object(_utils__WEBPACK_IMPORTED_MODULE_11__["addObserveTarget"])(target(), _this);
- // Mock Event object.
- _this.updatePosition();
- });
- }
- },
- updated: function updated() {
- this.measure();
- },
- watch: {
- target: function target(val) {
- var newTarget = null;
- if (val) {
- newTarget = val() || null;
- }
- if (this.prevTarget !== newTarget) {
- Object(_utils__WEBPACK_IMPORTED_MODULE_11__["removeObserveTarget"])(this);
- if (newTarget) {
- Object(_utils__WEBPACK_IMPORTED_MODULE_11__["addObserveTarget"])(newTarget, this);
- // Mock Event object.
- this.updatePosition();
- }
- this.prevTarget = newTarget;
- }
- },
- offsetTop: function offsetTop() {
- this.updatePosition();
- },
- offsetBottom: function offsetBottom() {
- this.updatePosition();
- }
- },
- beforeDestroy: function beforeDestroy() {
- clearTimeout(this.timeout);
- Object(_utils__WEBPACK_IMPORTED_MODULE_11__["removeObserveTarget"])(this);
- this.updatePosition.cancel();
- // https://github.com/ant-design/ant-design/issues/22683
- this.lazyUpdatePosition.cancel();
- },
- methods: {
- getOffsetTop: function getOffsetTop() {
- var offset = this.offset,
- offsetBottom = this.offsetBottom;
- var offsetTop = this.offsetTop;
- if (typeof offsetTop === 'undefined') {
- offsetTop = offset;
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(typeof offset === 'undefined', 'Affix', '`offset` is deprecated. Please use `offsetTop` instead.');
- }
- if (offsetBottom === undefined && offsetTop === undefined) {
- offsetTop = 0;
- }
- return offsetTop;
- },
- getOffsetBottom: function getOffsetBottom() {
- return this.offsetBottom;
- },
- // =================== Measure ===================
- measure: function measure() {
- var status = this.status,
- lastAffix = this.lastAffix;
- var target = this.target;
- if (status !== AffixStatus.Prepare || !this.$refs.fixedNode || !this.$refs.placeholderNode || !target) {
- return;
- }
- var offsetTop = this.getOffsetTop();
- var offsetBottom = this.getOffsetBottom();
- var targetNode = target();
- if (!targetNode) {
- return;
- }
- var newState = {
- status: AffixStatus.None
- };
- var targetRect = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(targetNode);
- var placeholderReact = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(this.$refs.placeholderNode);
- var fixedTop = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedTop"])(placeholderReact, targetRect, offsetTop);
- var fixedBottom = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedBottom"])(placeholderReact, targetRect, offsetBottom);
- if (fixedTop !== undefined) {
- newState.affixStyle = {
- position: 'fixed',
- top: fixedTop,
- width: placeholderReact.width + 'px',
- height: placeholderReact.height + 'px'
- };
- newState.placeholderStyle = {
- width: placeholderReact.width + 'px',
- height: placeholderReact.height + 'px'
- };
- } else if (fixedBottom !== undefined) {
- newState.affixStyle = {
- position: 'fixed',
- bottom: fixedBottom,
- width: placeholderReact.width + 'px',
- height: placeholderReact.height + 'px'
- };
- newState.placeholderStyle = {
- width: placeholderReact.width + 'px',
- height: placeholderReact.height + 'px'
- };
- }
- newState.lastAffix = !!newState.affixStyle;
- if (lastAffix !== newState.lastAffix) {
- this.$emit('change', newState.lastAffix);
- }
- this.setState(newState);
- },
- // @ts-ignore TS6133
- prepareMeasure: function prepareMeasure() {
- this.setState({
- status: AffixStatus.Prepare,
- affixStyle: undefined,
- placeholderStyle: undefined
- });
- this.$forceUpdate();
- // Test if `updatePosition` called
- if (false) {}
- },
- updatePosition: function updatePosition() {
- this.prepareMeasure();
- },
- lazyUpdatePosition: function lazyUpdatePosition() {
- var target = this.target;
- var affixStyle = this.affixStyle;
- // Check position change before measure to make Safari smooth
- if (target && affixStyle) {
- var offsetTop = this.getOffsetTop();
- var offsetBottom = this.getOffsetBottom();
- var targetNode = target();
- if (targetNode && this.$refs.placeholderNode) {
- var targetRect = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(targetNode);
- var placeholderReact = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(this.$refs.placeholderNode);
- var fixedTop = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedTop"])(placeholderReact, targetRect, offsetTop);
- var fixedBottom = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedBottom"])(placeholderReact, targetRect, offsetBottom);
- if (fixedTop !== undefined && affixStyle.top === fixedTop || fixedBottom !== undefined && affixStyle.bottom === fixedBottom) {
- return;
- }
- }
- }
- // Directly call prepare measure since it's already throttled.
- this.prepareMeasure();
- }
- },
- render: function render() {
- var _this2 = this;
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- affixStyle = this.affixStyle,
- placeholderStyle = this.placeholderStyle,
- $slots = this.$slots,
- $props = this.$props;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var className = classnames__WEBPACK_IMPORTED_MODULE_3___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, getPrefixCls('affix', prefixCls), affixStyle));
- var props = {
- attrs: Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])($props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target'])
- };
- return h(
- _vc_resize_observer__WEBPACK_IMPORTED_MODULE_5__["default"],
- {
- on: {
- 'resize': function resize() {
- _this2.updatePosition();
- }
- }
- },
- [h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([props, { style: placeholderStyle, ref: 'placeholderNode' }]),
- [h(
- 'div',
- { 'class': className, ref: 'fixedNode', style: affixStyle },
- [$slots['default']]
- )]
- )]
- );
- }
- };
- /* istanbul ignore next */
- Affix.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
- Vue.component(Affix.name, Affix);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Affix);
- /***/ }),
- /***/ "./components/affix/style/index.js":
- /*!*****************************************!*\
- !*** ./components/affix/style/index.js ***!
- \*****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/affix/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/affix/style/index.less":
- /*!*******************************************!*\
- !*** ./components/affix/style/index.less ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/affix/utils.js":
- /*!***********************************!*\
- !*** ./components/affix/utils.js ***!
- \***********************************/
- /*! exports provided: getTargetRect, getFixedTop, getFixedBottom, getObserverEntities, addObserveTarget, removeObserveTarget */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTargetRect", function() { return getTargetRect; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFixedTop", function() { return getFixedTop; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFixedBottom", function() { return getFixedBottom; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getObserverEntities", function() { return getObserverEntities; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addObserveTarget", function() { return addObserveTarget; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeObserveTarget", function() { return removeObserveTarget; });
- /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
- function getTargetRect(target) {
- return target !== window ? target.getBoundingClientRect() : { top: 0, bottom: window.innerHeight };
- }
- function getFixedTop(placeholderReact, targetRect, offsetTop) {
- if (offsetTop !== undefined && targetRect.top > placeholderReact.top - offsetTop) {
- return offsetTop + targetRect.top + 'px';
- }
- return undefined;
- }
- function getFixedBottom(placeholderReact, targetRect, offsetBottom) {
- if (offsetBottom !== undefined && targetRect.bottom < placeholderReact.bottom + offsetBottom) {
- var targetBottomOffset = window.innerHeight - targetRect.bottom;
- return offsetBottom + targetBottomOffset + 'px';
- }
- return undefined;
- }
- // ======================== Observer ========================
- var TRIGGER_EVENTS = ['resize', 'scroll', 'touchstart', 'touchmove', 'touchend', 'pageshow', 'load'];
- var observerEntities = [];
- function getObserverEntities() {
- // Only used in test env. Can be removed if refactor.
- return observerEntities;
- }
- function addObserveTarget(target, affix) {
- if (!target) return;
- var entity = observerEntities.find(function (item) {
- return item.target === target;
- });
- if (entity) {
- entity.affixList.push(affix);
- } else {
- entity = {
- target: target,
- affixList: [affix],
- eventHandlers: {}
- };
- observerEntities.push(entity);
- // Add listener
- TRIGGER_EVENTS.forEach(function (eventName) {
- entity.eventHandlers[eventName] = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_0__["default"])(target, eventName, function () {
- entity.affixList.forEach(function (targetAffix) {
- targetAffix.lazyUpdatePosition();
- });
- });
- });
- }
- }
- function removeObserveTarget(affix) {
- var observerEntity = observerEntities.find(function (oriObserverEntity) {
- var hasAffix = oriObserverEntity.affixList.some(function (item) {
- return item === affix;
- });
- if (hasAffix) {
- oriObserverEntity.affixList = oriObserverEntity.affixList.filter(function (item) {
- return item !== affix;
- });
- }
- return hasAffix;
- });
- if (observerEntity && observerEntity.affixList.length === 0) {
- observerEntities = observerEntities.filter(function (item) {
- return item !== observerEntity;
- });
- // Remove listener
- TRIGGER_EVENTS.forEach(function (eventName) {
- var handler = observerEntity.eventHandlers[eventName];
- if (handler && handler.remove) {
- handler.remove();
- }
- });
- }
- }
- /***/ }),
- /***/ "./components/alert/index.jsx":
- /*!************************************!*\
- !*** ./components/alert/index.jsx ***!
- \************************************/
- /*! exports provided: AlertProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlertProps", function() { return AlertProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- function noop() {}
- var AlertProps = {
- /**
- * Type of Alert styles, options:`success`, `info`, `warning`, `error`
- */
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['success', 'info', 'warning', 'error']),
- /** Whether Alert can be closed */
- closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- /** Close text to show */
- closeText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- /** Content of Alert */
- message: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- /** Additional content of Alert */
- description: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- /** Callback when close Alert */
- // onClose?: React.MouseEventHandler<HTMLAnchorElement>;
- /** Trigger when animation ending of Alert */
- afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
- /** Whether to show icon */
- showIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- iconType: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- banner: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
- };
- var Alert = {
- name: 'AAlert',
- props: AlertProps,
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- return {
- closing: false,
- closed: false
- };
- },
- methods: {
- handleClose: function handleClose(e) {
- e.preventDefault();
- var dom = this.$el;
- dom.style.height = dom.offsetHeight + 'px';
- // Magic code
- // 重复一次后才能正确设置 height
- dom.style.height = dom.offsetHeight + 'px';
- this.setState({
- closing: true
- });
- this.$emit('close', e);
- },
- animationEnd: function animationEnd() {
- this.setState({
- closing: false,
- closed: true
- });
- this.afterClose();
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- banner = this.banner,
- closing = this.closing,
- closed = this.closed;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('alert', customizePrefixCls);
- var closable = this.closable,
- type = this.type,
- showIcon = this.showIcon,
- iconType = this.iconType;
- var closeText = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'closeText');
- var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'description');
- var message = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'message');
- var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon');
- // banner模式默认有 Icon
- showIcon = banner && showIcon === undefined ? true : showIcon;
- // banner模式默认为警告
- type = banner && type === undefined ? 'warning' : type || 'info';
- var iconTheme = 'filled';
- if (!iconType) {
- switch (type) {
- case 'success':
- iconType = 'check-circle';
- break;
- case 'info':
- iconType = 'info-circle';
- break;
- case 'error':
- iconType = 'close-circle';
- break;
- case 'warning':
- iconType = 'exclamation-circle';
- break;
- default:
- iconType = 'default';
- }
- // use outline icon in alert with description
- if (description) {
- iconTheme = 'outlined';
- }
- }
- // closeable when closeText is assigned
- if (closeText) {
- closable = true;
- }
- var alertCls = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + type, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-closing', closing), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-with-description', !!description), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-no-icon', !showIcon), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-banner', !!banner), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-closable', closable), _classNames));
- var closeIcon = closable ? h(
- 'button',
- {
- attrs: {
- type: 'button',
- tabIndex: 0
- },
- on: {
- 'click': this.handleClose
- },
- 'class': prefixCls + '-close-icon' },
- [closeText ? h(
- 'span',
- { 'class': prefixCls + '-close-text' },
- [closeText]
- ) : h(_icon__WEBPACK_IMPORTED_MODULE_1__["default"], {
- attrs: { type: 'close' }
- })]
- ) : null;
- var iconNode = icon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(icon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(icon, {
- 'class': prefixCls + '-icon'
- }) : h(
- 'span',
- { 'class': prefixCls + '-icon' },
- [icon]
- )) || h(_icon__WEBPACK_IMPORTED_MODULE_1__["default"], { 'class': prefixCls + '-icon', attrs: { type: iconType, theme: iconTheme }
- });
- var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])(prefixCls + '-slide-up', {
- appear: false,
- afterLeave: this.animationEnd
- });
- return closed ? null : h(
- 'transition',
- transitionProps,
- [h(
- 'div',
- {
- directives: [{
- name: 'show',
- value: !closing
- }],
- 'class': alertCls, attrs: { 'data-show': !closing }
- },
- [showIcon ? iconNode : null, h(
- 'span',
- { 'class': prefixCls + '-message' },
- [message]
- ), h(
- 'span',
- { 'class': prefixCls + '-description' },
- [description]
- ), closeIcon]
- )]
- );
- }
- };
- /* istanbul ignore next */
- Alert.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
- Vue.component(Alert.name, Alert);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Alert);
- /***/ }),
- /***/ "./components/alert/style/index.js":
- /*!*****************************************!*\
- !*** ./components/alert/style/index.js ***!
- \*****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/alert/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/alert/style/index.less":
- /*!*******************************************!*\
- !*** ./components/alert/style/index.less ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/anchor/Anchor.jsx":
- /*!**************************************!*\
- !*** ./components/anchor/Anchor.jsx ***!
- \**************************************/
- /*! exports provided: AnchorProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnchorProps", function() { return AnchorProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
- /* harmony import */ var _affix__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../affix */ "./components/affix/index.jsx");
- /* harmony import */ var _util_scrollTo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/scrollTo */ "./components/_util/scrollTo.js");
- /* harmony import */ var _util_getScroll__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/getScroll */ "./components/_util/getScroll.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- function getDefaultContainer() {
- return window;
- }
- function getOffsetTop(element, container) {
- if (!element) {
- return 0;
- }
- if (!element.getClientRects().length) {
- return 0;
- }
- var rect = element.getBoundingClientRect();
- if (rect.width || rect.height) {
- if (container === window) {
- container = element.ownerDocument.documentElement;
- return rect.top - container.clientTop;
- }
- return rect.top - container.getBoundingClientRect().top;
- }
- return rect.top;
- }
- // function easeInOutCubic(t, b, c, d) {
- // const cc = c - b;
- // t /= d / 2;
- // if (t < 1) {
- // return (cc / 2) * t * t * t + b;
- // }
- // return (cc / 2) * ((t -= 2) * t * t + 2) + b;
- // }
- var sharpMatcherRegx = /#([^#]+)$/;
- // function scrollTo(href, offsetTop = 0, getContainer, callback = () => {}) {
- // const container = getContainer();
- // const scrollTop = getScroll(container, true);
- // const sharpLinkMatch = sharpMatcherRegx.exec(href);
- // if (!sharpLinkMatch) {
- // return;
- // }
- // const targetElement = document.getElementById(sharpLinkMatch[1]);
- // if (!targetElement) {
- // return;
- // }
- // const eleOffsetTop = getOffsetTop(targetElement, container);
- // const targetScrollTop = scrollTop + eleOffsetTop - offsetTop;
- // const startTime = Date.now();
- // const frameFunc = () => {
- // const timestamp = Date.now();
- // const time = timestamp - startTime;
- // const nextScrollTop = easeInOutCubic(time, scrollTop, targetScrollTop, 450);
- // if (container === window) {
- // window.scrollTo(window.pageXOffset, nextScrollTop);
- // } else {
- // container.scrollTop = nextScrollTop;
- // }
- // if (time < 450) {
- // raf(frameFunc);
- // } else {
- // callback();
- // }
- // };
- // raf(frameFunc);
- // }
- var AnchorProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- offsetTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- bounds: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- affix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- showInkInFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- wrapperClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- wrapperStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- getCurrentAnchor: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- targetOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AAnchor',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
- inheritAttrs: false,
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(AnchorProps, {
- affix: true,
- showInkInFixed: false,
- getContainer: getDefaultContainer
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- this.links = [];
- this._sPrefixCls = '';
- return {
- activeLink: null
- };
- },
- provide: function provide() {
- var _this = this;
- return {
- antAnchor: {
- registerLink: function registerLink(link) {
- if (!_this.links.includes(link)) {
- _this.links.push(link);
- }
- },
- unregisterLink: function unregisterLink(link) {
- var index = _this.links.indexOf(link);
- if (index !== -1) {
- _this.links.splice(index, 1);
- }
- },
- $data: this.$data,
- scrollTo: this.handleScrollTo
- },
- antAnchorContext: this
- };
- },
- mounted: function mounted() {
- var _this2 = this;
- this.$nextTick(function () {
- var getContainer = _this2.getContainer;
- _this2.scrollContainer = getContainer();
- _this2.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_3__["default"])(_this2.scrollContainer, 'scroll', _this2.handleScroll);
- _this2.handleScroll();
- });
- },
- updated: function updated() {
- var _this3 = this;
- this.$nextTick(function () {
- if (_this3.scrollEvent) {
- var getContainer = _this3.getContainer;
- var currentContainer = getContainer();
- if (_this3.scrollContainer !== currentContainer) {
- _this3.scrollContainer = currentContainer;
- _this3.scrollEvent.remove();
- _this3.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_3__["default"])(_this3.scrollContainer, 'scroll', _this3.handleScroll);
- _this3.handleScroll();
- }
- }
- _this3.updateInk();
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.scrollEvent) {
- this.scrollEvent.remove();
- }
- },
- methods: {
- getCurrentActiveLink: function getCurrentActiveLink() {
- var offsetTop = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
- var bounds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
- var getCurrentAnchor = this.getCurrentAnchor;
- if (typeof getCurrentAnchor === 'function') {
- return getCurrentAnchor();
- }
- var activeLink = '';
- if (typeof document === 'undefined') {
- return activeLink;
- }
- var linkSections = [];
- var getContainer = this.getContainer;
- var container = getContainer();
- this.links.forEach(function (link) {
- var sharpLinkMatch = sharpMatcherRegx.exec(link.toString());
- if (!sharpLinkMatch) {
- return;
- }
- var target = document.getElementById(sharpLinkMatch[1]);
- if (target) {
- var top = getOffsetTop(target, container);
- if (top < offsetTop + bounds) {
- linkSections.push({
- link: link,
- top: top
- });
- }
- }
- });
- if (linkSections.length) {
- var maxSection = linkSections.reduce(function (prev, curr) {
- return curr.top > prev.top ? curr : prev;
- });
- return maxSection.link;
- }
- return '';
- },
- handleScrollTo: function handleScrollTo(link) {
- var _this4 = this;
- var offsetTop = this.offsetTop,
- getContainer = this.getContainer,
- targetOffset = this.targetOffset;
- this.setCurrentActiveLink(link);
- var container = getContainer();
- var scrollTop = Object(_util_getScroll__WEBPACK_IMPORTED_MODULE_6__["default"])(container, true);
- var sharpLinkMatch = sharpMatcherRegx.exec(link);
- if (!sharpLinkMatch) {
- return;
- }
- var targetElement = document.getElementById(sharpLinkMatch[1]);
- if (!targetElement) {
- return;
- }
- var eleOffsetTop = getOffsetTop(targetElement, container);
- var y = scrollTop + eleOffsetTop;
- y -= targetOffset !== undefined ? targetOffset : offsetTop || 0;
- this.animating = true;
- Object(_util_scrollTo__WEBPACK_IMPORTED_MODULE_5__["default"])(y, {
- callback: function callback() {
- _this4.animating = false;
- },
- getContainer: getContainer
- });
- },
- setCurrentActiveLink: function setCurrentActiveLink(link) {
- var activeLink = this.activeLink;
- if (activeLink !== link) {
- this.setState({
- activeLink: link
- });
- this.$emit('change', link);
- }
- },
- handleScroll: function handleScroll() {
- if (this.animating) {
- return;
- }
- var offsetTop = this.offsetTop,
- bounds = this.bounds,
- targetOffset = this.targetOffset;
- var currentActiveLink = this.getCurrentActiveLink(targetOffset !== undefined ? targetOffset : offsetTop || 0, bounds);
- this.setCurrentActiveLink(currentActiveLink);
- },
- updateInk: function updateInk() {
- if (typeof document === 'undefined') {
- return;
- }
- var _sPrefixCls = this._sPrefixCls;
- var linkNode = this.$el.getElementsByClassName(_sPrefixCls + '-link-title-active')[0];
- if (linkNode) {
- this.$refs.inkNode.style.top = linkNode.offsetTop + linkNode.clientHeight / 2 - 4.5 + 'px';
- }
- }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- offsetTop = this.offsetTop,
- affix = this.affix,
- showInkInFixed = this.showInkInFixed,
- activeLink = this.activeLink,
- $slots = this.$slots,
- getContainer = this.getContainer;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('anchor', customizePrefixCls);
- this._sPrefixCls = prefixCls;
- var inkClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls + '-ink-ball', {
- visible: activeLink
- });
- var wrapperClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()(this.wrapperClass, prefixCls + '-wrapper');
- var anchorClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, {
- fixed: !affix && !showInkInFixed
- });
- var wrapperStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- maxHeight: offsetTop ? 'calc(100vh - ' + offsetTop + 'px)' : '100vh'
- }, this.wrapperStyle);
- var anchorContent = h(
- 'div',
- { 'class': wrapperClass, style: wrapperStyle },
- [h(
- 'div',
- { 'class': anchorClass },
- [h(
- 'div',
- { 'class': prefixCls + '-ink' },
- [h('span', { 'class': inkClass, ref: 'inkNode' })]
- ), $slots['default']]
- )]
- );
- return !affix ? anchorContent : h(
- _affix__WEBPACK_IMPORTED_MODULE_4__["default"],
- {
- attrs: { offsetTop: offsetTop, target: getContainer }
- },
- [anchorContent]
- );
- }
- });
- /***/ }),
- /***/ "./components/anchor/AnchorLink.jsx":
- /*!******************************************!*\
- !*** ./components/anchor/AnchorLink.jsx ***!
- \******************************************/
- /*! exports provided: AnchorLinkProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnchorLinkProps", function() { return AnchorLinkProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var AnchorLinkProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- href: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- target: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AAnchorLink',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(AnchorLinkProps, {
- href: '#'
- }),
- inject: {
- antAnchor: { 'default': function _default() {
- return {};
- } },
- antAnchorContext: { 'default': function _default() {
- return {};
- } },
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
- } }
- },
- watch: {
- href: function href(val, oldVal) {
- var _this = this;
- this.$nextTick(function () {
- _this.antAnchor.unregisterLink(oldVal);
- _this.antAnchor.registerLink(val);
- });
- }
- },
- mounted: function mounted() {
- this.antAnchor.registerLink(this.href);
- },
- beforeDestroy: function beforeDestroy() {
- this.antAnchor.unregisterLink(this.href);
- },
- methods: {
- handleClick: function handleClick(e) {
- this.antAnchor.scrollTo(this.href);
- var scrollTo = this.antAnchor.scrollTo;
- var _$props = this.$props,
- href = _$props.href,
- title = _$props.title;
- if (this.antAnchorContext.$emit) {
- this.antAnchorContext.$emit('click', e, { title: title, href: href });
- }
- scrollTo(href);
- }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- href = this.href,
- $slots = this.$slots,
- target = this.target;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('anchor', customizePrefixCls);
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'title');
- var active = this.antAnchor.$data.activeLink === href;
- var wrapperClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-link', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-link-active', active));
- var titleClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-link-title', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-link-title-active', active));
- return h(
- 'div',
- { 'class': wrapperClassName },
- [h(
- 'a',
- {
- 'class': titleClassName,
- attrs: { href: href,
- title: typeof title === 'string' ? title : '',
- target: target
- },
- on: {
- 'click': this.handleClick
- }
- },
- [title]
- ), $slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/anchor/index.jsx":
- /*!*************************************!*\
- !*** ./components/anchor/index.jsx ***!
- \*************************************/
- /*! exports provided: AnchorProps, AnchorLinkProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Anchor */ "./components/anchor/Anchor.jsx");
- /* harmony import */ var _AnchorLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AnchorLink */ "./components/anchor/AnchorLink.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnchorProps", function() { return _Anchor__WEBPACK_IMPORTED_MODULE_0__["AnchorProps"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnchorLinkProps", function() { return _AnchorLink__WEBPACK_IMPORTED_MODULE_1__["AnchorLinkProps"]; });
- _Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].Link = _AnchorLink__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
- Vue.component(_Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Anchor__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].Link.name, _Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].Link);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Anchor__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/anchor/style/index.js":
- /*!******************************************!*\
- !*** ./components/anchor/style/index.js ***!
- \******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/anchor/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _affix_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../affix/style */ "./components/affix/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/anchor/style/index.less":
- /*!********************************************!*\
- !*** ./components/anchor/style/index.less ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/auto-complete/InputElement.jsx":
- /*!***************************************************!*\
- !*** ./components/auto-complete/InputElement.jsx ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- function chaining() {
- for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {
- fns[_key] = arguments[_key];
- }
- return function () {
- for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
- // eslint-disable-line
- // eslint-disable-line
- for (var i = 0; i < fns.length; i++) {
- if (fns[i] && typeof fns[i] === 'function') {
- fns[i].apply(this, args);
- }
- }
- };
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'InputElement',
- inheritAttrs: false,
- props: {
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
- },
- render: function render() {
- var _$slots = this.$slots,
- $slots = _$slots === undefined ? {} : _$slots,
- _$attrs = this.$attrs,
- $attrs = _$attrs === undefined ? {} : _$attrs,
- placeholder = this.placeholder;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this);
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
- var value = props.value === undefined ? '' : props.value;
- var children = $slots['default'][0];
- var _$slots$default$0$com = $slots['default'][0].componentOptions,
- componentOptions = _$slots$default$0$com === undefined ? {} : _$slots$default$0$com;
- var _componentOptions$lis = componentOptions.listeners,
- events = _componentOptions$lis === undefined ? {} : _componentOptions$lis;
- var newEvent = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, events);
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
- try {
- for (var _iterator = Object.entries(listeners)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var _ref = _step.value;
- var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 2);
- var eventName = _ref2[0];
- var event = _ref2[1];
- newEvent[eventName] = chaining(event, events[eventName]);
- }
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator['return']) {
- _iterator['return']();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
- var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $attrs, { value: value });
- // https://github.com/vueComponent/ant-design-vue/issues/1761
- delete props.placeholder;
- if (placeholder) {
- props.placeholder = placeholder;
- attrs.placeholder = placeholder;
- }
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(children, {
- domProps: {
- value: value
- },
- props: props,
- on: newEvent,
- attrs: attrs,
- ref: 'ele'
- });
- }
- });
- /***/ }),
- /***/ "./components/auto-complete/index.jsx":
- /*!********************************************!*\
- !*** ./components/auto-complete/index.jsx ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _vc_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-select */ "./components/vc-select/index.js");
- /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
- /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../input */ "./components/input/index.js");
- /* harmony import */ var _InputElement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InputElement */ "./components/auto-complete/InputElement.jsx");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- // const DataSourceItemObject = PropTypes.shape({
- // value: String,
- // text: String,
- // }).loose
- // const DataSourceItemType = PropTypes.oneOfType([
- // PropTypes.string,
- // DataSourceItemObject,
- // ]).isRequired
- // export interface AutoCompleteInputProps {
- // onChange?: React.FormEventHandler<any>;
- // value: any;
- // }
- var AutoCompleteProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_select__WEBPACK_IMPORTED_MODULE_4__["AbstractSelectProps"])(), {
- value: _select__WEBPACK_IMPORTED_MODULE_4__["SelectValue"],
- defaultValue: _select__WEBPACK_IMPORTED_MODULE_4__["SelectValue"],
- dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
- dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
- optionLabelProp: String,
- dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool
- // onChange?: (value: SelectValue) => void;
- // onSelect?: (value: SelectValue, option: Object) => any;
- });
- var AutoComplete = {
- name: 'AAutoComplete',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, AutoCompleteProps, {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('ant-select'),
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('slide-up'),
- choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('zoom'),
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('children'),
- filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func]).def(false),
- defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(true)
- }),
- Option: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_3__["Option"], { name: 'AAutoCompleteOption' }),
- OptGroup: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_3__["OptGroup"], { name: 'AAutoCompleteOptGroup' }),
- model: {
- prop: 'value',
- event: 'change'
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- provide: function provide() {
- return {
- savePopupRef: this.savePopupRef
- };
- },
- methods: {
- savePopupRef: function savePopupRef(ref) {
- this.popupRef = ref;
- },
- getInputElement: function getInputElement() {
- var h = this.$createElement;
- var $slots = this.$slots,
- placeholder = this.placeholder;
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])($slots['default']);
- var element = children.length ? children[0] : h(_input__WEBPACK_IMPORTED_MODULE_5__["default"], {
- attrs: { lazy: false }
- });
- return h(
- _InputElement__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { placeholder: placeholder }
- },
- [element]
- );
- },
- focus: function focus() {
- if (this.$refs.select) {
- this.$refs.select.focus();
- }
- },
- blur: function blur() {
- if (this.$refs.select) {
- this.$refs.select.blur();
- }
- }
- },
- render: function render() {
- var _cls;
- var h = arguments[0];
- var size = this.size,
- customizePrefixCls = this.prefixCls,
- optionLabelProp = this.optionLabelProp,
- dataSource = this.dataSource,
- $slots = this.$slots;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('select', customizePrefixCls);
- var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-show-search', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-auto-complete', true), _cls);
- var options = void 0;
- var childArray = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])($slots.dataSource);
- if (childArray.length) {
- options = childArray;
- } else {
- options = dataSource ? dataSource.map(function (item) {
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(item)) {
- return item;
- }
- switch (typeof item === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(item)) {
- case 'string':
- return h(
- _vc_select__WEBPACK_IMPORTED_MODULE_3__["Option"],
- { key: item },
- [item]
- );
- case 'object':
- return h(
- _vc_select__WEBPACK_IMPORTED_MODULE_3__["Option"],
- { key: item.value },
- [item.text]
- );
- default:
- throw new Error('AutoComplete[dataSource] only supports type `string[] | Object[]`.');
- }
- }) : [];
- }
- var selectProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this), {
- mode: _select__WEBPACK_IMPORTED_MODULE_4__["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE,
- optionLabelProp: optionLabelProp,
- getInputElement: this.getInputElement,
- notFoundContent: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'notFoundContent'),
- placeholder: ''
- }),
- 'class': cls,
- ref: 'select',
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this)
- };
- return h(
- _select__WEBPACK_IMPORTED_MODULE_4__["default"],
- selectProps,
- [options]
- );
- }
- };
- /* istanbul ignore next */
- AutoComplete.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
- Vue.component(AutoComplete.name, AutoComplete);
- Vue.component(AutoComplete.Option.name, AutoComplete.Option);
- Vue.component(AutoComplete.OptGroup.name, AutoComplete.OptGroup);
- };
- /* harmony default export */ __webpack_exports__["default"] = (AutoComplete);
- /***/ }),
- /***/ "./components/auto-complete/style/index.js":
- /*!*************************************************!*\
- !*** ./components/auto-complete/style/index.js ***!
- \*************************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/auto-complete/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
- /* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/auto-complete/style/index.less":
- /*!***************************************************!*\
- !*** ./components/auto-complete/style/index.less ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/avatar/Avatar.jsx":
- /*!**************************************!*\
- !*** ./components/avatar/Avatar.jsx ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AAvatar',
- props: {
- prefixCls: {
- type: String,
- 'default': undefined
- },
- shape: {
- validator: function validator(val) {
- return ['circle', 'square'].includes(val);
- },
- 'default': 'circle'
- },
- size: {
- validator: function validator(val) {
- return typeof val === 'number' || ['small', 'large', 'default'].includes(val);
- },
- 'default': 'default'
- },
- src: String,
- /** Srcset of image avatar */
- srcSet: String,
- icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- alt: String,
- loadError: Function
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- return {
- isImgExist: true,
- isMounted: false,
- scale: 1
- };
- },
- watch: {
- src: function src() {
- var _this = this;
- this.$nextTick(function () {
- _this.isImgExist = true;
- _this.scale = 1;
- // force uodate for position
- _this.$forceUpdate();
- });
- }
- },
- mounted: function mounted() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.setScale();
- _this2.isMounted = true;
- });
- },
- updated: function updated() {
- var _this3 = this;
- this.$nextTick(function () {
- _this3.setScale();
- });
- },
- methods: {
- setScale: function setScale() {
- if (!this.$refs.avatarChildren || !this.$refs.avatarNode) {
- return;
- }
- var childrenWidth = this.$refs.avatarChildren.offsetWidth; // offsetWidth avoid affecting be transform scale
- var nodeWidth = this.$refs.avatarNode.offsetWidth;
- // denominator is 0 is no meaning
- if (childrenWidth === 0 || nodeWidth === 0 || this.lastChildrenWidth === childrenWidth && this.lastNodeWidth === nodeWidth) {
- return;
- }
- this.lastChildrenWidth = childrenWidth;
- this.lastNodeWidth = nodeWidth;
- // add 4px gap for each side to get better performance
- this.scale = nodeWidth - 8 < childrenWidth ? (nodeWidth - 8) / childrenWidth : 1;
- },
- handleImgLoadError: function handleImgLoadError() {
- var loadError = this.$props.loadError;
- var errorFlag = loadError ? loadError() : undefined;
- if (errorFlag !== false) {
- this.isImgExist = false;
- }
- }
- },
- render: function render() {
- var _sizeCls, _extends3;
- var h = arguments[0];
- var _$props = this.$props,
- customizePrefixCls = _$props.prefixCls,
- shape = _$props.shape,
- size = _$props.size,
- src = _$props.src,
- alt = _$props.alt,
- srcSet = _$props.srcSet;
- var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'icon');
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('avatar', customizePrefixCls);
- var _$data = this.$data,
- isImgExist = _$data.isImgExist,
- scale = _$data.scale,
- isMounted = _$data.isMounted;
- var sizeCls = (_sizeCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_sizeCls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_sizeCls, prefixCls + '-sm', size === 'small'), _sizeCls);
- var classString = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls, true), sizeCls, (_extends3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends3, prefixCls + '-' + shape, shape), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends3, prefixCls + '-image', src && isImgExist), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends3, prefixCls + '-icon', icon), _extends3));
- var sizeStyle = typeof size === 'number' ? {
- width: size + 'px',
- height: size + 'px',
- lineHeight: size + 'px',
- fontSize: icon ? size / 2 + 'px' : '18px'
- } : {};
- var children = this.$slots['default'];
- if (src && isImgExist) {
- children = h('img', {
- attrs: { src: src, srcSet: srcSet, alt: alt },
- on: {
- 'error': this.handleImgLoadError
- }
- });
- } else if (icon) {
- if (typeof icon === 'string') {
- children = h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: { type: icon }
- });
- } else {
- children = icon;
- }
- } else {
- var childrenNode = this.$refs.avatarChildren;
- if (childrenNode || scale !== 1) {
- var transformString = 'scale(' + scale + ') translateX(-50%)';
- var childrenStyle = {
- msTransform: transformString,
- WebkitTransform: transformString,
- transform: transformString
- };
- var sizeChildrenStyle = typeof size === 'number' ? {
- lineHeight: size + 'px'
- } : {};
- children = h(
- 'span',
- {
- 'class': prefixCls + '-string',
- ref: 'avatarChildren',
- style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, sizeChildrenStyle, childrenStyle)
- },
- [children]
- );
- } else {
- var _childrenStyle = {};
- if (!isMounted) {
- _childrenStyle.opacity = 0;
- }
- children = h(
- 'span',
- { 'class': prefixCls + '-string', ref: 'avatarChildren', style: { opacity: 0 } },
- [children]
- );
- }
- }
- return h(
- 'span',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ ref: 'avatarNode' }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), 'class': classString, style: sizeStyle }]),
- [children]
- );
- }
- });
- /***/ }),
- /***/ "./components/avatar/index.js":
- /*!************************************!*\
- !*** ./components/avatar/index.js ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Avatar */ "./components/avatar/Avatar.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* istanbul ignore next */
- _Avatar__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_Avatar__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Avatar__WEBPACK_IMPORTED_MODULE_0__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Avatar__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/avatar/style/index.js":
- /*!******************************************!*\
- !*** ./components/avatar/style/index.js ***!
- \******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/avatar/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/avatar/style/index.less":
- /*!********************************************!*\
- !*** ./components/avatar/style/index.less ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/back-top/index.jsx":
- /*!***************************************!*\
- !*** ./components/back-top/index.jsx ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
- /* harmony import */ var _util_getScroll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/getScroll */ "./components/_util/getScroll.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_scrollTo__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/scrollTo */ "./components/_util/scrollTo.js");
- function getDefaultTarget() {
- return window;
- }
- var BackTopProps = {
- visibilityHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- // onClick?: React.MouseEventHandler<any>;
- target: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- // visible: PropTypes.bool, // Only for test. Don't use it.
- };
- var BackTop = {
- name: 'ABackTop',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, BackTopProps, {
- visibilityHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number.def(400)
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- this.scrollEvent = null;
- return {
- visible: false
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- var getTarget = _this.target || getDefaultTarget;
- _this.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__["default"])(getTarget(), 'scroll', _this.handleScroll);
- _this.handleScroll();
- });
- },
- activated: function activated() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.handleScroll();
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.scrollEvent) {
- this.scrollEvent.remove();
- }
- },
- methods: {
- getCurrentScrollTop: function getCurrentScrollTop() {
- var getTarget = this.target || getDefaultTarget;
- var targetNode = getTarget();
- if (targetNode === window) {
- return window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;
- }
- return targetNode.scrollTop;
- },
- scrollToTop: function scrollToTop(e) {
- var _target = this.target,
- target = _target === undefined ? getDefaultTarget : _target;
- Object(_util_scrollTo__WEBPACK_IMPORTED_MODULE_9__["default"])(0, {
- getContainer: target
- });
- this.$emit('click', e);
- },
- handleScroll: function handleScroll() {
- var visibilityHeight = this.visibilityHeight,
- _target2 = this.target,
- target = _target2 === undefined ? getDefaultTarget : _target2;
- var scrollTop = Object(_util_getScroll__WEBPACK_IMPORTED_MODULE_3__["default"])(target(), true);
- this.setState({
- visible: scrollTop > visibilityHeight
- });
- }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- $slots = this.$slots;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('back-top', customizePrefixCls);
- var defaultElement = h(
- 'div',
- { 'class': prefixCls + '-content' },
- [h('div', { 'class': prefixCls + '-icon' })]
- );
- var divProps = {
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this), {
- click: this.scrollToTop
- }),
- 'class': prefixCls
- };
- var backTopBtn = this.visible ? h(
- 'div',
- divProps,
- [$slots['default'] || defaultElement]
- ) : null;
- var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])('fade');
- return h(
- 'transition',
- transitionProps,
- [backTopBtn]
- );
- }
- };
- /* istanbul ignore next */
- BackTop.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_7__["default"]);
- Vue.component(BackTop.name, BackTop);
- };
- /* harmony default export */ __webpack_exports__["default"] = (BackTop);
- /***/ }),
- /***/ "./components/back-top/style/index.js":
- /*!********************************************!*\
- !*** ./components/back-top/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/back-top/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/back-top/style/index.less":
- /*!**********************************************!*\
- !*** ./components/back-top/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/badge/Badge.jsx":
- /*!************************************!*\
- !*** ./components/badge/Badge.jsx ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _ScrollNumber__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ScrollNumber */ "./components/badge/ScrollNumber.jsx");
- /* harmony import */ var _util_colors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/colors */ "./components/_util/colors.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/isNumeric */ "./components/_util/isNumeric.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var BadgeProps = {
- /** Number to show in badge */
- count: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- showZero: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- /** Max count to show */
- overflowCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- /** whether to show red dot without number */
- dot: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- scrollNumberPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- status: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['success', 'processing', 'default', 'error', 'warning']),
- color: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- text: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
- numberStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
- return {};
- }),
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string
- };
- function isPresetColor(color) {
- return _util_colors__WEBPACK_IMPORTED_MODULE_6__["PresetColorTypes"].indexOf(color) !== -1;
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ABadge',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["initDefaultProps"])(BadgeProps, {
- showZero: false,
- dot: false,
- overflowCount: 99
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
- } }
- },
- methods: {
- getNumberedDispayCount: function getNumberedDispayCount() {
- var overflowCount = this.$props.overflowCount;
- var count = this.badgeCount;
- var displayCount = count > overflowCount ? overflowCount + '+' : count;
- return displayCount;
- },
- getDispayCount: function getDispayCount() {
- var isDot = this.isDot();
- // dot mode don't need count
- if (isDot) {
- return '';
- }
- return this.getNumberedDispayCount();
- },
- getScrollNumberTitle: function getScrollNumberTitle() {
- var title = this.$props.title;
- var count = this.badgeCount;
- if (title) {
- return title;
- }
- return typeof count === 'string' || typeof count === 'number' ? count : undefined;
- },
- getStyleWithOffset: function getStyleWithOffset() {
- var _$props = this.$props,
- offset = _$props.offset,
- numberStyle = _$props.numberStyle;
- return offset ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
- right: -parseInt(offset[0], 10) + 'px',
- marginTop: Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_11__["default"])(offset[1]) ? offset[1] + 'px' : offset[1]
- }, numberStyle) : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, numberStyle);
- },
- getBadgeClassName: function getBadgeClassName(prefixCls) {
- var _classNames;
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["filterEmpty"])(this.$slots['default']);
- var hasStatus = this.hasStatus();
- return classnames__WEBPACK_IMPORTED_MODULE_7___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-status', hasStatus), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-dot-status', hasStatus && this.dot && !this.isZero()), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-not-a-wrapper', !children.length), _classNames));
- },
- hasStatus: function hasStatus() {
- var _$props2 = this.$props,
- status = _$props2.status,
- color = _$props2.color;
- return !!status || !!color;
- },
- isZero: function isZero() {
- var numberedDispayCount = this.getNumberedDispayCount();
- return numberedDispayCount === '0' || numberedDispayCount === 0;
- },
- isDot: function isDot() {
- var dot = this.$props.dot;
- var isZero = this.isZero();
- return dot && !isZero || this.hasStatus();
- },
- isHidden: function isHidden() {
- var showZero = this.$props.showZero;
- var displayCount = this.getDispayCount();
- var isZero = this.isZero();
- var isDot = this.isDot();
- var isEmpty = displayCount === null || displayCount === undefined || displayCount === '';
- return (isEmpty || isZero && !showZero) && !isDot;
- },
- renderStatusText: function renderStatusText(prefixCls) {
- var h = this.$createElement;
- var text = this.$props.text;
- var hidden = this.isHidden();
- return hidden || !text ? null : h(
- 'span',
- { 'class': prefixCls + '-status-text' },
- [text]
- );
- },
- renderDispayComponent: function renderDispayComponent() {
- var count = this.badgeCount;
- var customNode = count;
- if (!customNode || (typeof customNode === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(customNode)) !== 'object') {
- return undefined;
- }
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(customNode, {
- style: this.getStyleWithOffset()
- });
- },
- renderBadgeNumber: function renderBadgeNumber(prefixCls, scrollNumberPrefixCls) {
- var _scrollNumberCls;
- var h = this.$createElement;
- var _$props3 = this.$props,
- status = _$props3.status,
- color = _$props3.color;
- var count = this.badgeCount;
- var displayCount = this.getDispayCount();
- var isDot = this.isDot();
- var hidden = this.isHidden();
- var scrollNumberCls = (_scrollNumberCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-dot', isDot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-count', !isDot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-multiple-words', !isDot && count && count.toString && count.toString().length > 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-status-' + status, !!status), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-status-' + color, isPresetColor(color)), _scrollNumberCls);
- var statusStyle = this.getStyleWithOffset();
- if (color && !isPresetColor(color)) {
- statusStyle = statusStyle || {};
- statusStyle.background = color;
- }
- return hidden ? null : h(_ScrollNumber__WEBPACK_IMPORTED_MODULE_5__["default"], {
- attrs: {
- prefixCls: scrollNumberPrefixCls,
- 'data-show': !hidden,
- className: scrollNumberCls,
- count: displayCount,
- displayComponent: this.renderDispayComponent() // <Badge status="success" count={<Icon type="xxx" />}></Badge>
- , title: this.getScrollNumberTitle()
- },
- directives: [{
- name: 'show',
- value: !hidden
- }],
- style: statusStyle,
- key: 'scrollNumber'
- });
- }
- },
- render: function render() {
- var _classNames2;
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- customizeScrollNumberPrefixCls = this.scrollNumberPrefixCls,
- status = this.status,
- text = this.text,
- color = this.color,
- $slots = this.$slots;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('badge', customizePrefixCls);
- var scrollNumberPrefixCls = getPrefixCls('scroll-number', customizeScrollNumberPrefixCls);
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["filterEmpty"])($slots['default']);
- var count = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'count');
- if (Array.isArray(count)) {
- count = count[0];
- }
- this.badgeCount = count;
- var scrollNumber = this.renderBadgeNumber(prefixCls, scrollNumberPrefixCls);
- var statusText = this.renderStatusText(prefixCls);
- var statusCls = classnames__WEBPACK_IMPORTED_MODULE_7___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-status-dot', this.hasStatus()), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-status-' + status, !!status), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-status-' + color, isPresetColor(color)), _classNames2));
- var statusStyle = {};
- if (color && !isPresetColor(color)) {
- statusStyle.background = color;
- }
- // <Badge status="success" />
- if (!children.length && this.hasStatus()) {
- var styleWithOffset = this.getStyleWithOffset();
- var statusTextColor = styleWithOffset && styleWithOffset.color;
- return h(
- 'span',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this) }, {
- 'class': this.getBadgeClassName(prefixCls),
- style: styleWithOffset
- }]),
- [h('span', { 'class': statusCls, style: statusStyle }), h(
- 'span',
- { style: { color: statusTextColor }, 'class': prefixCls + '-status-text' },
- [text]
- )]
- );
- }
- var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_10__["default"])(children.length ? prefixCls + '-zoom' : '');
- return h(
- 'span',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this) }, { 'class': this.getBadgeClassName(prefixCls) }]),
- [children, h(
- 'transition',
- transitionProps,
- [scrollNumber]
- ), statusText]
- );
- }
- });
- /***/ }),
- /***/ "./components/badge/ScrollNumber.jsx":
- /*!*******************************************!*\
- !*** ./components/badge/ScrollNumber.jsx ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- function getNumberArray(num) {
- return num ? num.toString().split('').reverse().map(function (i) {
- var current = Number(i);
- return isNaN(current) ? i : current;
- }) : [];
- }
- var ScrollNumberProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- count: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- component: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, null]),
- displayComponent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- className: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: ScrollNumberProps,
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- return {
- animateStarted: true,
- sCount: this.count
- };
- },
- watch: {
- count: function count() {
- this.lastCount = this.sCount;
- this.setState({
- animateStarted: true
- });
- }
- },
- updated: function updated() {
- var _this = this;
- var animateStarted = this.animateStarted,
- count = this.count;
- if (animateStarted) {
- this.clearTimeout();
- // Let browser has time to reset the scroller before actually
- // performing the transition.
- this.timeout = setTimeout(function () {
- _this.setState({
- animateStarted: false,
- sCount: count
- }, _this.onAnimated);
- });
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.clearTimeout();
- },
- methods: {
- clearTimeout: function (_clearTimeout) {
- function clearTimeout() {
- return _clearTimeout.apply(this, arguments);
- }
- clearTimeout.toString = function () {
- return _clearTimeout.toString();
- };
- return clearTimeout;
- }(function () {
- if (this.timeout) {
- clearTimeout(this.timeout);
- this.timeout = undefined;
- }
- }),
- getPositionByNum: function getPositionByNum(num, i) {
- var sCount = this.sCount;
- var currentCount = Math.abs(Number(sCount));
- var lastCount = Math.abs(Number(this.lastCount));
- var currentDigit = Math.abs(getNumberArray(sCount)[i]);
- var lastDigit = Math.abs(getNumberArray(this.lastCount)[i]);
- if (this.animateStarted) {
- return 10 + num;
- }
- // 同方向则在同一侧切换数字
- if (currentCount > lastCount) {
- if (currentDigit >= lastDigit) {
- return 10 + num;
- }
- return 20 + num;
- }
- if (currentDigit <= lastDigit) {
- return 10 + num;
- }
- return num;
- },
- onAnimated: function onAnimated() {
- this.$emit('animated');
- },
- renderNumberList: function renderNumberList(position, className) {
- var h = this.$createElement;
- var childrenToReturn = [];
- for (var i = 0; i < 30; i++) {
- childrenToReturn.push(h(
- 'p',
- {
- key: i.toString(),
- 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, {
- current: position === i
- })
- },
- [i % 10]
- ));
- }
- return childrenToReturn;
- },
- renderCurrentNumber: function renderCurrentNumber(prefixCls, num, i) {
- var h = this.$createElement;
- if (typeof num === 'number') {
- var position = this.getPositionByNum(num, i);
- var removeTransition = this.animateStarted || getNumberArray(this.lastCount)[i] === undefined;
- var style = {
- transition: removeTransition ? 'none' : undefined,
- msTransform: 'translateY(' + -position * 100 + '%)',
- WebkitTransform: 'translateY(' + -position * 100 + '%)',
- transform: 'translateY(' + -position * 100 + '%)'
- };
- return h(
- 'span',
- { 'class': prefixCls + '-only', style: style, key: i },
- [this.renderNumberList(position, prefixCls + '-only-unit')]
- );
- }
- return h(
- 'span',
- { key: 'symbol', 'class': prefixCls + '-symbol' },
- [num]
- );
- },
- renderNumberElement: function renderNumberElement(prefixCls) {
- var _this2 = this;
- var sCount = this.sCount;
- if (sCount && Number(sCount) % 1 === 0) {
- return getNumberArray(sCount).map(function (num, i) {
- return _this2.renderCurrentNumber(prefixCls, num, i);
- }).reverse();
- }
- return sCount;
- }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- title = this.title,
- _component = this.component,
- Tag = _component === undefined ? 'sup' : _component,
- displayComponent = this.displayComponent,
- className = this.className;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('scroll-number', customizePrefixCls);
- if (displayComponent) {
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(displayComponent, {
- 'class': prefixCls + '-custom-component'
- });
- }
- var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getStyle"])(this, true);
- // fix https://fb.me/react-unknown-prop
- var restProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(this.$props, ['count', 'component', 'prefixCls', 'displayComponent']);
- var newProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps),
- attrs: {
- title: title
- },
- style: style,
- 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, className)
- };
- // allow specify the border
- // mock border-color by box-shadow for compatible with old usage:
- // <Badge count={4} style={{ backgroundColor: '#fff', color: '#999', borderColor: '#d9d9d9' }} />
- if (style && style.borderColor) {
- newProps.style.boxShadow = '0 0 0 1px ' + style.borderColor + ' inset';
- }
- return h(
- Tag,
- newProps,
- [this.renderNumberElement(prefixCls)]
- );
- }
- });
- /***/ }),
- /***/ "./components/badge/index.js":
- /*!***********************************!*\
- !*** ./components/badge/index.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Badge */ "./components/badge/Badge.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* istanbul ignore next */
- _Badge__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_Badge__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Badge__WEBPACK_IMPORTED_MODULE_0__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Badge__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/badge/style/index.js":
- /*!*****************************************!*\
- !*** ./components/badge/style/index.js ***!
- \*****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/badge/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/badge/style/index.less":
- /*!*******************************************!*\
- !*** ./components/badge/style/index.less ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/base/index.js":
- /*!**********************************!*\
- !*** ./components/base/index.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_antDirective__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/antDirective */ "./components/_util/antDirective.js");
- var base = {};
- var install = function install(Vue) {
- base.Vue = Vue;
- Vue.use(_util_antDirective__WEBPACK_IMPORTED_MODULE_0__["default"]);
- };
- base.install = install;
- /* harmony default export */ __webpack_exports__["default"] = (base);
- /***/ }),
- /***/ "./components/base/style/index.js":
- /*!****************************************!*\
- !*** ./components/base/style/index.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- // empty file prevent babel-plugin-import error
- /***/ }),
- /***/ "./components/breadcrumb/Breadcrumb.jsx":
- /*!**********************************************!*\
- !*** ./components/breadcrumb/Breadcrumb.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BreadcrumbItem */ "./components/breadcrumb/BreadcrumbItem.jsx");
- /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../menu */ "./components/menu/index.jsx");
- var Route = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
- path: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- breadcrumbName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
- }).loose;
- var BreadcrumbProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- routes: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(Route),
- params: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- separator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- itemRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- };
- function getBreadcrumbName(route, params) {
- if (!route.breadcrumbName) {
- return null;
- }
- var paramsKeys = Object.keys(params).join('|');
- var name = route.breadcrumbName.replace(new RegExp(':(' + paramsKeys + ')', 'g'), function (replacement, key) {
- return params[key] || replacement;
- });
- return name;
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ABreadcrumb',
- props: BreadcrumbProps,
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
- } }
- },
- methods: {
- defaultItemRender: function defaultItemRender(_ref) {
- var route = _ref.route,
- params = _ref.params,
- routes = _ref.routes,
- paths = _ref.paths;
- var h = this.$createElement;
- var isLastItem = routes.indexOf(route) === routes.length - 1;
- var name = getBreadcrumbName(route, params);
- return isLastItem ? h('span', [name]) : h(
- 'a',
- {
- attrs: { href: '#/' + paths.join('/') }
- },
- [name]
- );
- },
- getPath: function getPath(path, params) {
- path = (path || '').replace(/^\//, '');
- Object.keys(params).forEach(function (key) {
- path = path.replace(':' + key, params[key]);
- });
- return path;
- },
- addChildPath: function addChildPath(paths, childPath, params) {
- var originalPaths = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(paths));
- var path = this.getPath(childPath, params);
- if (path) {
- originalPaths.push(path);
- }
- return originalPaths;
- },
- genForRoutes: function genForRoutes(_ref2) {
- var _this = this;
- var _ref2$routes = _ref2.routes,
- routes = _ref2$routes === undefined ? [] : _ref2$routes,
- _ref2$params = _ref2.params,
- params = _ref2$params === undefined ? {} : _ref2$params,
- separator = _ref2.separator,
- _ref2$itemRender = _ref2.itemRender,
- itemRender = _ref2$itemRender === undefined ? this.defaultItemRender : _ref2$itemRender;
- var h = this.$createElement;
- var paths = [];
- return routes.map(function (route) {
- var path = _this.getPath(route.path, params);
- if (path) {
- paths.push(path);
- }
- // generated overlay by route.children
- var overlay = null;
- if (route.children && route.children.length) {
- overlay = h(_menu__WEBPACK_IMPORTED_MODULE_7__["default"], [route.children.map(function (child) {
- return h(
- _menu__WEBPACK_IMPORTED_MODULE_7__["default"].Item,
- { key: child.path || child.breadcrumbName },
- [itemRender({
- route: child,
- params: params,
- routes: routes,
- paths: _this.addChildPath(paths, child.path, params),
- h: _this.$createElement
- })]
- );
- })]);
- }
- return h(
- _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: {
- overlay: overlay,
- separator: separator
- },
- key: path || route.breadcrumbName
- },
- [itemRender({ route: route, params: params, routes: routes, paths: paths, h: _this.$createElement })]
- );
- });
- }
- },
- render: function render() {
- var h = arguments[0];
- var crumbs = void 0;
- var customizePrefixCls = this.prefixCls,
- routes = this.routes,
- _params = this.params,
- params = _params === undefined ? {} : _params,
- $slots = this.$slots,
- $scopedSlots = this.$scopedSlots;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])($slots['default']);
- var separator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'separator');
- var itemRender = this.itemRender || $scopedSlots.itemRender || this.defaultItemRender;
- if (routes && routes.length > 0) {
- // generated by route
- crumbs = this.genForRoutes({
- routes: routes,
- params: params,
- separator: separator,
- itemRender: itemRender
- });
- } else if (children.length) {
- crumbs = children.map(function (element, index) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getSlotOptions"])(element).__ANT_BREADCRUMB_ITEM || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getSlotOptions"])(element).__ANT_BREADCRUMB_SEPARATOR, 'Breadcrumb', "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(element, {
- props: { separator: separator },
- key: index
- });
- });
- }
- return h(
- 'div',
- { 'class': prefixCls },
- [crumbs]
- );
- }
- });
- /***/ }),
- /***/ "./components/breadcrumb/BreadcrumbItem.jsx":
- /*!**************************************************!*\
- !*** ./components/breadcrumb/BreadcrumbItem.jsx ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dropdown/dropdown */ "./components/dropdown/dropdown.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ABreadcrumbItem',
- __ANT_BREADCRUMB_ITEM: true,
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- href: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- separator: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def('/'),
- overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
- } }
- },
- methods: {
- /**
- * if overlay is have
- * Wrap a DropDown
- */
- renderBreadcrumbNode: function renderBreadcrumbNode(breadcrumbItem, prefixCls) {
- var h = this.$createElement;
- var overlay = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'overlay');
- if (overlay) {
- return h(
- _dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"],
- {
- attrs: { overlay: overlay, placement: 'bottomCenter' }
- },
- [h(
- 'span',
- { 'class': prefixCls + '-overlay-link' },
- [breadcrumbItem, h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: { type: 'down' }
- })]
- )]
- );
- }
- return breadcrumbItem;
- }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- $slots = this.$slots;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
- var separator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'separator');
- var children = $slots['default'];
- var link = void 0;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["hasProp"])(this, 'href')) {
- link = h(
- 'a',
- { 'class': prefixCls + '-link' },
- [children]
- );
- } else {
- link = h(
- 'span',
- { 'class': prefixCls + '-link' },
- [children]
- );
- }
- // wrap to dropDown
- link = this.renderBreadcrumbNode(link, prefixCls);
- if (children) {
- return h('span', [link, separator && separator !== '' && h(
- 'span',
- { 'class': prefixCls + '-separator' },
- [separator]
- )]);
- }
- return null;
- }
- });
- /***/ }),
- /***/ "./components/breadcrumb/BreadcrumbSeparator.jsx":
- /*!*******************************************************!*\
- !*** ./components/breadcrumb/BreadcrumbSeparator.jsx ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ABreadcrumbSeparator',
- __ANT_BREADCRUMB_SEPARATOR: true,
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_0__["ConfigConsumerProps"];
- } }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- $slots = this.$slots;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
- var children = $slots['default'];
- return h(
- 'span',
- { 'class': prefixCls + '-separator' },
- [children || '/']
- );
- }
- });
- /***/ }),
- /***/ "./components/breadcrumb/index.js":
- /*!****************************************!*\
- !*** ./components/breadcrumb/index.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Breadcrumb */ "./components/breadcrumb/Breadcrumb.jsx");
- /* harmony import */ var _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BreadcrumbItem */ "./components/breadcrumb/BreadcrumbItem.jsx");
- /* harmony import */ var _BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BreadcrumbSeparator */ "./components/breadcrumb/BreadcrumbSeparator.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].Item = _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__["default"];
- _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].Separator = _BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__["default"];
- /* istanbul ignore next */
- _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
- Vue.component(_Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__["default"].name, _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__["default"].name, _BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/breadcrumb/style/index.js":
- /*!**********************************************!*\
- !*** ./components/breadcrumb/style/index.js ***!
- \**********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/breadcrumb/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _menu_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../menu/style */ "./components/menu/style/index.js");
- /* harmony import */ var _dropdown_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../dropdown/style */ "./components/dropdown/style/index.js");
- /***/ }),
- /***/ "./components/breadcrumb/style/index.less":
- /*!************************************************!*\
- !*** ./components/breadcrumb/style/index.less ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/button/button-group.jsx":
- /*!********************************************!*\
- !*** ./components/button/button-group.jsx ***!
- \********************************************/
- /*! exports provided: ButtonGroupProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupProps", function() { return ButtonGroupProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var ButtonGroupProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- size: {
- validator: function validator(value) {
- return ['small', 'large', 'default'].includes(value);
- }
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AButtonGroup',
- props: ButtonGroupProps,
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- return {
- sizeMap: {
- large: 'lg',
- small: 'sm'
- }
- };
- },
- render: function render() {
- var _classes;
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- size = this.size,
- $slots = this.$slots;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('btn-group', customizePrefixCls);
- // large => lg
- // small => sm
- var sizeCls = '';
- switch (size) {
- case 'large':
- sizeCls = 'lg';
- break;
- case 'small':
- sizeCls = 'sm';
- break;
- default:
- break;
- }
- var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + sizeCls, sizeCls), _classes);
- return h(
- 'div',
- { 'class': classes },
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["filterEmpty"])($slots['default'])]
- );
- }
- });
- /***/ }),
- /***/ "./components/button/button.jsx":
- /*!**************************************!*\
- !*** ./components/button/button.jsx ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_wave__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/wave */ "./components/_util/wave.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _buttonTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./buttonTypes */ "./components/button/buttonTypes.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/;
- var isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);
- var props = Object(_buttonTypes__WEBPACK_IMPORTED_MODULE_5__["default"])();
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AButton',
- inheritAttrs: false,
- __ANT_BUTTON: true,
- props: props,
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- return {
- sizeMap: {
- large: 'lg',
- small: 'sm'
- },
- sLoading: !!this.loading,
- hasTwoCNChar: false
- };
- },
- computed: {
- classes: function classes() {
- var _ref;
- var customizePrefixCls = this.prefixCls,
- type = this.type,
- shape = this.shape,
- size = this.size,
- hasTwoCNChar = this.hasTwoCNChar,
- sLoading = this.sLoading,
- ghost = this.ghost,
- block = this.block,
- icon = this.icon,
- $slots = this.$slots;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('btn', customizePrefixCls);
- var autoInsertSpace = this.configProvider.autoInsertSpaceInButton !== false;
- // large => lg
- // small => sm
- var sizeCls = '';
- switch (size) {
- case 'large':
- sizeCls = 'lg';
- break;
- case 'small':
- sizeCls = 'sm';
- break;
- default:
- break;
- }
- var iconType = sLoading ? 'loading' : icon;
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])($slots['default']);
- return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-' + type, type), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-' + shape, shape), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-' + sizeCls, sizeCls), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-icon-only', children.length === 0 && iconType), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-loading', sLoading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-background-ghost', ghost || type === 'ghost'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-two-chinese-chars', hasTwoCNChar && autoInsertSpace), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-block', block), _ref;
- }
- },
- watch: {
- loading: function loading(val, preVal) {
- var _this = this;
- if (preVal && typeof preVal !== 'boolean') {
- clearTimeout(this.delayTimeout);
- }
- if (val && typeof val !== 'boolean' && val.delay) {
- this.delayTimeout = setTimeout(function () {
- _this.sLoading = !!val;
- }, val.delay);
- } else {
- this.sLoading = !!val;
- }
- }
- },
- mounted: function mounted() {
- this.fixTwoCNChar();
- },
- updated: function updated() {
- this.fixTwoCNChar();
- },
- beforeDestroy: function beforeDestroy() {
- // if (this.timeout) {
- // clearTimeout(this.timeout)
- // }
- if (this.delayTimeout) {
- clearTimeout(this.delayTimeout);
- }
- },
- methods: {
- fixTwoCNChar: function fixTwoCNChar() {
- // Fix for HOC usage like <FormatMessage />
- var node = this.$refs.buttonNode;
- if (!node) {
- return;
- }
- var buttonText = node.textContent;
- if (this.isNeedInserted() && isTwoCNChar(buttonText)) {
- if (!this.hasTwoCNChar) {
- this.hasTwoCNChar = true;
- }
- } else if (this.hasTwoCNChar) {
- this.hasTwoCNChar = false;
- }
- },
- handleClick: function handleClick(event) {
- var sLoading = this.$data.sLoading;
- if (sLoading) {
- return;
- }
- this.$emit('click', event);
- },
- insertSpace: function insertSpace(child, needInserted) {
- var h = this.$createElement;
- var SPACE = needInserted ? ' ' : '';
- if (typeof child.text === 'string') {
- var text = child.text.trim();
- if (isTwoCNChar(text)) {
- text = text.split('').join(SPACE);
- }
- return h('span', [text]);
- }
- return child;
- },
- isNeedInserted: function isNeedInserted() {
- var $slots = this.$slots,
- type = this.type;
- var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon');
- return $slots['default'] && $slots['default'].length === 1 && !icon && type !== 'link';
- }
- },
- render: function render() {
- var _this2 = this;
- var h = arguments[0];
- var type = this.type,
- htmlType = this.htmlType,
- classes = this.classes,
- disabled = this.disabled,
- handleClick = this.handleClick,
- sLoading = this.sLoading,
- $slots = this.$slots,
- $attrs = this.$attrs;
- var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon');
- var buttonProps = {
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $attrs, {
- disabled: disabled
- }),
- 'class': classes,
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
- click: handleClick
- })
- };
- var iconType = sLoading ? 'loading' : icon;
- var iconNode = iconType ? h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: { type: iconType }
- }) : null;
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])($slots['default']);
- var autoInsertSpace = this.configProvider.autoInsertSpaceInButton !== false;
- var kids = children.map(function (child) {
- return _this2.insertSpace(child, _this2.isNeedInserted() && autoInsertSpace);
- });
- if ($attrs.href !== undefined) {
- return h(
- 'a',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([buttonProps, { ref: 'buttonNode' }]),
- [iconNode, kids]
- );
- }
- var buttonNode = h(
- 'button',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([buttonProps, { ref: 'buttonNode', attrs: { type: htmlType || 'button' }
- }]),
- [iconNode, kids]
- );
- if (type === 'link') {
- return buttonNode;
- }
- return h(_util_wave__WEBPACK_IMPORTED_MODULE_3__["default"], [buttonNode]);
- }
- });
- /***/ }),
- /***/ "./components/button/buttonTypes.js":
- /*!******************************************!*\
- !*** ./components/button/buttonTypes.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = (function () {
- return {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- htmlType: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['button', 'submit', 'reset']).def('button'),
- icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- shape: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['circle', 'circle-outline', 'round']),
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['small', 'large', 'default']).def('default'),
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- ghost: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- block: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
- };
- });
- /***/ }),
- /***/ "./components/button/index.js":
- /*!************************************!*\
- !*** ./components/button/index.js ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./button */ "./components/button/button.jsx");
- /* harmony import */ var _button_group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./button-group */ "./components/button/button-group.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _button__WEBPACK_IMPORTED_MODULE_0__["default"].Group = _button_group__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _button__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
- Vue.component(_button__WEBPACK_IMPORTED_MODULE_0__["default"].name, _button__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_button_group__WEBPACK_IMPORTED_MODULE_1__["default"].name, _button_group__WEBPACK_IMPORTED_MODULE_1__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_button__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/button/style/index.js":
- /*!******************************************!*\
- !*** ./components/button/style/index.js ***!
- \******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/button/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/button/style/index.less":
- /*!********************************************!*\
- !*** ./components/button/style/index.less ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/calendar/Header.jsx":
- /*!****************************************!*\
- !*** ./components/calendar/Header.jsx ***!
- \****************************************/
- /*! exports provided: HeaderProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderProps", function() { return HeaderProps; });
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
- /* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../radio */ "./components/radio/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var Option = _select__WEBPACK_IMPORTED_MODULE_1__["default"].Option;
- function getMonthsLocale(value) {
- var current = value.clone();
- var localeData = value.localeData();
- var months = [];
- for (var i = 0; i < 12; i++) {
- current.month(i);
- months.push(localeData.monthsShort(current));
- }
- return months;
- }
- var HeaderProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- fullscreen: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].boolean,
- yearSelectOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- yearSelectTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- // onValueChange: PropTypes.(value: moment.Moment) => void,
- // onTypeChange: PropTypes.(type: string) => void,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- validRange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- headerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(HeaderProps, {
- yearSelectOffset: 10,
- yearSelectTotal: 20
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
- } }
- },
- // private calenderHeaderNode: HTMLDivElement;
- methods: {
- getYearSelectElement: function getYearSelectElement(prefixCls, year) {
- var _this = this;
- var h = this.$createElement;
- var yearSelectOffset = this.yearSelectOffset,
- yearSelectTotal = this.yearSelectTotal,
- _locale = this.locale,
- locale = _locale === undefined ? {} : _locale,
- fullscreen = this.fullscreen,
- validRange = this.validRange;
- var start = year - yearSelectOffset;
- var end = start + yearSelectTotal;
- if (validRange) {
- start = validRange[0].get('year');
- end = validRange[1].get('year') + 1;
- }
- var suffix = locale.year === '年' ? '年' : '';
- var options = [];
- for (var index = start; index < end; index++) {
- options.push(h(
- Option,
- { key: '' + index },
- [index + suffix]
- ));
- }
- return h(
- _select__WEBPACK_IMPORTED_MODULE_1__["default"],
- {
- attrs: {
- size: fullscreen ? 'default' : 'small',
- dropdownMatchSelectWidth: false,
- value: String(year),
- getPopupContainer: function getPopupContainer() {
- return _this.getCalenderHeaderNode();
- }
- },
- 'class': prefixCls + '-year-select',
- on: {
- 'change': this.onYearChange
- }
- },
- [options]
- );
- },
- getMonthSelectElement: function getMonthSelectElement(prefixCls, month, months) {
- var _this2 = this;
- var h = this.$createElement;
- var fullscreen = this.fullscreen,
- validRange = this.validRange,
- value = this.value;
- var options = [];
- var start = 0;
- var end = 12;
- if (validRange) {
- var _validRange = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(validRange, 2),
- rangeStart = _validRange[0],
- rangeEnd = _validRange[1];
- var currentYear = value.get('year');
- if (rangeEnd.get('year') === currentYear) {
- end = rangeEnd.get('month') + 1;
- }
- if (rangeStart.get('year') === currentYear) {
- start = rangeStart.get('month');
- }
- }
- for (var index = start; index < end; index++) {
- options.push(h(
- Option,
- { key: '' + index },
- [months[index]]
- ));
- }
- return h(
- _select__WEBPACK_IMPORTED_MODULE_1__["default"],
- {
- attrs: {
- size: fullscreen ? 'default' : 'small',
- dropdownMatchSelectWidth: false,
- value: String(month),
- getPopupContainer: function getPopupContainer() {
- return _this2.getCalenderHeaderNode();
- }
- },
- 'class': prefixCls + '-month-select', on: {
- 'change': this.onMonthChange
- }
- },
- [options]
- );
- },
- onYearChange: function onYearChange(year) {
- var value = this.value,
- validRange = this.validRange;
- var newValue = value.clone();
- newValue.year(parseInt(year, 10));
- // switch the month so that it remains within range when year changes
- if (validRange) {
- var _validRange2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(validRange, 2),
- start = _validRange2[0],
- end = _validRange2[1];
- var newYear = newValue.get('year');
- var newMonth = newValue.get('month');
- if (newYear === end.get('year') && newMonth > end.get('month')) {
- newValue.month(end.get('month'));
- }
- if (newYear === start.get('year') && newMonth < start.get('month')) {
- newValue.month(start.get('month'));
- }
- }
- this.$emit('valueChange', newValue);
- },
- onMonthChange: function onMonthChange(month) {
- var newValue = this.value.clone();
- newValue.month(parseInt(month, 10));
- this.$emit('valueChange', newValue);
- },
- onInternalTypeChange: function onInternalTypeChange(e) {
- this.onTypeChange(e.target.value);
- },
- onTypeChange: function onTypeChange(val) {
- this.$emit('typeChange', val);
- },
- getCalenderHeaderNode: function getCalenderHeaderNode() {
- return this.$refs.calenderHeaderNode;
- },
- getMonthYearSelections: function getMonthYearSelections(getPrefixCls) {
- var _$props = this.$props,
- customizePrefixCls = _$props.prefixCls,
- type = _$props.type,
- value = _$props.value;
- var prefixCls = getPrefixCls('fullcalendar', customizePrefixCls);
- var yearReactNode = this.getYearSelectElement(prefixCls, value.year());
- var monthReactNode = type === 'month' ? this.getMonthSelectElement(prefixCls, value.month(), getMonthsLocale(value)) : null;
- return {
- yearReactNode: yearReactNode,
- monthReactNode: monthReactNode
- };
- },
- getTypeSwitch: function getTypeSwitch() {
- var h = this.$createElement;
- var _$props2 = this.$props,
- _$props2$locale = _$props2.locale,
- locale = _$props2$locale === undefined ? {} : _$props2$locale,
- type = _$props2.type,
- fullscreen = _$props2.fullscreen;
- var size = fullscreen ? 'default' : 'small';
- return h(
- _radio__WEBPACK_IMPORTED_MODULE_2__["Group"],
- {
- on: {
- 'change': this.onInternalTypeChange
- },
- attrs: { value: type, size: size }
- },
- [h(
- _radio__WEBPACK_IMPORTED_MODULE_2__["Button"],
- {
- attrs: { value: 'month' }
- },
- [locale.month]
- ), h(
- _radio__WEBPACK_IMPORTED_MODULE_2__["Button"],
- {
- attrs: { value: 'year' }
- },
- [locale.year]
- )]
- );
- },
- onValueChange: function onValueChange() {
- this.$emit.apply(this, ['valueChange'].concat(Array.prototype.slice.call(arguments)));
- },
- headerRenderCustom: function headerRenderCustom(headerRender) {
- var _$props3 = this.$props,
- type = _$props3.type,
- value = _$props3.value;
- return headerRender({
- value: value,
- type: type || 'month',
- onChange: this.onValueChange,
- onTypeChange: this.onTypeChange
- });
- }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- headerRender = this.headerRender;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('fullcalendar', customizePrefixCls);
- var typeSwitch = this.getTypeSwitch();
- var _getMonthYearSelectio = this.getMonthYearSelections(getPrefixCls),
- yearReactNode = _getMonthYearSelectio.yearReactNode,
- monthReactNode = _getMonthYearSelectio.monthReactNode;
- return headerRender ? this.headerRenderCustom(headerRender) : h(
- 'div',
- { 'class': prefixCls + '-header', ref: 'calenderHeaderNode' },
- [yearReactNode, monthReactNode, typeSwitch]
- );
- }
- });
- /***/ }),
- /***/ "./components/calendar/index.jsx":
- /*!***************************************!*\
- !*** ./components/calendar/index.jsx ***!
- \***************************************/
- /*! exports provided: CalendarMode, CalendarProps, HeaderProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarMode", function() { return CalendarMode; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarProps", function() { return CalendarProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _vc_calendar_src_FullCalendar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-calendar/src/FullCalendar */ "./components/vc-calendar/src/FullCalendar.jsx");
- /* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Header */ "./components/calendar/Header.jsx");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./locale/en_US */ "./components/calendar/locale/en_US.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderProps", function() { return _Header__WEBPACK_IMPORTED_MODULE_7__["HeaderProps"]; });
- function noop() {
- return null;
- }
- function zerofixed(v) {
- if (v < 10) {
- return '0' + v;
- }
- return '' + v;
- }
- function isMomentArray(value) {
- return Array.isArray(value) && !!value.find(function (val) {
- return moment__WEBPACK_IMPORTED_MODULE_5__["isMoment"](val);
- });
- }
- var CalendarMode = _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['month', 'year']);
- var CalendarProps = function CalendarProps() {
- return {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- value: _util_moment_util__WEBPACK_IMPORTED_MODULE_13__["TimeType"],
- defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_13__["TimeType"],
- mode: CalendarMode,
- fullscreen: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- // dateCellRender: PropTypes.func,
- // monthCellRender: PropTypes.func,
- // dateFullCellRender: PropTypes.func,
- // monthFullCellRender: PropTypes.func,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- // onPanelChange?: (date?: moment.Moment, mode?: CalendarMode) => void;
- // onSelect?: (date?: moment.Moment) => void;
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- validRange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].custom(isMomentArray),
- headerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- valueFormat: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
- };
- };
- var Calendar = {
- name: 'ACalendar',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(CalendarProps(), {
- locale: {},
- fullscreen: true
- }),
- model: {
- prop: 'value',
- event: 'change'
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var value = this.value,
- defaultValue = this.defaultValue,
- valueFormat = this.valueFormat;
- var sValue = value || defaultValue || Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_5__)();
- Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["checkValidate"])('Calendar', defaultValue, 'defaultValue', valueFormat);
- Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["checkValidate"])('Calendar', value, 'value', valueFormat);
- this._sPrefixCls = undefined;
- return {
- sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["stringToMoment"])(sValue, valueFormat),
- sMode: this.mode || 'month'
- };
- },
- watch: {
- value: function value(val) {
- Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["checkValidate"])('Calendar', val, 'value', this.valueFormat);
- this.setState({
- sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["stringToMoment"])(val, this.valueFormat)
- });
- },
- mode: function mode(val) {
- this.setState({
- sMode: val
- });
- }
- },
- methods: {
- onHeaderValueChange: function onHeaderValueChange(value) {
- this.setValue(value, 'changePanel');
- },
- onHeaderTypeChange: function onHeaderTypeChange(mode) {
- this.sMode = mode;
- this.onPanelChange(this.sValue, mode);
- },
- onPanelChange: function onPanelChange(value, mode) {
- var val = this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["momentToString"])(value, this.valueFormat) : value;
- this.$emit('panelChange', val, mode);
- if (value !== this.sValue) {
- this.$emit('change', val);
- }
- },
- onSelect: function onSelect(value) {
- this.setValue(value, 'select');
- },
- setValue: function setValue(value, way) {
- var prevValue = this.value ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["stringToMoment"])(this.value, this.valueFormat) : this.sValue;
- var mode = this.sMode,
- valueFormat = this.valueFormat;
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'value')) {
- this.setState({ sValue: value });
- }
- if (way === 'select') {
- if (prevValue && prevValue.month() !== value.month()) {
- this.onPanelChange(value, mode);
- }
- this.$emit('select', valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["momentToString"])(value, valueFormat) : value);
- } else if (way === 'changePanel') {
- this.onPanelChange(value, mode);
- }
- },
- getDateRange: function getDateRange(validRange, disabledDate) {
- return function (current) {
- if (!current) {
- return false;
- }
- var _validRange = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(validRange, 2),
- startDate = _validRange[0],
- endDate = _validRange[1];
- var inRange = !current.isBetween(startDate, endDate, 'days', '[]');
- if (disabledDate) {
- return disabledDate(current) || inRange;
- }
- return inRange;
- };
- },
- getDefaultLocale: function getDefaultLocale() {
- var result = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _locale_en_US__WEBPACK_IMPORTED_MODULE_11__["default"], this.$props.locale);
- result.lang = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, result.lang, (this.$props.locale || {}).lang);
- return result;
- },
- monthCellRender2: function monthCellRender2(value) {
- var h = this.$createElement;
- var _sPrefixCls = this._sPrefixCls,
- $scopedSlots = this.$scopedSlots;
- var monthCellRender = this.monthCellRender || $scopedSlots.monthCellRender || noop;
- return h(
- 'div',
- { 'class': _sPrefixCls + '-month' },
- [h(
- 'div',
- { 'class': _sPrefixCls + '-value' },
- [value.localeData().monthsShort(value)]
- ), h(
- 'div',
- { 'class': _sPrefixCls + '-content' },
- [monthCellRender(value)]
- )]
- );
- },
- dateCellRender2: function dateCellRender2(value) {
- var h = this.$createElement;
- var _sPrefixCls = this._sPrefixCls,
- $scopedSlots = this.$scopedSlots;
- var dateCellRender = this.dateCellRender || $scopedSlots.dateCellRender || noop;
- return h(
- 'div',
- { 'class': _sPrefixCls + '-date' },
- [h(
- 'div',
- { 'class': _sPrefixCls + '-value' },
- [zerofixed(value.date())]
- ), h(
- 'div',
- { 'class': _sPrefixCls + '-content' },
- [dateCellRender(value)]
- )]
- );
- },
- renderCalendar: function renderCalendar(locale, localeCode) {
- var h = this.$createElement;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
- var value = this.sValue,
- mode = this.sMode,
- $scopedSlots = this.$scopedSlots;
- if (value && localeCode) {
- value.locale(localeCode);
- }
- var customizePrefixCls = props.prefixCls,
- fullscreen = props.fullscreen,
- dateFullCellRender = props.dateFullCellRender,
- monthFullCellRender = props.monthFullCellRender;
- var headerRender = this.headerRender || $scopedSlots.headerRender;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('fullcalendar', customizePrefixCls);
- // To support old version react.
- // Have to add prefixCls on the instance.
- // https://github.com/facebook/react/issues/12397
- this._sPrefixCls = prefixCls;
- var cls = '';
- if (fullscreen) {
- cls += ' ' + prefixCls + '-fullscreen';
- }
- var monthCellRender = monthFullCellRender || $scopedSlots.monthFullCellRender || this.monthCellRender2;
- var dateCellRender = dateFullCellRender || $scopedSlots.dateFullCellRender || this.dateCellRender2;
- var disabledDate = props.disabledDate;
- if (props.validRange) {
- disabledDate = this.getDateRange(props.validRange, disabledDate);
- }
- var fullCalendarProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
- Select: {},
- locale: locale.lang,
- type: mode === 'year' ? 'month' : 'date',
- prefixCls: prefixCls,
- showHeader: false,
- value: value,
- monthCellRender: monthCellRender,
- dateCellRender: dateCellRender,
- disabledDate: disabledDate
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this), {
- select: this.onSelect
- })
- };
- return h(
- 'div',
- { 'class': cls },
- [h(_Header__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: {
- fullscreen: fullscreen,
- type: mode,
- headerRender: headerRender,
- value: value,
- locale: locale.lang,
- prefixCls: prefixCls,
- validRange: props.validRange
- },
- on: {
- 'typeChange': this.onHeaderTypeChange,
- 'valueChange': this.onHeaderValueChange
- }
- }), h(_vc_calendar_src_FullCalendar__WEBPACK_IMPORTED_MODULE_6__["default"], fullCalendarProps)]
- );
- }
- },
- render: function render() {
- var h = arguments[0];
- return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: {
- componentName: 'Calendar',
- defaultLocale: this.getDefaultLocale
- },
- scopedSlots: { 'default': this.renderCalendar }
- });
- }
- };
- /* istanbul ignore next */
- Calendar.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_12__["default"]);
- Vue.component(Calendar.name, Calendar);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Calendar);
- /***/ }),
- /***/ "./components/calendar/locale/en_US.js":
- /*!*********************************************!*\
- !*** ./components/calendar/locale/en_US.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../date-picker/locale/en_US */ "./components/date-picker/locale/en_US.js");
- /* harmony default export */ __webpack_exports__["default"] = (_date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/calendar/style/index.js":
- /*!********************************************!*\
- !*** ./components/calendar/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/calendar/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
- /* harmony import */ var _radio_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../radio/style */ "./components/radio/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/calendar/style/index.less":
- /*!**********************************************!*\
- !*** ./components/calendar/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/card/Card.jsx":
- /*!**********************************!*\
- !*** ./components/card/Card.jsx ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _tabs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tabs */ "./components/tabs/index.js");
- /* harmony import */ var _row__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../row */ "./components/row/index.js");
- /* harmony import */ var _col__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../col */ "./components/col/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var TabPane = _tabs__WEBPACK_IMPORTED_MODULE_4__["default"].TabPane;
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ACard',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__["default"]],
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(true),
- bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
- headStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
- hoverable: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOf(['default', 'small']),
- actions: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- tabList: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
- tabProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
- tabBarExtraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- activeTabKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- defaultActiveTabKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- return {
- widerPadding: false
- };
- },
- methods: {
- getAction: function getAction(actions) {
- var h = this.$createElement;
- var actionList = actions.map(function (action, index) {
- return h(
- 'li',
- { style: { width: 100 / actions.length + '%' }, key: 'action-' + index },
- [h('span', [action])]
- );
- });
- return actionList;
- },
- onTabChange: function onTabChange(key) {
- this.$emit('tabChange', key);
- },
- isContainGrid: function isContainGrid() {
- var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var containGrid = void 0;
- obj.forEach(function (element) {
- if (element && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlotOptions"])(element).__ANT_CARD_GRID) {
- containGrid = true;
- }
- });
- return containGrid;
- }
- },
- render: function render() {
- var _classString, _extends2;
- var h = arguments[0];
- var _$props = this.$props,
- customizePrefixCls = _$props.prefixCls,
- _$props$headStyle = _$props.headStyle,
- headStyle = _$props$headStyle === undefined ? {} : _$props$headStyle,
- _$props$bodyStyle = _$props.bodyStyle,
- bodyStyle = _$props$bodyStyle === undefined ? {} : _$props$bodyStyle,
- loading = _$props.loading,
- _$props$bordered = _$props.bordered,
- bordered = _$props$bordered === undefined ? true : _$props$bordered,
- _$props$size = _$props.size,
- size = _$props$size === undefined ? 'default' : _$props$size,
- type = _$props.type,
- tabList = _$props.tabList,
- _$props$tabProps = _$props.tabProps,
- tabProps = _$props$tabProps === undefined ? {} : _$props$tabProps,
- hoverable = _$props.hoverable,
- activeTabKey = _$props.activeTabKey,
- defaultActiveTabKey = _$props.defaultActiveTabKey;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('card', customizePrefixCls);
- var $slots = this.$slots,
- $scopedSlots = this.$scopedSlots;
- var tabBarExtraContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'tabBarExtraContent');
- var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-loading', loading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-bordered', bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-hoverable', !!hoverable), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-contain-grid', this.isContainGrid($slots['default'])), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-contain-tabs', tabList && tabList.length), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-' + size, size !== 'default'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-type-' + type, !!type), _classString);
- var loadingBlockStyle = bodyStyle.padding === 0 || bodyStyle.padding === '0px' ? { padding: 24 } : undefined;
- var loadingBlock = h(
- 'div',
- { 'class': prefixCls + '-loading-content', style: loadingBlockStyle },
- [h(
- _row__WEBPACK_IMPORTED_MODULE_5__["default"],
- {
- attrs: { gutter: 8 }
- },
- [h(
- _col__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { span: 22 }
- },
- [h('div', { 'class': prefixCls + '-loading-block' })]
- )]
- ), h(
- _row__WEBPACK_IMPORTED_MODULE_5__["default"],
- {
- attrs: { gutter: 8 }
- },
- [h(
- _col__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { span: 8 }
- },
- [h('div', { 'class': prefixCls + '-loading-block' })]
- ), h(
- _col__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { span: 15 }
- },
- [h('div', { 'class': prefixCls + '-loading-block' })]
- )]
- ), h(
- _row__WEBPACK_IMPORTED_MODULE_5__["default"],
- {
- attrs: { gutter: 8 }
- },
- [h(
- _col__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { span: 6 }
- },
- [h('div', { 'class': prefixCls + '-loading-block' })]
- ), h(
- _col__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { span: 18 }
- },
- [h('div', { 'class': prefixCls + '-loading-block' })]
- )]
- ), h(
- _row__WEBPACK_IMPORTED_MODULE_5__["default"],
- {
- attrs: { gutter: 8 }
- },
- [h(
- _col__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { span: 13 }
- },
- [h('div', { 'class': prefixCls + '-loading-block' })]
- ), h(
- _col__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { span: 9 }
- },
- [h('div', { 'class': prefixCls + '-loading-block' })]
- )]
- ), h(
- _row__WEBPACK_IMPORTED_MODULE_5__["default"],
- {
- attrs: { gutter: 8 }
- },
- [h(
- _col__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { span: 4 }
- },
- [h('div', { 'class': prefixCls + '-loading-block' })]
- ), h(
- _col__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { span: 3 }
- },
- [h('div', { 'class': prefixCls + '-loading-block' })]
- ), h(
- _col__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { span: 16 }
- },
- [h('div', { 'class': prefixCls + '-loading-block' })]
- )]
- )]
- );
- var hasActiveTabKey = activeTabKey !== undefined;
- var tabsProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- size: 'large'
- }, tabProps, (_extends2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends2, hasActiveTabKey ? 'activeKey' : 'defaultActiveKey', hasActiveTabKey ? activeTabKey : defaultActiveTabKey), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends2, 'tabBarExtraContent', tabBarExtraContent), _extends2)),
- on: {
- change: this.onTabChange
- },
- 'class': prefixCls + '-head-tabs'
- };
- var head = void 0;
- var tabs = tabList && tabList.length ? h(
- _tabs__WEBPACK_IMPORTED_MODULE_4__["default"],
- tabsProps,
- [tabList.map(function (item) {
- var temp = item.tab,
- _item$scopedSlots = item.scopedSlots,
- scopedSlots = _item$scopedSlots === undefined ? {} : _item$scopedSlots;
- var name = scopedSlots.tab;
- var tab = temp !== undefined ? temp : $scopedSlots[name] ? $scopedSlots[name](item) : null;
- return h(TabPane, {
- attrs: { tab: tab, disabled: item.disabled },
- key: item.key });
- })]
- ) : null;
- var titleDom = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'title');
- var extraDom = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'extra');
- if (titleDom || extraDom || tabs) {
- head = h(
- 'div',
- { 'class': prefixCls + '-head', style: headStyle },
- [h(
- 'div',
- { 'class': prefixCls + '-head-wrapper' },
- [titleDom && h(
- 'div',
- { 'class': prefixCls + '-head-title' },
- [titleDom]
- ), extraDom && h(
- 'div',
- { 'class': prefixCls + '-extra' },
- [extraDom]
- )]
- ), tabs]
- );
- }
- var children = $slots['default'];
- var cover = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'cover');
- var coverDom = cover ? h(
- 'div',
- { 'class': prefixCls + '-cover' },
- [cover]
- ) : null;
- var body = h(
- 'div',
- { 'class': prefixCls + '-body', style: bodyStyle },
- [loading ? loadingBlock : children]
- );
- var actions = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["filterEmpty"])(this.$slots.actions);
- var actionDom = actions && actions.length ? h(
- 'ul',
- { 'class': prefixCls + '-actions' },
- [this.getAction(actions)]
- ) : null;
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- 'class': classString,
- ref: 'cardContainerRef'
- }, { on: Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this), ['tabChange', 'tab-change']) }]),
- [head, coverDom, children ? body : null, actionDom]
- );
- }
- });
- /***/ }),
- /***/ "./components/card/Grid.jsx":
- /*!**********************************!*\
- !*** ./components/card/Grid.jsx ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ACardGrid',
- __ANT_CARD_GRID: true,
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- hoverable: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
- } }
- },
- render: function render() {
- var _classString;
- var h = arguments[0];
- var _$props = this.$props,
- customizePrefixCls = _$props.prefixCls,
- _$props$hoverable = _$props.hoverable,
- hoverable = _$props$hoverable === undefined ? true : _$props$hoverable;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('card', customizePrefixCls);
- var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-grid', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-grid-hoverable', hoverable), _classString);
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this) }, { 'class': classString }]),
- [this.$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/card/Meta.jsx":
- /*!**********************************!*\
- !*** ./components/card/Meta.jsx ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ACardMeta',
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- description: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
- } }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.$props.prefixCls;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('card', customizePrefixCls);
- var classString = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-meta', true);
- var avatar = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'avatar');
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'title');
- var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'description');
- var avatarDom = avatar ? h(
- 'div',
- { 'class': prefixCls + '-meta-avatar' },
- [avatar]
- ) : null;
- var titleDom = title ? h(
- 'div',
- { 'class': prefixCls + '-meta-title' },
- [title]
- ) : null;
- var descriptionDom = description ? h(
- 'div',
- { 'class': prefixCls + '-meta-description' },
- [description]
- ) : null;
- var MetaDetail = titleDom || descriptionDom ? h(
- 'div',
- { 'class': prefixCls + '-meta-detail' },
- [titleDom, descriptionDom]
- ) : null;
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this) }, { 'class': classString }]),
- [avatarDom, MetaDetail]
- );
- }
- });
- /***/ }),
- /***/ "./components/card/index.js":
- /*!**********************************!*\
- !*** ./components/card/index.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Card */ "./components/card/Card.jsx");
- /* harmony import */ var _Meta__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Meta */ "./components/card/Meta.jsx");
- /* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Grid */ "./components/card/Grid.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _Card__WEBPACK_IMPORTED_MODULE_0__["default"].Meta = _Meta__WEBPACK_IMPORTED_MODULE_1__["default"];
- _Card__WEBPACK_IMPORTED_MODULE_0__["default"].Grid = _Grid__WEBPACK_IMPORTED_MODULE_2__["default"];
- /* istanbul ignore next */
- _Card__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
- Vue.component(_Card__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Card__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_Meta__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Meta__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_Grid__WEBPACK_IMPORTED_MODULE_2__["default"].name, _Grid__WEBPACK_IMPORTED_MODULE_2__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Card__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/card/style/index.js":
- /*!****************************************!*\
- !*** ./components/card/style/index.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/card/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _tabs_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tabs/style */ "./components/tabs/style/index.js");
- /* harmony import */ var _row_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../row/style */ "./components/row/style/index.js");
- /* harmony import */ var _col_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../col/style */ "./components/col/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/card/style/index.less":
- /*!******************************************!*\
- !*** ./components/card/style/index.less ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/carousel/index.jsx":
- /*!***************************************!*\
- !*** ./components/carousel/index.jsx ***!
- \***************************************/
- /*! exports provided: CarouselEffect, CarouselProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CarouselEffect", function() { return CarouselEffect; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CarouselProps", function() { return CarouselProps; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
- // matchMedia polyfill for
- // https://github.com/WickyNilliams/enquire.js/issues/82
- if (typeof window !== 'undefined') {
- var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {
- return {
- media: mediaQuery,
- matches: false,
- addListener: function addListener() {},
- removeListener: function removeListener() {}
- };
- };
- // ref: https://github.com/ant-design/ant-design/issues/18774
- if (!window.matchMedia) window.matchMedia = matchMediaPolyfill;
- }
- // Use require over import (will be lifted up)
- // make sure matchMedia polyfill run before require('vc-slick')
- // Fix https://github.com/ant-design/ant-design/issues/6560
- // Fix https://github.com/ant-design/ant-design/issues/3308
- var SlickCarousel = __webpack_require__(/*! ../vc-slick/src */ "./components/vc-slick/src/index.js")['default'];
- var CarouselEffect = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['scrollx', 'fade']);
- // Carousel
- var CarouselProps = {
- effect: CarouselEffect,
- dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- autoplay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- easing: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- beforeChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- afterChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- // style: PropTypes.React.CSSProperties,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- accessibility: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- nextArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- prevArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- pauseOnHover: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- // className: PropTypes.string,
- adaptiveHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- arrows: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- autoplaySpeed: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- centerMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- centerPadding: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- cssEase: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- dotsClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- fade: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- focusOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- infinite: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- initialSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- lazyLoad: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- rtl: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- slide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- slidesToShow: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- slidesToScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- speed: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- swipe: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- swipeToSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- touchMove: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- touchThreshold: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- variableWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- useCSS: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- slickGoTo: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- responsive: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- dotPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['top', 'bottom', 'left', 'right'])
- };
- var Carousel = {
- name: 'ACarousel',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(CarouselProps, {
- dots: true,
- arrows: false,
- draggable: false
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
- } }
- },
- beforeMount: function beforeMount() {
- this.onWindowResized = lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default()(this.onWindowResized, 500, {
- leading: false
- });
- },
- mounted: function mounted() {
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'vertical')) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(!this.vertical, 'Carousel', '`vertical` is deprecated, please use `dotPosition` instead.');
- }
- var autoplay = this.autoplay;
- if (autoplay) {
- window.addEventListener('resize', this.onWindowResized);
- }
- // https://github.com/ant-design/ant-design/issues/7191
- this.innerSlider = this.$refs.slick && this.$refs.slick.innerSlider;
- },
- beforeDestroy: function beforeDestroy() {
- var autoplay = this.autoplay;
- if (autoplay) {
- window.removeEventListener('resize', this.onWindowResized);
- this.onWindowResized.cancel();
- }
- },
- methods: {
- getDotPosition: function getDotPosition() {
- if (this.dotPosition) {
- return this.dotPosition;
- }
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'vertical')) {
- return this.vertical ? 'right' : 'bottom';
- }
- return 'bottom';
- },
- onWindowResized: function onWindowResized() {
- // Fix https://github.com/ant-design/ant-design/issues/2550
- var autoplay = this.autoplay;
- if (autoplay && this.$refs.slick && this.$refs.slick.innerSlider && this.$refs.slick.innerSlider.autoPlay) {
- this.$refs.slick.innerSlider.autoPlay();
- }
- },
- next: function next() {
- this.$refs.slick.slickNext();
- },
- prev: function prev() {
- this.$refs.slick.slickPrev();
- },
- goTo: function goTo(slide) {
- var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- this.$refs.slick.slickGoTo(slide, dontAnimate);
- }
- },
- render: function render() {
- var h = arguments[0];
- var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
- var $slots = this.$slots;
- if (props.effect === 'fade') {
- props.fade = true;
- }
- var getPrefixCls = this.configProvider.getPrefixCls;
- var className = getPrefixCls('carousel', props.prefixCls);
- var dotsClass = 'slick-dots';
- var dotPosition = this.getDotPosition();
- props.vertical = dotPosition === 'left' || dotPosition === 'right';
- props.dotsClass = classnames__WEBPACK_IMPORTED_MODULE_9___default()('' + dotsClass, dotsClass + '-' + (dotPosition || 'bottom'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, '' + props.dotsClass, !!props.dotsClass));
- if (props.vertical) {
- className = className + ' ' + className + '-vertical';
- }
- var SlickCarouselProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
- nextArrow: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'nextArrow'),
- prevArrow: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'prevArrow')
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
- scopedSlots: this.$scopedSlots
- };
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])($slots['default']);
- return h(
- 'div',
- { 'class': className },
- [h(
- SlickCarousel,
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ ref: 'slick' }, SlickCarouselProps]),
- [children]
- )]
- );
- }
- };
- /* istanbul ignore next */
- Carousel.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_7__["default"]);
- Vue.component(Carousel.name, Carousel);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Carousel);
- /***/ }),
- /***/ "./components/carousel/style/index.js":
- /*!********************************************!*\
- !*** ./components/carousel/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/carousel/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/carousel/style/index.less":
- /*!**********************************************!*\
- !*** ./components/carousel/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/cascader/index.jsx":
- /*!***************************************!*\
- !*** ./components/cascader/index.jsx ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_cascader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-cascader */ "./components/vc-cascader/index.js");
- /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! array-tree-filter */ "./node_modules/array-tree-filter/lib/index.js");
- /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(array_tree_filter__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../input */ "./components/input/index.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var CascaderOptionType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
- label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- key: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number])
- }).loose;
- var FieldNamesType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
- label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
- }).loose;
- var CascaderExpandTrigger = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['click', 'hover']);
- var ShowSearchType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
- filter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- render: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- sort: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- matchInputWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- limit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([Boolean, Number])
- }).loose;
- function noop() {}
- var CascaderProps = {
- /** 可选项数据源 */
- options: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(CascaderOptionType).def([]),
- /** 默认的选中项 */
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- /** 指定选中项 */
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- /** 选择完成后的回调 */
- // onChange?: (value: string[], selectedOptions?: CascaderOptionType[]) => void;
- /** 选择后展示的渲染函数 */
- displayRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('slide-up'),
- popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(function () {
- return {};
- }),
- /** 自定义浮层类名 */
- popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- /** 浮层预设位置:`bottomLeft` `bottomRight` `topLeft` `topRight` */
- popupPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['bottomLeft', 'bottomRight', 'topLeft', 'topRight']).def('bottomLeft'),
- /** 输入框占位文本*/
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('Please select'),
- /** 输入框大小,可选 `large` `default` `small` */
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['large', 'default', 'small']),
- /** 禁用*/
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
- /** 是否支持清除*/
- allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([Boolean, ShowSearchType]),
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- /** 次级菜单的展开方式,可选 'click' 和 'hover' */
- expandTrigger: CascaderExpandTrigger,
- /** 当此项为 true 时,点选每级菜单选项值都会发生变化 */
- changeOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- /** 浮层可见变化时回调 */
- // onPopupVisibleChange?: (popupVisible: boolean) => void;
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- popupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- fieldNames: FieldNamesType,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
- };
- // We limit the filtered item count by default
- var defaultLimit = 50;
- function defaultFilterOption(inputValue, path, names) {
- return path.some(function (option) {
- return option[names.label].indexOf(inputValue) > -1;
- });
- }
- function defaultSortFilteredOption(a, b, inputValue, names) {
- function callback(elem) {
- return elem[names.label].indexOf(inputValue) > -1;
- }
- return a.findIndex(callback) - b.findIndex(callback);
- }
- function getFilledFieldNames(_ref) {
- var _ref$fieldNames = _ref.fieldNames,
- fieldNames = _ref$fieldNames === undefined ? {} : _ref$fieldNames;
- var names = {
- children: fieldNames.children || 'children',
- label: fieldNames.label || 'label',
- value: fieldNames.value || 'value'
- };
- return names;
- }
- function flattenTree() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var props = arguments[1];
- var ancestor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
- var names = getFilledFieldNames(props);
- var flattenOptions = [];
- var childrenName = names.children;
- options.forEach(function (option) {
- var path = ancestor.concat(option);
- if (props.changeOnSelect || !option[childrenName] || !option[childrenName].length) {
- flattenOptions.push(path);
- }
- if (option[childrenName]) {
- flattenOptions = flattenOptions.concat(flattenTree(option[childrenName], props, path));
- }
- });
- return flattenOptions;
- }
- var defaultDisplayRender = function defaultDisplayRender(_ref2) {
- var labels = _ref2.labels;
- return labels.join(' / ');
- };
- var Cascader = {
- inheritAttrs: false,
- name: 'ACascader',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_12__["default"]],
- props: CascaderProps,
- model: {
- prop: 'value',
- event: 'change'
- },
- provide: function provide() {
- return {
- savePopupRef: this.savePopupRef
- };
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_15__["ConfigConsumerProps"];
- } },
- localeData: { 'default': function _default() {
- return {};
- } }
- },
- data: function data() {
- this.cachedOptions = [];
- var value = this.value,
- defaultValue = this.defaultValue,
- popupVisible = this.popupVisible,
- showSearch = this.showSearch,
- options = this.options;
- return {
- sValue: value || defaultValue || [],
- inputValue: '',
- inputFocused: false,
- sPopupVisible: popupVisible,
- flattenOptions: showSearch ? flattenTree(options, this.$props) : undefined
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.autoFocus && !_this.showSearch && !_this.disabled) {
- _this.$refs.picker.focus();
- }
- });
- },
- watch: {
- value: function value(val) {
- this.setState({ sValue: val || [] });
- },
- popupVisible: function popupVisible(val) {
- this.setState({ sPopupVisible: val });
- },
- options: function options(val) {
- if (this.showSearch) {
- this.setState({ flattenOptions: flattenTree(val, this.$props) });
- }
- }
- },
- methods: {
- savePopupRef: function savePopupRef(ref) {
- this.popupRef = ref;
- },
- highlightKeyword: function highlightKeyword(str, keyword, prefixCls) {
- var h = this.$createElement;
- return str.split(keyword).map(function (node, index) {
- return index === 0 ? node : [h(
- 'span',
- { 'class': prefixCls + '-menu-item-keyword' },
- [keyword]
- ), node];
- });
- },
- defaultRenderFilteredOption: function defaultRenderFilteredOption(_ref3) {
- var _this2 = this;
- var inputValue = _ref3.inputValue,
- path = _ref3.path,
- prefixCls = _ref3.prefixCls,
- names = _ref3.names;
- return path.map(function (option, index) {
- var label = option[names.label];
- var node = label.indexOf(inputValue) > -1 ? _this2.highlightKeyword(label, inputValue, prefixCls) : label;
- return index === 0 ? node : [' / ', node];
- });
- },
- handleChange: function handleChange(value, selectedOptions) {
- this.setState({ inputValue: '' });
- if (selectedOptions[0].__IS_FILTERED_OPTION) {
- var unwrappedValue = value[0];
- var unwrappedSelectedOptions = selectedOptions[0].path;
- this.setValue(unwrappedValue, unwrappedSelectedOptions);
- return;
- }
- this.setValue(value, selectedOptions);
- },
- handlePopupVisibleChange: function handlePopupVisibleChange(popupVisible) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(this, 'popupVisible')) {
- this.setState(function (state) {
- return {
- sPopupVisible: popupVisible,
- inputFocused: popupVisible,
- inputValue: popupVisible ? state.inputValue : ''
- };
- });
- }
- this.$emit('popupVisibleChange', popupVisible);
- },
- handleInputFocus: function handleInputFocus(e) {
- this.$emit('focus', e);
- },
- handleInputBlur: function handleInputBlur(e) {
- this.setState({
- inputFocused: false
- });
- this.$emit('blur', e);
- },
- handleInputClick: function handleInputClick(e) {
- var inputFocused = this.inputFocused,
- sPopupVisible = this.sPopupVisible;
- // Prevent `Trigger` behaviour.
- if (inputFocused || sPopupVisible) {
- e.stopPropagation();
- if (e.nativeEvent && e.nativeEvent.stopImmediatePropagation) {
- e.nativeEvent.stopImmediatePropagation();
- }
- }
- },
- handleKeyDown: function handleKeyDown(e) {
- if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].BACKSPACE || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].SPACE) {
- e.stopPropagation();
- }
- },
- handleInputChange: function handleInputChange(e) {
- var inputValue = e.target.value;
- this.setState({ inputValue: inputValue });
- this.$emit('search', inputValue);
- },
- setValue: function setValue(value, selectedOptions) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(this, 'value')) {
- this.setState({ sValue: value });
- }
- this.$emit('change', value, selectedOptions);
- },
- getLabel: function getLabel() {
- var options = this.options,
- $scopedSlots = this.$scopedSlots;
- var names = getFilledFieldNames(this.$props);
- var displayRender = this.displayRender || $scopedSlots.displayRender || defaultDisplayRender;
- var value = this.sValue;
- var unwrappedValue = Array.isArray(value[0]) ? value[0] : value;
- var selectedOptions = array_tree_filter__WEBPACK_IMPORTED_MODULE_5___default()(options, function (o, level) {
- return o[names.value] === unwrappedValue[level];
- }, { childrenKeyName: names.children });
- var labels = selectedOptions.map(function (o) {
- return o[names.label];
- });
- return displayRender({ labels: labels, selectedOptions: selectedOptions });
- },
- clearSelection: function clearSelection(e) {
- e.preventDefault();
- e.stopPropagation();
- if (!this.inputValue) {
- this.setValue([]);
- this.handlePopupVisibleChange(false);
- } else {
- this.setState({ inputValue: '' });
- }
- },
- generateFilteredOptions: function generateFilteredOptions(prefixCls, renderEmpty) {
- var _ref5;
- var h = this.$createElement;
- var showSearch = this.showSearch,
- notFoundContent = this.notFoundContent,
- $scopedSlots = this.$scopedSlots;
- var names = getFilledFieldNames(this.$props);
- var _showSearch$filter = showSearch.filter,
- filter = _showSearch$filter === undefined ? defaultFilterOption : _showSearch$filter,
- _showSearch$sort = showSearch.sort,
- sort = _showSearch$sort === undefined ? defaultSortFilteredOption : _showSearch$sort,
- _showSearch$limit = showSearch.limit,
- limit = _showSearch$limit === undefined ? defaultLimit : _showSearch$limit;
- var render = showSearch.render || $scopedSlots.showSearchRender || this.defaultRenderFilteredOption;
- var _$data = this.$data,
- _$data$flattenOptions = _$data.flattenOptions,
- flattenOptions = _$data$flattenOptions === undefined ? [] : _$data$flattenOptions,
- inputValue = _$data.inputValue;
- // Limit the filter if needed
- var filtered = void 0;
- if (limit > 0) {
- filtered = [];
- var matchCount = 0;
- // Perf optimization to filter items only below the limit
- flattenOptions.some(function (path) {
- var match = filter(inputValue, path, names);
- if (match) {
- filtered.push(path);
- matchCount += 1;
- }
- return matchCount >= limit;
- });
- } else {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_14__["default"])(typeof limit !== 'number', 'Cascader', "'limit' of showSearch in Cascader should be positive number or false.");
- filtered = flattenOptions.filter(function (path) {
- return filter(inputValue, path, names);
- });
- }
- filtered.sort(function (a, b) {
- return sort(a, b, inputValue, names);
- });
- if (filtered.length > 0) {
- return filtered.map(function (path) {
- var _ref4;
- return _ref4 = {
- __IS_FILTERED_OPTION: true,
- path: path
- }, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref4, names.label, render({ inputValue: inputValue, path: path, prefixCls: prefixCls, names: names })), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref4, names.value, path.map(function (o) {
- return o[names.value];
- })), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref4, 'disabled', path.some(function (o) {
- return !!o.disabled;
- })), _ref4;
- });
- }
- return [(_ref5 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref5, names.label, notFoundContent || renderEmpty(h, 'Cascader')), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref5, names.value, 'ANT_CASCADER_NOT_FOUND'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref5, 'disabled', true), _ref5)];
- },
- focus: function focus() {
- if (this.showSearch) {
- this.$refs.input.focus();
- } else {
- this.$refs.picker.focus();
- }
- },
- blur: function blur() {
- if (this.showSearch) {
- this.$refs.input.blur();
- } else {
- this.$refs.picker.blur();
- }
- }
- },
- render: function render() {
- var _classNames, _classNames2, _classNames3;
- var h = arguments[0];
- var $slots = this.$slots,
- sPopupVisible = this.sPopupVisible,
- inputValue = this.inputValue,
- configProvider = this.configProvider,
- localeData = this.localeData;
- var _$data2 = this.$data,
- value = _$data2.sValue,
- inputFocused = _$data2.inputFocused;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
- var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'suffixIcon');
- suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
- var getContextPopupContainer = configProvider.getPopupContainer;
- var customizePrefixCls = props.prefixCls,
- customizeInputPrefixCls = props.inputPrefixCls,
- _props$placeholder = props.placeholder,
- placeholder = _props$placeholder === undefined ? localeData.placeholder : _props$placeholder,
- size = props.size,
- disabled = props.disabled,
- allowClear = props.allowClear,
- _props$showSearch = props.showSearch,
- showSearch = _props$showSearch === undefined ? false : _props$showSearch,
- notFoundContent = props.notFoundContent,
- otherProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(props, ['prefixCls', 'inputPrefixCls', 'placeholder', 'size', 'disabled', 'allowClear', 'showSearch', 'notFoundContent']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var renderEmpty = this.configProvider.renderEmpty;
- var prefixCls = getPrefixCls('cascader', customizePrefixCls);
- var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
- var sizeCls = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, inputPrefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, inputPrefixCls + '-sm', size === 'small'), _classNames));
- var clearIcon = allowClear && !disabled && value.length > 0 || inputValue ? h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: {
- type: 'close-circle',
- theme: 'filled'
- },
- 'class': prefixCls + '-picker-clear',
- on: {
- 'click': this.clearSelection
- },
- key: 'clear-icon'
- }) : null;
- var arrowCls = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-picker-arrow', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-picker-arrow-expand', sPopupVisible), _classNames2));
- var pickerCls = classnames__WEBPACK_IMPORTED_MODULE_6___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getClass"])(this), prefixCls + '-picker', (_classNames3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-with-value', inputValue), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-' + size, !!size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-show-search', !!showSearch), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-focused', inputFocused), _classNames3));
- // Fix bug of https://github.com/facebook/react/pull/5004
- // and https://fb.me/react-unknown-prop
- var tempInputProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_7__["default"])(otherProps, ['options', 'popupPlacement', 'transitionName', 'displayRender', 'changeOnSelect', 'expandTrigger', 'popupVisible', 'getPopupContainer', 'loadData', 'popupClassName', 'filterOption', 'renderFilteredOption', 'sortFilteredOption', 'notFoundContent', 'defaultValue', 'fieldNames']);
- var options = props.options;
- var names = getFilledFieldNames(this.$props);
- if (options && options.length > 0) {
- if (inputValue) {
- options = this.generateFilteredOptions(prefixCls, renderEmpty);
- }
- } else {
- var _ref6;
- options = [(_ref6 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref6, names.label, notFoundContent || renderEmpty(h, 'Cascader')), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref6, names.value, 'ANT_CASCADER_NOT_FOUND'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref6, 'disabled', true), _ref6)];
- }
- // Dropdown menu should keep previous status until it is fully closed.
- if (!sPopupVisible) {
- options = this.cachedOptions;
- } else {
- this.cachedOptions = options;
- }
- var dropdownMenuColumnStyle = {};
- var isNotFound = (options || []).length === 1 && options[0].value === 'ANT_CASCADER_NOT_FOUND';
- if (isNotFound) {
- dropdownMenuColumnStyle.height = 'auto'; // Height of one row.
- }
- // The default value of `matchInputWidth` is `true`
- var resultListMatchInputWidth = showSearch.matchInputWidth !== false;
- if (resultListMatchInputWidth && (inputValue || isNotFound) && this.$refs.input) {
- dropdownMenuColumnStyle.width = this.$refs.input.$el.offsetWidth + 'px';
- }
- // showSearch时,focus、blur在input上触发,反之在ref='picker'上触发
- var inputProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, tempInputProps, {
- prefixCls: inputPrefixCls,
- placeholder: value && value.length > 0 ? undefined : placeholder,
- value: inputValue,
- disabled: disabled,
- readOnly: !showSearch,
- autoComplete: 'off'
- }),
- 'class': prefixCls + '-input ' + sizeCls,
- ref: 'input',
- on: {
- focus: showSearch ? this.handleInputFocus : noop,
- click: showSearch ? this.handleInputClick : noop,
- blur: showSearch ? this.handleInputBlur : noop,
- keydown: this.handleKeyDown,
- change: showSearch ? this.handleInputChange : noop
- },
- attrs: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getAttrs"])(this)
- };
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["filterEmpty"])($slots['default']);
- var inputIcon = suffixIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_13__["cloneElement"])(suffixIcon, {
- 'class': babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls + '-picker-arrow', true)
- }) : h(
- 'span',
- { 'class': prefixCls + '-picker-arrow' },
- [suffixIcon]
- )) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'down' },
- 'class': arrowCls });
- var input = children.length ? children : h(
- 'span',
- { 'class': pickerCls, style: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getStyle"])(this), ref: 'picker' },
- [showSearch ? h(
- 'span',
- { 'class': prefixCls + '-picker-label' },
- [this.getLabel()]
- ) : null, h(_input__WEBPACK_IMPORTED_MODULE_9__["default"], inputProps), !showSearch ? h(
- 'span',
- { 'class': prefixCls + '-picker-label' },
- [this.getLabel()]
- ) : null, clearIcon, inputIcon]
- );
- var expandIcon = h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'right' }
- });
- var loadingIcon = h(
- 'span',
- { 'class': prefixCls + '-menu-item-loading-icon' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'redo', spin: true }
- })]
- );
- var getPopupContainer = props.getPopupContainer || getContextPopupContainer;
- var cascaderProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
- getPopupContainer: getPopupContainer,
- options: options,
- prefixCls: prefixCls,
- value: value,
- popupVisible: sPopupVisible,
- dropdownMenuColumnStyle: dropdownMenuColumnStyle,
- expandIcon: expandIcon,
- loadingIcon: loadingIcon
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this), {
- popupVisibleChange: this.handlePopupVisibleChange,
- change: this.handleChange
- })
- };
- return h(
- _vc_cascader__WEBPACK_IMPORTED_MODULE_4__["default"],
- cascaderProps,
- [input]
- );
- }
- };
- /* istanbul ignore next */
- Cascader.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_16__["default"]);
- Vue.component(Cascader.name, Cascader);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Cascader);
- /***/ }),
- /***/ "./components/cascader/style/index.js":
- /*!********************************************!*\
- !*** ./components/cascader/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/cascader/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
- /* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/cascader/style/index.less":
- /*!**********************************************!*\
- !*** ./components/cascader/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/checkbox/Checkbox.jsx":
- /*!******************************************!*\
- !*** ./components/checkbox/Checkbox.jsx ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _vc_checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-checkbox */ "./components/vc-checkbox/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ACheckbox',
- inheritAttrs: false,
- __ANT_CHECKBOX: true,
- model: {
- prop: 'checked'
- },
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- isGroup: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- id: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- indeterminate: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('checkbox'),
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } },
- checkboxGroupContext: { 'default': function _default() {
- return undefined;
- } }
- },
- watch: {
- value: function value(_value, prevValue) {
- var _this = this;
- this.$nextTick(function () {
- var _checkboxGroupContext = _this.checkboxGroupContext,
- checkboxGroup = _checkboxGroupContext === undefined ? {} : _checkboxGroupContext;
- if (checkboxGroup.registerValue && checkboxGroup.cancelValue) {
- checkboxGroup.cancelValue(prevValue);
- checkboxGroup.registerValue(_value);
- }
- });
- }
- },
- mounted: function mounted() {
- var value = this.value,
- _checkboxGroupContext2 = this.checkboxGroupContext,
- checkboxGroup = _checkboxGroupContext2 === undefined ? {} : _checkboxGroupContext2;
- if (checkboxGroup.registerValue) {
- checkboxGroup.registerValue(value);
- }
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_9__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["default"])(this, 'checked') || this.checkboxGroupContext || !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["default"])(this, 'value'), 'Checkbox', '`value` is not validate prop, do you mean `checked`?');
- },
- beforeDestroy: function beforeDestroy() {
- var value = this.value,
- _checkboxGroupContext3 = this.checkboxGroupContext,
- checkboxGroup = _checkboxGroupContext3 === undefined ? {} : _checkboxGroupContext3;
- if (checkboxGroup.cancelValue) {
- checkboxGroup.cancelValue(value);
- }
- },
- methods: {
- handleChange: function handleChange(event) {
- var targetChecked = event.target.checked;
- this.$emit('input', targetChecked);
- this.$emit('change', event);
- },
- focus: function focus() {
- this.$refs.vcCheckbox.focus();
- },
- blur: function blur() {
- this.$refs.vcCheckbox.blur();
- }
- },
- render: function render() {
- var _this2 = this,
- _classNames;
- var h = arguments[0];
- var checkboxGroup = this.checkboxGroupContext,
- $slots = this.$slots;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
- var children = $slots['default'];
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
- _getListeners$mouseen = _getListeners.mouseenter,
- mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
- _getListeners$mousele = _getListeners.mouseleave,
- mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
- input = _getListeners.input,
- restListeners = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_getListeners, ['mouseenter', 'mouseleave', 'input']);
- var customizePrefixCls = props.prefixCls,
- indeterminate = props.indeterminate,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(props, ['prefixCls', 'indeterminate']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
- var checkboxProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, { prefixCls: prefixCls }),
- on: restListeners,
- attrs: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getAttrs"])(this)
- };
- if (checkboxGroup) {
- checkboxProps.on.change = function () {
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- _this2.$emit.apply(_this2, ['change'].concat(args));
- checkboxGroup.toggleOption({ label: children, value: props.value });
- };
- checkboxProps.props.name = checkboxGroup.name;
- checkboxProps.props.checked = checkboxGroup.sValue.indexOf(props.value) !== -1;
- checkboxProps.props.disabled = props.disabled || checkboxGroup.disabled;
- checkboxProps.props.indeterminate = indeterminate;
- } else {
- checkboxProps.on.change = this.handleChange;
- }
- var classString = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-checked', checkboxProps.props.checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-disabled', checkboxProps.props.disabled), _classNames));
- var checkboxClass = classnames__WEBPACK_IMPORTED_MODULE_5___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-indeterminate', indeterminate));
- return h(
- 'label',
- { 'class': classString, on: {
- 'mouseenter': mouseenter,
- 'mouseleave': mouseleave
- }
- },
- [h(_vc_checkbox__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([checkboxProps, { 'class': checkboxClass, ref: 'vcCheckbox' }])), children !== undefined && h('span', [children])]
- );
- }
- });
- /***/ }),
- /***/ "./components/checkbox/Group.jsx":
- /*!***************************************!*\
- !*** ./components/checkbox/Group.jsx ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Checkbox */ "./components/checkbox/Checkbox.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ACheckboxGroup',
- model: {
- prop: 'value'
- },
- props: {
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
- options: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
- },
- provide: function provide() {
- return {
- checkboxGroupContext: this
- };
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var value = this.value,
- defaultValue = this.defaultValue;
- return {
- sValue: value || defaultValue || [],
- registeredValues: []
- };
- },
- watch: {
- value: function value(val) {
- this.sValue = val || [];
- }
- },
- methods: {
- getOptions: function getOptions() {
- var options = this.options,
- $scopedSlots = this.$scopedSlots;
- return options.map(function (option) {
- if (typeof option === 'string') {
- return {
- label: option,
- value: option
- };
- }
- var label = option.label;
- if (label === undefined && $scopedSlots.label) {
- label = $scopedSlots.label(option);
- }
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, option, { label: label });
- });
- },
- cancelValue: function cancelValue(value) {
- this.registeredValues = this.registeredValues.filter(function (val) {
- return val !== value;
- });
- },
- registerValue: function registerValue(value) {
- this.registeredValues = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(this.registeredValues), [value]);
- },
- toggleOption: function toggleOption(option) {
- var registeredValues = this.registeredValues;
- var optionIndex = this.sValue.indexOf(option.value);
- var value = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(this.sValue));
- if (optionIndex === -1) {
- value.push(option.value);
- } else {
- value.splice(optionIndex, 1);
- }
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'value')) {
- this.sValue = value;
- }
- var options = this.getOptions();
- var val = value.filter(function (val) {
- return registeredValues.indexOf(val) !== -1;
- }).sort(function (a, b) {
- var indexA = options.findIndex(function (opt) {
- return opt.value === a;
- });
- var indexB = options.findIndex(function (opt) {
- return opt.value === b;
- });
- return indexA - indexB;
- });
- this.$emit('input', val);
- this.$emit('change', val);
- }
- },
- render: function render() {
- var h = arguments[0];
- var props = this.$props,
- state = this.$data,
- $slots = this.$slots;
- var customizePrefixCls = props.prefixCls,
- options = props.options;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
- var children = $slots['default'];
- var groupPrefixCls = prefixCls + '-group';
- if (options && options.length > 0) {
- children = this.getOptions().map(function (option) {
- return h(
- _Checkbox__WEBPACK_IMPORTED_MODULE_3__["default"],
- {
- attrs: {
- prefixCls: prefixCls,
- disabled: 'disabled' in option ? option.disabled : props.disabled,
- indeterminate: option.indeterminate,
- value: option.value,
- checked: state.sValue.indexOf(option.value) !== -1
- },
- key: option.value.toString(), on: {
- 'change': option.onChange || noop
- },
- 'class': groupPrefixCls + '-item'
- },
- [option.label]
- );
- });
- }
- return h(
- 'div',
- { 'class': groupPrefixCls },
- [children]
- );
- }
- });
- /***/ }),
- /***/ "./components/checkbox/index.js":
- /*!**************************************!*\
- !*** ./components/checkbox/index.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Checkbox */ "./components/checkbox/Checkbox.jsx");
- /* harmony import */ var _Group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Group */ "./components/checkbox/Group.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"].Group = _Group__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
- Vue.component(_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_Group__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Group__WEBPACK_IMPORTED_MODULE_1__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/checkbox/style/index.js":
- /*!********************************************!*\
- !*** ./components/checkbox/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/checkbox/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/checkbox/style/index.less":
- /*!**********************************************!*\
- !*** ./components/checkbox/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/col/index.js":
- /*!*********************************!*\
- !*** ./components/col/index.js ***!
- \*********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* istanbul ignore next */
- _grid__WEBPACK_IMPORTED_MODULE_0__["Col"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_grid__WEBPACK_IMPORTED_MODULE_0__["Col"].name, _grid__WEBPACK_IMPORTED_MODULE_0__["Col"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_grid__WEBPACK_IMPORTED_MODULE_0__["Col"]);
- /***/ }),
- /***/ "./components/col/style/index.js":
- /*!***************************************!*\
- !*** ./components/col/style/index.js ***!
- \***************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
- // style dependencies
- // deps-lint-skip: grid
- /***/ }),
- /***/ "./components/collapse/Collapse.jsx":
- /*!******************************************!*\
- !*** ./components/collapse/Collapse.jsx ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_openAnimation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/openAnimation */ "./components/_util/openAnimation.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _vc_collapse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-collapse */ "./components/vc-collapse/index.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ACollapse',
- model: {
- prop: 'activeKey',
- event: 'change'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(Object(_vc_collapse__WEBPACK_IMPORTED_MODULE_5__["collapseProps"])(), {
- bordered: true,
- openAnimation: _util_openAnimation__WEBPACK_IMPORTED_MODULE_2__["default"],
- expandIconPosition: 'left'
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
- } }
- },
- methods: {
- renderExpandIcon: function renderExpandIcon(panelProps, prefixCls) {
- var h = this.$createElement;
- var expandIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'expandIcon', panelProps);
- var icon = expandIcon || h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: { type: 'right', rotate: panelProps.isActive ? 90 : undefined }
- });
- return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["isValidElement"])(Array.isArray(expandIcon) ? icon[0] : icon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(icon, {
- 'class': prefixCls + '-arrow'
- }) : icon;
- }
- },
- render: function render() {
- var _collapseClassName,
- _this = this;
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- bordered = this.bordered,
- expandIconPosition = this.expandIconPosition;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('collapse', customizePrefixCls);
- var collapseClassName = (_collapseClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_collapseClassName, prefixCls + '-borderless', !bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_collapseClassName, prefixCls + '-icon-position-' + expandIconPosition, true), _collapseClassName);
- var rcCollapeProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this), {
- prefixCls: prefixCls,
- expandIcon: function expandIcon(panelProps) {
- return _this.renderExpandIcon(panelProps, prefixCls);
- }
- }),
- 'class': collapseClassName,
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
- };
- return h(
- _vc_collapse__WEBPACK_IMPORTED_MODULE_5__["default"],
- rcCollapeProps,
- [this.$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/collapse/CollapsePanel.jsx":
- /*!***********************************************!*\
- !*** ./components/collapse/CollapsePanel.jsx ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _vc_collapse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-collapse */ "./components/vc-collapse/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ACollapsePanel',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_vc_collapse__WEBPACK_IMPORTED_MODULE_3__["panelProps"])()),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
- } }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- _showArrow = this.showArrow,
- showArrow = _showArrow === undefined ? true : _showArrow;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('collapse', customizePrefixCls);
- var collapsePanelClassName = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-no-arrow', !showArrow);
- var rcCollapePanelProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this), {
- prefixCls: prefixCls,
- extra: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'extra')
- }),
- 'class': collapsePanelClassName,
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this)
- };
- var header = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'header');
- return h(
- _vc_collapse__WEBPACK_IMPORTED_MODULE_3__["default"].Panel,
- rcCollapePanelProps,
- [this.$slots['default'], header ? h(
- 'template',
- { slot: 'header' },
- [header]
- ) : null]
- );
- }
- });
- /***/ }),
- /***/ "./components/collapse/index.js":
- /*!**************************************!*\
- !*** ./components/collapse/index.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Collapse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Collapse */ "./components/collapse/Collapse.jsx");
- /* harmony import */ var _CollapsePanel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CollapsePanel */ "./components/collapse/CollapsePanel.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _Collapse__WEBPACK_IMPORTED_MODULE_0__["default"].Panel = _CollapsePanel__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _Collapse__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
- Vue.component(_Collapse__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Collapse__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_CollapsePanel__WEBPACK_IMPORTED_MODULE_1__["default"].name, _CollapsePanel__WEBPACK_IMPORTED_MODULE_1__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Collapse__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/collapse/style/index.js":
- /*!********************************************!*\
- !*** ./components/collapse/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/collapse/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/collapse/style/index.less":
- /*!**********************************************!*\
- !*** ./components/collapse/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/comment/index.jsx":
- /*!**************************************!*\
- !*** ./components/comment/index.jsx ***!
- \**************************************/
- /*! exports provided: CommentProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommentProps", function() { return CommentProps; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var CommentProps = {
- actions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- /** The element to display as the comment author. */
- author: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- /** The element to display as the comment avatar - generally an antd Avatar */
- avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- /** The main content of the comment */
- content: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- /** Comment prefix defaults to '.ant-comment' */
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- /** A datetime element containing the time to be displayed */
- datetime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- };
- var Comment = {
- name: 'AComment',
- props: CommentProps,
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
- } }
- },
- methods: {
- getAction: function getAction(actions) {
- var h = this.$createElement;
- if (!actions || !actions.length) {
- return null;
- }
- var actionList = actions.map(function (action, index) {
- return h(
- 'li',
- { key: 'action-' + index },
- [action]
- );
- });
- return actionList;
- },
- renderNested: function renderNested(prefixCls, children) {
- var h = this.$createElement;
- return h(
- 'div',
- { 'class': prefixCls + '-nested' },
- [children]
- );
- }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.$props.prefixCls;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('comment', customizePrefixCls);
- var actions = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'actions');
- var author = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'author');
- var avatar = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'avatar');
- var content = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'content');
- var datetime = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'datetime');
- var avatarDom = h(
- 'div',
- { 'class': prefixCls + '-avatar' },
- [typeof avatar === 'string' ? h('img', {
- attrs: { src: avatar, alt: 'comment-avatar' }
- }) : avatar]
- );
- var actionDom = actions && actions.length ? h(
- 'ul',
- { 'class': prefixCls + '-actions' },
- [this.getAction(actions)]
- ) : null;
- var authorContent = h(
- 'div',
- { 'class': prefixCls + '-content-author' },
- [author && h(
- 'span',
- { 'class': prefixCls + '-content-author-name' },
- [author]
- ), datetime && h(
- 'span',
- { 'class': prefixCls + '-content-author-time' },
- [datetime]
- )]
- );
- var contentDom = h(
- 'div',
- { 'class': prefixCls + '-content' },
- [authorContent, h(
- 'div',
- { 'class': prefixCls + '-content-detail' },
- [content]
- ), actionDom]
- );
- var comment = h(
- 'div',
- { 'class': prefixCls + '-inner' },
- [avatarDom, contentDom]
- );
- var children = this.$slots['default'];
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': prefixCls }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this) }]),
- [comment, children ? this.renderNested(prefixCls, children) : null]
- );
- }
- };
- /* istanbul ignore next */
- Comment.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
- Vue.component(Comment.name, Comment);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Comment);
- /***/ }),
- /***/ "./components/comment/style/index.js":
- /*!*******************************************!*\
- !*** ./components/comment/style/index.js ***!
- \*******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/comment/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/comment/style/index.less":
- /*!*********************************************!*\
- !*** ./components/comment/style/index.less ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/config-provider/configConsumerProps.jsx":
- /*!************************************************************!*\
- !*** ./components/config-provider/configConsumerProps.jsx ***!
- \************************************************************/
- /*! exports provided: ConfigConsumerProps */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigConsumerProps", function() { return ConfigConsumerProps; });
- /* harmony import */ var _renderEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./renderEmpty */ "./components/config-provider/renderEmpty.jsx");
- var ConfigConsumerProps = {
- getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) {
- if (customizePrefixCls) return customizePrefixCls;
- return 'ant-' + suffixCls;
- },
- renderEmpty: _renderEmpty__WEBPACK_IMPORTED_MODULE_0__["default"]
- };
- /***/ }),
- /***/ "./components/config-provider/index.jsx":
- /*!**********************************************!*\
- !*** ./components/config-provider/index.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _renderEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./renderEmpty */ "./components/config-provider/renderEmpty.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _locale_provider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../locale-provider */ "./components/locale-provider/index.jsx");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- function getWatch() {
- var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var watch = {};
- keys.forEach(function (k) {
- watch[k] = function (value) {
- this._proxyVm._data[k] = value;
- };
- });
- return watch;
- }
- var ConfigProvider = {
- name: 'AConfigProvider',
- props: {
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- renderEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- csp: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- autoInsertSpaceInButton: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- pageHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- transformCellText: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
- },
- provide: function provide() {
- var _self = this;
- this._proxyVm = new vue__WEBPACK_IMPORTED_MODULE_1___default.a({
- data: function data() {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _self.$props, {
- getPrefixCls: _self.getPrefixCls,
- renderEmpty: _self.renderEmptyComponent
- });
- }
- });
- return {
- configProvider: this._proxyVm._data
- };
- },
- watch: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, getWatch(['prefixCls', 'csp', 'autoInsertSpaceInButton', 'locale', 'pageHeader', 'transformCellText'])),
- methods: {
- renderEmptyComponent: function renderEmptyComponent(h, name) {
- var renderEmpty = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'renderEmpty', {}, false) || _renderEmpty__WEBPACK_IMPORTED_MODULE_4__["default"];
- return renderEmpty(h, name);
- },
- getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) {
- var _$props$prefixCls = this.$props.prefixCls,
- prefixCls = _$props$prefixCls === undefined ? 'ant' : _$props$prefixCls;
- if (customizePrefixCls) return customizePrefixCls;
- return suffixCls ? prefixCls + '-' + suffixCls : prefixCls;
- },
- renderProvider: function renderProvider(legacyLocale) {
- var h = this.$createElement;
- return h(
- _locale_provider__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { locale: this.locale || legacyLocale, _ANT_MARK__: _locale_provider__WEBPACK_IMPORTED_MODULE_6__["ANT_MARK"] }
- },
- [this.$slots['default'] ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])(this.$slots['default'])[0] : null]
- );
- }
- },
- render: function render() {
- var _this = this;
- var h = arguments[0];
- return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__["default"], {
- scopedSlots: { 'default': function _default(_, __, legacyLocale) {
- return _this.renderProvider(legacyLocale);
- } }
- });
- }
- };
- /* istanbul ignore next */
- ConfigProvider.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_5__["default"]);
- Vue.component(ConfigProvider.name, ConfigProvider);
- };
- /* harmony default export */ __webpack_exports__["default"] = (ConfigProvider);
- /***/ }),
- /***/ "./components/config-provider/renderEmpty.jsx":
- /*!****************************************************!*\
- !*** ./components/config-provider/renderEmpty.jsx ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../empty */ "./components/empty/index.jsx");
- /* harmony import */ var _configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var RenderEmpty = {
- functional: true,
- inject: {
- configProvider: { 'default': function _default() {
- return _configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
- } }
- },
- props: {
- componentName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string
- },
- render: function render(createElement, context) {
- var h = arguments[0];
- var props = context.props,
- injections = context.injections;
- function renderHtml(componentName) {
- var getPrefixCls = injections.configProvider.getPrefixCls;
- var prefix = getPrefixCls('empty');
- switch (componentName) {
- case 'Table':
- case 'List':
- return h(_empty__WEBPACK_IMPORTED_MODULE_1__["default"], {
- attrs: { image: _empty__WEBPACK_IMPORTED_MODULE_1__["default"].PRESENTED_IMAGE_SIMPLE }
- });
- case 'Select':
- case 'TreeSelect':
- case 'Cascader':
- case 'Transfer':
- case 'Mentions':
- return h(_empty__WEBPACK_IMPORTED_MODULE_1__["default"], {
- attrs: { image: _empty__WEBPACK_IMPORTED_MODULE_1__["default"].PRESENTED_IMAGE_SIMPLE },
- 'class': prefix + '-small' });
- default:
- return h(_empty__WEBPACK_IMPORTED_MODULE_1__["default"]);
- }
- }
- return renderHtml(props.componentName);
- }
- };
- function renderEmpty(h, componentName) {
- return h(RenderEmpty, {
- attrs: { componentName: componentName }
- });
- }
- /* harmony default export */ __webpack_exports__["default"] = (renderEmpty);
- /***/ }),
- /***/ "./components/config-provider/style/index.js":
- /*!***************************************************!*\
- !*** ./components/config-provider/style/index.js ***!
- \***************************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/config-provider/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /***/ }),
- /***/ "./components/config-provider/style/index.less":
- /*!*****************************************************!*\
- !*** ./components/config-provider/style/index.less ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/date-picker/InputIcon.js":
- /*!*********************************************!*\
- !*** ./components/date-picker/InputIcon.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- functional: true,
- render: function render(h, context) {
- var props = context.props;
- var suffixIcon = props.suffixIcon,
- prefixCls = props.prefixCls;
- return (suffixIcon && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(suffixIcon, {
- 'class': prefixCls + '-picker-icon'
- }) : h(
- 'span',
- { 'class': prefixCls + '-picker-icon' },
- [suffixIcon]
- )) || h(_icon__WEBPACK_IMPORTED_MODULE_0__["default"], {
- attrs: { type: 'calendar' },
- 'class': prefixCls + '-picker-icon' });
- }
- });
- /***/ }),
- /***/ "./components/date-picker/RangePicker.jsx":
- /*!************************************************!*\
- !*** ./components/date-picker/RangePicker.jsx ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _vc_calendar_src_RangeCalendar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-calendar/src/RangeCalendar */ "./components/vc-calendar/src/RangeCalendar.jsx");
- /* harmony import */ var _vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-calendar/src/Picker */ "./components/vc-calendar/src/Picker.jsx");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_7__);
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tag */ "./components/tag/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./interface */ "./components/date-picker/interface.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./utils */ "./components/date-picker/utils.js");
- /* harmony import */ var _InputIcon__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./InputIcon */ "./components/date-picker/InputIcon.js");
- function noop() {}
- function getShowDateFromValue(value, mode) {
- var _value = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
- start = _value[0],
- end = _value[1];
- // value could be an empty array, then we should not reset showDate
- if (!start && !end) {
- return;
- }
- if (mode && mode[0] === 'month') {
- return [start, end];
- }
- var newEnd = end && end.isSame(start, 'month') ? end.clone().add(1, 'month') : end;
- return [start, newEnd];
- }
- function pickerValueAdapter(value) {
- if (!value) {
- return;
- }
- if (Array.isArray(value)) {
- return value;
- }
- return [value, value.clone().add(1, 'month')];
- }
- function isEmptyArray(arr) {
- if (Array.isArray(arr)) {
- return arr.length === 0 || arr.every(function (i) {
- return !i;
- });
- }
- return false;
- }
- function fixLocale(value, localeCode) {
- if (!localeCode) {
- return;
- }
- if (!value || value.length === 0) {
- return;
- }
- var _value2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
- start = _value2[0],
- end = _value2[1];
- if (start) {
- start.locale(localeCode);
- }
- if (end) {
- end.locale(localeCode);
- }
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ARangePicker',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__["default"]],
- model: {
- prop: 'value',
- event: 'change'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["initDefaultProps"])(Object(_interface__WEBPACK_IMPORTED_MODULE_12__["RangePickerProps"])(), {
- allowClear: true,
- showToday: false,
- separator: '~'
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var value = this.value || this.defaultValue || [];
- var _value3 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
- start = _value3[0],
- end = _value3[1];
- if (start && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_11__["default"])(moment__WEBPACK_IMPORTED_MODULE_3__).isMoment(start) || end && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_11__["default"])(moment__WEBPACK_IMPORTED_MODULE_3__).isMoment(end)) {
- throw new Error('The value/defaultValue of RangePicker must be a moment object array after `antd@2.0`, ' + 'see: https://u.ant.design/date-picker-value');
- }
- var pickerValue = !value || isEmptyArray(value) ? this.defaultPickerValue : value;
- return {
- sValue: value,
- sShowDate: pickerValueAdapter(pickerValue || Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_11__["default"])(moment__WEBPACK_IMPORTED_MODULE_3__)()),
- sOpen: this.open,
- sHoverValue: []
- };
- },
- watch: {
- value: function value(val) {
- var value = val || [];
- var state = { sValue: value };
- if (!shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(val, this.sValue)) {
- state = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, state, {
- sShowDate: getShowDateFromValue(value, this.mode) || this.sShowDate
- });
- }
- this.setState(state);
- },
- open: function open(val) {
- var state = { sOpen: val };
- this.setState(state);
- },
- sOpen: function sOpen(val, oldVal) {
- var _this = this;
- this.$nextTick(function () {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(_this, 'open') && oldVal && !val) {
- _this.focus();
- }
- });
- }
- },
- methods: {
- setValue: function setValue(value, hidePanel) {
- this.handleChange(value);
- if ((hidePanel || !this.showTime) && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(this, 'open')) {
- this.setState({ sOpen: false });
- }
- },
- clearSelection: function clearSelection(e) {
- e.preventDefault();
- e.stopPropagation();
- this.setState({ sValue: [] });
- this.handleChange([]);
- },
- clearHoverValue: function clearHoverValue() {
- this.setState({ sHoverValue: [] });
- },
- handleChange: function handleChange(value) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(this, 'value')) {
- this.setState(function (_ref) {
- var sShowDate = _ref.sShowDate;
- return {
- sValue: value,
- sShowDate: getShowDateFromValue(value) || sShowDate
- };
- });
- }
- if (value[0] && value[1] && value[0].diff(value[1]) > 0) {
- value[1] = undefined;
- }
- var _value4 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
- start = _value4[0],
- end = _value4[1];
- this.$emit('change', value, [Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(start, this.format), Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(end, this.format)]);
- },
- handleOpenChange: function handleOpenChange(open) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(this, 'open')) {
- this.setState({ sOpen: open });
- }
- if (open === false) {
- this.clearHoverValue();
- }
- this.$emit('openChange', open);
- },
- handleShowDateChange: function handleShowDateChange(showDate) {
- this.setState({ sShowDate: showDate });
- },
- handleHoverChange: function handleHoverChange(hoverValue) {
- this.setState({ sHoverValue: hoverValue });
- },
- handleRangeMouseLeave: function handleRangeMouseLeave() {
- if (this.sOpen) {
- this.clearHoverValue();
- }
- },
- handleCalendarInputSelect: function handleCalendarInputSelect(value) {
- var _value5 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 1),
- start = _value5[0];
- if (!start) {
- return;
- }
- this.setState(function (_ref2) {
- var sShowDate = _ref2.sShowDate;
- return {
- sValue: value,
- sShowDate: getShowDateFromValue(value) || sShowDate
- };
- });
- },
- handleRangeClick: function handleRangeClick(value) {
- if (typeof value === 'function') {
- value = value();
- }
- this.setValue(value, true);
- this.$emit('ok', value);
- this.$emit('openChange', false);
- },
- onMouseEnter: function onMouseEnter(e) {
- this.$emit('mouseenter', e);
- },
- onMouseLeave: function onMouseLeave(e) {
- this.$emit('mouseleave', e);
- },
- focus: function focus() {
- this.$refs.picker.focus();
- },
- blur: function blur() {
- this.$refs.picker.blur();
- },
- renderFooter: function renderFooter() {
- var _this2 = this;
- var h = this.$createElement;
- var ranges = this.ranges,
- $scopedSlots = this.$scopedSlots,
- $slots = this.$slots;
- var prefixCls = this._prefixCls,
- tagPrefixCls = this._tagPrefixCls;
- var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter || $slots.renderExtraFooter;
- if (!ranges && !renderExtraFooter) {
- return null;
- }
- var customFooter = renderExtraFooter ? h(
- 'div',
- { 'class': prefixCls + '-footer-extra', key: 'extra' },
- [typeof renderExtraFooter === 'function' ? renderExtraFooter() : renderExtraFooter]
- ) : null;
- var operations = ranges && Object.keys(ranges).map(function (range) {
- var value = ranges[range];
- var hoverValue = typeof value === 'function' ? value.call(_this2) : value;
- return h(
- _tag__WEBPACK_IMPORTED_MODULE_9__["default"],
- {
- key: range,
- attrs: { prefixCls: tagPrefixCls,
- color: 'blue'
- },
- on: {
- 'click': function click() {
- return _this2.handleRangeClick(value);
- },
- 'mouseenter': function mouseenter() {
- return _this2.setState({ sHoverValue: hoverValue });
- },
- 'mouseleave': _this2.handleRangeMouseLeave
- }
- },
- [range]
- );
- });
- var rangeNode = operations && operations.length > 0 ? h(
- 'div',
- { 'class': prefixCls + '-footer-extra ' + prefixCls + '-range-quick-selector', key: 'range' },
- [operations]
- ) : null;
- return [rangeNode, customFooter];
- }
- },
- render: function render() {
- var _classNames,
- _this3 = this;
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getOptionProps"])(this);
- var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getComponentFromProp"])(this, 'suffixIcon');
- suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
- var value = this.sValue,
- showDate = this.sShowDate,
- hoverValue = this.sHoverValue,
- open = this.sOpen,
- $scopedSlots = this.$scopedSlots;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getListeners"])(this);
- var _listeners$calendarCh = listeners.calendarChange,
- calendarChange = _listeners$calendarCh === undefined ? noop : _listeners$calendarCh,
- _listeners$ok = listeners.ok,
- ok = _listeners$ok === undefined ? noop : _listeners$ok,
- _listeners$focus = listeners.focus,
- focus = _listeners$focus === undefined ? noop : _listeners$focus,
- _listeners$blur = listeners.blur,
- blur = _listeners$blur === undefined ? noop : _listeners$blur,
- _listeners$panelChang = listeners.panelChange,
- panelChange = _listeners$panelChang === undefined ? noop : _listeners$panelChang;
- var customizePrefixCls = props.prefixCls,
- customizeTagPrefixCls = props.tagPrefixCls,
- popupStyle = props.popupStyle,
- disabledDate = props.disabledDate,
- disabledTime = props.disabledTime,
- showTime = props.showTime,
- showToday = props.showToday,
- ranges = props.ranges,
- locale = props.locale,
- localeCode = props.localeCode,
- format = props.format,
- separator = props.separator,
- inputReadOnly = props.inputReadOnly;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('calendar', customizePrefixCls);
- var tagPrefixCls = getPrefixCls('tag', customizeTagPrefixCls);
- this._prefixCls = prefixCls;
- this._tagPrefixCls = tagPrefixCls;
- var dateRender = props.dateRender || $scopedSlots.dateRender;
- fixLocale(value, localeCode);
- fixLocale(showDate, localeCode);
- var calendarClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-time', showTime), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-range-with-ranges', ranges), _classNames));
- // 需要选择时间时,点击 ok 时才触发 onChange
- var pickerChangeHandler = {
- on: {
- change: this.handleChange
- }
- };
- var calendarProps = {
- on: {
- ok: this.handleChange
- },
- props: {}
- };
- if (props.timePicker) {
- pickerChangeHandler.on.change = function (changedValue) {
- return _this3.handleChange(changedValue);
- };
- } else {
- calendarProps = { on: {}, props: {} };
- }
- if ('mode' in props) {
- calendarProps.props.mode = props.mode;
- }
- var startPlaceholder = Array.isArray(props.placeholder) ? props.placeholder[0] : locale.lang.rangePlaceholder[0];
- var endPlaceholder = Array.isArray(props.placeholder) ? props.placeholder[1] : locale.lang.rangePlaceholder[1];
- var rangeCalendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["mergeProps"])(calendarProps, {
- props: {
- separator: separator,
- format: format,
- prefixCls: prefixCls,
- renderFooter: this.renderFooter,
- timePicker: props.timePicker,
- disabledDate: disabledDate,
- disabledTime: disabledTime,
- dateInputPlaceholder: [startPlaceholder, endPlaceholder],
- locale: locale.lang,
- dateRender: dateRender,
- value: showDate,
- hoverValue: hoverValue,
- showToday: showToday,
- inputReadOnly: inputReadOnly
- },
- on: {
- change: calendarChange,
- ok: ok,
- valueChange: this.handleShowDateChange,
- hoverChange: this.handleHoverChange,
- panelChange: panelChange,
- inputSelect: this.handleCalendarInputSelect
- },
- 'class': calendarClassName,
- scopedSlots: $scopedSlots
- });
- var calendar = h(_vc_calendar_src_RangeCalendar__WEBPACK_IMPORTED_MODULE_4__["default"], rangeCalendarProps);
- // default width for showTime
- var pickerStyle = {};
- if (props.showTime) {
- pickerStyle.width = '350px';
- }
- var _value6 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
- startValue = _value6[0],
- endValue = _value6[1];
- var clearIcon = !props.disabled && props.allowClear && value && (startValue || endValue) ? h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: {
- type: 'close-circle',
- theme: 'filled'
- },
- 'class': prefixCls + '-picker-clear',
- on: {
- 'click': this.clearSelection
- }
- }) : null;
- var inputIcon = h(_InputIcon__WEBPACK_IMPORTED_MODULE_16__["default"], {
- attrs: { suffixIcon: suffixIcon, prefixCls: prefixCls }
- });
- var input = function input(_ref3) {
- var inputValue = _ref3.value;
- var _inputValue = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(inputValue, 2),
- start = _inputValue[0],
- end = _inputValue[1];
- return h(
- 'span',
- { 'class': props.pickerInputClass },
- [h('input', {
- attrs: {
- disabled: props.disabled,
- readOnly: true,
- placeholder: startPlaceholder,
- tabIndex: -1
- },
- domProps: {
- 'value': Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(start, props.format)
- },
- 'class': prefixCls + '-range-picker-input' }), h(
- 'span',
- { 'class': prefixCls + '-range-picker-separator' },
- [' ', separator, ' ']
- ), h('input', {
- attrs: {
- disabled: props.disabled,
- readOnly: true,
- placeholder: endPlaceholder,
- tabIndex: -1
- },
- domProps: {
- 'value': Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(end, props.format)
- },
- 'class': prefixCls + '-range-picker-input' }), clearIcon, inputIcon]
- );
- };
- var vcDatePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["mergeProps"])({
- props: props,
- on: listeners
- }, pickerChangeHandler, {
- props: {
- calendar: calendar,
- value: value,
- open: open,
- prefixCls: prefixCls + '-picker-container'
- },
- on: {
- openChange: this.handleOpenChange
- },
- style: popupStyle,
- scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({ 'default': input }, $scopedSlots)
- });
- return h(
- 'span',
- {
- ref: 'picker',
- 'class': props.pickerClass,
- style: pickerStyle,
- attrs: { tabIndex: props.disabled ? -1 : 0
- },
- on: {
- 'focus': focus,
- 'blur': blur,
- 'mouseenter': this.onMouseEnter,
- 'mouseleave': this.onMouseLeave
- }
- },
- [h(_vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__["default"], vcDatePickerProps)]
- );
- }
- });
- /***/ }),
- /***/ "./components/date-picker/WeekPicker.jsx":
- /*!***********************************************!*\
- !*** ./components/date-picker/WeekPicker.jsx ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _vc_calendar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-calendar */ "./components/vc-calendar/index.js");
- /* harmony import */ var _vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-calendar/src/Picker */ "./components/vc-calendar/src/Picker.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./interface */ "./components/date-picker/interface.js");
- /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
- /* harmony import */ var _InputIcon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./InputIcon */ "./components/date-picker/InputIcon.js");
- function formatValue(value, format) {
- return value && value.format(format) || '';
- }
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- // static defaultProps = {
- // format: 'YYYY-wo',
- // allowClear: true,
- // };
- // private input: any;
- name: 'AWeekPicker',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
- model: {
- prop: 'value',
- event: 'change'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(Object(_interface__WEBPACK_IMPORTED_MODULE_8__["WeekPickerProps"])(), {
- format: 'gggg-wo',
- allowClear: true
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var value = this.value || this.defaultValue;
- if (value && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(value)) {
- throw new Error('The value/defaultValue of WeekPicker or MonthPicker must be ' + 'a moment object');
- }
- return {
- _value: value,
- _open: this.open
- };
- },
- watch: {
- value: function value(val) {
- var state = { _value: val };
- this.setState(state);
- this.prevState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$data, state);
- },
- open: function open(val) {
- var state = { _open: val };
- this.setState(state);
- this.prevState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$data, state);
- },
- _open: function _open(val, oldVal) {
- var _this = this;
- this.$nextTick(function () {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(_this, 'open') && oldVal && !val) {
- _this.focus();
- }
- });
- }
- },
- mounted: function mounted() {
- this.prevState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$data);
- },
- updated: function updated() {
- var _this2 = this;
- this.$nextTick(function () {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(_this2, 'open') && _this2.prevState._open && !_this2._open) {
- _this2.focus();
- }
- });
- },
- methods: {
- weekDateRender: function weekDateRender(current) {
- var h = this.$createElement;
- var selectedValue = this.$data._value;
- var prefixCls = this._prefixCls,
- $scopedSlots = this.$scopedSlots;
- var dateRender = this.dateRender || $scopedSlots.dateRender;
- var dateNode = dateRender ? dateRender(current) : current.date();
- if (selectedValue && current.year() === selectedValue.year() && current.week() === selectedValue.week()) {
- return h(
- 'div',
- { 'class': prefixCls + '-selected-day' },
- [h(
- 'div',
- { 'class': prefixCls + '-date' },
- [dateNode]
- )]
- );
- }
- return h(
- 'div',
- { 'class': prefixCls + '-date' },
- [dateNode]
- );
- },
- handleChange: function handleChange(value) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value')) {
- this.setState({ _value: value });
- }
- this.$emit('change', value, formatValue(value, this.format));
- },
- handleOpenChange: function handleOpenChange(open) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'open')) {
- this.setState({ _open: open });
- }
- this.$emit('openChange', open);
- },
- clearSelection: function clearSelection(e) {
- e.preventDefault();
- e.stopPropagation();
- this.handleChange(null);
- },
- focus: function focus() {
- this.$refs.input.focus();
- },
- blur: function blur() {
- this.$refs.input.blur();
- },
- renderFooter: function renderFooter() {
- var h = this.$createElement;
- var prefixCls = this._prefixCls,
- $scopedSlots = this.$scopedSlots;
- var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter;
- return renderExtraFooter ? h(
- 'div',
- { 'class': prefixCls + '-footer-extra' },
- [renderExtraFooter.apply(undefined, arguments)]
- ) : null;
- }
- },
- render: function render() {
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
- var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'suffixIcon');
- suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
- var customizePrefixCls = this.prefixCls,
- disabled = this.disabled,
- pickerClass = this.pickerClass,
- popupStyle = this.popupStyle,
- pickerInputClass = this.pickerInputClass,
- format = this.format,
- allowClear = this.allowClear,
- locale = this.locale,
- localeCode = this.localeCode,
- disabledDate = this.disabledDate,
- defaultPickerValue = this.defaultPickerValue,
- $data = this.$data,
- $scopedSlots = this.$scopedSlots;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('calendar', customizePrefixCls);
- this._prefixCls = prefixCls;
- var pickerValue = $data._value,
- open = $data._open;
- var _listeners$focus = listeners.focus,
- focus = _listeners$focus === undefined ? noop : _listeners$focus,
- _listeners$blur = listeners.blur,
- blur = _listeners$blur === undefined ? noop : _listeners$blur;
- if (pickerValue && localeCode) {
- pickerValue.locale(localeCode);
- }
- var placeholder = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'placeholder') ? this.placeholder : locale.lang.placeholder;
- var weekDateRender = this.dateRender || $scopedSlots.dateRender || this.weekDateRender;
- var calendar = h(_vc_calendar__WEBPACK_IMPORTED_MODULE_2__["default"], {
- attrs: {
- showWeekNumber: true,
- dateRender: weekDateRender,
- prefixCls: prefixCls,
- format: format,
- locale: locale.lang,
- showDateInput: false,
- showToday: false,
- disabledDate: disabledDate,
- renderFooter: this.renderFooter,
- defaultValue: defaultPickerValue
- }
- });
- var clearIcon = !disabled && allowClear && $data._value ? h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: {
- type: 'close-circle',
- theme: 'filled'
- },
- 'class': prefixCls + '-picker-clear',
- on: {
- 'click': this.clearSelection
- }
- }) : null;
- var inputIcon = h(_InputIcon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { suffixIcon: suffixIcon, prefixCls: prefixCls }
- });
- var input = function input(_ref) {
- var value = _ref.value;
- return h(
- 'span',
- { style: { display: 'inline-block', width: '100%' } },
- [h('input', {
- ref: 'input',
- attrs: { disabled: disabled,
- readOnly: true,
- placeholder: placeholder
- },
- domProps: {
- 'value': value && value.format(format) || ''
- },
- 'class': pickerInputClass,
- on: {
- 'focus': focus,
- 'blur': blur
- }
- }), clearIcon, inputIcon]
- );
- };
- var vcDatePickerProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
- calendar: calendar,
- prefixCls: prefixCls + '-picker-container',
- value: pickerValue,
- open: open
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
- change: this.handleChange,
- openChange: this.handleOpenChange
- }),
- style: popupStyle,
- scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ 'default': input }, $scopedSlots)
- };
- return h(
- 'span',
- { 'class': pickerClass },
- [h(_vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_3__["default"], vcDatePickerProps)]
- );
- }
- });
- /***/ }),
- /***/ "./components/date-picker/createPicker.js":
- /*!************************************************!*\
- !*** ./components/date-picker/createPicker.js ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createPicker; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-calendar/src/MonthCalendar */ "./components/vc-calendar/src/MonthCalendar.jsx");
- /* harmony import */ var _vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-calendar/src/Picker */ "./components/vc-calendar/src/Picker.jsx");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ "./components/date-picker/utils.js");
- // export const PickerProps = {
- // value?: moment.Moment;
- // prefixCls: string;
- // }
- function noop() {}
- function createPicker(TheCalendar, props) {
- return {
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["initDefaultProps"])(props, {
- allowClear: true,
- showToday: true
- }),
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
- model: {
- prop: 'value',
- event: 'change'
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var value = this.value || this.defaultValue;
- if (value && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__).isMoment(value)) {
- throw new Error('The value/defaultValue of DatePicker or MonthPicker must be ' + 'a moment object');
- }
- return {
- sValue: value,
- showDate: value,
- _open: !!this.open
- };
- },
- watch: {
- open: function open(val) {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
- var state = {};
- state._open = val;
- if ('value' in props && !val && props.value !== this.showDate) {
- state.showDate = props.value;
- }
- this.setState(state);
- },
- value: function value(val) {
- var state = {};
- state.sValue = val;
- if (val !== this.sValue) {
- state.showDate = val;
- }
- this.setState(state);
- },
- _open: function _open(val, oldVal) {
- var _this = this;
- this.$nextTick(function () {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(_this, 'open') && oldVal && !val) {
- _this.focus();
- }
- });
- }
- },
- methods: {
- clearSelection: function clearSelection(e) {
- e.preventDefault();
- e.stopPropagation();
- this.handleChange(null);
- },
- handleChange: function handleChange(value) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(this, 'value')) {
- this.setState({
- sValue: value,
- showDate: value
- });
- }
- this.$emit('change', value, Object(_utils__WEBPACK_IMPORTED_MODULE_13__["formatDate"])(value, this.format));
- },
- handleCalendarChange: function handleCalendarChange(value) {
- this.setState({ showDate: value });
- },
- handleOpenChange: function handleOpenChange(open) {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
- if (!('open' in props)) {
- this.setState({ _open: open });
- }
- this.$emit('openChange', open);
- },
- focus: function focus() {
- this.$refs.input.focus();
- },
- blur: function blur() {
- this.$refs.input.blur();
- },
- renderFooter: function renderFooter() {
- var h = this.$createElement;
- var $scopedSlots = this.$scopedSlots,
- $slots = this.$slots,
- prefixCls = this._prefixCls;
- var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter || $slots.renderExtraFooter;
- return renderExtraFooter ? h(
- 'div',
- { 'class': prefixCls + '-footer-extra' },
- [typeof renderExtraFooter === 'function' ? renderExtraFooter.apply(undefined, arguments) : renderExtraFooter]
- ) : null;
- },
- onMouseEnter: function onMouseEnter(e) {
- this.$emit('mouseenter', e);
- },
- onMouseLeave: function onMouseLeave(e) {
- this.$emit('mouseleave', e);
- }
- },
- render: function render() {
- var _classNames,
- _this2 = this;
- var h = arguments[0];
- var $scopedSlots = this.$scopedSlots;
- var _$data = this.$data,
- value = _$data.sValue,
- showDate = _$data.showDate,
- open = _$data._open;
- var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'suffixIcon');
- suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this);
- var _listeners$panelChang = listeners.panelChange,
- panelChange = _listeners$panelChang === undefined ? noop : _listeners$panelChang,
- _listeners$focus = listeners.focus,
- focus = _listeners$focus === undefined ? noop : _listeners$focus,
- _listeners$blur = listeners.blur,
- blur = _listeners$blur === undefined ? noop : _listeners$blur,
- _listeners$ok = listeners.ok,
- ok = _listeners$ok === undefined ? noop : _listeners$ok;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls,
- locale = props.locale,
- localeCode = props.localeCode,
- inputReadOnly = props.inputReadOnly;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('calendar', customizePrefixCls);
- this._prefixCls = prefixCls;
- var dateRender = props.dateRender || $scopedSlots.dateRender;
- var monthCellContentRender = props.monthCellContentRender || $scopedSlots.monthCellContentRender;
- var placeholder = 'placeholder' in props ? props.placeholder : locale.lang.placeholder;
- var disabledTime = props.showTime ? props.disabledTime : null;
- var calendarClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-time', props.showTime), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-month', _vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_4__["default"] === TheCalendar), _classNames));
- if (value && localeCode) {
- value.locale(localeCode);
- }
- var pickerProps = { props: {}, on: {} };
- var calendarProps = { props: {}, on: {} };
- var pickerStyle = {};
- if (props.showTime) {
- // fix https://github.com/ant-design/ant-design/issues/1902
- calendarProps.on.select = this.handleChange;
- pickerStyle.minWidth = '195px';
- } else {
- pickerProps.on.change = this.handleChange;
- }
- if ('mode' in props) {
- calendarProps.props.mode = props.mode;
- }
- var theCalendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["mergeProps"])(calendarProps, {
- props: {
- disabledDate: props.disabledDate,
- disabledTime: disabledTime,
- locale: locale.lang,
- timePicker: props.timePicker,
- defaultValue: props.defaultPickerValue || Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__)(),
- dateInputPlaceholder: placeholder,
- prefixCls: prefixCls,
- dateRender: dateRender,
- format: props.format,
- showToday: props.showToday,
- monthCellContentRender: monthCellContentRender,
- renderFooter: this.renderFooter,
- value: showDate,
- inputReadOnly: inputReadOnly
- },
- on: {
- ok: ok,
- panelChange: panelChange,
- change: this.handleCalendarChange
- },
- 'class': calendarClassName,
- scopedSlots: $scopedSlots
- });
- var calendar = h(TheCalendar, theCalendarProps);
- var clearIcon = !props.disabled && props.allowClear && value ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: {
- type: 'close-circle',
- theme: 'filled'
- },
- 'class': prefixCls + '-picker-clear',
- on: {
- 'click': this.clearSelection
- }
- }) : null;
- var inputIcon = suffixIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_12__["cloneElement"])(suffixIcon, {
- 'class': prefixCls + '-picker-icon'
- }) : h(
- 'span',
- { 'class': prefixCls + '-picker-icon' },
- [suffixIcon]
- )) || h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: { type: 'calendar' },
- 'class': prefixCls + '-picker-icon' });
- var input = function input(_ref) {
- var inputValue = _ref.value;
- return h('div', [h('input', {
- ref: 'input',
- attrs: { disabled: props.disabled,
- readOnly: true,
- placeholder: placeholder,
- tabIndex: props.tabIndex,
- name: _this2.name
- },
- on: {
- 'focus': focus,
- 'blur': blur
- },
- domProps: {
- 'value': Object(_utils__WEBPACK_IMPORTED_MODULE_13__["formatDate"])(inputValue, _this2.format)
- },
- 'class': props.pickerInputClass }), clearIcon, inputIcon]);
- };
- var vcDatePickerProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, pickerProps.props, {
- calendar: calendar,
- value: value,
- prefixCls: prefixCls + '-picker-container'
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, lodash_omit__WEBPACK_IMPORTED_MODULE_3___default()(listeners, 'change'), pickerProps.on, {
- open: open,
- onOpenChange: this.handleOpenChange
- }),
- style: props.popupStyle,
- scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ 'default': input }, $scopedSlots)
- };
- return h(
- 'span',
- {
- 'class': props.pickerClass,
- style: pickerStyle
- // tabIndex={props.disabled ? -1 : 0}
- // onFocus={focus}
- // onBlur={blur}
- , on: {
- 'mouseenter': this.onMouseEnter,
- 'mouseleave': this.onMouseLeave
- }
- },
- [h(_vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__["default"], vcDatePickerProps)]
- );
- }
- };
- }
- /***/ }),
- /***/ "./components/date-picker/index.js":
- /*!*****************************************!*\
- !*** ./components/date-picker/index.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _vc_calendar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-calendar */ "./components/vc-calendar/index.js");
- /* harmony import */ var _vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-calendar/src/MonthCalendar */ "./components/vc-calendar/src/MonthCalendar.jsx");
- /* harmony import */ var _createPicker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createPicker */ "./components/date-picker/createPicker.js");
- /* harmony import */ var _wrapPicker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./wrapPicker */ "./components/date-picker/wrapPicker.js");
- /* harmony import */ var _RangePicker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./RangePicker */ "./components/date-picker/RangePicker.jsx");
- /* harmony import */ var _WeekPicker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WeekPicker */ "./components/date-picker/WeekPicker.jsx");
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./interface */ "./components/date-picker/interface.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var DatePicker = Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_createPicker__WEBPACK_IMPORTED_MODULE_3__["default"])(_vc_calendar__WEBPACK_IMPORTED_MODULE_1__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["DatePickerProps"])()), { name: 'ADatePicker' }), Object(_interface__WEBPACK_IMPORTED_MODULE_7__["DatePickerProps"])(), 'date');
- var MonthPicker = Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_createPicker__WEBPACK_IMPORTED_MODULE_3__["default"])(_vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["MonthPickerProps"])()), { name: 'AMonthPicker' }), Object(_interface__WEBPACK_IMPORTED_MODULE_7__["MonthPickerProps"])(), 'month');
- babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()(DatePicker, {
- RangePicker: Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(_RangePicker__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["RangePickerProps"])(), 'date'),
- MonthPicker: MonthPicker,
- WeekPicker: Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(_WeekPicker__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["WeekPickerProps"])(), 'week')
- });
- /* istanbul ignore next */
- DatePicker.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_8__["default"]);
- Vue.component(DatePicker.name, DatePicker);
- Vue.component(DatePicker.RangePicker.name, DatePicker.RangePicker);
- Vue.component(DatePicker.MonthPicker.name, DatePicker.MonthPicker);
- Vue.component(DatePicker.WeekPicker.name, DatePicker.WeekPicker);
- };
- /* harmony default export */ __webpack_exports__["default"] = (DatePicker);
- /***/ }),
- /***/ "./components/date-picker/interface.js":
- /*!*********************************************!*\
- !*** ./components/date-picker/interface.js ***!
- \*********************************************/
- /*! exports provided: PickerProps, SinglePickerProps, DatePickerProps, MonthPickerProps, RangePickerProps, WeekPickerProps */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PickerProps", function() { return PickerProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SinglePickerProps", function() { return SinglePickerProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatePickerProps", function() { return DatePickerProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonthPickerProps", function() { return MonthPickerProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RangePickerProps", function() { return RangePickerProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WeekPickerProps", function() { return WeekPickerProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
- // import { TimePickerProps } from '../time-picker'
- var PickerProps = function PickerProps() {
- return {
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- localeCode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['large', 'small', 'default']),
- getCalendarContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- // onOpenChange: PropTypes.(status: bool) => void,
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any, // (current: moment.Moment, today: moment.Moment) => React.ReactNode,
- pickerClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- pickerInputClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- tagPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(function () {
- return {};
- }),
- inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- valueFormat: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- };
- };
- var SinglePickerProps = function SinglePickerProps() {
- return {
- value: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimeType"],
- defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimeType"],
- defaultPickerValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimeType"],
- renderExtraFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- // onChange?: (date: moment.Moment, dateString: string) => void;
- };
- };
- var DatePickerProps = function DatePickerProps() {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), SinglePickerProps(), {
- showTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- // onOpenChange?: (status: bool) => void;
- // onOk?: (selectedTime: moment.Moment) => void;
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['time', 'date', 'month', 'year', 'decade'])
- });
- };
- var MonthPickerProps = function MonthPickerProps() {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), SinglePickerProps(), {
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- monthCellContentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- });
- };
- // export const RangePickerPresetRange = PropTypes.oneOfType([TimesType, PropTypes.func])
- var RangePickerProps = function RangePickerProps() {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), {
- tagPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- value: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimesType"],
- defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimesType"],
- defaultPickerValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimesType"],
- timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- // onChange?: (dates: TimesType, dateStrings: [string, string]) => void;
- // onCalendarChange?: (dates: TimesType, dateStrings: [string, string]) => void;
- // onOk?: (selectedTime: moment.Moment) => void;
- showTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
- ranges: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(String),
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(String)]),
- separator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- renderExtraFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- // onPanelChange?: (value?: TimesType, mode?: string | string[]) => void;
- });
- };
- var WeekPickerProps = function WeekPickerProps() {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), SinglePickerProps(), {
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- });
- };
- // export interface DatePickerDecorator extends React.ClassicComponentClass<DatePickerProps> {
- // RangePicker: React.ClassicComponentClass<RangePickerProps>;
- // MonthPicker: React.ClassicComponentClass<MonthPickerProps>;
- // WeekPicker: React.ClassicComponentClass<WeexPickerProps>;
- // }
- /***/ }),
- /***/ "./components/date-picker/locale/en_US.js":
- /*!************************************************!*\
- !*** ./components/date-picker/locale/en_US.js ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _vc_calendar_src_locale_en_US__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-calendar/src/locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
- /* harmony import */ var _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../time-picker/locale/en_US */ "./components/time-picker/locale/en_US.js");
- // Merge into a locale object
- var locale = {
- lang: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- placeholder: 'Select date',
- rangePlaceholder: ['Start date', 'End date']
- }, _vc_calendar_src_locale_en_US__WEBPACK_IMPORTED_MODULE_1__["default"]),
- timePickerLocale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__["default"])
- };
- // All settings at:
- // https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
- /* harmony default export */ __webpack_exports__["default"] = (locale);
- /***/ }),
- /***/ "./components/date-picker/style/index.js":
- /*!***********************************************!*\
- !*** ./components/date-picker/style/index.js ***!
- \***********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/date-picker/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
- /* harmony import */ var _time_picker_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../time-picker/style */ "./components/time-picker/style/index.js");
- /* harmony import */ var _tag_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../tag/style */ "./components/tag/style/index.js");
- // style dependencies
- // deps-lint-skip: input
- /***/ }),
- /***/ "./components/date-picker/style/index.less":
- /*!*************************************************!*\
- !*** ./components/date-picker/style/index.less ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/date-picker/utils.js":
- /*!*****************************************!*\
- !*** ./components/date-picker/utils.js ***!
- \*****************************************/
- /*! exports provided: formatDate */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatDate", function() { return formatDate; });
- function formatDate(value, format) {
- if (!value) {
- return '';
- }
- if (Array.isArray(format)) {
- format = format[0];
- }
- if (typeof format === 'function') {
- var result = format(value);
- if (typeof result === 'string') {
- return result;
- } else {
- throw new Error('The function of format does not return a string');
- }
- }
- return value.format(format);
- }
- /***/ }),
- /***/ "./components/date-picker/wrapPicker.js":
- /*!**********************************************!*\
- !*** ./components/date-picker/wrapPicker.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return wrapPicker; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _vc_time_picker_Panel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-time-picker/Panel */ "./components/vc-time-picker/Panel.jsx");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _time_picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../time-picker */ "./components/time-picker/index.jsx");
- /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./locale/en_US */ "./components/date-picker/locale/en_US.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
- var DEFAULT_FORMAT = {
- date: 'YYYY-MM-DD',
- dateTime: 'YYYY-MM-DD HH:mm:ss',
- week: 'gggg-wo',
- month: 'YYYY-MM'
- };
- var LOCALE_FORMAT_MAPPING = {
- date: 'dateFormat',
- dateTime: 'dateTimeFormat',
- week: 'weekFormat',
- month: 'monthFormat'
- };
- function getColumns(_ref) {
- var showHour = _ref.showHour,
- showMinute = _ref.showMinute,
- showSecond = _ref.showSecond,
- use12Hours = _ref.use12Hours;
- var column = 0;
- if (showHour) {
- column += 1;
- }
- if (showMinute) {
- column += 1;
- }
- if (showSecond) {
- column += 1;
- }
- if (use12Hours) {
- column += 1;
- }
- return column;
- }
- function wrapPicker(Picker, props, pickerType) {
- return {
- name: Picker.name,
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(props, {
- transitionName: 'slide-up',
- popupStyle: {},
- locale: {}
- }),
- model: {
- prop: 'value',
- event: 'change'
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- provide: function provide() {
- return {
- savePopupRef: this.savePopupRef
- };
- },
- mounted: function mounted() {
- var _this = this;
- var autoFocus = this.autoFocus,
- disabled = this.disabled,
- value = this.value,
- defaultValue = this.defaultValue,
- valueFormat = this.valueFormat;
- Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["checkValidate"])('DatePicker', defaultValue, 'defaultValue', valueFormat);
- Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["checkValidate"])('DatePicker', value, 'value', valueFormat);
- if (autoFocus && !disabled) {
- this.$nextTick(function () {
- _this.focus();
- });
- }
- },
- watch: {
- value: function value(val) {
- Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["checkValidate"])('DatePicker', val, 'value', this.valueFormat);
- }
- },
- methods: {
- getDefaultLocale: function getDefaultLocale() {
- var result = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _locale_en_US__WEBPACK_IMPORTED_MODULE_6__["default"], this.locale);
- result.lang = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, result.lang, (this.locale || {}).lang);
- return result;
- },
- savePopupRef: function savePopupRef(ref) {
- this.popupRef = ref;
- },
- handleOpenChange: function handleOpenChange(open) {
- this.$emit('openChange', open);
- },
- handleFocus: function handleFocus(e) {
- this.$emit('focus', e);
- },
- handleBlur: function handleBlur(e) {
- this.$emit('blur', e);
- },
- handleMouseEnter: function handleMouseEnter(e) {
- this.$emit('mouseenter', e);
- },
- handleMouseLeave: function handleMouseLeave(e) {
- this.$emit('mouseleave', e);
- },
- handleChange: function handleChange(date, dateString) {
- this.$emit('change', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["momentToString"])(date, this.valueFormat) : date, dateString);
- },
- handleOk: function handleOk(val) {
- this.$emit('ok', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["momentToString"])(val, this.valueFormat) : val);
- },
- handleCalendarChange: function handleCalendarChange(date, dateString) {
- this.$emit('calendarChange', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["momentToString"])(date, this.valueFormat) : date, dateString);
- },
- focus: function focus() {
- this.$refs.picker.focus();
- },
- blur: function blur() {
- this.$refs.picker.blur();
- },
- transformValue: function transformValue(props) {
- if ('value' in props) {
- props.value = Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["stringToMoment"])(props.value, this.valueFormat);
- }
- if ('defaultValue' in props) {
- props.defaultValue = Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["stringToMoment"])(props.defaultValue, this.valueFormat);
- }
- if ('defaultPickerValue' in props) {
- props.defaultPickerValue = Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["stringToMoment"])(props.defaultPickerValue, this.valueFormat);
- }
- },
- renderPicker: function renderPicker(locale, localeCode) {
- var _classNames2,
- _this2 = this;
- var h = this.$createElement;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
- this.transformValue(props);
- var customizePrefixCls = props.prefixCls,
- customizeInputPrefixCls = props.inputPrefixCls,
- getCalendarContainer = props.getCalendarContainer,
- size = props.size,
- showTime = props.showTime,
- disabled = props.disabled,
- format = props.format;
- var mergedPickerType = showTime ? pickerType + 'Time' : pickerType;
- var mergedFormat = format || locale[LOCALE_FORMAT_MAPPING[mergedPickerType]] || DEFAULT_FORMAT[mergedPickerType];
- var _configProvider = this.configProvider,
- getPrefixCls = _configProvider.getPrefixCls,
- getContextPopupContainer = _configProvider.getPopupContainer;
- var getPopupContainer = getCalendarContainer || getContextPopupContainer;
- var prefixCls = getPrefixCls('calendar', customizePrefixCls);
- var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
- var pickerClass = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-picker', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-picker-' + size, !!size));
- var pickerInputClass = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-picker-input', inputPrefixCls, (_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, inputPrefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, inputPrefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, inputPrefixCls + '-disabled', disabled), _classNames2));
- var timeFormat = showTime && showTime.format || 'HH:mm:ss';
- var vcTimePickerProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_time_picker__WEBPACK_IMPORTED_MODULE_5__["generateShowHourMinuteSecond"])(timeFormat), {
- format: timeFormat,
- use12Hours: showTime && showTime.use12Hours
- });
- var columns = getColumns(vcTimePickerProps);
- var timePickerCls = prefixCls + '-time-picker-column-' + columns;
- var timePickerPanelProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, vcTimePickerProps, showTime, {
- prefixCls: prefixCls + '-time-picker',
- placeholder: locale.timePickerLocale.placeholder,
- transitionName: 'slide-up'
- }),
- 'class': timePickerCls,
- on: {
- esc: function esc() {}
- }
- };
- var timePicker = showTime ? h(_vc_time_picker_Panel__WEBPACK_IMPORTED_MODULE_2__["default"], timePickerPanelProps) : null;
- var pickerProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- getCalendarContainer: getPopupContainer,
- format: mergedFormat,
- pickerClass: pickerClass,
- pickerInputClass: pickerInputClass,
- locale: locale,
- localeCode: localeCode,
- timePicker: timePicker
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), {
- openChange: this.handleOpenChange,
- focus: this.handleFocus,
- blur: this.handleBlur,
- mouseenter: this.handleMouseEnter,
- mouseleave: this.handleMouseLeave,
- change: this.handleChange,
- ok: this.handleOk,
- calendarChange: this.handleCalendarChange
- }),
- ref: 'picker',
- scopedSlots: this.$scopedSlots || {}
- };
- return h(
- Picker,
- pickerProps,
- [this.$slots && Object.keys(this.$slots).map(function (key) {
- return h(
- 'template',
- { slot: key, key: key },
- [_this2.$slots[key]]
- );
- })]
- );
- }
- },
- render: function render() {
- var h = arguments[0];
- return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: {
- componentName: 'DatePicker',
- defaultLocale: this.getDefaultLocale
- },
- scopedSlots: { 'default': this.renderPicker }
- });
- }
- };
- }
- /***/ }),
- /***/ "./components/descriptions/Col.jsx":
- /*!*****************************************!*\
- !*** ./components/descriptions/Col.jsx ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var ColProps = {
- child: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['label', 'content']),
- layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical'])
- };
- var Col = {
- functional: true,
- props: ColProps,
- render: function render(h, ctx) {
- var _ref;
- var _ctx$props = ctx.props,
- child = _ctx$props.child,
- bordered = _ctx$props.bordered,
- colon = _ctx$props.colon,
- type = _ctx$props.type,
- layout = _ctx$props.layout;
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(child),
- prefixCls = _getOptionProps.prefixCls,
- _getOptionProps$span = _getOptionProps.span,
- span = _getOptionProps$span === undefined ? 1 : _getOptionProps$span;
- var key = ctx.data.key;
- var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(child, 'label');
- var slots = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getSlots"])(child);
- var labelProps = {
- attrs: {},
- 'class': [prefixCls + '-item-label', (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-item-colon', colon), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-item-no-label', !label), _ref)],
- key: key + '-label'
- };
- if (layout === 'vertical') {
- labelProps.attrs.colSpan = span * 2 - 1;
- }
- if (bordered) {
- if (type === 'label') {
- return h(
- 'th',
- labelProps,
- [label]
- );
- }
- return h(
- 'td',
- { 'class': prefixCls + '-item-content', key: key + '-content', attrs: { colSpan: span * 2 - 1 }
- },
- [slots['default']]
- );
- }
- if (layout === 'vertical') {
- if (type === 'content') {
- return h(
- 'td',
- {
- attrs: { colSpan: span },
- 'class': prefixCls + '-item' },
- [h(
- 'span',
- { 'class': prefixCls + '-item-content', key: key + '-content' },
- [slots['default']]
- )]
- );
- }
- return h(
- 'td',
- {
- attrs: { colSpan: span },
- 'class': prefixCls + '-item' },
- [h(
- 'span',
- {
- 'class': [prefixCls + '-item-label', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-item-colon', colon)],
- key: key + '-label'
- },
- [label]
- )]
- );
- }
- return h(
- 'td',
- {
- attrs: { colSpan: span },
- 'class': prefixCls + '-item' },
- [h(
- 'span',
- labelProps,
- [label]
- ), h(
- 'span',
- { 'class': prefixCls + '-item-content', key: key + '-content' },
- [slots['default']]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Col);
- /***/ }),
- /***/ "./components/descriptions/index.jsx":
- /*!*******************************************!*\
- !*** ./components/descriptions/index.jsx ***!
- \*******************************************/
- /*! exports provided: DescriptionsItemProps, DescriptionsItem, DescriptionsProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescriptionsItemProps", function() { return DescriptionsItemProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescriptionsItem", function() { return DescriptionsItem; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescriptionsProps", function() { return DescriptionsProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/responsiveObserve */ "./components/_util/responsiveObserve.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Col */ "./components/descriptions/Col.jsx");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- var DescriptionsItemProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- label: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- span: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number
- };
- function toArray(value) {
- var ret = value;
- if (value === undefined) {
- ret = [];
- } else if (!Array.isArray(value)) {
- ret = [value];
- }
- return ret;
- }
- var DescriptionsItem = {
- name: 'ADescriptionsItem',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(DescriptionsItemProps, { span: 1 })
- };
- var DescriptionsProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['default', 'middle', 'small']).def('default'),
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- column: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
- layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['horizontal', 'vertical']),
- colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
- };
- /**
- * Convert children into `column` groups.
- * @param children: DescriptionsItem
- * @param column: number
- */
- var generateChildrenRows = function generateChildrenRows(children, column) {
- var rows = [];
- var columns = null;
- var leftSpans = void 0;
- var itemNodes = toArray(children);
- itemNodes.forEach(function (node, index) {
- var itemProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node);
- var itemNode = node;
- if (!columns) {
- leftSpans = column;
- columns = [];
- rows.push(columns);
- }
- // Always set last span to align the end of Descriptions
- var lastItem = index === itemNodes.length - 1;
- var lastSpanSame = true;
- if (lastItem) {
- lastSpanSame = !itemProps.span || itemProps.span === leftSpans;
- itemNode = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_10__["cloneElement"])(itemNode, {
- props: {
- span: leftSpans
- }
- });
- }
- // Calculate left fill span
- var _itemProps$span = itemProps.span,
- span = _itemProps$span === undefined ? 1 : _itemProps$span;
- columns.push(itemNode);
- leftSpans -= span;
- if (leftSpans <= 0) {
- columns = null;
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(leftSpans === 0 && lastSpanSame, 'Descriptions', 'Sum of column `span` in a line exceeds `column` of Descriptions.');
- }
- });
- return rows;
- };
- var defaultColumnMap = {
- xxl: 3,
- xl: 3,
- lg: 3,
- md: 3,
- sm: 2,
- xs: 1
- };
- var Descriptions = {
- name: 'ADescriptions',
- Item: DescriptionsItem,
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
- } }
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(DescriptionsProps, {
- column: defaultColumnMap
- }),
- data: function data() {
- return {
- screens: {},
- token: undefined
- };
- },
- methods: {
- getColumn: function getColumn() {
- var column = this.$props.column;
- if ((typeof column === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(column)) === 'object') {
- for (var i = 0; i < _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["responsiveArray"].length; i++) {
- var breakpoint = _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["responsiveArray"][i];
- if (this.screens[breakpoint] && column[breakpoint] !== undefined) {
- return column[breakpoint] || defaultColumnMap[breakpoint];
- }
- }
- }
- // If the configuration is not an object, it is a number, return number
- if (typeof column === 'number') {
- return column;
- }
- // If it is an object, but no response is found, this happens only in the test.
- // Maybe there are some strange environments
- return 3;
- },
- renderRow: function renderRow(children, index, _ref, bordered, layout, colon) {
- var prefixCls = _ref.prefixCls;
- var h = this.$createElement;
- var renderCol = function renderCol(colItem, type, idx) {
- return h(_Col__WEBPACK_IMPORTED_MODULE_5__["default"], {
- attrs: {
- child: colItem,
- bordered: bordered,
- colon: colon,
- type: type,
- layout: layout
- },
- key: type + '-' + (colItem.key || idx) });
- };
- var cloneChildren = [];
- var cloneContentChildren = [];
- toArray(children).forEach(function (childrenItem, idx) {
- cloneChildren.push(renderCol(childrenItem, 'label', idx));
- if (layout === 'vertical') {
- cloneContentChildren.push(renderCol(childrenItem, 'content', idx));
- } else if (bordered) {
- cloneChildren.push(renderCol(childrenItem, 'content', idx));
- }
- });
- if (layout === 'vertical') {
- return [h(
- 'tr',
- { 'class': prefixCls + '-row', key: 'label-' + index },
- [cloneChildren]
- ), h(
- 'tr',
- { 'class': prefixCls + '-row', key: 'content-' + index },
- [cloneContentChildren]
- )];
- }
- return h(
- 'tr',
- { 'class': prefixCls + '-row', key: index },
- [cloneChildren]
- );
- }
- },
- mounted: function mounted() {
- var _this = this;
- var column = this.$props.column;
- this.token = _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["default"].subscribe(function (screens) {
- if ((typeof column === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(column)) !== 'object') {
- return;
- }
- _this.setState({
- screens: screens
- });
- });
- },
- beforeDestroy: function beforeDestroy() {
- _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["default"].unsubscribe(this.token);
- },
- render: function render() {
- var _ref2,
- _this2 = this;
- var h = arguments[0];
- var _$props = this.$props,
- customizePrefixCls = _$props.prefixCls,
- size = _$props.size,
- _$props$bordered = _$props.bordered,
- bordered = _$props$bordered === undefined ? false : _$props$bordered,
- _$props$layout = _$props.layout,
- layout = _$props$layout === undefined ? 'horizontal' : _$props$layout,
- _$props$colon = _$props.colon,
- colon = _$props$colon === undefined ? true : _$props$colon;
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'title') || null;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('descriptions', customizePrefixCls);
- var column = this.getColumn();
- var children = this.$slots['default'];
- var cloneChildren = toArray(children).map(function (child) {
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["isValidElement"])(child)) {
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_10__["cloneElement"])(child, {
- props: {
- prefixCls: prefixCls
- }
- });
- }
- return null;
- }).filter(function (node) {
- return node;
- });
- var childrenArray = generateChildrenRows(cloneChildren, column);
- return h(
- 'div',
- {
- 'class': [prefixCls, (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, prefixCls + '-' + size, size !== 'default'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, prefixCls + '-bordered', !!bordered), _ref2)]
- },
- [title && h(
- 'div',
- { 'class': prefixCls + '-title' },
- [title]
- ), h(
- 'div',
- { 'class': prefixCls + '-view' },
- [h('table', [h('tbody', [childrenArray.map(function (child, index) {
- return _this2.renderRow(child, index, {
- prefixCls: prefixCls
- }, bordered, layout, colon);
- })])])]
- )]
- );
- }
- };
- Descriptions.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
- Vue.component(Descriptions.name, Descriptions);
- Vue.component(Descriptions.Item.name, Descriptions.Item);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Descriptions);
- /***/ }),
- /***/ "./components/descriptions/style/index.js":
- /*!************************************************!*\
- !*** ./components/descriptions/style/index.js ***!
- \************************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/descriptions/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/descriptions/style/index.less":
- /*!**************************************************!*\
- !*** ./components/descriptions/style/index.less ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/divider/index.jsx":
- /*!**************************************!*\
- !*** ./components/divider/index.jsx ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var Divider = {
- name: 'ADivider',
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical', '']).def('horizontal'),
- dashed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- orientation: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['left', 'right', 'center'])
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
- } }
- },
- render: function render() {
- var _classString;
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- type = this.type,
- $slots = this.$slots,
- dashed = this.dashed,
- _orientation = this.orientation,
- orientation = _orientation === undefined ? 'center' : _orientation;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('divider', customizePrefixCls);
- var orientationPrefix = orientation.length > 0 ? '-' + orientation : orientation;
- var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls + '-' + type, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls + '-with-text' + orientationPrefix, $slots['default']), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls + '-dashed', !!dashed), _classString);
- return h(
- 'div',
- { 'class': classString, attrs: { role: 'separator' }
- },
- [$slots['default'] && h(
- 'span',
- { 'class': prefixCls + '-inner-text' },
- [$slots['default']]
- )]
- );
- }
- };
- /* istanbul ignore next */
- Divider.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
- Vue.component(Divider.name, Divider);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Divider);
- /***/ }),
- /***/ "./components/divider/style/index.js":
- /*!*******************************************!*\
- !*** ./components/divider/style/index.js ***!
- \*******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/divider/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/divider/style/index.less":
- /*!*********************************************!*\
- !*** ./components/divider/style/index.less ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/drawer/index.jsx":
- /*!*************************************!*\
- !*** ./components/drawer/index.jsx ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _vc_drawer_src__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-drawer/src */ "./components/vc-drawer/src/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var Drawer = {
- name: 'ADrawer',
- props: {
- closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
- destroyOnClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
- mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
- maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
- wrapStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
- bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
- headerStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
- drawerStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- width: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number]).def(256),
- height: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number]).def(256),
- zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['top', 'right', 'bottom', 'left']).def('right'),
- level: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any.def(null),
- wrapClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, // not use class like react, vue will add class to root dom
- handle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- afterVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true)
- },
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
- data: function data() {
- this.destroyClose = false;
- this.preVisible = this.$props.visible;
- return {
- _push: false
- };
- },
- inject: {
- parentDrawer: {
- 'default': function _default() {
- return null;
- }
- },
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
- } }
- },
- provide: function provide() {
- return {
- parentDrawer: this
- };
- },
- mounted: function mounted() {
- // fix: delete drawer in child and re-render, no push started.
- // <Drawer>{show && <Drawer />}</Drawer>
- var visible = this.visible;
- if (visible && this.parentDrawer) {
- this.parentDrawer.push();
- }
- },
- updated: function updated() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.preVisible !== _this.visible && _this.parentDrawer) {
- if (_this.visible) {
- _this.parentDrawer.push();
- } else {
- _this.parentDrawer.pull();
- }
- }
- _this.preVisible = _this.visible;
- });
- },
- beforeDestroy: function beforeDestroy() {
- // unmount drawer in child, clear push.
- if (this.parentDrawer) {
- this.parentDrawer.pull();
- }
- },
- methods: {
- domFocus: function domFocus() {
- if (this.$refs.vcDrawer) {
- this.$refs.vcDrawer.domFocus();
- }
- },
- close: function close(e) {
- this.$emit('close', e);
- },
- // onMaskClick(e) {
- // if (!this.maskClosable) {
- // return;
- // }
- // this.close(e);
- // },
- push: function push() {
- this.setState({
- _push: true
- });
- },
- pull: function pull() {
- var _this2 = this;
- this.setState({
- _push: false
- }, function () {
- _this2.domFocus();
- });
- },
- onDestroyTransitionEnd: function onDestroyTransitionEnd() {
- var isDestroyOnClose = this.getDestroyOnClose();
- if (!isDestroyOnClose) {
- return;
- }
- if (!this.visible) {
- this.destroyClose = true;
- this.$forceUpdate();
- }
- },
- getDestroyOnClose: function getDestroyOnClose() {
- return this.destroyOnClose && !this.visible;
- },
- // get drawar push width or height
- getPushTransform: function getPushTransform(placement) {
- if (placement === 'left' || placement === 'right') {
- return 'translateX(' + (placement === 'left' ? 180 : -180) + 'px)';
- }
- if (placement === 'top' || placement === 'bottom') {
- return 'translateY(' + (placement === 'top' ? 180 : -180) + 'px)';
- }
- },
- getRcDrawerStyle: function getRcDrawerStyle() {
- var _$props = this.$props,
- zIndex = _$props.zIndex,
- placement = _$props.placement,
- wrapStyle = _$props.wrapStyle;
- var push = this.$data._push;
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- zIndex: zIndex,
- transform: push ? this.getPushTransform(placement) : undefined
- }, wrapStyle);
- },
- renderHeader: function renderHeader(prefixCls) {
- var h = this.$createElement;
- var _$props2 = this.$props,
- closable = _$props2.closable,
- headerStyle = _$props2.headerStyle;
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'title');
- if (!title && !closable) {
- return null;
- }
- var headerClassName = title ? prefixCls + '-header' : prefixCls + '-header-no-title';
- return h(
- 'div',
- { 'class': headerClassName, style: headerStyle },
- [title && h(
- 'div',
- { 'class': prefixCls + '-title' },
- [title]
- ), closable ? this.renderCloseIcon(prefixCls) : null]
- );
- },
- renderCloseIcon: function renderCloseIcon(prefixCls) {
- var h = this.$createElement;
- var closable = this.closable;
- return closable && h(
- 'button',
- { key: 'closer', on: {
- 'click': this.close
- },
- attrs: { 'aria-label': 'Close' },
- 'class': prefixCls + '-close' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: { type: 'close' }
- })]
- );
- },
- // render drawer body dom
- renderBody: function renderBody(prefixCls) {
- var h = this.$createElement;
- if (this.destroyClose && !this.visible) {
- return null;
- }
- this.destroyClose = false;
- var _$props3 = this.$props,
- bodyStyle = _$props3.bodyStyle,
- drawerStyle = _$props3.drawerStyle;
- var containerStyle = {};
- var isDestroyOnClose = this.getDestroyOnClose();
- if (isDestroyOnClose) {
- // Increase the opacity transition, delete children after closing.
- containerStyle.opacity = 0;
- containerStyle.transition = 'opacity .3s';
- }
- return h(
- 'div',
- {
- 'class': prefixCls + '-wrapper-body',
- style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, containerStyle, drawerStyle),
- on: {
- 'transitionend': this.onDestroyTransitionEnd
- }
- },
- [this.renderHeader(prefixCls), h(
- 'div',
- { key: 'body', 'class': prefixCls + '-body', style: bodyStyle },
- [this.$slots['default']]
- )]
- );
- }
- },
- render: function render() {
- var _classnames;
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls,
- width = props.width,
- height = props.height,
- visible = props.visible,
- placement = props.placement,
- wrapClassName = props.wrapClassName,
- mask = props.mask,
- rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(props, ['prefixCls', 'width', 'height', 'visible', 'placement', 'wrapClassName', 'mask']);
- var haveMask = mask ? '' : 'no-mask';
- var offsetStyle = {};
- if (placement === 'left' || placement === 'right') {
- offsetStyle.width = typeof width === 'number' ? width + 'px' : width;
- } else {
- offsetStyle.height = typeof height === 'number' ? height + 'px' : height;
- }
- var handler = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'handle') || false;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('drawer', customizePrefixCls);
- var vcDrawerProps = {
- ref: 'vcDrawer',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(rest, ['closable', 'destroyOnClose', 'drawerStyle', 'headerStyle', 'bodyStyle', 'title', 'push', 'visible', 'getPopupContainer', 'rootPrefixCls', 'getPrefixCls', 'renderEmpty', 'csp', 'pageHeader', 'autoInsertSpaceInButton']), {
- handler: handler
- }, offsetStyle, {
- prefixCls: prefixCls,
- open: visible,
- showMask: mask,
- placement: placement,
- className: classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classnames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, wrapClassName, !!wrapClassName), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, haveMask, !!haveMask), _classnames)),
- wrapStyle: this.getRcDrawerStyle()
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this))
- };
- return h(
- _vc_drawer_src__WEBPACK_IMPORTED_MODULE_5__["default"],
- vcDrawerProps,
- [this.renderBody(prefixCls)]
- );
- }
- };
- /* istanbul ignore next */
- Drawer.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_11__["default"]);
- Vue.component(Drawer.name, Drawer);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Drawer);
- /***/ }),
- /***/ "./components/drawer/style/index.js":
- /*!******************************************!*\
- !*** ./components/drawer/style/index.js ***!
- \******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/drawer/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- // deps-lint-skip: empty
- /***/ }),
- /***/ "./components/drawer/style/index.less":
- /*!********************************************!*\
- !*** ./components/drawer/style/index.less ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/dropdown/dropdown-button.jsx":
- /*!*************************************************!*\
- !*** ./components/dropdown/dropdown-button.jsx ***!
- \*************************************************/
- /*! exports provided: DropdownButtonProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownButtonProps", function() { return DropdownButtonProps; });
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
- /* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
- /* harmony import */ var _button_button_group__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../button/button-group */ "./components/button/button-group.jsx");
- /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dropdown */ "./components/dropdown/dropdown.jsx");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _getDropdownProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./getDropdownProps */ "./components/dropdown/getDropdownProps.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- var ButtonTypesProps = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_3__["default"])();
- var DropdownProps = Object(_getDropdownProps__WEBPACK_IMPORTED_MODULE_8__["default"])();
- var ButtonGroup = _button__WEBPACK_IMPORTED_MODULE_2__["default"].Group;
- var DropdownButtonProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _button_button_group__WEBPACK_IMPORTED_MODULE_4__["ButtonGroupProps"], DropdownProps, {
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['primary', 'ghost', 'dashed', 'danger', 'default']).def('default'),
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['small', 'large', 'default']).def('default'),
- htmlType: ButtonTypesProps.htmlType,
- href: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- placement: DropdownProps.placement.def('bottomRight'),
- icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string
- });
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ADropdownButton',
- model: {
- prop: 'visible',
- event: 'visibleChange'
- },
- props: DropdownButtonProps,
- provide: function provide() {
- return {
- savePopupRef: this.savePopupRef
- };
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
- } }
- },
- methods: {
- savePopupRef: function savePopupRef(ref) {
- this.popupRef = ref;
- },
- onClick: function onClick(e) {
- this.$emit('click', e);
- },
- onVisibleChange: function onVisibleChange(val) {
- this.$emit('visibleChange', val);
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$props = this.$props,
- type = _$props.type,
- disabled = _$props.disabled,
- htmlType = _$props.htmlType,
- customizePrefixCls = _$props.prefixCls,
- trigger = _$props.trigger,
- align = _$props.align,
- visible = _$props.visible,
- placement = _$props.placement,
- getPopupContainer = _$props.getPopupContainer,
- href = _$props.href,
- title = _$props.title,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_$props, ['type', 'disabled', 'htmlType', 'prefixCls', 'trigger', 'align', 'visible', 'placement', 'getPopupContainer', 'href', 'title']);
- var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'icon') || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'ellipsis' }
- });
- var getContextPopupContainer = this.configProvider.getPopupContainer;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('dropdown-button', customizePrefixCls);
- var dropdownProps = {
- props: {
- align: align,
- disabled: disabled,
- trigger: disabled ? [] : trigger,
- placement: placement,
- getPopupContainer: getPopupContainer || getContextPopupContainer
- },
- on: {
- visibleChange: this.onVisibleChange
- }
- };
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["hasProp"])(this, 'visible')) {
- dropdownProps.props.visible = visible;
- }
- var buttonGroupProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, restProps),
- 'class': prefixCls
- };
- return h(
- ButtonGroup,
- buttonGroupProps,
- [h(
- _button__WEBPACK_IMPORTED_MODULE_2__["default"],
- {
- attrs: {
- type: type,
- disabled: disabled,
- htmlType: htmlType,
- href: href,
- title: title
- },
- on: {
- 'click': this.onClick
- }
- },
- [this.$slots['default']]
- ), h(
- _dropdown__WEBPACK_IMPORTED_MODULE_5__["default"],
- dropdownProps,
- [h(
- 'template',
- { slot: 'overlay' },
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'overlay')]
- ), h(
- _button__WEBPACK_IMPORTED_MODULE_2__["default"],
- {
- attrs: { type: type }
- },
- [icon]
- )]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/dropdown/dropdown.jsx":
- /*!******************************************!*\
- !*** ./components/dropdown/dropdown.jsx ***!
- \******************************************/
- /*! exports provided: default, DropdownProps */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownProps", function() { return DropdownProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _vc_dropdown_src_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-dropdown/src/index */ "./components/vc-dropdown/src/index.js");
- /* harmony import */ var _dropdown_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dropdown-button */ "./components/dropdown/dropdown-button.jsx");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _getDropdownProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getDropdownProps */ "./components/dropdown/getDropdownProps.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- var DropdownProps = Object(_getDropdownProps__WEBPACK_IMPORTED_MODULE_6__["default"])();
- var Dropdown = {
- name: 'ADropdown',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, DropdownProps, {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.15),
- mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.1),
- placement: DropdownProps.placement.def('bottomLeft')
- }),
- model: {
- prop: 'visible',
- event: 'visibleChange'
- },
- provide: function provide() {
- return {
- savePopupRef: this.savePopupRef
- };
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
- } }
- },
- methods: {
- savePopupRef: function savePopupRef(ref) {
- this.popupRef = ref;
- },
- getTransitionName: function getTransitionName() {
- var _$props = this.$props,
- _$props$placement = _$props.placement,
- placement = _$props$placement === undefined ? '' : _$props$placement,
- transitionName = _$props.transitionName;
- if (transitionName !== undefined) {
- return transitionName;
- }
- if (placement.indexOf('top') >= 0) {
- return 'slide-down';
- }
- return 'slide-up';
- },
- renderOverlay: function renderOverlay(prefixCls) {
- var h = this.$createElement;
- var overlay = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'overlay');
- var overlayNode = Array.isArray(overlay) ? overlay[0] : overlay;
- // menu cannot be selectable in dropdown defaultly
- // menu should be focusable in dropdown defaultly
- var overlayProps = overlayNode && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getPropsData"])(overlayNode);
- var _ref = overlayProps || {},
- _ref$selectable = _ref.selectable,
- selectable = _ref$selectable === undefined ? false : _ref$selectable,
- _ref$focusable = _ref.focusable,
- focusable = _ref$focusable === undefined ? true : _ref$focusable;
- var expandIcon = h(
- 'span',
- { 'class': prefixCls + '-menu-submenu-arrow' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: { type: 'right' },
- 'class': prefixCls + '-menu-submenu-arrow-icon' })]
- );
- var fixedModeOverlay = overlayNode && overlayNode.componentOptions ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(overlayNode, {
- props: {
- mode: 'vertical',
- selectable: selectable,
- focusable: focusable,
- expandIcon: expandIcon
- }
- }) : overlay;
- return fixedModeOverlay;
- }
- },
- render: function render() {
- var h = arguments[0];
- var $slots = this.$slots;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls,
- trigger = props.trigger,
- disabled = props.disabled,
- getPopupContainer = props.getPopupContainer;
- var getContextPopupContainer = this.configProvider.getPopupContainer;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
- var dropdownTrigger = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])($slots['default'], {
- 'class': prefixCls + '-trigger',
- props: {
- disabled: disabled
- }
- });
- var triggerActions = disabled ? [] : trigger;
- var alignPoint = void 0;
- if (triggerActions && triggerActions.indexOf('contextmenu') !== -1) {
- alignPoint = true;
- }
- var dropdownProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- alignPoint: alignPoint
- }, props, {
- prefixCls: prefixCls,
- getPopupContainer: getPopupContainer || getContextPopupContainer,
- transitionName: this.getTransitionName(),
- trigger: triggerActions
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
- };
- return h(
- _vc_dropdown_src_index__WEBPACK_IMPORTED_MODULE_1__["default"],
- dropdownProps,
- [dropdownTrigger, h(
- 'template',
- { slot: 'overlay' },
- [this.renderOverlay(prefixCls)]
- )]
- );
- }
- };
- Dropdown.Button = _dropdown_button__WEBPACK_IMPORTED_MODULE_2__["default"];
- /* harmony default export */ __webpack_exports__["default"] = (Dropdown);
- /***/ }),
- /***/ "./components/dropdown/getDropdownProps.js":
- /*!*************************************************!*\
- !*** ./components/dropdown/getDropdownProps.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = (function () {
- return {
- trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array.def(['hover']),
- overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight']),
- overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- openClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- minOverlayWidthMatchTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
- };
- });
- /***/ }),
- /***/ "./components/dropdown/index.js":
- /*!**************************************!*\
- !*** ./components/dropdown/index.js ***!
- \**************************************/
- /*! exports provided: DropdownProps, DropdownButtonProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dropdown */ "./components/dropdown/dropdown.jsx");
- /* harmony import */ var _dropdown_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dropdown-button */ "./components/dropdown/dropdown-button.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownProps", function() { return _dropdown__WEBPACK_IMPORTED_MODULE_0__["DropdownProps"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownButtonProps", function() { return _dropdown_button__WEBPACK_IMPORTED_MODULE_1__["DropdownButtonProps"]; });
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _dropdown__WEBPACK_IMPORTED_MODULE_0__["default"].Button = _dropdown_button__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _dropdown__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
- Vue.component(_dropdown__WEBPACK_IMPORTED_MODULE_0__["default"].name, _dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_dropdown_button__WEBPACK_IMPORTED_MODULE_1__["default"].name, _dropdown_button__WEBPACK_IMPORTED_MODULE_1__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/dropdown/style/index.js":
- /*!********************************************!*\
- !*** ./components/dropdown/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/dropdown/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/dropdown/style/index.less":
- /*!**********************************************!*\
- !*** ./components/dropdown/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/empty/empty.jsx":
- /*!************************************!*\
- !*** ./components/empty/empty.jsx ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- functional: true,
- PRESENTED_IMAGE_DEFAULT: true,
- render: function render() {
- var h = arguments[0];
- return h(
- "svg",
- {
- attrs: { width: "184", height: "152", viewBox: "0 0 184 152", xmlns: "http://www.w3.org/2000/svg" }
- },
- [h(
- "g",
- {
- attrs: { fill: "none", fillRule: "evenodd" }
- },
- [h(
- "g",
- {
- attrs: { transform: "translate(24 31.67)" }
- },
- [h("ellipse", {
- attrs: {
- fillOpacity: ".8",
- fill: "#F5F5F7",
- cx: "67.797",
- cy: "106.89",
- rx: "67.797",
- ry: "12.668"
- }
- }), h("path", {
- attrs: {
- d: "M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",
- fill: "#AEB8C2"
- }
- }), h("path", {
- attrs: {
- d: "M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",
- fill: "url(#linearGradient-1)",
- transform: "translate(13.56)"
- }
- }), h("path", {
- attrs: {
- d: "M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",
- fill: "#F5F5F7"
- }
- }), h("path", {
- attrs: {
- d: "M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",
- fill: "#DCE0E6"
- }
- })]
- ), h("path", {
- attrs: {
- d: "M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",
- fill: "#DCE0E6"
- }
- }), h(
- "g",
- {
- attrs: { transform: "translate(149.65 15.383)", fill: "#FFF" }
- },
- [h("ellipse", {
- attrs: { cx: "20.654", cy: "3.167", rx: "2.849", ry: "2.815" }
- }), h("path", {
- attrs: { d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z" }
- })]
- )]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/empty/index.jsx":
- /*!************************************!*\
- !*** ./components/empty/index.jsx ***!
- \************************************/
- /*! exports provided: TransferLocale, EmptyProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferLocale", function() { return TransferLocale; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmptyProps", function() { return EmptyProps; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./empty */ "./components/empty/empty.jsx");
- /* harmony import */ var _simple__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./simple */ "./components/empty/simple.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var TransferLocale = function TransferLocale() {
- return {
- description: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string
- };
- };
- var EmptyProps = function EmptyProps() {
- return {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- image: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- description: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- imageStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object
- };
- };
- var Empty = {
- name: 'AEmpty',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, EmptyProps()),
- methods: {
- renderEmpty: function renderEmpty(contentLocale) {
- var h = this.$createElement;
- var _$props = this.$props,
- customizePrefixCls = _$props.prefixCls,
- imageStyle = _$props.imageStyle;
- var prefixCls = _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"].getPrefixCls('empty', customizePrefixCls);
- var image = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'image') || h(_empty__WEBPACK_IMPORTED_MODULE_8__["default"]);
- var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'description');
- var des = typeof description !== 'undefined' ? description : contentLocale.description;
- var alt = typeof des === 'string' ? des : 'empty';
- var cls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls, true);
- var imageNode = null;
- if (typeof image === 'string') {
- imageNode = h('img', {
- attrs: { alt: alt, src: image }
- });
- } else if ((typeof image === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(image)) === 'object' && image.PRESENTED_IMAGE_SIMPLE) {
- var Image = image;
- imageNode = h(Image);
- cls[prefixCls + '-normal'] = true;
- } else {
- imageNode = image;
- }
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': cls }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this) }]),
- [h(
- 'div',
- { 'class': prefixCls + '-image', style: imageStyle },
- [imageNode]
- ), des && h(
- 'p',
- { 'class': prefixCls + '-description' },
- [des]
- ), this.$slots['default'] && h(
- 'div',
- { 'class': prefixCls + '-footer' },
- [this.$slots['default']]
- )]
- );
- }
- },
- render: function render() {
- var h = arguments[0];
- return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: { componentName: 'Empty' },
- scopedSlots: { 'default': this.renderEmpty } });
- }
- };
- Empty.PRESENTED_IMAGE_DEFAULT = _empty__WEBPACK_IMPORTED_MODULE_8__["default"];
- Empty.PRESENTED_IMAGE_SIMPLE = _simple__WEBPACK_IMPORTED_MODULE_9__["default"];
- /* istanbul ignore next */
- Empty.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
- Vue.component(Empty.name, Empty);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Empty);
- /***/ }),
- /***/ "./components/empty/simple.jsx":
- /*!*************************************!*\
- !*** ./components/empty/simple.jsx ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- functional: true,
- PRESENTED_IMAGE_SIMPLE: true,
- render: function render() {
- var h = arguments[0];
- return h(
- "svg",
- {
- attrs: { width: "64", height: "41", viewBox: "0 0 64 41", xmlns: "http://www.w3.org/2000/svg" }
- },
- [h(
- "g",
- {
- attrs: { transform: "translate(0 1)", fill: "none", fillRule: "evenodd" }
- },
- [h("ellipse", {
- attrs: { fill: "#F5F5F5", cx: "32", cy: "33", rx: "32", ry: "7" }
- }), h(
- "g",
- {
- attrs: { fillRule: "nonzero", stroke: "#D9D9D9" }
- },
- [h("path", {
- attrs: { d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" }
- }), h("path", {
- attrs: {
- d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
- fill: "#FAFAFA"
- }
- })]
- )]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/empty/style/index.js":
- /*!*****************************************!*\
- !*** ./components/empty/style/index.js ***!
- \*****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/empty/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/empty/style/index.less":
- /*!*******************************************!*\
- !*** ./components/empty/style/index.less ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/form-model/Form.jsx":
- /*!****************************************!*\
- !*** ./components/form-model/Form.jsx ***!
- \****************************************/
- /*! exports provided: FormProps, ValidationRule, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return FormProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return ValidationRule; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
- /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isRegExp */ "./node_modules/lodash/isRegExp.js");
- /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FormItem */ "./components/form-model/FormItem.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var FormProps = {
- layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['horizontal', 'inline', 'vertical']),
- labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
- wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
- colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['left', 'right']),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- hideRequiredMark: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- model: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- rules: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- validateMessages: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- validateOnRuleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
- };
- var ValidationRule = {
- /** validation error message */
- message: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
- /** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- /** indicates whether field is required */
- required: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
- /** treat required fields that only contain whitespace as errors */
- whitespace: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
- /** validate the exact length of a field */
- len: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- /** validate the min length of a field */
- min: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- /** validate the max length of a field */
- max: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- /** validate the value from a list of possible values */
- 'enum': _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([String, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(String)]),
- /** validate from a regular expression */
- pattern: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].custom(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5___default.a),
- /** transform a value before validation */
- transform: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- /** custom validate function (Note: callback must be called) */
- validator: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
- };
- var Form = {
- name: 'AFormModel',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["initDefaultProps"])(FormProps, {
- layout: 'horizontal',
- hideRequiredMark: false,
- colon: true
- }),
- Item: _FormItem__WEBPACK_IMPORTED_MODULE_7__["default"],
- created: function created() {
- this.fields = [];
- },
- provide: function provide() {
- return {
- FormContext: this
- };
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
- } }
- },
- watch: {
- rules: function rules() {
- if (this.validateOnRuleChange) {
- this.validate(function () {});
- }
- }
- },
- computed: {
- vertical: function vertical() {
- return this.layout === 'vertical';
- }
- },
- methods: {
- addField: function addField(field) {
- if (field) {
- this.fields.push(field);
- }
- },
- removeField: function removeField(field) {
- if (field.prop) {
- this.fields.splice(this.fields.indexOf(field), 1);
- }
- },
- onSubmit: function onSubmit(e) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this).submit) {
- e.preventDefault();
- } else {
- this.$emit('submit', e);
- }
- },
- resetFields: function resetFields() {
- if (!this.model) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'FormModel', 'model is required for resetFields to work.');
- return;
- }
- this.fields.forEach(function (field) {
- field.resetField();
- });
- },
- clearValidate: function clearValidate() {
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var fields = props.length ? typeof props === 'string' ? this.fields.filter(function (field) {
- return props === field.prop;
- }) : this.fields.filter(function (field) {
- return props.indexOf(field.prop) > -1;
- }) : this.fields;
- fields.forEach(function (field) {
- field.clearValidate();
- });
- },
- validate: function validate(callback) {
- var _this = this;
- if (!this.model) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'FormModel', 'model is required for resetFields to work.');
- return;
- }
- var promise = void 0;
- // if no callback, return promise
- if (typeof callback !== 'function' && window.Promise) {
- promise = new window.Promise(function (resolve, reject) {
- callback = function callback(valid) {
- valid ? resolve(valid) : reject(valid);
- };
- });
- }
- var valid = true;
- var count = 0;
- // 如果需要验证的fields为空,调用验证时立刻返回callback
- if (this.fields.length === 0 && callback) {
- callback(true);
- }
- var invalidFields = {};
- this.fields.forEach(function (field) {
- field.validate('', function (message, field) {
- if (message) {
- valid = false;
- }
- invalidFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, invalidFields, field);
- if (typeof callback === 'function' && ++count === _this.fields.length) {
- callback(valid, invalidFields);
- }
- });
- });
- if (promise) {
- return promise;
- }
- },
- validateField: function validateField(props, cb) {
- props = [].concat(props);
- var fields = this.fields.filter(function (field) {
- return props.indexOf(field.prop) !== -1;
- });
- if (!fields.length) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'FormModel', 'please pass correct props!');
- return;
- }
- fields.forEach(function (field) {
- field.validate('', cb);
- });
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- hideRequiredMark = this.hideRequiredMark,
- layout = this.layout,
- onSubmit = this.onSubmit,
- $slots = this.$slots;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('form', customizePrefixCls);
- var formClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-horizontal', layout === 'horizontal'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-vertical', layout === 'vertical'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-inline', layout === 'inline'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-hide-required-mark', hideRequiredMark), _classNames));
- return h(
- 'form',
- {
- on: {
- 'submit': onSubmit
- },
- 'class': formClassName },
- [$slots['default']]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Form);
- /***/ }),
- /***/ "./components/form-model/FormItem.jsx":
- /*!********************************************!*\
- !*** ./components/form-model/FormItem.jsx ***!
- \********************************************/
- /*! exports provided: FormItemProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return FormItemProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var async_validator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js");
- /* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");
- /* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _form_FormItem__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../form/FormItem */ "./components/form/FormItem.jsx");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- function noop() {}
- function getPropByPath(obj, path, strict) {
- var tempObj = obj;
- path = path.replace(/\[(\w+)\]/g, '.$1');
- path = path.replace(/^\./, '');
- var keyArr = path.split('.');
- var i = 0;
- for (var len = keyArr.length; i < len - 1; ++i) {
- if (!tempObj && !strict) break;
- var key = keyArr[i];
- if (key in tempObj) {
- tempObj = tempObj[key];
- } else {
- if (strict) {
- throw new Error('please transfer a valid prop path to form item!');
- }
- break;
- }
- }
- return {
- o: tempObj,
- k: keyArr[i],
- v: tempObj ? tempObj[keyArr[i]] : null
- };
- }
- var FormItemProps = {
- id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- htmlFor: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- help: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
- wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
- hasFeedback: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['left', 'right']),
- prop: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- rules: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([Array, Object]),
- autoLink: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- required: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- validateStatus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['', 'success', 'warning', 'error', 'validating'])
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AFormModelItem',
- __ANT_NEW_FORM_ITEM: true,
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(FormItemProps, {
- hasFeedback: false,
- autoLink: true
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
- } },
- FormContext: { 'default': function _default() {
- return {};
- } }
- },
- data: function data() {
- return {
- validateState: this.validateStatus,
- validateMessage: '',
- validateDisabled: false,
- validator: {}
- };
- },
- computed: {
- fieldValue: function fieldValue() {
- var model = this.FormContext.model;
- if (!model || !this.prop) {
- return;
- }
- var path = this.prop;
- if (path.indexOf(':') !== -1) {
- path = path.replace(/:/g, '.');
- }
- return getPropByPath(model, path, true).v;
- },
- isRequired: function isRequired() {
- var rules = this.getRules();
- var isRequired = false;
- if (rules && rules.length) {
- rules.every(function (rule) {
- if (rule.required) {
- isRequired = true;
- return false;
- }
- return true;
- });
- }
- return isRequired;
- }
- },
- watch: {
- validateStatus: function validateStatus(val) {
- this.validateState = val;
- }
- },
- mounted: function mounted() {
- if (this.prop) {
- var addField = this.FormContext.addField;
- addField && addField(this);
- this.initialValue = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default()(this.fieldValue);
- }
- },
- beforeDestroy: function beforeDestroy() {
- var removeField = this.FormContext.removeField;
- removeField && removeField(this);
- },
- methods: {
- validate: function validate(trigger) {
- var _this = this;
- var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
- this.validateDisabled = false;
- var rules = this.getFilteredRule(trigger);
- if (!rules || rules.length === 0) {
- callback();
- return true;
- }
- this.validateState = 'validating';
- var descriptor = {};
- if (rules && rules.length > 0) {
- rules.forEach(function (rule) {
- delete rule.trigger;
- });
- }
- descriptor[this.prop] = rules;
- var validator = new async_validator__WEBPACK_IMPORTED_MODULE_1__["default"](descriptor);
- if (this.FormContext && this.FormContext.validateMessages) {
- validator.messages(this.FormContext.validateMessages);
- }
- var model = {};
- model[this.prop] = this.fieldValue;
- validator.validate(model, { firstFields: true }, function (errors, invalidFields) {
- _this.validateState = errors ? 'error' : 'success';
- _this.validateMessage = errors ? errors[0].message : '';
- callback(_this.validateMessage, invalidFields);
- _this.FormContext && _this.FormContext.$emit && _this.FormContext.$emit('validate', _this.prop, !errors, _this.validateMessage || null);
- });
- },
- getRules: function getRules() {
- var formRules = this.FormContext.rules;
- var selfRules = this.rules;
- var requiredRule = this.required !== undefined ? { required: !!this.required, trigger: 'change' } : [];
- var prop = getPropByPath(formRules, this.prop || '');
- formRules = formRules ? prop.o[this.prop || ''] || prop.v : [];
- return [].concat(selfRules || formRules || []).concat(requiredRule);
- },
- getFilteredRule: function getFilteredRule(trigger) {
- var rules = this.getRules();
- return rules.filter(function (rule) {
- if (!rule.trigger || trigger === '') return true;
- if (Array.isArray(rule.trigger)) {
- return rule.trigger.indexOf(trigger) > -1;
- } else {
- return rule.trigger === trigger;
- }
- }).map(function (rule) {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rule);
- });
- },
- onFieldBlur: function onFieldBlur() {
- this.validate('blur');
- },
- onFieldChange: function onFieldChange() {
- if (this.validateDisabled) {
- this.validateDisabled = false;
- return;
- }
- this.validate('change');
- },
- clearValidate: function clearValidate() {
- this.validateState = '';
- this.validateMessage = '';
- this.validateDisabled = false;
- },
- resetField: function resetField() {
- var _this2 = this;
- this.validateState = '';
- this.validateMessage = '';
- var model = this.FormContext.model || {};
- var value = this.fieldValue;
- var path = this.prop;
- if (path.indexOf(':') !== -1) {
- path = path.replace(/:/, '.');
- }
- var prop = getPropByPath(model, path, true);
- this.validateDisabled = true;
- if (Array.isArray(value)) {
- prop.o[prop.k] = [].concat(this.initialValue);
- } else {
- prop.o[prop.k] = this.initialValue;
- }
- // reset validateDisabled after onFieldChange triggered
- this.$nextTick(function () {
- _this2.validateDisabled = false;
- });
- }
- },
- render: function render() {
- var _this3 = this;
- var h = arguments[0];
- var $slots = this.$slots,
- $scopedSlots = this.$scopedSlots;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'label');
- var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'extra');
- var help = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'help');
- var formProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
- label: label,
- extra: extra,
- validateStatus: this.validateState,
- help: this.validateMessage || help,
- required: this.isRequired || props.required
- })
- };
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])($scopedSlots['default'] ? $scopedSlots['default']() : $slots['default']);
- var firstChildren = children[0];
- if (this.prop && this.autoLink && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["isValidElement"])(firstChildren)) {
- var originalEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])(firstChildren);
- var originalBlur = originalEvents.blur;
- var originalChange = originalEvents.change;
- firstChildren = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(firstChildren, {
- on: {
- blur: function blur() {
- originalBlur && originalBlur.apply(undefined, arguments);
- _this3.onFieldBlur();
- },
- change: function change() {
- if (Array.isArray(originalChange)) {
- for (var i = 0, l = originalChange.length; i < l; i++) {
- originalChange[i].apply(originalChange, arguments);
- }
- } else if (originalChange) {
- originalChange.apply(undefined, arguments);
- }
- _this3.onFieldChange();
- }
- }
- });
- }
- return h(
- _form_FormItem__WEBPACK_IMPORTED_MODULE_8__["default"],
- formProps,
- [firstChildren, children.slice(1)]
- );
- }
- });
- /***/ }),
- /***/ "./components/form-model/index.jsx":
- /*!*****************************************!*\
- !*** ./components/form-model/index.jsx ***!
- \*****************************************/
- /*! exports provided: FormProps, ValidationRule, FormItemProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Form */ "./components/form-model/Form.jsx");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/FormDecoratorDirective */ "./components/_util/FormDecoratorDirective.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["FormProps"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["ValidationRule"]; });
- /* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FormItem */ "./components/form-model/FormItem.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return _FormItem__WEBPACK_IMPORTED_MODULE_5__["FormItemProps"]; });
- vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
- vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(_util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__["default"]);
- /* istanbul ignore next */
- _Form__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
- Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item.name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
- /***/ }),
- /***/ "./components/form-model/style/index.js":
- /*!**********************************************!*\
- !*** ./components/form-model/style/index.js ***!
- \**********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/form-model/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/form-model/style/index.less":
- /*!************************************************!*\
- !*** ./components/form-model/style/index.less ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/form/Form.jsx":
- /*!**********************************!*\
- !*** ./components/form/Form.jsx ***!
- \**********************************/
- /*! exports provided: FormCreateOption, WrappedFormUtils, FormProps, ValidationRule, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormCreateOption", function() { return FormCreateOption; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WrappedFormUtils", function() { return WrappedFormUtils; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return FormProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return ValidationRule; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isRegExp */ "./node_modules/lodash/isRegExp.js");
- /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _vc_form_src_createDOMForm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-form/src/createDOMForm */ "./components/vc-form/src/createDOMForm.jsx");
- /* harmony import */ var _vc_form_src_createFormField__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../vc-form/src/createFormField */ "./components/vc-form/src/createFormField.jsx");
- /* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FormItem */ "./components/form/FormItem.jsx");
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./constants */ "./components/form/constants.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var FormCreateOption = {
- onFieldsChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- onValuesChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- mapPropsToFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- validateMessages: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- withRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
- };
- // function create
- var WrappedFormUtils = {
- /** 获取一组输入控件的值,如不传入参数,则获取全部组件的值 */
- getFieldsValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- /** 获取一个输入控件的值*/
- getFieldValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- /** 设置一组输入控件的值*/
- setFieldsValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- /** 设置一组输入控件的值*/
- setFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- /** 校验并获取一组输入域的值与 Error */
- validateFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- // validateFields(fieldNames: Array<string>, options: Object, callback: ValidateCallback): void;
- // validateFields(fieldNames: Array<string>, callback: ValidateCallback): void;
- // validateFields(options: Object, callback: ValidateCallback): void;
- // validateFields(callback: ValidateCallback): void;
- // validateFields(): void;
- /** 与 `validateFields` 相似,但校验完后,如果校验不通过的菜单域不在可见范围内,则自动滚动进可见范围 */
- validateFieldsAndScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- // validateFieldsAndScroll(fieldNames?: Array<string>, options?: Object, callback?: ValidateCallback): void;
- // validateFieldsAndScroll(fieldNames?: Array<string>, callback?: ValidateCallback): void;
- // validateFieldsAndScroll(options?: Object, callback?: ValidateCallback): void;
- // validateFieldsAndScroll(callback?: ValidateCallback): void;
- // validateFieldsAndScroll(): void;
- /** 获取某个输入控件的 Error */
- getFieldError: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- getFieldsError: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- /** 判断一个输入控件是否在校验状态*/
- isFieldValidating: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- isFieldTouched: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- isFieldsTouched: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- /** 重置一组输入控件的值与状态,如不传入参数,则重置所有组件 */
- resetFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- getFieldDecorator: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
- };
- var FormProps = {
- layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['horizontal', 'inline', 'vertical']),
- labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
- wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
- colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['left', 'right']),
- form: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- // onSubmit: React.FormEventHandler<any>;
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- hideRequiredMark: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- autoFormCreate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- options: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- selfUpdate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
- };
- var ValidationRule = {
- /** validation error message */
- message: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
- /** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- /** indicates whether field is required */
- required: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
- /** treat required fields that only contain whitespace as errors */
- whitespace: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
- /** validate the exact length of a field */
- len: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- /** validate the min length of a field */
- min: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- /** validate the max length of a field */
- max: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- /** validate the value from a list of possible values */
- 'enum': _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([String, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(String)]),
- /** validate from a regular expression */
- pattern: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].custom(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6___default.a),
- /** transform a value before validation */
- transform: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- /** custom validate function (Note: callback must be called) */
- validator: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
- };
- // export type ValidateCallback = (errors: any, values: any) => void;
- // export type GetFieldDecoratorOptions = {
- // /** 子节点的值的属性,如 Checkbox 的是 'checked' */
- // valuePropName?: string;
- // /** 子节点的初始值,类型、可选值均由子节点决定 */
- // initialValue?: any;
- // /** 收集子节点的值的时机 */
- // trigger?: string;
- // /** 可以把 onChange 的参数转化为控件的值,例如 DatePicker 可设为:(date, dateString) => dateString */
- // getValueFromEvent?: (...args: any[]) => any;
- // /** Get the component props according to field value. */
- // getValueProps?: (value: any) => any;
- // /** 校验子节点值的时机 */
- // validateTrigger?: string | string[];
- // /** 校验规则,参见 [async-validator](https://github.com/yiminghe/async-validator) */
- // rules?: ValidationRule[];
- // /** 是否和其他控件互斥,特别用于 Radio 单选控件 */
- // exclusive?: boolean;
- // /** Normalize value to form component */
- // normalize?: (value: any, prevValue: any, allValues: any) => any;
- // /** Whether stop validate on first rule of error for this field. */
- // validateFirst?: boolean;
- // /** 是否一直保留子节点的信息 */
- // preserve?: boolean;
- // };
- var Form = {
- name: 'AForm',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(FormProps, {
- layout: 'horizontal',
- hideRequiredMark: false,
- colon: true
- }),
- Item: _FormItem__WEBPACK_IMPORTED_MODULE_10__["default"],
- createFormField: _vc_form_src_createFormField__WEBPACK_IMPORTED_MODULE_9__["default"],
- create: function create() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- return Object(_vc_form_src_createDOMForm__WEBPACK_IMPORTED_MODULE_8__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- fieldNameProp: 'id'
- }, options, {
- fieldMetaProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"],
- fieldDataProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_DATA_PROP"]
- }));
- },
- createForm: function createForm(context) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var V = _base__WEBPACK_IMPORTED_MODULE_14__["default"].Vue || vue__WEBPACK_IMPORTED_MODULE_5___default.a;
- return new V(Form.create(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, options, { templateContext: context }))());
- },
- created: function created() {
- this.formItemContexts = new Map();
- },
- provide: function provide() {
- var _this = this;
- return {
- FormContext: this,
- // https://github.com/vueComponent/ant-design-vue/issues/446
- collectFormItemContext: this.form && this.form.templateContext ? function (c) {
- var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'add';
- var formItemContexts = _this.formItemContexts;
- var number = formItemContexts.get(c) || 0;
- if (type === 'delete') {
- if (number <= 1) {
- formItemContexts['delete'](c);
- } else {
- formItemContexts.set(c, number - 1);
- }
- } else {
- if (c !== _this.form.templateContext) {
- formItemContexts.set(c, number + 1);
- }
- }
- } : function () {}
- };
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__["ConfigConsumerProps"];
- } }
- },
- watch: {
- form: function form() {
- this.$forceUpdate();
- }
- },
- computed: {
- vertical: function vertical() {
- return this.layout === 'vertical';
- }
- },
- beforeUpdate: function beforeUpdate() {
- this.formItemContexts.forEach(function (number, c) {
- if (c.$forceUpdate) {
- c.$forceUpdate();
- }
- });
- },
- updated: function updated() {
- if (this.form && this.form.cleanUpUselessFields) {
- this.form.cleanUpUselessFields();
- }
- },
- methods: {
- onSubmit: function onSubmit(e) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this).submit) {
- e.preventDefault();
- } else {
- this.$emit('submit', e);
- }
- }
- },
- render: function render() {
- var _classNames,
- _this2 = this;
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- hideRequiredMark = this.hideRequiredMark,
- layout = this.layout,
- onSubmit = this.onSubmit,
- $slots = this.$slots,
- autoFormCreate = this.autoFormCreate,
- _options = this.options,
- options = _options === undefined ? {} : _options;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('form', customizePrefixCls);
- var formClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-horizontal', layout === 'horizontal'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-vertical', layout === 'vertical'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-inline', layout === 'inline'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-hide-required-mark', hideRequiredMark), _classNames));
- if (autoFormCreate) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(false, 'Form', '`autoFormCreate` is deprecated. please use `form` instead.');
- var DomForm = this.DomForm || Object(_vc_form_src_createDOMForm__WEBPACK_IMPORTED_MODULE_8__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- fieldNameProp: 'id'
- }, options, {
- fieldMetaProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"],
- fieldDataProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_DATA_PROP"],
- templateContext: this.$vnode.context
- }))({
- provide: function provide() {
- return {
- decoratorFormProps: this.$props
- };
- },
- data: function data() {
- return {
- children: $slots['default'],
- formClassName: formClassName,
- submit: onSubmit
- };
- },
- created: function created() {
- autoFormCreate(this.form);
- },
- render: function render() {
- var h = arguments[0];
- var children = this.children,
- formClassName = this.formClassName,
- submit = this.submit;
- return h(
- 'form',
- {
- on: {
- 'submit': submit
- },
- 'class': formClassName },
- [children]
- );
- }
- });
- if (this.domForm) {
- this.domForm.children = $slots['default'];
- this.domForm.submit = onSubmit;
- this.domForm.formClassName = formClassName;
- }
- this.DomForm = DomForm;
- return h(DomForm, {
- attrs: {
- wrappedComponentRef: function wrappedComponentRef(inst) {
- _this2.domForm = inst;
- }
- }
- });
- }
- return h(
- 'form',
- {
- on: {
- 'submit': onSubmit
- },
- 'class': formClassName },
- [$slots['default']]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Form);
- /***/ }),
- /***/ "./components/form/FormItem.jsx":
- /*!**************************************!*\
- !*** ./components/form/FormItem.jsx ***!
- \**************************************/
- /*! exports provided: FormItemProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return FormItemProps; });
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");
- /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_7__);
- /* harmony import */ var _grid_Row__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../grid/Row */ "./components/grid/Row.jsx");
- /* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./constants */ "./components/form/constants.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- function noop() {}
- function intersperseSpace(list) {
- return list.reduce(function (current, item) {
- return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(current), [' ', item]);
- }, []).slice(1);
- }
- var FormItemProps = {
- id: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- htmlFor: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- label: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_9__["ColProps"]).loose,
- wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_9__["ColProps"]).loose,
- help: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- validateStatus: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['', 'success', 'warning', 'error', 'validating']),
- hasFeedback: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- required: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- fieldDecoratorId: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- fieldDecoratorOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
- selfUpdate: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['left', 'right'])
- };
- function comeFromSlot() {
- var vnodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var itemVnode = arguments[1];
- var isSlot = false;
- for (var i = 0, len = vnodes.length; i < len; i++) {
- var vnode = vnodes[i];
- if (vnode && (vnode === itemVnode || vnode.$vnode === itemVnode)) {
- isSlot = true;
- } else {
- var componentOptions = vnode.componentOptions || vnode.$vnode && vnode.$vnode.componentOptions;
- var children = componentOptions ? componentOptions.children : vnode.$children;
- isSlot = comeFromSlot(children, itemVnode);
- }
- if (isSlot) {
- break;
- }
- }
- return isSlot;
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AFormItem',
- __ANT_FORM_ITEM: true,
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(FormItemProps, {
- hasFeedback: false
- }),
- provide: function provide() {
- return {
- isFormItemChildren: true
- };
- },
- inject: {
- isFormItemChildren: { 'default': false },
- FormContext: { 'default': function _default() {
- return {};
- } },
- decoratorFormProps: { 'default': function _default() {
- return {};
- } },
- collectFormItemContext: { 'default': function _default() {
- return noop;
- } },
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- return { helpShow: false };
- },
- computed: {
- itemSelfUpdate: function itemSelfUpdate() {
- return !!(this.selfUpdate === undefined ? this.FormContext.selfUpdate : this.selfUpdate);
- }
- },
- created: function created() {
- this.collectContext();
- },
- beforeUpdate: function beforeUpdate() {
- if (true) {
- this.collectContext();
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.collectFormItemContext(this.$vnode && this.$vnode.context, 'delete');
- },
- mounted: function mounted() {
- var _$props = this.$props,
- help = _$props.help,
- validateStatus = _$props.validateStatus;
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(this.getControls(this.slotDefault, true).length <= 1 || help !== undefined || validateStatus !== undefined, 'Form.Item', 'Cannot generate `validateStatus` and `help` automatically, ' + 'while there are more than one `getFieldDecorator` in it.');
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!this.fieldDecoratorId, 'Form.Item', '`fieldDecoratorId` is deprecated. please use `v-decorator={id, options}` instead.');
- },
- methods: {
- collectContext: function collectContext() {
- if (this.FormContext.form && this.FormContext.form.templateContext) {
- var templateContext = this.FormContext.form.templateContext;
- var vnodes = Object.values(templateContext.$slots || {}).reduce(function (a, b) {
- return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(a), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(b));
- }, []);
- var isSlot = comeFromSlot(vnodes, this.$vnode);
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!isSlot, 'You can not set FormItem from slot, please use slot-scope instead slot');
- var isSlotScope = false;
- // 进一步判断是否是通过slot-scope传递
- if (!isSlot && this.$vnode.context !== templateContext) {
- isSlotScope = comeFromSlot(this.$vnode.context.$children, templateContext.$vnode);
- }
- if (!isSlotScope && !isSlot) {
- this.collectFormItemContext(this.$vnode.context);
- }
- }
- },
- getHelpMessage: function getHelpMessage() {
- var help = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'help');
- var onlyControl = this.getOnlyControl();
- if (help === undefined && onlyControl) {
- var errors = this.getField().errors;
- if (errors) {
- return intersperseSpace(errors.map(function (e, index) {
- var node = null;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["isValidElement"])(e)) {
- node = e;
- } else if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["isValidElement"])(e.message)) {
- node = e.message;
- }
- return node ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneElement"])(node, { key: index }) : e.message;
- }));
- } else {
- return '';
- }
- }
- return help;
- },
- getControls: function getControls() {
- var childrenArray = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var recursively = arguments[1];
- var controls = [];
- for (var i = 0; i < childrenArray.length; i++) {
- if (!recursively && controls.length > 0) {
- break;
- }
- var child = childrenArray[i];
- if (!child.tag && child.text.trim() === '') {
- continue;
- }
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).__ANT_FORM_ITEM) {
- continue;
- }
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getAllChildren"])(child);
- var attrs = child.data && child.data.attrs || {};
- if (_constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"] in attrs) {
- // And means FIELD_DATA_PROP in child.props, too.
- controls.push(child);
- } else if (children) {
- controls = controls.concat(this.getControls(children, recursively));
- }
- }
- return controls;
- },
- getOnlyControl: function getOnlyControl() {
- var child = this.getControls(this.slotDefault, false)[0];
- return child !== undefined ? child : null;
- },
- getChildAttr: function getChildAttr(prop) {
- var child = this.getOnlyControl();
- var data = {};
- if (!child) {
- return undefined;
- }
- if (child.data) {
- data = child.data;
- } else if (child.$vnode && child.$vnode.data) {
- data = child.$vnode.data;
- }
- return data[prop] || data.attrs[prop];
- },
- getId: function getId() {
- return this.getChildAttr('id');
- },
- getMeta: function getMeta() {
- return this.getChildAttr(_constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"]);
- },
- getField: function getField() {
- return this.getChildAttr(_constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_DATA_PROP"]);
- },
- getValidateStatus: function getValidateStatus() {
- var onlyControl = this.getOnlyControl();
- if (!onlyControl) {
- return '';
- }
- var field = this.getField();
- if (field.validating) {
- return 'validating';
- }
- if (field.errors) {
- return 'error';
- }
- var fieldValue = 'value' in field ? field.value : this.getMeta().initialValue;
- if (fieldValue !== undefined && fieldValue !== null && fieldValue !== '') {
- return 'success';
- }
- return '';
- },
- // Resolve duplicated ids bug between different forms
- // https://github.com/ant-design/ant-design/issues/7351
- onLabelClick: function onLabelClick() {
- var id = this.id || this.getId();
- if (!id) {
- return;
- }
- var formItemNode = this.$el;
- var control = formItemNode.querySelector('[id="' + id + '"]');
- if (control && control.focus) {
- control.focus();
- }
- },
- onHelpAnimEnd: function onHelpAnimEnd(_key, helpShow) {
- this.helpShow = helpShow;
- if (!helpShow) {
- this.$forceUpdate();
- }
- },
- isRequired: function isRequired() {
- var required = this.required;
- if (required !== undefined) {
- return required;
- }
- if (this.getOnlyControl()) {
- var meta = this.getMeta() || {};
- var validate = meta.validate || [];
- return validate.filter(function (item) {
- return !!item.rules;
- }).some(function (item) {
- return item.rules.some(function (rule) {
- return rule.required;
- });
- });
- }
- return false;
- },
- renderHelp: function renderHelp(prefixCls) {
- var _this = this;
- var h = this.$createElement;
- var help = this.getHelpMessage();
- var children = help ? h(
- 'div',
- { 'class': prefixCls + '-explain', key: 'help' },
- [help]
- ) : null;
- if (children) {
- this.helpShow = !!children;
- }
- var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__["default"])('show-help', {
- afterEnter: function afterEnter() {
- return _this.onHelpAnimEnd('help', true);
- },
- afterLeave: function afterLeave() {
- return _this.onHelpAnimEnd('help', false);
- }
- });
- return h(
- 'transition',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3___default()([transitionProps, { key: 'help' }]),
- [children]
- );
- },
- renderExtra: function renderExtra(prefixCls) {
- var h = this.$createElement;
- var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'extra');
- return extra ? h(
- 'div',
- { 'class': prefixCls + '-extra' },
- [extra]
- ) : null;
- },
- renderValidateWrapper: function renderValidateWrapper(prefixCls, c1, c2, c3) {
- var h = this.$createElement;
- var props = this.$props;
- var onlyControl = this.getOnlyControl;
- var validateStatus = props.validateStatus === undefined && onlyControl ? this.getValidateStatus() : props.validateStatus;
- var classes = prefixCls + '-item-control';
- if (validateStatus) {
- classes = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-item-control', {
- 'has-feedback': validateStatus && props.hasFeedback,
- 'has-success': validateStatus === 'success',
- 'has-warning': validateStatus === 'warning',
- 'has-error': validateStatus === 'error',
- 'is-validating': validateStatus === 'validating'
- });
- }
- var iconType = '';
- switch (validateStatus) {
- case 'success':
- iconType = 'check-circle';
- break;
- case 'warning':
- iconType = 'exclamation-circle';
- break;
- case 'error':
- iconType = 'close-circle';
- break;
- case 'validating':
- iconType = 'loading';
- break;
- default:
- iconType = '';
- break;
- }
- var icon = props.hasFeedback && iconType ? h(
- 'span',
- { 'class': prefixCls + '-item-children-icon' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_16__["default"], {
- attrs: { type: iconType, theme: iconType === 'loading' ? 'outlined' : 'filled' }
- })]
- ) : null;
- return h(
- 'div',
- { 'class': classes },
- [h(
- 'span',
- { 'class': prefixCls + '-item-children' },
- [c1, icon]
- ), c2, c3]
- );
- },
- renderWrapper: function renderWrapper(prefixCls, children) {
- var h = this.$createElement;
- var _ref = this.isFormItemChildren ? {} : this.FormContext,
- contextWrapperCol = _ref.wrapperCol;
- var wrapperCol = this.wrapperCol;
- var mergedWrapperCol = wrapperCol || contextWrapperCol || {};
- var style = mergedWrapperCol.style,
- id = mergedWrapperCol.id,
- on = mergedWrapperCol.on,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(mergedWrapperCol, ['style', 'id', 'on']);
- var className = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-item-control-wrapper', mergedWrapperCol['class']);
- var colProps = {
- props: restProps,
- 'class': className,
- key: 'wrapper',
- style: style,
- id: id,
- on: on
- };
- return h(
- _grid_Col__WEBPACK_IMPORTED_MODULE_9__["default"],
- colProps,
- [children]
- );
- },
- renderLabel: function renderLabel(prefixCls) {
- var _classNames;
- var h = this.$createElement;
- var _FormContext = this.FormContext,
- vertical = _FormContext.vertical,
- contextLabelAlign = _FormContext.labelAlign,
- contextLabelCol = _FormContext.labelCol,
- contextColon = _FormContext.colon;
- var labelAlign = this.labelAlign,
- labelCol = this.labelCol,
- colon = this.colon,
- id = this.id,
- htmlFor = this.htmlFor;
- var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'label');
- var required = this.isRequired();
- var mergedLabelCol = labelCol || contextLabelCol || {};
- var mergedLabelAlign = labelAlign || contextLabelAlign;
- var labelClsBasic = prefixCls + '-item-label';
- var labelColClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()(labelClsBasic, mergedLabelAlign === 'left' && labelClsBasic + '-left', mergedLabelCol['class']);
- var labelColClass = mergedLabelCol['class'],
- labelColStyle = mergedLabelCol.style,
- labelColId = mergedLabelCol.id,
- on = mergedLabelCol.on,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(mergedLabelCol, ['class', 'style', 'id', 'on']);
- var labelChildren = label;
- // Keep label is original where there should have no colon
- var computedColon = colon === true || contextColon !== false && colon !== false;
- var haveColon = computedColon && !vertical;
- // Remove duplicated user input colon
- if (haveColon && typeof label === 'string' && label.trim() !== '') {
- labelChildren = label.replace(/[::]\s*$/, '');
- }
- var labelClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-item-required', required), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-item-no-colon', !computedColon), _classNames));
- var colProps = {
- props: restProps,
- 'class': labelColClassName,
- key: 'label',
- style: labelColStyle,
- id: labelColId,
- on: on
- };
- return label ? h(
- _grid_Col__WEBPACK_IMPORTED_MODULE_9__["default"],
- colProps,
- [h(
- 'label',
- {
- attrs: {
- 'for': htmlFor || id || this.getId(),
- title: typeof label === 'string' ? label : ''
- },
- 'class': labelClassName, on: {
- 'click': this.onLabelClick
- }
- },
- [labelChildren]
- )]
- ) : null;
- },
- renderChildren: function renderChildren(prefixCls) {
- return [this.renderLabel(prefixCls), this.renderWrapper(prefixCls, this.renderValidateWrapper(prefixCls, this.slotDefault, this.renderHelp(prefixCls), this.renderExtra(prefixCls)))];
- },
- renderFormItem: function renderFormItem() {
- var _itemClassName;
- var h = this.$createElement;
- var customizePrefixCls = this.$props.prefixCls;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('form', customizePrefixCls);
- var children = this.renderChildren(prefixCls);
- var itemClassName = (_itemClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_itemClassName, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_itemClassName, prefixCls + '-item-with-help', this.helpShow), _itemClassName);
- return h(
- _grid_Row__WEBPACK_IMPORTED_MODULE_8__["default"],
- { 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(itemClassName), key: 'row' },
- [children]
- );
- },
- decoratorOption: function decoratorOption(vnode) {
- if (vnode.data && vnode.data.directives) {
- var directive = lodash_find__WEBPACK_IMPORTED_MODULE_7___default()(vnode.data.directives, ['name', 'decorator']);
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!directive || directive && Array.isArray(directive.value), 'Form', 'Invalid directive: type check failed for directive "decorator". Expected Array, got ' + babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(directive ? directive.value : directive) + '. At ' + vnode.tag + '.');
- return directive ? directive.value : null;
- } else {
- return null;
- }
- },
- decoratorChildren: function decoratorChildren(vnodes) {
- var FormContext = this.FormContext;
- var getFieldDecorator = FormContext.form.getFieldDecorator;
- for (var i = 0, len = vnodes.length; i < len; i++) {
- var vnode = vnodes[i];
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(vnode).__ANT_FORM_ITEM) {
- break;
- }
- if (vnode.children) {
- vnode.children = this.decoratorChildren(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneVNodes"])(vnode.children));
- } else if (vnode.componentOptions && vnode.componentOptions.children) {
- vnode.componentOptions.children = this.decoratorChildren(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneVNodes"])(vnode.componentOptions.children));
- }
- var option = this.decoratorOption(vnode);
- if (option && option[0]) {
- vnodes[i] = getFieldDecorator(option[0], option[1], this)(vnode);
- }
- }
- return vnodes;
- }
- },
- render: function render() {
- var $slots = this.$slots,
- decoratorFormProps = this.decoratorFormProps,
- fieldDecoratorId = this.fieldDecoratorId,
- _fieldDecoratorOption = this.fieldDecoratorOptions,
- fieldDecoratorOptions = _fieldDecoratorOption === undefined ? {} : _fieldDecoratorOption,
- FormContext = this.FormContext;
- var child = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["filterEmpty"])($slots['default'] || []);
- if (decoratorFormProps.form && fieldDecoratorId && child.length) {
- var getFieldDecorator = decoratorFormProps.form.getFieldDecorator;
- child[0] = getFieldDecorator(fieldDecoratorId, fieldDecoratorOptions, this)(child[0]);
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!(child.length > 1), 'Form', '`autoFormCreate` just `decorator` then first children. but you can use JSX to support multiple children');
- this.slotDefault = child;
- } else if (FormContext.form) {
- child = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneVNodes"])(child);
- this.slotDefault = this.decoratorChildren(child);
- } else {
- this.slotDefault = child;
- }
- return this.renderFormItem();
- }
- });
- /***/ }),
- /***/ "./components/form/constants.jsx":
- /*!***************************************!*\
- !*** ./components/form/constants.jsx ***!
- \***************************************/
- /*! exports provided: FIELD_META_PROP, FIELD_DATA_PROP */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIELD_META_PROP", function() { return FIELD_META_PROP; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIELD_DATA_PROP", function() { return FIELD_DATA_PROP; });
- var FIELD_META_PROP = 'data-__meta';
- var FIELD_DATA_PROP = 'data-__field';
- /***/ }),
- /***/ "./components/form/index.jsx":
- /*!***********************************!*\
- !*** ./components/form/index.jsx ***!
- \***********************************/
- /*! exports provided: FormProps, FormCreateOption, ValidationRule, FormItemProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Form */ "./components/form/Form.jsx");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/FormDecoratorDirective */ "./components/_util/FormDecoratorDirective.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["FormProps"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormCreateOption", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["FormCreateOption"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["ValidationRule"]; });
- /* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FormItem */ "./components/form/FormItem.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return _FormItem__WEBPACK_IMPORTED_MODULE_5__["FormItemProps"]; });
- vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
- vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(_util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__["default"]);
- vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$form = _Form__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _Form__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
- Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item.name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item);
- Vue.prototype.$form = _Form__WEBPACK_IMPORTED_MODULE_1__["default"];
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
- /***/ }),
- /***/ "./components/form/style/index.js":
- /*!****************************************!*\
- !*** ./components/form/style/index.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/form/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/form/style/index.less":
- /*!******************************************!*\
- !*** ./components/form/style/index.less ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/grid/Col.jsx":
- /*!*********************************!*\
- !*** ./components/grid/Col.jsx ***!
- \*********************************/
- /*! exports provided: ColSize, ColProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColSize", function() { return ColSize; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColProps", function() { return ColProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var stringOrNumber = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]);
- var ColSize = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
- span: stringOrNumber,
- order: stringOrNumber,
- offset: stringOrNumber,
- push: stringOrNumber,
- pull: stringOrNumber
- }).loose;
- var objectOrNumber = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, ColSize]);
- var ColProps = {
- span: stringOrNumber,
- order: stringOrNumber,
- offset: stringOrNumber,
- push: stringOrNumber,
- pull: stringOrNumber,
- xs: objectOrNumber,
- sm: objectOrNumber,
- md: objectOrNumber,
- lg: objectOrNumber,
- xl: objectOrNumber,
- xxl: objectOrNumber,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- flex: stringOrNumber
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ACol',
- props: ColProps,
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
- } },
- rowContext: {
- 'default': function _default() {
- return null;
- }
- }
- },
- methods: {
- parseFlex: function parseFlex(flex) {
- if (typeof flex === 'number') {
- return flex + ' ' + flex + ' auto';
- }
- if (/^\d+(\.\d+)?(px|em|rem|%)$/.test(flex)) {
- return '0 0 ' + flex;
- }
- return flex;
- }
- },
- render: function render() {
- var _this = this,
- _extends3;
- var h = arguments[0];
- var span = this.span,
- order = this.order,
- offset = this.offset,
- push = this.push,
- pull = this.pull,
- flex = this.flex,
- customizePrefixCls = this.prefixCls,
- $slots = this.$slots,
- rowContext = this.rowContext;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('col', customizePrefixCls);
- var sizeClassObj = {};
- ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].forEach(function (size) {
- var _extends2;
- var sizeProps = {};
- var propSize = _this[size];
- if (typeof propSize === 'number') {
- sizeProps.span = propSize;
- } else if ((typeof propSize === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(propSize)) === 'object') {
- sizeProps = propSize || {};
- }
- sizeClassObj = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, sizeClassObj, (_extends2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-' + sizeProps.span, sizeProps.span !== undefined), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-order-' + sizeProps.order, sizeProps.order || sizeProps.order === 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-offset-' + sizeProps.offset, sizeProps.offset || sizeProps.offset === 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-push-' + sizeProps.push, sizeProps.push || sizeProps.push === 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-pull-' + sizeProps.pull, sizeProps.pull || sizeProps.pull === 0), _extends2));
- });
- var classes = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()((_extends3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-' + span, span !== undefined), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-order-' + order, order), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-offset-' + offset, offset), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-push-' + push, push), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-pull-' + pull, pull), _extends3), sizeClassObj);
- var divProps = {
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
- 'class': classes,
- style: {}
- };
- if (rowContext) {
- var gutter = rowContext.getGutter();
- if (gutter) {
- divProps.style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, gutter[0] > 0 ? {
- paddingLeft: gutter[0] / 2 + 'px',
- paddingRight: gutter[0] / 2 + 'px'
- } : {}, gutter[1] > 0 ? {
- paddingTop: gutter[1] / 2 + 'px',
- paddingBottom: gutter[1] / 2 + 'px'
- } : {});
- }
- }
- if (flex) {
- divProps.style.flex = this.parseFlex(flex);
- }
- return h(
- 'div',
- divProps,
- [$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/grid/Row.jsx":
- /*!*********************************!*\
- !*** ./components/grid/Row.jsx ***!
- \*********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/responsiveObserve */ "./components/_util/responsiveObserve.js");
- var RowProps = {
- gutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array]),
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['flex']),
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['top', 'middle', 'bottom', 'stretch']),
- justify: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['start', 'end', 'center', 'space-around', 'space-between']),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
- };
- var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ARow',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, RowProps, {
- gutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array]).def(0)
- }),
- provide: function provide() {
- return {
- rowContext: this
- };
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- return {
- screens: {}
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- _this.token = _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_6__["default"].subscribe(function (screens) {
- var gutter = _this.gutter;
- if ((typeof gutter === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(gutter)) === 'object' || Array.isArray(gutter) && (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(gutter[0]) === 'object' || babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(gutter[1]) === 'object')) {
- _this.screens = screens;
- }
- });
- });
- },
- beforeDestroy: function beforeDestroy() {
- _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_6__["default"].unsubscribe(this.token);
- },
- methods: {
- getGutter: function getGutter() {
- var results = [0, 0];
- var gutter = this.gutter,
- screens = this.screens;
- var normalizedGutter = Array.isArray(gutter) ? gutter : [gutter, 0];
- normalizedGutter.forEach(function (g, index) {
- if ((typeof g === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(g)) === 'object') {
- for (var i = 0; i < responsiveArray.length; i++) {
- var breakpoint = responsiveArray[i];
- if (screens[breakpoint] && g[breakpoint] !== undefined) {
- results[index] = g[breakpoint];
- break;
- }
- }
- } else {
- results[index] = g || 0;
- }
- });
- return results;
- }
- },
- render: function render() {
- var _classes;
- var h = arguments[0];
- var type = this.type,
- justify = this.justify,
- align = this.align,
- customizePrefixCls = this.prefixCls,
- $slots = this.$slots;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('row', customizePrefixCls);
- var gutter = this.getGutter();
- var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls, !type), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + type, type), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + type + '-' + justify, type && justify), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + type + '-' + align, type && align), _classes);
- var rowStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, gutter[0] > 0 ? {
- marginLeft: gutter[0] / -2 + 'px',
- marginRight: gutter[0] / -2 + 'px'
- } : {}, gutter[1] > 0 ? {
- marginTop: gutter[1] / -2 + 'px',
- marginBottom: gutter[1] / -2 + 'px'
- } : {});
- return h(
- 'div',
- { 'class': classes, style: rowStyle },
- [$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/grid/index.js":
- /*!**********************************!*\
- !*** ./components/grid/index.js ***!
- \**********************************/
- /*! exports provided: Row, Col */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Row */ "./components/grid/Row.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return _Row__WEBPACK_IMPORTED_MODULE_0__["default"]; });
- /* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Col */ "./components/grid/Col.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return _Col__WEBPACK_IMPORTED_MODULE_1__["default"]; });
- /***/ }),
- /***/ "./components/grid/style/index.js":
- /*!****************************************!*\
- !*** ./components/grid/style/index.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/grid/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/grid/style/index.less":
- /*!******************************************!*\
- !*** ./components/grid/style/index.less ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/icon/IconFont.jsx":
- /*!**************************************!*\
- !*** ./components/icon/IconFont.jsx ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return create; });
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./components/icon/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var customCache = new Set();
- function create(options) {
- var scriptUrl = options.scriptUrl,
- _options$extraCommonP = options.extraCommonProps,
- extraCommonProps = _options$extraCommonP === undefined ? {} : _options$extraCommonP;
- /**
- * DOM API required.
- * Make sure in browser environment.
- * The Custom Icon will create a <script/>
- * that loads SVG symbols and insert the SVG Element into the document body.
- */
- if (typeof document !== 'undefined' && typeof window !== 'undefined' && typeof document.createElement === 'function' && typeof scriptUrl === 'string' && scriptUrl.length && !customCache.has(scriptUrl)) {
- var script = document.createElement('script');
- script.setAttribute('src', scriptUrl);
- script.setAttribute('data-namespace', scriptUrl);
- customCache.add(scriptUrl);
- document.body.appendChild(script);
- }
- var Iconfont = {
- functional: true,
- name: 'AIconfont',
- props: _index__WEBPACK_IMPORTED_MODULE_1__["default"].props,
- render: function render(h, context) {
- var props = context.props,
- slots = context.slots,
- listeners = context.listeners,
- data = context.data;
- var type = props.type,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(props, ['type']);
- var slotsMap = slots();
- var children = slotsMap['default'];
- // component > children > type
- var content = null;
- if (type) {
- content = h('use', { attrs: { 'xlink:href': '#' + type } });
- }
- if (children) {
- content = children;
- }
- var iconProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["mergeProps"])(extraCommonProps, data, { props: restProps, on: listeners });
- return h(
- _index__WEBPACK_IMPORTED_MODULE_1__["default"],
- iconProps,
- [content]
- );
- }
- };
- return Iconfont;
- }
- /***/ }),
- /***/ "./components/icon/index.js":
- /*!**********************************!*\
- !*** ./components/icon/index.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ant-design/icons/lib/dist */ "./node_modules/@ant-design/icons/lib/dist.js");
- /* harmony import */ var _ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ant-design/icons-vue */ "./node_modules/@ant-design/icons-vue/es/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _IconFont__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./IconFont */ "./components/icon/IconFont.jsx");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/icon/utils.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./twoTonePrimaryColor */ "./components/icon/twoTonePrimaryColor.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- // Initial setting
- _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__["default"].add.apply(_ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__["default"], babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default()(Object.keys(_ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__).map(function (key) {
- return _ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__[key];
- })));
- Object(_twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__["setTwoToneColor"])('#1890ff');
- var defaultTheme = 'outlined';
- var dangerousTheme = void 0;
- function renderIcon(h, locale, context) {
- var _classNames;
- var props = context.$props,
- $slots = context.$slots;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getListeners"])(context);
- var type = props.type,
- Component = props.component,
- viewBox = props.viewBox,
- spin = props.spin,
- theme = props.theme,
- twoToneColor = props.twoToneColor,
- rotate = props.rotate,
- tabIndex = props.tabIndex;
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["filterEmpty"])($slots['default']);
- children = children.length === 0 ? undefined : children;
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Boolean(type || Component || children), 'Icon', 'Icon should have `type` prop or `component` prop or `children`.');
- var classString = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, 'anticon', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, 'anticon-' + type, !!type), _classNames));
- var svgClassString = classnames__WEBPACK_IMPORTED_MODULE_4___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, 'anticon-spin', !!spin || type === 'loading'));
- var svgStyle = rotate ? {
- msTransform: 'rotate(' + rotate + 'deg)',
- transform: 'rotate(' + rotate + 'deg)'
- } : undefined;
- var innerSvgProps = {
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _utils__WEBPACK_IMPORTED_MODULE_9__["svgBaseProps"], {
- viewBox: viewBox
- }),
- 'class': svgClassString,
- style: svgStyle
- };
- if (!viewBox) {
- delete innerSvgProps.attrs.viewBox;
- }
- var renderInnerNode = function renderInnerNode() {
- // component > children > type
- if (Component) {
- return h(
- Component,
- innerSvgProps,
- [children]
- );
- }
- if (children) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Boolean(viewBox) || children.length === 1 && children[0].tag === 'use', 'Icon', 'Make sure that you provide correct `viewBox`' + ' prop (default `0 0 1024 1024`) to the icon.');
- var _innerSvgProps = {
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _utils__WEBPACK_IMPORTED_MODULE_9__["svgBaseProps"]),
- 'class': svgClassString,
- style: svgStyle
- };
- return h(
- 'svg',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([_innerSvgProps, {
- attrs: { viewBox: viewBox }
- }]),
- [children]
- );
- }
- if (typeof type === 'string') {
- var computedType = type;
- if (theme) {
- var themeInName = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getThemeFromTypeName"])(type);
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!themeInName || theme === themeInName, 'Icon', 'The icon name \'' + type + '\' already specify a theme \'' + themeInName + '\',' + (' the \'theme\' prop \'' + theme + '\' will be ignored.'));
- }
- computedType = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["withThemeSuffix"])(Object(_utils__WEBPACK_IMPORTED_MODULE_9__["removeTypeTheme"])(Object(_utils__WEBPACK_IMPORTED_MODULE_9__["alias"])(computedType)), dangerousTheme || theme || defaultTheme);
- return h(_ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: {
- focusable: 'false',
- type: computedType,
- primaryColor: twoToneColor
- },
- 'class': svgClassString, style: svgStyle
- });
- }
- };
- var iconTabIndex = tabIndex;
- if (iconTabIndex === undefined && 'click' in listeners) {
- iconTabIndex = -1;
- }
- // functional component not support nativeOn,https://github.com/vuejs/vue/issues/7526
- var iProps = {
- attrs: {
- 'aria-label': type && locale.icon + ': ' + type,
- tabIndex: iconTabIndex
- },
- on: listeners,
- 'class': classString,
- staticClass: ''
- };
- return h(
- 'i',
- iProps,
- [renderInnerNode()]
- );
- }
- var Icon = {
- name: 'AIcon',
- props: {
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- component: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- viewBox: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- spin: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
- rotate: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
- theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOf(['filled', 'outlined', 'twoTone']),
- twoToneColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- role: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string
- },
- render: function render(h) {
- var _this = this;
- return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_11__["default"], {
- attrs: {
- componentName: 'Icon'
- },
- scopedSlots: { 'default': function _default(locale) {
- return renderIcon(h, locale, _this);
- } }
- });
- }
- };
- Icon.createFromIconfontCN = _IconFont__WEBPACK_IMPORTED_MODULE_8__["default"];
- Icon.getTwoToneColor = _twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__["getTwoToneColor"];
- Icon.setTwoToneColor = _twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__["setTwoToneColor"];
- /* istanbul ignore next */
- Icon.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_14__["default"]);
- Vue.component(Icon.name, Icon);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Icon);
- /***/ }),
- /***/ "./components/icon/style/index.js":
- /*!****************************************!*\
- !*** ./components/icon/style/index.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/icon/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/icon/style/index.less":
- /*!******************************************!*\
- !*** ./components/icon/style/index.less ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/icon/twoTonePrimaryColor.js":
- /*!************************************************!*\
- !*** ./components/icon/twoTonePrimaryColor.js ***!
- \************************************************/
- /*! exports provided: setTwoToneColor, getTwoToneColor */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTwoToneColor", function() { return setTwoToneColor; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTwoToneColor", function() { return getTwoToneColor; });
- /* harmony import */ var _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/icons-vue */ "./node_modules/@ant-design/icons-vue/es/index.js");
- function setTwoToneColor(primaryColor) {
- return _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_0__["default"].setTwoToneColors({
- primaryColor: primaryColor
- });
- }
- function getTwoToneColor() {
- var colors = _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_0__["default"].getTwoToneColors();
- return colors.primaryColor;
- }
- /***/ }),
- /***/ "./components/icon/utils.js":
- /*!**********************************!*\
- !*** ./components/icon/utils.js ***!
- \**********************************/
- /*! exports provided: svgBaseProps, getThemeFromTypeName, removeTypeTheme, withThemeSuffix, alias */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "svgBaseProps", function() { return svgBaseProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeFromTypeName", function() { return getThemeFromTypeName; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeTypeTheme", function() { return removeTypeTheme; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withThemeSuffix", function() { return withThemeSuffix; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alias", function() { return alias; });
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- // These props make sure that the SVG behaviours like general text.
- // Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
- var svgBaseProps = {
- width: '1em',
- height: '1em',
- fill: 'currentColor',
- 'aria-hidden': 'true',
- focusable: 'false'
- };
- var fillTester = /-fill$/;
- var outlineTester = /-o$/;
- var twoToneTester = /-twotone$/;
- function getThemeFromTypeName(type) {
- var result = null;
- if (fillTester.test(type)) {
- result = 'filled';
- } else if (outlineTester.test(type)) {
- result = 'outlined';
- } else if (twoToneTester.test(type)) {
- result = 'twoTone';
- }
- return result;
- }
- function removeTypeTheme(type) {
- return type.replace(fillTester, '').replace(outlineTester, '').replace(twoToneTester, '');
- }
- function withThemeSuffix(type, theme) {
- var result = type;
- if (theme === 'filled') {
- result += '-fill';
- } else if (theme === 'outlined') {
- result += '-o';
- } else if (theme === 'twoTone') {
- result += '-twotone';
- } else {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(false, 'Icon', 'This icon \'' + type + '\' has unknown theme \'' + theme + '\'');
- }
- return result;
- }
- // For alias or compatibility
- function alias(type) {
- var newType = type;
- switch (type) {
- case 'cross':
- newType = 'close';
- break;
- // https://github.com/ant-design/ant-design/issues/13007
- case 'interation':
- newType = 'interaction';
- break;
- // https://github.com/ant-design/ant-design/issues/16810
- case 'canlendar':
- newType = 'calendar';
- break;
- // https://github.com/ant-design/ant-design/issues/17448
- case 'colum-height':
- newType = 'column-height';
- break;
- default:
- }
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(newType === type, 'Icon', 'Icon \'' + type + '\' was a typo and is now deprecated, please use \'' + newType + '\' instead.');
- return newType;
- }
- /***/ }),
- /***/ "./components/index.js":
- /*!*****************************!*\
- !*** ./components/index.js ***!
- \*****************************/
- /*! exports provided: Base, version, install, message, notification, Affix, Anchor, AutoComplete, Alert, Avatar, BackTop, Badge, Breadcrumb, Button, Calendar, Card, Collapse, Carousel, Cascader, Checkbox, Col, DatePicker, Divider, Dropdown, Form, FormModel, Icon, Input, InputNumber, Layout, List, LocaleProvider, Menu, Mentions, Modal, Pagination, Popconfirm, Popover, Progress, Radio, Rate, Row, Select, Slider, Spin, Statistic, Steps, Switch, Table, Transfer, Tree, TreeSelect, Tabs, Tag, TimePicker, Timeline, Tooltip, Upload, Drawer, Skeleton, Comment, ConfigProvider, Empty, Result, Descriptions, PageHeader, Space, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; });
- /* harmony import */ var _affix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./affix */ "./components/affix/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Affix", function() { return _affix__WEBPACK_IMPORTED_MODULE_0__["default"]; });
- /* harmony import */ var _anchor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./anchor */ "./components/anchor/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Anchor", function() { return _anchor__WEBPACK_IMPORTED_MODULE_1__["default"]; });
- /* harmony import */ var _auto_complete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auto-complete */ "./components/auto-complete/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AutoComplete", function() { return _auto_complete__WEBPACK_IMPORTED_MODULE_2__["default"]; });
- /* harmony import */ var _alert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./alert */ "./components/alert/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return _alert__WEBPACK_IMPORTED_MODULE_3__["default"]; });
- /* harmony import */ var _avatar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./avatar */ "./components/avatar/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Avatar", function() { return _avatar__WEBPACK_IMPORTED_MODULE_4__["default"]; });
- /* harmony import */ var _back_top__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./back-top */ "./components/back-top/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BackTop", function() { return _back_top__WEBPACK_IMPORTED_MODULE_5__["default"]; });
- /* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./badge */ "./components/badge/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Badge", function() { return _badge__WEBPACK_IMPORTED_MODULE_6__["default"]; });
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./base */ "./components/base/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Base", function() { return _base__WEBPACK_IMPORTED_MODULE_7__["default"]; });
- /* harmony import */ var _breadcrumb__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./breadcrumb */ "./components/breadcrumb/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return _breadcrumb__WEBPACK_IMPORTED_MODULE_8__["default"]; });
- /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./button */ "./components/button/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _button__WEBPACK_IMPORTED_MODULE_9__["default"]; });
- /* harmony import */ var _calendar__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./calendar */ "./components/calendar/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Calendar", function() { return _calendar__WEBPACK_IMPORTED_MODULE_10__["default"]; });
- /* harmony import */ var _card__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./card */ "./components/card/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return _card__WEBPACK_IMPORTED_MODULE_11__["default"]; });
- /* harmony import */ var _collapse__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collapse */ "./components/collapse/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Collapse", function() { return _collapse__WEBPACK_IMPORTED_MODULE_12__["default"]; });
- /* harmony import */ var _carousel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./carousel */ "./components/carousel/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Carousel", function() { return _carousel__WEBPACK_IMPORTED_MODULE_13__["default"]; });
- /* harmony import */ var _cascader__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./cascader */ "./components/cascader/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Cascader", function() { return _cascader__WEBPACK_IMPORTED_MODULE_14__["default"]; });
- /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./checkbox */ "./components/checkbox/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _checkbox__WEBPACK_IMPORTED_MODULE_15__["default"]; });
- /* harmony import */ var _col__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./col */ "./components/col/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return _col__WEBPACK_IMPORTED_MODULE_16__["default"]; });
- /* harmony import */ var _date_picker__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./date-picker */ "./components/date-picker/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatePicker", function() { return _date_picker__WEBPACK_IMPORTED_MODULE_17__["default"]; });
- /* harmony import */ var _divider__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./divider */ "./components/divider/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Divider", function() { return _divider__WEBPACK_IMPORTED_MODULE_18__["default"]; });
- /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./dropdown */ "./components/dropdown/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _dropdown__WEBPACK_IMPORTED_MODULE_19__["default"]; });
- /* harmony import */ var _form__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./form */ "./components/form/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Form", function() { return _form__WEBPACK_IMPORTED_MODULE_20__["default"]; });
- /* harmony import */ var _form_model__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./form-model */ "./components/form-model/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormModel", function() { return _form_model__WEBPACK_IMPORTED_MODULE_21__["default"]; });
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./icon */ "./components/icon/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Icon", function() { return _icon__WEBPACK_IMPORTED_MODULE_22__["default"]; });
- /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./input */ "./components/input/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Input", function() { return _input__WEBPACK_IMPORTED_MODULE_23__["default"]; });
- /* harmony import */ var _input_number__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./input-number */ "./components/input-number/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputNumber", function() { return _input_number__WEBPACK_IMPORTED_MODULE_24__["default"]; });
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./layout */ "./components/layout/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Layout", function() { return _layout__WEBPACK_IMPORTED_MODULE_25__["default"]; });
- /* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./list */ "./components/list/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return _list__WEBPACK_IMPORTED_MODULE_26__["default"]; });
- /* harmony import */ var _locale_provider__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./locale-provider */ "./components/locale-provider/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LocaleProvider", function() { return _locale_provider__WEBPACK_IMPORTED_MODULE_27__["default"]; });
- /* harmony import */ var _message__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./message */ "./components/message/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "message", function() { return _message__WEBPACK_IMPORTED_MODULE_28__["default"]; });
- /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./menu */ "./components/menu/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Menu", function() { return _menu__WEBPACK_IMPORTED_MODULE_29__["default"]; });
- /* harmony import */ var _mentions__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./mentions */ "./components/mentions/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Mentions", function() { return _mentions__WEBPACK_IMPORTED_MODULE_30__["default"]; });
- /* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./modal */ "./components/modal/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function() { return _modal__WEBPACK_IMPORTED_MODULE_31__["default"]; });
- /* harmony import */ var _notification__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./notification */ "./components/notification/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "notification", function() { return _notification__WEBPACK_IMPORTED_MODULE_32__["default"]; });
- /* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./pagination */ "./components/pagination/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pagination", function() { return _pagination__WEBPACK_IMPORTED_MODULE_33__["default"]; });
- /* harmony import */ var _popconfirm__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./popconfirm */ "./components/popconfirm/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popconfirm", function() { return _popconfirm__WEBPACK_IMPORTED_MODULE_34__["default"]; });
- /* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./popover */ "./components/popover/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popover", function() { return _popover__WEBPACK_IMPORTED_MODULE_35__["default"]; });
- /* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./progress */ "./components/progress/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Progress", function() { return _progress__WEBPACK_IMPORTED_MODULE_36__["default"]; });
- /* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./radio */ "./components/radio/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Radio", function() { return _radio__WEBPACK_IMPORTED_MODULE_37__["default"]; });
- /* harmony import */ var _rate__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./rate */ "./components/rate/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rate", function() { return _rate__WEBPACK_IMPORTED_MODULE_38__["default"]; });
- /* harmony import */ var _row__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./row */ "./components/row/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return _row__WEBPACK_IMPORTED_MODULE_39__["default"]; });
- /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./select */ "./components/select/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Select", function() { return _select__WEBPACK_IMPORTED_MODULE_40__["default"]; });
- /* harmony import */ var _slider__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./slider */ "./components/slider/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slider", function() { return _slider__WEBPACK_IMPORTED_MODULE_41__["default"]; });
- /* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./spin */ "./components/spin/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Spin", function() { return _spin__WEBPACK_IMPORTED_MODULE_42__["default"]; });
- /* harmony import */ var _statistic__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./statistic */ "./components/statistic/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Statistic", function() { return _statistic__WEBPACK_IMPORTED_MODULE_43__["default"]; });
- /* harmony import */ var _steps__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./steps */ "./components/steps/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Steps", function() { return _steps__WEBPACK_IMPORTED_MODULE_44__["default"]; });
- /* harmony import */ var _switch__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./switch */ "./components/switch/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return _switch__WEBPACK_IMPORTED_MODULE_45__["default"]; });
- /* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./table */ "./components/table/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return _table__WEBPACK_IMPORTED_MODULE_46__["default"]; });
- /* harmony import */ var _transfer__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./transfer */ "./components/transfer/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transfer", function() { return _transfer__WEBPACK_IMPORTED_MODULE_47__["default"]; });
- /* harmony import */ var _tree__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./tree */ "./components/tree/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tree", function() { return _tree__WEBPACK_IMPORTED_MODULE_48__["default"]; });
- /* harmony import */ var _tree_select__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./tree-select */ "./components/tree-select/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeSelect", function() { return _tree_select__WEBPACK_IMPORTED_MODULE_49__["default"]; });
- /* harmony import */ var _tabs__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./tabs */ "./components/tabs/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return _tabs__WEBPACK_IMPORTED_MODULE_50__["default"]; });
- /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./tag */ "./components/tag/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _tag__WEBPACK_IMPORTED_MODULE_51__["default"]; });
- /* harmony import */ var _time_picker__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./time-picker */ "./components/time-picker/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimePicker", function() { return _time_picker__WEBPACK_IMPORTED_MODULE_52__["default"]; });
- /* harmony import */ var _timeline__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./timeline */ "./components/timeline/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Timeline", function() { return _timeline__WEBPACK_IMPORTED_MODULE_53__["default"]; });
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./tooltip */ "./components/tooltip/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _tooltip__WEBPACK_IMPORTED_MODULE_54__["default"]; });
- /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./upload */ "./components/upload/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Upload", function() { return _upload__WEBPACK_IMPORTED_MODULE_55__["default"]; });
- /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./version */ "./components/version/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _version__WEBPACK_IMPORTED_MODULE_56__["default"]; });
- /* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./drawer */ "./components/drawer/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Drawer", function() { return _drawer__WEBPACK_IMPORTED_MODULE_57__["default"]; });
- /* harmony import */ var _skeleton__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./skeleton */ "./components/skeleton/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return _skeleton__WEBPACK_IMPORTED_MODULE_58__["default"]; });
- /* harmony import */ var _comment__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./comment */ "./components/comment/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Comment", function() { return _comment__WEBPACK_IMPORTED_MODULE_59__["default"]; });
- /* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./config-provider */ "./components/config-provider/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfigProvider", function() { return _config_provider__WEBPACK_IMPORTED_MODULE_60__["default"]; });
- /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./empty */ "./components/empty/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Empty", function() { return _empty__WEBPACK_IMPORTED_MODULE_61__["default"]; });
- /* harmony import */ var _result__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./result */ "./components/result/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Result", function() { return _result__WEBPACK_IMPORTED_MODULE_62__["default"]; });
- /* harmony import */ var _descriptions__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./descriptions */ "./components/descriptions/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Descriptions", function() { return _descriptions__WEBPACK_IMPORTED_MODULE_63__["default"]; });
- /* harmony import */ var _page_header__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./page-header */ "./components/page-header/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageHeader", function() { return _page_header__WEBPACK_IMPORTED_MODULE_64__["default"]; });
- /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./space */ "./components/space/index.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Space", function() { return _space__WEBPACK_IMPORTED_MODULE_65__["default"]; });
- /* @remove-on-es-build-begin */
- // this file is not used if use https://github.com/ant-design/babel-plugin-import
- var ENV = "development";
- if (ENV !== 'production' && ENV !== 'test' && typeof console !== 'undefined' && console.warn && typeof window !== 'undefined') {
- console.warn('You are using a whole package of antd, ' + 'please use https://www.npmjs.com/package/babel-plugin-import to reduce app bundle size.');
- }
- /* @remove-on-es-build-end */
- var components = [_base__WEBPACK_IMPORTED_MODULE_7__["default"], _affix__WEBPACK_IMPORTED_MODULE_0__["default"], _anchor__WEBPACK_IMPORTED_MODULE_1__["default"], _auto_complete__WEBPACK_IMPORTED_MODULE_2__["default"], _alert__WEBPACK_IMPORTED_MODULE_3__["default"], _avatar__WEBPACK_IMPORTED_MODULE_4__["default"], _back_top__WEBPACK_IMPORTED_MODULE_5__["default"], _badge__WEBPACK_IMPORTED_MODULE_6__["default"], _breadcrumb__WEBPACK_IMPORTED_MODULE_8__["default"], _button__WEBPACK_IMPORTED_MODULE_9__["default"], _calendar__WEBPACK_IMPORTED_MODULE_10__["default"], _card__WEBPACK_IMPORTED_MODULE_11__["default"], _collapse__WEBPACK_IMPORTED_MODULE_12__["default"], _carousel__WEBPACK_IMPORTED_MODULE_13__["default"], _cascader__WEBPACK_IMPORTED_MODULE_14__["default"], _checkbox__WEBPACK_IMPORTED_MODULE_15__["default"], _col__WEBPACK_IMPORTED_MODULE_16__["default"], _date_picker__WEBPACK_IMPORTED_MODULE_17__["default"], _divider__WEBPACK_IMPORTED_MODULE_18__["default"], _dropdown__WEBPACK_IMPORTED_MODULE_19__["default"], _form__WEBPACK_IMPORTED_MODULE_20__["default"], _form_model__WEBPACK_IMPORTED_MODULE_21__["default"], _icon__WEBPACK_IMPORTED_MODULE_22__["default"], _input__WEBPACK_IMPORTED_MODULE_23__["default"], _input_number__WEBPACK_IMPORTED_MODULE_24__["default"], _layout__WEBPACK_IMPORTED_MODULE_25__["default"], _list__WEBPACK_IMPORTED_MODULE_26__["default"], _locale_provider__WEBPACK_IMPORTED_MODULE_27__["default"], _menu__WEBPACK_IMPORTED_MODULE_29__["default"], _mentions__WEBPACK_IMPORTED_MODULE_30__["default"], _modal__WEBPACK_IMPORTED_MODULE_31__["default"], _pagination__WEBPACK_IMPORTED_MODULE_33__["default"], _popconfirm__WEBPACK_IMPORTED_MODULE_34__["default"], _popover__WEBPACK_IMPORTED_MODULE_35__["default"], _progress__WEBPACK_IMPORTED_MODULE_36__["default"], _radio__WEBPACK_IMPORTED_MODULE_37__["default"], _rate__WEBPACK_IMPORTED_MODULE_38__["default"], _row__WEBPACK_IMPORTED_MODULE_39__["default"], _select__WEBPACK_IMPORTED_MODULE_40__["default"], _slider__WEBPACK_IMPORTED_MODULE_41__["default"], _spin__WEBPACK_IMPORTED_MODULE_42__["default"], _statistic__WEBPACK_IMPORTED_MODULE_43__["default"], _steps__WEBPACK_IMPORTED_MODULE_44__["default"], _switch__WEBPACK_IMPORTED_MODULE_45__["default"], _table__WEBPACK_IMPORTED_MODULE_46__["default"], _transfer__WEBPACK_IMPORTED_MODULE_47__["default"], _tree__WEBPACK_IMPORTED_MODULE_48__["default"], _tree_select__WEBPACK_IMPORTED_MODULE_49__["default"], _tabs__WEBPACK_IMPORTED_MODULE_50__["default"], _tag__WEBPACK_IMPORTED_MODULE_51__["default"], _time_picker__WEBPACK_IMPORTED_MODULE_52__["default"], _timeline__WEBPACK_IMPORTED_MODULE_53__["default"], _tooltip__WEBPACK_IMPORTED_MODULE_54__["default"], _upload__WEBPACK_IMPORTED_MODULE_55__["default"], _drawer__WEBPACK_IMPORTED_MODULE_57__["default"], _skeleton__WEBPACK_IMPORTED_MODULE_58__["default"], _comment__WEBPACK_IMPORTED_MODULE_59__["default"],
- // ColorPicker,
- _config_provider__WEBPACK_IMPORTED_MODULE_60__["default"], _empty__WEBPACK_IMPORTED_MODULE_61__["default"], _result__WEBPACK_IMPORTED_MODULE_62__["default"], _descriptions__WEBPACK_IMPORTED_MODULE_63__["default"], _page_header__WEBPACK_IMPORTED_MODULE_64__["default"], _space__WEBPACK_IMPORTED_MODULE_65__["default"]];
- var install = function install(Vue) {
- components.map(function (component) {
- Vue.use(component);
- });
- Vue.prototype.$message = _message__WEBPACK_IMPORTED_MODULE_28__["default"];
- Vue.prototype.$notification = _notification__WEBPACK_IMPORTED_MODULE_32__["default"];
- Vue.prototype.$info = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].info;
- Vue.prototype.$success = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].success;
- Vue.prototype.$error = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].error;
- Vue.prototype.$warning = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].warning;
- Vue.prototype.$confirm = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].confirm;
- Vue.prototype.$destroyAll = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].destroyAll;
- };
- /* istanbul ignore if */
- if (typeof window !== 'undefined' && window.Vue) {
- install(window.Vue);
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- version: _version__WEBPACK_IMPORTED_MODULE_56__["default"],
- install: install
- });
- /***/ }),
- /***/ "./components/input-number/index.jsx":
- /*!*******************************************!*\
- !*** ./components/input-number/index.jsx ***!
- \*******************************************/
- /*! exports provided: InputNumberProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNumberProps", function() { return InputNumberProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _vc_input_number_src__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-input-number/src */ "./components/vc-input-number/src/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var InputNumberProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
- step: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['large', 'small', 'default']),
- formatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- parser: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- decimalSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- precision: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
- };
- var InputNumber = {
- name: 'AInputNumber',
- model: {
- prop: 'value',
- event: 'change'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(InputNumberProps, {
- step: 1
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- methods: {
- focus: function focus() {
- this.$refs.inputNumberRef.focus();
- },
- blur: function blur() {
- this.$refs.inputNumberRef.blur();
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var _getOptionProps$$attr = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this), this.$attrs),
- customizePrefixCls = _getOptionProps$$attr.prefixCls,
- size = _getOptionProps$$attr.size,
- others = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps$$attr, ['prefixCls', 'size']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('input-number', customizePrefixCls);
- var inputNumberClass = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-sm', size === 'small'), _classNames));
- var upIcon = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: { type: 'up' },
- 'class': prefixCls + '-handler-up-inner' });
- var downIcon = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: { type: 'down' },
- 'class': prefixCls + '-handler-down-inner' });
- var vcInputNumberprops = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- prefixCls: prefixCls,
- upHandler: upIcon,
- downHandler: downIcon
- }, others),
- 'class': inputNumberClass,
- ref: 'inputNumberRef',
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
- };
- return h(_vc_input_number_src__WEBPACK_IMPORTED_MODULE_7__["default"], vcInputNumberprops);
- }
- };
- /* istanbul ignore next */
- InputNumber.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
- Vue.component(InputNumber.name, InputNumber);
- };
- /* harmony default export */ __webpack_exports__["default"] = (InputNumber);
- /***/ }),
- /***/ "./components/input-number/style/index.js":
- /*!************************************************!*\
- !*** ./components/input-number/style/index.js ***!
- \************************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/input-number/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/input-number/style/index.less":
- /*!**************************************************!*\
- !*** ./components/input-number/style/index.less ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/input/ClearableLabeledInput.jsx":
- /*!****************************************************!*\
- !*** ./components/input/ClearableLabeledInput.jsx ***!
- \****************************************************/
- /*! exports provided: hasPrefixSuffix, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasPrefixSuffix", function() { return hasPrefixSuffix; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- function hasPrefixSuffix(instance) {
- return !!(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(instance, 'prefix') || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(instance, 'suffix') || instance.$props.allowClear);
- }
- var ClearableInputType = ['text', 'input'];
- var ClearableLabeledInput = {
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- inputType: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(ClearableInputType),
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- element: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- handleReset: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['small', 'large', 'default']),
- suffix: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- addonBefore: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- addonAfter: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- className: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- readOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
- },
- methods: {
- renderClearIcon: function renderClearIcon(prefixCls) {
- var h = this.$createElement;
- var _$props = this.$props,
- allowClear = _$props.allowClear,
- value = _$props.value,
- disabled = _$props.disabled,
- readOnly = _$props.readOnly,
- inputType = _$props.inputType,
- handleReset = _$props.handleReset;
- if (!allowClear || disabled || readOnly || value === undefined || value === null || value === '') {
- return null;
- }
- var className = inputType === ClearableInputType[0] ? prefixCls + '-textarea-clear-icon' : prefixCls + '-clear-icon';
- return h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
- attrs: {
- type: 'close-circle',
- theme: 'filled',
- role: 'button'
- },
- on: {
- 'click': handleReset
- },
- 'class': className });
- },
- renderSuffix: function renderSuffix(prefixCls) {
- var h = this.$createElement;
- var _$props2 = this.$props,
- suffix = _$props2.suffix,
- allowClear = _$props2.allowClear;
- if (suffix || allowClear) {
- return h(
- 'span',
- { 'class': prefixCls + '-suffix' },
- [this.renderClearIcon(prefixCls), suffix]
- );
- }
- return null;
- },
- renderLabeledIcon: function renderLabeledIcon(prefixCls, element) {
- var _classNames;
- var h = this.$createElement;
- var props = this.$props;
- var suffix = this.renderSuffix(prefixCls);
- if (!hasPrefixSuffix(this)) {
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
- props: { value: props.value }
- });
- }
- var prefix = props.prefix ? h(
- 'span',
- { 'class': prefixCls + '-prefix' },
- [props.prefix]
- ) : null;
- var affixWrapperCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()(props.className, prefixCls + '-affix-wrapper', (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-affix-wrapper-sm', props.size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-affix-wrapper-lg', props.size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-affix-wrapper-input-with-clear-btn', props.suffix && props.allowClear && this.$props.value), _classNames));
- return h(
- 'span',
- { 'class': affixWrapperCls, style: props.style },
- [prefix, Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
- style: null,
- props: { value: props.value },
- 'class': Object(_Input__WEBPACK_IMPORTED_MODULE_3__["getInputClassName"])(prefixCls, props.size, props.disabled)
- }), suffix]
- );
- },
- renderInputWithLabel: function renderInputWithLabel(prefixCls, labeledElement) {
- var _classNames3;
- var h = this.$createElement;
- var _$props3 = this.$props,
- addonBefore = _$props3.addonBefore,
- addonAfter = _$props3.addonAfter,
- style = _$props3.style,
- size = _$props3.size,
- className = _$props3.className;
- // Not wrap when there is not addons
- if (!addonBefore && !addonAfter) {
- return labeledElement;
- }
- var wrapperClassName = prefixCls + '-group';
- var addonClassName = wrapperClassName + '-addon';
- var addonBeforeNode = addonBefore ? h(
- 'span',
- { 'class': addonClassName },
- [addonBefore]
- ) : null;
- var addonAfterNode = addonAfter ? h(
- 'span',
- { 'class': addonClassName },
- [addonAfter]
- ) : null;
- var mergedWrapperClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + '-wrapper', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, wrapperClassName, addonBefore || addonAfter));
- var mergedGroupClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, prefixCls + '-group-wrapper', (_classNames3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, prefixCls + '-group-wrapper-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, prefixCls + '-group-wrapper-lg', size === 'large'), _classNames3));
- // Need another wrapper for changing display:table to display:inline-block
- // and put style prop in wrapper
- return h(
- 'span',
- { 'class': mergedGroupClassName, style: style },
- [h(
- 'span',
- { 'class': mergedWrapperClassName },
- [addonBeforeNode, Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(labeledElement, { style: null }), addonAfterNode]
- )]
- );
- },
- renderTextAreaWithClearIcon: function renderTextAreaWithClearIcon(prefixCls, element) {
- var h = this.$createElement;
- var _$props4 = this.$props,
- value = _$props4.value,
- allowClear = _$props4.allowClear,
- className = _$props4.className,
- style = _$props4.style;
- if (!allowClear) {
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
- props: { value: value }
- });
- }
- var affixWrapperCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, prefixCls + '-affix-wrapper', prefixCls + '-affix-wrapper-textarea-with-clear-btn');
- return h(
- 'span',
- { 'class': affixWrapperCls, style: style },
- [Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
- style: null,
- props: { value: value }
- }), this.renderClearIcon(prefixCls)]
- );
- },
- renderClearableLabeledInput: function renderClearableLabeledInput() {
- var _$props5 = this.$props,
- prefixCls = _$props5.prefixCls,
- inputType = _$props5.inputType,
- element = _$props5.element;
- if (inputType === ClearableInputType[0]) {
- return this.renderTextAreaWithClearIcon(prefixCls, element);
- }
- return this.renderInputWithLabel(prefixCls, this.renderLabeledIcon(prefixCls, element));
- }
- },
- render: function render() {
- return this.renderClearableLabeledInput();
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (ClearableLabeledInput);
- /***/ }),
- /***/ "./components/input/Group.jsx":
- /*!************************************!*\
- !*** ./components/input/Group.jsx ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AInputGroup',
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- size: {
- validator: function validator(value) {
- return ['small', 'large', 'default'].includes(value);
- }
- },
- compact: Boolean
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
- } }
- },
- computed: {
- classes: function classes() {
- var _ref;
- var customizePrefixCls = this.prefixCls,
- size = this.size,
- _compact = this.compact,
- compact = _compact === undefined ? false : _compact;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('input-group', customizePrefixCls);
- return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-compact', compact), _ref;
- }
- },
- methods: {},
- render: function render() {
- var h = arguments[0];
- return h(
- 'span',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': this.classes }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this) }]),
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])(this.$slots['default'])]
- );
- }
- });
- /***/ }),
- /***/ "./components/input/Input.jsx":
- /*!************************************!*\
- !*** ./components/input/Input.jsx ***!
- \************************************/
- /*! exports provided: fixControlledValue, resolveOnChange, getInputClassName, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fixControlledValue", function() { return fixControlledValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveOnChange", function() { return resolveOnChange; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInputClassName", function() { return getInputClassName; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _TextArea__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TextArea */ "./components/input/TextArea.jsx");
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ClearableLabeledInput */ "./components/input/ClearableLabeledInput.jsx");
- function noop() {}
- function fixControlledValue(value) {
- if (typeof value === 'undefined' || value === null) {
- return '';
- }
- return value;
- }
- function resolveOnChange(target, e, onChange) {
- if (onChange) {
- var event = e;
- if (e.type === 'click') {
- // click clear icon
- //event = Object.create(e);
- Object.defineProperty(event, 'target', {
- writable: true
- });
- Object.defineProperty(event, 'currentTarget', {
- writable: true
- });
- event.target = target;
- event.currentTarget = target;
- var originalInputValue = target.value;
- // change target ref value cause e.target.value should be '' when clear input
- target.value = '';
- onChange(event);
- // reset target ref value
- target.value = originalInputValue;
- return;
- }
- onChange(event);
- }
- }
- function getInputClassName(prefixCls, size, disabled) {
- var _classNames;
- return classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AInput',
- inheritAttrs: false,
- model: {
- prop: 'value',
- event: 'change.value'
- },
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_6__["default"]),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var props = this.$props;
- var value = typeof props.value === 'undefined' ? props.defaultValue : props.value;
- return {
- stateValue: typeof value === 'undefined' ? '' : value
- };
- },
- watch: {
- value: function value(val) {
- this.stateValue = val;
- }
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.autoFocus) {
- _this.focus();
- }
- _this.clearPasswordValueAttribute();
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.removePasswordTimeout) {
- clearTimeout(this.removePasswordTimeout);
- }
- },
- methods: {
- onBlur: function onBlur(e) {
- // fix this isssue: https://github.com/vueComponent/ant-design-vue/issues/3816
- // reference: https://github.com/vuejs/vue/issues/5847 and https://github.com/vuejs/vue/issues/8431
- this.$forceUpdate();
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
- blur = _getListeners.blur;
- blur && blur(e);
- },
- focus: function focus() {
- this.$refs.input.focus();
- },
- blur: function blur() {
- this.$refs.input.blur();
- },
- select: function select() {
- this.$refs.input.select();
- },
- setValue: function setValue(value, callback) {
- if (this.stateValue === value) {
- return;
- }
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["hasProp"])(this, 'value')) {
- this.stateValue = value;
- this.$nextTick(function () {
- callback && callback();
- });
- } else {
- // 不在严格受控
- // https://github.com/vueComponent/ant-design-vue/issues/2207,modal 是 新 new 实例,更新队列和当前不在同一个更新队列中
- // this.$forceUpdate();
- }
- },
- onChange: function onChange(e) {
- this.$emit('change.value', e.target.value);
- this.$emit('change', e);
- this.$emit('input', e);
- },
- handleReset: function handleReset(e) {
- var _this2 = this;
- this.setValue('', function () {
- _this2.focus();
- });
- resolveOnChange(this.$refs.input, e, this.onChange);
- },
- renderInput: function renderInput(prefixCls) {
- var h = this.$createElement;
- var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(this.$props, ['prefixCls', 'addonBefore', 'addonAfter', 'prefix', 'suffix', 'allowClear', 'value', 'defaultValue', 'lazy', 'size', 'inputType', 'className']);
- var stateValue = this.stateValue,
- handleKeyDown = this.handleKeyDown,
- handleChange = this.handleChange,
- size = this.size,
- disabled = this.disabled;
- var inputProps = {
- directives: [{ name: 'ant-input' }],
- domProps: {
- value: fixControlledValue(stateValue)
- },
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, otherProps, this.$attrs),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), {
- keydown: handleKeyDown,
- input: handleChange,
- change: noop,
- blur: this.onBlur
- }),
- 'class': getInputClassName(prefixCls, size, disabled),
- ref: 'input',
- key: 'ant-input'
- };
- return h('input', inputProps);
- },
- clearPasswordValueAttribute: function clearPasswordValueAttribute() {
- var _this3 = this;
- // https://github.com/ant-design/ant-design/issues/20541
- this.removePasswordTimeout = setTimeout(function () {
- if (_this3.$refs.input && _this3.$refs.input.getAttribute && _this3.$refs.input.getAttribute('type') === 'password' && _this3.$refs.input.hasAttribute('value')) {
- _this3.$refs.input.removeAttribute('value');
- }
- });
- },
- handleChange: function handleChange(e) {
- var _e$target = e.target,
- value = _e$target.value,
- composing = _e$target.composing;
- // https://github.com/vueComponent/ant-design-vue/issues/2203
- if ((e.isComposing || composing) && this.lazy || this.stateValue === value) return;
- this.setValue(value, this.clearPasswordValueAttribute);
- resolveOnChange(this.$refs.input, e, this.onChange);
- },
- handleKeyDown: function handleKeyDown(e) {
- if (e.keyCode === 13) {
- this.$emit('pressEnter', e);
- }
- this.$emit('keydown', e);
- }
- },
- render: function render() {
- var h = arguments[0];
- if (this.$props.type === 'textarea') {
- var textareaProps = {
- props: this.$props,
- attrs: this.$attrs,
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), {
- input: this.handleChange,
- keydown: this.handleKeyDown,
- change: noop,
- blur: this.onBlur
- })
- };
- return h(_TextArea__WEBPACK_IMPORTED_MODULE_4__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([textareaProps, { ref: 'input' }]));
- }
- var customizePrefixCls = this.$props.prefixCls;
- var stateValue = this.$data.stateValue;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('input', customizePrefixCls);
- var addonAfter = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'addonAfter');
- var addonBefore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'addonBefore');
- var suffix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'suffix');
- var prefix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'prefix');
- var props = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this), {
- prefixCls: prefixCls,
- inputType: 'input',
- value: fixControlledValue(stateValue),
- element: this.renderInput(prefixCls),
- handleReset: this.handleReset,
- addonAfter: addonAfter,
- addonBefore: addonBefore,
- suffix: suffix,
- prefix: prefix
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this)
- };
- return h(_ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_9__["default"], props);
- }
- });
- /***/ }),
- /***/ "./components/input/Password.jsx":
- /*!***************************************!*\
- !*** ./components/input/Password.jsx ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- var ActionMap = {
- click: 'click',
- hover: 'mouseover'
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AInputPassword',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__["default"]],
- inheritAttrs: false,
- model: {
- prop: 'value',
- event: 'change.value'
- },
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_7__["default"], {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string.def('ant-input-password'),
- inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string.def('ant-input'),
- action: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string.def('click'),
- visibilityToggle: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool.def(true)
- }),
- data: function data() {
- return {
- visible: false
- };
- },
- methods: {
- focus: function focus() {
- this.$refs.input.focus();
- },
- blur: function blur() {
- this.$refs.input.blur();
- },
- onVisibleChange: function onVisibleChange() {
- if (this.disabled) {
- return;
- }
- this.setState({
- visible: !this.visible
- });
- },
- getIcon: function getIcon() {
- var _on;
- var h = this.$createElement;
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- action = _$props.action;
- var iconTrigger = ActionMap[action] || '';
- var iconProps = {
- props: {
- type: this.visible ? 'eye' : 'eye-invisible'
- },
- on: (_on = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_on, iconTrigger, this.onVisibleChange), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_on, 'mousedown', function mousedown(e) {
- // Prevent focused state lost
- // https://github.com/ant-design/ant-design/issues/15173
- e.preventDefault();
- }), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_on, 'mouseup', function mouseup(e) {
- // Prevent focused state lost
- // https://github.com/ant-design/ant-design/pull/23633/files
- e.preventDefault();
- }), _on),
- 'class': prefixCls + '-icon',
- key: 'passwordIcon'
- };
- return h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], iconProps);
- }
- },
- render: function render() {
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
- prefixCls = _getOptionProps.prefixCls,
- inputPrefixCls = _getOptionProps.inputPrefixCls,
- size = _getOptionProps.size,
- suffix = _getOptionProps.suffix,
- visibilityToggle = _getOptionProps.visibilityToggle,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls', 'inputPrefixCls', 'size', 'suffix', 'visibilityToggle']);
- var suffixIcon = visibilityToggle && this.getIcon();
- var inputClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-' + size, !!size));
- var inputProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, {
- prefixCls: inputPrefixCls,
- size: size,
- suffix: suffixIcon,
- prefix: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'prefix'),
- addonAfter: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'addonAfter'),
- addonBefore: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'addonBefore')
- }),
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$attrs, {
- type: this.visible ? 'text' : 'password'
- }),
- 'class': inputClassName,
- ref: 'input',
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
- };
- return h(_Input__WEBPACK_IMPORTED_MODULE_5__["default"], inputProps);
- }
- });
- /***/ }),
- /***/ "./components/input/ResizableTextArea.jsx":
- /*!************************************************!*\
- !*** ./components/input/ResizableTextArea.jsx ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _vc_resize_observer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-resize-observer */ "./components/vc-resize-observer/index.jsx");
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _calculateNodeHeight__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./calculateNodeHeight */ "./components/input/calculateNodeHeight.js");
- /* harmony import */ var _util_raf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/raf */ "./components/_util/raf.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var RESIZE_STATUS_NONE = 0;
- var RESIZE_STATUS_RESIZING = 1;
- var RESIZE_STATUS_RESIZED = 2;
- var TextAreaProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_10__["default"], {
- autosize: _util_vue_types__WEBPACK_IMPORTED_MODULE_11__["default"].oneOfType([Object, Boolean]),
- autoSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_11__["default"].oneOfType([Object, Boolean])
- });
- var ResizableTextArea = {
- name: 'ResizableTextArea',
- props: TextAreaProps,
- data: function data() {
- return {
- textareaStyles: {},
- resizeStatus: RESIZE_STATUS_NONE
- };
- },
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__["default"]],
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- _this.resizeTextarea();
- });
- },
- beforeDestroy: function beforeDestroy() {
- _util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(this.nextFrameActionId);
- _util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(this.resizeFrameId);
- },
- watch: {
- value: function value() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.resizeTextarea();
- });
- }
- },
- methods: {
- handleResize: function handleResize(size) {
- var resizeStatus = this.$data.resizeStatus;
- var autoSize = this.$props.autoSize;
- if (resizeStatus !== RESIZE_STATUS_NONE) {
- return;
- }
- this.$emit('resize', size);
- if (autoSize) {
- this.resizeOnNextFrame();
- }
- },
- resizeOnNextFrame: function resizeOnNextFrame() {
- _util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(this.nextFrameActionId);
- this.nextFrameActionId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"])(this.resizeTextarea);
- },
- resizeTextarea: function resizeTextarea() {
- var _this3 = this;
- var autoSize = this.$props.autoSize || this.$props.autosize;
- if (!autoSize || !this.$refs.textArea) {
- return;
- }
- var minRows = autoSize.minRows,
- maxRows = autoSize.maxRows;
- var textareaStyles = Object(_calculateNodeHeight__WEBPACK_IMPORTED_MODULE_6__["default"])(this.$refs.textArea, false, minRows, maxRows);
- this.setState({ textareaStyles: textareaStyles, resizeStatus: RESIZE_STATUS_RESIZING }, function () {
- _util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(_this3.resizeFrameId);
- _this3.resizeFrameId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"])(function () {
- _this3.setState({ resizeStatus: RESIZE_STATUS_RESIZED }, function () {
- _this3.resizeFrameId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"])(function () {
- _this3.setState({ resizeStatus: RESIZE_STATUS_NONE });
- _this3.fixFirefoxAutoScroll();
- });
- });
- });
- });
- },
- // https://github.com/ant-design/ant-design/issues/21870
- fixFirefoxAutoScroll: function fixFirefoxAutoScroll() {
- try {
- if (document.activeElement === this.$refs.textArea) {
- var currentStart = this.$refs.textArea.selectionStart;
- var currentEnd = this.$refs.textArea.selectionEnd;
- this.$refs.textArea.setSelectionRange(currentStart, currentEnd);
- }
- } catch (e) {
- // Fix error in Chrome:
- // Failed to read the 'selectionStart' property from 'HTMLInputElement'
- // http://stackoverflow.com/q/21177489/3040605
- }
- },
- renderTextArea: function renderTextArea() {
- var h = this.$createElement;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
- var prefixCls = props.prefixCls,
- autoSize = props.autoSize,
- autosize = props.autosize,
- disabled = props.disabled;
- var _$data = this.$data,
- textareaStyles = _$data.textareaStyles,
- resizeStatus = _$data.resizeStatus;
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(autosize === undefined, 'Input.TextArea', 'autosize is deprecated, please use autoSize instead.');
- var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(props, ['prefixCls', 'autoSize', 'autosize', 'defaultValue', 'allowClear', 'type', 'lazy', 'value']);
- var cls = classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-disabled', disabled));
- var domProps = {};
- // Fix https://github.com/ant-design/ant-design/issues/6776
- // Make sure it could be reset when using form.getFieldDecorator
- if ('value' in props) {
- domProps.value = props.value || '';
- }
- var style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, textareaStyles, resizeStatus === RESIZE_STATUS_RESIZING ? { overflowX: 'hidden', overflowY: 'hidden' } : null);
- var textareaProps = {
- attrs: otherProps,
- domProps: domProps,
- style: style,
- 'class': cls,
- on: Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this), 'pressEnter'),
- directives: [{
- name: 'ant-input'
- }]
- };
- return h(
- _vc_resize_observer__WEBPACK_IMPORTED_MODULE_3__["default"],
- {
- on: {
- 'resize': this.handleResize
- },
- attrs: { disabled: !(autoSize || autosize) }
- },
- [h('textarea', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([textareaProps, { ref: 'textArea' }]))]
- );
- }
- },
- render: function render() {
- return this.renderTextArea();
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (ResizableTextArea);
- /***/ }),
- /***/ "./components/input/Search.jsx":
- /*!*************************************!*\
- !*** ./components/input/Search.jsx ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var is_mobile__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! is-mobile */ "./node_modules/is-mobile/index.js");
- /* harmony import */ var is_mobile__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(is_mobile__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
- /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AInputSearch',
- inheritAttrs: false,
- model: {
- prop: 'value',
- event: 'change.value'
- },
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_7__["default"], {
- // 不能设置默认值 https://github.com/vueComponent/ant-design-vue/issues/1916
- enterButton: _util_vue_types__WEBPACK_IMPORTED_MODULE_10__["default"].any
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
- } }
- },
- methods: {
- onChange: function onChange(e) {
- if (e && e.target && e.type === 'click') {
- this.$emit('search', e.target.value, e);
- }
- this.$emit('change', e);
- },
- onSearch: function onSearch(e) {
- if (this.loading || this.disabled) {
- return;
- }
- this.$emit('search', this.$refs.input.stateValue, e);
- if (!Object(is_mobile__WEBPACK_IMPORTED_MODULE_4__["isMobile"])({ tablet: true })) {
- this.$refs.input.focus();
- }
- },
- focus: function focus() {
- this.$refs.input.focus();
- },
- blur: function blur() {
- this.$refs.input.blur();
- },
- renderLoading: function renderLoading(prefixCls) {
- var h = this.$createElement;
- var size = this.$props.size;
- var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
- // 兼容 <a-input-search enterButton />, 因enterButton类型为 any,此类写法 enterButton 为空字符串
- enterButton = enterButton || enterButton === '';
- if (enterButton) {
- return h(
- _button__WEBPACK_IMPORTED_MODULE_8__["default"],
- { 'class': prefixCls + '-button', attrs: { type: 'primary', size: size },
- key: 'enterButton' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: { type: 'loading' }
- })]
- );
- }
- return h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { 'class': prefixCls + '-icon', attrs: { type: 'loading' },
- key: 'loadingIcon' });
- },
- renderSuffix: function renderSuffix(prefixCls) {
- var h = this.$createElement;
- var loading = this.loading;
- var suffix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'suffix');
- var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
- // 兼容 <a-input-search enterButton />, 因enterButton类型为 any,此类写法 enterButton 为空字符串
- enterButton = enterButton || enterButton === '';
- if (loading && !enterButton) {
- return [suffix, this.renderLoading(prefixCls)];
- }
- if (enterButton) return suffix;
- var icon = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { 'class': prefixCls + '-icon', attrs: { type: 'search' },
- key: 'searchIcon', on: {
- 'click': this.onSearch
- }
- });
- if (suffix) {
- // let cloneSuffix = suffix;
- // if (isValidElement(cloneSuffix) && !cloneSuffix.key) {
- // cloneSuffix = cloneElement(cloneSuffix, {
- // key: 'originSuffix',
- // });
- // }
- return [suffix, icon];
- }
- return icon;
- },
- renderAddonAfter: function renderAddonAfter(prefixCls) {
- var h = this.$createElement;
- var size = this.size,
- disabled = this.disabled,
- loading = this.loading;
- var btnClassName = prefixCls + '-button';
- var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
- enterButton = enterButton || enterButton === '';
- var addonAfter = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'addonAfter');
- if (loading && enterButton) {
- return [this.renderLoading(prefixCls), addonAfter];
- }
- if (!enterButton) return addonAfter;
- var enterButtonAsElement = Array.isArray(enterButton) ? enterButton[0] : enterButton;
- var button = void 0;
- var isAntdButton = enterButtonAsElement.componentOptions && enterButtonAsElement.componentOptions.Ctor.extendOptions.__ANT_BUTTON;
- if (enterButtonAsElement.tag === 'button' || isAntdButton) {
- button = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(enterButtonAsElement, {
- key: 'enterButton',
- 'class': isAntdButton ? btnClassName : '',
- props: isAntdButton ? { size: size } : {},
- on: {
- click: this.onSearch
- }
- });
- } else {
- button = h(
- _button__WEBPACK_IMPORTED_MODULE_8__["default"],
- {
- 'class': btnClassName,
- attrs: { type: 'primary',
- size: size,
- disabled: disabled
- },
- key: 'enterButton',
- on: {
- 'click': this.onSearch
- }
- },
- [enterButton === true || enterButton === '' ? h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: { type: 'search' }
- }) : enterButton]
- );
- }
- if (addonAfter) {
- return [button, addonAfter];
- }
- return button;
- }
- },
- render: function render() {
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- customizeInputPrefixCls = _getOptionProps.inputPrefixCls,
- size = _getOptionProps.size,
- loading = _getOptionProps.loading,
- others = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'inputPrefixCls', 'size', 'loading']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('input-search', customizePrefixCls);
- var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
- var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
- var addonBefore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'addonBefore');
- enterButton = enterButton || enterButton === '';
- var inputClassName = void 0;
- if (enterButton) {
- var _classNames;
- inputClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-enter-button', !!enterButton), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + size, !!size), _classNames));
- } else {
- inputClassName = prefixCls;
- }
- var on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this));
- delete on.search;
- var inputProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, others, {
- prefixCls: inputPrefixCls,
- size: size,
- suffix: this.renderSuffix(prefixCls),
- prefix: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'prefix'),
- addonAfter: this.renderAddonAfter(prefixCls),
- addonBefore: addonBefore,
- className: inputClassName
- }),
- attrs: this.$attrs,
- ref: 'input',
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- pressEnter: this.onSearch
- }, on, {
- change: this.onChange
- })
- };
- return h(_Input__WEBPACK_IMPORTED_MODULE_5__["default"], inputProps);
- }
- });
- /***/ }),
- /***/ "./components/input/TextArea.jsx":
- /*!***************************************!*\
- !*** ./components/input/TextArea.jsx ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ClearableLabeledInput */ "./components/input/ClearableLabeledInput.jsx");
- /* harmony import */ var _ResizableTextArea__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ResizableTextArea */ "./components/input/ResizableTextArea.jsx");
- /* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- var TextAreaProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_4__["default"], {
- autosize: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([Object, Boolean]),
- autoSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([Object, Boolean])
- });
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ATextarea',
- inheritAttrs: false,
- model: {
- prop: 'value',
- event: 'change.value'
- },
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, TextAreaProps),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var value = typeof this.value === 'undefined' ? this.defaultValue : this.value;
- return {
- stateValue: typeof value === 'undefined' ? '' : value
- };
- },
- computed: {},
- watch: {
- value: function value(val) {
- this.stateValue = val;
- }
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.autoFocus) {
- _this.focus();
- }
- });
- },
- methods: {
- setValue: function setValue(value, callback) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'value')) {
- this.stateValue = value;
- this.$nextTick(function () {
- callback && callback();
- });
- } else {
- // 不在严格受控
- // https://github.com/vueComponent/ant-design-vue/issues/2207,modal 是 新 new 实例,更新队列和当前不在同一个更新队列中
- // this.$forceUpdate();
- }
- },
- handleKeyDown: function handleKeyDown(e) {
- if (e.keyCode === 13) {
- this.$emit('pressEnter', e);
- }
- this.$emit('keydown', e);
- },
- onChange: function onChange(e) {
- this.$emit('change.value', e.target.value);
- this.$emit('change', e);
- this.$emit('input', e);
- },
- handleChange: function handleChange(e) {
- var _this2 = this;
- var _e$target = e.target,
- value = _e$target.value,
- composing = _e$target.composing;
- if ((e.isComposing || composing) && this.lazy || this.stateValue === value) return;
- this.setValue(e.target.value, function () {
- _this2.$refs.resizableTextArea.resizeTextarea();
- });
- Object(_Input__WEBPACK_IMPORTED_MODULE_7__["resolveOnChange"])(this.$refs.resizableTextArea.$refs.textArea, e, this.onChange);
- },
- focus: function focus() {
- this.$refs.resizableTextArea.$refs.textArea.focus();
- },
- blur: function blur() {
- this.$refs.resizableTextArea.$refs.textArea.blur();
- },
- handleReset: function handleReset(e) {
- var _this3 = this;
- this.setValue('', function () {
- _this3.$refs.resizableTextArea.renderTextArea();
- _this3.focus();
- });
- Object(_Input__WEBPACK_IMPORTED_MODULE_7__["resolveOnChange"])(this.$refs.resizableTextArea.$refs.textArea, e, this.onChange);
- },
- renderTextArea: function renderTextArea(prefixCls) {
- var h = this.$createElement;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var resizeProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- prefixCls: prefixCls
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
- input: this.handleChange,
- keydown: this.handleKeyDown
- }),
- attrs: this.$attrs
- };
- return h(_ResizableTextArea__WEBPACK_IMPORTED_MODULE_3__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([resizeProps, { ref: 'resizableTextArea' }]));
- }
- },
- render: function render() {
- var h = arguments[0];
- var stateValue = this.stateValue,
- customizePrefixCls = this.prefixCls;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('input', customizePrefixCls);
- var props = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this), {
- prefixCls: prefixCls,
- inputType: 'text',
- value: Object(_Input__WEBPACK_IMPORTED_MODULE_7__["fixControlledValue"])(stateValue),
- element: this.renderTextArea(prefixCls),
- handleReset: this.handleReset
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
- };
- return h(_ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_2__["default"], props);
- }
- });
- /***/ }),
- /***/ "./components/input/calculateNodeHeight.js":
- /*!*************************************************!*\
- !*** ./components/input/calculateNodeHeight.js ***!
- \*************************************************/
- /*! exports provided: calculateNodeStyling, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateNodeStyling", function() { return calculateNodeStyling; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return calculateNodeHeight; });
- // Thanks to https://github.com/andreypopp/react-textarea-autosize/
- /**
- * calculateNodeHeight(uiTextNode, useCache = false)
- */
- var HIDDEN_TEXTAREA_STYLE = '\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
- var SIZING_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'font-variant', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
- var computedStyleCache = {};
- var hiddenTextarea = void 0;
- function calculateNodeStyling(node) {
- var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- var nodeRef = node.getAttribute('id') || node.getAttribute('data-reactid') || node.getAttribute('name');
- if (useCache && computedStyleCache[nodeRef]) {
- return computedStyleCache[nodeRef];
- }
- var style = window.getComputedStyle(node);
- var boxSizing = style.getPropertyValue('box-sizing') || style.getPropertyValue('-moz-box-sizing') || style.getPropertyValue('-webkit-box-sizing');
- var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
- var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
- var sizingStyle = SIZING_STYLE.map(function (name) {
- return name + ':' + style.getPropertyValue(name);
- }).join(';');
- var nodeInfo = {
- sizingStyle: sizingStyle,
- paddingSize: paddingSize,
- borderSize: borderSize,
- boxSizing: boxSizing
- };
- if (useCache && nodeRef) {
- computedStyleCache[nodeRef] = nodeInfo;
- }
- return nodeInfo;
- }
- function calculateNodeHeight(uiTextNode) {
- var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- var minRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
- var maxRows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
- if (!hiddenTextarea) {
- hiddenTextarea = document.createElement('textarea');
- document.body.appendChild(hiddenTextarea);
- }
- // Fix wrap="off" issue
- // https://github.com/ant-design/ant-design/issues/6577
- if (uiTextNode.getAttribute('wrap')) {
- hiddenTextarea.setAttribute('wrap', uiTextNode.getAttribute('wrap'));
- } else {
- hiddenTextarea.removeAttribute('wrap');
- }
- // Copy all CSS properties that have an impact on the height of the content in
- // the textbox
- var _calculateNodeStyling = calculateNodeStyling(uiTextNode, useCache),
- paddingSize = _calculateNodeStyling.paddingSize,
- borderSize = _calculateNodeStyling.borderSize,
- boxSizing = _calculateNodeStyling.boxSizing,
- sizingStyle = _calculateNodeStyling.sizingStyle;
- // Need to have the overflow attribute to hide the scrollbar otherwise
- // text-lines will not calculated properly as the shadow will technically be
- // narrower for content
- hiddenTextarea.setAttribute('style', sizingStyle + ';' + HIDDEN_TEXTAREA_STYLE);
- hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || '';
- var minHeight = Number.MIN_SAFE_INTEGER;
- var maxHeight = Number.MAX_SAFE_INTEGER;
- var height = hiddenTextarea.scrollHeight;
- var overflowY = void 0;
- if (boxSizing === 'border-box') {
- // border-box: add border, since height = content + padding + border
- height += borderSize;
- } else if (boxSizing === 'content-box') {
- // remove padding, since height = content
- height -= paddingSize;
- }
- if (minRows !== null || maxRows !== null) {
- // measure height of a textarea with a single row
- hiddenTextarea.value = ' ';
- var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
- if (minRows !== null) {
- minHeight = singleRowHeight * minRows;
- if (boxSizing === 'border-box') {
- minHeight = minHeight + paddingSize + borderSize;
- }
- height = Math.max(minHeight, height);
- }
- if (maxRows !== null) {
- maxHeight = singleRowHeight * maxRows;
- if (boxSizing === 'border-box') {
- maxHeight = maxHeight + paddingSize + borderSize;
- }
- overflowY = height > maxHeight ? '' : 'hidden';
- height = Math.min(maxHeight, height);
- }
- }
- return {
- height: height + 'px',
- minHeight: minHeight + 'px',
- maxHeight: maxHeight + 'px',
- overflowY: overflowY
- };
- }
- /***/ }),
- /***/ "./components/input/index.js":
- /*!***********************************!*\
- !*** ./components/input/index.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
- /* harmony import */ var _Group__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Group */ "./components/input/Group.jsx");
- /* harmony import */ var _Search__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Search */ "./components/input/Search.jsx");
- /* harmony import */ var _TextArea__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TextArea */ "./components/input/TextArea.jsx");
- /* harmony import */ var _Password__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Password */ "./components/input/Password.jsx");
- /* harmony import */ var _util_antInputDirective__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/antInputDirective */ "./components/_util/antInputDirective.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(_util_antInputDirective__WEBPACK_IMPORTED_MODULE_6__["default"]);
- _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Group = _Group__WEBPACK_IMPORTED_MODULE_2__["default"];
- _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Search = _Search__WEBPACK_IMPORTED_MODULE_3__["default"];
- _Input__WEBPACK_IMPORTED_MODULE_1__["default"].TextArea = _TextArea__WEBPACK_IMPORTED_MODULE_4__["default"];
- _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Password = _Password__WEBPACK_IMPORTED_MODULE_5__["default"];
- /* istanbul ignore next */
- _Input__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_7__["default"]);
- Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Group.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Group);
- Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Search.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Search);
- Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].TextArea.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].TextArea);
- Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Password.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Password);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Input__WEBPACK_IMPORTED_MODULE_1__["default"]);
- /***/ }),
- /***/ "./components/input/inputProps.js":
- /*!****************************************!*\
- !*** ./components/input/inputProps.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
- placeholder: [String, Number],
- type: {
- 'default': 'text',
- type: String
- },
- name: String,
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['small', 'large', 'default']),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- readOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- addonBefore: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- addonAfter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- // onPressEnter?: React.FormEventHandler<any>;
- // onKeyDown?: React.FormEventHandler<any>;
- // onChange?: React.ChangeEventHandler<HTMLInputElement>;
- // onClick?: React.FormEventHandler<any>;
- // onFocus?: React.FormEventHandler<any>;
- // onBlur?: React.FormEventHandler<any>;
- prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- suffix: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- // spellCheck: Boolean,
- autoFocus: Boolean,
- allowClear: Boolean,
- lazy: {
- 'default': true,
- type: Boolean
- },
- maxLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- className: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string
- });
- /***/ }),
- /***/ "./components/input/style/index.js":
- /*!*****************************************!*\
- !*** ./components/input/style/index.js ***!
- \*****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/input/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/input/style/index.less":
- /*!*******************************************!*\
- !*** ./components/input/style/index.less ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/layout/Sider.jsx":
- /*!*************************************!*\
- !*** ./components/layout/Sider.jsx ***!
- \*************************************/
- /*! exports provided: SiderProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SiderProps", function() { return SiderProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/isNumeric */ "./components/_util/isNumeric.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- // matchMedia polyfill for
- // https://github.com/WickyNilliams/enquire.js/issues/82
- if (typeof window !== 'undefined') {
- var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {
- return {
- media: mediaQuery,
- matches: false,
- addListener: function addListener() {},
- removeListener: function removeListener() {}
- };
- };
- window.matchMedia = window.matchMedia || matchMediaPolyfill;
- }
- var dimensionMaxMap = {
- xs: '479.98px',
- sm: '575.98px',
- md: '767.98px',
- lg: '991.98px',
- xl: '1199.98px',
- xxl: '1599.98px'
- };
- // export type CollapseType = 'clickTrigger' | 'responsive';
- var SiderProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- collapsible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- collapsed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- defaultCollapsed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- reverseArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- // onCollapse?: (collapsed: boolean, type: CollapseType) => void;
- zeroWidthTriggerStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- width: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string]),
- collapsedWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string]),
- breakpoint: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['xs', 'sm', 'md', 'lg', 'xl', 'xxl']),
- theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['light', 'dark']).def('dark')
- };
- // export interface SiderState {
- // collapsed?: boolean;
- // below: boolean;
- // belowShow?: boolean;
- // }
- // export interface SiderContext {
- // siderCollapsed: boolean;
- // }
- var generateId = function () {
- var i = 0;
- return function () {
- var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
- i += 1;
- return '' + prefix + i;
- };
- }();
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ALayoutSider',
- __ANT_LAYOUT_SIDER: true,
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- model: {
- prop: 'collapsed',
- event: 'collapse'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(SiderProps, {
- collapsible: false,
- defaultCollapsed: false,
- reverseArrow: false,
- width: 200,
- collapsedWidth: 80
- }),
- data: function data() {
- this.uniqueId = generateId('ant-sider-');
- var matchMedia = void 0;
- if (typeof window !== 'undefined') {
- matchMedia = window.matchMedia;
- }
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this);
- if (matchMedia && props.breakpoint && props.breakpoint in dimensionMaxMap) {
- this.mql = matchMedia('(max-width: ' + dimensionMaxMap[props.breakpoint] + ')');
- }
- var sCollapsed = void 0;
- if ('collapsed' in props) {
- sCollapsed = props.collapsed;
- } else {
- sCollapsed = props.defaultCollapsed;
- }
- return {
- sCollapsed: sCollapsed,
- below: false,
- belowShow: false
- };
- },
- provide: function provide() {
- return {
- layoutSiderContext: this // menu组件中使用
- };
- },
- inject: {
- siderHook: { 'default': function _default() {
- return {};
- } },
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
- } }
- },
- // getChildContext() {
- // return {
- // siderCollapsed: this.state.collapsed,
- // collapsedWidth: this.props.collapsedWidth,
- // };
- // }
- watch: {
- collapsed: function collapsed(val) {
- this.setState({
- sCollapsed: val
- });
- }
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.mql) {
- _this.mql.addListener(_this.responsiveHandler);
- _this.responsiveHandler(_this.mql);
- }
- if (_this.siderHook.addSider) {
- _this.siderHook.addSider(_this.uniqueId);
- }
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.mql) {
- this.mql.removeListener(this.responsiveHandler);
- }
- if (this.siderHook.removeSider) {
- this.siderHook.removeSider(this.uniqueId);
- }
- },
- methods: {
- responsiveHandler: function responsiveHandler(mql) {
- this.setState({ below: mql.matches });
- this.$emit('breakpoint', mql.matches);
- if (this.sCollapsed !== mql.matches) {
- this.setCollapsed(mql.matches, 'responsive');
- }
- },
- setCollapsed: function setCollapsed(collapsed, type) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'collapsed')) {
- this.setState({
- sCollapsed: collapsed
- });
- }
- this.$emit('collapse', collapsed, type);
- },
- toggle: function toggle() {
- var collapsed = !this.sCollapsed;
- this.setCollapsed(collapsed, 'clickTrigger');
- },
- belowShowChange: function belowShowChange() {
- this.setState({ belowShow: !this.belowShow });
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- theme = _getOptionProps.theme,
- collapsible = _getOptionProps.collapsible,
- reverseArrow = _getOptionProps.reverseArrow,
- width = _getOptionProps.width,
- collapsedWidth = _getOptionProps.collapsedWidth,
- zeroWidthTriggerStyle = _getOptionProps.zeroWidthTriggerStyle;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('layout-sider', customizePrefixCls);
- var trigger = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'trigger');
- var rawWidth = this.sCollapsed ? collapsedWidth : width;
- // use "px" as fallback unit for width
- var siderWidth = Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_5__["default"])(rawWidth) ? rawWidth + 'px' : String(rawWidth);
- // special trigger when collapsedWidth == 0
- var zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? h(
- 'span',
- {
- on: {
- 'click': this.toggle
- },
- 'class': prefixCls + '-zero-width-trigger ' + prefixCls + '-zero-width-trigger-' + (reverseArrow ? 'right' : 'left'),
- style: zeroWidthTriggerStyle
- },
- [h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: { type: 'bars' }
- })]
- ) : null;
- var iconObj = {
- expanded: reverseArrow ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: { type: 'right' }
- }) : h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: { type: 'left' }
- }),
- collapsed: reverseArrow ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: { type: 'left' }
- }) : h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: { type: 'right' }
- })
- };
- var status = this.sCollapsed ? 'collapsed' : 'expanded';
- var defaultTrigger = iconObj[status];
- var triggerDom = trigger !== null ? zeroWidthTrigger || h(
- 'div',
- { 'class': prefixCls + '-trigger', on: {
- 'click': this.toggle
- },
- style: { width: siderWidth } },
- [trigger || defaultTrigger]
- ) : null;
- var divStyle = {
- // ...style,
- flex: '0 0 ' + siderWidth,
- maxWidth: siderWidth, // Fix width transition bug in IE11
- minWidth: siderWidth, // https://github.com/ant-design/ant-design/issues/6349
- width: siderWidth
- };
- var siderCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, prefixCls + '-' + theme, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-collapsed', !!this.sCollapsed), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-has-trigger', collapsible && trigger !== null && !zeroWidthTrigger), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-below', !!this.below), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-zero-width', parseFloat(siderWidth) === 0), _classNames));
- var divProps = {
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this),
- 'class': siderCls,
- style: divStyle
- };
- return h(
- 'aside',
- divProps,
- [h(
- 'div',
- { 'class': prefixCls + '-children' },
- [this.$slots['default']]
- ), collapsible || this.below && zeroWidthTrigger ? triggerDom : null]
- );
- }
- });
- /***/ }),
- /***/ "./components/layout/index.js":
- /*!************************************!*\
- !*** ./components/layout/index.js ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ "./components/layout/layout.jsx");
- /* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ "./components/layout/Sider.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _layout__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
- Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Header.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Header);
- Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Footer.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Footer);
- Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Sider.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Sider);
- Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Content.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Content);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_layout__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/layout/layout.jsx":
- /*!**************************************!*\
- !*** ./components/layout/layout.jsx ***!
- \**************************************/
- /*! exports provided: BasicProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BasicProps", function() { return BasicProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var BasicProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- hasSider: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].boolean,
- tagName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
- };
- function generator(_ref) {
- var suffixCls = _ref.suffixCls,
- tagName = _ref.tagName,
- name = _ref.name;
- return function (BasicComponent) {
- return {
- name: name,
- props: BasicComponent.props,
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
- } }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.$props.prefixCls;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls(suffixCls, customizePrefixCls);
- var basicComponentProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- prefixCls: prefixCls
- }, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this), {
- tagName: tagName
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
- };
- return h(
- BasicComponent,
- basicComponentProps,
- [this.$slots['default']]
- );
- }
- };
- };
- }
- var Basic = {
- props: BasicProps,
- render: function render() {
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- Tag = this.tagName,
- $slots = this.$slots;
- var divProps = {
- 'class': prefixCls,
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
- };
- return h(
- Tag,
- divProps,
- [$slots['default']]
- );
- }
- };
- var BasicLayout = {
- props: BasicProps,
- data: function data() {
- return {
- siders: []
- };
- },
- provide: function provide() {
- var _this = this;
- return {
- siderHook: {
- addSider: function addSider(id) {
- _this.siders = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(_this.siders), [id]);
- },
- removeSider: function removeSider(id) {
- _this.siders = _this.siders.filter(function (currentId) {
- return currentId !== id;
- });
- }
- }
- };
- },
- render: function render() {
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- $slots = this.$slots,
- hasSider = this.hasSider,
- Tag = this.tagName;
- var divCls = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-has-sider', typeof hasSider === 'boolean' ? hasSider : this.siders.length > 0));
- var divProps = {
- 'class': divCls,
- on: _util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"]
- };
- return h(
- Tag,
- divProps,
- [$slots['default']]
- );
- }
- };
- var Layout = generator({
- suffixCls: 'layout',
- tagName: 'section',
- name: 'ALayout'
- })(BasicLayout);
- var Header = generator({
- suffixCls: 'layout-header',
- tagName: 'header',
- name: 'ALayoutHeader'
- })(Basic);
- var Footer = generator({
- suffixCls: 'layout-footer',
- tagName: 'footer',
- name: 'ALayoutFooter'
- })(Basic);
- var Content = generator({
- suffixCls: 'layout-content',
- tagName: 'main',
- name: 'ALayoutContent'
- })(Basic);
- Layout.Header = Header;
- Layout.Footer = Footer;
- Layout.Content = Content;
- /* harmony default export */ __webpack_exports__["default"] = (Layout);
- /***/ }),
- /***/ "./components/layout/style/index.js":
- /*!******************************************!*\
- !*** ./components/layout/style/index.js ***!
- \******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/layout/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/layout/style/index.less":
- /*!********************************************!*\
- !*** ./components/layout/style/index.less ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/list/Item.jsx":
- /*!**********************************!*\
- !*** ./components/list/Item.jsx ***!
- \**********************************/
- /*! exports provided: ListItemProps, ListItemMetaProps, Meta, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListItemProps", function() { return ListItemProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListItemMetaProps", function() { return ListItemMetaProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Meta", function() { return Meta; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./index */ "./components/list/index.jsx");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- var ListItemProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- actions: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any),
- grid: _index__WEBPACK_IMPORTED_MODULE_7__["ListGridType"]
- };
- var ListItemMetaProps = {
- avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- description: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
- };
- var Meta = {
- functional: true,
- name: 'AListItemMeta',
- __ANT_LIST_ITEM_META: true,
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
- } }
- },
- render: function render(h, context) {
- var props = context.props,
- slots = context.slots,
- listeners = context.listeners,
- injections = context.injections;
- var slotsMap = slots();
- var getPrefixCls = injections.configProvider.getPrefixCls;
- var customizePrefixCls = props.prefixCls;
- var prefixCls = getPrefixCls('list', customizePrefixCls);
- var avatar = props.avatar || slotsMap.avatar;
- var title = props.title || slotsMap.title;
- var description = props.description || slotsMap.description;
- var content = h(
- 'div',
- { 'class': prefixCls + '-item-meta-content' },
- [title && h(
- 'h4',
- { 'class': prefixCls + '-item-meta-title' },
- [title]
- ), description && h(
- 'div',
- { 'class': prefixCls + '-item-meta-description' },
- [description]
- )]
- );
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ on: listeners }, { 'class': prefixCls + '-item-meta' }]),
- [avatar && h(
- 'div',
- { 'class': prefixCls + '-item-meta-avatar' },
- [avatar]
- ), (title || description) && content]
- );
- }
- };
- function getGrid(grid, t) {
- return grid[t] && Math.floor(24 / grid[t]);
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AListItem',
- Meta: Meta,
- props: ListItemProps,
- inject: {
- listContext: { 'default': function _default() {
- return {};
- } },
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
- } }
- },
- methods: {
- isItemContainsTextNodeAndNotSingular: function isItemContainsTextNodeAndNotSingular() {
- var $slots = this.$slots;
- var result = void 0;
- var children = $slots['default'] || [];
- children.forEach(function (element) {
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isStringElement"])(element) && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isEmptyElement"])(element)) {
- result = true;
- }
- });
- return result && children.length > 1;
- },
- isFlexMode: function isFlexMode() {
- var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'extra');
- var itemLayout = this.listContext.itemLayout;
- if (itemLayout === 'vertical') {
- return !!extra;
- }
- return !this.isItemContainsTextNodeAndNotSingular();
- }
- },
- render: function render() {
- var h = arguments[0];
- var _listContext = this.listContext,
- grid = _listContext.grid,
- itemLayout = _listContext.itemLayout;
- var customizePrefixCls = this.prefixCls,
- $slots = this.$slots;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('list', customizePrefixCls);
- var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'extra');
- var actions = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'actions');
- var actionsContent = actions && actions.length > 0 && h(
- 'ul',
- { 'class': prefixCls + '-item-action', key: 'actions' },
- [actions.map(function (action, i) {
- return h(
- 'li',
- { key: prefixCls + '-item-action-' + i },
- [action, i !== actions.length - 1 && h('em', { 'class': prefixCls + '-item-action-split' })]
- );
- })]
- );
- var Tag = grid ? 'div' : 'li';
- var itemChildren = h(
- Tag,
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ on: listeners }, {
- 'class': classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-item', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-item-no-flex', !this.isFlexMode()))
- }]),
- [itemLayout === 'vertical' && extra ? [h(
- 'div',
- { 'class': prefixCls + '-item-main', key: 'content' },
- [$slots['default'], actionsContent]
- ), h(
- 'div',
- { 'class': prefixCls + '-item-extra', key: 'extra' },
- [extra]
- )] : [$slots['default'], actionsContent, Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(extra, { key: 'extra' })]]
- );
- var mainContent = grid ? h(
- _grid__WEBPACK_IMPORTED_MODULE_5__["Col"],
- {
- attrs: {
- span: getGrid(grid, 'column'),
- xs: getGrid(grid, 'xs'),
- sm: getGrid(grid, 'sm'),
- md: getGrid(grid, 'md'),
- lg: getGrid(grid, 'lg'),
- xl: getGrid(grid, 'xl'),
- xxl: getGrid(grid, 'xxl')
- }
- },
- [itemChildren]
- ) : itemChildren;
- return mainContent;
- }
- });
- /***/ }),
- /***/ "./components/list/index.jsx":
- /*!***********************************!*\
- !*** ./components/list/index.jsx ***!
- \***********************************/
- /*! exports provided: ListItemProps, ListItemMetaProps, ColumnCount, ColumnType, ListGridType, ListSize, ListProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnCount", function() { return ColumnCount; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnType", function() { return ColumnType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListGridType", function() { return ListGridType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListSize", function() { return ListSize; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListProps", function() { return ListProps; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
- /* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../pagination */ "./components/pagination/index.js");
- /* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
- /* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Item */ "./components/list/Item.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListItemProps", function() { return _Item__WEBPACK_IMPORTED_MODULE_13__["ListItemProps"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListItemMetaProps", function() { return _Item__WEBPACK_IMPORTED_MODULE_13__["ListItemMetaProps"]; });
- var ColumnCount = ['', 1, 2, 3, 4, 6, 8, 12, 24];
- var ColumnType = ['gutter', 'column', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
- var ListGridType = {
- gutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
- column: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
- xs: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
- sm: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
- md: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
- lg: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
- xl: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
- xxl: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount)
- };
- var ListSize = ['small', 'default', 'large'];
- var ListProps = function ListProps() {
- return {
- bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- grid: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape(ListGridType).loose,
- itemLayout: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
- loadMore: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- pagination: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape(Object(_pagination__WEBPACK_IMPORTED_MODULE_11__["PaginationConfig"])()).loose, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool]),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- renderItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ListSize),
- split: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- header: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object
- };
- };
- var List = {
- Item: _Item__WEBPACK_IMPORTED_MODULE_13__["default"],
- name: 'AList',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["initDefaultProps"])(ListProps(), {
- dataSource: [],
- bordered: false,
- split: true,
- loading: false,
- pagination: false
- }),
- provide: function provide() {
- return {
- listContext: this
- };
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var _this = this;
- this.keys = [];
- this.defaultPaginationProps = {
- current: 1,
- pageSize: 10,
- onChange: function onChange(page, pageSize) {
- var pagination = _this.pagination;
- _this.paginationCurrent = page;
- if (pagination && pagination.onChange) {
- pagination.onChange(page, pageSize);
- }
- },
- total: 0
- };
- this.onPaginationChange = this.triggerPaginationEvent('onChange');
- this.onPaginationShowSizeChange = this.triggerPaginationEvent('onShowSizeChange');
- var pagination = this.$props.pagination;
- var paginationObj = pagination && (typeof pagination === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5___default()(pagination)) === 'object' ? pagination : {};
- return {
- paginationCurrent: paginationObj.defaultCurrent || 1,
- paginationSize: paginationObj.defaultPageSize || 10
- };
- },
- methods: {
- triggerPaginationEvent: function triggerPaginationEvent(eventName) {
- var _this2 = this;
- return function (page, pageSize) {
- var pagination = _this2.$props.pagination;
- _this2.paginationCurrent = page;
- _this2.paginationSize = pageSize;
- if (pagination && pagination[eventName]) {
- pagination[eventName](page, pageSize);
- }
- };
- },
- renderItem2: function renderItem2(item, index) {
- var $scopedSlots = this.$scopedSlots,
- rowKey = this.rowKey;
- var renderItem = this.renderItem || $scopedSlots.renderItem;
- if (!renderItem) return null;
- var key = void 0;
- if (typeof rowKey === 'function') {
- key = rowKey(item);
- } else if (typeof rowKey === 'string') {
- key = item[rowKey];
- } else {
- key = item.key;
- }
- if (!key) {
- key = 'list-item-' + index;
- }
- this.keys[index] = key;
- return renderItem(item, index);
- },
- isSomethingAfterLastItem: function isSomethingAfterLastItem() {
- var pagination = this.pagination;
- var loadMore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'loadMore');
- var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'footer');
- return !!(loadMore || pagination || footer);
- },
- renderEmpty: function renderEmpty(prefixCls, _renderEmpty) {
- var h = this.$createElement;
- var locale = this.locale;
- return h(
- 'div',
- { 'class': prefixCls + '-empty-text' },
- [locale && locale.emptyText || _renderEmpty(h, 'List')]
- );
- }
- },
- render: function render() {
- var _classNames,
- _this3 = this;
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- bordered = this.bordered,
- split = this.split,
- itemLayout = this.itemLayout,
- pagination = this.pagination,
- grid = this.grid,
- _dataSource = this.dataSource,
- dataSource = _dataSource === undefined ? [] : _dataSource,
- size = this.size,
- loading = this.loading,
- $slots = this.$slots,
- paginationCurrent = this.paginationCurrent,
- paginationSize = this.paginationSize;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('list', customizePrefixCls);
- var loadMore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'loadMore');
- var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'footer');
- var header = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'header');
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["filterEmpty"])($slots['default'] || []);
- var loadingProp = loading;
- if (typeof loadingProp === 'boolean') {
- loadingProp = {
- spinning: loadingProp
- };
- }
- var isLoading = loadingProp && loadingProp.spinning;
- // large => lg
- // small => sm
- var sizeCls = '';
- switch (size) {
- case 'large':
- sizeCls = 'lg';
- break;
- case 'small':
- sizeCls = 'sm';
- break;
- default:
- break;
- }
- var classString = classnames__WEBPACK_IMPORTED_MODULE_7___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-vertical', itemLayout === 'vertical'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-' + sizeCls, sizeCls), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-split', split), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-bordered', bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-loading', isLoading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-grid', grid), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-something-after-last-item', this.isSomethingAfterLastItem()), _classNames));
- var paginationProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, this.defaultPaginationProps, {
- total: dataSource.length,
- current: paginationCurrent,
- pageSize: paginationSize
- }, pagination || {});
- var largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize);
- if (paginationProps.current > largestPage) {
- paginationProps.current = largestPage;
- }
- var cls = paginationProps['class'],
- style = paginationProps.style,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(paginationProps, ['class', 'style']);
- var paginationContent = pagination ? h(
- 'div',
- { 'class': prefixCls + '-pagination' },
- [h(_pagination__WEBPACK_IMPORTED_MODULE_11__["default"], {
- props: Object(omit_js__WEBPACK_IMPORTED_MODULE_8__["default"])(restProps, ['onChange']),
- 'class': cls,
- style: style,
- on: {
- change: this.onPaginationChange,
- showSizeChange: this.onPaginationShowSizeChange
- }
- })]
- ) : null;
- var splitDataSource = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(dataSource));
- if (pagination) {
- if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) {
- splitDataSource = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(dataSource)).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize);
- }
- }
- var childrenContent = void 0;
- childrenContent = isLoading && h('div', { style: { minHeight: 53 } });
- if (splitDataSource.length > 0) {
- var items = splitDataSource.map(function (item, index) {
- return _this3.renderItem2(item, index);
- });
- var childrenList = items.map(function (child, index) {
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneElement"])(child, {
- key: _this3.keys[index]
- });
- });
- childrenContent = grid ? h(
- _grid__WEBPACK_IMPORTED_MODULE_12__["Row"],
- {
- attrs: { gutter: grid.gutter }
- },
- [childrenList]
- ) : h(
- 'ul',
- { 'class': prefixCls + '-items' },
- [childrenList]
- );
- } else if (!children.length && !isLoading) {
- var renderEmpty = this.configProvider.renderEmpty;
- childrenContent = this.renderEmpty(prefixCls, renderEmpty);
- }
- var paginationPosition = paginationProps.position || 'bottom';
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': classString }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getListeners"])(this) }]),
- [(paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && h(
- 'div',
- { 'class': prefixCls + '-header' },
- [header]
- ), h(
- _spin__WEBPACK_IMPORTED_MODULE_10__["default"],
- { props: loadingProp },
- [childrenContent, children]
- ), footer && h(
- 'div',
- { 'class': prefixCls + '-footer' },
- [footer]
- ), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent]
- );
- }
- };
- /* istanbul ignore next */
- List.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_16__["default"]);
- Vue.component(List.name, List);
- Vue.component(List.Item.name, List.Item);
- Vue.component(List.Item.Meta.name, List.Item.Meta);
- };
- /* harmony default export */ __webpack_exports__["default"] = (List);
- /***/ }),
- /***/ "./components/list/style/index.js":
- /*!****************************************!*\
- !*** ./components/list/style/index.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/list/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
- /* harmony import */ var _spin_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../spin/style */ "./components/spin/style/index.js");
- /* harmony import */ var _pagination_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../pagination/style */ "./components/pagination/style/index.js");
- /* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/list/style/index.less":
- /*!******************************************!*\
- !*** ./components/list/style/index.less ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/locale-provider/LocaleReceiver.jsx":
- /*!*******************************************************!*\
- !*** ./components/locale-provider/LocaleReceiver.jsx ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _default__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./default */ "./components/locale-provider/default.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'LocaleReceiver',
- props: {
- componentName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('global'),
- defaultLocale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- },
- inject: {
- localeData: { 'default': function _default() {
- return {};
- } }
- },
- methods: {
- getLocale: function getLocale() {
- var componentName = this.componentName,
- defaultLocale = this.defaultLocale;
- var locale = defaultLocale || _default__WEBPACK_IMPORTED_MODULE_2__["default"][componentName || 'global'];
- var antLocale = this.localeData.antLocale;
- var localeFromContext = componentName && antLocale ? antLocale[componentName] : {};
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, typeof locale === 'function' ? locale() : locale, localeFromContext || {});
- },
- getLocaleCode: function getLocaleCode() {
- var antLocale = this.localeData.antLocale;
- var localeCode = antLocale && antLocale.locale;
- // Had use LocaleProvide but didn't set locale
- if (antLocale && antLocale.exist && !localeCode) {
- return _default__WEBPACK_IMPORTED_MODULE_2__["default"].locale;
- }
- return localeCode;
- }
- },
- render: function render() {
- var $scopedSlots = this.$scopedSlots;
- var children = this.children || $scopedSlots['default'];
- var antLocale = this.localeData.antLocale;
- return children(this.getLocale(), this.getLocaleCode(), antLocale);
- }
- });
- /***/ }),
- /***/ "./components/locale-provider/default.js":
- /*!***********************************************!*\
- !*** ./components/locale-provider/default.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _locale_default__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../locale/default */ "./components/locale/default.js");
- /* harmony default export */ __webpack_exports__["default"] = (_locale_default__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/locale-provider/index.jsx":
- /*!**********************************************!*\
- !*** ./components/locale-provider/index.jsx ***!
- \**********************************************/
- /*! exports provided: ANT_MARK, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANT_MARK", function() { return ANT_MARK; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
- /* harmony import */ var _modal_locale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../modal/locale */ "./components/modal/locale.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- // export interface Locale {
- // locale: string;
- // Pagination?: Object;
- // DatePicker?: Object;
- // TimePicker?: Object;
- // Calendar?: Object;
- // Table?: Object;
- // Modal?: ModalLocale;
- // Popconfirm?: Object;
- // Transfer?: Object;
- // Select?: Object;
- // Upload?: Object;
- // }
- var ANT_MARK = 'internalMark';
- function setMomentLocale(locale) {
- if (locale && locale.locale) {
- Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__).locale(locale.locale);
- } else {
- Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__).locale('en');
- }
- }
- var LocaleProvider = {
- name: 'ALocaleProvider',
- props: {
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(function () {
- return {};
- }),
- _ANT_MARK__: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- },
- data: function data() {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(this._ANT_MARK__ === ANT_MARK, 'LocaleProvider', '`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead');
- return {
- antLocale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.locale, {
- exist: true
- })
- };
- },
- provide: function provide() {
- return {
- localeData: this.$data
- };
- },
- watch: {
- locale: function locale(val) {
- this.antLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.locale, {
- exist: true
- });
- setMomentLocale(val);
- Object(_modal_locale__WEBPACK_IMPORTED_MODULE_4__["changeConfirmLocale"])(val && val.Modal);
- }
- },
- created: function created() {
- var locale = this.locale;
- setMomentLocale(locale);
- Object(_modal_locale__WEBPACK_IMPORTED_MODULE_4__["changeConfirmLocale"])(locale && locale.Modal);
- },
- beforeDestroy: function beforeDestroy() {
- Object(_modal_locale__WEBPACK_IMPORTED_MODULE_4__["changeConfirmLocale"])();
- },
- render: function render() {
- return this.$slots['default'] ? this.$slots['default'][0] : null;
- }
- };
- /* istanbul ignore next */
- LocaleProvider.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_5__["default"]);
- Vue.component(LocaleProvider.name, LocaleProvider);
- };
- /* harmony default export */ __webpack_exports__["default"] = (LocaleProvider);
- /***/ }),
- /***/ "./components/locale-provider/style/index.js":
- /*!***************************************************!*\
- !*** ./components/locale-provider/style/index.js ***!
- \***************************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/locale-provider/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /***/ }),
- /***/ "./components/locale-provider/style/index.less":
- /*!*****************************************************!*\
- !*** ./components/locale-provider/style/index.less ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/locale/default.js":
- /*!**************************************!*\
- !*** ./components/locale/default.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vc-pagination/locale/en_US */ "./components/vc-pagination/locale/en_US.js");
- /* harmony import */ var _date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../date-picker/locale/en_US */ "./components/date-picker/locale/en_US.js");
- /* harmony import */ var _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../time-picker/locale/en_US */ "./components/time-picker/locale/en_US.js");
- /* harmony import */ var _calendar_locale_en_US__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../calendar/locale/en_US */ "./components/calendar/locale/en_US.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- locale: 'en',
- Pagination: _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_0__["default"],
- DatePicker: _date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_1__["default"],
- TimePicker: _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__["default"],
- Calendar: _calendar_locale_en_US__WEBPACK_IMPORTED_MODULE_3__["default"],
- global: {
- placeholder: 'Please select'
- },
- Table: {
- filterTitle: 'Filter menu',
- filterConfirm: 'OK',
- filterReset: 'Reset',
- selectAll: 'Select current page',
- selectInvert: 'Invert current page',
- sortTitle: 'Sort',
- expand: 'Expand row',
- collapse: 'Collapse row'
- },
- Modal: {
- okText: 'OK',
- cancelText: 'Cancel',
- justOkText: 'OK'
- },
- Popconfirm: {
- okText: 'OK',
- cancelText: 'Cancel'
- },
- Transfer: {
- titles: ['', ''],
- searchPlaceholder: 'Search here',
- itemUnit: 'item',
- itemsUnit: 'items'
- },
- Upload: {
- uploading: 'Uploading...',
- removeFile: 'Remove file',
- uploadError: 'Upload error',
- previewFile: 'Preview file',
- downloadFile: 'Download file'
- },
- Empty: {
- description: 'No Data'
- },
- Icon: {
- icon: 'icon'
- },
- Text: {
- edit: 'Edit',
- copy: 'Copy',
- copied: 'Copied',
- expand: 'Expand'
- },
- PageHeader: {
- back: 'Back'
- }
- });
- /***/ }),
- /***/ "./components/mentions/index.jsx":
- /*!***************************************!*\
- !*** ./components/mentions/index.jsx ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_mentions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-mentions */ "./components/vc-mentions/index.js");
- /* harmony import */ var _vc_mentions_src_mentionsProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-mentions/src/mentionsProps */ "./components/vc-mentions/src/mentionsProps.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var Option = _vc_mentions__WEBPACK_IMPORTED_MODULE_7__["default"].Option;
- function loadingFilterOption() {
- return true;
- }
- function getMentions() {
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
- var config = arguments[1];
- var _ref = config || {},
- _ref$prefix = _ref.prefix,
- prefix = _ref$prefix === undefined ? '@' : _ref$prefix,
- _ref$split = _ref.split,
- split = _ref$split === undefined ? ' ' : _ref$split;
- var prefixList = Array.isArray(prefix) ? prefix : [prefix];
- return value.split(split).map(function () {
- var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
- var hitPrefix = null;
- prefixList.some(function (prefixStr) {
- var startStr = str.slice(0, prefixStr.length);
- if (startStr === prefixStr) {
- hitPrefix = prefixStr;
- return true;
- }
- return false;
- });
- if (hitPrefix !== null) {
- return {
- prefix: hitPrefix,
- value: str.slice(hitPrefix.length)
- };
- }
- return null;
- }).filter(function (entity) {
- return !!entity && !!entity.value;
- });
- }
- var Mentions = {
- name: 'AMentions',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
- inheritAttrs: false,
- model: {
- prop: 'value',
- event: 'change'
- },
- Option: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Option, { name: 'AMentionsOption' }),
- getMentions: getMentions,
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _vc_mentions_src_mentionsProps__WEBPACK_IMPORTED_MODULE_8__["mentionsProps"], {
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- return {
- focused: false
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.autoFocus) {
- _this.focus();
- }
- });
- },
- methods: {
- onFocus: function onFocus() {
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- this.$emit.apply(this, ['focus'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
- this.setState({
- focused: true
- });
- },
- onBlur: function onBlur() {
- for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
- this.$emit.apply(this, ['blur'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
- this.setState({
- focused: false
- });
- },
- onSelect: function onSelect() {
- for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
- args[_key3] = arguments[_key3];
- }
- this.$emit.apply(this, ['select'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
- this.setState({
- focused: true
- });
- },
- onChange: function onChange(val) {
- this.$emit('change', val);
- },
- getNotFoundContent: function getNotFoundContent(renderEmpty) {
- var h = this.$createElement;
- var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getComponentFromProp"])(this, 'notFoundContent');
- if (notFoundContent !== undefined) {
- return notFoundContent;
- }
- return renderEmpty(h, 'Select');
- },
- getOptions: function getOptions() {
- var h = this.$createElement;
- var loading = this.$props.loading;
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["filterEmpty"])(this.$slots['default'] || []);
- if (loading) {
- return h(
- Option,
- {
- attrs: { value: 'ANTD_SEARCHING', disabled: true }
- },
- [h(_spin__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { size: 'small' }
- })]
- );
- }
- return children;
- },
- getFilterOption: function getFilterOption() {
- var _$props = this.$props,
- filterOption = _$props.filterOption,
- loading = _$props.loading;
- if (loading) {
- return loadingFilterOption;
- }
- return filterOption;
- },
- focus: function focus() {
- this.$refs.vcMentions.focus();
- },
- blur: function blur() {
- this.$refs.vcMentions.blur();
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var focused = this.$data.focused;
- var _configProvider = this.configProvider,
- getPrefixCls = _configProvider.getPrefixCls,
- renderEmpty = _configProvider.renderEmpty;
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- disabled = _getOptionProps.disabled,
- getPopupContainer = _getOptionProps.getPopupContainer,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'disabled', 'getPopupContainer']);
- var prefixCls = getPrefixCls('mentions', customizePrefixCls);
- var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(restProps, ['loading']);
- var mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-focused', focused), _classNames));
- var mentionsProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
- prefixCls: prefixCls,
- notFoundContent: this.getNotFoundContent(renderEmpty)
- }, otherProps, {
- disabled: disabled,
- filterOption: this.getFilterOption(),
- getPopupContainer: getPopupContainer,
- children: this.getOptions()
- }),
- 'class': mergedClassName,
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({ rows: 1 }, this.$attrs),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getListeners"])(this), {
- change: this.onChange,
- select: this.onSelect,
- focus: this.onFocus,
- blur: this.onBlur
- }),
- ref: 'vcMentions'
- };
- return h(_vc_mentions__WEBPACK_IMPORTED_MODULE_7__["default"], mentionsProps);
- }
- };
- /* istanbul ignore next */
- Mentions.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
- Vue.component(Mentions.name, Mentions);
- Vue.component(Mentions.Option.name, Mentions.Option);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Mentions);
- /***/ }),
- /***/ "./components/mentions/style/index.js":
- /*!********************************************!*\
- !*** ./components/mentions/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/mentions/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
- /* harmony import */ var _spin_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../spin/style */ "./components/spin/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/mentions/style/index.less":
- /*!**********************************************!*\
- !*** ./components/mentions/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/menu/MenuItem.jsx":
- /*!**************************************!*\
- !*** ./components/menu/MenuItem.jsx ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'MenuItem',
- inheritAttrs: false,
- props: _vc_menu__WEBPACK_IMPORTED_MODULE_2__["itemProps"],
- inject: {
- getInlineCollapsed: { 'default': function _default() {
- return noop;
- } },
- layoutSiderContext: { 'default': function _default() {
- return {};
- } }
- },
- isMenuItem: true,
- methods: {
- onKeyDown: function onKeyDown(e) {
- this.$refs.menuItem.onKeyDown(e);
- }
- },
- render: function render() {
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this);
- var level = props.level,
- title = props.title,
- rootPrefixCls = props.rootPrefixCls;
- var getInlineCollapsed = this.getInlineCollapsed,
- $slots = this.$slots,
- attrs = this.$attrs;
- var inlineCollapsed = getInlineCollapsed();
- var tooltipTitle = title;
- if (typeof title === 'undefined') {
- tooltipTitle = level === 1 ? $slots['default'] : '';
- } else if (title === false) {
- tooltipTitle = '';
- }
- var tooltipProps = {
- title: tooltipTitle
- };
- var siderCollapsed = this.layoutSiderContext.sCollapsed;
- if (!siderCollapsed && !inlineCollapsed) {
- tooltipProps.title = null;
- // Reset `visible` to fix control mode tooltip display not correct
- // ref: https://github.com/ant-design/ant-design/issues/16742
- tooltipProps.visible = false;
- }
- var itemProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- title: title
- }),
- attrs: attrs,
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
- };
- var toolTipProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tooltipProps, {
- placement: 'right',
- overlayClassName: rootPrefixCls + '-inline-collapsed-tooltip'
- })
- };
- return h(
- _tooltip__WEBPACK_IMPORTED_MODULE_4__["default"],
- toolTipProps,
- [h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_2__["Item"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([itemProps, { ref: 'menuItem' }]),
- [$slots['default']]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/menu/SubMenu.jsx":
- /*!*************************************!*\
- !*** ./components/menu/SubMenu.jsx ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ASubMenu',
- isSubMenu: true,
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_menu__WEBPACK_IMPORTED_MODULE_1__["SubMenu"].props),
- inject: {
- menuPropsContext: { 'default': function _default() {
- return {};
- } }
- },
- methods: {
- onKeyDown: function onKeyDown(e) {
- this.$refs.subMenu.onKeyDown(e);
- }
- },
- render: function render() {
- var h = arguments[0];
- var $slots = this.$slots,
- $scopedSlots = this.$scopedSlots;
- var _$props = this.$props,
- rootPrefixCls = _$props.rootPrefixCls,
- popupClassName = _$props.popupClassName;
- var antdMenuTheme = this.menuPropsContext.theme;
- var props = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, {
- popupClassName: classnames__WEBPACK_IMPORTED_MODULE_3___default()(rootPrefixCls + '-' + antdMenuTheme, popupClassName)
- }),
- ref: 'subMenu',
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
- scopedSlots: $scopedSlots
- };
- var slotsKey = Object.keys($slots);
- return h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_1__["SubMenu"],
- props,
- [slotsKey.length ? slotsKey.map(function (name) {
- return h(
- 'template',
- { slot: name },
- [$slots[name]]
- );
- }) : null]
- );
- }
- });
- /***/ }),
- /***/ "./components/menu/index.jsx":
- /*!***********************************!*\
- !*** ./components/menu/index.jsx ***!
- \***********************************/
- /*! exports provided: MenuMode, menuProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MenuMode", function() { return MenuMode; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "menuProps", function() { return menuProps; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
- /* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SubMenu */ "./components/menu/SubMenu.jsx");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_openAnimation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/openAnimation */ "./components/_util/openAnimation.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./MenuItem */ "./components/menu/MenuItem.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _vc_menu_commonPropsType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../vc-menu/commonPropsType */ "./components/vc-menu/commonPropsType.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- // import raf from '../_util/raf';
- var MenuMode = _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['vertical', 'vertical-left', 'vertical-right', 'horizontal', 'inline']);
- var menuProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_menu_commonPropsType__WEBPACK_IMPORTED_MODULE_12__["default"], {
- theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['light', 'dark']).def('light'),
- mode: MenuMode.def('vertical'),
- selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number])),
- defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- defaultOpenKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
- openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number.def(24),
- inlineCollapsed: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- isRootMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
- focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(false)
- });
- var Menu = {
- name: 'AMenu',
- props: menuProps,
- Divider: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_menu__WEBPACK_IMPORTED_MODULE_4__["Divider"], { name: 'AMenuDivider' }),
- Item: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _MenuItem__WEBPACK_IMPORTED_MODULE_9__["default"], { name: 'AMenuItem' }),
- SubMenu: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _SubMenu__WEBPACK_IMPORTED_MODULE_5__["default"], { name: 'ASubMenu' }),
- ItemGroup: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_menu__WEBPACK_IMPORTED_MODULE_4__["ItemGroup"], { name: 'AMenuItemGroup' }),
- provide: function provide() {
- return {
- getInlineCollapsed: this.getInlineCollapsed,
- menuPropsContext: this.$props
- };
- },
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
- inject: {
- layoutSiderContext: { 'default': function _default() {
- return {};
- } },
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__["ConfigConsumerProps"];
- } }
- },
- model: {
- prop: 'selectedKeys',
- event: 'selectChange'
- },
- updated: function updated() {
- this.propsUpdating = false;
- },
- // beforeDestroy() {
- // raf.cancel(this.mountRafId);
- // },
- watch: {
- mode: function mode(val, oldVal) {
- if (oldVal === 'inline' && val !== 'inline') {
- this.switchingModeFromInline = true;
- }
- },
- openKeys: function openKeys(val) {
- this.setState({ sOpenKeys: val });
- },
- inlineCollapsed: function inlineCollapsed(val) {
- this.collapsedChange(val);
- },
- 'layoutSiderContext.sCollapsed': function layoutSiderContextSCollapsed(val) {
- this.collapsedChange(val);
- }
- },
- data: function data() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getOptionProps"])(this);
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(!('inlineCollapsed' in props && props.mode !== 'inline'), 'Menu', "`inlineCollapsed` should only be used when Menu's `mode` is inline.");
- this.switchingModeFromInline = false;
- this.leaveAnimationExecutedWhenInlineCollapsed = false;
- this.inlineOpenKeys = [];
- var sOpenKeys = void 0;
- if ('openKeys' in props) {
- sOpenKeys = props.openKeys;
- } else if ('defaultOpenKeys' in props) {
- sOpenKeys = props.defaultOpenKeys;
- }
- return {
- sOpenKeys: sOpenKeys
- };
- },
- methods: {
- collapsedChange: function collapsedChange(val) {
- if (this.propsUpdating) {
- return;
- }
- this.propsUpdating = true;
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'openKeys')) {
- if (val) {
- this.switchingModeFromInline = true;
- this.inlineOpenKeys = this.sOpenKeys;
- this.setState({ sOpenKeys: [] });
- } else {
- this.setState({ sOpenKeys: this.inlineOpenKeys });
- this.inlineOpenKeys = [];
- }
- } else if (val) {
- // 缩起时,openKeys置为空的动画会闪动,react可以通过是否传递openKeys避免闪动,vue不是很方便动态传递openKeys
- this.switchingModeFromInline = true;
- }
- },
- restoreModeVerticalFromInline: function restoreModeVerticalFromInline() {
- if (this.switchingModeFromInline) {
- this.switchingModeFromInline = false;
- this.$forceUpdate();
- }
- },
- // Restore vertical mode when menu is collapsed responsively when mounted
- // https://github.com/ant-design/ant-design/issues/13104
- // TODO: not a perfect solution, looking a new way to avoid setting switchingModeFromInline in this situation
- handleMouseEnter: function handleMouseEnter(e) {
- this.restoreModeVerticalFromInline();
- this.$emit('mouseenter', e);
- },
- handleTransitionEnd: function handleTransitionEnd(e) {
- // when inlineCollapsed menu width animation finished
- // https://github.com/ant-design/ant-design/issues/12864
- var widthCollapsed = e.propertyName === 'width' && e.target === e.currentTarget;
- // Fix SVGElement e.target.className.indexOf is not a function
- // https://github.com/ant-design/ant-design/issues/15699
- var className = e.target.className;
- // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during an animation.
- var classNameValue = Object.prototype.toString.call(className) === '[object SVGAnimatedString]' ? className.animVal : className;
- // Fix for <Menu style={{ width: '100%' }} />, the width transition won't trigger when menu is collapsed
- // https://github.com/ant-design/ant-design-pro/issues/2783
- var iconScaled = e.propertyName === 'font-size' && classNameValue.indexOf('anticon') >= 0;
- if (widthCollapsed || iconScaled) {
- this.restoreModeVerticalFromInline();
- }
- },
- handleClick: function handleClick(e) {
- this.handleOpenChange([]);
- this.$emit('click', e);
- },
- handleSelect: function handleSelect(info) {
- this.$emit('select', info);
- this.$emit('selectChange', info.selectedKeys);
- },
- handleDeselect: function handleDeselect(info) {
- this.$emit('deselect', info);
- this.$emit('selectChange', info.selectedKeys);
- },
- handleOpenChange: function handleOpenChange(openKeys) {
- this.setOpenKeys(openKeys);
- this.$emit('openChange', openKeys);
- this.$emit('update:openKeys', openKeys);
- },
- setOpenKeys: function setOpenKeys(openKeys) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'openKeys')) {
- this.setState({ sOpenKeys: openKeys });
- }
- },
- getRealMenuMode: function getRealMenuMode() {
- var inlineCollapsed = this.getInlineCollapsed();
- if (this.switchingModeFromInline && inlineCollapsed) {
- return 'inline';
- }
- var mode = this.$props.mode;
- return inlineCollapsed ? 'vertical' : mode;
- },
- getInlineCollapsed: function getInlineCollapsed() {
- var inlineCollapsed = this.$props.inlineCollapsed;
- if (this.layoutSiderContext.sCollapsed !== undefined) {
- return this.layoutSiderContext.sCollapsed;
- }
- return inlineCollapsed;
- },
- getMenuOpenAnimation: function getMenuOpenAnimation(menuMode) {
- var _$props = this.$props,
- openAnimation = _$props.openAnimation,
- openTransitionName = _$props.openTransitionName;
- var menuOpenAnimation = openAnimation || openTransitionName;
- if (openAnimation === undefined && openTransitionName === undefined) {
- if (menuMode === 'horizontal') {
- menuOpenAnimation = 'slide-up';
- } else if (menuMode === 'inline') {
- menuOpenAnimation = { on: _util_openAnimation__WEBPACK_IMPORTED_MODULE_7__["default"] };
- } else {
- // When mode switch from inline
- // submenu should hide without animation
- if (this.switchingModeFromInline) {
- menuOpenAnimation = '';
- this.switchingModeFromInline = false;
- } else {
- menuOpenAnimation = 'zoom-big';
- }
- }
- }
- return menuOpenAnimation;
- }
- },
- render: function render() {
- var _menuClassName,
- _this = this;
- var h = arguments[0];
- var layoutSiderContext = this.layoutSiderContext,
- $slots = this.$slots;
- var collapsedWidth = layoutSiderContext.collapsedWidth;
- var getContextPopupContainer = this.configProvider.getPopupContainer;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls,
- theme = props.theme,
- getPopupContainer = props.getPopupContainer;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('menu', customizePrefixCls);
- var menuMode = this.getRealMenuMode();
- var menuOpenAnimation = this.getMenuOpenAnimation(menuMode);
- var menuClassName = (_menuClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_menuClassName, prefixCls + '-' + theme, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_menuClassName, prefixCls + '-inline-collapsed', this.getInlineCollapsed()), _menuClassName);
- var menuProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(props, ['inlineCollapsed']), {
- getPopupContainer: getPopupContainer || getContextPopupContainer,
- openKeys: this.sOpenKeys,
- mode: menuMode,
- prefixCls: prefixCls
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getListeners"])(this), {
- select: this.handleSelect,
- deselect: this.handleDeselect,
- openChange: this.handleOpenChange,
- mouseenter: this.handleMouseEnter
- }),
- nativeOn: {
- transitionend: this.handleTransitionEnd
- }
- };
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'selectedKeys')) {
- delete menuProps.props.selectedKeys;
- }
- if (menuMode !== 'inline') {
- // closing vertical popup submenu after click it
- menuProps.on.click = this.handleClick;
- menuProps.props.openTransitionName = menuOpenAnimation;
- } else {
- menuProps.on.click = function (e) {
- _this.$emit('click', e);
- };
- menuProps.props.openAnimation = menuOpenAnimation;
- }
- // https://github.com/ant-design/ant-design/issues/8587
- var hideMenu = this.getInlineCollapsed() && (collapsedWidth === 0 || collapsedWidth === '0' || collapsedWidth === '0px');
- if (hideMenu) {
- menuProps.props.openKeys = [];
- }
- return h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_4__["default"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([menuProps, { 'class': menuClassName }]),
- [$slots['default']]
- );
- }
- };
- /* istanbul ignore next */
- Menu.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_14__["default"]);
- Vue.component(Menu.name, Menu);
- Vue.component(Menu.Item.name, Menu.Item);
- Vue.component(Menu.SubMenu.name, Menu.SubMenu);
- Vue.component(Menu.Divider.name, Menu.Divider);
- Vue.component(Menu.ItemGroup.name, Menu.ItemGroup);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Menu);
- /***/ }),
- /***/ "./components/menu/style/index.js":
- /*!****************************************!*\
- !*** ./components/menu/style/index.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/menu/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
- // style dependencies
- // deps-lint-skip: layout
- /***/ }),
- /***/ "./components/menu/style/index.less":
- /*!******************************************!*\
- !*** ./components/menu/style/index.less ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/message/index.js":
- /*!*************************************!*\
- !*** ./components/message/index.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _vc_notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-notification */ "./components/vc-notification/index.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- var defaultDuration = 3;
- var defaultTop = void 0;
- var messageInstance = void 0;
- var key = 1;
- var prefixCls = 'ant-message';
- var transitionName = 'move-up';
- var getContainer = function getContainer() {
- return document.body;
- };
- var maxCount = void 0;
- function getMessageInstance(callback) {
- if (messageInstance) {
- callback(messageInstance);
- return;
- }
- _vc_notification__WEBPACK_IMPORTED_MODULE_1__["default"].newInstance({
- prefixCls: prefixCls,
- transitionName: transitionName,
- style: { top: defaultTop }, // 覆盖原来的样式
- getContainer: getContainer,
- maxCount: maxCount
- }, function (instance) {
- if (messageInstance) {
- callback(messageInstance);
- return;
- }
- messageInstance = instance;
- callback(instance);
- });
- }
- // type NoticeType = 'info' | 'success' | 'error' | 'warning' | 'loading';
- function notice(args) {
- var duration = args.duration !== undefined ? args.duration : defaultDuration;
- var iconType = {
- info: 'info-circle',
- success: 'check-circle',
- error: 'close-circle',
- warning: 'exclamation-circle',
- loading: 'loading'
- }[args.type];
- var target = args.key || key++;
- var closePromise = new Promise(function (resolve) {
- var callback = function callback() {
- if (typeof args.onClose === 'function') {
- args.onClose();
- }
- return resolve(true);
- };
- getMessageInstance(function (instance) {
- instance.notice({
- key: target,
- duration: duration,
- style: {},
- content: function content(h) {
- var iconNode = h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
- attrs: { type: iconType, theme: iconType === 'loading' ? 'outlined' : 'filled' }
- });
- var switchIconNode = iconType ? iconNode : '';
- return h(
- 'div',
- {
- 'class': prefixCls + '-custom-content' + (args.type ? ' ' + prefixCls + '-' + args.type : '')
- },
- [args.icon ? typeof args.icon === 'function' ? args.icon(h) : args.icon : switchIconNode, h('span', [typeof args.content === 'function' ? args.content(h) : args.content])]
- );
- },
- onClose: callback
- });
- });
- });
- var result = function result() {
- if (messageInstance) {
- messageInstance.removeNotice(target);
- }
- };
- result.then = function (filled, rejected) {
- return closePromise.then(filled, rejected);
- };
- result.promise = closePromise;
- return result;
- }
- // type ConfigContent = React.ReactNode | string;
- // type ConfigDuration = number | (() => void);
- // export type ConfigOnClose = () => void;
- function isArgsProps(content) {
- return Object.prototype.toString.call(content) === '[object Object]' && !!content.content;
- }
- // export interface ConfigOptions {
- // top?: number;
- // duration?: number;
- // prefixCls?: string;
- // getContainer?: () => HTMLElement;
- // transitionName?: string;
- // }
- var api = {
- open: notice,
- config: function config(options) {
- if (options.top !== undefined) {
- defaultTop = options.top;
- messageInstance = null; // delete messageInstance for new defaultTop
- }
- if (options.duration !== undefined) {
- defaultDuration = options.duration;
- }
- if (options.prefixCls !== undefined) {
- prefixCls = options.prefixCls;
- }
- if (options.getContainer !== undefined) {
- getContainer = options.getContainer;
- }
- if (options.transitionName !== undefined) {
- transitionName = options.transitionName;
- messageInstance = null; // delete messageInstance for new transitionName
- }
- if (options.maxCount !== undefined) {
- maxCount = options.maxCount;
- messageInstance = null;
- }
- },
- destroy: function destroy() {
- if (messageInstance) {
- messageInstance.destroy();
- messageInstance = null;
- }
- }
- };
- ['success', 'info', 'warning', 'error', 'loading'].forEach(function (type) {
- api[type] = function (content, duration, onClose) {
- if (isArgsProps(content)) {
- return api.open(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, content, { type: type }));
- }
- if (typeof duration === 'function') {
- onClose = duration;
- duration = undefined;
- }
- return api.open({ content: content, duration: duration, type: type, onClose: onClose });
- };
- });
- api.warn = api.warning;
- /* harmony default export */ __webpack_exports__["default"] = (api);
- /***/ }),
- /***/ "./components/message/style/index.js":
- /*!*******************************************!*\
- !*** ./components/message/style/index.js ***!
- \*******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/message/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/message/style/index.less":
- /*!*********************************************!*\
- !*** ./components/message/style/index.less ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/modal/ActionButton.jsx":
- /*!*******************************************!*\
- !*** ./components/modal/ActionButton.jsx ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
- var ButtonType = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_4__["default"])().type;
- var ActionButtonProps = {
- type: ButtonType,
- actionFn: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- closeModal: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- buttonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: ActionButtonProps,
- data: function data() {
- return {
- loading: false
- };
- },
- mounted: function mounted() {
- var _this = this;
- if (this.autoFocus) {
- this.timeoutId = setTimeout(function () {
- return _this.$el.focus();
- });
- }
- },
- beforeDestroy: function beforeDestroy() {
- clearTimeout(this.timeoutId);
- },
- methods: {
- onClick: function onClick() {
- var _this2 = this;
- var actionFn = this.actionFn,
- closeModal = this.closeModal;
- if (actionFn) {
- var ret = void 0;
- if (actionFn.length) {
- ret = actionFn(closeModal);
- } else {
- ret = actionFn();
- if (!ret) {
- closeModal();
- }
- }
- if (ret && ret.then) {
- this.setState({ loading: true });
- ret.then(function () {
- // It's unnecessary to set loading=false, for the Modal will be unmounted after close.
- // this.setState({ loading: false });
- closeModal.apply(undefined, arguments);
- }, function (e) {
- // Emit error when catch promise reject
- // eslint-disable-next-line no-console
- console.error(e);
- // See: https://github.com/ant-design/ant-design/issues/6183
- _this2.setState({ loading: false });
- });
- }
- } else {
- closeModal();
- }
- }
- },
- render: function render() {
- var h = arguments[0];
- var type = this.type,
- $slots = this.$slots,
- loading = this.loading,
- buttonProps = this.buttonProps;
- return h(
- _button__WEBPACK_IMPORTED_MODULE_2__["default"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: { type: type, loading: loading },
- on: {
- 'click': this.onClick
- }
- }, buttonProps]),
- [$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/modal/ConfirmDialog.jsx":
- /*!********************************************!*\
- !*** ./components/modal/ConfirmDialog.jsx ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Modal */ "./components/modal/Modal.jsx");
- /* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ActionButton */ "./components/modal/ActionButton.jsx");
- /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./locale */ "./components/modal/locale.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- functional: true,
- render: function render(h, context) {
- var props = context.props;
- var onCancel = props.onCancel,
- onOk = props.onOk,
- close = props.close,
- zIndex = props.zIndex,
- afterClose = props.afterClose,
- visible = props.visible,
- keyboard = props.keyboard,
- centered = props.centered,
- getContainer = props.getContainer,
- maskStyle = props.maskStyle,
- okButtonProps = props.okButtonProps,
- cancelButtonProps = props.cancelButtonProps,
- _props$iconType = props.iconType,
- iconType = _props$iconType === undefined ? 'question-circle' : _props$iconType,
- _props$closable = props.closable,
- closable = _props$closable === undefined ? false : _props$closable;
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(!('iconType' in props), 'Modal', 'The property \'iconType\' is deprecated. Use the property \'icon\' instead.');
- var icon = props.icon ? props.icon : iconType;
- var okType = props.okType || 'primary';
- var prefixCls = props.prefixCls || 'ant-modal';
- var contentPrefixCls = prefixCls + '-confirm';
- // 默认为 true,保持向下兼容
- var okCancel = 'okCancel' in props ? props.okCancel : true;
- var width = props.width || 416;
- var style = props.style || {};
- var mask = props.mask === undefined ? true : props.mask;
- // 默认为 false,保持旧版默认行为
- var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
- var runtimeLocale = Object(_locale__WEBPACK_IMPORTED_MODULE_5__["getConfirmLocale"])();
- var okText = props.okText || (okCancel ? runtimeLocale.okText : runtimeLocale.justOkText);
- var cancelText = props.cancelText || runtimeLocale.cancelText;
- var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
- var transitionName = props.transitionName || 'zoom';
- var maskTransitionName = props.maskTransitionName || 'fade';
- var classString = classnames__WEBPACK_IMPORTED_MODULE_1___default()(contentPrefixCls, contentPrefixCls + '-' + props.type, prefixCls + '-' + props.type, props['class']);
- var cancelButton = okCancel && h(
- _ActionButton__WEBPACK_IMPORTED_MODULE_4__["default"],
- {
- attrs: {
- actionFn: onCancel,
- closeModal: close,
- autoFocus: autoFocusButton === 'cancel',
- buttonProps: cancelButtonProps
- }
- },
- [cancelText]
- );
- var iconNode = typeof icon === 'string' ? h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
- attrs: { type: icon }
- }) : icon(h);
- return h(
- _Modal__WEBPACK_IMPORTED_MODULE_3__["default"],
- {
- attrs: {
- prefixCls: prefixCls,
- wrapClassName: classnames__WEBPACK_IMPORTED_MODULE_1___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, contentPrefixCls + '-centered', !!centered)),
- visible: visible,
- closable: closable,
- title: '',
- transitionName: transitionName,
- footer: '',
- maskTransitionName: maskTransitionName,
- mask: mask,
- maskClosable: maskClosable,
- maskStyle: maskStyle,
- width: width,
- zIndex: zIndex,
- afterClose: afterClose,
- keyboard: keyboard,
- centered: centered,
- getContainer: getContainer
- },
- 'class': classString, on: {
- 'cancel': function cancel(e) {
- return close({ triggerCancel: true }, e);
- }
- },
- style: style },
- [h(
- 'div',
- { 'class': contentPrefixCls + '-body-wrapper' },
- [h(
- 'div',
- { 'class': contentPrefixCls + '-body' },
- [iconNode, props.title === undefined ? null : h(
- 'span',
- { 'class': contentPrefixCls + '-title' },
- [typeof props.title === 'function' ? props.title(h) : props.title]
- ), h(
- 'div',
- { 'class': contentPrefixCls + '-content' },
- [typeof props.content === 'function' ? props.content(h) : props.content]
- )]
- ), h(
- 'div',
- { 'class': contentPrefixCls + '-btns' },
- [cancelButton, h(
- _ActionButton__WEBPACK_IMPORTED_MODULE_4__["default"],
- {
- attrs: {
- type: okType,
- actionFn: onOk,
- closeModal: close,
- autoFocus: autoFocusButton === 'ok',
- buttonProps: okButtonProps
- }
- },
- [okText]
- )]
- )]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/modal/Modal.jsx":
- /*!************************************!*\
- !*** ./components/modal/Modal.jsx ***!
- \************************************/
- /*! exports provided: destroyFns, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "destroyFns", function() { return destroyFns; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _vc_dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-dialog */ "./components/vc-dialog/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
- /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./locale */ "./components/modal/locale.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
- /* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var ButtonType = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_9__["default"])().type;
- var mousePosition = null;
- // ref: https://github.com/ant-design/ant-design/issues/15795
- var getClickPosition = function getClickPosition(e) {
- mousePosition = {
- x: e.pageX,
- y: e.pageY
- };
- // 100ms 内发生过点击事件,则从点击位置动画展示
- // 否则直接 zoom 展示
- // 这样可以兼容非点击方式展开
- setTimeout(function () {
- return mousePosition = null;
- }, 100);
- };
- // 只有点击事件支持从鼠标位置动画展开
- if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
- Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(document.documentElement, 'click', getClickPosition, true);
- }
- function noop() {}
- var modalProps = function modalProps() {
- var defaultProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var props = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- /** 对话框是否可见*/
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- /** 确定按钮 loading*/
- confirmLoading: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- /** 标题*/
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- /** 是否显示右上角的关闭按钮*/
- closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- /** 点击确定回调*/
- // onOk: (e: React.MouseEvent<any>) => void,
- /** 点击模态框右上角叉、取消按钮、Props.maskClosable 值为 true 时的遮罩层或键盘按下 Esc 时的回调*/
- // onCancel: (e: React.MouseEvent<any>) => void,
- afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
- /** 垂直居中 */
- centered: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- /** 宽度*/
- width: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
- /** 底部内容*/
- footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- /** 确认按钮文字*/
- okText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- /** 确认按钮类型*/
- okType: ButtonType,
- /** 取消按钮文字*/
- cancelText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- /** 点击蒙层是否允许关闭*/
- maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- /** 强制渲染 Modal*/
- forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- okButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- cancelButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- destroyOnClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- wrapClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- wrapProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- focusTriggerAfterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- dialogStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
- return {};
- })
- };
- return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["initDefaultProps"])(props, defaultProps);
- };
- var destroyFns = [];
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AModal',
- inheritAttrs: false,
- model: {
- prop: 'visible',
- event: 'change'
- },
- props: modalProps({
- width: 520,
- transitionName: 'zoom',
- maskTransitionName: 'fade',
- confirmLoading: false,
- visible: false,
- okType: 'primary'
- }),
- data: function data() {
- return {
- sVisible: !!this.visible
- };
- },
- watch: {
- visible: function visible(val) {
- this.sVisible = val;
- }
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
- } }
- },
- // static info: ModalFunc;
- // static success: ModalFunc;
- // static error: ModalFunc;
- // static warn: ModalFunc;
- // static warning: ModalFunc;
- // static confirm: ModalFunc;
- methods: {
- handleCancel: function handleCancel(e) {
- this.$emit('cancel', e);
- this.$emit('change', false);
- },
- handleOk: function handleOk(e) {
- this.$emit('ok', e);
- },
- renderFooter: function renderFooter(locale) {
- var h = this.$createElement;
- var okType = this.okType,
- confirmLoading = this.confirmLoading;
- var cancelBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["mergeProps"])({ on: { click: this.handleCancel } }, this.cancelButtonProps || {});
- var okBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["mergeProps"])({
- on: { click: this.handleOk },
- props: {
- type: okType,
- loading: confirmLoading
- }
- }, this.okButtonProps || {});
- return h('div', [h(
- _button__WEBPACK_IMPORTED_MODULE_8__["default"],
- cancelBtnProps,
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'cancelText') || locale.cancelText]
- ), h(
- _button__WEBPACK_IMPORTED_MODULE_8__["default"],
- okBtnProps,
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'okText') || locale.okText]
- )]);
- }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- visible = this.sVisible,
- wrapClassName = this.wrapClassName,
- centered = this.centered,
- getContainer = this.getContainer,
- $slots = this.$slots,
- $scopedSlots = this.$scopedSlots,
- $attrs = this.$attrs;
- var children = $scopedSlots['default'] ? $scopedSlots['default']() : $slots['default'];
- var _configProvider = this.configProvider,
- getPrefixCls = _configProvider.getPrefixCls,
- getContextPopupContainer = _configProvider.getPopupContainer;
- var prefixCls = getPrefixCls('modal', customizePrefixCls);
- var defaultFooter = h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: {
- componentName: 'Modal',
- defaultLocale: Object(_locale__WEBPACK_IMPORTED_MODULE_6__["getConfirmLocale"])()
- },
- scopedSlots: { 'default': this.renderFooter }
- });
- var closeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'closeIcon');
- var closeIconToRender = h(
- 'span',
- { 'class': prefixCls + '-close-x' },
- [closeIcon || h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], { 'class': prefixCls + '-close-icon', attrs: { type: 'close' }
- })]
- );
- var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'footer');
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'title');
- var dialogProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, {
- getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
- prefixCls: prefixCls,
- wrapClassName: classnames__WEBPACK_IMPORTED_MODULE_2___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-centered', !!centered), wrapClassName),
- title: title,
- footer: footer === undefined ? defaultFooter : footer,
- visible: visible,
- mousePosition: mousePosition,
- closeIcon: closeIconToRender
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this), {
- close: this.handleCancel
- }),
- 'class': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getClass"])(this),
- style: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getStyle"])(this),
- attrs: $attrs
- };
- return h(
- _vc_dialog__WEBPACK_IMPORTED_MODULE_3__["default"],
- dialogProps,
- [children]
- );
- }
- });
- /***/ }),
- /***/ "./components/modal/confirm.js":
- /*!*************************************!*\
- !*** ./components/modal/confirm.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return confirm; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _ConfirmDialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ConfirmDialog */ "./components/modal/ConfirmDialog.jsx");
- /* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Modal */ "./components/modal/Modal.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- function confirm(config) {
- var div = document.createElement('div');
- var el = document.createElement('div');
- div.appendChild(el);
- document.body.appendChild(div);
- var currentConfig = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(config, ['parentContext']), { close: close, visible: true });
- var confirmDialogInstance = null;
- var confirmDialogProps = { props: {} };
- function close() {
- destroy.apply(undefined, arguments);
- }
- function update(newConfig) {
- currentConfig = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, currentConfig, newConfig);
- confirmDialogProps.props = currentConfig;
- }
- function destroy() {
- if (confirmDialogInstance && div.parentNode) {
- confirmDialogInstance.$destroy();
- confirmDialogInstance = null;
- div.parentNode.removeChild(div);
- }
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- var triggerCancel = args.some(function (param) {
- return param && param.triggerCancel;
- });
- if (config.onCancel && triggerCancel) {
- config.onCancel.apply(config, args);
- }
- for (var i = 0; i < _Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"].length; i++) {
- var fn = _Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"][i];
- if (fn === close) {
- _Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"].splice(i, 1);
- break;
- }
- }
- }
- function render(props) {
- confirmDialogProps.props = props;
- var V = _base__WEBPACK_IMPORTED_MODULE_4__["default"].Vue || vue__WEBPACK_IMPORTED_MODULE_1___default.a;
- return new V({
- el: el,
- parent: config.parentContext,
- data: function data() {
- return { confirmDialogProps: confirmDialogProps };
- },
- render: function render() {
- var h = arguments[0];
- // 先解构,避免报错,原因不详
- var cdProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.confirmDialogProps);
- return h(_ConfirmDialog__WEBPACK_IMPORTED_MODULE_2__["default"], cdProps);
- }
- });
- }
- confirmDialogInstance = render(currentConfig);
- _Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"].push(close);
- return {
- destroy: close,
- update: update
- };
- }
- /***/ }),
- /***/ "./components/modal/index.js":
- /*!***********************************!*\
- !*** ./components/modal/index.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Modal */ "./components/modal/Modal.jsx");
- /* harmony import */ var _confirm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./confirm */ "./components/modal/confirm.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- // export { ActionButtonProps } from './ActionButton'
- // export { ModalProps, ModalFuncProps } from './Modal'
- var info = function info(props) {
- var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- type: 'info',
- icon: function icon(h) {
- return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: { type: 'info-circle' }
- });
- },
- okCancel: false
- }, props);
- return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
- };
- var success = function success(props) {
- var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- type: 'success',
- icon: function icon(h) {
- return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: { type: 'check-circle' }
- });
- },
- okCancel: false
- }, props);
- return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
- };
- var error = function error(props) {
- var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- type: 'error',
- icon: function icon(h) {
- return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: { type: 'close-circle' }
- });
- },
- okCancel: false
- }, props);
- return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
- };
- var warning = function warning(props) {
- var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- type: 'warning',
- icon: function icon(h) {
- return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: { type: 'exclamation-circle' }
- });
- },
- okCancel: false
- }, props);
- return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
- };
- var warn = warning;
- var confirm = function confirmFn(props) {
- var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- type: 'confirm',
- okCancel: true
- }, props);
- return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
- };
- _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].info = info;
- _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].success = success;
- _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].error = error;
- _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].warning = warning;
- _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].warn = warn;
- _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].confirm = confirm;
- _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].destroyAll = function destroyAllFn() {
- while (_Modal__WEBPACK_IMPORTED_MODULE_1__["destroyFns"].length) {
- var close = _Modal__WEBPACK_IMPORTED_MODULE_1__["destroyFns"].pop();
- if (close) {
- close();
- }
- }
- };
- /* istanbul ignore next */
- _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
- Vue.component(_Modal__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Modal__WEBPACK_IMPORTED_MODULE_1__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Modal__WEBPACK_IMPORTED_MODULE_1__["default"]);
- /***/ }),
- /***/ "./components/modal/locale.js":
- /*!************************************!*\
- !*** ./components/modal/locale.js ***!
- \************************************/
- /*! exports provided: changeConfirmLocale, getConfirmLocale */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "changeConfirmLocale", function() { return changeConfirmLocale; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getConfirmLocale", function() { return getConfirmLocale; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _locale_default__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../locale/default */ "./components/locale/default.js");
- // export interface ModalLocale {
- // okText: string;
- // cancelText: string;
- // justOkText: string;
- // }
- var runtimeLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _locale_default__WEBPACK_IMPORTED_MODULE_1__["default"].Modal);
- function changeConfirmLocale(newLocale) {
- if (newLocale) {
- runtimeLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, runtimeLocale, newLocale);
- } else {
- runtimeLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _locale_default__WEBPACK_IMPORTED_MODULE_1__["default"].Modal);
- }
- }
- function getConfirmLocale() {
- return runtimeLocale;
- }
- /***/ }),
- /***/ "./components/modal/style/index.js":
- /*!*****************************************!*\
- !*** ./components/modal/style/index.js ***!
- \*****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/modal/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/modal/style/index.less":
- /*!*******************************************!*\
- !*** ./components/modal/style/index.less ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/notification/index.js":
- /*!******************************************!*\
- !*** ./components/notification/index.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _vc_notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-notification */ "./components/vc-notification/index.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- var notificationInstance = {};
- var defaultDuration = 4.5;
- var defaultTop = '24px';
- var defaultBottom = '24px';
- var defaultPlacement = 'topRight';
- var defaultGetContainer = function defaultGetContainer() {
- return document.body;
- };
- var defaultCloseIcon = null;
- function setNotificationConfig(options) {
- var duration = options.duration,
- placement = options.placement,
- bottom = options.bottom,
- top = options.top,
- getContainer = options.getContainer,
- closeIcon = options.closeIcon;
- if (duration !== undefined) {
- defaultDuration = duration;
- }
- if (placement !== undefined) {
- defaultPlacement = placement;
- }
- if (bottom !== undefined) {
- defaultBottom = typeof bottom === 'number' ? bottom + 'px' : bottom;
- }
- if (top !== undefined) {
- defaultTop = typeof top === 'number' ? top + 'px' : top;
- }
- if (getContainer !== undefined) {
- defaultGetContainer = getContainer;
- }
- if (closeIcon !== undefined) {
- defaultCloseIcon = closeIcon;
- }
- }
- function getPlacementStyle(placement) {
- var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTop;
- var bottom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultBottom;
- var style = void 0;
- switch (placement) {
- case 'topLeft':
- style = {
- left: 0,
- top: top,
- bottom: 'auto'
- };
- break;
- case 'topRight':
- style = {
- right: 0,
- top: top,
- bottom: 'auto'
- };
- break;
- case 'bottomLeft':
- style = {
- left: 0,
- top: 'auto',
- bottom: bottom
- };
- break;
- default:
- style = {
- right: 0,
- top: 'auto',
- bottom: bottom
- };
- break;
- }
- return style;
- }
- function getNotificationInstance(_ref, callback) {
- var prefixCls = _ref.prefixCls,
- _ref$placement = _ref.placement,
- placement = _ref$placement === undefined ? defaultPlacement : _ref$placement,
- _ref$getContainer = _ref.getContainer,
- getContainer = _ref$getContainer === undefined ? defaultGetContainer : _ref$getContainer,
- top = _ref.top,
- bottom = _ref.bottom,
- _ref$closeIcon = _ref.closeIcon,
- _closeIcon = _ref$closeIcon === undefined ? defaultCloseIcon : _ref$closeIcon;
- var cacheKey = prefixCls + '-' + placement;
- if (notificationInstance[cacheKey]) {
- callback(notificationInstance[cacheKey]);
- return;
- }
- _vc_notification__WEBPACK_IMPORTED_MODULE_1__["default"].newInstance({
- prefixCls: prefixCls,
- 'class': prefixCls + '-' + placement,
- style: getPlacementStyle(placement, top, bottom),
- getContainer: getContainer,
- closeIcon: function closeIcon(h) {
- var icon = typeof _closeIcon === 'function' ? _closeIcon(h) : _closeIcon;
- var closeIconToRender = h(
- 'span',
- { 'class': prefixCls + '-close-x' },
- [icon || h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], { 'class': prefixCls + '-close-icon', attrs: { type: 'close' }
- })]
- );
- return closeIconToRender;
- }
- }, function (notification) {
- notificationInstance[cacheKey] = notification;
- callback(notification);
- });
- }
- var typeToIcon = {
- success: 'check-circle-o',
- info: 'info-circle-o',
- error: 'close-circle-o',
- warning: 'exclamation-circle-o'
- };
- function notice(args) {
- var icon = args.icon,
- type = args.type,
- description = args.description,
- message = args.message,
- btn = args.btn;
- var outerPrefixCls = args.prefixCls || 'ant-notification';
- var prefixCls = outerPrefixCls + '-notice';
- var duration = args.duration === undefined ? defaultDuration : args.duration;
- var iconNode = null;
- if (icon) {
- iconNode = function iconNode(h) {
- return h(
- 'span',
- { 'class': prefixCls + '-icon' },
- [typeof icon === 'function' ? icon(h) : icon]
- );
- };
- } else if (type) {
- var iconType = typeToIcon[type];
- iconNode = function iconNode(h) {
- return h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], { 'class': prefixCls + '-icon ' + prefixCls + '-icon-' + type, attrs: { type: iconType }
- });
- }; // eslint-disable-line
- }
- var placement = args.placement,
- top = args.top,
- bottom = args.bottom,
- getContainer = args.getContainer,
- closeIcon = args.closeIcon;
- getNotificationInstance({
- prefixCls: outerPrefixCls,
- placement: placement,
- top: top,
- bottom: bottom,
- getContainer: getContainer,
- closeIcon: closeIcon
- }, function (notification) {
- notification.notice({
- content: function content(h) {
- return h(
- 'div',
- { 'class': iconNode ? prefixCls + '-with-icon' : '' },
- [iconNode && iconNode(h), h(
- 'div',
- { 'class': prefixCls + '-message' },
- [!description && iconNode ? h('span', { 'class': prefixCls + '-message-single-line-auto-margin' }) : null, typeof message === 'function' ? message(h) : message]
- ), h(
- 'div',
- { 'class': prefixCls + '-description' },
- [typeof description === 'function' ? description(h) : description]
- ), btn ? h(
- 'span',
- { 'class': prefixCls + '-btn' },
- [typeof btn === 'function' ? btn(h) : btn]
- ) : null]
- );
- },
- duration: duration,
- closable: true,
- onClose: args.onClose,
- onClick: args.onClick,
- key: args.key,
- style: args.style || {},
- 'class': args['class']
- });
- });
- }
- var api = {
- open: notice,
- close: function close(key) {
- Object.keys(notificationInstance).forEach(function (cacheKey) {
- return notificationInstance[cacheKey].removeNotice(key);
- });
- },
- config: setNotificationConfig,
- destroy: function destroy() {
- Object.keys(notificationInstance).forEach(function (cacheKey) {
- notificationInstance[cacheKey].destroy();
- delete notificationInstance[cacheKey];
- });
- }
- };
- ['success', 'info', 'warning', 'error'].forEach(function (type) {
- api[type] = function (args) {
- return api.open(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, args, {
- type: type
- }));
- };
- });
- api.warn = api.warning;
- /* harmony default export */ __webpack_exports__["default"] = (api);
- /***/ }),
- /***/ "./components/notification/style/index.js":
- /*!************************************************!*\
- !*** ./components/notification/style/index.js ***!
- \************************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/notification/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/notification/style/index.less":
- /*!**************************************************!*\
- !*** ./components/notification/style/index.less ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/page-header/index.jsx":
- /*!******************************************!*\
- !*** ./components/page-header/index.jsx ***!
- \******************************************/
- /*! exports provided: PageHeaderProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageHeaderProps", function() { return PageHeaderProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _breadcrumb__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../breadcrumb */ "./components/breadcrumb/index.js");
- /* harmony import */ var _avatar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../avatar */ "./components/avatar/index.js");
- /* harmony import */ var _util_transButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/transButton */ "./components/_util/transButton.jsx");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var PageHeaderProps = {
- backIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- subTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- breadcrumb: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- tags: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- ghost: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- };
- var renderBack = function renderBack(instance, prefixCls, backIcon, onBack) {
- // eslint-disable-next-line no-unused-vars
- var h = instance.$createElement;
- if (!backIcon || !onBack) {
- return null;
- }
- return h(
- _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__["default"],
- {
- attrs: { componentName: 'PageHeader' }
- },
- [function (_ref) {
- var back = _ref.back;
- return h(
- 'div',
- { 'class': prefixCls + '-back' },
- [h(
- _util_transButton__WEBPACK_IMPORTED_MODULE_7__["default"],
- {
- on: {
- 'click': function click(e) {
- instance.$emit('back', e);
- }
- },
- 'class': prefixCls + '-back-button',
- attrs: { 'aria-label': back
- }
- },
- [backIcon]
- )]
- );
- }]
- );
- };
- var renderBreadcrumb = function renderBreadcrumb(h, breadcrumb) {
- return h(_breadcrumb__WEBPACK_IMPORTED_MODULE_5__["default"], breadcrumb);
- };
- var renderTitle = function renderTitle(h, prefixCls, instance) {
- var avatar = instance.avatar;
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'title');
- var subTitle = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'subTitle');
- var tags = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'tags');
- var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'extra');
- var backIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'backIcon') !== undefined ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'backIcon') : h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: { type: 'arrow-left' }
- });
- var onBack = instance.$listeners.back;
- var headingPrefixCls = prefixCls + '-heading';
- if (title || subTitle || tags || extra) {
- var backIconDom = renderBack(instance, prefixCls, backIcon, onBack);
- return h(
- 'div',
- { 'class': headingPrefixCls },
- [backIconDom, avatar && h(_avatar__WEBPACK_IMPORTED_MODULE_6__["default"], avatar), title && h(
- 'span',
- { 'class': headingPrefixCls + '-title' },
- [title]
- ), subTitle && h(
- 'span',
- { 'class': headingPrefixCls + '-sub-title' },
- [subTitle]
- ), tags && h(
- 'span',
- { 'class': headingPrefixCls + '-tags' },
- [tags]
- ), extra && h(
- 'span',
- { 'class': headingPrefixCls + '-extra' },
- [extra]
- )]
- );
- }
- return null;
- };
- var renderFooter = function renderFooter(h, prefixCls, footer) {
- if (footer) {
- return h(
- 'div',
- { 'class': prefixCls + '-footer' },
- [footer]
- );
- }
- return null;
- };
- var renderChildren = function renderChildren(h, prefixCls, children) {
- return h(
- 'div',
- { 'class': prefixCls + '-content' },
- [children]
- );
- };
- var PageHeader = {
- name: 'APageHeader',
- props: PageHeaderProps,
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
- } }
- },
- render: function render(h) {
- var _configProvider = this.configProvider,
- getPrefixCls = _configProvider.getPrefixCls,
- pageHeader = _configProvider.pageHeader;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls,
- breadcrumb = props.breadcrumb;
- var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'footer');
- var children = this.$slots['default'];
- var ghost = true;
- // Use `ghost` from `props` or from `ConfigProvider` instead.
- if ('ghost' in props) {
- ghost = props.ghost;
- } else if (pageHeader && 'ghost' in pageHeader) {
- ghost = pageHeader.ghost;
- }
- var prefixCls = getPrefixCls('page-header', customizePrefixCls);
- var breadcrumbDom = breadcrumb && breadcrumb.props && breadcrumb.props.routes ? renderBreadcrumb(h, breadcrumb) : null;
- var className = [prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({
- 'has-breadcrumb': breadcrumbDom,
- 'has-footer': footer
- }, prefixCls + '-ghost', ghost)];
- return h(
- 'div',
- { 'class': className },
- [breadcrumbDom, renderTitle(h, prefixCls, this), children && renderChildren(h, prefixCls, children), renderFooter(h, prefixCls, footer)]
- );
- }
- };
- /* istanbul ignore next */
- PageHeader.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
- Vue.component(PageHeader.name, PageHeader);
- };
- /* harmony default export */ __webpack_exports__["default"] = (PageHeader);
- /***/ }),
- /***/ "./components/page-header/style/index.js":
- /*!***********************************************!*\
- !*** ./components/page-header/style/index.js ***!
- \***********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/page-header/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _breadcrumb_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../breadcrumb/style */ "./components/breadcrumb/style/index.js");
- /* harmony import */ var _avatar_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../avatar/style */ "./components/avatar/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/page-header/style/index.less":
- /*!*************************************************!*\
- !*** ./components/page-header/style/index.less ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/pagination/MiniSelect.jsx":
- /*!**********************************************!*\
- !*** ./components/pagination/MiniSelect.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _select__WEBPACK_IMPORTED_MODULE_1__["SelectProps"]),
- Option: _select__WEBPACK_IMPORTED_MODULE_1__["default"].Option,
- render: function render() {
- var h = arguments[0];
- var selectOptionsProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
- var selelctProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, selectOptionsProps, {
- size: 'small'
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this)
- };
- return h(
- _select__WEBPACK_IMPORTED_MODULE_1__["default"],
- selelctProps,
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["filterEmpty"])(this.$slots['default'])]
- );
- }
- });
- /***/ }),
- /***/ "./components/pagination/Pagination.jsx":
- /*!**********************************************!*\
- !*** ./components/pagination/Pagination.jsx ***!
- \**********************************************/
- /*! exports provided: PaginationProps, PaginationConfig, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationProps", function() { return PaginationProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationConfig", function() { return PaginationConfig; });
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
- /* harmony import */ var _MiniSelect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MiniSelect */ "./components/pagination/MiniSelect.jsx");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _vc_pagination__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-pagination */ "./components/vc-pagination/index.js");
- /* harmony import */ var _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-pagination/locale/en_US */ "./components/vc-pagination/locale/en_US.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var PaginationProps = function PaginationProps() {
- return {
- total: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- defaultCurrent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- current: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- defaultPageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- pageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- hideOnSinglePage: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- showSizeChanger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- pageSizeOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string])),
- buildOptionText: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- showSizeChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- showQuickJumper: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]),
- showTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- simple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- selectPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- itemRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- role: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- showLessItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
- };
- };
- var PaginationConfig = function PaginationConfig() {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, PaginationProps(), {
- position: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['top', 'bottom', 'both'])
- });
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'APagination',
- model: {
- prop: 'current',
- event: 'change.current'
- },
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, PaginationProps()),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
- } }
- },
- methods: {
- getIconsProps: function getIconsProps(prefixCls) {
- var h = this.$createElement;
- var prevIcon = h(
- 'a',
- { 'class': prefixCls + '-item-link' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
- attrs: { type: 'left' }
- })]
- );
- var nextIcon = h(
- 'a',
- { 'class': prefixCls + '-item-link' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
- attrs: { type: 'right' }
- })]
- );
- var jumpPrevIcon = h(
- 'a',
- { 'class': prefixCls + '-item-link' },
- [h(
- 'div',
- { 'class': prefixCls + '-item-container' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], { 'class': prefixCls + '-item-link-icon', attrs: { type: 'double-left' }
- }), h(
- 'span',
- { 'class': prefixCls + '-item-ellipsis' },
- ['\u2022\u2022\u2022']
- )]
- )]
- );
- var jumpNextIcon = h(
- 'a',
- { 'class': prefixCls + '-item-link' },
- [h(
- 'div',
- { 'class': prefixCls + '-item-container' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], { 'class': prefixCls + '-item-link-icon', attrs: { type: 'double-right' }
- }), h(
- 'span',
- { 'class': prefixCls + '-item-ellipsis' },
- ['\u2022\u2022\u2022']
- )]
- )]
- );
- return {
- prevIcon: prevIcon,
- nextIcon: nextIcon,
- jumpPrevIcon: jumpPrevIcon,
- jumpNextIcon: jumpNextIcon
- };
- },
- renderPagination: function renderPagination(contextLocale) {
- var h = this.$createElement;
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- customizeSelectPrefixCls = _getOptionProps.selectPrefixCls,
- buildOptionText = _getOptionProps.buildOptionText,
- size = _getOptionProps.size,
- customLocale = _getOptionProps.locale,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls', 'selectPrefixCls', 'buildOptionText', 'size', 'locale']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('pagination', customizePrefixCls);
- var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
- var isSmall = size === 'small';
- var paginationProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- prefixCls: prefixCls,
- selectPrefixCls: selectPrefixCls
- }, restProps, this.getIconsProps(prefixCls), {
- selectComponentClass: isSmall ? _MiniSelect__WEBPACK_IMPORTED_MODULE_4__["default"] : _select__WEBPACK_IMPORTED_MODULE_3__["default"],
- locale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, contextLocale, customLocale),
- buildOptionText: buildOptionText || this.$scopedSlots.buildOptionText
- }),
- 'class': {
- mini: isSmall
- },
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
- };
- return h(_vc_pagination__WEBPACK_IMPORTED_MODULE_7__["default"], paginationProps);
- }
- },
- render: function render() {
- var h = arguments[0];
- return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_5__["default"], {
- attrs: {
- componentName: 'Pagination',
- defaultLocale: _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_8__["default"]
- },
- scopedSlots: { 'default': this.renderPagination }
- });
- }
- });
- /***/ }),
- /***/ "./components/pagination/index.js":
- /*!****************************************!*\
- !*** ./components/pagination/index.js ***!
- \****************************************/
- /*! exports provided: PaginationProps, PaginationConfig, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Pagination */ "./components/pagination/Pagination.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationProps", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_0__["PaginationProps"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationConfig", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_0__["PaginationConfig"]; });
- /* istanbul ignore next */
- _Pagination__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_Pagination__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/pagination/style/index.js":
- /*!**********************************************!*\
- !*** ./components/pagination/style/index.js ***!
- \**********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/pagination/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/pagination/style/index.less":
- /*!************************************************!*\
- !*** ./components/pagination/style/index.less ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/popconfirm/index.jsx":
- /*!*****************************************!*\
- !*** ./components/popconfirm/index.jsx ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
- /* harmony import */ var _tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tooltip/abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var tooltipProps = Object(_tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_3__["default"])();
- var btnProps = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_7__["default"])();
- var Popconfirm = {
- name: 'APopconfirm',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, tooltipProps, {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('zoom-big'),
- content: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- trigger: tooltipProps.trigger.def('click'),
- okType: btnProps.type.def('primary'),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
- okText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- cancelText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- okButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- cancelButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object
- }),
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
- model: {
- prop: 'visible',
- event: 'visibleChange'
- },
- watch: {
- visible: function visible(val) {
- this.sVisible = val;
- }
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var state = { sVisible: false };
- if ('visible' in props) {
- state.sVisible = props.visible;
- }
- if ('defaultVisible' in props) {
- state.sVisible = props.defaultVisible;
- }
- return state;
- },
- methods: {
- onConfirm: function onConfirm(e) {
- this.setVisible(false, e);
- this.$emit('confirm', e);
- },
- onCancel: function onCancel(e) {
- this.setVisible(false, e);
- this.$emit('cancel', e);
- },
- onVisibleChange: function onVisibleChange(sVisible) {
- var disabled = this.$props.disabled;
- if (disabled) {
- return;
- }
- this.setVisible(sVisible);
- },
- setVisible: function setVisible(sVisible, e) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
- this.setState({ sVisible: sVisible });
- }
- this.$emit('visibleChange', sVisible, e);
- },
- getPopupDomNode: function getPopupDomNode() {
- return this.$refs.tooltip.getPopupDomNode();
- },
- renderOverlay: function renderOverlay(prefixCls, popconfirmLocale) {
- var h = this.$createElement;
- var okType = this.okType,
- okButtonProps = this.okButtonProps,
- cancelButtonProps = this.cancelButtonProps;
- var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'icon') || h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: { type: 'exclamation-circle', theme: 'filled' }
- });
- var cancelBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["mergeProps"])({
- props: {
- size: 'small'
- },
- on: {
- click: this.onCancel
- }
- }, cancelButtonProps);
- var okBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["mergeProps"])({
- props: {
- type: okType,
- size: 'small'
- },
- on: {
- click: this.onConfirm
- }
- }, okButtonProps);
- return h(
- 'div',
- { 'class': prefixCls + '-inner-content' },
- [h(
- 'div',
- { 'class': prefixCls + '-message' },
- [icon, h(
- 'div',
- { 'class': prefixCls + '-message-title' },
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'title')]
- )]
- ), h(
- 'div',
- { 'class': prefixCls + '-buttons' },
- [h(
- _button__WEBPACK_IMPORTED_MODULE_9__["default"],
- cancelBtnProps,
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'cancelText') || popconfirmLocale.cancelText]
- ), h(
- _button__WEBPACK_IMPORTED_MODULE_9__["default"],
- okBtnProps,
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'okText') || popconfirmLocale.okText]
- )]
- )]
- );
- }
- },
- render: function render() {
- var _this = this;
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('popover', customizePrefixCls);
- var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ['title', 'content', 'cancelText', 'okText']);
- var tooltipProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, otherProps, {
- prefixCls: prefixCls,
- visible: this.sVisible
- }),
- ref: 'tooltip',
- on: {
- visibleChange: this.onVisibleChange
- }
- };
- var overlay = h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: {
- componentName: 'Popconfirm',
- defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__["default"].Popconfirm
- },
- scopedSlots: {
- 'default': function _default(popconfirmLocale) {
- return _this.renderOverlay(prefixCls, popconfirmLocale);
- }
- }
- });
- return h(
- _tooltip__WEBPACK_IMPORTED_MODULE_2__["default"],
- tooltipProps,
- [h(
- 'template',
- { slot: 'title' },
- [overlay]
- ), this.$slots['default']]
- );
- }
- };
- /* istanbul ignore next */
- Popconfirm.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_13__["default"]);
- Vue.component(Popconfirm.name, Popconfirm);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Popconfirm);
- /***/ }),
- /***/ "./components/popconfirm/style/index.js":
- /*!**********************************************!*\
- !*** ./components/popconfirm/style/index.js ***!
- \**********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _popover_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../popover/style */ "./components/popover/style/index.js");
- /* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
- // style dependencies
- // deps-lint-skip: tooltip, popover
- /***/ }),
- /***/ "./components/popover/index.jsx":
- /*!**************************************!*\
- !*** ./components/popover/index.jsx ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
- /* harmony import */ var _tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tooltip/abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var props = Object(_tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_2__["default"])();
- var Popover = {
- name: 'APopover',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('zoom-big'),
- content: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
- }),
- model: {
- prop: 'visible',
- event: 'visibleChange'
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
- } }
- },
- methods: {
- getPopupDomNode: function getPopupDomNode() {
- return this.$refs.tooltip.getPopupDomNode();
- }
- },
- render: function render() {
- var h = arguments[0];
- var title = this.title,
- customizePrefixCls = this.prefixCls,
- $slots = this.$slots;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('popover', customizePrefixCls);
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
- delete props.title;
- delete props.content;
- var tooltipProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
- prefixCls: prefixCls
- }),
- ref: 'tooltip',
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
- };
- return h(
- _tooltip__WEBPACK_IMPORTED_MODULE_1__["default"],
- tooltipProps,
- [h(
- 'template',
- { slot: 'title' },
- [h('div', [(title || $slots.title) && h(
- 'div',
- { 'class': prefixCls + '-title' },
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'title')]
- ), h(
- 'div',
- { 'class': prefixCls + '-inner-content' },
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'content')]
- )])]
- ), this.$slots['default']]
- );
- }
- };
- /* istanbul ignore next */
- Popover.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
- Vue.component(Popover.name, Popover);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Popover);
- /***/ }),
- /***/ "./components/popover/style/index.js":
- /*!*******************************************!*\
- !*** ./components/popover/style/index.js ***!
- \*******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/popover/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- // style dependencies
- // deps-lint-skip: tooltip
- /***/ }),
- /***/ "./components/popover/style/index.less":
- /*!*********************************************!*\
- !*** ./components/popover/style/index.less ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/progress/circle.jsx":
- /*!****************************************!*\
- !*** ./components/progress/circle.jsx ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _vc_progress__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-progress */ "./components/vc-progress/index.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./components/progress/utils.js");
- var statusColorMap = {
- normal: '#108ee9',
- exception: '#ff5500',
- success: '#87d068'
- };
- function getPercentage(_ref) {
- var percent = _ref.percent,
- successPercent = _ref.successPercent;
- var ptg = Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validProgress"])(percent);
- if (!successPercent) return ptg;
- var successPtg = Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validProgress"])(successPercent);
- return [successPercent, Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validProgress"])(ptg - successPtg)];
- }
- function getStrokeColor(_ref2) {
- var progressStatus = _ref2.progressStatus,
- successPercent = _ref2.successPercent,
- strokeColor = _ref2.strokeColor;
- var color = strokeColor || statusColorMap[progressStatus];
- if (!successPercent) return color;
- return [statusColorMap.success, color];
- }
- var Circle = {
- functional: true,
- render: function render(h, context) {
- var _wrapperClassName;
- var props = context.props,
- children = context.children;
- var prefixCls = props.prefixCls,
- width = props.width,
- strokeWidth = props.strokeWidth,
- trailColor = props.trailColor,
- strokeLinecap = props.strokeLinecap,
- gapPosition = props.gapPosition,
- gapDegree = props.gapDegree,
- type = props.type;
- var circleSize = width || 120;
- var circleStyle = {
- width: typeof circleSize === 'number' ? circleSize + 'px' : circleSize,
- height: typeof circleSize === 'number' ? circleSize + 'px' : circleSize,
- fontSize: circleSize * 0.15 + 6
- };
- var circleWidth = strokeWidth || 6;
- var gapPos = gapPosition || type === 'dashboard' && 'bottom' || 'top';
- var gapDeg = gapDegree || type === 'dashboard' && 75;
- var strokeColor = getStrokeColor(props);
- var isGradient = Object.prototype.toString.call(strokeColor) === '[object Object]';
- var wrapperClassName = (_wrapperClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_wrapperClassName, prefixCls + '-inner', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_wrapperClassName, prefixCls + '-circle-gradient', isGradient), _wrapperClassName);
- return h(
- 'div',
- { 'class': wrapperClassName, style: circleStyle },
- [h(_vc_progress__WEBPACK_IMPORTED_MODULE_1__["Circle"], {
- attrs: {
- percent: getPercentage(props),
- strokeWidth: circleWidth,
- trailWidth: circleWidth,
- strokeColor: strokeColor,
- strokeLinecap: strokeLinecap,
- trailColor: trailColor,
- prefixCls: prefixCls,
- gapDegree: gapDeg,
- gapPosition: gapPos
- }
- }), children]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Circle);
- /***/ }),
- /***/ "./components/progress/index.jsx":
- /*!***************************************!*\
- !*** ./components/progress/index.jsx ***!
- \***************************************/
- /*! exports provided: ProgressProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./progress */ "./components/progress/progress.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProgressProps", function() { return _progress__WEBPACK_IMPORTED_MODULE_0__["ProgressProps"]; });
- /* istanbul ignore next */
- _progress__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_progress__WEBPACK_IMPORTED_MODULE_0__["default"].name, _progress__WEBPACK_IMPORTED_MODULE_0__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_progress__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/progress/line.jsx":
- /*!**************************************!*\
- !*** ./components/progress/line.jsx ***!
- \**************************************/
- /*! exports provided: sortGradient, handleGradient, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortGradient", function() { return sortGradient; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleGradient", function() { return handleGradient; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/progress/utils.js");
- /**
- * {
- * '0%': '#afc163',
- * '75%': '#009900',
- * '50%': 'green', ====> '#afc163 0%, #66FF00 25%, #00CC00 50%, #009900 75%, #ffffff 100%'
- * '25%': '#66FF00',
- * '100%': '#ffffff'
- * }
- */
- var sortGradient = function sortGradient(gradients) {
- var tempArr = [];
- // eslint-disable-next-line no-restricted-syntax
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
- try {
- for (var _iterator = Object.entries(gradients)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var _ref = _step.value;
- var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_ref, 2);
- var key = _ref2[0];
- var value = _ref2[1];
- var formatKey = parseFloat(key.replace(/%/g, ''));
- if (isNaN(formatKey)) {
- return {};
- }
- tempArr.push({
- key: formatKey,
- value: value
- });
- }
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator['return']) {
- _iterator['return']();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
- tempArr = tempArr.sort(function (a, b) {
- return a.key - b.key;
- });
- return tempArr.map(function (_ref3) {
- var key = _ref3.key,
- value = _ref3.value;
- return value + ' ' + key + '%';
- }).join(', ');
- };
- /**
- * {
- * '0%': '#afc163',
- * '25%': '#66FF00',
- * '50%': '#00CC00', ====> linear-gradient(to right, #afc163 0%, #66FF00 25%,
- * '75%': '#009900', #00CC00 50%, #009900 75%, #ffffff 100%)
- * '100%': '#ffffff'
- * }
- *
- * Then this man came to realize the truth:
- * Besides six pence, there is the moon.
- * Besides bread and butter, there is the bug.
- * And...
- * Besides women, there is the code.
- */
- var handleGradient = function handleGradient(strokeColor) {
- var _strokeColor$from = strokeColor.from,
- from = _strokeColor$from === undefined ? '#1890ff' : _strokeColor$from,
- _strokeColor$to = strokeColor.to,
- to = _strokeColor$to === undefined ? '#1890ff' : _strokeColor$to,
- _strokeColor$directio = strokeColor.direction,
- direction = _strokeColor$directio === undefined ? 'to right' : _strokeColor$directio,
- rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(strokeColor, ['from', 'to', 'direction']);
- if (Object.keys(rest).length !== 0) {
- var sortedGradients = sortGradient(rest);
- return { backgroundImage: 'linear-gradient(' + direction + ', ' + sortedGradients + ')' };
- }
- return { backgroundImage: 'linear-gradient(' + direction + ', ' + from + ', ' + to + ')' };
- };
- var Line = {
- functional: true,
- render: function render(h, context) {
- var props = context.props,
- children = context.children;
- var prefixCls = props.prefixCls,
- percent = props.percent,
- successPercent = props.successPercent,
- strokeWidth = props.strokeWidth,
- size = props.size,
- strokeColor = props.strokeColor,
- strokeLinecap = props.strokeLinecap;
- var backgroundProps = void 0;
- if (strokeColor && typeof strokeColor !== 'string') {
- backgroundProps = handleGradient(strokeColor);
- } else {
- backgroundProps = {
- background: strokeColor
- };
- }
- var percentStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- width: Object(_utils__WEBPACK_IMPORTED_MODULE_3__["validProgress"])(percent) + '%',
- height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px',
- background: strokeColor,
- borderRadius: strokeLinecap === 'square' ? 0 : '100px'
- }, backgroundProps);
- var successPercentStyle = {
- width: Object(_utils__WEBPACK_IMPORTED_MODULE_3__["validProgress"])(successPercent) + '%',
- height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px',
- borderRadius: strokeLinecap === 'square' ? 0 : ''
- };
- var successSegment = successPercent !== undefined ? h('div', { 'class': prefixCls + '-success-bg', style: successPercentStyle }) : null;
- return h('div', [h(
- 'div',
- { 'class': prefixCls + '-outer' },
- [h(
- 'div',
- { 'class': prefixCls + '-inner' },
- [h('div', { 'class': prefixCls + '-bg', style: percentStyle }), successSegment]
- )]
- ), children]);
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Line);
- /***/ }),
- /***/ "./components/progress/progress.jsx":
- /*!******************************************!*\
- !*** ./components/progress/progress.jsx ***!
- \******************************************/
- /*! exports provided: ProgressType, ProgressSize, ProgressProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgressType", function() { return ProgressType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgressSize", function() { return ProgressSize; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgressProps", function() { return ProgressProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./line */ "./components/progress/line.jsx");
- /* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./circle */ "./components/progress/circle.jsx");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/progress/utils.js");
- var ProgressStatuses = ['normal', 'exception', 'active', 'success'];
- var ProgressType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['line', 'circle', 'dashboard']);
- var ProgressSize = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['default', 'small']);
- var ProgressProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- type: ProgressType,
- percent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- successPercent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- status: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(ProgressStatuses),
- showInfo: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- strokeWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- strokeLinecap: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['butt', 'round', 'square']),
- strokeColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
- trailColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- width: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- gapDegree: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- gapPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['top', 'bottom', 'left', 'right']),
- size: ProgressSize
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AProgress',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(ProgressProps, {
- type: 'line',
- percent: 0,
- showInfo: true,
- trailColor: '#f3f3f3',
- size: 'default',
- gapDegree: 0,
- strokeLinecap: 'round'
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
- } }
- },
- methods: {
- getPercentNumber: function getPercentNumber() {
- var _$props = this.$props,
- successPercent = _$props.successPercent,
- _$props$percent = _$props.percent,
- percent = _$props$percent === undefined ? 0 : _$props$percent;
- return parseInt(successPercent !== undefined ? successPercent.toString() : percent.toString(), 10);
- },
- getProgressStatus: function getProgressStatus() {
- var status = this.$props.status;
- if (ProgressStatuses.indexOf(status) < 0 && this.getPercentNumber() >= 100) {
- return 'success';
- }
- return status || 'normal';
- },
- renderProcessInfo: function renderProcessInfo(prefixCls, progressStatus) {
- var h = this.$createElement;
- var _$props2 = this.$props,
- showInfo = _$props2.showInfo,
- format = _$props2.format,
- type = _$props2.type,
- percent = _$props2.percent,
- successPercent = _$props2.successPercent;
- if (!showInfo) return null;
- var text = void 0;
- var textFormatter = format || this.$scopedSlots.format || function (percentNumber) {
- return percentNumber + '%';
- };
- var iconType = type === 'circle' || type === 'dashboard' ? '' : '-circle';
- if (format || this.$scopedSlots.format || progressStatus !== 'exception' && progressStatus !== 'success') {
- text = textFormatter(Object(_utils__WEBPACK_IMPORTED_MODULE_9__["validProgress"])(percent), Object(_utils__WEBPACK_IMPORTED_MODULE_9__["validProgress"])(successPercent));
- } else if (progressStatus === 'exception') {
- text = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: { type: 'close' + iconType, theme: type === 'line' ? 'filled' : 'outlined' }
- });
- } else if (progressStatus === 'success') {
- text = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: { type: 'check' + iconType, theme: type === 'line' ? 'filled' : 'outlined' }
- });
- }
- return h(
- 'span',
- { 'class': prefixCls + '-text', attrs: { title: typeof text === 'string' ? text : undefined }
- },
- [text]
- );
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls,
- size = props.size,
- type = props.type,
- showInfo = props.showInfo;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('progress', customizePrefixCls);
- var progressStatus = this.getProgressStatus();
- var progressInfo = this.renderProcessInfo(prefixCls, progressStatus);
- var progress = void 0;
- // Render progress shape
- if (type === 'line') {
- var lineProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- prefixCls: prefixCls
- })
- };
- progress = h(
- _line__WEBPACK_IMPORTED_MODULE_7__["default"],
- lineProps,
- [progressInfo]
- );
- } else if (type === 'circle' || type === 'dashboard') {
- var circleProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- prefixCls: prefixCls,
- progressStatus: progressStatus
- })
- };
- progress = h(
- _circle__WEBPACK_IMPORTED_MODULE_8__["default"],
- circleProps,
- [progressInfo]
- );
- }
- var classString = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + (type === 'dashboard' && 'circle' || type), true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-status-' + progressStatus, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-show-info', showInfo), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + size, size), _classNames));
- var progressProps = {
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
- 'class': classString
- };
- return h(
- 'div',
- progressProps,
- [progress]
- );
- }
- });
- /***/ }),
- /***/ "./components/progress/style/index.js":
- /*!********************************************!*\
- !*** ./components/progress/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/progress/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/progress/style/index.less":
- /*!**********************************************!*\
- !*** ./components/progress/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/progress/utils.js":
- /*!**************************************!*\
- !*** ./components/progress/utils.js ***!
- \**************************************/
- /*! exports provided: validProgress */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validProgress", function() { return validProgress; });
- function validProgress(progress) {
- if (!progress || progress < 0) {
- return 0;
- }
- if (progress > 100) {
- return 100;
- }
- return progress;
- }
- /***/ }),
- /***/ "./components/radio/Group.jsx":
- /*!************************************!*\
- !*** ./components/radio/Group.jsx ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Radio */ "./components/radio/Radio.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ARadioGroup',
- model: {
- prop: 'value'
- },
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- size: {
- 'default': 'default',
- validator: function validator(value) {
- return ['large', 'default', 'small'].includes(value);
- }
- },
- options: {
- 'default': function _default() {
- return [];
- },
- type: Array
- },
- disabled: Boolean,
- name: String,
- buttonStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('outline')
- },
- data: function data() {
- var value = this.value,
- defaultValue = this.defaultValue;
- this.updatingValue = false;
- return {
- stateValue: value === undefined ? defaultValue : value
- };
- },
- provide: function provide() {
- return {
- radioGroupContext: this
- };
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
- } }
- },
- computed: {
- radioOptions: function radioOptions() {
- var disabled = this.disabled;
- return this.options.map(function (option) {
- return typeof option === 'string' ? { label: option, value: option } : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, option, { disabled: option.disabled === undefined ? disabled : option.disabled });
- });
- },
- classes: function classes() {
- var _ref;
- var prefixCls = this.prefixCls,
- size = this.size;
- return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-' + size, size), _ref;
- }
- },
- watch: {
- value: function value(val) {
- this.updatingValue = false;
- this.stateValue = val;
- }
- },
- methods: {
- onRadioChange: function onRadioChange(ev) {
- var _this = this;
- var lastValue = this.stateValue;
- var value = ev.target.value;
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'value')) {
- this.stateValue = value;
- }
- // nextTick for https://github.com/vueComponent/ant-design-vue/issues/1280
- if (!this.updatingValue && value !== lastValue) {
- this.updatingValue = true;
- this.$emit('input', value);
- this.$emit('change', ev);
- }
- this.$nextTick(function () {
- _this.updatingValue = false;
- });
- }
- },
- render: function render() {
- var _this2 = this;
- var h = arguments[0];
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
- _getListeners$mouseen = _getListeners.mouseenter,
- mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
- _getListeners$mousele = _getListeners.mouseleave,
- mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls,
- options = props.options,
- buttonStyle = props.buttonStyle;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('radio', customizePrefixCls);
- var groupPrefixCls = prefixCls + '-group';
- var classString = classnames__WEBPACK_IMPORTED_MODULE_2___default()(groupPrefixCls, groupPrefixCls + '-' + buttonStyle, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, groupPrefixCls + '-' + props.size, props.size));
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])(this.$slots['default']);
- // 如果存在 options, 优先使用
- if (options && options.length > 0) {
- children = options.map(function (option) {
- if (typeof option === 'string') {
- return h(
- _Radio__WEBPACK_IMPORTED_MODULE_4__["default"],
- {
- key: option,
- attrs: { prefixCls: prefixCls,
- disabled: props.disabled,
- value: option,
- checked: _this2.stateValue === option
- }
- },
- [option]
- );
- } else {
- return h(
- _Radio__WEBPACK_IMPORTED_MODULE_4__["default"],
- {
- key: 'radio-group-value-options-' + option.value,
- attrs: { prefixCls: prefixCls,
- disabled: option.disabled || props.disabled,
- value: option.value,
- checked: _this2.stateValue === option.value
- }
- },
- [option.label]
- );
- }
- });
- }
- return h(
- 'div',
- { 'class': classString, on: {
- 'mouseenter': mouseenter,
- 'mouseleave': mouseleave
- }
- },
- [children]
- );
- }
- });
- /***/ }),
- /***/ "./components/radio/Radio.jsx":
- /*!************************************!*\
- !*** ./components/radio/Radio.jsx ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_checkbox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-checkbox */ "./components/vc-checkbox/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ARadio',
- model: {
- prop: 'checked'
- },
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- defaultChecked: Boolean,
- checked: { type: Boolean, 'default': undefined },
- disabled: Boolean,
- isGroup: Boolean,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- name: String,
- id: String,
- autoFocus: Boolean,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('radio')
- },
- inject: {
- radioGroupContext: { 'default': undefined },
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- methods: {
- focus: function focus() {
- this.$refs.vcCheckbox.focus();
- },
- blur: function blur() {
- this.$refs.vcCheckbox.blur();
- },
- handleChange: function handleChange(event) {
- var targetChecked = event.target.checked;
- this.$emit('input', targetChecked);
- this.$emit('change', event);
- },
- onChange: function onChange(e) {
- this.$emit('change', e);
- if (this.radioGroupContext && this.radioGroupContext.onRadioChange) {
- this.radioGroupContext.onRadioChange(e);
- }
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var $slots = this.$slots,
- radioGroup = this.radioGroupContext;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
- var children = $slots['default'];
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
- _getListeners$mouseen = _getListeners.mouseenter,
- mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
- _getListeners$mousele = _getListeners.mouseleave,
- mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
- restListeners = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_getListeners, ['mouseenter', 'mouseleave']);
- var customizePrefixCls = props.prefixCls,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(props, ['prefixCls']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('radio', customizePrefixCls);
- var radioProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, { prefixCls: prefixCls }),
- on: restListeners,
- attrs: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getAttrs"])(this)
- };
- if (radioGroup) {
- radioProps.props.name = radioGroup.name;
- radioProps.on.change = this.onChange;
- radioProps.props.checked = props.value === radioGroup.stateValue;
- radioProps.props.disabled = props.disabled || radioGroup.disabled;
- } else {
- radioProps.on.change = this.handleChange;
- }
- var wrapperClassString = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-checked', radioProps.props.checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-disabled', radioProps.props.disabled), _classNames));
- return h(
- 'label',
- { 'class': wrapperClassString, on: {
- 'mouseenter': mouseenter,
- 'mouseleave': mouseleave
- }
- },
- [h(_vc_checkbox__WEBPACK_IMPORTED_MODULE_5__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([radioProps, { ref: 'vcCheckbox' }])), children !== undefined ? h('span', [children]) : null]
- );
- }
- });
- /***/ }),
- /***/ "./components/radio/RadioButton.jsx":
- /*!******************************************!*\
- !*** ./components/radio/RadioButton.jsx ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Radio */ "./components/radio/Radio.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ARadioButton',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _Radio__WEBPACK_IMPORTED_MODULE_2__["default"].props),
- inject: {
- radioGroupContext: { 'default': undefined },
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
- } }
- },
- render: function render() {
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- otherProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('radio-button', customizePrefixCls);
- var radioProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, otherProps, {
- prefixCls: prefixCls
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
- };
- if (this.radioGroupContext) {
- radioProps.on.change = this.radioGroupContext.onRadioChange;
- radioProps.props.checked = this.$props.value === this.radioGroupContext.stateValue;
- radioProps.props.disabled = this.$props.disabled || this.radioGroupContext.disabled;
- }
- return h(
- _Radio__WEBPACK_IMPORTED_MODULE_2__["default"],
- radioProps,
- [this.$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/radio/index.js":
- /*!***********************************!*\
- !*** ./components/radio/index.js ***!
- \***********************************/
- /*! exports provided: Button, Group, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Radio */ "./components/radio/Radio.jsx");
- /* harmony import */ var _Group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Group */ "./components/radio/Group.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Group", function() { return _Group__WEBPACK_IMPORTED_MODULE_1__["default"]; });
- /* harmony import */ var _RadioButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RadioButton */ "./components/radio/RadioButton.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _RadioButton__WEBPACK_IMPORTED_MODULE_2__["default"]; });
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Group = _Group__WEBPACK_IMPORTED_MODULE_1__["default"];
- _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Button = _RadioButton__WEBPACK_IMPORTED_MODULE_2__["default"];
- /* istanbul ignore next */
- _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
- Vue.component(_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Radio__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Group.name, _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Group);
- Vue.component(_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Button.name, _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Button);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Radio__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/radio/style/index.js":
- /*!*****************************************!*\
- !*** ./components/radio/style/index.js ***!
- \*****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/radio/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/radio/style/index.less":
- /*!*******************************************!*\
- !*** ./components/radio/style/index.less ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/rate/index.jsx":
- /*!***********************************!*\
- !*** ./components/rate/index.jsx ***!
- \***********************************/
- /*! exports provided: RateProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RateProps", function() { return RateProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _vc_rate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-rate */ "./components/vc-rate/index.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var RateProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- count: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].value,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].value,
- allowHalf: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- tooltips: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- character: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
- };
- var Rate = {
- name: 'ARate',
- model: {
- prop: 'value',
- event: 'change'
- },
- props: RateProps,
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
- } }
- },
- methods: {
- characterRender: function characterRender(node, _ref) {
- var index = _ref.index;
- var h = this.$createElement;
- var tooltips = this.$props.tooltips;
- if (!tooltips) return node;
- return h(
- _tooltip__WEBPACK_IMPORTED_MODULE_8__["default"],
- {
- attrs: { title: tooltips[index] }
- },
- [node]
- );
- },
- focus: function focus() {
- this.$refs.refRate.focus();
- },
- blur: function blur() {
- this.$refs.refRate.blur();
- }
- },
- render: function render() {
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('rate', customizePrefixCls);
- var character = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'character') || h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: { type: 'star', theme: 'filled' }
- });
- var rateProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- character: character,
- characterRender: this.characterRender,
- prefixCls: prefixCls
- }, Object(omit_js__WEBPACK_IMPORTED_MODULE_2__["default"])(restProps, ['tooltips'])),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
- ref: 'refRate'
- };
- return h(_vc_rate__WEBPACK_IMPORTED_MODULE_6__["default"], rateProps);
- }
- };
- /* istanbul ignore next */
- Rate.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
- Vue.component(Rate.name, Rate);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Rate);
- /***/ }),
- /***/ "./components/rate/style/index.js":
- /*!****************************************!*\
- !*** ./components/rate/style/index.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/rate/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/rate/style/index.less":
- /*!******************************************!*\
- !*** ./components/rate/style/index.less ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/result/index.jsx":
- /*!*************************************!*\
- !*** ./components/result/index.jsx ***!
- \*************************************/
- /*! exports provided: IconMap, ExceptionMap, ResultProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IconMap", function() { return IconMap; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExceptionMap", function() { return ExceptionMap; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResultProps", function() { return ResultProps; });
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _noFound__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./noFound */ "./components/result/noFound.jsx");
- /* harmony import */ var _serverError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./serverError */ "./components/result/serverError.jsx");
- /* harmony import */ var _unauthorized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./unauthorized */ "./components/result/unauthorized.jsx");
- var IconMap = {
- success: 'check-circle',
- error: 'close-circle',
- info: 'exclamation-circle',
- warning: 'warning'
- };
- var ExceptionMap = {
- '404': _noFound__WEBPACK_IMPORTED_MODULE_5__["default"],
- '500': _serverError__WEBPACK_IMPORTED_MODULE_6__["default"],
- '403': _unauthorized__WEBPACK_IMPORTED_MODULE_7__["default"]
- };
- // ExceptionImageMap keys
- var ExceptionStatus = Object.keys(ExceptionMap);
- var ResultProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- status: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['success', 'error', 'info', 'warning', '404', '403', '500']).def('info'),
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- subTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- };
- var renderIcon = function renderIcon(h, prefixCls, _ref) {
- var status = _ref.status,
- icon = _ref.icon;
- if (ExceptionStatus.includes('' + status)) {
- var SVGComponent = ExceptionMap[status];
- return h(
- 'div',
- { 'class': prefixCls + '-icon ' + prefixCls + '-image' },
- [h(SVGComponent)]
- );
- }
- // prop `icon` require slot or VNode
- var iconString = IconMap[status];
- var iconNode = icon || h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: { type: iconString, theme: 'filled' }
- });
- return h(
- 'div',
- { 'class': prefixCls + '-icon' },
- [iconNode]
- );
- };
- var renderExtra = function renderExtra(h, prefixCls, extra) {
- return extra && h(
- 'div',
- { 'class': prefixCls + '-extra' },
- [extra]
- );
- };
- var Result = {
- name: 'AResult',
- props: ResultProps,
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
- } }
- },
- render: function render(h) {
- var customizePrefixCls = this.prefixCls,
- status = this.status;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('result', customizePrefixCls);
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'title');
- var subTitle = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'subTitle');
- var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'icon');
- var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'extra');
- return h(
- 'div',
- { 'class': prefixCls + ' ' + prefixCls + '-' + status },
- [renderIcon(h, prefixCls, { status: status, icon: icon }), h(
- 'div',
- { 'class': prefixCls + '-title' },
- [title]
- ), subTitle && h(
- 'div',
- { 'class': prefixCls + '-subtitle' },
- [subTitle]
- ), this.$slots['default'] && h(
- 'div',
- { 'class': prefixCls + '-content' },
- [this.$slots['default']]
- ), renderExtra(h, prefixCls, extra)]
- );
- }
- };
- /* add resource */
- Result.PRESENTED_IMAGE_403 = ExceptionMap[403];
- Result.PRESENTED_IMAGE_404 = ExceptionMap[404];
- Result.PRESENTED_IMAGE_500 = ExceptionMap[500];
- /* istanbul ignore next */
- Result.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
- Vue.component(Result.name, Result);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Result);
- /***/ }),
- /***/ "./components/result/noFound.jsx":
- /*!***************************************!*\
- !*** ./components/result/noFound.jsx ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var NoFound = {
- functional: true,
- render: function render() {
- var h = arguments[0];
- return h(
- "svg",
- {
- attrs: { width: "252", height: "294" }
- },
- [h("defs", [h("path", {
- attrs: { d: "M0 .387h251.772v251.772H0z" }
- })]), h(
- "g",
- {
- attrs: { fill: "none", fillRule: "evenodd" }
- },
- [h(
- "g",
- {
- attrs: { transform: "translate(0 .012)" }
- },
- [h("mask", {
- attrs: { fill: "#fff" }
- }), h("path", {
- attrs: {
- d: "M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",
- fill: "#E4EBF7",
- mask: "url(#b)"
- }
- })]
- ), h("path", {
- attrs: {
- d: "M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",
- stroke: "#FFF",
- strokeWidth: "2"
- }
- }), h("path", {
- attrs: {
- d: "M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",
- stroke: "#FFF",
- strokeWidth: "2"
- }
- }), h("path", {
- attrs: {
- d: "M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",
- stroke: "#FFF",
- strokeWidth: "2"
- }
- }), h("path", {
- attrs: {
- stroke: "#FFF",
- strokeWidth: "2",
- d: "M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"
- }
- }), h("path", {
- attrs: {
- d: "M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",
- fill: "#1890FF"
- }
- }), h("path", {
- attrs: {
- d: "M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",
- fill: "#FFB594"
- }
- }), h("path", {
- attrs: {
- d: "M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",
- fill: "#CBD1D1"
- }
- }), h("path", {
- attrs: {
- d: "M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",
- fill: "#2B0849"
- }
- }), h("path", {
- attrs: {
- d: "M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",
- fill: "#A4AABA"
- }
- }), h("path", {
- attrs: {
- d: "M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",
- fill: "#CBD1D1"
- }
- }), h("path", {
- attrs: {
- d: "M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",
- fill: "#2B0849"
- }
- }), h("path", {
- attrs: {
- d: "M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",
- fill: "#A4AABA"
- }
- }), h("path", {
- attrs: {
- d: "M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",
- fill: "#7BB2F9"
- }
- }), h("path", {
- attrs: {
- d: "M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",
- stroke: "#648BD8",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M107.275 222.1s2.773-1.11 6.102-3.884",
- stroke: "#648BD8",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",
- stroke: "#648BD8",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",
- fill: "#192064"
- }
- }), h("path", {
- attrs: {
- d: "M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",
- fill: "#192064"
- }
- }), h("path", {
- attrs: {
- d: "M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",
- stroke: "#648BD8",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",
- fill: "#520038"
- }
- }), h("path", {
- attrs: {
- d: "M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",
- fill: "#552950"
- }
- }), h("path", {
- attrs: {
- stroke: "#DB836E",
- strokeWidth: "1.118",
- strokeLinecap: "round",
- strokeLinejoin: "round",
- d: "M110.13 74.84l-.896 1.61-.298 4.357h-2.228"
- }
- }), h("path", {
- attrs: {
- d: "M110.846 74.481s1.79-.716 2.506.537",
- stroke: "#5C2552",
- strokeWidth: "1.118",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",
- stroke: "#DB836E",
- strokeWidth: "1.118",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M103.287 72.93s1.83 1.113 4.137.954",
- stroke: "#5C2552",
- strokeWidth: "1.118",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",
- stroke: "#DB836E",
- strokeWidth: "1.118",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",
- stroke: "#E4EBF7",
- strokeWidth: "1.101",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M129.405 122.865s-5.272 7.403-9.422 10.768",
- stroke: "#E4EBF7",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M119.306 107.329s.452 4.366-2.127 32.062",
- stroke: "#E4EBF7",
- strokeWidth: "1.101",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",
- fill: "#F2D7AD"
- }
- }), h("path", {
- attrs: {
- d: "M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",
- fill: "#F4D19D"
- }
- }), h("path", {
- attrs: {
- d: "M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",
- fill: "#F2D7AD"
- }
- }), h("path", {
- attrs: { fill: "#CC9B6E", d: "M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z" }
- }), h("path", {
- attrs: {
- d: "M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",
- fill: "#F4D19D"
- }
- }), h("path", {
- attrs: {
- fill: "#CC9B6E",
- d: "M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"
- }
- }), h("path", {
- attrs: {
- fill: "#CC9B6E",
- d: "M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"
- }
- }), h("path", {
- attrs: {
- d: "M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",
- stroke: "#DB836E",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",
- stroke: "#DB836E",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",
- stroke: "#DB836E",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",
- fill: "#5BA02E"
- }
- }), h("path", {
- attrs: {
- d: "M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",
- fill: "#92C110"
- }
- }), h("path", {
- attrs: {
- d: "M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",
- fill: "#F2D7AD"
- }
- }), h("path", {
- attrs: {
- d: "M88.979 89.48s7.776 5.384 16.6 2.842",
- stroke: "#E4EBF7",
- strokeWidth: "1.101",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- })]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (NoFound);
- /***/ }),
- /***/ "./components/result/serverError.jsx":
- /*!*******************************************!*\
- !*** ./components/result/serverError.jsx ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var ServerError = {
- functional: true,
- render: function render() {
- var h = arguments[0];
- return h(
- "svg",
- {
- attrs: { width: "254", height: "294" }
- },
- [h("defs", [h("path", {
- attrs: { d: "M0 .335h253.49v253.49H0z" }
- }), h("path", {
- attrs: { d: "M0 293.665h253.49V.401H0z" }
- })]), h(
- "g",
- {
- attrs: { fill: "none", fillRule: "evenodd" }
- },
- [h(
- "g",
- {
- attrs: { transform: "translate(0 .067)" }
- },
- [h("mask", {
- attrs: { fill: "#fff" }
- }), h("path", {
- attrs: {
- d: "M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",
- fill: "#E4EBF7",
- mask: "url(#b)"
- }
- })]
- ), h("path", {
- attrs: {
- d: "M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",
- stroke: "#FFF",
- strokeWidth: "2"
- }
- }), h("path", {
- attrs: {
- d: "M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",
- fill: "#FF603B"
- }
- }), h("path", {
- attrs: {
- d: "M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",
- fill: "#FFB594"
- }
- }), h("path", {
- attrs: {
- d: "M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",
- fill: "#FFB594"
- }
- }), h("path", {
- attrs: {
- d: "M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",
- fill: "#520038"
- }
- }), h("path", {
- attrs: {
- d: "M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",
- fill: "#552950"
- }
- }), h("path", {
- attrs: {
- stroke: "#DB836E",
- strokeWidth: "1.063",
- strokeLinecap: "round",
- strokeLinejoin: "round",
- d: "M99.206 73.644l-.9 1.62-.3 4.38h-2.24"
- }
- }), h("path", {
- attrs: {
- d: "M99.926 73.284s1.8-.72 2.52.54",
- stroke: "#5C2552",
- strokeWidth: "1.117",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",
- stroke: "#DB836E",
- strokeWidth: "1.117",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M92.326 71.724s1.84 1.12 4.16.96",
- stroke: "#5C2552",
- strokeWidth: "1.117",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",
- stroke: "#DB836E",
- strokeWidth: "1.063",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",
- stroke: "#E4EBF7",
- strokeWidth: "1.136",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",
- stroke: "#E4EBF7",
- strokeWidth: "1.085",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",
- fill: "#CBD1D1"
- }
- }), h("path", {
- attrs: {
- d: "M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",
- fill: "#2B0849"
- }
- }), h("path", {
- attrs: {
- d: "M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",
- fill: "#A4AABA"
- }
- }), h("path", {
- attrs: {
- d: "M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",
- fill: "#CBD1D1"
- }
- }), h("path", {
- attrs: {
- d: "M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",
- fill: "#2B0849"
- }
- }), h("path", {
- attrs: {
- d: "M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",
- fill: "#A4AABA"
- }
- }), h("path", {
- attrs: {
- d: "M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",
- fill: "#7BB2F9"
- }
- }), h("path", {
- attrs: {
- d: "M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",
- stroke: "#648BD8",
- strokeWidth: "1.085",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M96.973 219.373s2.882-1.153 6.34-4.034",
- stroke: "#648BD8",
- strokeWidth: "1.032",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",
- stroke: "#648BD8",
- strokeWidth: "1.085",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",
- fill: "#192064"
- }
- }), h("path", {
- attrs: {
- d: "M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",
- fill: "#192064"
- }
- }), h("path", {
- attrs: {
- d: "M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",
- stroke: "#648BD8",
- strokeWidth: "1.085",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",
- stroke: "#E4EBF7",
- strokeWidth: "1.085",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",
- stroke: "#DB836E",
- strokeWidth: ".774",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",
- stroke: "#E59788",
- strokeWidth: ".774",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",
- stroke: "#E59788",
- strokeWidth: ".774",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M109.278 112.533s3.38-3.613 7.575-4.662",
- stroke: "#E4EBF7",
- strokeWidth: "1.085",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M107.375 123.006s9.697-2.745 11.445-.88",
- stroke: "#E59788",
- strokeWidth: ".774",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",
- stroke: "#BFCDDD",
- strokeWidth: "2",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",
- fill: "#A3B4C6"
- }
- }), h("path", {
- attrs: {
- d: "M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",
- fill: "#A3B4C6"
- }
- }), h("mask", {
- attrs: { fill: "#fff" }
- }), h("path", {
- attrs: { fill: "#A3B4C6", mask: "url(#d)", d: "M154.098 190.096h70.513v-84.617h-70.513z" }
- }), h("path", {
- attrs: {
- d: "M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",
- fill: "#BFCDDD",
- mask: "url(#d)"
- }
- }), h("path", {
- attrs: {
- d: "M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",
- fill: "#FFF",
- mask: "url(#d)"
- }
- }), h("path", {
- attrs: {
- d: "M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",
- fill: "#BFCDDD",
- mask: "url(#d)"
- }
- }), h("path", {
- attrs: {
- d: "M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",
- stroke: "#7C90A5",
- strokeWidth: "1.124",
- strokeLinecap: "round",
- strokeLinejoin: "round",
- mask: "url(#d)"
- }
- }), h("path", {
- attrs: {
- d: "M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",
- fill: "#FFF",
- mask: "url(#d)"
- }
- }), h("path", {
- attrs: {
- d: "M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",
- fill: "#BFCDDD",
- mask: "url(#d)"
- }
- }), h("path", {
- attrs: {
- d: "M177.259 207.217v11.52M201.05 207.217v11.52",
- stroke: "#A3B4C6",
- strokeWidth: "1.124",
- strokeLinecap: "round",
- strokeLinejoin: "round",
- mask: "url(#d)"
- }
- }), h("path", {
- attrs: {
- d: "M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",
- fill: "#5BA02E",
- mask: "url(#d)"
- }
- }), h("path", {
- attrs: {
- d: "M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",
- fill: "#92C110",
- mask: "url(#d)"
- }
- }), h("path", {
- attrs: {
- d: "M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",
- fill: "#F2D7AD",
- mask: "url(#d)"
- }
- })]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (ServerError);
- /***/ }),
- /***/ "./components/result/style/index.js":
- /*!******************************************!*\
- !*** ./components/result/style/index.js ***!
- \******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/result/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/result/style/index.less":
- /*!********************************************!*\
- !*** ./components/result/style/index.less ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/result/unauthorized.jsx":
- /*!********************************************!*\
- !*** ./components/result/unauthorized.jsx ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var Unauthorized = {
- functional: true,
- render: function render() {
- var h = arguments[0];
- return h(
- "svg",
- {
- attrs: { width: "251", height: "294" }
- },
- [h(
- "g",
- {
- attrs: { fill: "none", fillRule: "evenodd" }
- },
- [h("path", {
- attrs: {
- d: "M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",
- fill: "#E4EBF7"
- }
- }), h("path", {
- attrs: {
- d: "M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",
- stroke: "#FFF",
- strokeWidth: "2"
- }
- }), h("path", {
- attrs: {
- d: "M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",
- stroke: "#FFF",
- strokeWidth: "2"
- }
- }), h("path", {
- attrs: {
- d: "M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",
- stroke: "#FFF",
- strokeWidth: "2"
- }
- }), h("path", {
- attrs: {
- stroke: "#FFF",
- strokeWidth: "2",
- d: "M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"
- }
- }), h("path", {
- attrs: {
- d: "M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",
- fill: "#A26EF4"
- }
- }), h("path", {
- attrs: {
- d: "M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",
- fill: "#5BA02E"
- }
- }), h("path", {
- attrs: {
- d: "M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",
- fill: "#92C110"
- }
- }), h("path", {
- attrs: {
- d: "M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",
- fill: "#F2D7AD"
- }
- }), h("path", {
- attrs: {
- d: "M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",
- fill: "#FFB594"
- }
- }), h("path", {
- attrs: {
- d: "M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M78.18 94.656s.911 7.41-4.914 13.078",
- stroke: "#E4EBF7",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",
- stroke: "#E4EBF7",
- strokeWidth: ".932",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",
- fill: "#FFB594"
- }
- }), h("path", {
- attrs: {
- d: "M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",
- fill: "#5C2552"
- }
- }), h("path", {
- attrs: {
- d: "M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- stroke: "#DB836E",
- strokeWidth: "1.145",
- strokeLinecap: "round",
- strokeLinejoin: "round",
- d: "M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"
- }
- }), h("path", {
- attrs: {
- d: "M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",
- fill: "#552950"
- }
- }), h("path", {
- attrs: {
- d: "M91.132 86.786s5.269 4.957 12.679 2.327",
- stroke: "#DB836E",
- strokeWidth: "1.145",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",
- fill: "#DB836E"
- }
- }), h("path", {
- attrs: {
- d: "M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",
- stroke: "#5C2552",
- strokeWidth: "1.526",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",
- stroke: "#DB836E",
- strokeWidth: "1.145",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",
- stroke: "#E4EBF7",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M66.508 86.763s-1.598 8.83-6.697 14.078",
- stroke: "#E4EBF7",
- strokeWidth: "1.114",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M128.31 87.934s3.013 4.121 4.06 11.785",
- stroke: "#E4EBF7",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M64.09 84.816s-6.03 9.912-13.607 9.903",
- stroke: "#DB836E",
- strokeWidth: ".795",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",
- fill: "#FFC6A0"
- }
- }), h("path", {
- attrs: {
- d: "M130.532 85.488s4.588 5.757 11.619 6.214",
- stroke: "#DB836E",
- strokeWidth: ".75",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M121.708 105.73s-.393 8.564-1.34 13.612",
- stroke: "#E4EBF7",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M115.784 161.512s-3.57-1.488-2.678-7.14",
- stroke: "#648BD8",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",
- fill: "#CBD1D1"
- }
- }), h("path", {
- attrs: {
- d: "M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",
- fill: "#2B0849"
- }
- }), h("path", {
- attrs: {
- d: "M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",
- fill: "#A4AABA"
- }
- }), h("path", {
- attrs: {
- d: "M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",
- fill: "#CBD1D1"
- }
- }), h("path", {
- attrs: {
- d: "M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",
- fill: "#2B0849"
- }
- }), h("path", {
- attrs: {
- d: "M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",
- fill: "#A4AABA"
- }
- }), h("path", {
- attrs: {
- d: "M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",
- fill: "#7BB2F9"
- }
- }), h("path", {
- attrs: {
- d: "M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",
- stroke: "#648BD8",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M108.459 220.905s2.759-1.104 6.07-3.863",
- stroke: "#648BD8",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",
- stroke: "#648BD8",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- }), h("path", {
- attrs: {
- d: "M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",
- fill: "#192064"
- }
- }), h("path", {
- attrs: {
- d: "M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",
- fill: "#FFF"
- }
- }), h("path", {
- attrs: {
- d: "M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",
- fill: "#192064"
- }
- }), h("path", {
- attrs: {
- d: "M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",
- stroke: "#648BD8",
- strokeWidth: "1.051",
- strokeLinecap: "round",
- strokeLinejoin: "round"
- }
- })]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Unauthorized);
- /***/ }),
- /***/ "./components/row/index.js":
- /*!*********************************!*\
- !*** ./components/row/index.js ***!
- \*********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* istanbul ignore next */
- _grid__WEBPACK_IMPORTED_MODULE_0__["Row"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_grid__WEBPACK_IMPORTED_MODULE_0__["Row"].name, _grid__WEBPACK_IMPORTED_MODULE_0__["Row"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_grid__WEBPACK_IMPORTED_MODULE_0__["Row"]);
- /***/ }),
- /***/ "./components/row/style/index.js":
- /*!***************************************!*\
- !*** ./components/row/style/index.js ***!
- \***************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
- // style dependencies
- // deps-lint-skip: grid
- /***/ }),
- /***/ "./components/select/index.jsx":
- /*!*************************************!*\
- !*** ./components/select/index.jsx ***!
- \*************************************/
- /*! exports provided: AbstractSelectProps, SelectValue, SelectProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbstractSelectProps", function() { return AbstractSelectProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectValue", function() { return SelectValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectProps", function() { return SelectProps; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-select */ "./components/vc-select/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var AbstractSelectProps = function AbstractSelectProps() {
- return {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['small', 'large', 'default']),
- showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(String)]),
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- // onSearch: (value: string) => any,
- filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func]),
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- autoClearSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
- };
- };
- var Value = _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape({
- key: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number])
- }).loose;
- var SelectValue = _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([Value, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number])), Value]);
- var SelectProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, AbstractSelectProps(), {
- value: SelectValue,
- defaultValue: SelectValue,
- // mode: PropTypes.oneOf(['default', 'multiple', 'tags', 'combobox']),
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- firstActiveValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([String, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(String)]),
- maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
- maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
- dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- optionFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].boolean,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- tokenSeparators: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string),
- getInputElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- options: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any
- });
- var SelectPropTypes = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['default', 'large', 'small']),
- // combobox: PropTypes.bool,
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string
- };
- var SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
- var Select = {
- SECRET_COMBOBOX_MODE_DO_NOT_USE: SECRET_COMBOBOX_MODE_DO_NOT_USE,
- Option: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_7__["Option"], { name: 'ASelectOption' }),
- OptGroup: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_7__["OptGroup"], { name: 'ASelectOptGroup' }),
- name: 'ASelect',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, SelectProps, {
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(false),
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string.def('slide-up'),
- choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string.def('zoom')
- }),
- propTypes: SelectPropTypes,
- model: {
- prop: 'value',
- event: 'change'
- },
- provide: function provide() {
- return {
- savePopupRef: this.savePopupRef
- };
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- created: function created() {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_4__["default"])(this.$props.mode !== 'combobox', 'Select', 'The combobox mode of Select is deprecated,' + 'it will be removed in next major version,' + 'please use AutoComplete instead');
- },
- methods: {
- getNotFoundContent: function getNotFoundContent(renderEmpty) {
- var h = this.$createElement;
- var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'notFoundContent');
- if (notFoundContent !== undefined) {
- return notFoundContent;
- }
- if (this.isCombobox()) {
- return null;
- }
- return renderEmpty(h, 'Select');
- },
- savePopupRef: function savePopupRef(ref) {
- this.popupRef = ref;
- },
- focus: function focus() {
- this.$refs.vcSelect.focus();
- },
- blur: function blur() {
- this.$refs.vcSelect.blur();
- },
- isCombobox: function isCombobox() {
- var mode = this.mode;
- return mode === 'combobox' || mode === SECRET_COMBOBOX_MODE_DO_NOT_USE;
- },
- renderSuffixIcon: function renderSuffixIcon(prefixCls) {
- var h = this.$createElement;
- var loading = this.$props.loading;
- var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'suffixIcon');
- suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
- if (suffixIcon) {
- return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(suffixIcon, { 'class': prefixCls + '-arrow-icon' }) : suffixIcon;
- }
- if (loading) {
- return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'loading' }
- });
- }
- return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'down' },
- 'class': prefixCls + '-arrow-icon' });
- }
- },
- render: function render() {
- var _cls;
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- size = _getOptionProps.size,
- mode = _getOptionProps.mode,
- options = _getOptionProps.options,
- getPopupContainer = _getOptionProps.getPopupContainer,
- showArrow = _getOptionProps.showArrow,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps, ['prefixCls', 'size', 'mode', 'options', 'getPopupContainer', 'showArrow']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var renderEmpty = this.configProvider.renderEmpty;
- var prefixCls = getPrefixCls('select', customizePrefixCls);
- var getContextPopupContainer = this.configProvider.getPopupContainer;
- var removeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'removeIcon');
- removeIcon = Array.isArray(removeIcon) ? removeIcon[0] : removeIcon;
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'clearIcon');
- clearIcon = Array.isArray(clearIcon) ? clearIcon[0] : clearIcon;
- var menuItemSelectedIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'menuItemSelectedIcon');
- menuItemSelectedIcon = Array.isArray(menuItemSelectedIcon) ? menuItemSelectedIcon[0] : menuItemSelectedIcon;
- var rest = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'suffixIcon', 'menuItemSelectedIcon']);
- var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-show-arrow', showArrow), _cls);
- var optionLabelProp = this.$props.optionLabelProp;
- if (this.isCombobox()) {
- // children 带 dom 结构时,无法填入输入框
- optionLabelProp = optionLabelProp || 'value';
- }
- var modeConfig = {
- multiple: mode === 'multiple',
- tags: mode === 'tags',
- combobox: this.isCombobox()
- };
- var finalRemoveIcon = removeIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(removeIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(removeIcon, { 'class': prefixCls + '-remove-icon' }) : removeIcon) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'close' },
- 'class': prefixCls + '-remove-icon' });
- var finalClearIcon = clearIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(clearIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(clearIcon, { 'class': prefixCls + '-clear-icon' }) : clearIcon) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'close-circle', theme: 'filled' },
- 'class': prefixCls + '-clear-icon' });
- var finalMenuItemSelectedIcon = menuItemSelectedIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(menuItemSelectedIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(menuItemSelectedIcon, { 'class': prefixCls + '-selected-icon' }) : menuItemSelectedIcon) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'check' },
- 'class': prefixCls + '-selected-icon' });
- var selectProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
- inputIcon: this.renderSuffixIcon(prefixCls),
- removeIcon: finalRemoveIcon,
- clearIcon: finalClearIcon,
- menuItemSelectedIcon: finalMenuItemSelectedIcon,
- showArrow: showArrow
- }, rest, modeConfig, {
- prefixCls: prefixCls,
- optionLabelProp: optionLabelProp || 'children',
- notFoundContent: this.getNotFoundContent(renderEmpty),
- maxTagPlaceholder: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'maxTagPlaceholder'),
- placeholder: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'placeholder'),
- children: options ? options.map(function (option) {
- var key = option.key,
- _option$label = option.label,
- label = _option$label === undefined ? option.title : _option$label,
- on = option.on,
- cls = option['class'],
- style = option.style,
- restOption = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(option, ['key', 'label', 'on', 'class', 'style']);
- return h(
- _vc_select__WEBPACK_IMPORTED_MODULE_7__["Option"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: key }, { props: restOption, on: on, 'class': cls, style: style }]),
- [label]
- );
- }) : Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])(this.$slots['default']),
- __propsSymbol__: Symbol(),
- dropdownRender: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'dropdownRender', {}, false),
- getPopupContainer: getPopupContainer || getContextPopupContainer
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this),
- 'class': cls,
- ref: 'vcSelect'
- };
- return h(_vc_select__WEBPACK_IMPORTED_MODULE_7__["Select"], selectProps);
- }
- };
- /* istanbul ignore next */
- Select.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_12__["default"]);
- Vue.component(Select.name, Select);
- Vue.component(Select.Option.name, Select.Option);
- Vue.component(Select.OptGroup.name, Select.OptGroup);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Select);
- /***/ }),
- /***/ "./components/select/style/index.js":
- /*!******************************************!*\
- !*** ./components/select/style/index.js ***!
- \******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/select/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/select/style/index.less":
- /*!********************************************!*\
- !*** ./components/select/style/index.less ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/skeleton/Avatar.jsx":
- /*!****************************************!*\
- !*** ./components/skeleton/Avatar.jsx ***!
- \****************************************/
- /*! exports provided: SkeletonAvatarProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonAvatarProps", function() { return SkeletonAvatarProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var skeletonAvatarProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['large', 'small', 'default']), _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number]),
- shape: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['circle', 'square'])
- };
- var SkeletonAvatarProps = _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(skeletonAvatarProps).loose;
- var Avatar = {
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(skeletonAvatarProps, {
- size: 'large'
- }),
- render: function render() {
- var _classNames, _classNames2;
- var h = arguments[0];
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- size = _$props.size,
- shape = _$props.shape;
- var sizeCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-sm', size === 'small'), _classNames));
- var shapeCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-circle', shape === 'circle'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-square', shape === 'square'), _classNames2));
- var sizeStyle = typeof size === 'number' ? {
- width: size + 'px',
- height: size + 'px',
- lineHeight: size + 'px'
- } : {};
- return h('span', { 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, sizeCls, shapeCls), style: sizeStyle });
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Avatar);
- /***/ }),
- /***/ "./components/skeleton/Paragraph.jsx":
- /*!*******************************************!*\
- !*** ./components/skeleton/Paragraph.jsx ***!
- \*******************************************/
- /*! exports provided: SkeletonParagraphProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonParagraphProps", function() { return SkeletonParagraphProps; });
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- var widthUnit = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string]);
- var skeletonParagraphProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- width: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([widthUnit, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(widthUnit)]),
- rows: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number
- };
- var SkeletonParagraphProps = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(skeletonParagraphProps);
- var Paragraph = {
- props: skeletonParagraphProps,
- methods: {
- getWidth: function getWidth(index) {
- var width = this.width,
- _rows = this.rows,
- rows = _rows === undefined ? 2 : _rows;
- if (Array.isArray(width)) {
- return width[index];
- }
- // last paragraph
- if (rows - 1 === index) {
- return width;
- }
- return undefined;
- }
- },
- render: function render() {
- var _this = this;
- var h = arguments[0];
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- rows = _$props.rows;
- var rowList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(Array(rows))).map(function (_, index) {
- var width = _this.getWidth(index);
- return h('li', { key: index, style: { width: typeof width === 'number' ? width + 'px' : width } });
- });
- return h(
- 'ul',
- { 'class': prefixCls },
- [rowList]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Paragraph);
- /***/ }),
- /***/ "./components/skeleton/Title.jsx":
- /*!***************************************!*\
- !*** ./components/skeleton/Title.jsx ***!
- \***************************************/
- /*! exports provided: SkeletonTitleProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonTitleProps", function() { return SkeletonTitleProps; });
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- var skeletonTitleProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string])
- };
- var SkeletonTitleProps = _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].shape(skeletonTitleProps);
- var Title = {
- props: skeletonTitleProps,
- render: function render() {
- var h = arguments[0];
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- width = _$props.width;
- var zWidth = typeof width === 'number' ? width + 'px' : width;
- return h('h3', { 'class': prefixCls, style: { width: zWidth } });
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Title);
- /***/ }),
- /***/ "./components/skeleton/index.jsx":
- /*!***************************************!*\
- !*** ./components/skeleton/index.jsx ***!
- \***************************************/
- /*! exports provided: SkeletonProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonProps", function() { return SkeletonProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Avatar */ "./components/skeleton/Avatar.jsx");
- /* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Title */ "./components/skeleton/Title.jsx");
- /* harmony import */ var _Paragraph__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Paragraph */ "./components/skeleton/Paragraph.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var SkeletonProps = {
- active: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _Avatar__WEBPACK_IMPORTED_MODULE_7__["SkeletonAvatarProps"], _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _Title__WEBPACK_IMPORTED_MODULE_8__["SkeletonTitleProps"]]),
- paragraph: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _Paragraph__WEBPACK_IMPORTED_MODULE_9__["SkeletonParagraphProps"]])
- };
- function getComponentProps(prop) {
- if (prop && (typeof prop === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(prop)) === 'object') {
- return prop;
- }
- return {};
- }
- function getAvatarBasicProps(hasTitle, hasParagraph) {
- if (hasTitle && !hasParagraph) {
- return { shape: 'square' };
- }
- return { shape: 'circle' };
- }
- function getTitleBasicProps(hasAvatar, hasParagraph) {
- if (!hasAvatar && hasParagraph) {
- return { width: '38%' };
- }
- if (hasAvatar && hasParagraph) {
- return { width: '50%' };
- }
- return {};
- }
- function getParagraphBasicProps(hasAvatar, hasTitle) {
- var basicProps = {};
- // Width
- if (!hasAvatar || !hasTitle) {
- basicProps.width = '61%';
- }
- // Rows
- if (!hasAvatar && hasTitle) {
- basicProps.rows = 3;
- } else {
- basicProps.rows = 2;
- }
- return basicProps;
- }
- var Skeleton = {
- name: 'ASkeleton',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(SkeletonProps, {
- avatar: false,
- title: true,
- paragraph: true
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
- } }
- },
- render: function render() {
- var h = arguments[0];
- var _$props = this.$props,
- customizePrefixCls = _$props.prefixCls,
- loading = _$props.loading,
- avatar = _$props.avatar,
- title = _$props.title,
- paragraph = _$props.paragraph,
- active = _$props.active;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
- if (loading || !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'loading')) {
- var _classNames;
- var hasAvatar = !!avatar || avatar === '';
- var hasTitle = !!title;
- var hasParagraph = !!paragraph;
- // Avatar
- var avatarNode = void 0;
- if (hasAvatar) {
- var avatarProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- prefixCls: prefixCls + '-avatar'
- }, getAvatarBasicProps(hasTitle, hasParagraph), getComponentProps(avatar))
- };
- avatarNode = h(
- 'div',
- { 'class': prefixCls + '-header' },
- [h(_Avatar__WEBPACK_IMPORTED_MODULE_7__["default"], avatarProps)]
- );
- }
- var contentNode = void 0;
- if (hasTitle || hasParagraph) {
- // Title
- var $title = void 0;
- if (hasTitle) {
- var titleProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- prefixCls: prefixCls + '-title'
- }, getTitleBasicProps(hasAvatar, hasParagraph), getComponentProps(title))
- };
- $title = h(_Title__WEBPACK_IMPORTED_MODULE_8__["default"], titleProps);
- }
- // Paragraph
- var paragraphNode = void 0;
- if (hasParagraph) {
- var paragraphProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- prefixCls: prefixCls + '-paragraph'
- }, getParagraphBasicProps(hasAvatar, hasTitle), getComponentProps(paragraph))
- };
- paragraphNode = h(_Paragraph__WEBPACK_IMPORTED_MODULE_9__["default"], paragraphProps);
- }
- contentNode = h(
- 'div',
- { 'class': prefixCls + '-content' },
- [$title, paragraphNode]
- );
- }
- var cls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-with-avatar', hasAvatar), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-active', active), _classNames));
- return h(
- 'div',
- { 'class': cls },
- [avatarNode, contentNode]
- );
- }
- var children = this.$slots['default'];
- return children && children.length === 1 ? children[0] : h('span', [children]);
- }
- };
- /* istanbul ignore next */
- Skeleton.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
- Vue.component(Skeleton.name, Skeleton);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Skeleton);
- /***/ }),
- /***/ "./components/skeleton/style/index.js":
- /*!********************************************!*\
- !*** ./components/skeleton/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/skeleton/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/skeleton/style/index.less":
- /*!**********************************************!*\
- !*** ./components/skeleton/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/slider/index.jsx":
- /*!*************************************!*\
- !*** ./components/slider/index.jsx ***!
- \*************************************/
- /*! exports provided: SliderProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderProps", function() { return SliderProps; });
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _vc_slider_src_Slider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-slider/src/Slider */ "./components/vc-slider/src/Slider.jsx");
- /* harmony import */ var _vc_slider_src_Range__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-slider/src/Range */ "./components/vc-slider/src/Range.jsx");
- /* harmony import */ var _vc_slider_src_Handle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-slider/src/Handle */ "./components/vc-slider/src/Handle.jsx");
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../tooltip/abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
- // export interface SliderMarks {
- // [key]: React.ReactNode | {
- // style: React.CSSProperties,
- // label: React.ReactNode,
- // };
- // }
- // const SliderMarks = PropTypes.shape({
- // style: PropTypes.object,
- // label: PropTypes.any,
- // }).loose
- var tooltipProps = Object(_tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_12__["default"])();
- var SliderProps = function SliderProps() {
- return {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- tooltipPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- range: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- step: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any]),
- marks: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number)]),
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number)]),
- included: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- tipFormatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
- tooltipVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- tooltipPlacement: tooltipProps.placement,
- getTooltipPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func
- };
- };
- var Slider = {
- name: 'ASlider',
- model: {
- prop: 'value',
- event: 'change'
- },
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__["ConfigConsumerProps"];
- } }
- },
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, SliderProps(), {
- tipFormatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]).def(function (value) {
- return value.toString();
- })
- }),
- data: function data() {
- return {
- visibles: {}
- };
- },
- methods: {
- toggleTooltipVisible: function toggleTooltipVisible(index, visible) {
- this.setState(function (_ref) {
- var visibles = _ref.visibles;
- return {
- visibles: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, visibles, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, index, visible))
- };
- });
- },
- handleWithTooltip: function handleWithTooltip(tooltipPrefixCls, prefixCls, _ref2) {
- var _this = this;
- var value = _ref2.value,
- dragging = _ref2.dragging,
- index = _ref2.index,
- directives = _ref2.directives,
- on = _ref2.on,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, ['value', 'dragging', 'index', 'directives', 'on']);
- var h = this.$createElement;
- var _$props = this.$props,
- tipFormatter = _$props.tipFormatter,
- tooltipVisible = _$props.tooltipVisible,
- tooltipPlacement = _$props.tooltipPlacement,
- getTooltipPopupContainer = _$props.getTooltipPopupContainer;
- var visibles = this.visibles;
- var isTipFormatter = tipFormatter ? visibles[index] || dragging : false;
- var visible = tooltipVisible || tooltipVisible === undefined && isTipFormatter;
- var tooltipProps = {
- props: {
- prefixCls: tooltipPrefixCls,
- title: tipFormatter ? tipFormatter(value) : '',
- visible: visible,
- placement: tooltipPlacement || 'top',
- transitionName: 'zoom-down',
- overlayClassName: prefixCls + '-tooltip',
- getPopupContainer: getTooltipPopupContainer || function () {
- return document.body;
- }
- },
- key: index
- };
- var handleProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- value: value
- }, restProps),
- directives: directives,
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, on, {
- mouseenter: function mouseenter() {
- return _this.toggleTooltipVisible(index, true);
- },
- mouseleave: function mouseleave() {
- return _this.toggleTooltipVisible(index, false);
- }
- })
- };
- return h(
- _tooltip__WEBPACK_IMPORTED_MODULE_9__["default"],
- tooltipProps,
- [h(_vc_slider_src_Handle__WEBPACK_IMPORTED_MODULE_8__["default"], handleProps)]
- );
- },
- focus: function focus() {
- this.$refs.sliderRef.focus();
- },
- blur: function blur() {
- this.$refs.sliderRef.blur();
- }
- },
- render: function render() {
- var _this2 = this;
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this),
- range = _getOptionProps.range,
- customizePrefixCls = _getOptionProps.prefixCls,
- customizeTooltipPrefixCls = _getOptionProps.tooltipPrefixCls,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['range', 'prefixCls', 'tooltipPrefixCls']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('slider', customizePrefixCls);
- var tooltipPrefixCls = getPrefixCls('tooltip', customizeTooltipPrefixCls);
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this);
- if (range) {
- var vcRangeProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, {
- prefixCls: prefixCls,
- tooltipPrefixCls: tooltipPrefixCls,
- handle: function handle(info) {
- return _this2.handleWithTooltip(tooltipPrefixCls, prefixCls, info);
- }
- }),
- ref: 'sliderRef',
- on: listeners
- };
- return h(_vc_slider_src_Range__WEBPACK_IMPORTED_MODULE_7__["default"], vcRangeProps);
- }
- var vcSliderProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, {
- prefixCls: prefixCls,
- tooltipPrefixCls: tooltipPrefixCls,
- handle: function handle(info) {
- return _this2.handleWithTooltip(tooltipPrefixCls, prefixCls, info);
- }
- }),
- ref: 'sliderRef',
- on: listeners
- };
- return h(_vc_slider_src_Slider__WEBPACK_IMPORTED_MODULE_6__["default"], vcSliderProps);
- }
- };
- /* istanbul ignore next */
- Slider.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
- Vue.component(Slider.name, Slider);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Slider);
- /***/ }),
- /***/ "./components/slider/style/index.js":
- /*!******************************************!*\
- !*** ./components/slider/style/index.js ***!
- \******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/slider/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/slider/style/index.less":
- /*!********************************************!*\
- !*** ./components/slider/style/index.less ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/space/index.jsx":
- /*!************************************!*\
- !*** ./components/space/index.jsx ***!
- \************************************/
- /*! exports provided: SpaceSizeType, SpaceProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpaceSizeType", function() { return SpaceSizeType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpaceProps", function() { return SpaceProps; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var SpaceSizeType = _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['small', 'middle', 'large'])]);
- var spaceSize = {
- small: 8,
- middle: 16,
- large: 24
- };
- var SpaceProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- size: SpaceSizeType,
- direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['horizontal', 'vertical']),
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['start', 'end', 'center', 'baseline'])
- };
- var Space = {
- functional: true,
- name: 'ASpace',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(SpaceProps, {
- size: 'small',
- direction: 'horizontal'
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
- } }
- },
- render: function render(h, content) {
- var _ref;
- var customizePrefixCls = content.prefixCls,
- configProvider = content.injections.configProvider,
- children = content.children;
- var _content$props = content.props,
- align = _content$props.align,
- size = _content$props.size,
- direction = _content$props.direction;
- var getPrefixCls = configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('space', customizePrefixCls);
- var items = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])(children);
- var len = items.length;
- if (len === 0) {
- return null;
- }
- var mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
- var someSpaceClass = [(_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-' + direction, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-align-' + mergedAlign, mergedAlign), _ref)];
- if (content.data['class']) {
- someSpaceClass.push(content.data['class']);
- }
- var itemClassName = prefixCls + '-item';
- var marginDirection = 'marginRight'; // directionConfig === 'rtl' ? 'marginLeft' : 'marginRight';
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([content.data, { 'class': someSpaceClass }]),
- [items.map(function (child, i) {
- return h(
- 'div',
- {
- 'class': itemClassName,
- key: itemClassName + '-' + i,
- style: i === len - 1 ? {} : babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, direction === 'vertical' ? 'marginBottom' : marginDirection, typeof size === 'string' ? spaceSize[size] + 'px' : size + 'px')
- },
- [child]
- );
- })]
- );
- }
- };
- /* istanbul ignore next */
- Space.install = function (Vue) {
- Vue.component(Space.name, Space);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Space);
- /***/ }),
- /***/ "./components/space/style/index.js":
- /*!*****************************************!*\
- !*** ./components/space/style/index.js ***!
- \*****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/space/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/space/style/index.less":
- /*!*******************************************!*\
- !*** ./components/space/style/index.less ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/spin/Spin.jsx":
- /*!**********************************!*\
- !*** ./components/spin/Spin.jsx ***!
- \**********************************/
- /*! exports provided: SpinSize, SpinProps, setDefaultIndicator, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpinSize", function() { return SpinSize; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpinProps", function() { return SpinProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDefaultIndicator", function() { return setDefaultIndicator; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var SpinSize = _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['small', 'default', 'large']);
- var SpinProps = function SpinProps() {
- return {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- spinning: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- size: SpinSize,
- wrapperClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- tip: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- delay: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- indicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
- };
- };
- // Render indicator
- var defaultIndicator = void 0;
- function shouldDelay(spinning, delay) {
- return !!spinning && !!delay && !isNaN(Number(delay));
- }
- function setDefaultIndicator(Content) {
- defaultIndicator = typeof Content.indicator === 'function' ? Content.indicator : function (h) {
- return h(Content.indicator);
- };
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ASpin',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(SpinProps(), {
- size: 'default',
- spinning: true,
- wrapperClassName: ''
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var spinning = this.spinning,
- delay = this.delay;
- var shouldBeDelayed = shouldDelay(spinning, delay);
- this.originalUpdateSpinning = this.updateSpinning;
- this.debouncifyUpdateSpinning(this.$props);
- return {
- sSpinning: spinning && !shouldBeDelayed
- };
- },
- mounted: function mounted() {
- this.updateSpinning();
- },
- updated: function updated() {
- var _this = this;
- this.$nextTick(function () {
- _this.debouncifyUpdateSpinning();
- _this.updateSpinning();
- });
- },
- beforeDestroy: function beforeDestroy() {
- this.cancelExistingSpin();
- },
- methods: {
- debouncifyUpdateSpinning: function debouncifyUpdateSpinning(props) {
- var _ref = props || this.$props,
- delay = _ref.delay;
- if (delay) {
- this.cancelExistingSpin();
- this.updateSpinning = lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default()(this.originalUpdateSpinning, delay);
- }
- },
- updateSpinning: function updateSpinning() {
- var spinning = this.spinning,
- sSpinning = this.sSpinning;
- if (sSpinning !== spinning) {
- this.setState({ sSpinning: spinning });
- }
- },
- cancelExistingSpin: function cancelExistingSpin() {
- var updateSpinning = this.updateSpinning;
- if (updateSpinning && updateSpinning.cancel) {
- updateSpinning.cancel();
- }
- },
- getChildren: function getChildren() {
- if (this.$slots && this.$slots['default']) {
- return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(this.$slots['default']);
- }
- return null;
- },
- renderIndicator: function renderIndicator(h, prefixCls) {
- // const h = this.$createElement
- var dotClassName = prefixCls + '-dot';
- var indicator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'indicator');
- // should not be render default indicator when indicator value is null
- if (indicator === null) {
- return null;
- }
- if (Array.isArray(indicator)) {
- indicator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(indicator);
- indicator = indicator.length === 1 ? indicator[0] : indicator;
- }
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(indicator)) {
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(indicator, { 'class': dotClassName });
- }
- if (defaultIndicator && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(defaultIndicator(h))) {
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(defaultIndicator(h), { 'class': dotClassName });
- }
- return h(
- 'span',
- { 'class': dotClassName + ' ' + prefixCls + '-dot-spin' },
- [h('i', { 'class': prefixCls + '-dot-item' }), h('i', { 'class': prefixCls + '-dot-item' }), h('i', { 'class': prefixCls + '-dot-item' }), h('i', { 'class': prefixCls + '-dot-item' })]
- );
- }
- },
- render: function render(h) {
- var _spinClassName;
- var _$props = this.$props,
- size = _$props.size,
- customizePrefixCls = _$props.prefixCls,
- tip = _$props.tip,
- wrapperClassName = _$props.wrapperClassName,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_$props, ['size', 'prefixCls', 'tip', 'wrapperClassName']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('spin', customizePrefixCls);
- var sSpinning = this.sSpinning;
- var spinClassName = (_spinClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-spinning', sSpinning), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-show-text', !!tip), _spinClassName);
- var spinElement = h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([restProps, { 'class': spinClassName }]),
- [this.renderIndicator(h, prefixCls), tip ? h(
- 'div',
- { 'class': prefixCls + '-text' },
- [tip]
- ) : null]
- );
- var children = this.getChildren();
- if (children) {
- var _containerClassName;
- var containerClassName = (_containerClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_containerClassName, prefixCls + '-container', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_containerClassName, prefixCls + '-blur', sSpinning), _containerClassName);
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this) }, {
- 'class': [prefixCls + '-nested-loading', wrapperClassName]
- }]),
- [sSpinning && h(
- 'div',
- { key: 'loading' },
- [spinElement]
- ), h(
- 'div',
- { 'class': containerClassName, key: 'container' },
- [children]
- )]
- );
- }
- return spinElement;
- }
- });
- /***/ }),
- /***/ "./components/spin/index.js":
- /*!**********************************!*\
- !*** ./components/spin/index.js ***!
- \**********************************/
- /*! exports provided: SpinProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Spin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Spin */ "./components/spin/Spin.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SpinProps", function() { return _Spin__WEBPACK_IMPORTED_MODULE_0__["SpinProps"]; });
- _Spin__WEBPACK_IMPORTED_MODULE_0__["default"].setDefaultIndicator = _Spin__WEBPACK_IMPORTED_MODULE_0__["setDefaultIndicator"];
- /* istanbul ignore next */
- _Spin__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_Spin__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Spin__WEBPACK_IMPORTED_MODULE_0__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Spin__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/spin/style/index.js":
- /*!****************************************!*\
- !*** ./components/spin/style/index.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/spin/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/spin/style/index.less":
- /*!******************************************!*\
- !*** ./components/spin/style/index.less ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/statistic/Countdown.jsx":
- /*!********************************************!*\
- !*** ./components/statistic/Countdown.jsx ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _Statistic__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Statistic */ "./components/statistic/Statistic.jsx");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/statistic/utils.js");
- var REFRESH_INTERVAL = 1000 / 30;
- function getTime(value) {
- return Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__)(value).valueOf();
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AStatisticCountdown',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(_Statistic__WEBPACK_IMPORTED_MODULE_5__["StatisticProps"], {
- format: 'HH:mm:ss'
- }),
- created: function created() {
- this.countdownId = undefined;
- },
- mounted: function mounted() {
- this.syncTimer();
- },
- updated: function updated() {
- this.syncTimer();
- },
- beforeDestroy: function beforeDestroy() {
- this.stopTimer();
- },
- methods: {
- syncTimer: function syncTimer() {
- var value = this.$props.value;
- var timestamp = getTime(value);
- if (timestamp >= Date.now()) {
- this.startTimer();
- } else {
- this.stopTimer();
- }
- },
- startTimer: function startTimer() {
- var _this = this;
- if (this.countdownId) return;
- this.countdownId = window.setInterval(function () {
- _this.$refs.statistic.$forceUpdate();
- _this.syncTimer();
- }, REFRESH_INTERVAL);
- },
- stopTimer: function stopTimer() {
- var value = this.$props.value;
- if (this.countdownId) {
- clearInterval(this.countdownId);
- this.countdownId = undefined;
- var timestamp = getTime(value);
- if (timestamp < Date.now()) {
- this.$emit('finish');
- }
- }
- },
- formatCountdown: function formatCountdown(_ref) {
- var value = _ref.value,
- config = _ref.config;
- var format = this.$props.format;
- return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["formatCountdown"])(value, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, config, { format: format }));
- },
- valueRenderHtml: function valueRenderHtml(node) {
- return node;
- }
- },
- render: function render() {
- var h = arguments[0];
- return h(_Statistic__WEBPACK_IMPORTED_MODULE_5__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- ref: 'statistic'
- }, {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, {
- valueRender: this.valueRenderHtml,
- formatter: this.formatCountdown
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
- }]));
- }
- });
- /***/ }),
- /***/ "./components/statistic/Number.jsx":
- /*!*****************************************!*\
- !*** ./components/statistic/Number.jsx ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var lodash_padEnd__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/padEnd */ "./node_modules/lodash/padEnd.js");
- /* harmony import */ var lodash_padEnd__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_padEnd__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AStatisticNumber',
- functional: true,
- render: function render(h, context) {
- var _context$props = context.props,
- value = _context$props.value,
- formatter = _context$props.formatter,
- precision = _context$props.precision,
- decimalSeparator = _context$props.decimalSeparator,
- _context$props$groupS = _context$props.groupSeparator,
- groupSeparator = _context$props$groupS === undefined ? '' : _context$props$groupS,
- prefixCls = _context$props.prefixCls;
- var valueNode = void 0;
- if (typeof formatter === 'function') {
- // Customize formatter
- valueNode = formatter({ value: value, h: h });
- } else {
- // Internal formatter
- var val = String(value);
- var cells = val.match(/^(-?)(\d*)(\.(\d+))?$/);
- // Process if illegal number
- if (!cells) {
- valueNode = val;
- } else {
- var negative = cells[1];
- var int = cells[2] || '0';
- var decimal = cells[4] || '';
- int = int.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
- if (typeof precision === 'number') {
- decimal = lodash_padEnd__WEBPACK_IMPORTED_MODULE_0___default()(decimal, precision, '0').slice(0, precision);
- }
- if (decimal) {
- decimal = '' + decimalSeparator + decimal;
- }
- valueNode = [h(
- 'span',
- { key: 'int', 'class': prefixCls + '-content-value-int' },
- [negative, int]
- ), decimal && h(
- 'span',
- { key: 'decimal', 'class': prefixCls + '-content-value-decimal' },
- [decimal]
- )];
- }
- }
- return h(
- 'span',
- { 'class': prefixCls + '-content-value' },
- [valueNode]
- );
- }
- });
- /***/ }),
- /***/ "./components/statistic/Statistic.jsx":
- /*!********************************************!*\
- !*** ./components/statistic/Statistic.jsx ***!
- \********************************************/
- /*! exports provided: StatisticProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticProps", function() { return StatisticProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _Number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Number */ "./components/statistic/Number.jsx");
- var StatisticProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- decimalSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- groupSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object]),
- valueStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- valueRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- formatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- precision: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- suffix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AStatistic',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(StatisticProps, {
- decimalSeparator: '.',
- groupSeparator: ','
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
- } }
- },
- render: function render() {
- var h = arguments[0];
- var _$props = this.$props,
- customizePrefixCls = _$props.prefixCls,
- _$props$value = _$props.value,
- value = _$props$value === undefined ? 0 : _$props$value,
- valueStyle = _$props.valueStyle,
- valueRender = _$props.valueRender;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('statistic', customizePrefixCls);
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'title');
- var prefix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'prefix');
- var suffix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'suffix');
- var formatter = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'formatter', {}, false);
- var valueNode = h(_Number__WEBPACK_IMPORTED_MODULE_4__["default"], { props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, { prefixCls: prefixCls, value: value, formatter: formatter }) });
- if (valueRender) {
- valueNode = valueRender(valueNode);
- }
- return h(
- 'div',
- { 'class': prefixCls },
- [title && h(
- 'div',
- { 'class': prefixCls + '-title' },
- [title]
- ), h(
- 'div',
- { style: valueStyle, 'class': prefixCls + '-content' },
- [prefix && h(
- 'span',
- { 'class': prefixCls + '-content-prefix' },
- [prefix]
- ), valueNode, suffix && h(
- 'span',
- { 'class': prefixCls + '-content-suffix' },
- [suffix]
- )]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/statistic/index.js":
- /*!***************************************!*\
- !*** ./components/statistic/index.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Statistic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Statistic */ "./components/statistic/Statistic.jsx");
- /* harmony import */ var _Countdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Countdown */ "./components/statistic/Countdown.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].Countdown = _Countdown__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
- Vue.component(_Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Statistic__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].Countdown.name, _Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].Countdown);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Statistic__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/statistic/style/index.js":
- /*!*********************************************!*\
- !*** ./components/statistic/style/index.js ***!
- \*********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/statistic/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/statistic/style/index.less":
- /*!***********************************************!*\
- !*** ./components/statistic/style/index.less ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/statistic/utils.js":
- /*!***************************************!*\
- !*** ./components/statistic/utils.js ***!
- \***************************************/
- /*! exports provided: formatTimeStr, formatCountdown */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatTimeStr", function() { return formatTimeStr; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatCountdown", function() { return formatCountdown; });
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var lodash_padStart__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/padStart */ "./node_modules/lodash/padStart.js");
- /* harmony import */ var lodash_padStart__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_padStart__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
- // Countdown
- var timeUnits = [['Y', 1000 * 60 * 60 * 24 * 365], // years
- ['M', 1000 * 60 * 60 * 24 * 30], // months
- ['D', 1000 * 60 * 60 * 24], // days
- ['H', 1000 * 60 * 60], // hours
- ['m', 1000 * 60], // minutes
- ['s', 1000], // seconds
- ['S', 1]];
- function formatTimeStr(duration, format) {
- var leftDuration = duration;
- var escapeRegex = /\[[^\]]*\]/g;
- var keepList = (format.match(escapeRegex) || []).map(function (str) {
- return str.slice(1, -1);
- });
- var templateText = format.replace(escapeRegex, '[]');
- var replacedText = timeUnits.reduce(function (current, _ref) {
- var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 2),
- name = _ref2[0],
- unit = _ref2[1];
- if (current.indexOf(name) !== -1) {
- var value = Math.floor(leftDuration / unit);
- leftDuration -= value * unit;
- return current.replace(new RegExp(name + '+', 'g'), function (match) {
- var len = match.length;
- return lodash_padStart__WEBPACK_IMPORTED_MODULE_2___default()(value.toString(), len, '0');
- });
- }
- return current;
- }, templateText);
- var index = 0;
- return replacedText.replace(escapeRegex, function () {
- var match = keepList[index];
- index += 1;
- return match;
- });
- }
- function formatCountdown(value, config) {
- var _config$format = config.format,
- format = _config$format === undefined ? '' : _config$format;
- var target = Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(value).valueOf();
- var current = Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)().valueOf();
- var diff = Math.max(target - current, 0);
- return formatTimeStr(diff, format);
- }
- /***/ }),
- /***/ "./components/steps/index.jsx":
- /*!************************************!*\
- !*** ./components/steps/index.jsx ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _vc_steps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-steps */ "./components/vc-steps/index.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var getStepsProps = function getStepsProps() {
- var defaultProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var props = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- iconPrefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- current: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- initial: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- labelPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical']).def('horizontal'),
- status: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['wait', 'process', 'finish', 'error']),
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['default', 'small']),
- direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical']),
- progressDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['default', 'navigation'])
- };
- return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(props, defaultProps);
- };
- var Steps = {
- name: 'ASteps',
- props: getStepsProps({
- current: 0
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
- } }
- },
- model: {
- prop: 'current',
- event: 'change'
- },
- Step: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_steps__WEBPACK_IMPORTED_MODULE_3__["default"].Step, { name: 'AStep' }),
- render: function render() {
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls,
- customizeIconPrefixCls = props.iconPrefix;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('steps', customizePrefixCls);
- var iconPrefix = getPrefixCls('', customizeIconPrefixCls);
- var icons = {
- finish: h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: { type: 'check' },
- 'class': prefixCls + '-finish-icon' }),
- error: h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: { type: 'close' },
- 'class': prefixCls + '-error-icon' })
- };
- var stepsProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- icons: icons,
- iconPrefix: iconPrefix,
- prefixCls: prefixCls
- }, props),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
- scopedSlots: this.$scopedSlots
- };
- return h(
- _vc_steps__WEBPACK_IMPORTED_MODULE_3__["default"],
- stepsProps,
- [this.$slots['default']]
- );
- }
- };
- /* istanbul ignore next */
- Steps.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
- Vue.component(Steps.name, Steps);
- Vue.component(Steps.Step.name, Steps.Step);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Steps);
- /***/ }),
- /***/ "./components/steps/style/index.js":
- /*!*****************************************!*\
- !*** ./components/steps/style/index.js ***!
- \*****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/steps/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/steps/style/index.less":
- /*!*******************************************!*\
- !*** ./components/steps/style/index.less ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/style/index.less":
- /*!*************************************!*\
- !*** ./components/style/index.less ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/switch/index.jsx":
- /*!*************************************!*\
- !*** ./components/switch/index.jsx ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _vc_switch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-switch */ "./components/vc-switch/index.js");
- /* harmony import */ var _util_wave__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/wave */ "./components/_util/wave.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- var Switch = {
- name: 'ASwitch',
- __ANT_SWITCH: true,
- model: {
- prop: 'checked',
- event: 'change'
- },
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- // size=default and size=large are the same
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['small', 'default', 'large']),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- checkedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- unCheckedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
- checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- methods: {
- focus: function focus() {
- this.$refs.refSwitchNode.focus();
- },
- blur: function blur() {
- this.$refs.refSwitchNode.blur();
- }
- },
- created: function created() {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'checked') || !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'value'), 'Switch', '`value` is not validate prop, do you mean `checked`?');
- },
- render: function render() {
- var _classes;
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- size = _getOptionProps.size,
- loading = _getOptionProps.loading,
- disabled = _getOptionProps.disabled,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps, ['prefixCls', 'size', 'loading', 'disabled']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('switch', customizePrefixCls);
- var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, prefixCls + '-small', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, prefixCls + '-loading', loading), _classes);
- var loadingIcon = loading ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: { type: 'loading' },
- 'class': prefixCls + '-loading-icon' }) : null;
- var switchProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps, {
- prefixCls: prefixCls,
- loadingIcon: loadingIcon,
- checkedChildren: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'checkedChildren'),
- unCheckedChildren: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'unCheckedChildren'),
- disabled: disabled || loading
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
- 'class': classes,
- ref: 'refSwitchNode'
- };
- return h(
- _util_wave__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: { insertExtraNode: true }
- },
- [h(_vc_switch__WEBPACK_IMPORTED_MODULE_5__["default"], switchProps)]
- );
- }
- };
- /* istanbul ignore next */
- Switch.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
- Vue.component(Switch.name, Switch);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Switch);
- /***/ }),
- /***/ "./components/switch/style/index.js":
- /*!******************************************!*\
- !*** ./components/switch/style/index.js ***!
- \******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/switch/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/switch/style/index.less":
- /*!********************************************!*\
- !*** ./components/switch/style/index.less ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/table/Column.jsx":
- /*!*************************************!*\
- !*** ./components/table/Column.jsx ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ATableColumn',
- props: _interface__WEBPACK_IMPORTED_MODULE_0__["ColumnProps"]
- });
- /***/ }),
- /***/ "./components/table/ColumnGroup.jsx":
- /*!******************************************!*\
- !*** ./components/table/ColumnGroup.jsx ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ATableColumnGroup',
- props: {
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['left', 'right'])]),
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- },
- __ANT_TABLE_COLUMN_GROUP: true
- });
- /***/ }),
- /***/ "./components/table/FilterDropdownMenuWrapper.jsx":
- /*!********************************************************!*\
- !*** ./components/table/FilterDropdownMenuWrapper.jsx ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'FilterDropdownMenuWrapper',
- methods: {
- handelClick: function handelClick(e) {
- e.stopPropagation();
- //this.$emit('click', e);
- }
- },
- render: function render() {
- var h = arguments[0];
- var $slots = this.$slots,
- handelClick = this.handelClick;
- return h(
- 'div',
- {
- on: {
- 'click': handelClick
- }
- },
- [$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/table/SelectionBox.jsx":
- /*!*******************************************!*\
- !*** ./components/table/SelectionBox.jsx ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
- /* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../radio */ "./components/radio/index.js");
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'SelectionBox',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
- props: _interface__WEBPACK_IMPORTED_MODULE_4__["SelectionBoxProps"],
- computed: {
- checked: function checked() {
- var _$props = this.$props,
- store = _$props.store,
- defaultSelection = _$props.defaultSelection,
- rowIndex = _$props.rowIndex;
- var checked = false;
- if (store.selectionDirty) {
- checked = store.selectedRowKeys.indexOf(rowIndex) >= 0;
- } else {
- checked = store.selectedRowKeys.indexOf(rowIndex) >= 0 || defaultSelection.indexOf(rowIndex) >= 0;
- }
- return checked;
- }
- },
- render: function render() {
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
- type = _getOptionProps.type,
- rowIndex = _getOptionProps.rowIndex,
- rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['type', 'rowIndex']);
- var checked = this.checked;
- var checkboxProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- checked: checked
- }, rest),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
- };
- if (type === 'radio') {
- checkboxProps.props.value = rowIndex;
- return h(_radio__WEBPACK_IMPORTED_MODULE_3__["default"], checkboxProps);
- }
- return h(_checkbox__WEBPACK_IMPORTED_MODULE_2__["default"], checkboxProps);
- }
- });
- /***/ }),
- /***/ "./components/table/SelectionCheckboxAll.jsx":
- /*!***************************************************!*\
- !*** ./components/table/SelectionCheckboxAll.jsx ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
- /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dropdown */ "./components/dropdown/index.js");
- /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../menu */ "./components/menu/index.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- function checkSelection(_ref) {
- var store = _ref.store,
- getCheckboxPropsByItem = _ref.getCheckboxPropsByItem,
- getRecordKey = _ref.getRecordKey,
- data = _ref.data,
- type = _ref.type,
- byDefaultChecked = _ref.byDefaultChecked;
- return byDefaultChecked ? data[type](function (item, i) {
- return getCheckboxPropsByItem(item, i).defaultChecked;
- }) : data[type](function (item, i) {
- return store.selectedRowKeys.indexOf(getRecordKey(item, i)) >= 0;
- });
- }
- function getIndeterminateState(props) {
- var store = props.store,
- data = props.data;
- if (!data.length) {
- return false;
- }
- var someCheckedNotByDefaultChecked = checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- data: data,
- type: 'some',
- byDefaultChecked: false
- })) && !checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- data: data,
- type: 'every',
- byDefaultChecked: false
- }));
- var someCheckedByDefaultChecked = checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- data: data,
- type: 'some',
- byDefaultChecked: true
- })) && !checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- data: data,
- type: 'every',
- byDefaultChecked: true
- }));
- if (store.selectionDirty) {
- return someCheckedNotByDefaultChecked;
- }
- return someCheckedNotByDefaultChecked || someCheckedByDefaultChecked;
- }
- function getCheckState(props) {
- var store = props.store,
- data = props.data;
- if (!data.length) {
- return false;
- }
- if (store.selectionDirty) {
- return checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- data: data,
- type: 'every',
- byDefaultChecked: false
- }));
- }
- return checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- data: data,
- type: 'every',
- byDefaultChecked: false
- })) || checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- data: data,
- type: 'every',
- byDefaultChecked: true
- }));
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'SelectionCheckboxAll',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
- props: _interface__WEBPACK_IMPORTED_MODULE_7__["SelectionCheckboxAllProps"],
- data: function data() {
- var props = this.$props;
- this.defaultSelections = props.hideDefaultSelections ? [] : [{
- key: 'all',
- text: props.locale.selectAll
- }, {
- key: 'invert',
- text: props.locale.selectInvert
- }];
- return {
- checked: getCheckState(props),
- indeterminate: getIndeterminateState(props)
- };
- },
- watch: {
- $props: {
- handler: function handler() {
- this.setCheckState(this.$props);
- },
- deep: true,
- immediate: true
- }
- },
- methods: {
- checkSelection: function checkSelection(props, data, type, byDefaultChecked) {
- var _ref2 = props || this.$props,
- store = _ref2.store,
- getCheckboxPropsByItem = _ref2.getCheckboxPropsByItem,
- getRecordKey = _ref2.getRecordKey;
- // type should be 'every' | 'some'
- if (type === 'every' || type === 'some') {
- return byDefaultChecked ? data[type](function (item, i) {
- return getCheckboxPropsByItem(item, i).props.defaultChecked;
- }) : data[type](function (item, i) {
- return store.selectedRowKeys.indexOf(getRecordKey(item, i)) >= 0;
- });
- }
- return false;
- },
- setCheckState: function setCheckState(props) {
- var checked = getCheckState(props);
- var indeterminate = getIndeterminateState(props);
- this.setState(function (prevState) {
- var newState = {};
- if (indeterminate !== prevState.indeterminate) {
- newState.indeterminate = indeterminate;
- }
- if (checked !== prevState.checked) {
- newState.checked = checked;
- }
- return newState;
- });
- },
- handleSelectAllChange: function handleSelectAllChange(e) {
- var checked = e.target.checked;
- this.$emit('select', checked ? 'all' : 'removeAll', 0, null);
- },
- renderMenus: function renderMenus(selections) {
- var _this = this;
- var h = this.$createElement;
- return selections.map(function (selection, index) {
- return h(
- _menu__WEBPACK_IMPORTED_MODULE_4__["default"].Item,
- { key: selection.key || index },
- [h(
- 'div',
- {
- on: {
- 'click': function click() {
- _this.$emit('select', selection.key, index, selection.onSelect);
- }
- }
- },
- [selection.text]
- )]
- );
- });
- }
- },
- render: function render() {
- var h = arguments[0];
- var disabled = this.disabled,
- prefixCls = this.prefixCls,
- selections = this.selections,
- getPopupContainer = this.getPopupContainer,
- checked = this.checked,
- indeterminate = this.indeterminate;
- var selectionPrefixCls = prefixCls + '-selection';
- var customSelections = null;
- if (selections) {
- var newSelections = Array.isArray(selections) ? this.defaultSelections.concat(selections) : this.defaultSelections;
- var menu = h(
- _menu__WEBPACK_IMPORTED_MODULE_4__["default"],
- { 'class': selectionPrefixCls + '-menu', attrs: { selectedKeys: [] }
- },
- [this.renderMenus(newSelections)]
- );
- customSelections = newSelections.length > 0 ? h(
- _dropdown__WEBPACK_IMPORTED_MODULE_3__["default"],
- {
- attrs: { getPopupContainer: getPopupContainer }
- },
- [h(
- 'template',
- { slot: 'overlay' },
- [menu]
- ), h(
- 'div',
- { 'class': selectionPrefixCls + '-down' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_5__["default"], {
- attrs: { type: 'down' }
- })]
- )]
- ) : null;
- }
- return h(
- 'div',
- { 'class': selectionPrefixCls },
- [h(_checkbox__WEBPACK_IMPORTED_MODULE_2__["default"], {
- 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, selectionPrefixCls + '-select-all-custom', customSelections)),
- attrs: { checked: checked,
- indeterminate: indeterminate,
- disabled: disabled
- },
- on: {
- 'change': this.handleSelectAllChange
- }
- }), customSelections]
- );
- }
- });
- /***/ }),
- /***/ "./components/table/Table.jsx":
- /*!************************************!*\
- !*** ./components/table/Table.jsx ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _vc_table__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-table */ "./components/vc-table/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_7__);
- /* harmony import */ var _filterDropdown__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./filterDropdown */ "./components/table/filterDropdown.jsx");
- /* harmony import */ var _SelectionBox__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SelectionBox */ "./components/table/SelectionBox.jsx");
- /* harmony import */ var _SelectionCheckboxAll__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SelectionCheckboxAll */ "./components/table/SelectionCheckboxAll.jsx");
- /* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Column */ "./components/table/Column.jsx");
- /* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ColumnGroup */ "./components/table/ColumnGroup.jsx");
- /* harmony import */ var _createBodyRow__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./createBodyRow */ "./components/table/createBodyRow.jsx");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./util */ "./components/table/util.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
- /* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../pagination */ "./components/pagination/index.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _util_scrollTo__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../_util/scrollTo */ "./components/_util/scrollTo.js");
- /* harmony import */ var _util_transButton__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../_util/transButton */ "./components/_util/transButton.jsx");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_27__);
- function noop() {}
- function stopPropagation(e) {
- e.stopPropagation();
- }
- function getRowSelection(props) {
- return props.rowSelection || {};
- }
- function getColumnKey(column, index) {
- return column.key || column.dataIndex || index;
- }
- function isSameColumn(a, b) {
- if (a && b && a.key && a.key === b.key) {
- return true;
- }
- return a === b || shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(a, b, function (value, other) {
- // https://github.com/ant-design/ant-design/issues/12737
- if (typeof value === 'function' && typeof other === 'function') {
- return value === other || value.toString() === other.toString();
- }
- // https://github.com/ant-design/ant-design/issues/19398
- if (Array.isArray(value) && Array.isArray(other)) {
- return value === other || shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(value, other);
- }
- });
- }
- var defaultPagination = {
- onChange: noop,
- onShowSizeChange: noop
- };
- /**
- * Avoid creating new object, so that parent component's shouldComponentUpdate
- * can works appropriately。
- */
- var emptyObject = {};
- var createComponents = function createComponents() {
- var components = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var bodyRow = components && components.body && components.body.row;
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, components, {
- body: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, components.body, {
- row: Object(_createBodyRow__WEBPACK_IMPORTED_MODULE_13__["default"])(bodyRow)
- })
- });
- };
- function isTheSameComponents() {
- var components1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var components2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- return components1 === components2 || ['table', 'header', 'body'].every(function (key) {
- return shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(components1[key], components2[key]);
- });
- }
- function getFilteredValueColumns(state, columns) {
- return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || (state || {}).columns || [], function (column) {
- return typeof column.filteredValue !== 'undefined';
- });
- }
- function getFiltersFromColumns(state, columns) {
- var filters = {};
- getFilteredValueColumns(state, columns).forEach(function (col) {
- var colKey = getColumnKey(col);
- filters[colKey] = col.filteredValue;
- });
- return filters;
- }
- function isFiltersChanged(state, filters) {
- if (Object.keys(filters).length !== Object.keys(state.filters).length) {
- return true;
- }
- return Object.keys(filters).some(function (columnKey) {
- return filters[columnKey] !== state.filters[columnKey];
- });
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Table',
- Column: _Column__WEBPACK_IMPORTED_MODULE_11__["default"],
- ColumnGroup: _ColumnGroup__WEBPACK_IMPORTED_MODULE_12__["default"],
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_16__["default"]],
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__["ConfigConsumerProps"];
- } }
- },
- provide: function provide() {
- return {
- store: this.store
- };
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_18__["TableProps"], {
- dataSource: [],
- useFixedHeader: false,
- // rowSelection: null,
- size: 'default',
- loading: false,
- bordered: false,
- indentSize: 20,
- locale: {},
- rowKey: 'key',
- showHeader: true,
- sortDirections: ['ascend', 'descend'],
- childrenColumnName: 'children'
- }),
- data: function data() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["getOptionProps"])(this);
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_24__["default"])(!props.expandedRowRender || !('scroll' in props) || !props.scroll.x, '`expandedRowRender` and `scroll` are not compatible. Please use one of them at one time.');
- this.CheckboxPropsCache = {};
- this.store = vue__WEBPACK_IMPORTED_MODULE_27___default.a.observable({
- selectedRowKeys: getRowSelection(this.$props).selectedRowKeys || [],
- selectionDirty: false
- });
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.getDefaultSortOrder(props.columns || []), {
- // 减少状态
- sFilters: this.getDefaultFilters(props.columns),
- sPagination: this.getDefaultPagination(this.$props),
- pivot: undefined,
- sComponents: createComponents(this.components),
- filterDataCnt: 0
- });
- },
- watch: {
- pagination: {
- handler: function handler(val) {
- this.setState(function (previousState) {
- var newPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, defaultPagination, previousState.sPagination, val);
- newPagination.current = newPagination.current || 1;
- newPagination.pageSize = newPagination.pageSize || 10;
- return { sPagination: val !== false ? newPagination : emptyObject };
- });
- },
- deep: true
- },
- rowSelection: {
- handler: function handler(val, oldVal) {
- if (val && 'selectedRowKeys' in val) {
- this.store.selectedRowKeys = val.selectedRowKeys || [];
- var rowSelection = this.rowSelection;
- if (rowSelection && val.getCheckboxProps !== rowSelection.getCheckboxProps) {
- this.CheckboxPropsCache = {};
- }
- } else if (oldVal && !val) {
- this.store.selectedRowKeys = [];
- }
- },
- deep: true
- },
- dataSource: function dataSource() {
- this.store.selectionDirty = false;
- this.CheckboxPropsCache = {};
- },
- columns: function columns(val) {
- var filteredValueColumns = getFilteredValueColumns({ columns: val }, val);
- if (filteredValueColumns.length > 0) {
- var filtersFromColumns = getFiltersFromColumns({ columns: val }, val);
- var newFilters = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sFilters);
- Object.keys(filtersFromColumns).forEach(function (key) {
- newFilters[key] = filtersFromColumns[key];
- });
- if (isFiltersChanged({ filters: this.sFilters }, newFilters)) {
- this.setState({ sFilters: newFilters });
- }
- }
- this.$forceUpdate();
- },
- components: {
- handler: function handler(val, oldVal) {
- if (!isTheSameComponents(val, oldVal)) {
- var components = createComponents(val);
- this.setState({ sComponents: components });
- }
- },
- deep: true
- }
- },
- updated: function updated() {
- var columns = this.columns,
- sortColumn = this.sSortColumn,
- sortOrder = this.sSortOrder;
- if (this.getSortOrderColumns(columns).length > 0) {
- var sortState = this.getSortStateFromColumns(columns);
- if (!isSameColumn(sortState.sSortColumn, sortColumn) || sortState.sSortOrder !== sortOrder) {
- this.setState(sortState);
- }
- }
- },
- methods: {
- getCheckboxPropsByItem: function getCheckboxPropsByItem(item, index) {
- var rowSelection = getRowSelection(this.$props);
- if (!rowSelection.getCheckboxProps) {
- return { props: {} };
- }
- var key = this.getRecordKey(item, index);
- // Cache checkboxProps
- if (!this.CheckboxPropsCache[key]) {
- this.CheckboxPropsCache[key] = rowSelection.getCheckboxProps(item);
- }
- this.CheckboxPropsCache[key].props = this.CheckboxPropsCache[key].props || {};
- return this.CheckboxPropsCache[key];
- },
- getDefaultSelection: function getDefaultSelection() {
- var _this = this;
- var rowSelection = getRowSelection(this.$props);
- if (!rowSelection.getCheckboxProps) {
- return [];
- }
- return this.getFlatData().filter(function (item, rowIndex) {
- return _this.getCheckboxPropsByItem(item, rowIndex).props.defaultChecked;
- }).map(function (record, rowIndex) {
- return _this.getRecordKey(record, rowIndex);
- });
- },
- getDefaultPagination: function getDefaultPagination(props) {
- var pagination = babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(props.pagination) === 'object' ? props.pagination : {};
- var current = void 0;
- if ('current' in pagination) {
- current = pagination.current;
- } else if ('defaultCurrent' in pagination) {
- current = pagination.defaultCurrent;
- }
- var pageSize = void 0;
- if ('pageSize' in pagination) {
- pageSize = pagination.pageSize;
- } else if ('defaultPageSize' in pagination) {
- pageSize = pagination.defaultPageSize;
- }
- return this.hasPagination(props) ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, defaultPagination, pagination, {
- current: current || 1,
- pageSize: pageSize || 10
- }) : {};
- },
- getSortOrderColumns: function getSortOrderColumns(columns) {
- return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || this.columns || [], function (column) {
- return 'sortOrder' in column;
- });
- },
- getDefaultFilters: function getDefaultFilters(columns) {
- var definedFilters = getFiltersFromColumns({ columns: this.columns }, columns);
- var defaultFilteredValueColumns = Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || [], function (column) {
- return typeof column.defaultFilteredValue !== 'undefined';
- });
- var defaultFilters = defaultFilteredValueColumns.reduce(function (soFar, col) {
- var colKey = getColumnKey(col);
- soFar[colKey] = col.defaultFilteredValue;
- return soFar;
- }, {});
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, defaultFilters, definedFilters);
- },
- getDefaultSortOrder: function getDefaultSortOrder(columns) {
- var definedSortState = this.getSortStateFromColumns(columns);
- var defaultSortedColumn = Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || [], function (column) {
- return column.defaultSortOrder != null;
- })[0];
- if (defaultSortedColumn && !definedSortState.sortColumn) {
- return {
- sSortColumn: defaultSortedColumn,
- sSortOrder: defaultSortedColumn.defaultSortOrder
- };
- }
- return definedSortState;
- },
- getSortStateFromColumns: function getSortStateFromColumns(columns) {
- // return first column which sortOrder is not falsy
- var sortedColumn = this.getSortOrderColumns(columns).filter(function (col) {
- return col.sortOrder;
- })[0];
- if (sortedColumn) {
- return {
- sSortColumn: sortedColumn,
- sSortOrder: sortedColumn.sortOrder
- };
- }
- return {
- sSortColumn: null,
- sSortOrder: null
- };
- },
- getMaxCurrent: function getMaxCurrent(total) {
- var _sPagination = this.sPagination,
- current = _sPagination.current,
- pageSize = _sPagination.pageSize;
- if ((current - 1) * pageSize >= total) {
- return Math.floor((total - 1) / pageSize) + 1;
- }
- return current;
- },
- getRecordKey: function getRecordKey(record, index) {
- var rowKey = this.rowKey;
- var recordKey = typeof rowKey === 'function' ? rowKey(record, index) : record[rowKey];
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_24__["default"])(recordKey !== undefined, 'Table', 'Each record in dataSource of table should have a unique `key` prop, ' + 'or set `rowKey` of Table to an unique primary key, ');
- return recordKey === undefined ? index : recordKey;
- },
- getSorterFn: function getSorterFn(state) {
- var _ref = state || this.$data,
- sortOrder = _ref.sSortOrder,
- sortColumn = _ref.sSortColumn;
- if (!sortOrder || !sortColumn || typeof sortColumn.sorter !== 'function') {
- return;
- }
- return function (a, b) {
- var result = sortColumn.sorter(a, b, sortOrder);
- if (result !== 0) {
- return sortOrder === 'descend' ? -result : result;
- }
- return 0;
- };
- },
- getCurrentPageData: function getCurrentPageData() {
- var data = this.getLocalData();
- this.filterDataCnt = data.length;
- var current = void 0;
- var pageSize = void 0;
- var sPagination = this.sPagination;
- // 如果没有分页的话,默认全部展示
- if (!this.hasPagination()) {
- pageSize = Number.MAX_VALUE;
- current = 1;
- } else {
- pageSize = sPagination.pageSize;
- current = this.getMaxCurrent(sPagination.total || data.length);
- }
- // 分页
- // ---
- // 当数据量少于等于每页数量时,直接设置数据
- // 否则进行读取分页数据
- if (data.length > pageSize || pageSize === Number.MAX_VALUE) {
- data = data.slice((current - 1) * pageSize, current * pageSize);
- }
- return data;
- },
- getFlatData: function getFlatData() {
- var childrenColumnName = this.$props.childrenColumnName;
- return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatArray"])(this.getLocalData(null, false), childrenColumnName);
- },
- getFlatCurrentPageData: function getFlatCurrentPageData() {
- var childrenColumnName = this.$props.childrenColumnName;
- return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatArray"])(this.getCurrentPageData(), childrenColumnName);
- },
- getLocalData: function getLocalData(state) {
- var _this2 = this;
- var filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var currentState = state || this.$data;
- var filters = currentState.sFilters;
- var dataSource = this.$props.dataSource;
- var data = dataSource || [];
- // 优化本地排序
- data = data.slice(0);
- var sorterFn = this.getSorterFn(currentState);
- if (sorterFn) {
- // 使用新数组,避免改变原数组导致无限循环更新
- // https://github.com/vueComponent/ant-design-vue/issues/2270
- data = this.recursiveSort([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(data)), sorterFn);
- }
- // 筛选
- if (filter && filters) {
- Object.keys(filters).forEach(function (columnKey) {
- var col = _this2.findColumn(columnKey);
- if (!col) {
- return;
- }
- var values = filters[columnKey] || [];
- if (values.length === 0) {
- return;
- }
- var onFilter = col.onFilter;
- data = onFilter ? data.filter(function (record) {
- return values.some(function (v) {
- return onFilter(v, record);
- });
- }) : data;
- });
- }
- return data;
- },
- onRow: function onRow(prefixCls, record, index) {
- var customRow = this.customRow;
- var custom = customRow ? customRow(record, index) : {};
- return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["mergeProps"])(custom, {
- props: {
- prefixCls: prefixCls,
- store: this.store,
- rowKey: this.getRecordKey(record, index)
- }
- });
- },
- setSelectedRowKeys: function setSelectedRowKeys(selectedRowKeys, selectionInfo) {
- var _this3 = this;
- var selectWay = selectionInfo.selectWay,
- record = selectionInfo.record,
- checked = selectionInfo.checked,
- changeRowKeys = selectionInfo.changeRowKeys,
- nativeEvent = selectionInfo.nativeEvent;
- var rowSelection = getRowSelection(this.$props);
- if (rowSelection && !('selectedRowKeys' in rowSelection)) {
- this.store.selectedRowKeys = selectedRowKeys;
- }
- var data = this.getFlatData();
- if (!rowSelection.onChange && !rowSelection[selectWay]) {
- return;
- }
- var selectedRows = data.filter(function (row, i) {
- return selectedRowKeys.indexOf(_this3.getRecordKey(row, i)) >= 0;
- });
- if (rowSelection.onChange) {
- rowSelection.onChange(selectedRowKeys, selectedRows);
- }
- if (selectWay === 'onSelect' && rowSelection.onSelect) {
- rowSelection.onSelect(record, checked, selectedRows, nativeEvent);
- } else if (selectWay === 'onSelectMultiple' && rowSelection.onSelectMultiple) {
- var changeRows = data.filter(function (row, i) {
- return changeRowKeys.indexOf(_this3.getRecordKey(row, i)) >= 0;
- });
- rowSelection.onSelectMultiple(checked, selectedRows, changeRows);
- } else if (selectWay === 'onSelectAll' && rowSelection.onSelectAll) {
- var _changeRows = data.filter(function (row, i) {
- return changeRowKeys.indexOf(_this3.getRecordKey(row, i)) >= 0;
- });
- rowSelection.onSelectAll(checked, selectedRows, _changeRows);
- } else if (selectWay === 'onSelectInvert' && rowSelection.onSelectInvert) {
- rowSelection.onSelectInvert(selectedRowKeys);
- }
- },
- generatePopupContainerFunc: function generatePopupContainerFunc(getPopupContainer) {
- var scroll = this.$props.scroll;
- var table = this.$refs.vcTable;
- if (getPopupContainer) {
- return getPopupContainer;
- }
- // Use undefined to let rc component use default logic.
- return scroll && table ? function () {
- return table.getTableNode();
- } : undefined;
- },
- scrollToFirstRow: function scrollToFirstRow() {
- var _this4 = this;
- var scroll = this.$props.scroll;
- if (scroll && scroll.scrollToFirstRowOnChange !== false) {
- Object(_util_scrollTo__WEBPACK_IMPORTED_MODULE_25__["default"])(0, {
- getContainer: function getContainer() {
- return _this4.$refs.vcTable.getBodyTable();
- }
- });
- }
- },
- isSameColumn: function isSameColumn(a, b) {
- if (a && b && a.key && a.key === b.key) {
- return true;
- }
- return a === b || shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(a, b, function (value, other) {
- if (typeof value === 'function' && typeof other === 'function') {
- return value === other || value.toString() === other.toString();
- }
- });
- },
- handleFilter: function handleFilter(column, nextFilters) {
- var _this5 = this;
- var props = this.$props;
- var pagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sPagination);
- var filters = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sFilters, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, getColumnKey(column), nextFilters));
- // Remove filters not in current columns
- var currentColumnKeys = [];
- Object(_util__WEBPACK_IMPORTED_MODULE_14__["treeMap"])(this.columns, function (c) {
- if (!c.children) {
- currentColumnKeys.push(getColumnKey(c));
- }
- });
- Object.keys(filters).forEach(function (columnKey) {
- if (currentColumnKeys.indexOf(columnKey) < 0) {
- delete filters[columnKey];
- }
- });
- if (props.pagination) {
- // Reset current prop
- pagination.current = 1;
- pagination.onChange(pagination.current);
- }
- var newState = {
- sPagination: pagination,
- sFilters: {}
- };
- var filtersToSetState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, filters);
- // Remove filters which is controlled
- getFilteredValueColumns({ columns: props.columns }).forEach(function (col) {
- var columnKey = getColumnKey(col);
- if (columnKey) {
- delete filtersToSetState[columnKey];
- }
- });
- if (Object.keys(filtersToSetState).length > 0) {
- newState.sFilters = filtersToSetState;
- }
- // Controlled current prop will not respond user interaction
- if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(props.pagination) === 'object' && 'current' in props.pagination) {
- newState.sPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, pagination, {
- current: this.sPagination.current
- });
- }
- this.setState(newState, function () {
- _this5.scrollToFirstRow();
- _this5.store.selectionDirty = false;
- _this5.$emit.apply(_this5, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(_this5.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, _this5.$data, {
- sSelectionDirty: false,
- sFilters: filters,
- sPagination: pagination
- })))));
- });
- },
- handleSelect: function handleSelect(record, rowIndex, e) {
- var _this6 = this;
- var checked = e.target.checked;
- var nativeEvent = e.nativeEvent;
- var defaultSelection = this.store.selectionDirty ? [] : this.getDefaultSelection();
- var selectedRowKeys = this.store.selectedRowKeys.concat(defaultSelection);
- var key = this.getRecordKey(record, rowIndex);
- var pivot = this.$data.pivot;
- var rows = this.getFlatCurrentPageData();
- var realIndex = rowIndex;
- if (this.$props.expandedRowRender) {
- realIndex = rows.findIndex(function (row) {
- return _this6.getRecordKey(row, rowIndex) === key;
- });
- }
- if (nativeEvent.shiftKey && pivot !== undefined && realIndex !== pivot) {
- var changeRowKeys = [];
- var direction = Math.sign(pivot - realIndex);
- var dist = Math.abs(pivot - realIndex);
- var step = 0;
- var _loop = function _loop() {
- var i = realIndex + step * direction;
- step += 1;
- var row = rows[i];
- var rowKey = _this6.getRecordKey(row, i);
- var checkboxProps = _this6.getCheckboxPropsByItem(row, i);
- if (!checkboxProps.disabled) {
- if (selectedRowKeys.includes(rowKey)) {
- if (!checked) {
- selectedRowKeys = selectedRowKeys.filter(function (j) {
- return rowKey !== j;
- });
- changeRowKeys.push(rowKey);
- }
- } else if (checked) {
- selectedRowKeys.push(rowKey);
- changeRowKeys.push(rowKey);
- }
- }
- };
- while (step <= dist) {
- _loop();
- }
- this.setState({ pivot: realIndex });
- this.store.selectionDirty = true;
- this.setSelectedRowKeys(selectedRowKeys, {
- selectWay: 'onSelectMultiple',
- record: record,
- checked: checked,
- changeRowKeys: changeRowKeys,
- nativeEvent: nativeEvent
- });
- } else {
- if (checked) {
- selectedRowKeys.push(this.getRecordKey(record, realIndex));
- } else {
- selectedRowKeys = selectedRowKeys.filter(function (i) {
- return key !== i;
- });
- }
- this.setState({ pivot: realIndex });
- this.store.selectionDirty = true;
- this.setSelectedRowKeys(selectedRowKeys, {
- selectWay: 'onSelect',
- record: record,
- checked: checked,
- changeRowKeys: undefined,
- nativeEvent: nativeEvent
- });
- }
- },
- handleRadioSelect: function handleRadioSelect(record, rowIndex, e) {
- var checked = e.target.checked;
- var nativeEvent = e.nativeEvent;
- var key = this.getRecordKey(record, rowIndex);
- var selectedRowKeys = [key];
- this.store.selectionDirty = true;
- this.setSelectedRowKeys(selectedRowKeys, {
- selectWay: 'onSelect',
- record: record,
- checked: checked,
- changeRowKeys: undefined,
- nativeEvent: nativeEvent
- });
- },
- handleSelectRow: function handleSelectRow(selectionKey, index, onSelectFunc) {
- var _this7 = this;
- var data = this.getFlatCurrentPageData();
- var defaultSelection = this.store.selectionDirty ? [] : this.getDefaultSelection();
- var selectedRowKeys = this.store.selectedRowKeys.concat(defaultSelection);
- var changeableRowKeys = data.filter(function (item, i) {
- return !_this7.getCheckboxPropsByItem(item, i).props.disabled;
- }).map(function (item, i) {
- return _this7.getRecordKey(item, i);
- });
- var changeRowKeys = [];
- var selectWay = 'onSelectAll';
- var checked = void 0;
- // handle default selection
- switch (selectionKey) {
- case 'all':
- changeableRowKeys.forEach(function (key) {
- if (selectedRowKeys.indexOf(key) < 0) {
- selectedRowKeys.push(key);
- changeRowKeys.push(key);
- }
- });
- selectWay = 'onSelectAll';
- checked = true;
- break;
- case 'removeAll':
- changeableRowKeys.forEach(function (key) {
- if (selectedRowKeys.indexOf(key) >= 0) {
- selectedRowKeys.splice(selectedRowKeys.indexOf(key), 1);
- changeRowKeys.push(key);
- }
- });
- selectWay = 'onSelectAll';
- checked = false;
- break;
- case 'invert':
- changeableRowKeys.forEach(function (key) {
- if (selectedRowKeys.indexOf(key) < 0) {
- selectedRowKeys.push(key);
- } else {
- selectedRowKeys.splice(selectedRowKeys.indexOf(key), 1);
- }
- changeRowKeys.push(key);
- selectWay = 'onSelectInvert';
- });
- break;
- default:
- break;
- }
- this.store.selectionDirty = true;
- // when select custom selection, callback selections[n].onSelect
- var rowSelection = this.rowSelection;
- var customSelectionStartIndex = 2;
- if (rowSelection && rowSelection.hideDefaultSelections) {
- customSelectionStartIndex = 0;
- }
- if (index >= customSelectionStartIndex && typeof onSelectFunc === 'function') {
- return onSelectFunc(changeableRowKeys);
- }
- this.setSelectedRowKeys(selectedRowKeys, {
- selectWay: selectWay,
- checked: checked,
- changeRowKeys: changeRowKeys
- });
- },
- handlePageChange: function handlePageChange(current) {
- var props = this.$props;
- var pagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sPagination);
- if (current) {
- pagination.current = current;
- } else {
- pagination.current = pagination.current || 1;
- }
- for (var _len = arguments.length, otherArguments = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- otherArguments[_key - 1] = arguments[_key];
- }
- pagination.onChange.apply(pagination, [pagination.current].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(otherArguments)));
- var newState = {
- sPagination: pagination
- };
- // Controlled current prop will not respond user interaction
- if (props.pagination && babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(props.pagination) === 'object' && 'current' in props.pagination) {
- newState.sPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, pagination, {
- current: this.sPagination.current
- });
- }
- this.setState(newState, this.scrollToFirstRow);
- this.store.selectionDirty = false;
- this.$emit.apply(this, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.$data, {
- sSelectionDirty: false,
- sPagination: pagination
- })))));
- },
- handleShowSizeChange: function handleShowSizeChange(current, pageSize) {
- var pagination = this.sPagination;
- pagination.onShowSizeChange(current, pageSize);
- var nextPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, pagination, {
- pageSize: pageSize,
- current: current
- });
- this.setState({ sPagination: nextPagination }, this.scrollToFirstRow);
- this.$emit.apply(this, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.$data, {
- sPagination: nextPagination
- })))));
- },
- toggleSortOrder: function toggleSortOrder(column) {
- var sortDirections = column.sortDirections || this.sortDirections;
- var sortOrder = this.sSortOrder,
- sortColumn = this.sSortColumn;
- // 只同时允许一列进行排序,否则会导致排序顺序的逻辑问题
- var newSortOrder = void 0;
- // 切换另一列时,丢弃 sortOrder 的状态
- if (isSameColumn(sortColumn, column) && sortOrder !== undefined) {
- // 按照sortDirections的内容依次切换排序状态
- var methodIndex = sortDirections.indexOf(sortOrder) + 1;
- newSortOrder = methodIndex === sortDirections.length ? undefined : sortDirections[methodIndex];
- } else {
- newSortOrder = sortDirections[0];
- }
- var newState = {
- sSortOrder: newSortOrder,
- sSortColumn: newSortOrder ? column : null
- };
- // Controlled
- if (this.getSortOrderColumns().length === 0) {
- this.setState(newState, this.scrollToFirstRow);
- }
- this.$emit.apply(this, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.$data, newState), column))));
- },
- hasPagination: function hasPagination(props) {
- return (props || this.$props).pagination !== false;
- },
- isSortColumn: function isSortColumn(column) {
- var sortColumn = this.sSortColumn;
- if (!column || !sortColumn) {
- return false;
- }
- return getColumnKey(sortColumn) === getColumnKey(column);
- },
- // Get pagination, filters, sorter
- prepareParamsArguments: function prepareParamsArguments(state, column) {
- var pagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, state.sPagination);
- // remove useless handle function in Table.onChange
- delete pagination.onChange;
- delete pagination.onShowSizeChange;
- var filters = state.sFilters;
- var sorter = {};
- var currentColumn = column;
- if (state.sSortColumn && state.sSortOrder) {
- currentColumn = state.sSortColumn;
- sorter.column = state.sSortColumn;
- sorter.order = state.sSortOrder;
- }
- if (currentColumn) {
- sorter.field = currentColumn.dataIndex;
- sorter.columnKey = getColumnKey(currentColumn);
- }
- var extra = {
- currentDataSource: this.getLocalData(state)
- };
- return [pagination, filters, sorter, extra];
- },
- findColumn: function findColumn(myKey) {
- var column = void 0;
- Object(_util__WEBPACK_IMPORTED_MODULE_14__["treeMap"])(this.columns, function (c) {
- if (getColumnKey(c) === myKey) {
- column = c;
- }
- });
- return column;
- },
- recursiveSort: function recursiveSort(data, sorterFn) {
- var _this8 = this;
- var _childrenColumnName = this.childrenColumnName,
- childrenColumnName = _childrenColumnName === undefined ? 'children' : _childrenColumnName;
- return data.sort(sorterFn).map(function (item) {
- return item[childrenColumnName] ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, item, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, childrenColumnName, _this8.recursiveSort([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(item[childrenColumnName])), sorterFn))) : item;
- });
- },
- renderExpandIcon: function renderExpandIcon(prefixCls) {
- var h = this.$createElement;
- return function (_ref2) {
- var expandable = _ref2.expandable,
- expanded = _ref2.expanded,
- needIndentSpaced = _ref2.needIndentSpaced,
- record = _ref2.record,
- onExpand = _ref2.onExpand;
- if (expandable) {
- return h(
- _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_22__["default"],
- {
- attrs: { componentName: 'Table', defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_23__["default"].Table }
- },
- [function (locale) {
- var _classNames;
- return h(_util_transButton__WEBPACK_IMPORTED_MODULE_26__["default"], {
- 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-row-expand-icon', (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-collapsed', !expanded), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-expanded', expanded), _classNames)),
- on: {
- 'click': function click(event) {
- onExpand(record, event);
- }
- },
- attrs: {
- 'aria-label': expanded ? locale.collapse : locale.expand,
- noStyle: true
- }
- });
- }]
- );
- }
- if (needIndentSpaced) {
- return h('span', { 'class': prefixCls + '-row-expand-icon ' + prefixCls + '-row-spaced' });
- }
- return null;
- };
- },
- renderPagination: function renderPagination(prefixCls, paginationPosition) {
- var h = this.$createElement;
- // 强制不需要分页
- if (!this.hasPagination()) {
- return null;
- }
- var size = 'default';
- var pagination = this.sPagination;
- if (pagination.size) {
- size = pagination.size;
- } else if (this.size === 'middle' || this.size === 'small') {
- size = 'small';
- }
- var position = pagination.position || 'bottom';
- var total = pagination.total || this.filterDataCnt;
- var cls = pagination['class'],
- style = pagination.style,
- onChange = pagination.onChange,
- onShowSizeChange = pagination.onShowSizeChange,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(pagination, ['class', 'style', 'onChange', 'onShowSizeChange']); // eslint-disable-line
- var paginationProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["mergeProps"])({
- key: 'pagination-' + paginationPosition,
- 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(cls, prefixCls + '-pagination'),
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, restProps, {
- total: total,
- size: size,
- current: this.getMaxCurrent(total)
- }),
- style: style,
- on: {
- change: this.handlePageChange,
- showSizeChange: this.handleShowSizeChange
- }
- });
- return total > 0 && (position === paginationPosition || position === 'both') ? h(_pagination__WEBPACK_IMPORTED_MODULE_19__["default"], paginationProps) : null;
- },
- renderSelectionBox: function renderSelectionBox(type) {
- var _this9 = this;
- var h = this.$createElement;
- return function (_, record, index) {
- var rowKey = _this9.getRecordKey(record, index); // 从 1 开始
- var props = _this9.getCheckboxPropsByItem(record, index);
- var handleChange = function handleChange(e) {
- type === 'radio' ? _this9.handleRadioSelect(record, index, e) : _this9.handleSelect(record, index, e);
- };
- var selectionBoxProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["mergeProps"])({
- props: {
- type: type,
- store: _this9.store,
- rowIndex: rowKey,
- defaultSelection: _this9.getDefaultSelection()
- },
- on: {
- change: handleChange
- }
- }, props);
- return h(
- 'span',
- {
- on: {
- 'click': stopPropagation
- }
- },
- [h(_SelectionBox__WEBPACK_IMPORTED_MODULE_9__["default"], selectionBoxProps)]
- );
- };
- },
- renderRowSelection: function renderRowSelection(_ref3) {
- var _this10 = this;
- var prefixCls = _ref3.prefixCls,
- locale = _ref3.locale,
- getPopupContainer = _ref3.getPopupContainer;
- var h = this.$createElement;
- var rowSelection = this.rowSelection;
- var columns = this.columns.concat();
- if (rowSelection) {
- var data = this.getFlatCurrentPageData().filter(function (item, index) {
- if (rowSelection.getCheckboxProps) {
- return !_this10.getCheckboxPropsByItem(item, index).props.disabled;
- }
- return true;
- });
- var selectionColumnClass = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-selection-column', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-selection-column-custom', rowSelection.selections));
- var selectionColumn = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({
- key: 'selection-column',
- customRender: this.renderSelectionBox(rowSelection.type),
- className: selectionColumnClass,
- fixed: rowSelection.fixed,
- width: rowSelection.columnWidth,
- title: rowSelection.columnTitle
- }, _vc_table__WEBPACK_IMPORTED_MODULE_5__["INTERNAL_COL_DEFINE"], {
- 'class': prefixCls + '-selection-col'
- });
- if (rowSelection.type !== 'radio') {
- var checkboxAllDisabled = data.every(function (item, index) {
- return _this10.getCheckboxPropsByItem(item, index).props.disabled;
- });
- selectionColumn.title = selectionColumn.title || h(_SelectionCheckboxAll__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: {
- store: this.store,
- locale: locale,
- data: data,
- getCheckboxPropsByItem: this.getCheckboxPropsByItem,
- getRecordKey: this.getRecordKey,
- disabled: checkboxAllDisabled,
- prefixCls: prefixCls,
- selections: rowSelection.selections,
- hideDefaultSelections: rowSelection.hideDefaultSelections,
- getPopupContainer: this.generatePopupContainerFunc(getPopupContainer)
- },
- on: {
- 'select': this.handleSelectRow
- }
- });
- }
- if ('fixed' in rowSelection) {
- selectionColumn.fixed = rowSelection.fixed;
- } else if (columns.some(function (column) {
- return column.fixed === 'left' || column.fixed === true;
- })) {
- selectionColumn.fixed = 'left';
- }
- if (columns[0] && columns[0].key === 'selection-column') {
- columns[0] = selectionColumn;
- } else {
- columns.unshift(selectionColumn);
- }
- }
- return columns;
- },
- renderColumnsDropdown: function renderColumnsDropdown(_ref4) {
- var _this11 = this;
- var prefixCls = _ref4.prefixCls,
- dropdownPrefixCls = _ref4.dropdownPrefixCls,
- columns = _ref4.columns,
- locale = _ref4.locale,
- getPopupContainer = _ref4.getPopupContainer;
- var h = this.$createElement;
- var sortOrder = this.sSortOrder,
- filters = this.sFilters;
- return Object(_util__WEBPACK_IMPORTED_MODULE_14__["treeMap"])(columns, function (column, i) {
- var _classNames3;
- var key = getColumnKey(column, i);
- var filterDropdown = void 0;
- var sortButton = void 0;
- var customHeaderCell = column.customHeaderCell;
- var isSortColumn = _this11.isSortColumn(column);
- if (column.filters && column.filters.length > 0 || column.filterDropdown) {
- var colFilters = key in filters ? filters[key] : [];
- filterDropdown = h(_filterDropdown__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: {
- _propsSymbol: Symbol(),
- locale: locale,
- column: column,
- selectedKeys: colFilters,
- confirmFilter: _this11.handleFilter,
- prefixCls: prefixCls + '-filter',
- dropdownPrefixCls: dropdownPrefixCls || 'ant-dropdown',
- getPopupContainer: _this11.generatePopupContainerFunc(getPopupContainer)
- },
- key: 'filter-dropdown'
- });
- }
- if (column.sorter) {
- var sortDirections = column.sortDirections || _this11.sortDirections;
- var isAscend = isSortColumn && sortOrder === 'ascend';
- var isDescend = isSortColumn && sortOrder === 'descend';
- var ascend = sortDirections.indexOf('ascend') !== -1 && h(_icon__WEBPACK_IMPORTED_MODULE_20__["default"], {
- 'class': prefixCls + '-column-sorter-up ' + (isAscend ? 'on' : 'off'),
- attrs: { type: 'caret-up',
- theme: 'filled'
- },
- key: 'caret-up'
- });
- var descend = sortDirections.indexOf('descend') !== -1 && h(_icon__WEBPACK_IMPORTED_MODULE_20__["default"], {
- 'class': prefixCls + '-column-sorter-down ' + (isDescend ? 'on' : 'off'),
- attrs: { type: 'caret-down',
- theme: 'filled'
- },
- key: 'caret-down'
- });
- sortButton = h(
- 'div',
- {
- attrs: {
- title: locale.sortTitle
- },
- 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-column-sorter-inner', ascend && descend && prefixCls + '-column-sorter-inner-full'),
- key: 'sorter'
- },
- [ascend, descend]
- );
- customHeaderCell = function customHeaderCell(col) {
- var colProps = {};
- // Get original first
- if (column.customHeaderCell) {
- colProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, column.customHeaderCell(col));
- }
- colProps.on = colProps.on || {};
- // Add sorter logic
- var onHeaderCellClick = colProps.on.click;
- colProps.on.click = function () {
- _this11.toggleSortOrder(column);
- if (onHeaderCellClick) {
- onHeaderCellClick.apply(undefined, arguments);
- }
- };
- return colProps;
- };
- }
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, column, {
- className: classnames__WEBPACK_IMPORTED_MODULE_6___default()(column.className, (_classNames3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-has-actions', sortButton || filterDropdown), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-has-filters', filterDropdown), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-has-sorters', sortButton), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-sort', isSortColumn && sortOrder), _classNames3)),
- title: [h(
- 'span',
- { key: 'title', 'class': prefixCls + '-header-column' },
- [h(
- 'div',
- { 'class': sortButton ? prefixCls + '-column-sorters' : undefined },
- [h(
- 'span',
- { 'class': prefixCls + '-column-title' },
- [_this11.renderColumnTitle(column.title)]
- ), h(
- 'span',
- { 'class': prefixCls + '-column-sorter' },
- [sortButton]
- )]
- )]
- ), filterDropdown],
- customHeaderCell: customHeaderCell
- });
- });
- },
- renderColumnTitle: function renderColumnTitle(title) {
- var _$data = this.$data,
- filters = _$data.sFilters,
- sortOrder = _$data.sSortOrder,
- sortColumn = _$data.sSortColumn;
- // https://github.com/ant-design/ant-design/issues/11246#issuecomment-405009167
- if (title instanceof Function) {
- return title({
- filters: filters,
- sortOrder: sortOrder,
- sortColumn: sortColumn
- });
- }
- return title;
- },
- renderTable: function renderTable(_ref5) {
- var _classNames4,
- _this12 = this;
- var prefixCls = _ref5.prefixCls,
- renderEmpty = _ref5.renderEmpty,
- dropdownPrefixCls = _ref5.dropdownPrefixCls,
- contextLocale = _ref5.contextLocale,
- contextGetPopupContainer = _ref5.getPopupContainer,
- transformCellText = _ref5.transformCellText;
- var h = this.$createElement;
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["getOptionProps"])(this),
- showHeader = _getOptionProps.showHeader,
- locale = _getOptionProps.locale,
- getPopupContainer = _getOptionProps.getPopupContainer,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['showHeader', 'locale', 'getPopupContainer']);
- var data = this.getCurrentPageData();
- var expandIconAsCell = this.expandedRowRender && this.expandIconAsCell !== false;
- // use props.getPopupContainer first
- var realGetPopupContainer = getPopupContainer || contextGetPopupContainer;
- // Merge too locales
- var mergedLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, contextLocale, locale);
- if (!locale || !locale.emptyText) {
- mergedLocale.emptyText = renderEmpty(h, 'Table');
- }
- var classString = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames4 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-' + this.size, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-bordered', this.bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-empty', !data.length), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-without-column-header', !showHeader), _classNames4));
- var columnsWithRowSelection = this.renderRowSelection({
- prefixCls: prefixCls,
- locale: mergedLocale,
- getPopupContainer: realGetPopupContainer
- });
- var columns = this.renderColumnsDropdown({
- columns: columnsWithRowSelection,
- prefixCls: prefixCls,
- dropdownPrefixCls: dropdownPrefixCls,
- locale: mergedLocale,
- getPopupContainer: realGetPopupContainer
- }).map(function (column, i) {
- var newColumn = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, column);
- newColumn.key = getColumnKey(newColumn, i);
- return newColumn;
- });
- var expandIconColumnIndex = columns[0] && columns[0].key === 'selection-column' ? 1 : 0;
- if ('expandIconColumnIndex' in restProps) {
- expandIconColumnIndex = restProps.expandIconColumnIndex;
- }
- var vcTableProps = {
- key: 'table',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({
- expandIcon: this.renderExpandIcon(prefixCls)
- }, restProps, {
- customRow: function customRow(record, index) {
- return _this12.onRow(prefixCls, record, index);
- },
- components: this.sComponents,
- prefixCls: prefixCls,
- data: data,
- columns: columns,
- showHeader: showHeader,
- expandIconColumnIndex: expandIconColumnIndex,
- expandIconAsCell: expandIconAsCell,
- emptyText: mergedLocale.emptyText,
- transformCellText: transformCellText
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["getListeners"])(this),
- 'class': classString,
- ref: 'vcTable'
- };
- return h(_vc_table__WEBPACK_IMPORTED_MODULE_5__["default"], vcTableProps);
- }
- },
- render: function render() {
- var _this13 = this;
- var h = arguments[0];
- var customizePrefixCls = this.prefixCls,
- customizeDropdownPrefixCls = this.dropdownPrefixCls,
- customizeTransformCellText = this.transformCellText;
- var data = this.getCurrentPageData();
- var _configProvider = this.configProvider,
- getContextPopupContainer = _configProvider.getPopupContainer,
- tct = _configProvider.transformCellText;
- var getPopupContainer = this.getPopupContainer || getContextPopupContainer;
- var transformCellText = customizeTransformCellText || tct;
- var loading = this.loading;
- if (typeof loading === 'boolean') {
- loading = {
- props: {
- spinning: loading
- }
- };
- } else {
- loading = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, loading)
- };
- }
- var getPrefixCls = this.configProvider.getPrefixCls;
- var renderEmpty = this.configProvider.renderEmpty;
- var prefixCls = getPrefixCls('table', customizePrefixCls);
- var dropdownPrefixCls = getPrefixCls('dropdown', customizeDropdownPrefixCls);
- var table = h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_22__["default"], {
- attrs: {
- componentName: 'Table',
- defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_23__["default"].Table,
- children: function children(locale) {
- return _this13.renderTable({
- prefixCls: prefixCls,
- renderEmpty: renderEmpty,
- dropdownPrefixCls: dropdownPrefixCls,
- contextLocale: locale,
- getPopupContainer: getPopupContainer,
- transformCellText: transformCellText
- });
- }
- }
- });
- // if there is no pagination or no data,
- // the height of spin should decrease by half of pagination
- var paginationPatchClass = this.hasPagination() && data && data.length !== 0 ? prefixCls + '-with-pagination' : prefixCls + '-without-pagination';
- var spinProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, loading, {
- 'class': loading.props && loading.props.spinning ? paginationPatchClass + ' ' + prefixCls + '-spin-holder' : ''
- });
- return h(
- 'div',
- { 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-wrapper') },
- [h(
- _spin__WEBPACK_IMPORTED_MODULE_21__["default"],
- spinProps,
- [this.renderPagination(prefixCls, 'top'), table, this.renderPagination(prefixCls, 'bottom')]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/table/createBodyRow.jsx":
- /*!********************************************!*\
- !*** ./components/table/createBodyRow.jsx ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createBodyRow; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var BodyRowProps = {
- store: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number]),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
- };
- function createBodyRow() {
- var Component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'tr';
- var BodyRow = {
- name: 'BodyRow',
- props: BodyRowProps,
- computed: {
- selected: function selected() {
- return this.$props.store.selectedRowKeys.indexOf(this.$props.rowKey) >= 0;
- }
- },
- render: function render() {
- var h = arguments[0];
- var className = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.prefixCls + '-row-selected', this.selected);
- return h(
- Component,
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': className }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this) }]),
- [this.$slots['default']]
- );
- }
- };
- return BodyRow;
- }
- /***/ }),
- /***/ "./components/table/filterDropdown.jsx":
- /*!*********************************************!*\
- !*** ./components/table/filterDropdown.jsx ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
- /* harmony import */ var dom_closest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-closest */ "./node_modules/dom-closest/index.js");
- /* harmony import */ var dom_closest__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(dom_closest__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dropdown */ "./components/dropdown/index.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
- /* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../radio */ "./components/radio/index.js");
- /* harmony import */ var _FilterDropdownMenuWrapper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FilterDropdownMenuWrapper */ "./components/table/FilterDropdownMenuWrapper.jsx");
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util */ "./components/table/util.js");
- function stopPropagation(e) {
- e.stopPropagation();
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'FilterMenu',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_11__["FilterMenuProps"], {
- handleFilter: function handleFilter() {},
- column: {}
- }),
- data: function data() {
- var visible = 'filterDropdownVisible' in this.column ? this.column.filterDropdownVisible : false;
- this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this));
- return {
- sSelectedKeys: this.selectedKeys,
- sKeyPathOfSelectedItem: {}, // 记录所有有选中子菜单的祖先菜单
- sVisible: visible,
- sValueKeys: Object(_util__WEBPACK_IMPORTED_MODULE_15__["generateValueMaps"])(this.column.filters)
- };
- },
- watch: {
- _propsSymbol: function _propsSymbol() {
- var nextProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
- var column = nextProps.column;
- var newState = {};
- /**
- * if the state is visible the component should ignore updates on selectedKeys prop to avoid
- * that the user selection is lost
- * this happens frequently when a table is connected on some sort of realtime data
- * Fixes https://github.com/ant-design/ant-design/issues/10289 and
- * https://github.com/ant-design/ant-design/issues/10209
- */
- if ('selectedKeys' in nextProps && !shallowequal__WEBPACK_IMPORTED_MODULE_5___default()(this.preProps.selectedKeys, nextProps.selectedKeys)) {
- newState.sSelectedKeys = nextProps.selectedKeys;
- }
- if (!shallowequal__WEBPACK_IMPORTED_MODULE_5___default()((this.preProps.column || {}).filters, (nextProps.column || {}).filters)) {
- newState.sValueKeys = Object(_util__WEBPACK_IMPORTED_MODULE_15__["generateValueMaps"])(nextProps.column.filters);
- }
- if ('filterDropdownVisible' in column) {
- newState.sVisible = column.filterDropdownVisible;
- }
- if (Object.keys(newState).length > 0) {
- this.setState(newState);
- }
- this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nextProps);
- }
- },
- mounted: function mounted() {
- var _this = this;
- var column = this.column;
- this.$nextTick(function () {
- _this.setNeverShown(column);
- });
- },
- updated: function updated() {
- var _this2 = this;
- var column = this.column;
- this.$nextTick(function () {
- _this2.setNeverShown(column);
- });
- },
- methods: {
- getDropdownVisible: function getDropdownVisible() {
- return this.neverShown ? false : this.sVisible;
- },
- setNeverShown: function setNeverShown(column) {
- var rootNode = this.$el;
- var filterBelongToScrollBody = !!dom_closest__WEBPACK_IMPORTED_MODULE_3___default()(rootNode, '.ant-table-scroll');
- if (filterBelongToScrollBody) {
- // When fixed column have filters, there will be two dropdown menus
- // Filter dropdown menu inside scroll body should never be shown
- // To fix https://github.com/ant-design/ant-design/issues/5010 and
- // https://github.com/ant-design/ant-design/issues/7909
- this.neverShown = !!column.fixed;
- }
- },
- setSelectedKeys: function setSelectedKeys(_ref) {
- var selectedKeys = _ref.selectedKeys;
- this.setState({ sSelectedKeys: selectedKeys });
- },
- setVisible: function setVisible(visible) {
- var column = this.column;
- if (!('filterDropdownVisible' in column)) {
- this.setState({ sVisible: visible });
- }
- if (column.onFilterDropdownVisibleChange) {
- column.onFilterDropdownVisibleChange(visible);
- }
- },
- handleClearFilters: function handleClearFilters() {
- this.setState({
- sSelectedKeys: []
- }, this.handleConfirm);
- },
- handleConfirm: function handleConfirm() {
- var _this3 = this;
- this.setVisible(false);
- this.confirmFilter2();
- // Call `setSelectedKeys` & `confirm` in the same time will make filter data not up to date
- // https://github.com/ant-design/ant-design/issues/12284
- this.$forceUpdate();
- this.$nextTick(function () {
- _this3.confirmFilter;
- });
- },
- onVisibleChange: function onVisibleChange(visible) {
- this.setVisible(visible);
- var column = this.$props.column;
- // https://github.com/ant-design/ant-design/issues/17833
- if (!visible && !(column.filterDropdown instanceof Function)) {
- this.confirmFilter2();
- }
- },
- handleMenuItemClick: function handleMenuItemClick(info) {
- var selectedKeys = this.$data.sSelectedKeys;
- if (!info.keyPath || info.keyPath.length <= 1) {
- return;
- }
- var keyPathOfSelectedItem = this.$data.sKeyPathOfSelectedItem;
- if (selectedKeys && selectedKeys.indexOf(info.key) >= 0) {
- // deselect SubMenu child
- delete keyPathOfSelectedItem[info.key];
- } else {
- // select SubMenu child
- keyPathOfSelectedItem[info.key] = info.keyPath;
- }
- this.setState({ sKeyPathOfSelectedItem: keyPathOfSelectedItem });
- },
- hasSubMenu: function hasSubMenu() {
- var _column$filters = this.column.filters,
- filters = _column$filters === undefined ? [] : _column$filters;
- return filters.some(function (item) {
- return !!(item.children && item.children.length > 0);
- });
- },
- confirmFilter2: function confirmFilter2() {
- var _$props = this.$props,
- column = _$props.column,
- propSelectedKeys = _$props.selectedKeys,
- confirmFilter = _$props.confirmFilter;
- var _$data = this.$data,
- selectedKeys = _$data.sSelectedKeys,
- valueKeys = _$data.sValueKeys;
- var filterDropdown = column.filterDropdown;
- if (!shallowequal__WEBPACK_IMPORTED_MODULE_5___default()(selectedKeys, propSelectedKeys)) {
- confirmFilter(column, filterDropdown ? selectedKeys : selectedKeys.map(function (key) {
- return valueKeys[key];
- }).filter(function (key) {
- return key !== undefined;
- }));
- }
- },
- renderMenus: function renderMenus(items) {
- var _this4 = this;
- var h = this.$createElement;
- var _$props2 = this.$props,
- dropdownPrefixCls = _$props2.dropdownPrefixCls,
- prefixCls = _$props2.prefixCls;
- return items.map(function (item) {
- if (item.children && item.children.length > 0) {
- var sKeyPathOfSelectedItem = _this4.sKeyPathOfSelectedItem;
- var containSelected = Object.keys(sKeyPathOfSelectedItem).some(function (key) {
- return sKeyPathOfSelectedItem[key].indexOf(item.value) >= 0;
- });
- var subMenuCls = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-dropdown-submenu', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, dropdownPrefixCls + '-submenu-contain-selected', containSelected));
- return h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_2__["SubMenu"],
- {
- attrs: { title: item.text, popupClassName: subMenuCls },
- key: item.value },
- [_this4.renderMenus(item.children)]
- );
- }
- return _this4.renderMenuItem(item);
- });
- },
- renderFilterIcon: function renderFilterIcon() {
- var _classNames2;
- var h = this.$createElement;
- var column = this.column,
- locale = this.locale,
- prefixCls = this.prefixCls,
- selectedKeys = this.selectedKeys;
- var filtered = selectedKeys && selectedKeys.length > 0;
- var filterIcon = column.filterIcon;
- if (typeof filterIcon === 'function') {
- filterIcon = filterIcon(filtered, column);
- }
- var dropdownIconClass = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-selected', 'filtered' in column ? column.filtered : filtered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-open', this.getDropdownVisible()), _classNames2));
- if (!filterIcon) {
- return h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: {
- title: locale.filterTitle,
- type: 'filter',
- theme: 'filled'
- },
- 'class': dropdownIconClass,
- on: {
- 'click': stopPropagation
- }
- });
- }
- if (filterIcon.length === 1 && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["isValidElement"])(filterIcon[0])) {
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_13__["cloneElement"])(filterIcon[0], {
- on: {
- click: stopPropagation
- },
- 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-icon', dropdownIconClass)
- });
- }
- return h(
- 'span',
- { 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-icon', dropdownIconClass) },
- [filterIcon]
- );
- },
- renderMenuItem: function renderMenuItem(item) {
- var h = this.$createElement;
- var column = this.column;
- var selectedKeys = this.$data.sSelectedKeys;
- var multiple = 'filterMultiple' in column ? column.filterMultiple : true;
- var input = multiple ? h(_checkbox__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: { checked: selectedKeys && selectedKeys.indexOf(item.value) >= 0 }
- }) : h(_radio__WEBPACK_IMPORTED_MODULE_9__["default"], {
- attrs: { checked: selectedKeys && selectedKeys.indexOf(item.value) >= 0 }
- });
- return h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_2__["Item"],
- { key: item.value },
- [input, h('span', [item.text])]
- );
- }
- },
- render: function render() {
- var _this5 = this;
- var h = arguments[0];
- var originSelectedKeys = this.$data.sSelectedKeys;
- var column = this.column,
- locale = this.locale,
- prefixCls = this.prefixCls,
- dropdownPrefixCls = this.dropdownPrefixCls,
- getPopupContainer = this.getPopupContainer;
- // default multiple selection in filter dropdown
- var multiple = 'filterMultiple' in column ? column.filterMultiple : true;
- var dropdownMenuClass = classnames__WEBPACK_IMPORTED_MODULE_4___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, dropdownPrefixCls + '-menu-without-submenu', !this.hasSubMenu()));
- var filterDropdown = column.filterDropdown;
- if (filterDropdown instanceof Function) {
- filterDropdown = filterDropdown({
- prefixCls: dropdownPrefixCls + '-custom',
- setSelectedKeys: function setSelectedKeys(selectedKeys) {
- return _this5.setSelectedKeys({ selectedKeys: selectedKeys });
- },
- selectedKeys: originSelectedKeys,
- confirm: this.handleConfirm,
- clearFilters: this.handleClearFilters,
- filters: column.filters,
- visible: this.getDropdownVisible(),
- column: column
- });
- }
- var menus = filterDropdown ? h(
- _FilterDropdownMenuWrapper__WEBPACK_IMPORTED_MODULE_10__["default"],
- { 'class': prefixCls + '-dropdown' },
- [filterDropdown]
- ) : h(
- _FilterDropdownMenuWrapper__WEBPACK_IMPORTED_MODULE_10__["default"],
- { 'class': prefixCls + '-dropdown' },
- [h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_2__["default"],
- {
- attrs: {
- multiple: multiple,
- prefixCls: dropdownPrefixCls + '-menu',
- selectedKeys: originSelectedKeys && originSelectedKeys.map(function (val) {
- return val;
- }),
- getPopupContainer: getPopupContainer
- },
- on: {
- 'click': this.handleMenuItemClick,
- 'select': this.setSelectedKeys,
- 'deselect': this.setSelectedKeys
- },
- 'class': dropdownMenuClass
- },
- [this.renderMenus(column.filters)]
- ), h(
- 'div',
- { 'class': prefixCls + '-dropdown-btns' },
- [h(
- 'a',
- { 'class': prefixCls + '-dropdown-link confirm', on: {
- 'click': this.handleConfirm
- }
- },
- [locale.filterConfirm]
- ), h(
- 'a',
- { 'class': prefixCls + '-dropdown-link clear', on: {
- 'click': this.handleClearFilters
- }
- },
- [locale.filterReset]
- )]
- )]
- );
- return h(
- _dropdown__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: {
- trigger: ['click'],
- placement: 'bottomRight',
- visible: this.getDropdownVisible(),
- getPopupContainer: getPopupContainer,
- forceRender: true
- },
- on: {
- 'visibleChange': this.onVisibleChange
- }
- },
- [h(
- 'template',
- { slot: 'overlay' },
- [menus]
- ), this.renderFilterIcon()]
- );
- }
- });
- /***/ }),
- /***/ "./components/table/index.jsx":
- /*!************************************!*\
- !*** ./components/table/index.jsx ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Table */ "./components/table/Table.jsx");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- vue__WEBPACK_IMPORTED_MODULE_4___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_3___default.a, { name: 'ant-ref' });
- var Table = {
- name: 'ATable',
- Column: _Table__WEBPACK_IMPORTED_MODULE_2__["default"].Column,
- ColumnGroup: _Table__WEBPACK_IMPORTED_MODULE_2__["default"].ColumnGroup,
- props: _Table__WEBPACK_IMPORTED_MODULE_2__["default"].props,
- methods: {
- normalize: function normalize() {
- var _this = this;
- var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var columns = [];
- elements.forEach(function (element) {
- if (!element.tag) {
- return;
- }
- var key = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getKey"])(element);
- var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getStyle"])(element);
- var cls = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getClass"])(element);
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(element);
- var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])(element);
- var listeners = {};
- Object.keys(events).forEach(function (e) {
- /*
- Convert events on template Column to function props onPropAbcChange in Table.columns prop.
- If you write template code like below:
- <Column @prop-abc-change="f1" @update:prop-abc="f2" :prop-abc.sync="dataAbc" />
- You will get these events:
- {
- 'prop-abc-change': this.f1,
- 'update:prop-abc': [this.f2, e => this.dataAbc = e],
- 'update:propAbc': e => this.dataAbc = e,
- }
- All of these events would be treat as column.onPropAbcChange,
- but only one of them will be valid, which can not be determined.
- */
- var k = void 0;
- if (e.startsWith('update:')) {
- k = 'on-' + e.substr('update:'.length) + '-change';
- } else {
- k = 'on-' + e;
- }
- listeners[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["camelize"])(k)] = events[e];
- });
- var _getSlots = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getSlots"])(element),
- children = _getSlots['default'],
- restSlots = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getSlots, ['default']);
- var column = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restSlots, props, { style: style, 'class': cls }, listeners);
- if (key) {
- column.key = key;
- }
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getSlotOptions"])(element).__ANT_TABLE_COLUMN_GROUP) {
- column.children = _this.normalize(typeof children === 'function' ? children() : children);
- } else {
- var customRender = element.data && element.data.scopedSlots && element.data.scopedSlots['default'];
- column.customRender = column.customRender || customRender;
- }
- columns.push(column);
- });
- return columns;
- },
- updateColumns: function updateColumns() {
- var _this2 = this;
- var cols = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var columns = [];
- var $slots = this.$slots,
- $scopedSlots = this.$scopedSlots;
- cols.forEach(function (col) {
- var _col$slots = col.slots,
- slots = _col$slots === undefined ? {} : _col$slots,
- _col$scopedSlots = col.scopedSlots,
- scopedSlots = _col$scopedSlots === undefined ? {} : _col$scopedSlots,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(col, ['slots', 'scopedSlots']);
- var column = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps);
- Object.keys(slots).forEach(function (key) {
- var name = slots[key];
- if (column[key] === undefined && $slots[name]) {
- column[key] = $slots[name].length === 1 ? $slots[name][0] : $slots[name];
- }
- });
- Object.keys(scopedSlots).forEach(function (key) {
- var name = scopedSlots[key];
- if (column[key] === undefined && $scopedSlots[name]) {
- column[key] = $scopedSlots[name];
- }
- });
- // if (slotScopeName && $scopedSlots[slotScopeName]) {
- // column.customRender = column.customRender || $scopedSlots[slotScopeName]
- // }
- if (col.children) {
- column.children = _this2.updateColumns(column.children);
- }
- columns.push(column);
- });
- return columns;
- }
- },
- render: function render() {
- var h = arguments[0];
- var $slots = this.$slots,
- normalize = this.normalize,
- $scopedSlots = this.$scopedSlots;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var columns = props.columns ? this.updateColumns(props.columns) : normalize($slots['default']);
- var title = props.title,
- footer = props.footer;
- var slotTitle = $scopedSlots.title,
- slotFooter = $scopedSlots.footer,
- _$scopedSlots$expande = $scopedSlots.expandedRowRender,
- expandedRowRender = _$scopedSlots$expande === undefined ? props.expandedRowRender : _$scopedSlots$expande;
- title = title || slotTitle;
- footer = footer || slotFooter;
- var tProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
- columns: columns,
- title: title,
- footer: footer,
- expandedRowRender: expandedRowRender
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
- };
- return h(_Table__WEBPACK_IMPORTED_MODULE_2__["default"], tProps);
- }
- };
- /* istanbul ignore next */
- Table.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
- Vue.component(Table.name, Table);
- Vue.component(Table.Column.name, Table.Column);
- Vue.component(Table.ColumnGroup.name, Table.ColumnGroup);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Table);
- /***/ }),
- /***/ "./components/table/interface.js":
- /*!***************************************!*\
- !*** ./components/table/interface.js ***!
- \***************************************/
- /*! exports provided: ColumnFilterItem, ColumnProps, TableLocale, RowSelectionType, TableRowSelection, TableProps, SelectionCheckboxAllProps, SelectionBoxProps, FilterMenuProps */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnFilterItem", function() { return ColumnFilterItem; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnProps", function() { return ColumnProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TableLocale", function() { return TableLocale; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RowSelectionType", function() { return RowSelectionType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TableRowSelection", function() { return TableRowSelection; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TableProps", function() { return TableProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionCheckboxAllProps", function() { return SelectionCheckboxAllProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionBoxProps", function() { return SelectionBoxProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FilterMenuProps", function() { return FilterMenuProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../pagination */ "./components/pagination/index.js");
- /* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
- var PaginationProps = Object(_pagination__WEBPACK_IMPORTED_MODULE_2__["PaginationProps"])();
- var SpinProps = Object(_spin__WEBPACK_IMPORTED_MODULE_3__["SpinProps"])();
- // export type CompareFn<T> = ((a: T, b: T) => number);
- var ColumnFilterItem = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
- text: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
- }).loose;
- var ColumnProps = {
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- // key?: React.Key;
- dataIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- customRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- customCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- customHeaderCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['left', 'right', 'center']),
- ellipsis: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- filters: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(ColumnFilterItem),
- // onFilter: (value: any, record: T) => PropTypes.bool,
- filterMultiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- filterDropdown: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- filterDropdownVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- // onFilterDropdownVisibleChange?: (visible: boolean) => void;
- sorter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].boolean, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
- defaultSortOrder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['ascend', 'descend']),
- colSpan: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- width: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
- className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['left', 'right'])]),
- filterIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- filteredValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- filtered: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- defaultFilteredValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- sortOrder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['ascend', 'descend'])]),
- sortDirections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
- // children?: ColumnProps<T>[];
- // onCellClick?: (record: T, event: any) => void;
- // onCell?: (record: T) => any;
- // onHeaderCell?: (props: ColumnProps<T>) => any;
- };
- // export interface TableComponents {
- // table?: any;
- // header?: {
- // wrapper?: any;
- // row?: any;
- // cell?: any;
- // };
- // body?: {
- // wrapper?: any;
- // row?: any;
- // cell?: any;
- // };
- // }
- var TableLocale = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
- filterTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- filterConfirm: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- filterReset: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- emptyText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- selectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- selectInvert: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- sortTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- expand: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- collapse: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- }).loose;
- var RowSelectionType = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['checkbox', 'radio']);
- // export type SelectionSelectFn<T> = (record: T, selected: boolean, selectedRows: Object[]) => any;
- var TableRowSelection = {
- type: RowSelectionType,
- selectedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- // onChange?: (selectedRowKeys: string[] | number[], selectedRows: Object[]) => any;
- getCheckboxProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- // onSelect?: SelectionSelectFn<T>;
- // onSelectAll?: (selected: boolean, selectedRows: Object[], changeRows: Object[]) => any;
- // onSelectInvert?: (selectedRows: Object[]) => any;
- selections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
- hideDefaultSelections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- columnWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
- selectWay: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['onSelect', 'onSelectMultiple', 'onSelectAll', 'onSelectInvert']),
- columnTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- };
- var TableProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- rowSelection: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(TableRowSelection).loose, null]),
- pagination: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PaginationProps, {
- position: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['top', 'bottom', 'both'])
- })).loose, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['default', 'middle', 'small', 'large']),
- dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- components: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
- rowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- defaultExpandAllRows: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- defaultExpandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- expandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- // onExpandedRowsChange?: (expandedRowKeys: string[] | number[]) => void;
- // onExpand?: (expanded: boolean, record: T) => void;
- // onChange?: (pagination: PaginationProps | boolean, filters: string[], sorter: Object) => any;
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(SpinProps).loose, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
- locale: TableLocale,
- indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- // onRowClick?: (record: T, index: number, event: Event) => any;
- customRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- customHeaderRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- useFixedHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- showHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- scroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string]),
- bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- sortDirections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- tableLayout: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- transformCellText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- // className?: PropTypes.string,
- // style?: React.CSSProperties;
- // children?: React.ReactNode;
- };
- // export interface TableStateFilters {
- // [key: string]: string[];
- // }
- // export interface TableState<T> {
- // pagination: PaginationProps;
- // filters: TableStateFilters;
- // sortColumn: ColumnProps<T> | null;
- // sortOrder: PropTypes.string,
- // }
- // export type SelectionItemSelectFn = (key: string[]) => any;
- // export interface SelectionItem {
- // key: PropTypes.string,
- // text: PropTypes.any,
- // onSelect: SelectionItemSelectFn;
- // }
- var SelectionCheckboxAllProps = {
- store: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- getCheckboxPropsByItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- getRecordKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- data: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- // onSelect: (key: string, index: number, selectFunc: any) => void;
- hideDefaultSelections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- selections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- };
- // export interface SelectionCheckboxAllState {
- // checked: PropTypes.bool,
- // indeterminate: PropTypes.bool,
- // }
- var SelectionBoxProps = {
- store: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- type: RowSelectionType,
- defaultSelection: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
- rowIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- id: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- // onChange: React.ChangeEventHandler<HTMLInputElement>;
- };
- // export interface SelectionBoxState {
- // checked?: PropTypes.bool,
- // }
- var FilterMenuProps = {
- _propsSymbol: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- locale: TableLocale,
- selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
- column: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- confirmFilter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- handleFilter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- };
- // export interface FilterMenuState {
- // selectedKeys: string[];
- // keyPathOfSelectedItem: { [key: string]: string };
- // visible?: PropTypes.bool,
- // }
- /***/ }),
- /***/ "./components/table/style/index.js":
- /*!*****************************************!*\
- !*** ./components/table/style/index.js ***!
- \*****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/table/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
- /* harmony import */ var _radio_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../radio/style */ "./components/radio/style/index.js");
- /* harmony import */ var _checkbox_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../checkbox/style */ "./components/checkbox/style/index.js");
- /* harmony import */ var _dropdown_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dropdown/style */ "./components/dropdown/style/index.js");
- /* harmony import */ var _spin_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../spin/style */ "./components/spin/style/index.js");
- /* harmony import */ var _pagination_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../pagination/style */ "./components/pagination/style/index.js");
- // style dependencies
- // deps-lint-skip: menu
- /***/ }),
- /***/ "./components/table/style/index.less":
- /*!*******************************************!*\
- !*** ./components/table/style/index.less ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/table/util.js":
- /*!**********************************!*\
- !*** ./components/table/util.js ***!
- \**********************************/
- /*! exports provided: flatArray, treeMap, flatFilter, generateValueMaps */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatArray", function() { return flatArray; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "treeMap", function() { return treeMap; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatFilter", function() { return flatFilter; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateValueMaps", function() { return generateValueMaps; });
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- function flatArray() {
- var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var childrenName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'children';
- var result = [];
- var loop = function loop(array) {
- array.forEach(function (item) {
- if (item[childrenName]) {
- var newItem = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, item);
- delete newItem[childrenName];
- result.push(newItem);
- if (item[childrenName].length > 0) {
- loop(item[childrenName]);
- }
- } else {
- result.push(item);
- }
- });
- };
- loop(data);
- return result;
- }
- function treeMap(tree, mapper) {
- var childrenName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children';
- return tree.map(function (node, index) {
- var extra = {};
- if (node[childrenName]) {
- extra[childrenName] = treeMap(node[childrenName], mapper, childrenName);
- }
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, mapper(node, index), extra);
- });
- }
- function flatFilter(tree, callback) {
- return tree.reduce(function (acc, node) {
- if (callback(node)) {
- acc.push(node);
- }
- if (node.children) {
- var children = flatFilter(node.children, callback);
- acc.push.apply(acc, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(children));
- }
- return acc;
- }, []);
- }
- // export function normalizeColumns (elements) {
- // const columns = []
- // React.Children.forEach(elements, (element) => {
- // if (!React.isValidElement(element)) {
- // return
- // }
- // const column = {
- // ...element.props,
- // }
- // if (element.key) {
- // column.key = element.key
- // }
- // if (element.type && element.type.__ANT_TABLE_COLUMN_GROUP) {
- // column.children = normalizeColumns(column.children)
- // }
- // columns.push(column)
- // })
- // return columns
- // }
- function generateValueMaps(items) {
- var maps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- (items || []).forEach(function (_ref) {
- var value = _ref.value,
- children = _ref.children;
- maps[value.toString()] = value;
- generateValueMaps(children, maps);
- });
- return maps;
- }
- /***/ }),
- /***/ "./components/tabs/TabBar.jsx":
- /*!************************************!*\
- !*** ./components/tabs/TabBar.jsx ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _vc_tabs_src_ScrollableInkTabBar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-tabs/src/ScrollableInkTabBar */ "./components/vc-tabs/src/ScrollableInkTabBar.jsx");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var TabBar = {
- name: 'TabBar',
- inheritAttrs: false,
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- tabBarStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
- tabBarExtraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['line', 'card', 'editable-card']),
- tabPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['top', 'right', 'bottom', 'left']).def('top'),
- tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['top', 'right', 'bottom', 'left']),
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['default', 'small', 'large']),
- animated: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
- renderTabBar: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- panels: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array.def([]),
- activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number]),
- tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number
- },
- render: function render() {
- var _cls;
- var h = arguments[0];
- var _$props = this.$props,
- tabBarStyle = _$props.tabBarStyle,
- _$props$animated = _$props.animated,
- animated = _$props$animated === undefined ? true : _$props$animated,
- renderTabBar = _$props.renderTabBar,
- tabBarExtraContent = _$props.tabBarExtraContent,
- tabPosition = _$props.tabPosition,
- prefixCls = _$props.prefixCls,
- _$props$type = _$props.type,
- type = _$props$type === undefined ? 'line' : _$props$type,
- size = _$props.size;
- var inkBarAnimated = (typeof animated === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(animated)) === 'object' ? animated.inkBar : animated;
- var isVertical = tabPosition === 'left' || tabPosition === 'right';
- var prevIconType = isVertical ? 'up' : 'left';
- var nextIconType = isVertical ? 'down' : 'right';
- var prevIcon = h(
- 'span',
- { 'class': prefixCls + '-tab-prev-icon' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: { type: prevIconType },
- 'class': prefixCls + '-tab-prev-icon-target' })]
- );
- var nextIcon = h(
- 'span',
- { 'class': prefixCls + '-tab-next-icon' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: { type: nextIconType },
- 'class': prefixCls + '-tab-next-icon-target' })]
- );
- // Additional className for style usage
- var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-' + tabPosition + '-bar', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-' + size + '-bar', !!size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-card-bar', type && type.indexOf('card') >= 0), _cls);
- var renderProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, this.$attrs, {
- inkBarAnimated: inkBarAnimated,
- extraContent: tabBarExtraContent,
- prevIcon: prevIcon,
- nextIcon: nextIcon
- }),
- style: tabBarStyle,
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
- 'class': cls
- };
- var RenderTabBar = void 0;
- if (renderTabBar) {
- RenderTabBar = renderTabBar(renderProps, _vc_tabs_src_ScrollableInkTabBar__WEBPACK_IMPORTED_MODULE_4__["default"]);
- // https://github.com/vueComponent/ant-design-vue/issues/2157
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(RenderTabBar, renderProps);
- } else {
- return h(_vc_tabs_src_ScrollableInkTabBar__WEBPACK_IMPORTED_MODULE_4__["default"], renderProps);
- }
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (TabBar);
- /***/ }),
- /***/ "./components/tabs/index.js":
- /*!**********************************!*\
- !*** ./components/tabs/index.js ***!
- \**********************************/
- /*! exports provided: default, TabPane, TabContent */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _tabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tabs */ "./components/tabs/tabs.jsx");
- /* harmony import */ var _vc_tabs_src_TabPane__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-tabs/src/TabPane */ "./components/vc-tabs/src/TabPane.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return _vc_tabs_src_TabPane__WEBPACK_IMPORTED_MODULE_4__["default"]; });
- /* harmony import */ var _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-tabs/src/TabContent */ "./components/vc-tabs/src/TabContent.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_5__["default"]; });
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabPane = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_tabs_src_TabPane__WEBPACK_IMPORTED_MODULE_4__["default"], { name: 'ATabPane', __ANT_TAB_PANE: true });
- _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabContent = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_5__["default"], { name: 'ATabContent' });
- vue__WEBPACK_IMPORTED_MODULE_2___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_1___default.a, { name: 'ant-ref' });
- /* istanbul ignore next */
- _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
- Vue.component(_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].name, _tabs__WEBPACK_IMPORTED_MODULE_3__["default"]);
- Vue.component(_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabPane.name, _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabPane);
- Vue.component(_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabContent.name, _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabContent);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_tabs__WEBPACK_IMPORTED_MODULE_3__["default"]);
- /***/ }),
- /***/ "./components/tabs/style/index.js":
- /*!****************************************!*\
- !*** ./components/tabs/style/index.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tabs/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/tabs/style/index.less":
- /*!******************************************!*\
- !*** ./components/tabs/style/index.less ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/tabs/tabs.jsx":
- /*!**********************************!*\
- !*** ./components/tabs/tabs.jsx ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _vc_tabs_src__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-tabs/src */ "./components/vc-tabs/src/index.js");
- /* harmony import */ var _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-tabs/src/TabContent */ "./components/vc-tabs/src/TabContent.jsx");
- /* harmony import */ var _util_styleChecker__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/styleChecker */ "./components/_util/styleChecker.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_isValid__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/isValid */ "./components/_util/isValid.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _TabBar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TabBar */ "./components/tabs/TabBar.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- TabPane: _vc_tabs_src__WEBPACK_IMPORTED_MODULE_5__["TabPane"],
- name: 'ATabs',
- model: {
- prop: 'activeKey',
- event: 'change'
- },
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
- activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number]),
- defaultActiveKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number]),
- hideAdd: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool.def(false),
- tabBarStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object,
- tabBarExtraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
- destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool.def(false),
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOf(['line', 'card', 'editable-card']),
- tabPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOf(['top', 'right', 'bottom', 'left']).def('top'),
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOf(['default', 'small', 'large']),
- animated: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object]),
- tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number,
- renderTabBar: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
- } }
- },
- mounted: function mounted() {
- var NO_FLEX = ' no-flex';
- var tabNode = this.$el;
- if (tabNode && !_util_styleChecker__WEBPACK_IMPORTED_MODULE_7__["isFlexSupported"] && tabNode.className.indexOf(NO_FLEX) === -1) {
- tabNode.className += NO_FLEX;
- }
- },
- methods: {
- removeTab: function removeTab(targetKey, e) {
- e.stopPropagation();
- if (Object(_util_isValid__WEBPACK_IMPORTED_MODULE_11__["default"])(targetKey)) {
- this.$emit('edit', targetKey, 'remove');
- }
- },
- handleChange: function handleChange(activeKey) {
- this.$emit('change', activeKey);
- },
- createNewTab: function createNewTab(targetKey) {
- this.$emit('edit', targetKey, 'add');
- },
- onTabClick: function onTabClick(val) {
- this.$emit('tabClick', val);
- },
- onPrevClick: function onPrevClick(val) {
- this.$emit('prevClick', val);
- },
- onNextClick: function onNextClick(val) {
- this.$emit('nextClick', val);
- }
- },
- render: function render() {
- var _cls,
- _this = this,
- _contentCls;
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls,
- size = props.size,
- _props$type = props.type,
- type = _props$type === undefined ? 'line' : _props$type,
- tabPosition = props.tabPosition,
- _props$animated = props.animated,
- animated = _props$animated === undefined ? true : _props$animated,
- hideAdd = props.hideAdd,
- renderTabBar = props.renderTabBar;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('tabs', customizePrefixCls);
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])(this.$slots['default']);
- var tabBarExtraContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'tabBarExtraContent');
- var tabPaneAnimated = (typeof animated === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(animated)) === 'object' ? animated.tabPane : animated;
- // card tabs should not have animation
- if (type !== 'line') {
- tabPaneAnimated = 'animated' in props ? tabPaneAnimated : false;
- }
- var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-vertical', tabPosition === 'left' || tabPosition === 'right'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-' + size, !!size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-card', type.indexOf('card') >= 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-' + type, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-no-animation', !tabPaneAnimated), _cls);
- // only card type tabs can be added and closed
- var childrenWithClose = [];
- if (type === 'editable-card') {
- childrenWithClose = [];
- children.forEach(function (child, index) {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(child);
- var closable = props.closable;
- closable = typeof closable === 'undefined' ? true : closable;
- var closeIcon = closable ? h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: {
- type: 'close'
- },
- 'class': prefixCls + '-close-x',
- on: {
- 'click': function click(e) {
- return _this.removeTab(child.key, e);
- }
- }
- }) : null;
- childrenWithClose.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_10__["cloneElement"])(child, {
- props: {
- tab: h(
- 'div',
- { 'class': closable ? undefined : prefixCls + '-tab-unclosable' },
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(child, 'tab'), closeIcon]
- )
- },
- key: child.key || index
- }));
- });
- // Add new tab handler
- if (!hideAdd) {
- tabBarExtraContent = h('span', [h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: { type: 'plus' },
- 'class': prefixCls + '-new-tab', on: {
- 'click': this.createNewTab
- }
- }), tabBarExtraContent]);
- }
- }
- tabBarExtraContent = tabBarExtraContent ? h(
- 'div',
- { 'class': prefixCls + '-extra-content' },
- [tabBarExtraContent]
- ) : null;
- var renderTabBarSlot = renderTabBar || this.$scopedSlots.renderTabBar;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this);
- var tabBarProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, {
- prefixCls: prefixCls,
- tabBarExtraContent: tabBarExtraContent,
- renderTabBar: renderTabBarSlot
- }),
- on: listeners
- };
- var contentCls = (_contentCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_contentCls, prefixCls + '-' + tabPosition + '-content', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_contentCls, prefixCls + '-card-content', type.indexOf('card') >= 0), _contentCls);
- var tabsProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this), {
- prefixCls: prefixCls,
- tabBarPosition: tabPosition,
- // https://github.com/vueComponent/ant-design-vue/issues/2030
- // 如仅传递 tabBarProps 会导致,第二次执行 renderTabBar 时,丢失 on 属性,
- // 添加key之后,会在babel jsx 插件中做一次merge,最终TabBar接收的是一个新的对象,而不是 tabBarProps
- renderTabBar: function renderTabBar() {
- return h(_TabBar__WEBPACK_IMPORTED_MODULE_13__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'tabBar' }, tabBarProps]));
- },
- renderTabContent: function renderTabContent() {
- return h(_vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_6__["default"], { 'class': contentCls, attrs: { animated: tabPaneAnimated, animatedWithMargin: true }
- });
- },
- children: childrenWithClose.length > 0 ? childrenWithClose : children,
- __propsSymbol__: Symbol()
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, listeners, {
- change: this.handleChange
- }),
- 'class': cls
- };
- return h(_vc_tabs_src__WEBPACK_IMPORTED_MODULE_5__["default"], tabsProps);
- }
- });
- /***/ }),
- /***/ "./components/tag/CheckableTag.jsx":
- /*!*****************************************!*\
- !*** ./components/tag/CheckableTag.jsx ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ACheckableTag',
- model: {
- prop: 'checked'
- },
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- checked: Boolean
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
- } }
- },
- computed: {
- classes: function classes() {
- var _ref;
- var checked = this.checked,
- customizePrefixCls = this.prefixCls;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('tag', customizePrefixCls);
- return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-checkable', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-checkable-checked', checked), _ref;
- }
- },
- methods: {
- handleClick: function handleClick() {
- var checked = this.checked;
- this.$emit('input', !checked);
- this.$emit('change', !checked);
- }
- },
- render: function render() {
- var h = arguments[0];
- var classes = this.classes,
- handleClick = this.handleClick,
- $slots = this.$slots;
- return h(
- 'div',
- { 'class': classes, on: {
- 'click': handleClick
- }
- },
- [$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/tag/Tag.jsx":
- /*!********************************!*\
- !*** ./components/tag/Tag.jsx ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _util_wave__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/wave */ "./components/_util/wave.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- var PresetColorTypes = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime'];
- var PresetColorRegex = new RegExp('^(' + PresetColorTypes.join('|') + ')(-inverse)?$');
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ATag',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
- model: {
- prop: 'visible',
- event: 'close.visible'
- },
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- color: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var _visible = true;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
- if ('visible' in props) {
- _visible = this.visible;
- }
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!('afterClose' in props), 'Tag', "'afterClose' will be deprecated, please use 'close' event, we will remove this in the next version.");
- return {
- _visible: _visible
- };
- },
- watch: {
- visible: function visible(val) {
- this.setState({
- _visible: val
- });
- }
- },
- methods: {
- setVisible: function setVisible(visible, e) {
- this.$emit('close', e);
- this.$emit('close.visible', false);
- var afterClose = this.afterClose;
- if (afterClose) {
- // next version remove.
- afterClose();
- }
- if (e.defaultPrevented) {
- return;
- }
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["hasProp"])(this, 'visible')) {
- this.setState({ _visible: visible });
- }
- },
- handleIconClick: function handleIconClick(e) {
- e.stopPropagation();
- this.setVisible(false, e);
- },
- isPresetColor: function isPresetColor() {
- var color = this.$props.color;
- if (!color) {
- return false;
- }
- return PresetColorRegex.test(color);
- },
- getTagStyle: function getTagStyle() {
- var color = this.$props.color;
- var isPresetColor = this.isPresetColor();
- return {
- backgroundColor: color && !isPresetColor ? color : undefined
- };
- },
- getTagClassName: function getTagClassName(prefixCls) {
- var _ref;
- var color = this.$props.color;
- var isPresetColor = this.isPresetColor();
- return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-' + color, isPresetColor), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-has-color', color && !isPresetColor), _ref;
- },
- renderCloseIcon: function renderCloseIcon() {
- var h = this.$createElement;
- var closable = this.$props.closable;
- return closable ? h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: { type: 'close' },
- on: {
- 'click': this.handleIconClick
- }
- }) : null;
- }
- },
- render: function render() {
- var h = arguments[0];
- var customizePrefixCls = this.$props.prefixCls;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('tag', customizePrefixCls);
- var visible = this.$data._visible;
- var tag = h(
- 'span',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- directives: [{
- name: 'show',
- value: visible
- }]
- }, { on: Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), ['close']) }, {
- 'class': this.getTagClassName(prefixCls),
- style: this.getTagStyle()
- }]),
- [this.$slots['default'], this.renderCloseIcon()]
- );
- var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__["default"])(prefixCls + '-zoom', {
- appear: false
- });
- return h(_util_wave__WEBPACK_IMPORTED_MODULE_6__["default"], [h(
- 'transition',
- transitionProps,
- [tag]
- )]);
- }
- });
- /***/ }),
- /***/ "./components/tag/index.js":
- /*!*********************************!*\
- !*** ./components/tag/index.js ***!
- \*********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Tag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tag */ "./components/tag/Tag.jsx");
- /* harmony import */ var _CheckableTag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CheckableTag */ "./components/tag/CheckableTag.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _Tag__WEBPACK_IMPORTED_MODULE_0__["default"].CheckableTag = _CheckableTag__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _Tag__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
- Vue.component(_Tag__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Tag__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_Tag__WEBPACK_IMPORTED_MODULE_0__["default"].CheckableTag.name, _Tag__WEBPACK_IMPORTED_MODULE_0__["default"].CheckableTag);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Tag__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/tag/style/index.js":
- /*!***************************************!*\
- !*** ./components/tag/style/index.js ***!
- \***************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tag/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/tag/style/index.less":
- /*!*****************************************!*\
- !*** ./components/tag/style/index.less ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/time-picker/index.jsx":
- /*!******************************************!*\
- !*** ./components/time-picker/index.jsx ***!
- \******************************************/
- /*! exports provided: generateShowHourMinuteSecond, TimePickerProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateShowHourMinuteSecond", function() { return generateShowHourMinuteSecond; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimePickerProps", function() { return TimePickerProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _vc_time_picker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-time-picker */ "./components/vc-time-picker/index.js");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./locale/en_US */ "./components/time-picker/locale/en_US.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
- function generateShowHourMinuteSecond(format) {
- // Ref: http://momentjs.com/docs/#/parsing/string-format/
- return {
- showHour: format.indexOf('H') > -1 || format.indexOf('h') > -1 || format.indexOf('k') > -1,
- showMinute: format.indexOf('m') > -1,
- showSecond: format.indexOf('s') > -1
- };
- }
- var TimePickerProps = function TimePickerProps() {
- return {
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['large', 'default', 'small']),
- value: _util_moment_util__WEBPACK_IMPORTED_MODULE_14__["TimeOrTimesType"],
- defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_14__["TimeOrTimesType"],
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- hideDisabledOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- hourStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
- minuteStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
- secondStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
- allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- defaultOpenValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
- popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
- suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
- placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- addon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
- valueFormat: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string
- };
- };
- var TimePicker = {
- name: 'ATimePicker',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["initDefaultProps"])(TimePickerProps(), {
- align: {
- offset: [0, -2]
- },
- disabled: false,
- disabledHours: undefined,
- disabledMinutes: undefined,
- disabledSeconds: undefined,
- hideDisabledOptions: false,
- placement: 'bottomLeft',
- transitionName: 'slide-up',
- focusOnOpen: true,
- allowClear: true
- }),
- model: {
- prop: 'value',
- event: 'change'
- },
- provide: function provide() {
- return {
- savePopupRef: this.savePopupRef
- };
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- var value = this.value,
- defaultValue = this.defaultValue,
- valueFormat = this.valueFormat;
- Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["checkValidate"])('TimePicker', defaultValue, 'defaultValue', valueFormat);
- Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["checkValidate"])('TimePicker', value, 'value', valueFormat);
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'allowEmpty'), 'TimePicker', '`allowEmpty` is deprecated. Please use `allowClear` instead.');
- return {
- sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["stringToMoment"])(value || defaultValue, valueFormat)
- };
- },
- watch: {
- value: function value(val) {
- Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["checkValidate"])('TimePicker', val, 'value', this.valueFormat);
- this.setState({ sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["stringToMoment"])(val, this.valueFormat) });
- }
- },
- methods: {
- getDefaultFormat: function getDefaultFormat() {
- var format = this.format,
- use12Hours = this.use12Hours;
- if (format) {
- return format;
- } else if (use12Hours) {
- return 'h:mm:ss a';
- }
- return 'HH:mm:ss';
- },
- getAllowClear: function getAllowClear() {
- var _$props = this.$props,
- allowClear = _$props.allowClear,
- allowEmpty = _$props.allowEmpty;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'allowClear')) {
- return allowClear;
- }
- return allowEmpty;
- },
- getDefaultLocale: function getDefaultLocale() {
- var defaultLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _locale_en_US__WEBPACK_IMPORTED_MODULE_9__["default"], this.$props.locale);
- return defaultLocale;
- },
- savePopupRef: function savePopupRef(ref) {
- this.popupRef = ref;
- },
- handleChange: function handleChange(value) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'value')) {
- this.setState({ sValue: value });
- }
- var _format = this.format,
- format = _format === undefined ? 'HH:mm:ss' : _format;
- this.$emit('change', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["momentToString"])(value, this.valueFormat) : value, value && value.format(format) || '');
- },
- handleOpenClose: function handleOpenClose(_ref) {
- var open = _ref.open;
- this.$emit('openChange', open);
- this.$emit('update:open', open);
- },
- focus: function focus() {
- this.$refs.timePicker.focus();
- },
- blur: function blur() {
- this.$refs.timePicker.blur();
- },
- renderInputIcon: function renderInputIcon(prefixCls) {
- var h = this.$createElement;
- var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getComponentFromProp"])(this, 'suffixIcon');
- suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
- var clockIcon = suffixIcon && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["isValidElement"])(suffixIcon) && Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(suffixIcon, {
- 'class': prefixCls + '-clock-icon'
- }) || h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: { type: 'clock-circle' },
- 'class': prefixCls + '-clock-icon' });
- return h(
- 'span',
- { 'class': prefixCls + '-icon' },
- [clockIcon]
- );
- },
- renderClearIcon: function renderClearIcon(prefixCls) {
- var h = this.$createElement;
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getComponentFromProp"])(this, 'clearIcon');
- var clearIconPrefixCls = prefixCls + '-clear';
- if (clearIcon && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["isValidElement"])(clearIcon)) {
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(clearIcon, {
- 'class': clearIconPrefixCls
- });
- }
- return h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: { type: 'close-circle', theme: 'filled' },
- 'class': clearIconPrefixCls });
- },
- renderTimePicker: function renderTimePicker(locale) {
- var h = this.$createElement;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getOptionProps"])(this);
- props = Object(omit_js__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ['defaultValue', 'suffixIcon', 'allowEmpty', 'allowClear']);
- var _props = props,
- customizePrefixCls = _props.prefixCls,
- getPopupContainer = _props.getPopupContainer,
- placeholder = _props.placeholder,
- size = _props.size;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('time-picker', customizePrefixCls);
- var format = this.getDefaultFormat();
- var pickerClassName = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-' + size, !!size);
- var tempAddon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getComponentFromProp"])(this, 'addon', {}, false);
- var pickerAddon = function pickerAddon(panel) {
- return tempAddon ? h(
- 'div',
- { 'class': prefixCls + '-panel-addon' },
- [typeof tempAddon === 'function' ? tempAddon(panel) : tempAddon]
- ) : null;
- };
- var inputIcon = this.renderInputIcon(prefixCls);
- var clearIcon = this.renderClearIcon(prefixCls);
- var getContextPopupContainer = this.configProvider.getPopupContainer;
- var timeProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, generateShowHourMinuteSecond(format), props, {
- allowEmpty: this.getAllowClear(),
- prefixCls: prefixCls,
- getPopupContainer: getPopupContainer || getContextPopupContainer,
- format: format,
- value: this.sValue,
- placeholder: placeholder === undefined ? locale.placeholder : placeholder,
- addon: pickerAddon,
- inputIcon: inputIcon,
- clearIcon: clearIcon
- }),
- 'class': pickerClassName,
- ref: 'timePicker',
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getListeners"])(this), {
- change: this.handleChange,
- open: this.handleOpenClose,
- close: this.handleOpenClose
- })
- };
- return h(_vc_time_picker__WEBPACK_IMPORTED_MODULE_3__["default"], timeProps);
- }
- },
- render: function render() {
- var h = arguments[0];
- return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: {
- componentName: 'TimePicker',
- defaultLocale: this.getDefaultLocale()
- },
- scopedSlots: { 'default': this.renderTimePicker }
- });
- }
- };
- /* istanbul ignore next */
- TimePicker.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_13__["default"]);
- Vue.component(TimePicker.name, TimePicker);
- };
- /* harmony default export */ __webpack_exports__["default"] = (TimePicker);
- /***/ }),
- /***/ "./components/time-picker/locale/en_US.js":
- /*!************************************************!*\
- !*** ./components/time-picker/locale/en_US.js ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var locale = {
- placeholder: 'Select time'
- };
- /* harmony default export */ __webpack_exports__["default"] = (locale);
- /***/ }),
- /***/ "./components/time-picker/style/index.js":
- /*!***********************************************!*\
- !*** ./components/time-picker/style/index.js ***!
- \***********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/time-picker/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/time-picker/style/index.less":
- /*!*************************************************!*\
- !*** ./components/time-picker/style/index.less ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/timeline/Timeline.jsx":
- /*!******************************************!*\
- !*** ./components/timeline/Timeline.jsx ***!
- \******************************************/
- /*! exports provided: TimelineProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineProps", function() { return TimelineProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _TimelineItem__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TimelineItem */ "./components/timeline/TimelineItem.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var TimelineProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- /** 指定最后一个幽灵节点是否存在或内容 */
- pending: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- pendingDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['left', 'alternate', 'right', ''])
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ATimeline',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(TimelineProps, {
- reverse: false,
- mode: ''
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
- } }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- reverse = _getOptionProps.reverse,
- mode = _getOptionProps.mode,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_getOptionProps, ['prefixCls', 'reverse', 'mode']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('timeline', customizePrefixCls);
- var pendingDot = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'pendingDot');
- var pending = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'pending');
- var pendingNode = typeof pending === 'boolean' ? null : pending;
- var classString = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-pending', !!pending), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-reverse', !!reverse), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-' + mode, !!mode), _classNames));
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(this.$slots['default']);
- // // Remove falsy items
- // const falsylessItems = filterEmpty(this.$slots.default)
- // const items = falsylessItems.map((item, idx) => {
- // return cloneElement(item, {
- // props: {
- // last: falsylessItems.length - 1 === idx,
- // },
- // })
- // })
- var pendingItem = pending ? h(
- _TimelineItem__WEBPACK_IMPORTED_MODULE_8__["default"],
- {
- attrs: { pending: !!pending }
- },
- [h(
- 'template',
- { slot: 'dot' },
- [pendingDot || h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
- attrs: { type: 'loading' }
- })]
- ), pendingNode]
- ) : null;
- var timeLineItems = reverse ? [pendingItem].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(children.reverse())) : [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(children), [pendingItem]);
- var getPositionCls = function getPositionCls(ele, idx) {
- var eleProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getPropsData"])(ele);
- if (mode === 'alternate') {
- if (eleProps.position === 'right') return prefixCls + '-item-right';
- if (eleProps.position === 'left') return prefixCls + '-item-left';
- return idx % 2 === 0 ? prefixCls + '-item-left' : prefixCls + '-item-right';
- }
- if (mode === 'left') return prefixCls + '-item-left';
- if (mode === 'right') return prefixCls + '-item-right';
- if (eleProps.position === 'right') return prefixCls + '-item-right';
- return '';
- };
- // Remove falsy items
- var truthyItems = timeLineItems.filter(function (item) {
- return !!item;
- });
- var itemsCount = truthyItems.length;
- var lastCls = prefixCls + '-item-last';
- var items = truthyItems.map(function (ele, idx) {
- var pendingClass = idx === itemsCount - 2 ? lastCls : '';
- var readyClass = idx === itemsCount - 1 ? lastCls : '';
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(ele, {
- 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()([!reverse && !!pending ? pendingClass : readyClass, getPositionCls(ele, idx)])
- });
- });
- var timelineProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps),
- 'class': classString,
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
- };
- return h(
- 'ul',
- timelineProps,
- [items]
- );
- }
- });
- /***/ }),
- /***/ "./components/timeline/TimelineItem.jsx":
- /*!**********************************************!*\
- !*** ./components/timeline/TimelineItem.jsx ***!
- \**********************************************/
- /*! exports provided: TimeLineItemProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeLineItemProps", function() { return TimeLineItemProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- var TimeLineItemProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- color: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- dot: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- pending: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- position: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['left', 'right', '']).def('')
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ATimelineItem',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(TimeLineItemProps, {
- color: 'blue',
- pending: false
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
- } }
- },
- render: function render() {
- var _classNames, _classNames2;
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- _getOptionProps$color = _getOptionProps.color,
- color = _getOptionProps$color === undefined ? '' : _getOptionProps$color,
- pending = _getOptionProps.pending;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('timeline', customizePrefixCls);
- var dot = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'dot');
- var itemClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-item-pending', pending), _classNames));
- var dotClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-item-head', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-item-head-custom', dot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-item-head-' + color, true), _classNames2));
- var liProps = {
- 'class': itemClassName,
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
- };
- return h(
- 'li',
- liProps,
- [h('div', { 'class': prefixCls + '-item-tail' }), h(
- 'div',
- {
- 'class': dotClassName,
- style: { borderColor: /blue|red|green|gray/.test(color) ? undefined : color }
- },
- [dot]
- ), h(
- 'div',
- { 'class': prefixCls + '-item-content' },
- [this.$slots['default']]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/timeline/index.jsx":
- /*!***************************************!*\
- !*** ./components/timeline/index.jsx ***!
- \***************************************/
- /*! exports provided: TimelineProps, TimeLineItemProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Timeline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Timeline */ "./components/timeline/Timeline.jsx");
- /* harmony import */ var _TimelineItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TimelineItem */ "./components/timeline/TimelineItem.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimelineProps", function() { return _Timeline__WEBPACK_IMPORTED_MODULE_0__["TimelineProps"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimeLineItemProps", function() { return _TimelineItem__WEBPACK_IMPORTED_MODULE_1__["TimeLineItemProps"]; });
- _Timeline__WEBPACK_IMPORTED_MODULE_0__["default"].Item = _TimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _Timeline__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
- Vue.component(_Timeline__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Timeline__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_TimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"].name, _TimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Timeline__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/timeline/style/index.js":
- /*!********************************************!*\
- !*** ./components/timeline/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/timeline/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/timeline/style/index.less":
- /*!**********************************************!*\
- !*** ./components/timeline/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/tooltip/Tooltip.jsx":
- /*!****************************************!*\
- !*** ./components/tooltip/Tooltip.jsx ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _vc_tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-tooltip */ "./components/vc-tooltip/index.js");
- /* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placements */ "./components/tooltip/placements.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _abstractTooltipProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
- var splitObject = function splitObject(obj, keys) {
- var picked = {};
- var omitted = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, obj);
- keys.forEach(function (key) {
- if (obj && key in obj) {
- picked[key] = obj[key];
- delete omitted[key];
- }
- });
- return { picked: picked, omitted: omitted };
- };
- var props = Object(_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_8__["default"])();
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ATooltip',
- model: {
- prop: 'visible',
- event: 'visibleChange'
- },
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- return {
- sVisible: !!this.$props.visible || !!this.$props.defaultVisible
- };
- },
- watch: {
- visible: function visible(val) {
- this.sVisible = val;
- }
- },
- methods: {
- onVisibleChange: function onVisibleChange(visible) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'visible')) {
- this.sVisible = this.isNoTitle() ? false : visible;
- }
- if (!this.isNoTitle()) {
- this.$emit('visibleChange', visible);
- }
- },
- getPopupDomNode: function getPopupDomNode() {
- return this.$refs.tooltip.getPopupDomNode();
- },
- getPlacements: function getPlacements() {
- var _$props = this.$props,
- builtinPlacements = _$props.builtinPlacements,
- arrowPointAtCenter = _$props.arrowPointAtCenter,
- autoAdjustOverflow = _$props.autoAdjustOverflow;
- return builtinPlacements || Object(_placements__WEBPACK_IMPORTED_MODULE_4__["default"])({
- arrowPointAtCenter: arrowPointAtCenter,
- verticalArrowShift: 8,
- autoAdjustOverflow: autoAdjustOverflow
- });
- },
- // Fix Tooltip won't hide at disabled button
- // mouse events don't trigger at disabled button in Chrome
- // https://github.com/react-component/tooltip/issues/18
- getDisabledCompatibleChildren: function getDisabledCompatibleChildren(ele) {
- var h = this.$createElement;
- var options = ele.componentOptions && ele.componentOptions.Ctor.options || {};
- if ((options.__ANT_BUTTON === true || options.__ANT_SWITCH === true || options.__ANT_CHECKBOX === true) && (ele.componentOptions.propsData.disabled || ele.componentOptions.propsData.disabled === '') || ele.tag === 'button' && ele.data && ele.data.attrs && ele.data.attrs.disabled !== undefined) {
- // Pick some layout related style properties up to span
- // Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254
- var _splitObject = splitObject(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(ele), ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']),
- picked = _splitObject.picked,
- omitted = _splitObject.omitted;
- var spanStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- display: 'inline-block' }, picked, {
- cursor: 'not-allowed',
- width: ele.componentOptions.propsData.block ? '100%' : null
- });
- var buttonStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, omitted, {
- pointerEvents: 'none'
- });
- var spanCls = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getClass"])(ele);
- var child = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(ele, {
- style: buttonStyle,
- 'class': null
- });
- return h(
- 'span',
- { style: spanStyle, 'class': spanCls },
- [child]
- );
- }
- return ele;
- },
- isNoTitle: function isNoTitle() {
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'title');
- return !title && title !== 0;
- },
- getOverlay: function getOverlay() {
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'title');
- if (title === 0) {
- return title;
- }
- return title || '';
- },
- // 动态设置动画点
- onPopupAlign: function onPopupAlign(domNode, align) {
- var placements = this.getPlacements();
- // 当前返回的位置
- var placement = Object.keys(placements).filter(function (key) {
- return placements[key].points[0] === align.points[0] && placements[key].points[1] === align.points[1];
- })[0];
- if (!placement) {
- return;
- }
- // 根据当前坐标设置动画点
- var rect = domNode.getBoundingClientRect();
- var transformOrigin = {
- top: '50%',
- left: '50%'
- };
- if (placement.indexOf('top') >= 0 || placement.indexOf('Bottom') >= 0) {
- transformOrigin.top = rect.height - align.offset[1] + 'px';
- } else if (placement.indexOf('Top') >= 0 || placement.indexOf('bottom') >= 0) {
- transformOrigin.top = -align.offset[1] + 'px';
- }
- if (placement.indexOf('left') >= 0 || placement.indexOf('Right') >= 0) {
- transformOrigin.left = rect.width - align.offset[0] + 'px';
- } else if (placement.indexOf('right') >= 0 || placement.indexOf('Left') >= 0) {
- transformOrigin.left = -align.offset[0] + 'px';
- }
- domNode.style.transformOrigin = transformOrigin.left + ' ' + transformOrigin.top;
- }
- },
- render: function render() {
- var h = arguments[0];
- var $props = this.$props,
- $data = this.$data,
- $slots = this.$slots;
- var customizePrefixCls = $props.prefixCls,
- openClassName = $props.openClassName,
- getPopupContainer = $props.getPopupContainer;
- var getContextPopupContainer = this.configProvider.getPopupContainer;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('tooltip', customizePrefixCls);
- var children = ($slots['default'] || []).filter(function (c) {
- return c.tag || c.text.trim() !== '';
- });
- children = children.length === 1 ? children[0] : children;
- var sVisible = $data.sVisible;
- // Hide tooltip when there is no title
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'visible') && this.isNoTitle()) {
- sVisible = false;
- }
- if (!children) {
- return null;
- }
- var child = this.getDisabledCompatibleChildren(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(children) ? children : h('span', [children]));
- var childCls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, openClassName || prefixCls + '-open', true);
- var tooltipProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $props, {
- prefixCls: prefixCls,
- getTooltipContainer: getPopupContainer || getContextPopupContainer,
- builtinPlacements: this.getPlacements(),
- overlay: this.getOverlay(),
- visible: sVisible
- }),
- ref: 'tooltip',
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
- visibleChange: this.onVisibleChange,
- popupAlign: this.onPopupAlign
- })
- };
- return h(
- _vc_tooltip__WEBPACK_IMPORTED_MODULE_3__["default"],
- tooltipProps,
- [sVisible ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, { 'class': childCls }) : child]
- );
- }
- });
- /***/ }),
- /***/ "./components/tooltip/abstractTooltipProps.js":
- /*!****************************************************!*\
- !*** ./components/tooltip/abstractTooltipProps.js ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- var triggerType = _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['hover', 'focus', 'click', 'contextmenu']);
- /* harmony default export */ __webpack_exports__["default"] = (function () {
- return {
- trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([triggerType, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(triggerType)]).def('hover'),
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- defaultVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['top', 'left', 'right', 'bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'leftBottom', 'rightTop', 'rightBottom']).def('top'),
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('zoom-big-fast'),
- // onVisibleChange: PropTypes.func,
- overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
- return {};
- }),
- overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
- mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- arrowPointAtCenter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- autoAdjustOverflow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]).def(true),
- destroyTooltipOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
- return {};
- }),
- builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object
- };
- });
- /***/ }),
- /***/ "./components/tooltip/index.js":
- /*!*************************************!*\
- !*** ./components/tooltip/index.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tooltip */ "./components/tooltip/Tooltip.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* istanbul ignore next */
- _Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
- Vue.component(_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/tooltip/placements.js":
- /*!******************************************!*\
- !*** ./components/tooltip/placements.js ***!
- \******************************************/
- /*! exports provided: getOverflowOptions, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOverflowOptions", function() { return getOverflowOptions; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getPlacements; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _vc_tooltip_placements__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-tooltip/placements */ "./components/vc-tooltip/placements.js");
- var autoAdjustOverflowEnabled = {
- adjustX: 1,
- adjustY: 1
- };
- var autoAdjustOverflowDisabled = {
- adjustX: 0,
- adjustY: 0
- };
- var targetOffset = [0, 0];
- function getOverflowOptions(autoAdjustOverflow) {
- if (typeof autoAdjustOverflow === 'boolean') {
- return autoAdjustOverflow ? autoAdjustOverflowEnabled : autoAdjustOverflowDisabled;
- }
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, autoAdjustOverflowDisabled, autoAdjustOverflow);
- }
- function getPlacements(config) {
- var _config$arrowWidth = config.arrowWidth,
- arrowWidth = _config$arrowWidth === undefined ? 5 : _config$arrowWidth,
- _config$horizontalArr = config.horizontalArrowShift,
- horizontalArrowShift = _config$horizontalArr === undefined ? 16 : _config$horizontalArr,
- _config$verticalArrow = config.verticalArrowShift,
- verticalArrowShift = _config$verticalArrow === undefined ? 12 : _config$verticalArrow,
- _config$autoAdjustOve = config.autoAdjustOverflow,
- autoAdjustOverflow = _config$autoAdjustOve === undefined ? true : _config$autoAdjustOve;
- var placementMap = {
- left: {
- points: ['cr', 'cl'],
- offset: [-4, 0]
- },
- right: {
- points: ['cl', 'cr'],
- offset: [4, 0]
- },
- top: {
- points: ['bc', 'tc'],
- offset: [0, -4]
- },
- bottom: {
- points: ['tc', 'bc'],
- offset: [0, 4]
- },
- topLeft: {
- points: ['bl', 'tc'],
- offset: [-(horizontalArrowShift + arrowWidth), -4]
- },
- leftTop: {
- points: ['tr', 'cl'],
- offset: [-4, -(verticalArrowShift + arrowWidth)]
- },
- topRight: {
- points: ['br', 'tc'],
- offset: [horizontalArrowShift + arrowWidth, -4]
- },
- rightTop: {
- points: ['tl', 'cr'],
- offset: [4, -(verticalArrowShift + arrowWidth)]
- },
- bottomRight: {
- points: ['tr', 'bc'],
- offset: [horizontalArrowShift + arrowWidth, 4]
- },
- rightBottom: {
- points: ['bl', 'cr'],
- offset: [4, verticalArrowShift + arrowWidth]
- },
- bottomLeft: {
- points: ['tl', 'bc'],
- offset: [-(horizontalArrowShift + arrowWidth), 4]
- },
- leftBottom: {
- points: ['br', 'cl'],
- offset: [-4, verticalArrowShift + arrowWidth]
- }
- };
- Object.keys(placementMap).forEach(function (key) {
- placementMap[key] = config.arrowPointAtCenter ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, placementMap[key], {
- overflow: getOverflowOptions(autoAdjustOverflow),
- targetOffset: targetOffset
- }) : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_tooltip_placements__WEBPACK_IMPORTED_MODULE_1__["placements"][key], {
- overflow: getOverflowOptions(autoAdjustOverflow)
- });
- placementMap[key].ignoreShake = true;
- });
- return placementMap;
- }
- /***/ }),
- /***/ "./components/tooltip/style/index.js":
- /*!*******************************************!*\
- !*** ./components/tooltip/style/index.js ***!
- \*******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tooltip/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/tooltip/style/index.less":
- /*!*********************************************!*\
- !*** ./components/tooltip/style/index.less ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/transfer/ListItem.jsx":
- /*!******************************************!*\
- !*** ./components/transfer/ListItem.jsx ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _vc_lazy_load__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-lazy-load */ "./components/vc-lazy-load/index.js");
- /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ListItem',
- props: {
- renderedText: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- renderedEl: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- item: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]),
- checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
- },
- render: function render() {
- var _classNames,
- _this = this;
- var h = arguments[0];
- var _$props = this.$props,
- renderedText = _$props.renderedText,
- renderedEl = _$props.renderedEl,
- item = _$props.item,
- lazy = _$props.lazy,
- checked = _$props.checked,
- disabled = _$props.disabled,
- prefixCls = _$props.prefixCls;
- var className = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-content-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-content-item-disabled', disabled || item.disabled), _classNames));
- var title = void 0;
- if (typeof renderedText === 'string' || typeof renderedText === 'number') {
- title = String(renderedText);
- }
- var listItem = h(
- 'li',
- {
- 'class': className,
- attrs: { title: title
- },
- on: {
- 'click': disabled || item.disabled ? noop : function () {
- _this.$emit('click', item);
- }
- }
- },
- [h(_checkbox__WEBPACK_IMPORTED_MODULE_5__["default"], {
- attrs: { checked: checked, disabled: disabled || item.disabled }
- }), h(
- 'span',
- { 'class': prefixCls + '-content-item-text' },
- [renderedEl]
- )]
- );
- var children = null;
- if (lazy) {
- var lazyProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- height: 32,
- offset: 500,
- throttle: 0,
- debounce: false
- }, lazy, {
- _propsSymbol: Symbol()
- })
- };
- children = h(
- _vc_lazy_load__WEBPACK_IMPORTED_MODULE_4__["default"],
- lazyProps,
- [listItem]
- );
- } else {
- children = listItem;
- }
- return children;
- }
- });
- /***/ }),
- /***/ "./components/transfer/index.jsx":
- /*!***************************************!*\
- !*** ./components/transfer/index.jsx ***!
- \***************************************/
- /*! exports provided: TransferDirection, TransferItem, TransferProps, TransferLocale, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferDirection", function() { return TransferDirection; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferItem", function() { return TransferItem; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferProps", function() { return TransferProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferLocale", function() { return TransferLocale; });
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./list */ "./components/transfer/list.jsx");
- /* harmony import */ var _operation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./operation */ "./components/transfer/operation.jsx");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- var TransferDirection = 'left' | 'right';
- var TransferItem = {
- key: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
- description: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
- };
- var TransferProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(TransferItem).loose),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].boolean,
- targetKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
- selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
- render: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- listStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
- operationStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- titles: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
- operations: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool]),
- showSelectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
- };
- var TransferLocale = {
- titles: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- itemUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- itemsUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
- };
- var Transfer = {
- name: 'ATransfer',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(TransferProps, {
- dataSource: [],
- locale: {},
- showSearch: false,
- listStyle: function listStyle() {}
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__["ConfigConsumerProps"];
- } }
- },
- data: function data() {
- // vue 中 通过slot,不方便传递,保留notFoundContent及searchPlaceholder
- // warning(
- // !(getComponentFromProp(this, 'notFoundContent') || hasProp(this, 'searchPlaceholder')),
- // 'Transfer[notFoundContent] and Transfer[searchPlaceholder] will be removed, ' +
- // 'please use Transfer[locale] instead.',
- // )
- var _selectedKeys = this.selectedKeys,
- selectedKeys = _selectedKeys === undefined ? [] : _selectedKeys,
- _targetKeys = this.targetKeys,
- targetKeys = _targetKeys === undefined ? [] : _targetKeys;
- return {
- leftFilter: '',
- rightFilter: '',
- sourceSelectedKeys: selectedKeys.filter(function (key) {
- return targetKeys.indexOf(key) === -1;
- }),
- targetSelectedKeys: selectedKeys.filter(function (key) {
- return targetKeys.indexOf(key) > -1;
- })
- };
- },
- mounted: function mounted() {
- // this.currentProps = { ...this.$props }
- },
- watch: {
- targetKeys: function targetKeys() {
- this.updateState();
- if (this.selectedKeys) {
- var targetKeys = this.targetKeys || [];
- this.setState({
- sourceSelectedKeys: this.selectedKeys.filter(function (key) {
- return !targetKeys.includes(key);
- }),
- targetSelectedKeys: this.selectedKeys.filter(function (key) {
- return targetKeys.includes(key);
- })
- });
- }
- },
- dataSource: function dataSource() {
- this.updateState();
- },
- selectedKeys: function selectedKeys() {
- if (this.selectedKeys) {
- var targetKeys = this.targetKeys || [];
- this.setState({
- sourceSelectedKeys: this.selectedKeys.filter(function (key) {
- return !targetKeys.includes(key);
- }),
- targetSelectedKeys: this.selectedKeys.filter(function (key) {
- return targetKeys.includes(key);
- })
- });
- }
- }
- },
- methods: {
- getSelectedKeysName: function getSelectedKeysName(direction) {
- return direction === 'left' ? 'sourceSelectedKeys' : 'targetSelectedKeys';
- },
- getTitles: function getTitles(transferLocale) {
- if (this.titles) {
- return this.titles;
- }
- return transferLocale.titles || ['', ''];
- },
- getLocale: function getLocale(transferLocale, renderEmpty) {
- var h = this.$createElement;
- // Keep old locale props still working.
- var oldLocale = {
- notFoundContent: renderEmpty(h, 'Transfer')
- };
- var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'notFoundContent');
- if (notFoundContent) {
- oldLocale.notFoundContent = notFoundContent;
- }
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'searchPlaceholder')) {
- oldLocale.searchPlaceholder = this.$props.searchPlaceholder;
- }
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, transferLocale, oldLocale, this.$props.locale);
- },
- updateState: function updateState() {
- var sourceSelectedKeys = this.sourceSelectedKeys,
- targetSelectedKeys = this.targetSelectedKeys;
- this.separatedDataSource = null;
- if (!this.selectedKeys) {
- // clear key nolonger existed
- // clear checkedKeys according to targetKeys
- var dataSource = this.dataSource,
- _targetKeys2 = this.targetKeys,
- targetKeys = _targetKeys2 === undefined ? [] : _targetKeys2;
- var newSourceSelectedKeys = [];
- var newTargetSelectedKeys = [];
- dataSource.forEach(function (_ref) {
- var key = _ref.key;
- if (sourceSelectedKeys.includes(key) && !targetKeys.includes(key)) {
- newSourceSelectedKeys.push(key);
- }
- if (targetSelectedKeys.includes(key) && targetKeys.includes(key)) {
- newTargetSelectedKeys.push(key);
- }
- });
- this.setState({
- sourceSelectedKeys: newSourceSelectedKeys,
- targetSelectedKeys: newTargetSelectedKeys
- });
- }
- },
- moveTo: function moveTo(direction) {
- var _$props = this.$props,
- _$props$targetKeys = _$props.targetKeys,
- targetKeys = _$props$targetKeys === undefined ? [] : _$props$targetKeys,
- _$props$dataSource = _$props.dataSource,
- dataSource = _$props$dataSource === undefined ? [] : _$props$dataSource;
- var sourceSelectedKeys = this.sourceSelectedKeys,
- targetSelectedKeys = this.targetSelectedKeys;
- var moveKeys = direction === 'right' ? sourceSelectedKeys : targetSelectedKeys;
- // filter the disabled options
- var newMoveKeys = moveKeys.filter(function (key) {
- return !dataSource.some(function (data) {
- return !!(key === data.key && data.disabled);
- });
- });
- // move items to target box
- var newTargetKeys = direction === 'right' ? newMoveKeys.concat(targetKeys) : targetKeys.filter(function (targetKey) {
- return newMoveKeys.indexOf(targetKey) === -1;
- });
- // empty checked keys
- var oppositeDirection = direction === 'right' ? 'left' : 'right';
- this.setState(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getSelectedKeysName(oppositeDirection), []));
- this.handleSelectChange(oppositeDirection, []);
- this.$emit('change', newTargetKeys, direction, newMoveKeys);
- },
- moveToLeft: function moveToLeft() {
- this.moveTo('left');
- },
- moveToRight: function moveToRight() {
- this.moveTo('right');
- },
- onItemSelectAll: function onItemSelectAll(direction, selectedKeys, checkAll) {
- var originalSelectedKeys = this.$data[this.getSelectedKeysName(direction)] || [];
- var mergedCheckedKeys = [];
- if (checkAll) {
- // Merge current keys with origin key
- mergedCheckedKeys = Array.from(new Set([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(originalSelectedKeys), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(selectedKeys))));
- } else {
- // Remove current keys from origin keys
- mergedCheckedKeys = originalSelectedKeys.filter(function (key) {
- return selectedKeys.indexOf(key) === -1;
- });
- }
- this.handleSelectChange(direction, mergedCheckedKeys);
- if (!this.$props.selectedKeys) {
- this.setState(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getSelectedKeysName(direction), mergedCheckedKeys));
- }
- },
- handleSelectAll: function handleSelectAll(direction, filteredDataSource, checkAll) {
- this.onItemSelectAll(direction, filteredDataSource.map(function (_ref2) {
- var key = _ref2.key;
- return key;
- }), !checkAll);
- },
- // [Legacy] Old prop `body` pass origin check as arg. It's confusing.
- // TODO: Remove this in next version.
- handleLeftSelectAll: function handleLeftSelectAll(filteredDataSource, checkAll) {
- return this.handleSelectAll('left', filteredDataSource, !checkAll);
- },
- handleRightSelectAll: function handleRightSelectAll(filteredDataSource, checkAll) {
- return this.handleSelectAll('right', filteredDataSource, !checkAll);
- },
- onLeftItemSelectAll: function onLeftItemSelectAll(selectedKeys, checkAll) {
- return this.onItemSelectAll('left', selectedKeys, checkAll);
- },
- onRightItemSelectAll: function onRightItemSelectAll(selectedKeys, checkAll) {
- return this.onItemSelectAll('right', selectedKeys, checkAll);
- },
- handleFilter: function handleFilter(direction, e) {
- var value = e.target.value;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this).searchChange) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_12__["default"])(false, 'Transfer', '`searchChange` in Transfer is deprecated. Please use `search` instead.');
- this.$emit('searchChange', direction, e);
- }
- this.$emit('search', direction, value);
- },
- handleLeftFilter: function handleLeftFilter(e) {
- this.handleFilter('left', e);
- },
- handleRightFilter: function handleRightFilter(e) {
- this.handleFilter('right', e);
- },
- handleClear: function handleClear(direction) {
- this.$emit('search', direction, '');
- },
- handleLeftClear: function handleLeftClear() {
- this.handleClear('left');
- },
- handleRightClear: function handleRightClear() {
- this.handleClear('right');
- },
- onItemSelect: function onItemSelect(direction, selectedKey, checked) {
- var sourceSelectedKeys = this.sourceSelectedKeys,
- targetSelectedKeys = this.targetSelectedKeys;
- var holder = direction === 'left' ? [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(sourceSelectedKeys)) : [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(targetSelectedKeys));
- var index = holder.indexOf(selectedKey);
- if (index > -1) {
- holder.splice(index, 1);
- }
- if (checked) {
- holder.push(selectedKey);
- }
- this.handleSelectChange(direction, holder);
- if (!this.selectedKeys) {
- this.setState(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getSelectedKeysName(direction), holder));
- }
- },
- handleSelect: function handleSelect(direction, selectedItem, checked) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_12__["default"])(false, 'Transfer', '`handleSelect` will be removed, please use `onSelect` instead.');
- this.onItemSelect(direction, selectedItem.key, checked);
- },
- handleLeftSelect: function handleLeftSelect(selectedItem, checked) {
- return this.handleSelect('left', selectedItem, checked);
- },
- handleRightSelect: function handleRightSelect(selectedItem, checked) {
- return this.handleSelect('right', selectedItem, checked);
- },
- onLeftItemSelect: function onLeftItemSelect(selectedKey, checked) {
- return this.onItemSelect('left', selectedKey, checked);
- },
- onRightItemSelect: function onRightItemSelect(selectedKey, checked) {
- return this.onItemSelect('right', selectedKey, checked);
- },
- handleScroll: function handleScroll(direction, e) {
- this.$emit('scroll', direction, e);
- },
- handleLeftScroll: function handleLeftScroll(e) {
- this.handleScroll('left', e);
- },
- handleRightScroll: function handleRightScroll(e) {
- this.handleScroll('right', e);
- },
- handleSelectChange: function handleSelectChange(direction, holder) {
- var sourceSelectedKeys = this.sourceSelectedKeys,
- targetSelectedKeys = this.targetSelectedKeys;
- if (direction === 'left') {
- this.$emit('selectChange', holder, targetSelectedKeys);
- } else {
- this.$emit('selectChange', sourceSelectedKeys, holder);
- }
- },
- handleListStyle: function handleListStyle(listStyle, direction) {
- if (typeof listStyle === 'function') {
- return listStyle({ direction: direction });
- }
- return listStyle;
- },
- separateDataSource: function separateDataSource() {
- var _$props2 = this.$props,
- dataSource = _$props2.dataSource,
- rowKey = _$props2.rowKey,
- _$props2$targetKeys = _$props2.targetKeys,
- targetKeys = _$props2$targetKeys === undefined ? [] : _$props2$targetKeys;
- var leftDataSource = [];
- var rightDataSource = new Array(targetKeys.length);
- dataSource.forEach(function (record) {
- if (rowKey) {
- record.key = rowKey(record);
- }
- // rightDataSource should be ordered by targetKeys
- // leftDataSource should be ordered by dataSource
- var indexOfKey = targetKeys.indexOf(record.key);
- if (indexOfKey !== -1) {
- rightDataSource[indexOfKey] = record;
- } else {
- leftDataSource.push(record);
- }
- });
- return {
- leftDataSource: leftDataSource,
- rightDataSource: rightDataSource
- };
- },
- renderTransfer: function renderTransfer(transferLocale) {
- var _classNames;
- var h = this.$createElement;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls,
- disabled = props.disabled,
- _props$operations = props.operations,
- operations = _props$operations === undefined ? [] : _props$operations,
- showSearch = props.showSearch,
- listStyle = props.listStyle,
- operationStyle = props.operationStyle,
- filterOption = props.filterOption,
- lazy = props.lazy,
- showSelectAll = props.showSelectAll;
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'children', {}, false);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('transfer', customizePrefixCls);
- var renderEmpty = this.configProvider.renderEmpty;
- var locale = this.getLocale(transferLocale, renderEmpty);
- var sourceSelectedKeys = this.sourceSelectedKeys,
- targetSelectedKeys = this.targetSelectedKeys,
- $scopedSlots = this.$scopedSlots;
- var body = $scopedSlots.body,
- footer = $scopedSlots.footer;
- var renderItem = props.render;
- var _separateDataSource = this.separateDataSource(),
- leftDataSource = _separateDataSource.leftDataSource,
- rightDataSource = _separateDataSource.rightDataSource;
- var leftActive = targetSelectedKeys.length > 0;
- var rightActive = sourceSelectedKeys.length > 0;
- var cls = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-customize-list', !!children), _classNames));
- var titles = this.getTitles(locale);
- return h(
- 'div',
- { 'class': cls },
- [h(_list__WEBPACK_IMPORTED_MODULE_7__["default"], {
- key: 'leftList',
- attrs: { prefixCls: prefixCls + '-list',
- titleText: titles[0],
- dataSource: leftDataSource,
- filterOption: filterOption,
- checkedKeys: sourceSelectedKeys,
- handleFilter: this.handleLeftFilter,
- handleClear: this.handleLeftClear,
- handleSelect: this.handleLeftSelect,
- handleSelectAll: this.handleLeftSelectAll,
- renderItem: renderItem,
- showSearch: showSearch,
- body: body,
- renderList: children,
- footer: footer,
- lazy: lazy,
- disabled: disabled,
- direction: 'left',
- showSelectAll: showSelectAll,
- itemUnit: locale.itemUnit,
- itemsUnit: locale.itemsUnit,
- notFoundContent: locale.notFoundContent,
- searchPlaceholder: locale.searchPlaceholder
- },
- style: this.handleListStyle(listStyle, 'left'), on: {
- 'itemSelect': this.onLeftItemSelect,
- 'itemSelectAll': this.onLeftItemSelectAll,
- 'scroll': this.handleLeftScroll
- }
- }), h(_operation__WEBPACK_IMPORTED_MODULE_8__["default"], {
- key: 'operation',
- 'class': prefixCls + '-operation',
- attrs: { rightActive: rightActive,
- rightArrowText: operations[0],
- moveToRight: this.moveToRight,
- leftActive: leftActive,
- leftArrowText: operations[1],
- moveToLeft: this.moveToLeft,
- disabled: disabled
- },
- style: operationStyle }), h(_list__WEBPACK_IMPORTED_MODULE_7__["default"], {
- key: 'rightList',
- attrs: { prefixCls: prefixCls + '-list',
- titleText: titles[1],
- dataSource: rightDataSource,
- filterOption: filterOption,
- checkedKeys: targetSelectedKeys,
- handleFilter: this.handleRightFilter,
- handleClear: this.handleRightClear,
- handleSelect: this.handleRightSelect,
- handleSelectAll: this.handleRightSelectAll,
- renderItem: renderItem,
- showSearch: showSearch,
- body: body,
- renderList: children,
- footer: footer,
- lazy: lazy,
- disabled: disabled,
- direction: 'right',
- showSelectAll: showSelectAll,
- itemUnit: locale.itemUnit,
- itemsUnit: locale.itemsUnit,
- notFoundContent: locale.notFoundContent,
- searchPlaceholder: locale.searchPlaceholder
- },
- style: this.handleListStyle(listStyle, 'right'), on: {
- 'itemSelect': this.onRightItemSelect,
- 'itemSelectAll': this.onRightItemSelectAll,
- 'scroll': this.handleRightScroll
- }
- })]
- );
- }
- },
- render: function render() {
- var h = arguments[0];
- return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_9__["default"], {
- attrs: {
- componentName: 'Transfer',
- defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_10__["default"].Transfer
- },
- scopedSlots: { 'default': this.renderTransfer }
- });
- }
- };
- /* istanbul ignore next */
- Transfer.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_13__["default"]);
- Vue.component(Transfer.name, Transfer);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Transfer);
- /***/ }),
- /***/ "./components/transfer/list.jsx":
- /*!**************************************!*\
- !*** ./components/transfer/list.jsx ***!
- \**************************************/
- /*! exports provided: TransferListProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferListProps", function() { return TransferListProps; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
- /* harmony import */ var _search__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./search */ "./components/transfer/search.jsx");
- /* harmony import */ var _renderListBody__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./renderListBody */ "./components/transfer/renderListBody.jsx");
- /* harmony import */ var _util_triggerEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/triggerEvent */ "./components/_util/triggerEvent.js");
- /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
- var defaultRender = function defaultRender() {
- return null;
- };
- var TransferItem = {
- key: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
- description: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
- };
- function isRenderResultPlainObject(result) {
- return result && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isValidElement"])(result) && Object.prototype.toString.call(result) === '[object Object]';
- }
- var TransferListProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- titleText: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(TransferItem).loose),
- filter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- checkedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
- handleFilter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- handleSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- handleSelectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- handleClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- renderItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- itemUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- itemsUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- body: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- renderList: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- showSelectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
- };
- function renderListNode(h, renderList, props) {
- var bodyContent = renderList ? renderList(props) : null;
- var customize = !!bodyContent;
- if (!customize) {
- bodyContent = Object(_renderListBody__WEBPACK_IMPORTED_MODULE_8__["default"])(h, props);
- }
- return {
- customize: customize,
- bodyContent: bodyContent
- };
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TransferList',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(TransferListProps, {
- dataSource: [],
- titleText: '',
- showSearch: false,
- lazy: {}
- }),
- data: function data() {
- this.timer = null;
- this.triggerScrollTimer = null;
- return {
- filterValue: ''
- };
- },
- // mounted() {
- // this.timer = setTimeout(() => {
- // this.setState({
- // mounted: true,
- // });
- // }, 0);
- // this.$nextTick(() => {
- // if (this.$refs.listContentWrapper) {
- // const listContentWrapperDom = this.$refs.listContentWrapper.$el;
- // this.scrollEvent = addEventListener(listContentWrapperDom, 'scroll', this.handleScroll);
- // }
- // });
- // },
- beforeDestroy: function beforeDestroy() {
- clearTimeout(this.triggerScrollTimer);
- // if (this.scrollEvent) {
- // this.scrollEvent.remove();
- // }
- },
- updated: function updated() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.scrollEvent) {
- _this.scrollEvent.remove();
- }
- if (_this.$refs.listContentWrapper) {
- var listContentWrapperDom = _this.$refs.listContentWrapper.$el;
- _this.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_10__["default"])(listContentWrapperDom, 'scroll', _this.handleScroll);
- }
- });
- },
- methods: {
- handleScroll: function handleScroll(e) {
- this.$emit('scroll', e);
- },
- getCheckStatus: function getCheckStatus(filteredItems) {
- var checkedKeys = this.$props.checkedKeys;
- if (checkedKeys.length === 0) {
- return 'none';
- }
- if (filteredItems.every(function (item) {
- return checkedKeys.indexOf(item.key) >= 0 || !!item.disabled;
- })) {
- return 'all';
- }
- return 'part';
- },
- getFilteredItems: function getFilteredItems(dataSource, filterValue) {
- var _this2 = this;
- var filteredItems = [];
- var filteredRenderItems = [];
- dataSource.forEach(function (item) {
- var renderedItem = _this2.renderItemHtml(item);
- var renderedText = renderedItem.renderedText;
- // Filter skip
- if (filterValue && filterValue.trim() && !_this2.matchFilter(renderedText, item)) {
- return null;
- }
- filteredItems.push(item);
- filteredRenderItems.push(renderedItem);
- });
- return { filteredItems: filteredItems, filteredRenderItems: filteredRenderItems };
- },
- getListBody: function getListBody(prefixCls, searchPlaceholder, filterValue, filteredItems, notFoundContent, bodyDom, filteredRenderItems, checkedKeys, renderList, showSearch, disabled) {
- var h = this.$createElement;
- var search = showSearch ? h(
- 'div',
- { 'class': prefixCls + '-body-search-wrapper' },
- [h(_search__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: {
- prefixCls: prefixCls + '-search',
- handleClear: this._handleClear,
- placeholder: searchPlaceholder,
- value: filterValue,
- disabled: disabled
- },
- on: {
- 'change': this._handleFilter
- }
- })]
- ) : null;
- var listBody = bodyDom;
- if (!listBody) {
- var bodyNode = void 0;
- var _renderListNode = renderListNode(this.$createElement, renderList, {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, { filteredItems: filteredItems, filteredRenderItems: filteredRenderItems, selectedKeys: checkedKeys }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
- }),
- bodyContent = _renderListNode.bodyContent,
- customize = _renderListNode.customize;
- // We should wrap customize list body in a classNamed div to use flex layout.
- if (customize) {
- bodyNode = h(
- 'div',
- { 'class': prefixCls + '-body-customize-wrapper' },
- [bodyContent]
- );
- } else {
- bodyNode = filteredItems.length ? bodyContent : h(
- 'div',
- { 'class': prefixCls + '-body-not-found' },
- [notFoundContent]
- );
- }
- listBody = h(
- 'div',
- {
- 'class': classnames__WEBPACK_IMPORTED_MODULE_2___default()(showSearch ? prefixCls + '-body ' + prefixCls + '-body-with-search' : prefixCls + '-body')
- },
- [search, bodyNode]
- );
- }
- return listBody;
- },
- getCheckBox: function getCheckBox(filteredItems, showSelectAll, disabled) {
- var _this3 = this;
- var h = this.$createElement;
- var checkStatus = this.getCheckStatus(filteredItems);
- var checkedAll = checkStatus === 'all';
- var checkAllCheckbox = showSelectAll !== false && h(_checkbox__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: {
- disabled: disabled,
- checked: checkedAll,
- indeterminate: checkStatus === 'part'
- },
- on: {
- 'change': function change() {
- // Only select enabled items
- _this3.$emit('itemSelectAll', filteredItems.filter(function (item) {
- return !item.disabled;
- }).map(function (_ref) {
- var key = _ref.key;
- return key;
- }), !checkedAll);
- }
- }
- });
- return checkAllCheckbox;
- },
- _handleSelect: function _handleSelect(selectedItem) {
- var checkedKeys = this.$props.checkedKeys;
- var result = checkedKeys.some(function (key) {
- return key === selectedItem.key;
- });
- this.handleSelect(selectedItem, !result);
- },
- _handleFilter: function _handleFilter(e) {
- var _this4 = this;
- var handleFilter = this.$props.handleFilter;
- var filterValue = e.target.value;
- this.setState({ filterValue: filterValue });
- handleFilter(e);
- if (!filterValue) {
- return;
- }
- // Manually trigger scroll event for lazy search bug
- // https://github.com/ant-design/ant-design/issues/5631
- this.triggerScrollTimer = setTimeout(function () {
- var transferNode = _this4.$el;
- var listNode = transferNode.querySelectorAll('.ant-transfer-list-content')[0];
- if (listNode) {
- Object(_util_triggerEvent__WEBPACK_IMPORTED_MODULE_9__["default"])(listNode, 'scroll');
- }
- }, 0);
- },
- _handleClear: function _handleClear(e) {
- this.setState({ filterValue: '' });
- this.handleClear(e);
- },
- matchFilter: function matchFilter(text, item) {
- var filterValue = this.$data.filterValue;
- var filterOption = this.$props.filterOption;
- if (filterOption) {
- return filterOption(filterValue, item);
- }
- return text.indexOf(filterValue) >= 0;
- },
- renderItemHtml: function renderItemHtml(item) {
- var _$props$renderItem = this.$props.renderItem,
- renderItem = _$props$renderItem === undefined ? defaultRender : _$props$renderItem;
- var renderResult = renderItem(item);
- var isRenderResultPlain = isRenderResultPlainObject(renderResult);
- return {
- renderedText: isRenderResultPlain ? renderResult.value : renderResult,
- renderedEl: isRenderResultPlain ? renderResult.label : renderResult,
- item: item
- };
- },
- filterNull: function filterNull(arr) {
- return arr.filter(function (item) {
- return item !== null;
- });
- }
- },
- render: function render() {
- var h = arguments[0];
- var filterValue = this.$data.filterValue;
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- dataSource = _$props.dataSource,
- titleText = _$props.titleText,
- checkedKeys = _$props.checkedKeys,
- disabled = _$props.disabled,
- body = _$props.body,
- footer = _$props.footer,
- showSearch = _$props.showSearch,
- searchPlaceholder = _$props.searchPlaceholder,
- notFoundContent = _$props.notFoundContent,
- itemUnit = _$props.itemUnit,
- itemsUnit = _$props.itemsUnit,
- renderList = _$props.renderList,
- showSelectAll = _$props.showSelectAll;
- // Custom Layout
- var footerDom = footer && footer(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props));
- var bodyDom = body && body(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props));
- var listCls = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-with-footer', !!footerDom));
- // ====================== Get filtered, checked item list ======================
- var _getFilteredItems = this.getFilteredItems(dataSource, filterValue),
- filteredItems = _getFilteredItems.filteredItems,
- filteredRenderItems = _getFilteredItems.filteredRenderItems;
- // ================================= List Body =================================
- var unit = dataSource.length > 1 ? itemsUnit : itemUnit;
- var listBody = this.getListBody(prefixCls, searchPlaceholder, filterValue, filteredItems, notFoundContent, bodyDom, filteredRenderItems, checkedKeys, renderList, showSearch, disabled);
- var listFooter = footerDom ? h(
- 'div',
- { 'class': prefixCls + '-footer' },
- [footerDom]
- ) : null;
- var checkAllCheckbox = this.getCheckBox(filteredItems, showSelectAll, disabled);
- return h(
- 'div',
- { 'class': listCls },
- [h(
- 'div',
- { 'class': prefixCls + '-header' },
- [checkAllCheckbox, h(
- 'span',
- { 'class': prefixCls + '-header-selected' },
- [h('span', [(checkedKeys.length > 0 ? checkedKeys.length + '/' : '') + filteredItems.length, ' ', unit]), h(
- 'span',
- { 'class': prefixCls + '-header-title' },
- [titleText]
- )]
- )]
- ), listBody, listFooter]
- );
- }
- });
- /***/ }),
- /***/ "./components/transfer/operation.jsx":
- /*!*******************************************!*\
- !*** ./components/transfer/operation.jsx ***!
- \*******************************************/
- /*! exports provided: TransferOperationProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferOperationProps", function() { return TransferOperationProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
- function noop() {}
- var TransferOperationProps = {
- className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- leftArrowText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- rightArrowText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- moveToLeft: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- moveToRight: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- leftActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- rightActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Operation',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, TransferOperationProps),
- render: function render() {
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this),
- disabled = _getOptionProps.disabled,
- _getOptionProps$moveT = _getOptionProps.moveToLeft,
- moveToLeft = _getOptionProps$moveT === undefined ? noop : _getOptionProps$moveT,
- _getOptionProps$moveT2 = _getOptionProps.moveToRight,
- moveToRight = _getOptionProps$moveT2 === undefined ? noop : _getOptionProps$moveT2,
- _getOptionProps$leftA = _getOptionProps.leftArrowText,
- leftArrowText = _getOptionProps$leftA === undefined ? '' : _getOptionProps$leftA,
- _getOptionProps$right = _getOptionProps.rightArrowText,
- rightArrowText = _getOptionProps$right === undefined ? '' : _getOptionProps$right,
- leftActive = _getOptionProps.leftActive,
- rightActive = _getOptionProps.rightActive;
- return h('div', [h(
- _button__WEBPACK_IMPORTED_MODULE_3__["default"],
- {
- attrs: {
- type: 'primary',
- size: 'small',
- disabled: disabled || !rightActive,
- icon: 'right'
- },
- on: {
- 'click': moveToRight
- }
- },
- [rightArrowText]
- ), h(
- _button__WEBPACK_IMPORTED_MODULE_3__["default"],
- {
- attrs: {
- type: 'primary',
- size: 'small',
- disabled: disabled || !leftActive,
- icon: 'left'
- },
- on: {
- 'click': moveToLeft
- }
- },
- [leftArrowText]
- )]);
- }
- });
- /***/ }),
- /***/ "./components/transfer/renderListBody.jsx":
- /*!************************************************!*\
- !*** ./components/transfer/renderListBody.jsx ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/raf */ "./components/_util/raf.js");
- /* harmony import */ var _ListItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ListItem */ "./components/transfer/ListItem.jsx");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- function noop() {}
- var ListBody = {
- name: 'ListBody',
- inheritAttrs: false,
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- filteredRenderItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array.def([]),
- lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
- selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
- },
- data: function data() {
- return {
- mounted: false
- };
- },
- computed: {
- itemsLength: function itemsLength() {
- return this.filteredRenderItems ? this.filteredRenderItems.length : 0;
- }
- },
- watch: {
- itemsLength: function itemsLength() {
- var _this = this;
- this.$nextTick(function () {
- var lazy = _this.$props.lazy;
- if (lazy !== false) {
- var container = _this.$el;
- _util_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(_this.lazyId);
- _this.lazyId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
- if (container) {
- var scrollEvent = new Event('scroll', { bubbles: true });
- container.dispatchEvent(scrollEvent);
- }
- });
- }
- });
- }
- },
- mounted: function mounted() {
- var _this2 = this;
- this.mountId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
- _this2.mounted = true;
- });
- },
- beforeDestroy: function beforeDestroy() {
- _util_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(this.mountId);
- _util_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(this.lazyId);
- },
- methods: {
- onItemSelect: function onItemSelect(item) {
- var selectedKeys = this.$props.selectedKeys;
- var checked = selectedKeys.indexOf(item.key) >= 0;
- this.$emit('itemSelect', item.key, !checked);
- },
- onScroll: function onScroll(e) {
- this.$emit('scroll', e);
- }
- },
- render: function render() {
- var _this3 = this;
- var h = arguments[0];
- var mounted = this.$data.mounted;
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- filteredRenderItems = _$props.filteredRenderItems,
- lazy = _$props.lazy,
- selectedKeys = _$props.selectedKeys,
- globalDisabled = _$props.disabled;
- var items = filteredRenderItems.map(function (_ref) {
- var renderedEl = _ref.renderedEl,
- renderedText = _ref.renderedText,
- item = _ref.item;
- var disabled = item.disabled;
- var checked = selectedKeys.indexOf(item.key) >= 0;
- return h(_ListItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
- attrs: {
- disabled: globalDisabled || disabled,
- item: item,
- lazy: lazy,
- renderedText: renderedText,
- renderedEl: renderedEl,
- checked: checked,
- prefixCls: prefixCls
- },
- key: item.key, on: {
- 'click': _this3.onItemSelect
- }
- });
- });
- var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__["default"])(mounted ? prefixCls + '-content-item-highlight' : '', {
- tag: 'ul',
- nativeOn: {
- scroll: this.onScroll
- },
- leave: noop
- });
- return h(
- 'transition-group',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': prefixCls + '-content' }, transitionProps]),
- [items]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (function (h, props) {
- return h(ListBody, props);
- });
- /***/ }),
- /***/ "./components/transfer/search.jsx":
- /*!****************************************!*\
- !*** ./components/transfer/search.jsx ***!
- \****************************************/
- /*! exports provided: TransferSearchProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferSearchProps", function() { return TransferSearchProps; });
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../input */ "./components/input/index.js");
- var TransferSearchProps = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- handleClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Search',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["initDefaultProps"])(TransferSearchProps, {
- placeholder: ''
- }),
- methods: {
- handleChange: function handleChange(e) {
- this.$emit('change', e);
- },
- handleClear2: function handleClear2(e) {
- e.preventDefault();
- var _$props = this.$props,
- handleClear = _$props.handleClear,
- disabled = _$props.disabled;
- if (!disabled && handleClear) {
- handleClear(e);
- }
- }
- },
- render: function render() {
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getOptionProps"])(this),
- placeholder = _getOptionProps.placeholder,
- value = _getOptionProps.value,
- prefixCls = _getOptionProps.prefixCls,
- disabled = _getOptionProps.disabled;
- var icon = value && value.length > 0 ? h(
- 'a',
- {
- attrs: { href: '#' },
- 'class': prefixCls + '-action', on: {
- 'click': this.handleClear2
- }
- },
- [h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
- attrs: { type: 'close-circle', theme: 'filled' }
- })]
- ) : h(
- 'span',
- { 'class': prefixCls + '-action' },
- [h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
- attrs: { type: 'search' }
- })]
- );
- return h('div', [h(_input__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: {
- placeholder: placeholder,
- value: value,
- disabled: disabled
- },
- 'class': prefixCls, on: {
- 'change': this.handleChange
- }
- }), icon]);
- }
- });
- /***/ }),
- /***/ "./components/transfer/style/index.js":
- /*!********************************************!*\
- !*** ./components/transfer/style/index.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/transfer/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
- /* harmony import */ var _checkbox_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../checkbox/style */ "./components/checkbox/style/index.js");
- /* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
- /* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/transfer/style/index.less":
- /*!**********************************************!*\
- !*** ./components/transfer/style/index.less ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/tree-select/index.jsx":
- /*!******************************************!*\
- !*** ./components/tree-select/index.jsx ***!
- \******************************************/
- /*! exports provided: TreeData, TreeSelectProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-tree-select */ "./components/vc-tree-select/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./interface */ "./components/tree-select/interface.jsx");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeData", function() { return _interface__WEBPACK_IMPORTED_MODULE_5__["TreeData"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeSelectProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_5__["TreeSelectProps"]; });
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- var TreeSelect = {
- TreeNode: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["TreeNode"], { name: 'ATreeSelectNode' }),
- SHOW_ALL: _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["SHOW_ALL"],
- SHOW_PARENT: _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["SHOW_PARENT"],
- SHOW_CHILD: _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["SHOW_CHILD"],
- name: 'ATreeSelect',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(Object(_interface__WEBPACK_IMPORTED_MODULE_5__["TreeSelectProps"])(), {
- transitionName: 'slide-up',
- choiceTransitionName: 'zoom',
- showSearch: false
- }),
- model: {
- prop: 'value',
- event: 'change'
- },
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
- } }
- },
- created: function created() {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(this.multiple !== false || !this.treeCheckable, 'TreeSelect', '`multiple` will alway be `true` when `treeCheckable` is true');
- },
- methods: {
- focus: function focus() {
- this.$refs.vcTreeSelect.focus();
- },
- blur: function blur() {
- this.$refs.vcTreeSelect.blur();
- },
- renderSwitcherIcon: function renderSwitcherIcon(prefixCls, _ref) {
- var isLeaf = _ref.isLeaf,
- loading = _ref.loading;
- var h = this.$createElement;
- if (loading) {
- return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'loading' },
- 'class': prefixCls + '-switcher-loading-icon' });
- }
- if (isLeaf) {
- return null;
- }
- return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'caret-down' },
- 'class': prefixCls + '-switcher-icon' });
- },
- onChange: function onChange() {
- this.$emit.apply(this, ['change'].concat(Array.prototype.slice.call(arguments)));
- },
- updateTreeData: function updateTreeData(treeData) {
- var _this = this;
- var $scopedSlots = this.$scopedSlots;
- var defaultFields = {
- children: 'children',
- title: 'title',
- key: 'key',
- label: 'label',
- value: 'value'
- };
- var replaceFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, defaultFields, this.$props.replaceFields);
- return treeData.map(function (item) {
- var _item$scopedSlots = item.scopedSlots,
- scopedSlots = _item$scopedSlots === undefined ? {} : _item$scopedSlots;
- var label = item[replaceFields.label];
- var title = item[replaceFields.title];
- var value = item[replaceFields.value];
- var key = item[replaceFields.key];
- var children = item[replaceFields.children];
- var newLabel = typeof label === 'function' ? label(_this.$createElement) : label;
- var newTitle = typeof title === 'function' ? title(_this.$createElement) : title;
- if (!newLabel && scopedSlots.label && $scopedSlots[scopedSlots.label]) {
- newLabel = $scopedSlots[scopedSlots.label](item);
- }
- if (!newTitle && scopedSlots.title && $scopedSlots[scopedSlots.title]) {
- newTitle = $scopedSlots[scopedSlots.title](item);
- }
- var treeNodeProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, item, {
- title: newTitle || newLabel,
- value: value,
- dataRef: item,
- key: key
- });
- if (children) {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, treeNodeProps, { children: _this.updateTreeData(children) });
- }
- return treeNodeProps;
- });
- }
- },
- render: function render(h) {
- var _cls,
- _this2 = this;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
- var customizePrefixCls = props.prefixCls,
- size = props.size,
- dropdownStyle = props.dropdownStyle,
- dropdownClassName = props.dropdownClassName,
- getPopupContainer = props.getPopupContainer,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(props, ['prefixCls', 'size', 'dropdownStyle', 'dropdownClassName', 'getPopupContainer']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('select', customizePrefixCls);
- var renderEmpty = this.configProvider.renderEmpty;
- var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'notFoundContent');
- var removeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'removeIcon');
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'clearIcon');
- var getContextPopupContainer = this.configProvider.getPopupContainer;
- var rest = Object(omit_js__WEBPACK_IMPORTED_MODULE_11__["default"])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'switcherIcon', 'suffixIcon']);
- var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'suffixIcon');
- suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
- var treeData = props.treeData;
- if (treeData) {
- treeData = this.updateTreeData(treeData);
- }
- var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-sm', size === 'small'), _cls);
- // showSearch: single - false, multiple - true
- var showSearch = restProps.showSearch;
- if (!('showSearch' in restProps)) {
- showSearch = !!(restProps.multiple || restProps.treeCheckable);
- }
- var checkable = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'treeCheckable');
- if (checkable) {
- checkable = h('span', { 'class': prefixCls + '-tree-checkbox-inner' });
- }
- var inputIcon = suffixIcon || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'down' },
- 'class': prefixCls + '-arrow-icon' });
- var finalRemoveIcon = removeIcon || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'close' },
- 'class': prefixCls + '-remove-icon' });
- var finalClearIcon = clearIcon || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'close-circle', theme: 'filled' },
- 'class': prefixCls + '-clear-icon' });
- var VcTreeSelectProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- switcherIcon: function switcherIcon(nodeProps) {
- return _this2.renderSwitcherIcon(prefixCls, nodeProps);
- },
- inputIcon: inputIcon,
- removeIcon: finalRemoveIcon,
- clearIcon: finalClearIcon
- }, rest, {
- showSearch: showSearch,
- getPopupContainer: getPopupContainer || getContextPopupContainer,
- dropdownClassName: classnames__WEBPACK_IMPORTED_MODULE_4___default()(dropdownClassName, prefixCls + '-tree-dropdown'),
- prefixCls: prefixCls,
- dropdownStyle: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({ maxHeight: '100vh', overflow: 'auto' }, dropdownStyle),
- treeCheckable: checkable,
- notFoundContent: notFoundContent || renderEmpty(h, 'Select'),
- __propsSymbol__: Symbol()
- }), treeData ? { treeData: treeData } : {}),
- 'class': cls,
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), { change: this.onChange }),
- ref: 'vcTreeSelect',
- scopedSlots: this.$scopedSlots
- };
- return h(
- _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["default"],
- VcTreeSelectProps,
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["filterEmpty"])(this.$slots['default'])]
- );
- }
- };
- /* istanbul ignore next */
- TreeSelect.install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
- Vue.component(TreeSelect.name, TreeSelect);
- Vue.component(TreeSelect.TreeNode.name, TreeSelect.TreeNode);
- };
- /* harmony default export */ __webpack_exports__["default"] = (TreeSelect);
- /***/ }),
- /***/ "./components/tree-select/interface.jsx":
- /*!**********************************************!*\
- !*** ./components/tree-select/interface.jsx ***!
- \**********************************************/
- /*! exports provided: TreeData, TreeSelectProps */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeData", function() { return TreeData; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeSelectProps", function() { return TreeSelectProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
- var TreeData = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
- key: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- label: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- scopedSlots: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
- }).loose;
- var TreeSelectProps = function TreeSelectProps() {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_select__WEBPACK_IMPORTED_MODULE_2__["AbstractSelectProps"])(), {
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([Function, Boolean]),
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- // onSelect: (value: any) => void,
- // onChange: (value: any, label: any) => void,
- // onSearch: (value: any) => void,
- searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- showCheckedStrategy: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['SHOW_ALL', 'SHOW_PARENT', 'SHOW_CHILD']),
- suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- treeCheckable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
- treeCheckStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(Object),
- treeDataSimpleMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([Boolean, Object]),
- dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- treeDefaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- treeExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- treeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- treeDefaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- treeNodeFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- treeNodeLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- replaceFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def({})
- });
- };
- /***/ }),
- /***/ "./components/tree-select/style/index.js":
- /*!***********************************************!*\
- !*** ./components/tree-select/style/index.js ***!
- \***********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tree-select/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
- /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
- // style dependencies
- // deps-lint-skip: select
- /***/ }),
- /***/ "./components/tree-select/style/index.less":
- /*!*************************************************!*\
- !*** ./components/tree-select/style/index.less ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/tree/DirectoryTree.jsx":
- /*!*******************************************!*\
- !*** ./components/tree/DirectoryTree.jsx ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-tree/src/util */ "./components/vc-tree/src/util.js");
- /* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Tree */ "./components/tree/Tree.jsx");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./util */ "./components/tree/util.js");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- // export type ExpandAction = false | 'click' | 'dblclick'; export interface
- // DirectoryTreeProps extends TreeProps { expandAction?: ExpandAction; }
- // export interface DirectoryTreeState { expandedKeys?: string[];
- // selectedKeys?: string[]; }
- function getIcon(props, h) {
- var isLeaf = props.isLeaf,
- expanded = props.expanded;
- if (isLeaf) {
- return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'file' }
- });
- }
- return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: expanded ? 'folder-open' : 'folder' }
- });
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ADirectoryTree',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
- model: {
- prop: 'checkedKeys',
- event: 'check'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_Tree__WEBPACK_IMPORTED_MODULE_8__["TreeProps"])(), {
- expandAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf([false, 'click', 'doubleclick', 'dblclick'])
- }), {
- showIcon: true,
- expandAction: 'click'
- }),
- // state: DirectoryTreeState; onDebounceExpand: (event, node: AntTreeNode) =>
- // void; // Shift click usage lastSelectedKey?: string; cachedSelectedKeys?:
- // string[];
- inject: {
- configProvider: {
- 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__["ConfigConsumerProps"];
- }
- }
- },
- data: function data() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
- var defaultExpandAll = props.defaultExpandAll,
- defaultExpandParent = props.defaultExpandParent,
- expandedKeys = props.expandedKeys,
- defaultExpandedKeys = props.defaultExpandedKeys;
- var _convertTreeToEntitie = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_7__["convertTreeToEntities"])(this.$slots['default']),
- keyEntities = _convertTreeToEntitie.keyEntities;
- var state = {};
- // Selected keys
- state._selectedKeys = props.selectedKeys || props.defaultSelectedKeys || [];
- // Expanded keys
- if (defaultExpandAll) {
- if (props.treeData) {
- state._expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getFullKeyListByTreeData"])(props.treeData);
- } else {
- state._expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getFullKeyList"])(this.$slots['default']);
- }
- } else if (defaultExpandParent) {
- state._expandedKeys = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_7__["conductExpandParent"])(expandedKeys || defaultExpandedKeys, keyEntities);
- } else {
- state._expandedKeys = expandedKeys || defaultExpandedKeys;
- }
- this.onDebounceExpand = lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default()(this.expandFolderNode, 200, { leading: true });
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- _selectedKeys: [],
- _expandedKeys: []
- }, state);
- },
- watch: {
- expandedKeys: function expandedKeys(val) {
- this.setState({ _expandedKeys: val });
- },
- selectedKeys: function selectedKeys(val) {
- this.setState({ _selectedKeys: val });
- }
- },
- methods: {
- onExpand: function onExpand(expandedKeys, info) {
- this.setUncontrolledState({ _expandedKeys: expandedKeys });
- this.$emit('expand', expandedKeys, info);
- return undefined;
- },
- onClick: function onClick(event, node) {
- var expandAction = this.$props.expandAction;
- // Expand the tree
- if (expandAction === 'click') {
- this.onDebounceExpand(event, node);
- }
- this.$emit('click', event, node);
- },
- onDoubleClick: function onDoubleClick(event, node) {
- var expandAction = this.$props.expandAction;
- // Expand the tree
- if (expandAction === 'dblclick' || expandAction === 'doubleclick') {
- this.onDebounceExpand(event, node);
- }
- this.$emit('doubleclick', event, node);
- this.$emit('dblclick', event, node);
- },
- onSelect: function onSelect(keys, event) {
- var multiple = this.$props.multiple;
- var children = this.$slots['default'] || [];
- var _$data$_expandedKeys = this.$data._expandedKeys,
- expandedKeys = _$data$_expandedKeys === undefined ? [] : _$data$_expandedKeys;
- var node = event.node,
- nativeEvent = event.nativeEvent;
- var _node$eventKey = node.eventKey,
- eventKey = _node$eventKey === undefined ? '' : _node$eventKey;
- var newState = {};
- // We need wrap this event since some value is not same
- var newEvent = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, event, {
- selected: true // Directory selected always true
- });
- // Windows / Mac single pick
- var ctrlPick = nativeEvent.ctrlKey || nativeEvent.metaKey;
- var shiftPick = nativeEvent.shiftKey;
- // Generate new selected keys
- var newSelectedKeys = void 0;
- if (multiple && ctrlPick) {
- // Control click
- newSelectedKeys = keys;
- this.lastSelectedKey = eventKey;
- this.cachedSelectedKeys = newSelectedKeys;
- newEvent.selectedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_9__["convertDirectoryKeysToNodes"])(children, newSelectedKeys);
- } else if (multiple && shiftPick) {
- // Shift click
- newSelectedKeys = Array.from(new Set([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(this.cachedSelectedKeys || []), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(Object(_util__WEBPACK_IMPORTED_MODULE_9__["calcRangeKeys"])(children, expandedKeys, eventKey, this.lastSelectedKey)))));
- newEvent.selectedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_9__["convertDirectoryKeysToNodes"])(children, newSelectedKeys);
- } else {
- // Single click
- newSelectedKeys = [eventKey];
- this.lastSelectedKey = eventKey;
- this.cachedSelectedKeys = newSelectedKeys;
- newEvent.selectedNodes = [event.node];
- }
- newState._selectedKeys = newSelectedKeys;
- this.$emit('update:selectedKeys', newSelectedKeys);
- this.$emit('select', newSelectedKeys, newEvent);
- this.setUncontrolledState(newState);
- },
- expandFolderNode: function expandFolderNode(event, node) {
- var isLeaf = node.isLeaf;
- if (isLeaf || event.shiftKey || event.metaKey || event.ctrlKey) {
- return;
- }
- if (this.$refs.tree.$refs.tree) {
- // Get internal vc-tree
- var internalTree = this.$refs.tree.$refs.tree;
- // Call internal rc-tree expand function
- // https://github.com/ant-design/ant-design/issues/12567
- internalTree.onNodeExpand(event, node);
- }
- },
- setUncontrolledState: function setUncontrolledState(state) {
- var newState = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(state, Object.keys(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this)).map(function (p) {
- return '_' + p;
- }));
- if (Object.keys(newState).length) {
- this.setState(newState);
- }
- }
- },
- render: function render() {
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls']);
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('tree', customizePrefixCls);
- var _$data = this.$data,
- expandedKeys = _$data._expandedKeys,
- selectedKeys = _$data._selectedKeys;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this);
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(!listeners.doubleclick, '`doubleclick` is deprecated. please use `dblclick` instead.');
- var treeProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- icon: getIcon
- }, props, {
- prefixCls: prefixCls,
- expandedKeys: expandedKeys,
- selectedKeys: selectedKeys,
- switcherIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'switcherIcon')
- }),
- ref: 'tree',
- 'class': prefixCls + '-directory',
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(listeners, ['update:selectedKeys']), {
- select: this.onSelect,
- click: this.onClick,
- dblclick: this.onDoubleClick,
- expand: this.onExpand
- })
- };
- return h(
- _Tree__WEBPACK_IMPORTED_MODULE_8__["default"],
- treeProps,
- [this.$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/tree/Tree.jsx":
- /*!**********************************!*\
- !*** ./components/tree/Tree.jsx ***!
- \**********************************/
- /*! exports provided: TreeProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeProps", function() { return TreeProps; });
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-tree */ "./components/vc-tree/index.js");
- /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_vc_tree__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_openAnimation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/openAnimation */ "./components/_util/openAnimation.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- function TreeProps() {
- return {
- showLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- /** 是否支持多选 */
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- /** 是否自动展开父节点 */
- autoExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- /** checkable状态下节点选择完全受控(父子节点选中状态不再关联)*/
- checkStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- /** 是否支持选中 */
- checkable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- /** 是否禁用树 */
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- /** 默认展开所有树节点 */
- defaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- /** 默认展开对应树节点 */
- defaultExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- /** 默认展开指定的树节点 */
- defaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- /** (受控)展开指定的树节点 */
- expandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- /** (受控)选中复选框的树节点 */
- checkedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape({
- checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- halfChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array
- }).loose]),
- /** 默认选中复选框的树节点 */
- defaultCheckedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- /** (受控)设置选中的树节点 */
- selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- /** 默认选中的树节点 */
- defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- /** 展开/收起节点时触发 */
- // onExpand: (expandedKeys: string[], info: AntTreeNodeExpandedEvent) => void | PromiseLike<any>,
- /** 点击复选框触发 */
- // onCheck: (checkedKeys: string[] | { checked: string[]; halfChecked: string[] }, e: AntTreeNodeCheckedEvent) => void,
- /** 点击树节点触发 */
- // onSelect: (selectedKeys: string[], e: AntTreeNodeSelectedEvent) => void,
- /** 单击树节点触发 */
- // onClick: (e: React.MouseEvent<HTMLElement>, node: AntTreeNode) => void,
- /** 双击树节点触发 */
- // onDoubleClick: (e: React.MouseEvent<HTMLElement>, node: AntTreeNode) => void,
- /** filter some AntTreeNodes as you need. it should return true */
- filterAntTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- /** 异步加载数据 */
- loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- loadedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- // onLoaded: (loadedKeys: string[], info: { event: 'load', node: AntTreeNode; }) => void,
- /** 响应右键点击 */
- // onRightClick: (options: AntTreeNodeMouseEvent) => void,
- /** 设置节点可拖拽(IE>8)*/
- draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- // /** 开始拖拽时调用 */
- // onDragStart: (options: AntTreeNodeMouseEvent) => void,
- // /** dragenter 触发时调用 */
- // onDragEnter: (options: AntTreeNodeMouseEvent) => void,
- // /** dragover 触发时调用 */
- // onDragOver: (options: AntTreeNodeMouseEvent) => void,
- // /** dragleave 触发时调用 */
- // onDragLeave: (options: AntTreeNodeMouseEvent) => void,
- // /** drop 触发时调用 */
- // onDrop: (options: AntTreeNodeMouseEvent) => void,
- showIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
- icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
- filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
- openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
- treeNodes: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
- /**
- * @default{title,key,children}
- * 替换treeNode中 title,key,children字段为treeData中对应的字段
- */
- replaceFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
- blockNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
- };
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ATree',
- model: {
- prop: 'checkedKeys',
- event: 'check'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(TreeProps(), {
- checkable: false,
- showIcon: false,
- openAnimation: {
- on: _util_openAnimation__WEBPACK_IMPORTED_MODULE_5__["default"],
- props: { appear: null }
- },
- blockNode: false
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
- } }
- },
- created: function created() {
- warning__WEBPACK_IMPORTED_MODULE_3___default()(!('treeNodes' in Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this)), '`treeNodes` is deprecated. please use treeData instead.');
- },
- TreeNode: _vc_tree__WEBPACK_IMPORTED_MODULE_4__["TreeNode"],
- methods: {
- renderSwitcherIcon: function renderSwitcherIcon(prefixCls, switcherIcon, _ref) {
- var isLeaf = _ref.isLeaf,
- expanded = _ref.expanded,
- loading = _ref.loading;
- var h = this.$createElement;
- var showLine = this.$props.showLine;
- if (loading) {
- return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'loading' },
- 'class': prefixCls + '-switcher-loading-icon' });
- }
- if (isLeaf) {
- return showLine ? h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'file' },
- 'class': prefixCls + '-switcher-line-icon' }) : null;
- }
- var switcherCls = prefixCls + '-switcher-icon';
- if (switcherIcon) {
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(switcherIcon, {
- 'class': babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, switcherCls, true)
- });
- }
- return showLine ? h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: {
- type: expanded ? 'minus-square' : 'plus-square',
- theme: 'outlined'
- },
- 'class': prefixCls + '-switcher-line-icon' }) : h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: { type: 'caret-down', theme: 'filled' },
- 'class': switcherCls });
- },
- updateTreeData: function updateTreeData(treeData) {
- var _this = this;
- var $slots = this.$slots,
- $scopedSlots = this.$scopedSlots;
- var defaultFields = { children: 'children', title: 'title', key: 'key' };
- var replaceFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, defaultFields, this.$props.replaceFields);
- return treeData.map(function (item) {
- var key = item[replaceFields.key];
- var children = item[replaceFields.children];
- var _item$on = item.on,
- on = _item$on === undefined ? {} : _item$on,
- _item$slots = item.slots,
- slots = _item$slots === undefined ? {} : _item$slots,
- _item$scopedSlots = item.scopedSlots,
- scopedSlots = _item$scopedSlots === undefined ? {} : _item$scopedSlots,
- cls = item['class'],
- style = item.style,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(item, ['on', 'slots', 'scopedSlots', 'class', 'style']);
- var treeNodeProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, restProps, {
- icon: $scopedSlots[scopedSlots.icon] || $slots[slots.icon] || restProps.icon,
- switcherIcon: $scopedSlots[scopedSlots.switcherIcon] || $slots[slots.switcherIcon] || restProps.switcherIcon,
- title: $scopedSlots[scopedSlots.title] || $slots[slots.title] || restProps[replaceFields.title],
- dataRef: item,
- on: on,
- key: key,
- 'class': cls,
- style: style
- });
- if (children) {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, treeNodeProps, { children: _this.updateTreeData(children) });
- }
- return treeNodeProps;
- });
- }
- },
- render: function render() {
- var _this2 = this,
- _class2;
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
- var $slots = this.$slots,
- $scopedSlots = this.$scopedSlots;
- var customizePrefixCls = props.prefixCls,
- showIcon = props.showIcon,
- treeNodes = props.treeNodes,
- blockNode = props.blockNode;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('tree', customizePrefixCls);
- var _switcherIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'switcherIcon');
- var checkable = props.checkable;
- var treeData = props.treeData || treeNodes;
- if (treeData) {
- treeData = this.updateTreeData(treeData);
- }
- var vcTreeProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- prefixCls: prefixCls,
- checkable: checkable ? h('span', { 'class': prefixCls + '-checkbox-inner' }) : checkable,
- children: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["filterEmpty"])($scopedSlots['default'] ? $scopedSlots['default']() : $slots['default']),
- __propsSymbol__: Symbol(),
- switcherIcon: function switcherIcon(nodeProps) {
- return _this2.renderSwitcherIcon(prefixCls, _switcherIcon, nodeProps);
- }
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
- ref: 'tree',
- 'class': (_class2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_class2, prefixCls + '-icon-hide', !showIcon), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_class2, prefixCls + '-block-node', blockNode), _class2)
- };
- if (treeData) {
- vcTreeProps.props.treeData = treeData;
- }
- return h(_vc_tree__WEBPACK_IMPORTED_MODULE_4__["Tree"], vcTreeProps);
- }
- });
- /***/ }),
- /***/ "./components/tree/index.jsx":
- /*!***********************************!*\
- !*** ./components/tree/index.jsx ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tree */ "./components/tree/Tree.jsx");
- /* harmony import */ var _DirectoryTree__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DirectoryTree */ "./components/tree/DirectoryTree.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- _Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode.name = 'ATreeNode';
- _Tree__WEBPACK_IMPORTED_MODULE_0__["default"].DirectoryTree = _DirectoryTree__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _Tree__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
- Vue.component(_Tree__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Tree__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode.name, _Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode);
- Vue.component(_DirectoryTree__WEBPACK_IMPORTED_MODULE_1__["default"].name, _DirectoryTree__WEBPACK_IMPORTED_MODULE_1__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Tree__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/tree/style/index.js":
- /*!****************************************!*\
- !*** ./components/tree/style/index.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tree/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /***/ }),
- /***/ "./components/tree/style/index.less":
- /*!******************************************!*\
- !*** ./components/tree/style/index.less ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/tree/util.js":
- /*!*********************************!*\
- !*** ./components/tree/util.js ***!
- \*********************************/
- /*! exports provided: getFullKeyList, calcRangeKeys, convertDirectoryKeysToNodes, getFullKeyListByTreeData */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFullKeyList", function() { return getFullKeyList; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calcRangeKeys", function() { return calcRangeKeys; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertDirectoryKeysToNodes", function() { return convertDirectoryKeysToNodes; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFullKeyListByTreeData", function() { return getFullKeyListByTreeData; });
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-tree/src/util */ "./components/vc-tree/src/util.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var Record = {
- None: 'node',
- Start: 'start',
- End: 'end'
- };
- // TODO: Move this logic into `rc-tree`
- function traverseNodesKey(rootChildren, callback) {
- var nodeList = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_1__["getNodeChildren"])(rootChildren) || [];
- function processNode(node) {
- var key = node.key;
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getSlots"])(node)['default'];
- if (callback(key, node) !== false) {
- traverseNodesKey(typeof children === 'function' ? children() : children, callback);
- }
- }
- nodeList.forEach(processNode);
- }
- function getFullKeyList(children) {
- var _convertTreeToEntitie = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_1__["convertTreeToEntities"])(children),
- keyEntities = _convertTreeToEntitie.keyEntities;
- return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keyEntities.keys()));
- }
- /** 计算选中范围,只考虑expanded情况以优化性能 */
- function calcRangeKeys(rootChildren, expandedKeys, startKey, endKey) {
- var keys = [];
- var record = Record.None;
- if (startKey && startKey === endKey) {
- return [startKey];
- }
- if (!startKey || !endKey) {
- return [];
- }
- function matchKey(key) {
- return key === startKey || key === endKey;
- }
- traverseNodesKey(rootChildren, function (key) {
- if (record === Record.End) {
- return false;
- }
- if (matchKey(key)) {
- // Match test
- keys.push(key);
- if (record === Record.None) {
- record = Record.Start;
- } else if (record === Record.Start) {
- record = Record.End;
- return false;
- }
- } else if (record === Record.Start) {
- // Append selection
- keys.push(key);
- }
- if (expandedKeys.indexOf(key) === -1) {
- return false;
- }
- return true;
- });
- return keys;
- }
- function convertDirectoryKeysToNodes(rootChildren, keys) {
- var restKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keys));
- var nodes = [];
- traverseNodesKey(rootChildren, function (key, node) {
- var index = restKeys.indexOf(key);
- if (index !== -1) {
- nodes.push(node);
- restKeys.splice(index, 1);
- }
- return !!restKeys.length;
- });
- return nodes;
- }
- function getFullKeyListByTreeData(treeData) {
- var keys = [];
- (treeData || []).forEach(function (item) {
- keys.push(item.key);
- if (item.children) {
- keys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keys), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(getFullKeyListByTreeData(item.children)));
- }
- });
- return keys;
- }
- /***/ }),
- /***/ "./components/upload/Dragger.jsx":
- /*!***************************************!*\
- !*** ./components/upload/Dragger.jsx ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Upload */ "./components/upload/Upload.jsx");
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AUploadDragger',
- props: _interface__WEBPACK_IMPORTED_MODULE_3__["UploadProps"],
- render: function render() {
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getOptionProps"])(this);
- var draggerProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
- type: 'drag'
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getListeners"])(this),
- style: { height: this.height }
- };
- return h(
- _Upload__WEBPACK_IMPORTED_MODULE_2__["default"],
- draggerProps,
- [this.$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/upload/Upload.jsx":
- /*!**************************************!*\
- !*** ./components/upload/Upload.jsx ***!
- \**************************************/
- /*! exports provided: UploadProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/uniqBy */ "./node_modules/lodash/uniqBy.js");
- /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/findIndex */ "./node_modules/lodash/findIndex.js");
- /* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_findIndex__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _vc_upload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-upload */ "./components/vc-upload/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
- /* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Dragger */ "./components/upload/Dragger.jsx");
- /* harmony import */ var _UploadList__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./UploadList */ "./components/upload/UploadList.jsx");
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_15__["UploadProps"]; });
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils */ "./components/upload/utils.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AUpload',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
- inheritAttrs: false,
- Dragger: _Dragger__WEBPACK_IMPORTED_MODULE_13__["default"],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_15__["UploadProps"], {
- type: 'select',
- multiple: false,
- action: '',
- data: {},
- accept: '',
- beforeUpload: _utils__WEBPACK_IMPORTED_MODULE_16__["T"],
- showUploadList: true,
- listType: 'text', // or pictrue
- disabled: false,
- supportServerRender: true
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
- } }
- },
- // recentUploadStatus: boolean | PromiseLike<any>;
- data: function data() {
- this.progressTimer = null;
- return {
- sFileList: this.fileList || this.defaultFileList || [],
- dragState: 'drop'
- };
- },
- watch: {
- fileList: function fileList(val) {
- this.sFileList = val || [];
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.clearProgressTimer();
- },
- methods: {
- onStart: function onStart(file) {
- var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["fileToObject"])(file);
- targetItem.status = 'uploading';
- var nextFileList = this.sFileList.concat();
- var fileIndex = lodash_findIndex__WEBPACK_IMPORTED_MODULE_5___default()(nextFileList, function (_ref) {
- var uid = _ref.uid;
- return uid === targetItem.uid;
- });
- if (fileIndex === -1) {
- nextFileList.push(targetItem);
- } else {
- nextFileList[fileIndex] = targetItem;
- }
- this.onChange({
- file: targetItem,
- fileList: nextFileList
- });
- // fix ie progress
- if (!window.File || process.env.TEST_IE) {
- this.autoUpdateProgress(0, targetItem);
- }
- },
- onSuccess: function onSuccess(response, file, xhr) {
- this.clearProgressTimer();
- try {
- if (typeof response === 'string') {
- response = JSON.parse(response);
- }
- } catch (e) {
- /* do nothing */
- }
- var fileList = this.sFileList;
- var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getFileItem"])(file, fileList);
- // removed
- if (!targetItem) {
- return;
- }
- targetItem.status = 'done';
- targetItem.response = response;
- targetItem.xhr = xhr;
- this.onChange({
- file: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, targetItem),
- fileList: fileList
- });
- },
- onProgress: function onProgress(e, file) {
- var fileList = this.sFileList;
- var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getFileItem"])(file, fileList);
- // removed
- if (!targetItem) {
- return;
- }
- targetItem.percent = e.percent;
- this.onChange({
- event: e,
- file: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, targetItem),
- fileList: this.sFileList
- });
- },
- onError: function onError(error, response, file) {
- this.clearProgressTimer();
- var fileList = this.sFileList;
- var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getFileItem"])(file, fileList);
- // removed
- if (!targetItem) {
- return;
- }
- targetItem.error = error;
- targetItem.response = response;
- targetItem.status = 'error';
- this.onChange({
- file: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, targetItem),
- fileList: fileList
- });
- },
- onReject: function onReject(fileList) {
- this.$emit('reject', fileList);
- },
- handleRemove: function handleRemove(file) {
- var _this = this;
- var onRemove = this.remove;
- var fileList = this.$data.sFileList;
- Promise.resolve(typeof onRemove === 'function' ? onRemove(file) : onRemove).then(function (ret) {
- // Prevent removing file
- if (ret === false) {
- return;
- }
- var removedFileList = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["removeFileItem"])(file, fileList);
- if (removedFileList) {
- file.status = 'removed'; // eslint-disable-line
- if (_this.upload) {
- _this.upload.abort(file);
- }
- _this.onChange({
- file: file,
- fileList: removedFileList
- });
- }
- });
- },
- handleManualRemove: function handleManualRemove(file) {
- if (this.$refs.uploadRef) {
- this.$refs.uploadRef.abort(file);
- }
- this.handleRemove(file);
- },
- onChange: function onChange(info) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["hasProp"])(this, 'fileList')) {
- this.setState({ sFileList: info.fileList });
- }
- this.$emit('change', info);
- },
- onFileDrop: function onFileDrop(e) {
- this.setState({
- dragState: e.type
- });
- },
- reBeforeUpload: function reBeforeUpload(file, fileList) {
- var beforeUpload = this.$props.beforeUpload;
- var stateFileList = this.$data.sFileList;
- if (!beforeUpload) {
- return true;
- }
- var result = beforeUpload(file, fileList);
- if (result === false) {
- this.onChange({
- file: file,
- fileList: lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4___default()(stateFileList.concat(fileList.map(_utils__WEBPACK_IMPORTED_MODULE_16__["fileToObject"])), function (item) {
- return item.uid;
- })
- });
- return false;
- }
- if (result && result.then) {
- return result;
- }
- return true;
- },
- clearProgressTimer: function clearProgressTimer() {
- clearInterval(this.progressTimer);
- },
- autoUpdateProgress: function autoUpdateProgress(_, file) {
- var _this2 = this;
- var getPercent = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["genPercentAdd"])();
- var curPercent = 0;
- this.clearProgressTimer();
- this.progressTimer = setInterval(function () {
- curPercent = getPercent(curPercent);
- _this2.onProgress({
- percent: curPercent * 100
- }, file);
- }, 200);
- },
- renderUploadList: function renderUploadList(locale) {
- var h = this.$createElement;
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this),
- _getOptionProps$showU = _getOptionProps.showUploadList,
- showUploadList = _getOptionProps$showU === undefined ? {} : _getOptionProps$showU,
- listType = _getOptionProps.listType,
- previewFile = _getOptionProps.previewFile,
- disabled = _getOptionProps.disabled,
- propLocale = _getOptionProps.locale;
- var showRemoveIcon = showUploadList.showRemoveIcon,
- showPreviewIcon = showUploadList.showPreviewIcon,
- showDownloadIcon = showUploadList.showDownloadIcon;
- var fileList = this.$data.sFileList;
- var uploadListProps = {
- props: {
- listType: listType,
- items: fileList,
- previewFile: previewFile,
- showRemoveIcon: !disabled && showRemoveIcon,
- showPreviewIcon: showPreviewIcon,
- showDownloadIcon: showDownloadIcon,
- locale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, locale, propLocale)
- },
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- remove: this.handleManualRemove
- }, lodash_pick__WEBPACK_IMPORTED_MODULE_6___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this), ['download', 'preview']))
- };
- return h(_UploadList__WEBPACK_IMPORTED_MODULE_14__["default"], uploadListProps);
- }
- },
- render: function render() {
- var _classNames2;
- var h = arguments[0];
- var _getOptionProps2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps2.prefixCls,
- showUploadList = _getOptionProps2.showUploadList,
- listType = _getOptionProps2.listType,
- type = _getOptionProps2.type,
- disabled = _getOptionProps2.disabled;
- var _$data = this.$data,
- fileList = _$data.sFileList,
- dragState = _$data.dragState;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('upload', customizePrefixCls);
- var vcUploadProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
- prefixCls: prefixCls,
- beforeUpload: this.reBeforeUpload
- }),
- on: {
- start: this.onStart,
- error: this.onError,
- progress: this.onProgress,
- success: this.onSuccess,
- reject: this.onReject
- },
- ref: 'uploadRef',
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$attrs)
- };
- var children = this.$slots['default'];
- // Remove id to avoid open by label when trigger is hidden
- // https://github.com/ant-design/ant-design/issues/14298
- if (!children || disabled) {
- delete vcUploadProps.props.id;
- delete vcUploadProps.attrs.id;
- }
- var uploadList = showUploadList ? h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__["default"], {
- attrs: {
- componentName: 'Upload',
- defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__["default"].Upload
- },
- scopedSlots: { 'default': this.renderUploadList }
- }) : null;
- if (type === 'drag') {
- var _classNames;
- var dragCls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-drag', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-drag-uploading', fileList.some(function (file) {
- return file.status === 'uploading';
- })), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-drag-hover', dragState === 'dragover'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
- return h('span', [h(
- 'div',
- {
- 'class': dragCls,
- on: {
- 'drop': this.onFileDrop,
- 'dragover': this.onFileDrop,
- 'dragleave': this.onFileDrop
- }
- },
- [h(
- _vc_upload__WEBPACK_IMPORTED_MODULE_7__["default"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([vcUploadProps, { 'class': prefixCls + '-btn' }]),
- [h(
- 'div',
- { 'class': prefixCls + '-drag-container' },
- [children]
- )]
- )]
- ), uploadList]);
- }
- var uploadButtonCls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-select', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-select-' + listType, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-disabled', disabled), _classNames2));
- var uploadButton = h(
- 'div',
- { 'class': uploadButtonCls, style: children ? undefined : { display: 'none' } },
- [h(
- _vc_upload__WEBPACK_IMPORTED_MODULE_7__["default"],
- vcUploadProps,
- [children]
- )]
- );
- if (listType === 'picture-card') {
- return h(
- 'span',
- { 'class': prefixCls + '-picture-card-wrapper' },
- [uploadList, uploadButton]
- );
- }
- return h('span', [uploadButton, uploadList]);
- }
- });
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/process/browser.js */ "./node_modules/process/browser.js")))
- /***/ }),
- /***/ "./components/upload/UploadList.jsx":
- /*!******************************************!*\
- !*** ./components/upload/UploadList.jsx ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "./components/upload/utils.jsx");
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
- /* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../progress */ "./components/progress/index.jsx");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_11__);
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'AUploadList',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_12__["UploadListProps"], {
- listType: 'text', // or picture
- progressAttr: {
- strokeWidth: 2,
- showInfo: false
- },
- showRemoveIcon: true,
- showDownloadIcon: false,
- showPreviewIcon: true,
- previewFile: _utils__WEBPACK_IMPORTED_MODULE_7__["previewImage"]
- }),
- inject: {
- configProvider: { 'default': function _default() {
- return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
- } }
- },
- updated: function updated() {
- var _this = this;
- this.$nextTick(function () {
- var _$props = _this.$props,
- listType = _$props.listType,
- items = _$props.items,
- previewFile = _$props.previewFile;
- if (listType !== 'picture' && listType !== 'picture-card') {
- return;
- }
- (items || []).forEach(function (file) {
- if (typeof document === 'undefined' || typeof window === 'undefined' || !window.FileReader || !window.File || !(file.originFileObj instanceof File || file.originFileObj instanceof Blob) || file.thumbUrl !== undefined) {
- return;
- }
- /*eslint-disable */
- file.thumbUrl = '';
- if (previewFile) {
- previewFile(file.originFileObj).then(function (previewDataUrl) {
- // Need append '' to avoid dead loop
- file.thumbUrl = previewDataUrl || '';
- _this.$forceUpdate();
- });
- }
- });
- });
- },
- methods: {
- handlePreview: function handlePreview(file, e) {
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
- preview = _getListeners.preview;
- if (!preview) {
- return;
- }
- e.preventDefault();
- return this.$emit('preview', file);
- },
- handleDownload: function handleDownload(file) {
- var _getListeners2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
- download = _getListeners2.download;
- if (typeof download === 'function') {
- download(file);
- } else if (file.url) {
- window.open(file.url);
- }
- },
- handleClose: function handleClose(file) {
- this.$emit('remove', file);
- }
- },
- render: function render() {
- var _this2 = this,
- _classNames4;
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
- customizePrefixCls = _getOptionProps.prefixCls,
- _getOptionProps$items = _getOptionProps.items,
- items = _getOptionProps$items === undefined ? [] : _getOptionProps$items,
- listType = _getOptionProps.listType,
- showPreviewIcon = _getOptionProps.showPreviewIcon,
- showRemoveIcon = _getOptionProps.showRemoveIcon,
- showDownloadIcon = _getOptionProps.showDownloadIcon,
- locale = _getOptionProps.locale,
- progressAttr = _getOptionProps.progressAttr;
- var getPrefixCls = this.configProvider.getPrefixCls;
- var prefixCls = getPrefixCls('upload', customizePrefixCls);
- var list = items.map(function (file) {
- var _classNames, _classNames2;
- var progress = void 0;
- var icon = h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: { type: file.status === 'uploading' ? 'loading' : 'paper-clip' }
- });
- if (listType === 'picture' || listType === 'picture-card') {
- if (listType === 'picture-card' && file.status === 'uploading') {
- icon = h(
- 'div',
- { 'class': prefixCls + '-list-item-uploading-text' },
- [locale.uploading]
- );
- } else if (!file.thumbUrl && !file.url) {
- icon = h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], { 'class': prefixCls + '-list-item-thumbnail', attrs: { type: 'picture', theme: 'twoTone' }
- });
- } else {
- var thumbnail = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["isImageUrl"])(file) ? h('img', {
- attrs: {
- src: file.thumbUrl || file.url,
- alt: file.name
- },
- 'class': prefixCls + '-list-item-image'
- }) : h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: { type: 'file', theme: 'twoTone' },
- 'class': prefixCls + '-list-item-icon' });
- icon = h(
- 'a',
- {
- 'class': prefixCls + '-list-item-thumbnail',
- on: {
- 'click': function click(e) {
- return _this2.handlePreview(file, e);
- }
- },
- attrs: {
- href: file.url || file.thumbUrl,
- target: '_blank',
- rel: 'noopener noreferrer'
- }
- },
- [thumbnail]
- );
- }
- }
- if (file.status === 'uploading') {
- var progressProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, progressAttr, {
- type: 'line',
- percent: file.percent
- })
- };
- // show loading icon if upload progress listener is disabled
- var loadingProgress = 'percent' in file ? h(_progress__WEBPACK_IMPORTED_MODULE_10__["default"], progressProps) : null;
- progress = h(
- 'div',
- { 'class': prefixCls + '-list-item-progress', key: 'progress' },
- [loadingProgress]
- );
- }
- var infoUploadingClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-list-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-list-item-' + file.status, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-list-item-list-type-' + listType, true), _classNames));
- var linkProps = typeof file.linkProps === 'string' ? JSON.parse(file.linkProps) : file.linkProps;
- var removeIcon = showRemoveIcon ? h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: { type: 'delete', title: locale.removeFile },
- on: {
- 'click': function click() {
- return _this2.handleClose(file);
- }
- }
- }) : null;
- var downloadIcon = showDownloadIcon && file.status === 'done' ? h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: {
- type: 'download',
- title: locale.downloadFile
- },
- on: {
- 'click': function click() {
- return _this2.handleDownload(file);
- }
- }
- }) : null;
- var downloadOrDelete = listType !== 'picture-card' && h(
- 'span',
- {
- key: 'download-delete',
- 'class': prefixCls + '-list-item-card-actions ' + (listType === 'picture' ? 'picture' : '')
- },
- [downloadIcon && h(
- 'a',
- {
- attrs: { title: locale.downloadFile }
- },
- [downloadIcon]
- ), removeIcon && h(
- 'a',
- {
- attrs: { title: locale.removeFile }
- },
- [removeIcon]
- )]
- );
- var listItemNameClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-list-item-name', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-list-item-name-icon-count-' + [downloadIcon, removeIcon].filter(function (x) {
- return x;
- }).length, true), _classNames2));
- var preview = file.url ? [h(
- 'a',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- target: '_blank',
- rel: 'noopener noreferrer',
- title: file.name
- },
- 'class': listItemNameClass }, linkProps, {
- attrs: {
- href: file.url
- },
- on: {
- 'click': function click(e) {
- return _this2.handlePreview(file, e);
- }
- }
- }]),
- [file.name]
- ), downloadOrDelete] : [h(
- 'span',
- {
- key: 'view',
- 'class': prefixCls + '-list-item-name',
- on: {
- 'click': function click(e) {
- return _this2.handlePreview(file, e);
- }
- },
- attrs: {
- title: file.name
- }
- },
- [file.name]
- ), downloadOrDelete];
- var style = file.url || file.thumbUrl ? undefined : {
- pointerEvents: 'none',
- opacity: 0.5
- };
- var previewIcon = showPreviewIcon ? h(
- 'a',
- {
- attrs: {
- href: file.url || file.thumbUrl,
- target: '_blank',
- rel: 'noopener noreferrer',
- title: locale.previewFile
- },
- style: style,
- on: {
- 'click': function click(e) {
- return _this2.handlePreview(file, e);
- }
- }
- },
- [h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: { type: 'eye-o' }
- })]
- ) : null;
- var actions = listType === 'picture-card' && file.status !== 'uploading' && h(
- 'span',
- { 'class': prefixCls + '-list-item-actions' },
- [previewIcon, file.status === 'done' && downloadIcon, removeIcon]
- );
- var message = void 0;
- if (file.response && typeof file.response === 'string') {
- message = file.response;
- } else {
- message = file.error && file.error.statusText || locale.uploadError;
- }
- var iconAndPreview = h('span', [icon, preview]);
- var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])('fade');
- var dom = h(
- 'div',
- { 'class': infoUploadingClass, key: file.uid },
- [h(
- 'div',
- { 'class': prefixCls + '-list-item-info' },
- [iconAndPreview]
- ), actions, h(
- 'transition',
- transitionProps,
- [progress]
- )]
- );
- var listContainerNameClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-list-picture-card-container', listType === 'picture-card'));
- return h(
- 'div',
- { key: file.uid, 'class': listContainerNameClass },
- [file.status === 'error' ? h(
- _tooltip__WEBPACK_IMPORTED_MODULE_9__["default"],
- {
- attrs: { title: message }
- },
- [dom]
- ) : h('span', [dom])]
- );
- });
- var listClassNames = classnames__WEBPACK_IMPORTED_MODULE_11___default()((_classNames4 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-list', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-list-' + listType, true), _classNames4));
- var animationDirection = listType === 'picture-card' ? 'animate-inline' : 'animate';
- var transitionGroupProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])(prefixCls + '-' + animationDirection);
- return h(
- 'transition-group',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([transitionGroupProps, {
- attrs: { tag: 'div' },
- 'class': listClassNames }]),
- [list]
- );
- }
- });
- /***/ }),
- /***/ "./components/upload/index.jsx":
- /*!*************************************!*\
- !*** ./components/upload/index.jsx ***!
- \*************************************/
- /*! exports provided: UploadProps, UploadListProps, UploadChangeParam, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ "./components/upload/Upload.jsx");
- /* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dragger */ "./components/upload/Dragger.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_3__["UploadProps"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadListProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_3__["UploadListProps"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadChangeParam", function() { return _interface__WEBPACK_IMPORTED_MODULE_3__["UploadChangeParam"]; });
- _Upload__WEBPACK_IMPORTED_MODULE_0__["default"].Dragger = _Dragger__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* istanbul ignore next */
- _Upload__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
- Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
- Vue.component(_Upload__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Upload__WEBPACK_IMPORTED_MODULE_0__["default"]);
- Vue.component(_Dragger__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Dragger__WEBPACK_IMPORTED_MODULE_1__["default"]);
- };
- /* harmony default export */ __webpack_exports__["default"] = (_Upload__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/upload/interface.jsx":
- /*!*****************************************!*\
- !*** ./components/upload/interface.jsx ***!
- \*****************************************/
- /*! exports provided: UploadFileStatus, UploadChangeParam, ShowUploadListInterface, UploadLocale, UploadProps, UploadState, UploadListProps */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadFileStatus", function() { return UploadFileStatus; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadChangeParam", function() { return UploadChangeParam; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShowUploadListInterface", function() { return ShowUploadListInterface; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadLocale", function() { return UploadLocale; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadProps", function() { return UploadProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadState", function() { return UploadState; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadListProps", function() { return UploadListProps; });
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- var UploadFileStatus = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['error', 'success', 'done', 'uploading', 'removed']);
- // export const HttpRequestHeader {
- // [key: string]: string;
- // }
- // export const UploadFile = PropsTypes.shape({
- // uid: PropsTypes.oneOfType([
- // PropsTypes.string,
- // PropsTypes.number,
- // ]),
- // size: PropsTypes.number,
- // name: PropsTypes.string,
- // filename: PropsTypes.string,
- // lastModified: PropsTypes.number,
- // lastModifiedDate: PropsTypes.any,
- // url: PropsTypes.string,
- // status: UploadFileStatus,
- // percent: PropsTypes.number,
- // thumbUrl: PropsTypes.string,
- // originFileObj: PropsTypes.any,
- // response: PropsTypes.any,
- // error: PropsTypes.any,
- // linkProps: PropsTypes.any,
- // type: PropsTypes.string,
- // }).loose
- function UploadFile(_ref) {
- var uid = _ref.uid,
- name = _ref.name;
- if (!uid && uid !== 0) return false;
- if (!['string', 'number'].includes(typeof uid === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(uid))) return false;
- if (name === '' || typeof name !== 'string') return false;
- return true;
- }
- var UploadChangeParam = {
- file: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile),
- fileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
- event: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object
- };
- var ShowUploadListInterface = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
- showRemoveIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- showPreviewIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- }).loose;
- var UploadLocale = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
- uploading: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- removeFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- downloadFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- uploadError: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- previewFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- }).loose;
- var UploadProps = {
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['drag', 'select']),
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- defaultFileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
- fileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
- action: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
- directory: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- data: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
- method: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['POST', 'PUT', 'post', 'put']),
- headers: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- showUploadList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, ShowUploadListInterface]),
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- beforeUpload: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- // onChange: PropsTypes.func,
- listType: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['text', 'picture', 'picture-card']),
- // className: PropsTypes.string,
- // onPreview: PropsTypes.func,
- remove: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- supportServerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- // style: PropsTypes.object,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- customRequest: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- withCredentials: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- openFileDialogOnClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- locale: UploadLocale,
- height: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- id: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- previewFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- transformFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- };
- var UploadState = {
- fileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
- dragState: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- };
- var UploadListProps = {
- listType: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['text', 'picture', 'picture-card']),
- // onPreview: PropsTypes.func,
- // onRemove: PropsTypes.func,
- // items: PropsTypes.arrayOf(UploadFile),
- items: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
- // items: PropsTypes.any,
- progressAttr: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- showRemoveIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- showDownloadIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- showPreviewIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- locale: UploadLocale,
- previewFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- };
- /***/ }),
- /***/ "./components/upload/style/index.js":
- /*!******************************************!*\
- !*** ./components/upload/style/index.js ***!
- \******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/upload/style/index.less");
- /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _progress_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../progress/style */ "./components/progress/style/index.js");
- /* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
- // style dependencies
- /***/ }),
- /***/ "./components/upload/style/index.less":
- /*!********************************************!*\
- !*** ./components/upload/style/index.less ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./components/upload/utils.jsx":
- /*!*************************************!*\
- !*** ./components/upload/utils.jsx ***!
- \*************************************/
- /*! exports provided: T, fileToObject, genPercentAdd, getFileItem, removeFileItem, isImageUrl, previewImage */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return T; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fileToObject", function() { return fileToObject; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genPercentAdd", function() { return genPercentAdd; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFileItem", function() { return getFileItem; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeFileItem", function() { return removeFileItem; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isImageUrl", function() { return isImageUrl; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "previewImage", function() { return previewImage; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- function T() {
- return true;
- }
- // Fix IE file.status problem
- // via coping a new Object
- function fileToObject(file) {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, file, {
- lastModified: file.lastModified,
- lastModifiedDate: file.lastModifiedDate,
- name: file.name,
- size: file.size,
- type: file.type,
- uid: file.uid,
- percent: 0,
- originFileObj: file
- });
- }
- /**
- * 生成Progress percent: 0.1 -> 0.98
- * - for ie
- */
- function genPercentAdd() {
- var k = 0.1;
- var i = 0.01;
- var end = 0.98;
- return function (s) {
- var start = s;
- if (start >= end) {
- return start;
- }
- start += k;
- k = k - i;
- if (k < 0.001) {
- k = 0.001;
- }
- return start;
- };
- }
- function getFileItem(file, fileList) {
- var matchKey = file.uid !== undefined ? 'uid' : 'name';
- return fileList.filter(function (item) {
- return item[matchKey] === file[matchKey];
- })[0];
- }
- function removeFileItem(file, fileList) {
- var matchKey = file.uid !== undefined ? 'uid' : 'name';
- var removed = fileList.filter(function (item) {
- return item[matchKey] !== file[matchKey];
- });
- if (removed.length === fileList.length) {
- return null;
- }
- return removed;
- }
- // ==================== Default Image Preview ====================
- var extname = function extname() {
- var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
- var temp = url.split('/');
- var filename = temp[temp.length - 1];
- var filenameWithoutSuffix = filename.split(/#|\?/)[0];
- return (/\.[^./\\]*$/.exec(filenameWithoutSuffix) || [''])[0];
- };
- var isImageFileType = function isImageFileType(type) {
- return !!type && type.indexOf('image/') === 0;
- };
- var isImageUrl = function isImageUrl(file) {
- if (isImageFileType(file.type)) {
- return true;
- }
- var url = file.thumbUrl || file.url;
- var extension = extname(url);
- if (/^data:image\//.test(url) || /(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(extension)) {
- return true;
- }
- if (/^data:/.test(url)) {
- // other file types of base64
- return false;
- }
- if (extension) {
- // other file types which have extension
- return false;
- }
- return true;
- };
- var MEASURE_SIZE = 200;
- function previewImage(file) {
- return new Promise(function (resolve) {
- if (!isImageFileType(file.type)) {
- resolve('');
- return;
- }
- var canvas = document.createElement('canvas');
- canvas.width = MEASURE_SIZE;
- canvas.height = MEASURE_SIZE;
- canvas.style.cssText = 'position: fixed; left: 0; top: 0; width: ' + MEASURE_SIZE + 'px; height: ' + MEASURE_SIZE + 'px; z-index: 9999; display: none;';
- document.body.appendChild(canvas);
- var ctx = canvas.getContext('2d');
- var img = new Image();
- img.onload = function () {
- var width = img.width,
- height = img.height;
- var drawWidth = MEASURE_SIZE;
- var drawHeight = MEASURE_SIZE;
- var offsetX = 0;
- var offsetY = 0;
- if (width < height) {
- drawHeight = height * (MEASURE_SIZE / width);
- offsetY = -(drawHeight - drawWidth) / 2;
- } else {
- drawWidth = width * (MEASURE_SIZE / height);
- offsetX = -(drawWidth - drawHeight) / 2;
- }
- ctx.drawImage(img, offsetX, offsetY, drawWidth, drawHeight);
- var dataURL = canvas.toDataURL();
- document.body.removeChild(canvas);
- resolve(dataURL);
- };
- img.src = window.URL.createObjectURL(file);
- });
- }
- /***/ }),
- /***/ "./components/vc-align/Align.jsx":
- /*!***************************************!*\
- !*** ./components/vc-align/Align.jsx ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var dom_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-align */ "./node_modules/dom-align/dist-web/index.js");
- /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-align/util.js");
- /* harmony import */ var _util_vnode_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode.js */ "./components/_util/vnode.js");
- /* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");
- /* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- function getElement(func) {
- if (typeof func !== 'function' || !func) return null;
- return func();
- }
- function getPoint(point) {
- if ((typeof point === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(point)) !== 'object' || !point) return null;
- return point;
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- childrenProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
- target: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]).def(function () {
- return window;
- }),
- monitorBufferTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(50),
- monitorWindowResize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false)
- },
- data: function data() {
- this.aligned = false;
- return {};
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- _this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _this.$props);
- var props = _this.$props;
- // if parent ref not attached .... use document.getElementById
- !_this.aligned && _this.forceAlign();
- if (!props.disabled && props.monitorWindowResize) {
- _this.startMonitorWindowResize();
- }
- });
- },
- updated: function updated() {
- var _this2 = this;
- this.$nextTick(function () {
- var prevProps = _this2.prevProps;
- var props = _this2.$props;
- var reAlign = false;
- if (!props.disabled) {
- var source = _this2.$el;
- var sourceRect = source ? source.getBoundingClientRect() : null;
- if (prevProps.disabled) {
- reAlign = true;
- } else {
- var lastElement = getElement(prevProps.target);
- var currentElement = getElement(props.target);
- var lastPoint = getPoint(prevProps.target);
- var currentPoint = getPoint(props.target);
- if (Object(_util__WEBPACK_IMPORTED_MODULE_5__["isWindow"])(lastElement) && Object(_util__WEBPACK_IMPORTED_MODULE_5__["isWindow"])(currentElement)) {
- // Skip if is window
- reAlign = false;
- } else if (lastElement !== currentElement || // Element change
- lastElement && !currentElement && currentPoint || // Change from element to point
- lastPoint && currentPoint && currentElement || // Change from point to element
- currentPoint && !Object(_util__WEBPACK_IMPORTED_MODULE_5__["isSamePoint"])(lastPoint, currentPoint)) {
- reAlign = true;
- }
- // If source element size changed
- var preRect = _this2.sourceRect || {};
- if (!reAlign && source && (!Object(_util__WEBPACK_IMPORTED_MODULE_5__["isSimilarValue"])(preRect.width, sourceRect.width) || !Object(_util__WEBPACK_IMPORTED_MODULE_5__["isSimilarValue"])(preRect.height, sourceRect.height))) {
- reAlign = true;
- }
- }
- _this2.sourceRect = sourceRect;
- }
- if (reAlign) {
- _this2.forceAlign();
- }
- if (props.monitorWindowResize && !props.disabled) {
- _this2.startMonitorWindowResize();
- } else {
- _this2.stopMonitorWindowResize();
- }
- _this2.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _this2.$props, { align: lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7___default()(_this2.$props.align) });
- });
- },
- beforeDestroy: function beforeDestroy() {
- this.stopMonitorWindowResize();
- },
- methods: {
- startMonitorWindowResize: function startMonitorWindowResize() {
- if (!this.resizeHandler) {
- this.bufferMonitor = Object(_util__WEBPACK_IMPORTED_MODULE_5__["buffer"])(this.forceAlign, this.$props.monitorBufferTime);
- this.resizeHandler = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_4__["default"])(window, 'resize', this.bufferMonitor);
- }
- },
- stopMonitorWindowResize: function stopMonitorWindowResize() {
- if (this.resizeHandler) {
- this.bufferMonitor.clear();
- this.resizeHandler.remove();
- this.resizeHandler = null;
- }
- },
- forceAlign: function forceAlign() {
- var _$props = this.$props,
- disabled = _$props.disabled,
- target = _$props.target,
- align = _$props.align;
- if (!disabled && target) {
- var source = this.$el;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
- var result = void 0;
- var element = getElement(target);
- var point = getPoint(target);
- // IE lose focus after element realign
- // We should record activeElement and restore later
- var activeElement = document.activeElement;
- if (element) {
- result = Object(dom_align__WEBPACK_IMPORTED_MODULE_3__["alignElement"])(source, element, align);
- } else if (point) {
- result = Object(dom_align__WEBPACK_IMPORTED_MODULE_3__["alignPoint"])(source, point, align);
- }
- Object(_util__WEBPACK_IMPORTED_MODULE_5__["restoreFocus"])(activeElement, source);
- this.aligned = true;
- listeners.align && listeners.align(source, result);
- }
- }
- },
- render: function render() {
- var childrenProps = this.$props.childrenProps;
- var child = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlot"])(this)[0];
- if (child && childrenProps) {
- return Object(_util_vnode_js__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(child, { props: childrenProps });
- }
- return child;
- }
- });
- /***/ }),
- /***/ "./components/vc-align/index.js":
- /*!**************************************!*\
- !*** ./components/vc-align/index.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Align__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Align */ "./components/vc-align/Align.jsx");
- // based on vc-align 2.4.5
- /* harmony default export */ __webpack_exports__["default"] = (_Align__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-align/util.js":
- /*!*************************************!*\
- !*** ./components/vc-align/util.js ***!
- \*************************************/
- /*! exports provided: buffer, isSamePoint, isWindow, isSimilarValue, restoreFocus */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return buffer; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSamePoint", function() { return isSamePoint; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isWindow", function() { return isWindow; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSimilarValue", function() { return isSimilarValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "restoreFocus", function() { return restoreFocus; });
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
- function buffer(fn, ms) {
- var timer = void 0;
- function clear() {
- if (timer) {
- clearTimeout(timer);
- timer = null;
- }
- }
- function bufferFn() {
- clear();
- timer = setTimeout(fn, ms);
- }
- bufferFn.clear = clear;
- return bufferFn;
- }
- function isSamePoint(prev, next) {
- if (prev === next) return true;
- if (!prev || !next) return false;
- if ('pageX' in next && 'pageY' in next) {
- return prev.pageX === next.pageX && prev.pageY === next.pageY;
- }
- if ('clientX' in next && 'clientY' in next) {
- return prev.clientX === next.clientX && prev.clientY === next.clientY;
- }
- return false;
- }
- function isWindow(obj) {
- return obj && (typeof obj === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(obj)) === 'object' && obj.window === obj;
- }
- function isSimilarValue(val1, val2) {
- var int1 = Math.floor(val1);
- var int2 = Math.floor(val2);
- return Math.abs(int1 - int2) <= 1;
- }
- function restoreFocus(activeElement, container) {
- // Focus back if is in the container
- if (activeElement !== document.activeElement && Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_1__["default"])(container, activeElement)) {
- activeElement.focus();
- }
- }
- /***/ }),
- /***/ "./components/vc-calendar/index.js":
- /*!*****************************************!*\
- !*** ./components/vc-calendar/index.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/ */ "./components/vc-calendar/src/index.js");
- // based on rc-calendar 9.15.10
- vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_1___default.a, { name: 'ant-ref' });
- /* harmony default export */ __webpack_exports__["default"] = (_src___WEBPACK_IMPORTED_MODULE_2__["default"]);
- /***/ }),
- /***/ "./components/vc-calendar/src/Calendar.jsx":
- /*!*************************************************!*\
- !*** ./components/vc-calendar/src/Calendar.jsx ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _date_DateTable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./date/DateTable */ "./components/vc-calendar/src/date/DateTable.jsx");
- /* harmony import */ var _calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./calendar/CalendarHeader */ "./components/vc-calendar/src/calendar/CalendarHeader.jsx");
- /* harmony import */ var _calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./calendar/CalendarFooter */ "./components/vc-calendar/src/calendar/CalendarFooter.jsx");
- /* harmony import */ var _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./mixin/CalendarMixin */ "./components/vc-calendar/src/mixin/CalendarMixin.js");
- /* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
- /* harmony import */ var _date_DateInput__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./date/DateInput */ "./components/vc-calendar/src/date/DateInput.jsx");
- /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./util */ "./components/vc-calendar/src/util/index.js");
- /* harmony import */ var _util_toTime__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util/toTime */ "./components/vc-calendar/src/util/toTime.js");
- var getMomentObjectIfValid = function getMomentObjectIfValid(date) {
- if (moment__WEBPACK_IMPORTED_MODULE_6___default.a.isMoment(date) && date.isValid()) {
- return date;
- }
- return false;
- };
- var Calendar = {
- name: 'Calendar',
- props: {
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_13__["default"]),
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string), _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-calendar'),
- // prefixCls: PropTypes.string,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['time', 'date', 'month', 'year', 'decade']),
- // locale: PropTypes.object,
- showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
- showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
- showOk: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- // onSelect: PropTypes.func,
- // onOk: PropTypes.func,
- // onKeyDown: PropTypes.func,
- timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- dateInputPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- // onClear: PropTypes.func,
- // onChange: PropTypes.func,
- // onPanelChange: PropTypes.func,
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
- return null;
- }),
- renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
- return null;
- }),
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- focusablePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
- inputMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- },
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_11__["default"], _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
- data: function data() {
- var props = this.$props;
- return {
- sMode: this.mode || 'date',
- sValue: getMomentObjectIfValid(props.value) || getMomentObjectIfValid(props.defaultValue) || moment__WEBPACK_IMPORTED_MODULE_6___default()(),
- sSelectedValue: props.selectedValue || props.defaultSelectedValue
- };
- },
- watch: {
- mode: function mode(val) {
- this.setState({ sMode: val });
- },
- value: function value(val) {
- this.setState({
- sValue: getMomentObjectIfValid(val) || getMomentObjectIfValid(this.defaultValue) || Object(_mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_10__["getNowByCurrentStateValue"])(this.sValue)
- });
- },
- selectedValue: function selectedValue(val) {
- this.setState({
- sSelectedValue: val
- });
- }
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- _this.saveFocusElement(_date_DateInput__WEBPACK_IMPORTED_MODULE_12__["default"].getInstance());
- });
- },
- methods: {
- onPanelChange: function onPanelChange(value, mode) {
- var sValue = this.sValue;
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'mode')) {
- this.setState({ sMode: mode });
- }
- this.__emit('panelChange', value || sValue, mode);
- },
- onKeyDown: function onKeyDown(event) {
- if (event.target.nodeName.toLowerCase() === 'input') {
- return undefined;
- }
- var keyCode = event.keyCode;
- // mac
- var ctrlKey = event.ctrlKey || event.metaKey;
- var disabledDate = this.disabledDate,
- value = this.sValue;
- switch (keyCode) {
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].DOWN:
- this.goTime(1, 'weeks');
- event.preventDefault();
- return 1;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].UP:
- this.goTime(-1, 'weeks');
- event.preventDefault();
- return 1;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].LEFT:
- if (ctrlKey) {
- this.goTime(-1, 'years');
- } else {
- this.goTime(-1, 'days');
- }
- event.preventDefault();
- return 1;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].RIGHT:
- if (ctrlKey) {
- this.goTime(1, 'years');
- } else {
- this.goTime(1, 'days');
- }
- event.preventDefault();
- return 1;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].HOME:
- this.setValue(Object(_util_toTime__WEBPACK_IMPORTED_MODULE_15__["goStartMonth"])(value));
- event.preventDefault();
- return 1;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].END:
- this.setValue(Object(_util_toTime__WEBPACK_IMPORTED_MODULE_15__["goEndMonth"])(value));
- event.preventDefault();
- return 1;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].PAGE_DOWN:
- this.goTime(1, 'month');
- event.preventDefault();
- return 1;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].PAGE_UP:
- this.goTime(-1, 'month');
- event.preventDefault();
- return 1;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ENTER:
- if (!disabledDate || !disabledDate(value)) {
- this.onSelect(value, {
- source: 'keyboard'
- });
- }
- event.preventDefault();
- return 1;
- default:
- this.__emit('keydown', event);
- return 1;
- }
- },
- onClear: function onClear() {
- this.onSelect(null);
- this.__emit('clear');
- },
- onOk: function onOk() {
- var sSelectedValue = this.sSelectedValue;
- if (this.isAllowedDate(sSelectedValue)) {
- this.__emit('ok', sSelectedValue);
- }
- },
- onDateInputChange: function onDateInputChange(value) {
- this.onSelect(value, {
- source: 'dateInput'
- });
- },
- onDateInputSelect: function onDateInputSelect(value) {
- this.onSelect(value, {
- source: 'dateInputSelect'
- });
- },
- onDateTableSelect: function onDateTableSelect(value) {
- var timePicker = this.timePicker,
- sSelectedValue = this.sSelectedValue;
- if (!sSelectedValue && timePicker) {
- var timePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(timePicker);
- var timePickerDefaultValue = timePickerProps.defaultValue;
- if (timePickerDefaultValue) {
- Object(_util__WEBPACK_IMPORTED_MODULE_14__["syncTime"])(timePickerDefaultValue, value);
- }
- }
- this.onSelect(value);
- },
- onToday: function onToday() {
- var sValue = this.sValue;
- var now = Object(_util__WEBPACK_IMPORTED_MODULE_14__["getTodayTime"])(sValue);
- this.onSelect(now, {
- source: 'todayButton'
- });
- },
- onBlur: function onBlur(event) {
- var _this2 = this;
- setTimeout(function () {
- var dateInput = _date_DateInput__WEBPACK_IMPORTED_MODULE_12__["default"].getInstance();
- var rootInstance = _this2.rootInstance;
- if (!rootInstance || rootInstance.contains(document.activeElement) || dateInput && dateInput.contains(document.activeElement)) {
- // focused element is still part of Calendar
- return;
- }
- _this2.$emit('blur', event);
- }, 0);
- },
- getRootDOMNode: function getRootDOMNode() {
- return this.$el;
- },
- openTimePicker: function openTimePicker() {
- this.onPanelChange(null, 'time');
- },
- closeTimePicker: function closeTimePicker() {
- this.onPanelChange(null, 'date');
- },
- goTime: function goTime(direction, unit) {
- this.setValue(Object(_util_toTime__WEBPACK_IMPORTED_MODULE_15__["goTime"])(this.sValue, direction, unit));
- }
- },
- render: function render() {
- var h = arguments[0];
- var locale = this.locale,
- prefixCls = this.prefixCls,
- disabledDate = this.disabledDate,
- dateInputPlaceholder = this.dateInputPlaceholder,
- timePicker = this.timePicker,
- disabledTime = this.disabledTime,
- showDateInput = this.showDateInput,
- sValue = this.sValue,
- sSelectedValue = this.sSelectedValue,
- sMode = this.sMode,
- renderFooter = this.renderFooter,
- inputMode = this.inputMode,
- inputReadOnly = this.inputReadOnly,
- monthCellRender = this.monthCellRender,
- monthCellContentRender = this.monthCellContentRender,
- props = this.$props;
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'clearIcon');
- var showTimePicker = sMode === 'time';
- var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? Object(_util__WEBPACK_IMPORTED_MODULE_14__["getTimeConfig"])(sSelectedValue, disabledTime) : null;
- var timePickerEle = null;
- if (timePicker && showTimePicker) {
- var timePickerOriginProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(timePicker);
- var timePickerProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- showHour: true,
- showSecond: true,
- showMinute: true
- }, timePickerOriginProps, disabledTimeConfig, {
- value: sSelectedValue,
- disabledTime: disabledTime
- }),
- on: {
- change: this.onDateInputChange
- }
- };
- if (timePickerOriginProps.defaultValue !== undefined) {
- timePickerProps.props.defaultOpenValue = timePickerOriginProps.defaultValue;
- }
- timePickerEle = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(timePicker, timePickerProps);
- }
- var dateInputElement = showDateInput ? h(_date_DateInput__WEBPACK_IMPORTED_MODULE_12__["default"], {
- attrs: {
- format: this.getFormat(),
- value: sValue,
- locale: locale,
- placeholder: dateInputPlaceholder,
- showClear: true,
- disabledTime: disabledTime,
- disabledDate: disabledDate,
- prefixCls: prefixCls,
- selectedValue: sSelectedValue,
- clearIcon: clearIcon,
- inputMode: inputMode,
- inputReadOnly: inputReadOnly
- },
- key: 'date-input', on: {
- 'clear': this.onClear,
- 'change': this.onDateInputChange,
- 'select': this.onDateInputSelect
- }
- }) : null;
- var children = [];
- if (props.renderSidebar) {
- children.push(props.renderSidebar());
- }
- children.push(h(
- 'div',
- { 'class': prefixCls + '-panel', key: 'panel' },
- [dateInputElement, h(
- 'div',
- {
- attrs: { tabIndex: props.focusablePanel ? 0 : undefined },
- 'class': prefixCls + '-date-panel' },
- [h(_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: {
- locale: locale,
- mode: sMode,
- value: sValue,
- disabledMonth: disabledDate,
- renderFooter: renderFooter,
- showTimePicker: showTimePicker,
- prefixCls: prefixCls,
- monthCellRender: monthCellRender,
- monthCellContentRender: monthCellContentRender
- },
- on: {
- 'valueChange': this.setValue,
- 'panelChange': this.onPanelChange
- }
- }), timePicker && showTimePicker ? h(
- 'div',
- { 'class': prefixCls + '-time-picker' },
- [h(
- 'div',
- { 'class': prefixCls + '-time-picker-panel' },
- [timePickerEle]
- )]
- ) : null, h(
- 'div',
- { 'class': prefixCls + '-body' },
- [h(_date_DateTable__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: {
- locale: locale,
- value: sValue,
- selectedValue: sSelectedValue,
- prefixCls: prefixCls,
- dateRender: props.dateRender,
- disabledDate: disabledDate,
- showWeekNumber: props.showWeekNumber
- },
- on: {
- 'select': this.onDateTableSelect
- }
- })]
- ), h(_calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_9__["default"], {
- attrs: {
- showOk: props.showOk,
- mode: sMode,
- renderFooter: props.renderFooter,
- locale: locale,
- prefixCls: prefixCls,
- showToday: props.showToday,
- disabledTime: disabledTime,
- showTimePicker: showTimePicker,
- showDateInput: props.showDateInput,
- timePicker: timePicker,
- selectedValue: sSelectedValue,
- timePickerDisabled: !sSelectedValue,
- value: sValue,
- disabledDate: disabledDate,
- okDisabled: props.showOk !== false && (!sSelectedValue || !this.isAllowedDate(sSelectedValue))
- },
- on: {
- 'ok': this.onOk,
- 'select': this.onSelect,
- 'today': this.onToday,
- 'openTimePicker': this.openTimePicker,
- 'closeTimePicker': this.closeTimePicker
- }
- })]
- )]
- ));
- return this.renderRoot({
- children: children,
- 'class': props.showWeekNumber ? prefixCls + '-week-number' : ''
- });
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Calendar);
- /***/ }),
- /***/ "./components/vc-calendar/src/FullCalendar.jsx":
- /*!*****************************************************!*\
- !*** ./components/vc-calendar/src/FullCalendar.jsx ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _date_DateTable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./date/DateTable */ "./components/vc-calendar/src/date/DateTable.jsx");
- /* harmony import */ var _month_MonthTable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./month/MonthTable */ "./components/vc-calendar/src/month/MonthTable.jsx");
- /* harmony import */ var _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./mixin/CalendarMixin */ "./components/vc-calendar/src/mixin/CalendarMixin.js");
- /* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
- /* harmony import */ var _full_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./full-calendar/CalendarHeader */ "./components/vc-calendar/src/full-calendar/CalendarHeader.jsx");
- /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
- var FullCalendar = {
- name: 'FullCalendar',
- props: {
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_10__["default"]),
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(true),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-calendar'),
- defaultType: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('date'),
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- fullscreen: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
- monthCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- dateCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- showTypeSwitch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(true),
- Select: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
- headerComponents: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
- headerComponent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object, // The whole header component
- headerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- showHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(true),
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {
- return null;
- }),
- renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {
- return null;
- })
- },
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_8__["default"], _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
- data: function data() {
- var type = void 0;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'type')) {
- type = this.type;
- } else {
- type = this.defaultType;
- }
- var props = this.$props;
- return {
- sType: type,
- sValue: props.value || props.defaultValue || moment__WEBPACK_IMPORTED_MODULE_1___default()(),
- sSelectedValue: props.selectedValue || props.defaultSelectedValue
- };
- },
- watch: {
- type: function type(val) {
- this.setState({
- sType: val
- });
- },
- value: function value(val) {
- var sValue = val || this.defaultValue || Object(_mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_7__["getNowByCurrentStateValue"])(this.sValue);
- this.setState({
- sValue: sValue
- });
- },
- selectedValue: function selectedValue(val) {
- this.setState({
- sSelectedValue: val
- });
- }
- },
- methods: {
- onMonthSelect: function onMonthSelect(value) {
- this.onSelect(value, {
- target: 'month'
- });
- },
- setType: function setType(type) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'type')) {
- this.setState({
- sType: type
- });
- }
- this.__emit('typeChange', type);
- }
- },
- render: function render() {
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
- var locale = props.locale,
- prefixCls = props.prefixCls,
- fullscreen = props.fullscreen,
- showHeader = props.showHeader,
- headerComponent = props.headerComponent,
- headerRender = props.headerRender,
- disabledDate = props.disabledDate;
- var value = this.sValue,
- type = this.sType;
- var header = null;
- if (showHeader) {
- if (headerRender) {
- header = headerRender(value, type, locale);
- } else {
- var TheHeader = headerComponent || _full_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_9__["default"];
- var headerProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
- prefixCls: prefixCls + '-full',
- type: type,
- value: value
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this), {
- typeChange: this.setType,
- valueChange: this.setValue
- }),
- key: 'calendar-header'
- };
- header = h(TheHeader, headerProps);
- }
- }
- var table = type === 'date' ? h(_date_DateTable__WEBPACK_IMPORTED_MODULE_5__["default"], {
- attrs: {
- dateRender: props.dateCellRender,
- contentRender: props.dateCellContentRender,
- locale: locale,
- prefixCls: prefixCls,
- value: value,
- disabledDate: disabledDate
- },
- on: {
- 'select': this.onSelect
- }
- }) : h(_month_MonthTable__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: {
- cellRender: props.monthCellRender,
- contentRender: props.monthCellContentRender,
- locale: locale,
- prefixCls: prefixCls + '-month-panel',
- value: value,
- disabledDate: disabledDate
- },
- on: {
- 'select': this.onMonthSelect
- }
- });
- var children = [header, h(
- 'div',
- { key: 'calendar-body', 'class': prefixCls + '-calendar-body' },
- [table]
- )];
- var className = [prefixCls + '-full'];
- if (fullscreen) {
- className.push(prefixCls + '-fullscreen');
- }
- return this.renderRoot({
- children: children,
- 'class': className.join(' ')
- });
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (FullCalendar);
- /***/ }),
- /***/ "./components/vc-calendar/src/MonthCalendar.jsx":
- /*!******************************************************!*\
- !*** ./components/vc-calendar/src/MonthCalendar.jsx ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./calendar/CalendarHeader */ "./components/vc-calendar/src/calendar/CalendarHeader.jsx");
- /* harmony import */ var _calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./calendar/CalendarFooter */ "./components/vc-calendar/src/calendar/CalendarFooter.jsx");
- /* harmony import */ var _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mixin/CalendarMixin */ "./components/vc-calendar/src/mixin/CalendarMixin.js");
- /* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
- /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
- var MonthCalendar = {
- name: 'MonthCalendar',
- props: {
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_8__["default"]),
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-calendar'),
- monthCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- monthCellContentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
- return null;
- }),
- renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
- return null;
- })
- },
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_7__["default"], _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
- data: function data() {
- var props = this.$props;
- return {
- mode: 'month',
- sValue: props.value || props.defaultValue || moment__WEBPACK_IMPORTED_MODULE_0___default()(),
- sSelectedValue: props.selectedValue || props.defaultSelectedValue
- };
- },
- methods: {
- onKeyDown: function onKeyDown(event) {
- var keyCode = event.keyCode;
- var ctrlKey = event.ctrlKey || event.metaKey;
- var stateValue = this.sValue;
- var disabledDate = this.disabledDate;
- var value = stateValue;
- switch (keyCode) {
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].DOWN:
- value = stateValue.clone();
- value.add(3, 'months');
- break;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].UP:
- value = stateValue.clone();
- value.add(-3, 'months');
- break;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].LEFT:
- value = stateValue.clone();
- if (ctrlKey) {
- value.add(-1, 'years');
- } else {
- value.add(-1, 'months');
- }
- break;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].RIGHT:
- value = stateValue.clone();
- if (ctrlKey) {
- value.add(1, 'years');
- } else {
- value.add(1, 'months');
- }
- break;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER:
- if (!disabledDate || !disabledDate(stateValue)) {
- this.onSelect(stateValue);
- }
- event.preventDefault();
- return 1;
- default:
- return undefined;
- }
- if (value !== stateValue) {
- this.setValue(value);
- event.preventDefault();
- return 1;
- }
- },
- handlePanelChange: function handlePanelChange(_, mode) {
- if (mode !== 'date') {
- this.setState({ mode: mode });
- }
- }
- },
- render: function render() {
- var h = arguments[0];
- var mode = this.mode,
- value = this.sValue,
- props = this.$props,
- $scopedSlots = this.$scopedSlots;
- var prefixCls = props.prefixCls,
- locale = props.locale,
- disabledDate = props.disabledDate;
- var monthCellRender = this.monthCellRender || $scopedSlots.monthCellRender;
- var monthCellContentRender = this.monthCellContentRender || $scopedSlots.monthCellContentRender;
- var renderFooter = this.renderFooter || $scopedSlots.renderFooter;
- var children = h(
- 'div',
- { 'class': prefixCls + '-month-calendar-content' },
- [h(
- 'div',
- { 'class': prefixCls + '-month-header-wrap' },
- [h(_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: {
- prefixCls: prefixCls,
- mode: mode,
- value: value,
- locale: locale,
- disabledMonth: disabledDate,
- monthCellRender: monthCellRender,
- monthCellContentRender: monthCellContentRender
- },
- on: {
- 'monthSelect': this.onSelect,
- 'valueChange': this.setValue,
- 'panelChange': this.handlePanelChange
- }
- })]
- ), h(_calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_5__["default"], {
- attrs: { prefixCls: prefixCls, renderFooter: renderFooter }
- })]
- );
- return this.renderRoot({
- 'class': props.prefixCls + '-month-calendar',
- children: children
- });
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (MonthCalendar);
- /***/ }),
- /***/ "./components/vc-calendar/src/Picker.jsx":
- /*!***********************************************!*\
- !*** ./components/vc-calendar/src/Picker.jsx ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/createChainedFunction */ "./components/_util/createChainedFunction.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _picker_placements__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./picker/placements */ "./components/vc-calendar/src/picker/placements.js");
- /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_8__);
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js");
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_9__);
- var TimeType = {
- validator: function validator(value) {
- if (Array.isArray(value)) {
- return value.length === 0 || value.findIndex(function (val) {
- return !lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default()(val) && !moment__WEBPACK_IMPORTED_MODULE_8___default.a.isMoment(val);
- }) === -1;
- } else {
- return lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default()(value) || moment__WEBPACK_IMPORTED_MODULE_8___default.a.isMoment(value);
- }
- }
- };
- var Picker = {
- name: 'Picker',
- props: {
- animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string]),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func]),
- // onChange: PropTypes.func,
- // onOpenChange: PropTypes.func,
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- getCalendarContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- calendar: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('rc-calendar-picker'),
- placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def('bottomLeft'),
- value: TimeType,
- defaultValue: TimeType,
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
- return {};
- }),
- dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
- },
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
- data: function data() {
- var props = this.$props;
- var open = void 0;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'open')) {
- open = props.open;
- } else {
- open = props.defaultOpen;
- }
- var value = props.value || props.defaultValue;
- return {
- sOpen: open,
- sValue: value
- };
- },
- watch: {
- value: function value(val) {
- this.setState({
- sValue: val
- });
- },
- open: function open(val) {
- this.setState({
- sOpen: val
- });
- }
- },
- mounted: function mounted() {
- this.preSOpen = this.sOpen;
- },
- updated: function updated() {
- if (!this.preSOpen && this.sOpen) {
- // setTimeout is for making sure saveCalendarRef happen before focusCalendar
- this.focusTimeout = setTimeout(this.focusCalendar, 0);
- }
- this.preSOpen = this.sOpen;
- },
- beforeDestroy: function beforeDestroy() {
- clearTimeout(this.focusTimeout);
- },
- methods: {
- onCalendarKeyDown: function onCalendarKeyDown(event) {
- if (event.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ESC) {
- event.stopPropagation();
- this.closeCalendar(this.focus);
- }
- },
- onCalendarSelect: function onCalendarSelect(value) {
- var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var props = this.$props;
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'value')) {
- this.setState({
- sValue: value
- });
- }
- var calendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(props.calendar);
- if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !calendarProps.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
- this.closeCalendar(this.focus);
- }
- this.__emit('change', value);
- },
- onKeyDown: function onKeyDown(event) {
- if (!this.sOpen && (event.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].DOWN || event.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ENTER)) {
- this.openCalendar();
- event.preventDefault();
- }
- },
- onCalendarOk: function onCalendarOk() {
- this.closeCalendar(this.focus);
- },
- onCalendarClear: function onCalendarClear() {
- this.closeCalendar(this.focus);
- },
- onCalendarBlur: function onCalendarBlur() {
- this.setOpen(false);
- },
- onVisibleChange: function onVisibleChange(open) {
- this.setOpen(open);
- },
- getCalendarElement: function getCalendarElement() {
- var props = this.$props;
- var calendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(props.calendar);
- var calendarEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getEvents"])(props.calendar);
- var value = this.sValue;
- var defaultValue = value;
- var extraProps = {
- ref: 'calendarInstance',
- props: {
- defaultValue: defaultValue || calendarProps.defaultValue,
- selectedValue: value
- },
- on: {
- keydown: this.onCalendarKeyDown,
- ok: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.ok, this.onCalendarOk),
- select: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.select, this.onCalendarSelect),
- clear: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.clear, this.onCalendarClear),
- blur: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.blur, this.onCalendarBlur)
- }
- };
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(props.calendar, extraProps);
- },
- setOpen: function setOpen(open, callback) {
- if (this.sOpen !== open) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'open')) {
- this.setState({
- sOpen: open
- }, callback);
- }
- this.__emit('openChange', open);
- }
- },
- openCalendar: function openCalendar(callback) {
- this.setOpen(true, callback);
- },
- closeCalendar: function closeCalendar(callback) {
- this.setOpen(false, callback);
- },
- focus: function focus() {
- if (!this.sOpen) {
- this.$el.focus();
- }
- },
- focusCalendar: function focusCalendar() {
- if (this.sOpen && this.calendarInstance && this.calendarInstance.componentInstance) {
- this.calendarInstance.componentInstance.focus();
- }
- }
- },
- render: function render() {
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
- var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getStyle"])(this);
- var prefixCls = props.prefixCls,
- placement = props.placement,
- getCalendarContainer = props.getCalendarContainer,
- align = props.align,
- animation = props.animation,
- disabled = props.disabled,
- dropdownClassName = props.dropdownClassName,
- transitionName = props.transitionName;
- var sValue = this.sValue,
- sOpen = this.sOpen;
- var children = this.$scopedSlots['default'];
- var childrenState = {
- value: sValue,
- open: sOpen
- };
- if (this.sOpen || !this.calendarInstance) {
- this.calendarInstance = this.getCalendarElement();
- }
- return h(
- _vc_trigger__WEBPACK_IMPORTED_MODULE_7__["default"],
- {
- attrs: {
- popupAlign: align,
- builtinPlacements: _picker_placements__WEBPACK_IMPORTED_MODULE_6__["default"],
- popupPlacement: placement,
- action: disabled && !sOpen ? [] : ['click'],
- destroyPopupOnHide: true,
- getPopupContainer: getCalendarContainer,
- popupStyle: style,
- popupAnimation: animation,
- popupTransitionName: transitionName,
- popupVisible: sOpen,
- prefixCls: prefixCls,
- popupClassName: dropdownClassName
- },
- on: {
- 'popupVisibleChange': this.onVisibleChange
- }
- },
- [h(
- 'template',
- { slot: 'popup' },
- [this.calendarInstance]
- ), Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(children(childrenState, props), { on: { keydown: this.onKeyDown } })]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Picker);
- /***/ }),
- /***/ "./components/vc-calendar/src/RangeCalendar.jsx":
- /*!******************************************************!*\
- !*** ./components/vc-calendar/src/RangeCalendar.jsx ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_7__);
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _range_calendar_CalendarPart__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./range-calendar/CalendarPart */ "./components/vc-calendar/src/range-calendar/CalendarPart.jsx");
- /* harmony import */ var _calendar_TodayButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./calendar/TodayButton */ "./components/vc-calendar/src/calendar/TodayButton.jsx");
- /* harmony import */ var _calendar_OkButton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./calendar/OkButton */ "./components/vc-calendar/src/calendar/OkButton.jsx");
- /* harmony import */ var _calendar_TimePickerButton__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./calendar/TimePickerButton */ "./components/vc-calendar/src/calendar/TimePickerButton.jsx");
- /* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
- /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
- /* harmony import */ var _util___WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util/ */ "./components/vc-calendar/src/util/index.js");
- /* harmony import */ var _util_toTime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./util/toTime */ "./components/vc-calendar/src/util/toTime.js");
- function noop() {}
- function isEmptyArray(arr) {
- return Array.isArray(arr) && (arr.length === 0 || arr.every(function (i) {
- return !i;
- }));
- }
- function isArraysEqual(a, b) {
- if (a === b) return true;
- if (a === null || typeof a === 'undefined' || b === null || typeof b === 'undefined') {
- return false;
- }
- if (a.length !== b.length) return false;
- for (var i = 0; i < a.length; ++i) {
- if (a[i] !== b[i]) return false;
- }
- return true;
- }
- function getValueFromSelectedValue(selectedValue) {
- var _selectedValue = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(selectedValue, 2),
- start = _selectedValue[0],
- end = _selectedValue[1];
- if (end && (start === undefined || start === null)) {
- start = end.clone().subtract(1, 'month');
- }
- if (start && (end === undefined || end === null)) {
- end = start.clone().add(1, 'month');
- }
- return [start, end];
- }
- function normalizeAnchor(props, init) {
- var selectedValue = props.selectedValue || init && props.defaultSelectedValue;
- var value = props.value || init && props.defaultValue;
- var normalizedValue = value ? getValueFromSelectedValue(value) : getValueFromSelectedValue(selectedValue);
- return !isEmptyArray(normalizedValue) ? normalizedValue : init && [moment__WEBPACK_IMPORTED_MODULE_7___default()(), moment__WEBPACK_IMPORTED_MODULE_7___default()().add(1, 'months')];
- }
- function generateOptions(length, extraOptionGen) {
- var arr = extraOptionGen ? extraOptionGen().concat() : [];
- for (var value = 0; value < length; value++) {
- if (arr.indexOf(value) === -1) {
- arr.push(value);
- }
- }
- return arr;
- }
- function onInputSelect(direction, value, cause) {
- if (!value) {
- return;
- }
- var originalValue = this.sSelectedValue;
- var selectedValue = originalValue.concat();
- var index = direction === 'left' ? 0 : 1;
- selectedValue[index] = value;
- if (selectedValue[0] && this.compare(selectedValue[0], selectedValue[1]) > 0) {
- selectedValue[1 - index] = this.sShowTimePicker ? selectedValue[index] : undefined;
- }
- this.__emit('inputSelect', selectedValue);
- this.fireSelectValueChange(selectedValue, null, cause || { source: 'dateInput' });
- }
- var RangeCalendar = {
- props: {
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_14__["default"]),
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('rc-calendar'),
- dateInputPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- seperator: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('~'),
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- hoverValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['time', 'date', 'month', 'year', 'decade'])),
- showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
- timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- showOk: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
- defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array.def([]),
- selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
- showClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- // locale: PropTypes.object,
- // onChange: PropTypes.func,
- // onSelect: PropTypes.func,
- // onValueChange: PropTypes.func,
- // onHoverChange: PropTypes.func,
- // onPanelChange: PropTypes.func,
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string), _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func]),
- // onClear: PropTypes.func,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def('both'),
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
- renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function () {
- return null;
- }),
- renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function () {
- return null;
- }),
- dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
- },
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_13__["default"]],
- data: function data() {
- var props = this.$props;
- var selectedValue = props.selectedValue || props.defaultSelectedValue;
- var value = normalizeAnchor(props, 1);
- return {
- sSelectedValue: selectedValue,
- prevSelectedValue: selectedValue,
- firstSelectedValue: null,
- sHoverValue: props.hoverValue || [],
- sValue: value,
- sShowTimePicker: false,
- sMode: props.mode || ['date', 'date'],
- sPanelTriggerSource: '' // Trigger by which picker panel: 'start' & 'end'
- };
- },
- watch: {
- value: function value() {
- var newState = {};
- newState.sValue = normalizeAnchor(this.$props, 0);
- this.setState(newState);
- },
- hoverValue: function hoverValue(val) {
- if (!isArraysEqual(this.sHoverValue, val)) {
- this.setState({ sHoverValue: val });
- }
- },
- selectedValue: function selectedValue(val) {
- var newState = {};
- newState.sSelectedValue = val;
- newState.prevSelectedValue = val;
- this.setState(newState);
- },
- mode: function mode(val) {
- if (!isArraysEqual(this.sMode, val)) {
- this.setState({ sMode: val });
- }
- }
- },
- methods: {
- onDatePanelEnter: function onDatePanelEnter() {
- if (this.hasSelectedValue()) {
- this.fireHoverValueChange(this.sSelectedValue.concat());
- }
- },
- onDatePanelLeave: function onDatePanelLeave() {
- if (this.hasSelectedValue()) {
- this.fireHoverValueChange([]);
- }
- },
- onSelect: function onSelect(value) {
- var type = this.type,
- sSelectedValue = this.sSelectedValue,
- prevSelectedValue = this.prevSelectedValue,
- firstSelectedValue = this.firstSelectedValue;
- var nextSelectedValue = void 0;
- if (type === 'both') {
- if (!firstSelectedValue) {
- Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
- nextSelectedValue = [value];
- } else if (this.compare(firstSelectedValue, value) < 0) {
- Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[1], value);
- nextSelectedValue = [firstSelectedValue, value];
- } else {
- Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
- Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[1], firstSelectedValue);
- nextSelectedValue = [value, firstSelectedValue];
- }
- } else if (type === 'start') {
- Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
- var endValue = sSelectedValue[1];
- nextSelectedValue = endValue && this.compare(endValue, value) > 0 ? [value, endValue] : [value];
- } else {
- // type === 'end'
- var startValue = sSelectedValue[0];
- if (startValue && this.compare(startValue, value) <= 0) {
- Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[1], value);
- nextSelectedValue = [startValue, value];
- } else {
- Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
- nextSelectedValue = [value];
- }
- }
- this.fireSelectValueChange(nextSelectedValue);
- },
- onKeyDown: function onKeyDown(event) {
- var _this = this;
- if (event.target.nodeName.toLowerCase() === 'input') {
- return;
- }
- var keyCode = event.keyCode;
- var ctrlKey = event.ctrlKey || event.metaKey;
- var _$data = this.$data,
- selectedValue = _$data.sSelectedValue,
- hoverValue = _$data.sHoverValue,
- firstSelectedValue = _$data.firstSelectedValue,
- value = _$data.sValue;
- var disabledDate = this.$props.disabledDate;
- // Update last time of the picker
- var updateHoverPoint = function updateHoverPoint(func) {
- // Change hover to make focus in UI
- var currentHoverTime = void 0;
- var nextHoverTime = void 0;
- var nextHoverValue = void 0;
- if (!firstSelectedValue) {
- currentHoverTime = hoverValue[0] || selectedValue[0] || value[0] || moment__WEBPACK_IMPORTED_MODULE_7___default()();
- nextHoverTime = func(currentHoverTime);
- nextHoverValue = [nextHoverTime];
- _this.fireHoverValueChange(nextHoverValue);
- } else {
- if (hoverValue.length === 1) {
- currentHoverTime = hoverValue[0].clone();
- nextHoverTime = func(currentHoverTime);
- nextHoverValue = _this.onDayHover(nextHoverTime);
- } else {
- currentHoverTime = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0];
- nextHoverTime = func(currentHoverTime);
- nextHoverValue = _this.onDayHover(nextHoverTime);
- }
- }
- // Find origin hover time on value index
- if (nextHoverValue.length >= 2) {
- var miss = nextHoverValue.some(function (ht) {
- return !Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["includesTime"])(value, ht, 'month');
- });
- if (miss) {
- var newValue = nextHoverValue.slice().sort(function (t1, t2) {
- return t1.valueOf() - t2.valueOf();
- });
- if (newValue[0].isSame(newValue[1], 'month')) {
- newValue[1] = newValue[0].clone().add(1, 'month');
- }
- _this.fireValueChange(newValue);
- }
- } else if (nextHoverValue.length === 1) {
- // If only one value, let's keep the origin panel
- var oriValueIndex = value.findIndex(function (time) {
- return time.isSame(currentHoverTime, 'month');
- });
- if (oriValueIndex === -1) oriValueIndex = 0;
- if (value.every(function (time) {
- return !time.isSame(nextHoverTime, 'month');
- })) {
- var _newValue = value.slice();
- _newValue[oriValueIndex] = nextHoverTime.clone();
- _this.fireValueChange(_newValue);
- }
- }
- event.preventDefault();
- return nextHoverTime;
- };
- switch (keyCode) {
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].DOWN:
- updateHoverPoint(function (time) {
- return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'weeks');
- });
- return;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].UP:
- updateHoverPoint(function (time) {
- return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'weeks');
- });
- return;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].LEFT:
- if (ctrlKey) {
- updateHoverPoint(function (time) {
- return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'years');
- });
- } else {
- updateHoverPoint(function (time) {
- return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'days');
- });
- }
- return;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].RIGHT:
- if (ctrlKey) {
- updateHoverPoint(function (time) {
- return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'years');
- });
- } else {
- updateHoverPoint(function (time) {
- return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'days');
- });
- }
- return;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].HOME:
- updateHoverPoint(function (time) {
- return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goStartMonth"])(time);
- });
- return;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].END:
- updateHoverPoint(function (time) {
- return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goEndMonth"])(time);
- });
- return;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].PAGE_DOWN:
- updateHoverPoint(function (time) {
- return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'month');
- });
- return;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].PAGE_UP:
- updateHoverPoint(function (time) {
- return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'month');
- });
- return;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].ENTER:
- {
- var lastValue = void 0;
- if (hoverValue.length === 0) {
- lastValue = updateHoverPoint(function (time) {
- return time;
- });
- } else if (hoverValue.length === 1) {
- lastValue = hoverValue[0];
- } else {
- lastValue = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0];
- }
- if (lastValue && (!disabledDate || !disabledDate(lastValue))) {
- this.onSelect(lastValue);
- }
- event.preventDefault();
- return;
- }
- default:
- this.__emit('keydown', event);
- }
- },
- onDayHover: function onDayHover(value) {
- var hoverValue = [];
- var sSelectedValue = this.sSelectedValue,
- firstSelectedValue = this.firstSelectedValue,
- type = this.type;
- if (type === 'start' && sSelectedValue[1]) {
- hoverValue = this.compare(value, sSelectedValue[1]) < 0 ? [value, sSelectedValue[1]] : [value];
- } else if (type === 'end' && sSelectedValue[0]) {
- hoverValue = this.compare(value, sSelectedValue[0]) > 0 ? [sSelectedValue[0], value] : [];
- } else {
- if (!firstSelectedValue) {
- if (this.sHoverValue.length) {
- this.setState({ sHoverValue: [] });
- }
- return hoverValue;
- }
- hoverValue = this.compare(value, firstSelectedValue) < 0 ? [value, firstSelectedValue] : [firstSelectedValue, value];
- }
- this.fireHoverValueChange(hoverValue);
- return hoverValue;
- },
- onToday: function onToday() {
- var startValue = Object(_util___WEBPACK_IMPORTED_MODULE_15__["getTodayTime"])(this.sValue[0]);
- var endValue = startValue.clone().add(1, 'months');
- this.setState({ sValue: [startValue, endValue] });
- },
- onOpenTimePicker: function onOpenTimePicker() {
- this.setState({
- sShowTimePicker: true
- });
- },
- onCloseTimePicker: function onCloseTimePicker() {
- this.setState({
- sShowTimePicker: false
- });
- },
- onOk: function onOk() {
- var sSelectedValue = this.sSelectedValue;
- if (this.isAllowedDateAndTime(sSelectedValue)) {
- this.__emit('ok', sSelectedValue);
- }
- },
- onStartInputChange: function onStartInputChange() {
- for (var _len = arguments.length, oargs = Array(_len), _key = 0; _key < _len; _key++) {
- oargs[_key] = arguments[_key];
- }
- var args = ['left'].concat(oargs);
- return onInputSelect.apply(this, args);
- },
- onEndInputChange: function onEndInputChange() {
- for (var _len2 = arguments.length, oargs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- oargs[_key2] = arguments[_key2];
- }
- var args = ['right'].concat(oargs);
- return onInputSelect.apply(this, args);
- },
- onStartInputSelect: function onStartInputSelect(value) {
- var args = ['left', value, { source: 'dateInputSelect' }];
- return onInputSelect.apply(this, args);
- },
- onEndInputSelect: function onEndInputSelect(value) {
- var args = ['right', value, { source: 'dateInputSelect' }];
- return onInputSelect.apply(this, args);
- },
- onStartValueChange: function onStartValueChange(leftValue) {
- var value = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.sValue));
- value[0] = leftValue;
- return this.fireValueChange(value);
- },
- onEndValueChange: function onEndValueChange(rightValue) {
- var value = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.sValue));
- value[1] = rightValue;
- return this.fireValueChange(value);
- },
- onStartPanelChange: function onStartPanelChange(value, mode) {
- var sMode = this.sMode,
- sValue = this.sValue;
- var newMode = [mode, sMode[1]];
- var newValue = [value || sValue[0], sValue[1]];
- this.__emit('panelChange', newValue, newMode);
- var newState = {
- sPanelTriggerSource: 'start'
- };
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'mode')) {
- newState.sMode = newMode;
- }
- this.setState(newState);
- },
- onEndPanelChange: function onEndPanelChange(value, mode) {
- var sMode = this.sMode,
- sValue = this.sValue;
- var newMode = [sMode[0], mode];
- var newValue = [sValue[0], value || sValue[1]];
- this.__emit('panelChange', newValue, newMode);
- var newState = {
- sPanelTriggerSource: 'end'
- };
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'mode')) {
- newState.sMode = newMode;
- }
- this.setState(newState);
- },
- getStartValue: function getStartValue() {
- var _$data2 = this.$data,
- selectedValue = _$data2.sSelectedValue,
- showTimePicker = _$data2.sShowTimePicker,
- value = _$data2.sValue,
- mode = _$data2.sMode,
- panelTriggerSource = _$data2.sPanelTriggerSource;
- var startValue = value[0];
- // keep selectedTime when select date
- if (selectedValue[0] && this.$props.timePicker) {
- startValue = startValue.clone();
- Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(selectedValue[0], startValue);
- }
- if (showTimePicker && selectedValue[0]) {
- startValue = selectedValue[0];
- }
- // Adjust month if date not align
- if (panelTriggerSource === 'end' && mode[0] === 'date' && mode[1] === 'date' && startValue.isSame(value[1], 'month')) {
- startValue = startValue.clone().subtract(1, 'month');
- }
- return startValue;
- },
- getEndValue: function getEndValue() {
- var _$data3 = this.$data,
- selectedValue = _$data3.sSelectedValue,
- showTimePicker = _$data3.sShowTimePicker,
- value = _$data3.sValue,
- mode = _$data3.sMode,
- panelTriggerSource = _$data3.sPanelTriggerSource;
- var endValue = value[1] ? value[1].clone() : value[0].clone().add(1, 'month');
- // keep selectedTime when select date
- if (selectedValue[1] && this.$props.timePicker) {
- Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(selectedValue[1], endValue);
- }
- if (showTimePicker) {
- endValue = selectedValue[1] ? selectedValue[1] : this.getStartValue();
- }
- // Adjust month if date not align
- if (!showTimePicker && panelTriggerSource !== 'end' && mode[0] === 'date' && mode[1] === 'date' && endValue.isSame(value[0], 'month')) {
- endValue = endValue.clone().add(1, 'month');
- }
- return endValue;
- },
- // get disabled hours for second picker
- getEndDisableTime: function getEndDisableTime() {
- var sSelectedValue = this.sSelectedValue,
- sValue = this.sValue,
- disabledTime = this.disabledTime;
- var userSettingDisabledTime = disabledTime(sSelectedValue, 'end') || {};
- var startValue = sSelectedValue && sSelectedValue[0] || sValue[0].clone();
- // if startTime and endTime is same day..
- // the second time picker will not able to pick time before first time picker
- if (!sSelectedValue[1] || startValue.isSame(sSelectedValue[1], 'day')) {
- var hours = startValue.hour();
- var minutes = startValue.minute();
- var second = startValue.second();
- var _disabledHours = userSettingDisabledTime.disabledHours,
- _disabledMinutes = userSettingDisabledTime.disabledMinutes,
- _disabledSeconds = userSettingDisabledTime.disabledSeconds;
- var oldDisabledMinutes = _disabledMinutes ? _disabledMinutes() : [];
- var olddisabledSeconds = _disabledSeconds ? _disabledSeconds() : [];
- _disabledHours = generateOptions(hours, _disabledHours);
- _disabledMinutes = generateOptions(minutes, _disabledMinutes);
- _disabledSeconds = generateOptions(second, _disabledSeconds);
- return {
- disabledHours: function disabledHours() {
- return _disabledHours;
- },
- disabledMinutes: function disabledMinutes(hour) {
- if (hour === hours) {
- return _disabledMinutes;
- }
- return oldDisabledMinutes;
- },
- disabledSeconds: function disabledSeconds(hour, minute) {
- if (hour === hours && minute === minutes) {
- return _disabledSeconds;
- }
- return olddisabledSeconds;
- }
- };
- }
- return userSettingDisabledTime;
- },
- isAllowedDateAndTime: function isAllowedDateAndTime(selectedValue) {
- return Object(_util___WEBPACK_IMPORTED_MODULE_15__["isAllowedDate"])(selectedValue[0], this.disabledDate, this.disabledStartTime) && Object(_util___WEBPACK_IMPORTED_MODULE_15__["isAllowedDate"])(selectedValue[1], this.disabledDate, this.disabledEndTime);
- },
- isMonthYearPanelShow: function isMonthYearPanelShow(mode) {
- return ['month', 'year', 'decade'].indexOf(mode) > -1;
- },
- hasSelectedValue: function hasSelectedValue() {
- var sSelectedValue = this.sSelectedValue;
- return !!sSelectedValue[1] && !!sSelectedValue[0];
- },
- compare: function compare(v1, v2) {
- if (this.timePicker) {
- return v1.diff(v2);
- }
- return v1.diff(v2, 'days');
- },
- fireSelectValueChange: function fireSelectValueChange(selectedValue, direct, cause) {
- var timePicker = this.timePicker,
- prevSelectedValue = this.prevSelectedValue;
- if (timePicker) {
- var timePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(timePicker);
- if (timePickerProps.defaultValue) {
- var timePickerDefaultValue = timePickerProps.defaultValue;
- if (!prevSelectedValue[0] && selectedValue[0]) {
- Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(timePickerDefaultValue[0], selectedValue[0]);
- }
- if (!prevSelectedValue[1] && selectedValue[1]) {
- Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(timePickerDefaultValue[1], selectedValue[1]);
- }
- }
- }
- // 尚未选择过时间,直接输入的话
- if (!this.sSelectedValue[0] || !this.sSelectedValue[1]) {
- var startValue = selectedValue[0] || moment__WEBPACK_IMPORTED_MODULE_7___default()();
- var endValue = selectedValue[1] || startValue.clone().add(1, 'months');
- this.setState({
- sSelectedValue: selectedValue,
- sValue: selectedValue && selectedValue.length === 2 ? getValueFromSelectedValue([startValue, endValue]) : this.sValue
- });
- }
- if (selectedValue[0] && !selectedValue[1]) {
- this.setState({ firstSelectedValue: selectedValue[0] });
- this.fireHoverValueChange(selectedValue.concat());
- }
- this.__emit('change', selectedValue);
- if (direct || selectedValue[0] && selectedValue[1]) {
- this.setState({
- prevSelectedValue: selectedValue,
- firstSelectedValue: null
- });
- this.fireHoverValueChange([]);
- this.__emit('select', selectedValue, cause);
- }
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'selectedValue')) {
- this.setState({
- sSelectedValue: selectedValue
- });
- }
- },
- fireValueChange: function fireValueChange(value) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value')) {
- this.setState({
- sValue: value
- });
- }
- this.__emit('valueChange', value);
- },
- fireHoverValueChange: function fireHoverValueChange(hoverValue) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'hoverValue')) {
- this.setState({ sHoverValue: hoverValue });
- }
- this.__emit('hoverChange', hoverValue);
- },
- clear: function clear() {
- this.fireSelectValueChange([], true);
- this.__emit('clear');
- },
- disabledStartTime: function disabledStartTime(time) {
- return this.disabledTime(time, 'start');
- },
- disabledEndTime: function disabledEndTime(time) {
- return this.disabledTime(time, 'end');
- },
- disabledStartMonth: function disabledStartMonth(month) {
- var sValue = this.sValue;
- return month.isAfter(sValue[1], 'month');
- },
- disabledEndMonth: function disabledEndMonth(month) {
- var sValue = this.sValue;
- return month.isBefore(sValue[0], 'month');
- }
- },
- render: function render() {
- var _className, _cls;
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
- var prefixCls = props.prefixCls,
- dateInputPlaceholder = props.dateInputPlaceholder,
- timePicker = props.timePicker,
- showOk = props.showOk,
- locale = props.locale,
- showClear = props.showClear,
- showToday = props.showToday,
- type = props.type,
- seperator = props.seperator;
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'clearIcon');
- var sHoverValue = this.sHoverValue,
- sSelectedValue = this.sSelectedValue,
- mode = this.sMode,
- sShowTimePicker = this.sShowTimePicker,
- sValue = this.sValue;
- var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-hidden', !props.visible), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-range', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-show-time-picker', sShowTimePicker), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-week-number', props.showWeekNumber), _className);
- var baseProps = {
- props: props,
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
- };
- var newProps = {
- props: {
- selectedValue: sSelectedValue
- },
- on: {
- select: this.onSelect,
- dayHover: type === 'start' && sSelectedValue[1] || type === 'end' && sSelectedValue[0] || !!sHoverValue.length ? this.onDayHover : noop
- }
- };
- var placeholder1 = void 0;
- var placeholder2 = void 0;
- if (dateInputPlaceholder) {
- if (Array.isArray(dateInputPlaceholder)) {
- var _dateInputPlaceholder = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(dateInputPlaceholder, 2);
- placeholder1 = _dateInputPlaceholder[0];
- placeholder2 = _dateInputPlaceholder[1];
- } else {
- placeholder1 = placeholder2 = dateInputPlaceholder;
- }
- }
- var showOkButton = showOk === true || showOk !== false && !!timePicker;
- var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-footer', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-range-bottom', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-footer-show-ok', showOkButton), _cls);
- var startValue = this.getStartValue();
- var endValue = this.getEndValue();
- var todayTime = Object(_util___WEBPACK_IMPORTED_MODULE_15__["getTodayTime"])(startValue);
- var thisMonth = todayTime.month();
- var thisYear = todayTime.year();
- var isTodayInView = startValue.year() === thisYear && startValue.month() === thisMonth || endValue.year() === thisYear && endValue.month() === thisMonth;
- var nextMonthOfStart = startValue.clone().add(1, 'months');
- var isClosestMonths = nextMonthOfStart.year() === endValue.year() && nextMonthOfStart.month() === endValue.month();
- var leftPartProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, newProps, {
- props: {
- hoverValue: sHoverValue,
- direction: 'left',
- disabledTime: this.disabledStartTime,
- disabledMonth: this.disabledStartMonth,
- format: this.getFormat(),
- value: startValue,
- mode: mode[0],
- placeholder: placeholder1,
- showDateInput: this.showDateInput,
- timePicker: timePicker,
- showTimePicker: sShowTimePicker || mode[0] === 'time',
- enablePrev: true,
- enableNext: !isClosestMonths || this.isMonthYearPanelShow(mode[1]),
- clearIcon: clearIcon
- },
- on: {
- inputChange: this.onStartInputChange,
- inputSelect: this.onStartInputSelect,
- valueChange: this.onStartValueChange,
- panelChange: this.onStartPanelChange
- }
- });
- var rightPartProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, newProps, {
- props: {
- hoverValue: sHoverValue,
- direction: 'right',
- format: this.getFormat(),
- timePickerDisabledTime: this.getEndDisableTime(),
- placeholder: placeholder2,
- value: endValue,
- mode: mode[1],
- showDateInput: this.showDateInput,
- timePicker: timePicker,
- showTimePicker: sShowTimePicker || mode[1] === 'time',
- disabledTime: this.disabledEndTime,
- disabledMonth: this.disabledEndMonth,
- enablePrev: !isClosestMonths || this.isMonthYearPanelShow(mode[0]),
- enableNext: true,
- clearIcon: clearIcon
- },
- on: {
- inputChange: this.onEndInputChange,
- inputSelect: this.onEndInputSelect,
- valueChange: this.onEndValueChange,
- panelChange: this.onEndPanelChange
- }
- });
- var TodayButtonNode = null;
- if (showToday) {
- var todayButtonProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, {
- props: {
- disabled: isTodayInView,
- value: sValue[0],
- text: locale.backToToday
- },
- on: {
- today: this.onToday
- }
- });
- TodayButtonNode = h(_calendar_TodayButton__WEBPACK_IMPORTED_MODULE_10__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'todayButton' }, todayButtonProps]));
- }
- var TimePickerButtonNode = null;
- if (props.timePicker) {
- var timePickerButtonProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, {
- props: {
- showTimePicker: sShowTimePicker || mode[0] === 'time' && mode[1] === 'time',
- timePickerDisabled: !this.hasSelectedValue() || sHoverValue.length
- },
- on: {
- openTimePicker: this.onOpenTimePicker,
- closeTimePicker: this.onCloseTimePicker
- }
- });
- TimePickerButtonNode = h(_calendar_TimePickerButton__WEBPACK_IMPORTED_MODULE_12__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'timePickerButton' }, timePickerButtonProps]));
- }
- var OkButtonNode = null;
- if (showOkButton) {
- var okButtonProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, {
- props: {
- okDisabled: !this.isAllowedDateAndTime(sSelectedValue) || !this.hasSelectedValue() || sHoverValue.length
- },
- on: {
- ok: this.onOk
- }
- });
- OkButtonNode = h(_calendar_OkButton__WEBPACK_IMPORTED_MODULE_11__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'okButtonNode' }, okButtonProps]));
- }
- var extraFooter = this.renderFooter(mode);
- return h(
- 'div',
- { ref: 'rootInstance', 'class': className, attrs: { tabIndex: '0' },
- on: {
- 'keydown': this.onKeyDown
- }
- },
- [props.renderSidebar(), h(
- 'div',
- { 'class': prefixCls + '-panel' },
- [showClear && sSelectedValue[0] && sSelectedValue[1] ? h(
- 'a',
- {
- attrs: { role: 'button', title: locale.clear },
- on: {
- 'click': this.clear
- }
- },
- [clearIcon || h('span', { 'class': prefixCls + '-clear-btn' })]
- ) : null, h(
- 'div',
- {
- 'class': prefixCls + '-date-panel',
- on: {
- 'mouseleave': type !== 'both' ? this.onDatePanelLeave : noop,
- 'mouseenter': type !== 'both' ? this.onDatePanelEnter : noop
- }
- },
- [h(_range_calendar_CalendarPart__WEBPACK_IMPORTED_MODULE_9__["default"], leftPartProps), h(
- 'span',
- { 'class': prefixCls + '-range-middle' },
- [seperator]
- ), h(_range_calendar_CalendarPart__WEBPACK_IMPORTED_MODULE_9__["default"], rightPartProps)]
- ), h(
- 'div',
- { 'class': cls },
- [showToday || props.timePicker || showOkButton || extraFooter ? h(
- 'div',
- { 'class': prefixCls + '-footer-btn' },
- [extraFooter, TodayButtonNode, TimePickerButtonNode, OkButtonNode]
- ) : null]
- )]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (RangeCalendar);
- /***/ }),
- /***/ "./components/vc-calendar/src/calendar/CalendarFooter.jsx":
- /*!****************************************************************!*\
- !*** ./components/vc-calendar/src/calendar/CalendarFooter.jsx ***!
- \****************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _TodayButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TodayButton */ "./components/vc-calendar/src/calendar/TodayButton.jsx");
- /* harmony import */ var _OkButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./OkButton */ "./components/vc-calendar/src/calendar/OkButton.jsx");
- /* harmony import */ var _TimePickerButton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TimePickerButton */ "./components/vc-calendar/src/calendar/TimePickerButton.jsx");
- var CalendarFooter = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- showOk: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- // onSelect: PropTypes.func,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- showTimePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- okDisabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
- },
- methods: {
- onSelect: function onSelect(value) {
- this.__emit('select', value);
- },
- getRootDOMNode: function getRootDOMNode() {
- return this.$el;
- }
- },
- render: function render() {
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var value = props.value,
- prefixCls = props.prefixCls,
- showOk = props.showOk,
- timePicker = props.timePicker,
- renderFooter = props.renderFooter,
- showToday = props.showToday,
- mode = props.mode;
- var footerEl = null;
- var extraFooter = renderFooter && renderFooter(mode);
- if (showToday || timePicker || extraFooter) {
- var _cls;
- var btnProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
- value: value
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
- };
- var nowEl = null;
- if (showToday) {
- nowEl = h(_TodayButton__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ key: 'todayButton' }, btnProps]));
- }
- delete btnProps.props.value;
- var okBtn = null;
- if (showOk === true || showOk !== false && !!timePicker) {
- okBtn = h(_OkButton__WEBPACK_IMPORTED_MODULE_7__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ key: 'okButton' }, btnProps]));
- }
- var timePickerBtn = null;
- if (timePicker) {
- timePickerBtn = h(_TimePickerButton__WEBPACK_IMPORTED_MODULE_8__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ key: 'timePickerButton' }, btnProps]));
- }
- var footerBtn = void 0;
- if (nowEl || timePickerBtn || okBtn || extraFooter) {
- footerBtn = h(
- 'span',
- { 'class': prefixCls + '-footer-btn' },
- [extraFooter, nowEl, timePickerBtn, okBtn]
- );
- }
- var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-footer', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-footer-show-ok', !!okBtn), _cls);
- footerEl = h(
- 'div',
- { 'class': cls },
- [footerBtn]
- );
- }
- return footerEl;
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (CalendarFooter);
- /***/ }),
- /***/ "./components/vc-calendar/src/calendar/CalendarHeader.jsx":
- /*!****************************************************************!*\
- !*** ./components/vc-calendar/src/calendar/CalendarHeader.jsx ***!
- \****************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _month_MonthPanel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../month/MonthPanel */ "./components/vc-calendar/src/month/MonthPanel.jsx");
- /* harmony import */ var _year_YearPanel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../year/YearPanel */ "./components/vc-calendar/src/year/YearPanel.jsx");
- /* harmony import */ var _decade_DecadePanel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../decade/DecadePanel */ "./components/vc-calendar/src/decade/DecadePanel.jsx");
- function noop() {}
- function goMonth(direction) {
- var next = this.value.clone();
- next.add(direction, 'months');
- this.__emit('valueChange', next);
- }
- function goYear(direction) {
- var next = this.value.clone();
- next.add(direction, 'years');
- this.__emit('valueChange', next);
- }
- function showIf(condition, el) {
- return condition ? el : null;
- }
- var CalendarHeader = {
- name: 'CalendarHeader',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- // onValueChange: PropTypes.func,
- showTimePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- // onPanelChange: PropTypes.func,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- enablePrev: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(1),
- enableNext: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(1),
- disabledMonth: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- monthCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- monthCellContentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
- },
- data: function data() {
- this.nextMonth = goMonth.bind(this, 1);
- this.previousMonth = goMonth.bind(this, -1);
- this.nextYear = goYear.bind(this, 1);
- this.previousYear = goYear.bind(this, -1);
- return {
- yearPanelReferer: null
- };
- },
- methods: {
- onMonthSelect: function onMonthSelect(value) {
- this.__emit('panelChange', value, 'date');
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this).monthSelect) {
- this.__emit('monthSelect', value);
- } else {
- this.__emit('valueChange', value);
- }
- },
- onYearSelect: function onYearSelect(value) {
- var referer = this.yearPanelReferer;
- this.setState({ yearPanelReferer: null });
- this.__emit('panelChange', value, referer);
- this.__emit('valueChange', value);
- },
- onDecadeSelect: function onDecadeSelect(value) {
- this.__emit('panelChange', value, 'year');
- this.__emit('valueChange', value);
- },
- changeYear: function changeYear(direction) {
- if (direction > 0) {
- this.nextYear();
- } else {
- this.previousYear();
- }
- },
- monthYearElement: function monthYearElement(showTimePicker) {
- var _this = this;
- var h = this.$createElement;
- var props = this.$props;
- var prefixCls = props.prefixCls;
- var locale = props.locale;
- var value = props.value;
- var localeData = value.localeData();
- var monthBeforeYear = locale.monthBeforeYear;
- var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select');
- var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : '';
- var year = h(
- 'a',
- {
- 'class': prefixCls + '-year-select' + timeClassName,
- attrs: { role: 'button',
- title: showTimePicker ? null : locale.yearSelect
- },
- on: {
- 'click': showTimePicker ? noop : function () {
- return _this.showYearPanel('date');
- }
- }
- },
- [value.format(locale.yearFormat)]
- );
- var month = h(
- 'a',
- {
- 'class': prefixCls + '-month-select' + timeClassName,
- attrs: { role: 'button',
- title: showTimePicker ? null : locale.monthSelect
- },
- on: {
- 'click': showTimePicker ? noop : this.showMonthPanel
- }
- },
- [locale.monthFormat ? value.format(locale.monthFormat) : localeData.monthsShort(value)]
- );
- var day = void 0;
- if (showTimePicker) {
- day = h(
- 'a',
- { 'class': prefixCls + '-day-select' + timeClassName, attrs: { role: 'button' }
- },
- [value.format(locale.dayFormat)]
- );
- }
- var my = [];
- if (monthBeforeYear) {
- my = [month, day, year];
- } else {
- my = [year, month, day];
- }
- return h(
- 'span',
- { 'class': selectClassName },
- [my]
- );
- },
- showMonthPanel: function showMonthPanel() {
- // null means that users' interaction doesn't change value
- this.__emit('panelChange', null, 'month');
- },
- showYearPanel: function showYearPanel(referer) {
- this.setState({ yearPanelReferer: referer });
- this.__emit('panelChange', null, 'year');
- },
- showDecadePanel: function showDecadePanel() {
- this.__emit('panelChange', null, 'decade');
- }
- },
- render: function render() {
- var _this2 = this;
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
- var prefixCls = props.prefixCls,
- locale = props.locale,
- mode = props.mode,
- value = props.value,
- showTimePicker = props.showTimePicker,
- enableNext = props.enableNext,
- enablePrev = props.enablePrev,
- disabledMonth = props.disabledMonth,
- renderFooter = props.renderFooter;
- var panel = null;
- if (mode === 'month') {
- panel = h(_month_MonthPanel__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: {
- locale: locale,
- value: value,
- rootPrefixCls: prefixCls,
- disabledDate: disabledMonth,
- cellRender: props.monthCellRender,
- contentRender: props.monthCellContentRender,
- renderFooter: renderFooter,
- changeYear: this.changeYear
- },
- on: {
- 'select': this.onMonthSelect,
- 'yearPanelShow': function yearPanelShow() {
- return _this2.showYearPanel('month');
- }
- }
- });
- }
- if (mode === 'year') {
- panel = h(_year_YearPanel__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: {
- locale: locale,
- value: value,
- rootPrefixCls: prefixCls,
- renderFooter: renderFooter,
- disabledDate: disabledMonth
- },
- on: {
- 'select': this.onYearSelect,
- 'decadePanelShow': this.showDecadePanel
- }
- });
- }
- if (mode === 'decade') {
- panel = h(_decade_DecadePanel__WEBPACK_IMPORTED_MODULE_5__["default"], {
- attrs: {
- locale: locale,
- value: value,
- rootPrefixCls: prefixCls,
- renderFooter: renderFooter
- },
- on: {
- 'select': this.onDecadeSelect
- }
- });
- }
- return h(
- 'div',
- { 'class': prefixCls + '-header' },
- [h(
- 'div',
- { style: { position: 'relative' } },
- [showIf(enablePrev && !showTimePicker, h('a', {
- 'class': prefixCls + '-prev-year-btn',
- attrs: { role: 'button',
- title: locale.previousYear
- },
- on: {
- 'click': this.previousYear
- }
- })), showIf(enablePrev && !showTimePicker, h('a', {
- 'class': prefixCls + '-prev-month-btn',
- attrs: { role: 'button',
- title: locale.previousMonth
- },
- on: {
- 'click': this.previousMonth
- }
- })), this.monthYearElement(showTimePicker), showIf(enableNext && !showTimePicker, h('a', {
- 'class': prefixCls + '-next-month-btn',
- on: {
- 'click': this.nextMonth
- },
- attrs: {
- title: locale.nextMonth
- }
- })), showIf(enableNext && !showTimePicker, h('a', {
- 'class': prefixCls + '-next-year-btn',
- on: {
- 'click': this.nextYear
- },
- attrs: {
- title: locale.nextYear
- }
- }))]
- ), panel]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (CalendarHeader);
- /***/ }),
- /***/ "./components/vc-calendar/src/calendar/OkButton.jsx":
- /*!**********************************************************!*\
- !*** ./components/vc-calendar/src/calendar/OkButton.jsx ***!
- \**********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- functional: true,
- render: function render(createElement, context) {
- var h = arguments[0];
- var props = context.props,
- _context$listeners = context.listeners,
- listeners = _context$listeners === undefined ? {} : _context$listeners;
- var prefixCls = props.prefixCls,
- locale = props.locale,
- okDisabled = props.okDisabled;
- var _listeners$ok = listeners.ok,
- ok = _listeners$ok === undefined ? noop : _listeners$ok;
- var className = prefixCls + "-ok-btn";
- if (okDisabled) {
- className += " " + prefixCls + "-ok-btn-disabled";
- }
- return h(
- "a",
- { "class": className, attrs: { role: "button" },
- on: {
- "click": okDisabled ? noop : ok
- }
- },
- [locale.ok]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-calendar/src/calendar/TimePickerButton.jsx":
- /*!******************************************************************!*\
- !*** ./components/vc-calendar/src/calendar/TimePickerButton.jsx ***!
- \******************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- functional: true,
- render: function render(h, context) {
- var _className;
- var props = context.props,
- _context$listeners = context.listeners,
- listeners = _context$listeners === undefined ? {} : _context$listeners;
- var prefixCls = props.prefixCls,
- locale = props.locale,
- showTimePicker = props.showTimePicker,
- timePickerDisabled = props.timePickerDisabled;
- var _listeners$closeTimeP = listeners.closeTimePicker,
- closeTimePicker = _listeners$closeTimeP === undefined ? noop : _listeners$closeTimeP,
- _listeners$openTimePi = listeners.openTimePicker,
- openTimePicker = _listeners$openTimePi === undefined ? noop : _listeners$openTimePi;
- var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls + "-time-picker-btn", true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls + "-time-picker-btn-disabled", timePickerDisabled), _className);
- var onClick = noop;
- if (!timePickerDisabled) {
- onClick = showTimePicker ? closeTimePicker : openTimePicker;
- }
- return h(
- "a",
- { "class": className, attrs: { role: "button" },
- on: {
- "click": onClick
- }
- },
- [showTimePicker ? locale.dateSelect : locale.timeSelect]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-calendar/src/calendar/TodayButton.jsx":
- /*!*************************************************************!*\
- !*** ./components/vc-calendar/src/calendar/TodayButton.jsx ***!
- \*************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/ */ "./components/vc-calendar/src/util/index.js");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- functional: true,
- render: function render(createElement, context) {
- var h = arguments[0];
- var props = context.props,
- _context$listeners = context.listeners,
- listeners = _context$listeners === undefined ? {} : _context$listeners;
- var prefixCls = props.prefixCls,
- locale = props.locale,
- value = props.value,
- timePicker = props.timePicker,
- disabled = props.disabled,
- disabledDate = props.disabledDate,
- text = props.text;
- var _listeners$today = listeners.today,
- today = _listeners$today === undefined ? noop : _listeners$today;
- var localeNow = (!text && timePicker ? locale.now : text) || locale.today;
- var disabledToday = disabledDate && !Object(_util___WEBPACK_IMPORTED_MODULE_0__["isAllowedDate"])(Object(_util___WEBPACK_IMPORTED_MODULE_0__["getTodayTime"])(value), disabledDate);
- var isDisabled = disabledToday || disabled;
- var disabledTodayClass = isDisabled ? prefixCls + '-today-btn-disabled' : '';
- return h(
- 'a',
- {
- 'class': prefixCls + '-today-btn ' + disabledTodayClass,
- attrs: { role: 'button',
- title: Object(_util___WEBPACK_IMPORTED_MODULE_0__["getTodayTimeStr"])(value)
- },
- on: {
- 'click': isDisabled ? noop : today
- }
- },
- [localeNow]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-calendar/src/date/DateConstants.js":
- /*!**********************************************************!*\
- !*** ./components/vc-calendar/src/date/DateConstants.js ***!
- \**********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- DATE_ROW_COUNT: 6,
- DATE_COL_COUNT: 7
- });
- /***/ }),
- /***/ "./components/vc-calendar/src/date/DateInput.jsx":
- /*!*******************************************************!*\
- !*** ./components/vc-calendar/src/date/DateInput.jsx ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./components/vc-calendar/src/util/index.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/KeyCode */ "./components/_util/KeyCode.js");
- var cachedSelectionStart = void 0;
- var cachedSelectionEnd = void 0;
- var dateInputInstance = void 0;
- var DateInput = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string), _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- // onChange: PropTypes.func,
- // onClear: PropTypes.func,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- // onSelect: PropTypes.func,
- selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- inputMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- },
- data: function data() {
- var selectedValue = this.selectedValue;
- return {
- str: Object(_util__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(selectedValue, this.format),
- invalid: false,
- hasFocus: false
- };
- },
- watch: {
- selectedValue: function selectedValue() {
- this.setState();
- },
- format: function format() {
- this.setState();
- }
- },
- updated: function updated() {
- var _this = this;
- this.$nextTick(function () {
- if (dateInputInstance && _this.$data.hasFocus && !_this.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) {
- dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd);
- }
- });
- },
- getInstance: function getInstance() {
- return dateInputInstance;
- },
- methods: {
- getDerivedStateFromProps: function getDerivedStateFromProps(nextProps, state) {
- var newState = {};
- if (dateInputInstance) {
- cachedSelectionStart = dateInputInstance.selectionStart;
- cachedSelectionEnd = dateInputInstance.selectionEnd;
- }
- // when popup show, click body will call this, bug!
- var selectedValue = nextProps.selectedValue;
- if (!state.hasFocus) {
- newState = {
- str: Object(_util__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(selectedValue, this.format),
- invalid: false
- };
- }
- return newState;
- },
- onClear: function onClear() {
- this.setState({
- str: ''
- });
- this.__emit('clear', null);
- },
- onInputChange: function onInputChange(e) {
- var _e$target = e.target,
- str = _e$target.value,
- composing = _e$target.composing;
- var _str = this.str,
- oldStr = _str === undefined ? '' : _str;
- if (e.isComposing || composing || oldStr === str) return;
- var _$props = this.$props,
- disabledDate = _$props.disabledDate,
- format = _$props.format,
- selectedValue = _$props.selectedValue;
- // 没有内容,合法并直接退出
- if (!str) {
- this.__emit('change', null);
- this.setState({
- invalid: false,
- str: str
- });
- return;
- }
- // 不合法直接退出
- var parsed = moment__WEBPACK_IMPORTED_MODULE_4___default()(str, format, true);
- if (!parsed.isValid()) {
- this.setState({
- invalid: true,
- str: str
- });
- return;
- }
- var value = this.value.clone();
- value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
- if (!value || disabledDate && disabledDate(value)) {
- this.setState({
- invalid: true,
- str: str
- });
- return;
- }
- if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
- this.setState({
- invalid: false,
- str: str
- });
- this.__emit('change', value);
- }
- },
- onFocus: function onFocus() {
- this.setState({ hasFocus: true });
- },
- onBlur: function onBlur() {
- this.setState(function (prevState, prevProps) {
- return {
- hasFocus: false,
- str: Object(_util__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(prevProps.value, prevProps.format)
- };
- });
- },
- onKeyDown: function onKeyDown(event) {
- var keyCode = event.keyCode;
- var _$props2 = this.$props,
- value = _$props2.value,
- disabledDate = _$props2.disabledDate;
- if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].ENTER) {
- var validateDate = !disabledDate || !disabledDate(value);
- if (validateDate) {
- this.__emit('select', value.clone());
- }
- event.preventDefault();
- }
- },
- getRootDOMNode: function getRootDOMNode() {
- return this.$el;
- },
- focus: function focus() {
- if (dateInputInstance) {
- dateInputInstance.focus();
- }
- },
- saveDateInput: function saveDateInput(dateInput) {
- dateInputInstance = dateInput;
- }
- },
- render: function render() {
- var h = arguments[0];
- var invalid = this.invalid,
- str = this.str,
- locale = this.locale,
- prefixCls = this.prefixCls,
- placeholder = this.placeholder,
- disabled = this.disabled,
- showClear = this.showClear,
- inputMode = this.inputMode,
- inputReadOnly = this.inputReadOnly;
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'clearIcon');
- var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
- return h(
- 'div',
- { 'class': prefixCls + '-input-wrap' },
- [h(
- 'div',
- { 'class': prefixCls + '-date-input-wrap' },
- [h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- directives: [{
- name: 'ant-ref',
- value: this.saveDateInput
- }, {
- name: 'ant-input'
- }]
- }, {
- 'class': prefixCls + '-input ' + invalidClass,
- domProps: {
- 'value': str
- },
- attrs: {
- disabled: disabled,
- placeholder: placeholder,
- inputMode: inputMode,
- readOnly: inputReadOnly
- },
- on: {
- 'input': this.onInputChange,
- 'keydown': this.onKeyDown,
- 'focus': this.onFocus,
- 'blur': this.onBlur
- }
- }]))]
- ), showClear ? h(
- 'a',
- {
- attrs: { role: 'button', title: locale.clear },
- on: {
- 'click': this.onClear
- }
- },
- [clearIcon || h('span', { 'class': prefixCls + '-clear-btn' })]
- ) : null]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (DateInput);
- /***/ }),
- /***/ "./components/vc-calendar/src/date/DateTBody.jsx":
- /*!*******************************************************!*\
- !*** ./components/vc-calendar/src/date/DateTBody.jsx ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _DateConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DateConstants */ "./components/vc-calendar/src/date/DateConstants.js");
- /* harmony import */ var _util___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/ */ "./components/vc-calendar/src/util/index.js");
- function noop() {}
- function isSameDay(one, two) {
- return one && two && one.isSame(two, 'day');
- }
- function beforeCurrentMonthYear(current, today) {
- if (current.year() < today.year()) {
- return 1;
- }
- return current.year() === today.year() && current.month() < today.month();
- }
- function afterCurrentMonthYear(current, today) {
- if (current.year() > today.year()) {
- return 1;
- }
- return current.year() === today.year() && current.month() > today.month();
- }
- function getIdFromDate(date) {
- return 'rc-calendar-' + date.year() + '-' + date.month() + '-' + date.date();
- }
- var DateTBody = {
- props: {
- contentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any)]),
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- hoverValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any.def([]),
- showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- },
- render: function render() {
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
- var contentRender = props.contentRender,
- prefixCls = props.prefixCls,
- selectedValue = props.selectedValue,
- value = props.value,
- showWeekNumber = props.showWeekNumber,
- dateRender = props.dateRender,
- disabledDate = props.disabledDate,
- hoverValue = props.hoverValue;
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
- _getListeners$select = _getListeners.select,
- select = _getListeners$select === undefined ? noop : _getListeners$select,
- _getListeners$dayHove = _getListeners.dayHover,
- dayHover = _getListeners$dayHove === undefined ? noop : _getListeners$dayHove;
- var iIndex = void 0;
- var jIndex = void 0;
- var current = void 0;
- var dateTable = [];
- var today = Object(_util___WEBPACK_IMPORTED_MODULE_5__["getTodayTime"])(value);
- var cellClass = prefixCls + '-cell';
- var weekNumberCellClass = prefixCls + '-week-number-cell';
- var dateClass = prefixCls + '-date';
- var todayClass = prefixCls + '-today';
- var selectedClass = prefixCls + '-selected-day';
- var selectedDateClass = prefixCls + '-selected-date'; // do not move with mouse operation
- var selectedStartDateClass = prefixCls + '-selected-start-date';
- var selectedEndDateClass = prefixCls + '-selected-end-date';
- var inRangeClass = prefixCls + '-in-range-cell';
- var lastMonthDayClass = prefixCls + '-last-month-cell';
- var nextMonthDayClass = prefixCls + '-next-month-btn-day';
- var disabledClass = prefixCls + '-disabled-cell';
- var firstDisableClass = prefixCls + '-disabled-cell-first-of-row';
- var lastDisableClass = prefixCls + '-disabled-cell-last-of-row';
- var lastDayOfMonthClass = prefixCls + '-last-day-of-month';
- var month1 = value.clone();
- month1.date(1);
- var day = month1.day();
- var lastMonthDiffDay = (day + 7 - value.localeData().firstDayOfWeek()) % 7;
- // calculate last month
- var lastMonth1 = month1.clone();
- lastMonth1.add(0 - lastMonthDiffDay, 'days');
- var passed = 0;
- for (iIndex = 0; iIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_ROW_COUNT; iIndex++) {
- for (jIndex = 0; jIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_COL_COUNT; jIndex++) {
- current = lastMonth1;
- if (passed) {
- current = current.clone();
- current.add(passed, 'days');
- }
- dateTable.push(current);
- passed++;
- }
- }
- var tableHtml = [];
- passed = 0;
- for (iIndex = 0; iIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_ROW_COUNT; iIndex++) {
- var _cx;
- var isCurrentWeek = void 0;
- var weekNumberCell = void 0;
- var isActiveWeek = false;
- var dateCells = [];
- if (showWeekNumber) {
- weekNumberCell = h(
- 'td',
- { key: 'week-' + dateTable[passed].week(), attrs: { role: 'gridcell' },
- 'class': weekNumberCellClass },
- [dateTable[passed].week()]
- );
- }
- for (jIndex = 0; jIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_COL_COUNT; jIndex++) {
- var next = null;
- var last = null;
- current = dateTable[passed];
- if (jIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_COL_COUNT - 1) {
- next = dateTable[passed + 1];
- }
- if (jIndex > 0) {
- last = dateTable[passed - 1];
- }
- var cls = cellClass;
- var disabled = false;
- var selected = false;
- if (isSameDay(current, today)) {
- cls += ' ' + todayClass;
- isCurrentWeek = true;
- }
- var isBeforeCurrentMonthYear = beforeCurrentMonthYear(current, value);
- var isAfterCurrentMonthYear = afterCurrentMonthYear(current, value);
- if (selectedValue && Array.isArray(selectedValue)) {
- var rangeValue = hoverValue.length ? hoverValue : selectedValue;
- if (!isBeforeCurrentMonthYear && !isAfterCurrentMonthYear) {
- var startValue = rangeValue[0];
- var endValue = rangeValue[1];
- if (startValue) {
- if (isSameDay(current, startValue)) {
- selected = true;
- isActiveWeek = true;
- cls += ' ' + selectedStartDateClass;
- }
- }
- if (startValue || endValue) {
- if (isSameDay(current, endValue)) {
- selected = true;
- isActiveWeek = true;
- cls += ' ' + selectedEndDateClass;
- } else if ((startValue === null || startValue === undefined) && current.isBefore(endValue, 'day')) {
- cls += ' ' + inRangeClass;
- } else if ((endValue === null || endValue === undefined) && current.isAfter(startValue, 'day')) {
- cls += ' ' + inRangeClass;
- } else if (current.isAfter(startValue, 'day') && current.isBefore(endValue, 'day')) {
- cls += ' ' + inRangeClass;
- }
- }
- }
- } else if (isSameDay(current, value)) {
- // keyboard change value, highlight works
- selected = true;
- isActiveWeek = true;
- }
- if (isSameDay(current, selectedValue)) {
- cls += ' ' + selectedDateClass;
- }
- if (isBeforeCurrentMonthYear) {
- cls += ' ' + lastMonthDayClass;
- }
- if (isAfterCurrentMonthYear) {
- cls += ' ' + nextMonthDayClass;
- }
- if (current.clone().endOf('month').date() === current.date()) {
- cls += ' ' + lastDayOfMonthClass;
- }
- if (disabledDate) {
- if (disabledDate(current, value)) {
- disabled = true;
- if (!last || !disabledDate(last, value)) {
- cls += ' ' + firstDisableClass;
- }
- if (!next || !disabledDate(next, value)) {
- cls += ' ' + lastDisableClass;
- }
- }
- }
- if (selected) {
- cls += ' ' + selectedClass;
- }
- if (disabled) {
- cls += ' ' + disabledClass;
- }
- var dateHtml = void 0;
- if (dateRender) {
- dateHtml = dateRender(current, value);
- } else {
- var content = contentRender ? contentRender(current, value) : current.date();
- dateHtml = h(
- 'div',
- {
- key: getIdFromDate(current),
- 'class': dateClass,
- attrs: { 'aria-selected': selected,
- 'aria-disabled': disabled
- }
- },
- [content]
- );
- }
- dateCells.push(h(
- 'td',
- {
- key: passed,
- on: {
- 'click': disabled ? noop : select.bind(null, current),
- 'mouseenter': disabled ? noop : dayHover.bind(null, current)
- },
- attrs: {
- role: 'gridcell',
- title: Object(_util___WEBPACK_IMPORTED_MODULE_5__["getTitleString"])(current)
- },
- 'class': cls
- },
- [dateHtml]
- ));
- passed++;
- }
- tableHtml.push(h(
- 'tr',
- {
- key: iIndex,
- attrs: { role: 'row'
- },
- 'class': classnames__WEBPACK_IMPORTED_MODULE_3___default()((_cx = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, prefixCls + '-current-week', isCurrentWeek), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, prefixCls + '-active-week', isActiveWeek), _cx))
- },
- [weekNumberCell, dateCells]
- ));
- }
- return h(
- 'tbody',
- { 'class': prefixCls + '-tbody' },
- [tableHtml]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (DateTBody);
- /***/ }),
- /***/ "./components/vc-calendar/src/date/DateTHead.jsx":
- /*!*******************************************************!*\
- !*** ./components/vc-calendar/src/date/DateTHead.jsx ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _DateConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DateConstants */ "./components/vc-calendar/src/date/DateConstants.js");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- functional: true,
- render: function render(createElement, context) {
- var h = arguments[0];
- var props = context.props;
- var value = props.value;
- var localeData = value.localeData();
- var prefixCls = props.prefixCls;
- var veryShortWeekdays = [];
- var weekDays = [];
- var firstDayOfWeek = localeData.firstDayOfWeek();
- var showWeekNumberEl = void 0;
- var now = moment__WEBPACK_IMPORTED_MODULE_1___default()();
- for (var dateColIndex = 0; dateColIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_0__["default"].DATE_COL_COUNT; dateColIndex++) {
- var index = (firstDayOfWeek + dateColIndex) % _DateConstants__WEBPACK_IMPORTED_MODULE_0__["default"].DATE_COL_COUNT;
- now.day(index);
- veryShortWeekdays[dateColIndex] = localeData.weekdaysMin(now);
- weekDays[dateColIndex] = localeData.weekdaysShort(now);
- }
- if (props.showWeekNumber) {
- showWeekNumberEl = h(
- 'th',
- {
- attrs: {
- role: 'columnheader'
- },
- 'class': prefixCls + '-column-header ' + prefixCls + '-week-number-header'
- },
- [h(
- 'span',
- { 'class': prefixCls + '-column-header-inner' },
- ['x']
- )]
- );
- }
- var weekDaysEls = weekDays.map(function (day, xindex) {
- return h(
- 'th',
- { key: xindex, attrs: { role: 'columnheader', title: day },
- 'class': prefixCls + '-column-header' },
- [h(
- 'span',
- { 'class': prefixCls + '-column-header-inner' },
- [veryShortWeekdays[xindex]]
- )]
- );
- });
- return h('thead', [h(
- 'tr',
- {
- attrs: { role: 'row' }
- },
- [showWeekNumberEl, weekDaysEls]
- )]);
- }
- });
- /***/ }),
- /***/ "./components/vc-calendar/src/date/DateTable.jsx":
- /*!*******************************************************!*\
- !*** ./components/vc-calendar/src/date/DateTable.jsx ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _DateTHead__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DateTHead */ "./components/vc-calendar/src/date/DateTHead.jsx");
- /* harmony import */ var _DateTBody__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DateTBody */ "./components/vc-calendar/src/date/DateTBody.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- functional: true,
- render: function render(createElement, context) {
- var h = arguments[0];
- var props = context.props,
- _context$listeners = context.listeners,
- listeners = _context$listeners === undefined ? {} : _context$listeners;
- var prefixCls = props.prefixCls;
- var bodyProps = {
- props: props,
- on: listeners
- };
- return h(
- 'table',
- { 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
- },
- [h(_DateTHead__WEBPACK_IMPORTED_MODULE_0__["default"], bodyProps), h(_DateTBody__WEBPACK_IMPORTED_MODULE_1__["default"], bodyProps)]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-calendar/src/decade/DecadePanel.jsx":
- /*!***********************************************************!*\
- !*** ./components/vc-calendar/src/decade/DecadePanel.jsx ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- var ROW = 4;
- var COL = 3;
- function noop() {}
- function goYear(direction) {
- var next = this.sValue.clone();
- next.add(direction, 'years');
- this.setState({
- sValue: next
- });
- }
- function chooseDecade(year, event) {
- var next = this.sValue.clone();
- next.year(year);
- next.month(this.sValue.month());
- this.__emit('select', next);
- event.preventDefault();
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- },
- data: function data() {
- this.nextCentury = goYear.bind(this, 100);
- this.previousCentury = goYear.bind(this, -100);
- return {
- sValue: this.value || this.defaultValue
- };
- },
- watch: {
- value: function value(val) {
- this.sValue = val;
- }
- },
- render: function render() {
- var _this = this;
- var h = arguments[0];
- var value = this.sValue;
- var _$props = this.$props,
- locale = _$props.locale,
- renderFooter = _$props.renderFooter;
- var currentYear = value.year();
- var startYear = parseInt(currentYear / 100, 10) * 100;
- var preYear = startYear - 10;
- var endYear = startYear + 99;
- var decades = [];
- var index = 0;
- var prefixCls = this.rootPrefixCls + '-decade-panel';
- for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
- decades[rowIndex] = [];
- for (var colIndex = 0; colIndex < COL; colIndex++) {
- var startDecade = preYear + index * 10;
- var endDecade = preYear + index * 10 + 9;
- decades[rowIndex][colIndex] = {
- startDecade: startDecade,
- endDecade: endDecade
- };
- index++;
- }
- }
- var footer = renderFooter && renderFooter('decade');
- var decadesEls = decades.map(function (row, decadeIndex) {
- var tds = row.map(function (decadeData) {
- var _classNameMap;
- var dStartDecade = decadeData.startDecade;
- var dEndDecade = decadeData.endDecade;
- var isLast = dStartDecade < startYear;
- var isNext = dEndDecade > endYear;
- var classNameMap = (_classNameMap = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-selected-cell', dStartDecade <= currentYear && currentYear <= dEndDecade), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-last-century-cell', isLast), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-next-century-cell', isNext), _classNameMap);
- var content = dStartDecade + '-' + dEndDecade;
- var clickHandler = noop;
- if (isLast) {
- clickHandler = _this.previousCentury;
- } else if (isNext) {
- clickHandler = _this.nextCentury;
- } else {
- clickHandler = chooseDecade.bind(_this, dStartDecade);
- }
- return h(
- 'td',
- { key: dStartDecade, on: {
- 'click': clickHandler
- },
- attrs: { role: 'gridcell' },
- 'class': classNameMap },
- [h(
- 'a',
- { 'class': prefixCls + '-decade' },
- [content]
- )]
- );
- });
- return h(
- 'tr',
- { key: decadeIndex, attrs: { role: 'row' }
- },
- [tds]
- );
- });
- return h(
- 'div',
- { 'class': prefixCls },
- [h(
- 'div',
- { 'class': prefixCls + '-header' },
- [h('a', {
- 'class': prefixCls + '-prev-century-btn',
- attrs: { role: 'button',
- title: locale.previousCentury
- },
- on: {
- 'click': this.previousCentury
- }
- }), h(
- 'div',
- { 'class': prefixCls + '-century' },
- [startYear, '-', endYear]
- ), h('a', {
- 'class': prefixCls + '-next-century-btn',
- attrs: { role: 'button',
- title: locale.nextCentury
- },
- on: {
- 'click': this.nextCentury
- }
- })]
- ), h(
- 'div',
- { 'class': prefixCls + '-body' },
- [h(
- 'table',
- { 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
- },
- [h(
- 'tbody',
- { 'class': prefixCls + '-tbody' },
- [decadesEls]
- )]
- )]
- ), footer && h(
- 'div',
- { 'class': prefixCls + '-footer' },
- [footer]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-calendar/src/full-calendar/CalendarHeader.jsx":
- /*!*********************************************************************!*\
- !*** ./components/vc-calendar/src/full-calendar/CalendarHeader.jsx ***!
- \*********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./components/vc-calendar/src/util/index.js");
- var CalendarHeader = {
- name: 'CalendarHeader',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
- props: {
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- yearSelectOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(10),
- yearSelectTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(20),
- // onValueChange: PropTypes.func,
- // onTypeChange: PropTypes.func,
- Select: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- showTypeSwitch: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- headerComponents: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array
- },
- methods: {
- onYearChange: function onYearChange(year) {
- var newValue = this.value.clone();
- newValue.year(parseInt(year, 10));
- this.__emit('valueChange', newValue);
- },
- onMonthChange: function onMonthChange(month) {
- var newValue = this.value.clone();
- newValue.month(parseInt(month, 10));
- this.__emit('valueChange', newValue);
- },
- yearSelectElement: function yearSelectElement(year) {
- var h = this.$createElement;
- var yearSelectOffset = this.yearSelectOffset,
- yearSelectTotal = this.yearSelectTotal,
- prefixCls = this.prefixCls,
- Select = this.Select;
- var start = year - yearSelectOffset;
- var end = start + yearSelectTotal;
- var options = [];
- for (var index = start; index < end; index++) {
- options.push(h(
- Select.Option,
- { key: '' + index },
- [index]
- ));
- }
- return h(
- Select,
- {
- 'class': prefixCls + '-header-year-select',
- on: {
- 'change': this.onYearChange
- },
- attrs: {
- dropdownStyle: { zIndex: 2000 },
- dropdownMenuStyle: { maxHeight: '250px', overflow: 'auto', fontSize: '12px' },
- optionLabelProp: 'children',
- value: String(year),
- showSearch: false
- }
- },
- [options]
- );
- },
- monthSelectElement: function monthSelectElement(month) {
- var h = this.$createElement;
- var value = this.value,
- Select = this.Select,
- prefixCls = this.prefixCls;
- var t = value.clone();
- var options = [];
- for (var index = 0; index < 12; index++) {
- t.month(index);
- options.push(h(
- Select.Option,
- { key: '' + index },
- [Object(_util__WEBPACK_IMPORTED_MODULE_2__["getMonthName"])(t)]
- ));
- }
- return h(
- Select,
- {
- 'class': prefixCls + '-header-month-select',
- attrs: { dropdownStyle: { zIndex: 2000 },
- dropdownMenuStyle: {
- maxHeight: '250px',
- overflow: 'auto',
- overflowX: 'hidden',
- fontSize: '12px'
- },
- optionLabelProp: 'children',
- value: String(month),
- showSearch: false
- },
- on: {
- 'change': this.onMonthChange
- }
- },
- [options]
- );
- },
- changeTypeToDate: function changeTypeToDate() {
- this.__emit('typeChange', 'date');
- },
- changeTypeToMonth: function changeTypeToMonth() {
- this.__emit('typeChange', 'month');
- }
- },
- render: function render() {
- var h = arguments[0];
- var value = this.value,
- locale = this.locale,
- prefixCls = this.prefixCls,
- type = this.type,
- showTypeSwitch = this.showTypeSwitch,
- headerComponents = this.headerComponents;
- var year = value.year();
- var month = value.month();
- var yearSelect = this.yearSelectElement(year);
- var monthSelect = type === 'month' ? null : this.monthSelectElement(month);
- var switchCls = prefixCls + '-header-switcher';
- var typeSwitcher = showTypeSwitch ? h(
- 'span',
- { 'class': switchCls },
- [type === 'date' ? h(
- 'span',
- { 'class': switchCls + '-focus' },
- [locale.month]
- ) : h(
- 'span',
- {
- on: {
- 'click': this.changeTypeToDate
- },
- 'class': switchCls + '-normal' },
- [locale.month]
- ), type === 'month' ? h(
- 'span',
- { 'class': switchCls + '-focus' },
- [locale.year]
- ) : h(
- 'span',
- {
- on: {
- 'click': this.changeTypeToMonth
- },
- 'class': switchCls + '-normal' },
- [locale.year]
- )]
- ) : null;
- return h(
- 'div',
- { 'class': prefixCls + '-header' },
- [typeSwitcher, monthSelect, yearSelect, headerComponents]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (CalendarHeader);
- /***/ }),
- /***/ "./components/vc-calendar/src/index.js":
- /*!*********************************************!*\
- !*** ./components/vc-calendar/src/index.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Calendar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Calendar */ "./components/vc-calendar/src/Calendar.jsx");
- /* harmony default export */ __webpack_exports__["default"] = (_Calendar__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-calendar/src/locale/en_US.js":
- /*!****************************************************!*\
- !*** ./components/vc-calendar/src/locale/en_US.js ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- today: 'Today',
- now: 'Now',
- backToToday: 'Back to today',
- ok: 'Ok',
- clear: 'Clear',
- month: 'Month',
- year: 'Year',
- timeSelect: 'select time',
- dateSelect: 'select date',
- weekSelect: 'Choose a week',
- monthSelect: 'Choose a month',
- yearSelect: 'Choose a year',
- decadeSelect: 'Choose a decade',
- yearFormat: 'YYYY',
- dateFormat: 'M/D/YYYY',
- dayFormat: 'D',
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
- monthBeforeYear: true,
- previousMonth: 'Previous month (PageUp)',
- nextMonth: 'Next month (PageDown)',
- previousYear: 'Last year (Control + left)',
- nextYear: 'Next year (Control + right)',
- previousDecade: 'Last decade',
- nextDecade: 'Next decade',
- previousCentury: 'Last century',
- nextCentury: 'Next century'
- });
- /***/ }),
- /***/ "./components/vc-calendar/src/mixin/CalendarMixin.js":
- /*!***********************************************************!*\
- !*** ./components/vc-calendar/src/mixin/CalendarMixin.js ***!
- \***********************************************************/
- /*! exports provided: getNowByCurrentStateValue, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNowByCurrentStateValue", function() { return getNowByCurrentStateValue; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/index */ "./components/vc-calendar/src/util/index.js");
- function noop() {}
- function getNowByCurrentStateValue(value) {
- var ret = void 0;
- if (value) {
- ret = Object(_util_index__WEBPACK_IMPORTED_MODULE_5__["getTodayTime"])(value);
- } else {
- ret = moment__WEBPACK_IMPORTED_MODULE_4___default()();
- }
- return ret;
- }
- function isMoment(value) {
- if (Array.isArray(value)) {
- return value.length === 0 || value.findIndex(function (val) {
- return val === undefined || moment__WEBPACK_IMPORTED_MODULE_4___default.a.isMoment(val);
- }) !== -1;
- } else {
- return value === undefined || moment__WEBPACK_IMPORTED_MODULE_4___default.a.isMoment(value);
- }
- }
- var MomentType = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(isMoment);
- var CalendarMixin = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- name: 'CalendarMixinWrapper',
- props: {
- value: MomentType,
- defaultValue: MomentType
- },
- data: function data() {
- var props = this.$props;
- var sValue = props.value || props.defaultValue || getNowByCurrentStateValue();
- return {
- sValue: sValue,
- sSelectedValue: props.selectedValue || props.defaultSelectedValue
- };
- },
- watch: {
- value: function value(val) {
- var sValue = val || this.defaultValue || getNowByCurrentStateValue(this.sValue);
- this.setState({
- sValue: sValue
- });
- },
- selectedValue: function selectedValue(val) {
- this.setState({
- sSelectedValue: val
- });
- }
- },
- methods: {
- onSelect: function onSelect(value, cause) {
- if (value) {
- this.setValue(value);
- }
- this.setSelectedValue(value, cause);
- },
- renderRoot: function renderRoot(newProps) {
- var _className;
- var h = this.$createElement;
- var props = this.$props;
- var prefixCls = props.prefixCls;
- var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls + '-hidden', !props.visible), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, newProps['class'], !!newProps['class']), _className);
- return h(
- 'div',
- {
- ref: 'rootInstance',
- 'class': className,
- attrs: { tabIndex: '0'
- },
- on: {
- 'keydown': this.onKeyDown || noop,
- 'blur': this.onBlur || noop
- }
- },
- [newProps.children]
- );
- },
- setSelectedValue: function setSelectedValue(selectedValue, cause) {
- // if (this.isAllowedDate(selectedValue)) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'selectedValue')) {
- this.setState({
- sSelectedValue: selectedValue
- });
- }
- this.__emit('select', selectedValue, cause);
- // }
- },
- setValue: function setValue(value) {
- var originalValue = this.sValue;
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
- this.setState({
- sValue: value
- });
- }
- if (originalValue && value && !originalValue.isSame(value) || !originalValue && value || originalValue && !value) {
- this.__emit('change', value);
- }
- },
- isAllowedDate: function isAllowedDate(value) {
- var disabledDate = this.disabledDate;
- var disabledTime = this.disabledTime;
- return Object(_util_index__WEBPACK_IMPORTED_MODULE_5__["isAllowedDate"])(value, disabledDate, disabledTime);
- }
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (CalendarMixin);
- /***/ }),
- /***/ "./components/vc-calendar/src/mixin/CommonMixin.js":
- /*!*********************************************************!*\
- !*** ./components/vc-calendar/src/mixin/CommonMixin.js ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- methods: {
- getFormat: function getFormat() {
- var format = this.format;
- var locale = this.locale,
- timePicker = this.timePicker;
- if (!format) {
- if (timePicker) {
- format = locale.dateTimeFormat;
- } else {
- format = locale.dateFormat;
- }
- }
- return format;
- },
- focus: function focus() {
- if (this.focusElement) {
- this.focusElement.focus();
- } else if (this.$refs.rootInstance) {
- this.$refs.rootInstance.focus();
- }
- },
- saveFocusElement: function saveFocusElement(focusElement) {
- this.focusElement = focusElement;
- }
- }
- });
- /***/ }),
- /***/ "./components/vc-calendar/src/month/MonthPanel.jsx":
- /*!*********************************************************!*\
- !*** ./components/vc-calendar/src/month/MonthPanel.jsx ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _MonthTable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MonthTable */ "./components/vc-calendar/src/month/MonthTable.jsx");
- function goYear(direction) {
- this.changeYear(direction);
- }
- function noop() {}
- var MonthPanel = {
- name: 'MonthPanel',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
- props: {
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- cellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- contentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- // onChange: PropTypes.func,
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- // onSelect: PropTypes.func,
- renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- changeYear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.def(noop)
- },
- data: function data() {
- var value = this.value,
- defaultValue = this.defaultValue;
- // bind methods
- this.nextYear = goYear.bind(this, 1);
- this.previousYear = goYear.bind(this, -1);
- return {
- sValue: value || defaultValue
- };
- },
- watch: {
- value: function value(val) {
- this.setState({
- sValue: val
- });
- }
- },
- methods: {
- setAndSelectValue: function setAndSelectValue(value) {
- this.setValue(value);
- this.__emit('select', value);
- },
- setValue: function setValue(value) {
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'value')) {
- this.setState({
- sValue: value
- });
- }
- }
- },
- render: function render() {
- var h = arguments[0];
- var sValue = this.sValue,
- cellRender = this.cellRender,
- contentRender = this.contentRender,
- locale = this.locale,
- rootPrefixCls = this.rootPrefixCls,
- disabledDate = this.disabledDate,
- renderFooter = this.renderFooter;
- var year = sValue.year();
- var prefixCls = rootPrefixCls + '-month-panel';
- var footer = renderFooter && renderFooter('month');
- return h(
- 'div',
- { 'class': prefixCls },
- [h('div', [h(
- 'div',
- { 'class': prefixCls + '-header' },
- [h('a', {
- 'class': prefixCls + '-prev-year-btn',
- attrs: { role: 'button',
- title: locale.previousYear
- },
- on: {
- 'click': this.previousYear
- }
- }), h(
- 'a',
- {
- 'class': prefixCls + '-year-select',
- attrs: { role: 'button',
- title: locale.yearSelect
- },
- on: {
- 'click': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this).yearPanelShow || noop
- }
- },
- [h(
- 'span',
- { 'class': prefixCls + '-year-select-content' },
- [year]
- ), h(
- 'span',
- { 'class': prefixCls + '-year-select-arrow' },
- ['x']
- )]
- ), h('a', {
- 'class': prefixCls + '-next-year-btn',
- attrs: { role: 'button',
- title: locale.nextYear
- },
- on: {
- 'click': this.nextYear
- }
- })]
- ), h(
- 'div',
- { 'class': prefixCls + '-body' },
- [h(_MonthTable__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: {
- disabledDate: disabledDate,
- locale: locale,
- value: sValue,
- cellRender: cellRender,
- contentRender: contentRender,
- prefixCls: prefixCls
- },
- on: {
- 'select': this.setAndSelectValue
- }
- })]
- ), footer && h(
- 'div',
- { 'class': prefixCls + '-footer' },
- [footer]
- )])]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (MonthPanel);
- /***/ }),
- /***/ "./components/vc-calendar/src/month/MonthTable.jsx":
- /*!*********************************************************!*\
- !*** ./components/vc-calendar/src/month/MonthTable.jsx ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/index */ "./components/vc-calendar/src/util/index.js");
- var ROW = 4;
- var COL = 3;
- function noop() {}
- var MonthTable = {
- name: 'MonthTable',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- cellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- contentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- },
- data: function data() {
- return {
- sValue: this.value
- };
- },
- watch: {
- value: function value(val) {
- this.setState({
- sValue: val
- });
- }
- },
- methods: {
- setAndSelectValue: function setAndSelectValue(value) {
- this.setState({
- sValue: value
- });
- this.__emit('select', value);
- },
- chooseMonth: function chooseMonth(month) {
- var next = this.sValue.clone();
- next.month(month);
- this.setAndSelectValue(next);
- },
- months: function months() {
- var value = this.sValue;
- var current = value.clone();
- var months = [];
- var index = 0;
- for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
- months[rowIndex] = [];
- for (var colIndex = 0; colIndex < COL; colIndex++) {
- current.month(index);
- var content = Object(_util_index__WEBPACK_IMPORTED_MODULE_3__["getMonthName"])(current);
- months[rowIndex][colIndex] = {
- value: index,
- content: content,
- title: content
- };
- index++;
- }
- }
- return months;
- }
- },
- render: function render() {
- var _this = this;
- var h = arguments[0];
- var props = this.$props;
- var value = this.sValue;
- var today = Object(_util_index__WEBPACK_IMPORTED_MODULE_3__["getTodayTime"])(value);
- var months = this.months();
- var currentMonth = value.month();
- var prefixCls = props.prefixCls,
- locale = props.locale,
- contentRender = props.contentRender,
- cellRender = props.cellRender,
- disabledDate = props.disabledDate;
- var monthsEls = months.map(function (month, index) {
- var tds = month.map(function (monthData) {
- var _classNameMap;
- var disabled = false;
- if (disabledDate) {
- var testValue = value.clone();
- testValue.month(monthData.value);
- disabled = disabledDate(testValue);
- }
- var classNameMap = (_classNameMap = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-selected-cell', monthData.value === currentMonth), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-current-cell', today.year() === value.year() && monthData.value === today.month()), _classNameMap);
- var cellEl = void 0;
- if (cellRender) {
- var currentValue = value.clone();
- currentValue.month(monthData.value);
- cellEl = cellRender(currentValue, locale);
- } else {
- var content = void 0;
- if (contentRender) {
- var _currentValue = value.clone();
- _currentValue.month(monthData.value);
- content = contentRender(_currentValue, locale);
- } else {
- content = monthData.content;
- }
- cellEl = h(
- 'a',
- { 'class': prefixCls + '-month' },
- [content]
- );
- }
- return h(
- 'td',
- {
- attrs: {
- role: 'gridcell',
- title: monthData.title
- },
- key: monthData.value,
- on: {
- 'click': disabled ? noop : function () {
- return _this.chooseMonth(monthData.value);
- }
- },
- 'class': classNameMap
- },
- [cellEl]
- );
- });
- return h(
- 'tr',
- { key: index, attrs: { role: 'row' }
- },
- [tds]
- );
- });
- return h(
- 'table',
- { 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
- },
- [h(
- 'tbody',
- { 'class': prefixCls + '-tbody' },
- [monthsEls]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (MonthTable);
- /***/ }),
- /***/ "./components/vc-calendar/src/picker/placements.js":
- /*!*********************************************************!*\
- !*** ./components/vc-calendar/src/picker/placements.js ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var autoAdjustOverflow = {
- adjustX: 1,
- adjustY: 1
- };
- var targetOffset = [0, 0];
- var placements = {
- bottomLeft: {
- points: ['tl', 'tl'],
- overflow: autoAdjustOverflow,
- offset: [0, -3],
- targetOffset: targetOffset
- },
- bottomRight: {
- points: ['tr', 'tr'],
- overflow: autoAdjustOverflow,
- offset: [0, -3],
- targetOffset: targetOffset
- },
- topRight: {
- points: ['br', 'br'],
- overflow: autoAdjustOverflow,
- offset: [0, 3],
- targetOffset: targetOffset
- },
- topLeft: {
- points: ['bl', 'bl'],
- overflow: autoAdjustOverflow,
- offset: [0, 3],
- targetOffset: targetOffset
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (placements);
- /***/ }),
- /***/ "./components/vc-calendar/src/range-calendar/CalendarPart.jsx":
- /*!********************************************************************!*\
- !*** ./components/vc-calendar/src/range-calendar/CalendarPart.jsx ***!
- \********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../calendar/CalendarHeader */ "./components/vc-calendar/src/calendar/CalendarHeader.jsx");
- /* harmony import */ var _date_DateTable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../date/DateTable */ "./components/vc-calendar/src/date/DateTable.jsx");
- /* harmony import */ var _date_DateInput__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../date/DateInput */ "./components/vc-calendar/src/date/DateInput.jsx");
- /* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util/index */ "./components/vc-calendar/src/util/index.js");
- function noop() {}
- var CalendarPart = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- hoverValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- showTimePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- disabledMonth: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- // onInputSelect: PropTypes.func,
- timePickerDisabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- enableNext: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- enablePrev: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- inputMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- },
- render: function render() {
- var h = arguments[0];
- var props = this.$props;
- var prefixCls = props.prefixCls,
- value = props.value,
- hoverValue = props.hoverValue,
- selectedValue = props.selectedValue,
- mode = props.mode,
- direction = props.direction,
- locale = props.locale,
- format = props.format,
- placeholder = props.placeholder,
- disabledDate = props.disabledDate,
- timePicker = props.timePicker,
- disabledTime = props.disabledTime,
- timePickerDisabledTime = props.timePickerDisabledTime,
- showTimePicker = props.showTimePicker,
- enablePrev = props.enablePrev,
- enableNext = props.enableNext,
- disabledMonth = props.disabledMonth,
- showDateInput = props.showDateInput,
- dateRender = props.dateRender,
- showWeekNumber = props.showWeekNumber,
- showClear = props.showClear,
- inputMode = props.inputMode,
- inputReadOnly = props.inputReadOnly;
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'clearIcon');
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this),
- _getListeners$inputCh = _getListeners.inputChange,
- inputChange = _getListeners$inputCh === undefined ? noop : _getListeners$inputCh,
- _getListeners$inputSe = _getListeners.inputSelect,
- inputSelect = _getListeners$inputSe === undefined ? noop : _getListeners$inputSe,
- _getListeners$valueCh = _getListeners.valueChange,
- valueChange = _getListeners$valueCh === undefined ? noop : _getListeners$valueCh,
- _getListeners$panelCh = _getListeners.panelChange,
- panelChange = _getListeners$panelCh === undefined ? noop : _getListeners$panelCh,
- _getListeners$select = _getListeners.select,
- select = _getListeners$select === undefined ? noop : _getListeners$select,
- _getListeners$dayHove = _getListeners.dayHover,
- dayHover = _getListeners$dayHove === undefined ? noop : _getListeners$dayHove;
- var shouldShowTimePicker = showTimePicker && timePicker;
- var disabledTimeConfig = shouldShowTimePicker && disabledTime ? Object(_util_index__WEBPACK_IMPORTED_MODULE_8__["getTimeConfig"])(selectedValue, disabledTime) : null;
- var rangeClassName = prefixCls + '-range';
- var newProps = {
- locale: locale,
- value: value,
- prefixCls: prefixCls,
- showTimePicker: showTimePicker
- };
- var index = direction === 'left' ? 0 : 1;
- var timePickerEle = null;
- if (shouldShowTimePicker) {
- var timePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(timePicker);
- timePickerEle = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(timePicker, {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- showHour: true,
- showMinute: true,
- showSecond: true
- }, timePickerProps, disabledTimeConfig, timePickerDisabledTime, {
- defaultOpenValue: value,
- value: selectedValue[index]
- }),
- on: {
- change: inputChange
- }
- });
- }
- var dateInputElement = showDateInput && h(_date_DateInput__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: {
- format: format,
- locale: locale,
- prefixCls: prefixCls,
- timePicker: timePicker,
- disabledDate: disabledDate,
- placeholder: placeholder,
- disabledTime: disabledTime,
- value: value,
- showClear: showClear || false,
- selectedValue: selectedValue[index],
- clearIcon: clearIcon,
- inputMode: inputMode,
- inputReadOnly: inputReadOnly
- },
- on: {
- 'change': inputChange,
- 'select': inputSelect
- }
- });
- var headerProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, newProps, {
- mode: mode,
- enableNext: enableNext,
- enablePrev: enablePrev,
- disabledMonth: disabledMonth
- }),
- on: {
- valueChange: valueChange,
- panelChange: panelChange
- }
- };
- var tableProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, newProps, {
- hoverValue: hoverValue,
- selectedValue: selectedValue,
- dateRender: dateRender,
- disabledDate: disabledDate,
- showWeekNumber: showWeekNumber
- }),
- on: {
- select: select,
- dayHover: dayHover
- }
- };
- return h(
- 'div',
- { 'class': rangeClassName + '-part ' + rangeClassName + '-' + direction },
- [dateInputElement, h(
- 'div',
- { style: { outline: 'none' } },
- [h(_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_5__["default"], headerProps), showTimePicker ? h(
- 'div',
- { 'class': prefixCls + '-time-picker' },
- [h(
- 'div',
- { 'class': prefixCls + '-time-picker-panel' },
- [timePickerEle]
- )]
- ) : null, h(
- 'div',
- { 'class': prefixCls + '-body' },
- [h(_date_DateTable__WEBPACK_IMPORTED_MODULE_6__["default"], tableProps)]
- )]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (CalendarPart);
- /***/ }),
- /***/ "./components/vc-calendar/src/util/index.js":
- /*!**************************************************!*\
- !*** ./components/vc-calendar/src/util/index.js ***!
- \**************************************************/
- /*! exports provided: getTodayTime, getTitleString, getTodayTimeStr, getMonthName, syncTime, getTimeConfig, isTimeValidByConfig, isTimeValid, isAllowedDate, formatDate */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTodayTime", function() { return getTodayTime; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTitleString", function() { return getTitleString; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTodayTimeStr", function() { return getTodayTimeStr; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMonthName", function() { return getMonthName; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "syncTime", function() { return syncTime; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTimeConfig", function() { return getTimeConfig; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTimeValidByConfig", function() { return isTimeValidByConfig; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTimeValid", function() { return isTimeValid; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAllowedDate", function() { return isAllowedDate; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatDate", function() { return formatDate; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
- var defaultDisabledTime = {
- disabledHours: function disabledHours() {
- return [];
- },
- disabledMinutes: function disabledMinutes() {
- return [];
- },
- disabledSeconds: function disabledSeconds() {
- return [];
- }
- };
- function getTodayTime(value) {
- var today = moment__WEBPACK_IMPORTED_MODULE_1___default()();
- today.locale(value.locale()).utcOffset(value.utcOffset());
- return today;
- }
- function getTitleString(value) {
- return value.format('LL');
- }
- function getTodayTimeStr(value) {
- var today = getTodayTime(value);
- return getTitleString(today);
- }
- function getMonthName(month) {
- var locale = month.locale();
- var localeData = month.localeData();
- return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month);
- }
- function syncTime(from, to) {
- if (!moment__WEBPACK_IMPORTED_MODULE_1___default.a.isMoment(from) || !moment__WEBPACK_IMPORTED_MODULE_1___default.a.isMoment(to)) return;
- to.hour(from.hour());
- to.minute(from.minute());
- to.second(from.second());
- to.millisecond(from.millisecond());
- }
- function getTimeConfig(value, disabledTime) {
- var disabledTimeConfig = disabledTime ? disabledTime(value) : {};
- disabledTimeConfig = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, defaultDisabledTime, disabledTimeConfig);
- return disabledTimeConfig;
- }
- function isTimeValidByConfig(value, disabledTimeConfig) {
- var invalidTime = false;
- if (value) {
- var hour = value.hour();
- var minutes = value.minute();
- var seconds = value.second();
- var disabledHours = disabledTimeConfig.disabledHours();
- if (disabledHours.indexOf(hour) === -1) {
- var disabledMinutes = disabledTimeConfig.disabledMinutes(hour);
- if (disabledMinutes.indexOf(minutes) === -1) {
- var disabledSeconds = disabledTimeConfig.disabledSeconds(hour, minutes);
- invalidTime = disabledSeconds.indexOf(seconds) !== -1;
- } else {
- invalidTime = true;
- }
- } else {
- invalidTime = true;
- }
- }
- return !invalidTime;
- }
- function isTimeValid(value, disabledTime) {
- var disabledTimeConfig = getTimeConfig(value, disabledTime);
- return isTimeValidByConfig(value, disabledTimeConfig);
- }
- function isAllowedDate(value, disabledDate, disabledTime) {
- if (disabledDate) {
- if (disabledDate(value)) {
- return false;
- }
- }
- if (disabledTime) {
- if (!isTimeValid(value, disabledTime)) {
- return false;
- }
- }
- return true;
- }
- function formatDate(value, format) {
- if (!value) {
- return '';
- }
- if (Array.isArray(format)) {
- format = format[0];
- }
- if (typeof format === 'function') {
- var result = format(value);
- if (typeof result === 'string') {
- return result;
- } else {
- throw new Error('The function of format does not return a string');
- }
- }
- return value.format(format);
- }
- /***/ }),
- /***/ "./components/vc-calendar/src/util/toTime.js":
- /*!***************************************************!*\
- !*** ./components/vc-calendar/src/util/toTime.js ***!
- \***************************************************/
- /*! exports provided: goStartMonth, goEndMonth, goTime, includesTime */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "goStartMonth", function() { return goStartMonth; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "goEndMonth", function() { return goEndMonth; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "goTime", function() { return goTime; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "includesTime", function() { return includesTime; });
- function goStartMonth(time) {
- return time.clone().startOf('month');
- }
- function goEndMonth(time) {
- return time.clone().endOf('month');
- }
- function goTime(time, direction, unit) {
- return time.clone().add(direction, unit);
- }
- function includesTime() {
- var timeList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var time = arguments[1];
- var unit = arguments[2];
- return timeList.some(function (t) {
- return t.isSame(time, unit);
- });
- }
- /***/ }),
- /***/ "./components/vc-calendar/src/year/YearPanel.jsx":
- /*!*******************************************************!*\
- !*** ./components/vc-calendar/src/year/YearPanel.jsx ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- var ROW = 4;
- var COL = 3;
- function noop() {}
- function goYear(direction) {
- var value = this.sValue.clone();
- value.add(direction, 'year');
- this.setState({
- sValue: value
- });
- }
- function chooseYear(year) {
- var value = this.sValue.clone();
- value.year(year);
- value.month(this.sValue.month());
- this.sValue = value;
- this.__emit('select', value);
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- },
- data: function data() {
- this.nextDecade = goYear.bind(this, 10);
- this.previousDecade = goYear.bind(this, -10);
- return {
- sValue: this.value || this.defaultValue
- };
- },
- watch: {
- value: function value(val) {
- this.sValue = val;
- }
- },
- methods: {
- years: function years() {
- var value = this.sValue;
- var currentYear = value.year();
- var startYear = parseInt(currentYear / 10, 10) * 10;
- var previousYear = startYear - 1;
- var years = [];
- var index = 0;
- for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
- years[rowIndex] = [];
- for (var colIndex = 0; colIndex < COL; colIndex++) {
- var year = previousYear + index;
- var content = String(year);
- years[rowIndex][colIndex] = {
- content: content,
- year: year,
- title: content
- };
- index++;
- }
- }
- return years;
- }
- },
- render: function render() {
- var _this = this;
- var h = arguments[0];
- var value = this.sValue,
- locale = this.locale,
- renderFooter = this.renderFooter,
- $props = this.$props;
- var decadePanelShow = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this).decadePanelShow || noop;
- var years = this.years();
- var currentYear = value.year();
- var startYear = parseInt(currentYear / 10, 10) * 10;
- var endYear = startYear + 9;
- var prefixCls = this.rootPrefixCls + '-year-panel';
- var disabledDate = $props.disabledDate;
- var yeasEls = years.map(function (row, index) {
- var tds = row.map(function (yearData) {
- var _classNameMap;
- var disabled = false;
- if (disabledDate) {
- var testValue = value.clone();
- testValue.year(yearData.year);
- disabled = disabledDate(testValue);
- }
- var classNameMap = (_classNameMap = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-selected-cell', yearData.year === currentYear), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-last-decade-cell', yearData.year < startYear), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-next-decade-cell', yearData.year > endYear), _classNameMap);
- var clickHandler = noop;
- if (yearData.year < startYear) {
- clickHandler = _this.previousDecade;
- } else if (yearData.year > endYear) {
- clickHandler = _this.nextDecade;
- } else {
- clickHandler = chooseYear.bind(_this, yearData.year);
- }
- return h(
- 'td',
- {
- attrs: {
- role: 'gridcell',
- title: yearData.title
- },
- key: yearData.content,
- on: {
- 'click': disabled ? noop : clickHandler
- },
- 'class': classNameMap
- },
- [h(
- 'a',
- { 'class': prefixCls + '-year' },
- [yearData.content]
- )]
- );
- });
- return h(
- 'tr',
- { key: index, attrs: { role: 'row' }
- },
- [tds]
- );
- });
- var footer = renderFooter && renderFooter('year');
- return h(
- 'div',
- { 'class': prefixCls },
- [h('div', [h(
- 'div',
- { 'class': prefixCls + '-header' },
- [h('a', {
- 'class': prefixCls + '-prev-decade-btn',
- attrs: { role: 'button',
- title: locale.previousDecade
- },
- on: {
- 'click': this.previousDecade
- }
- }), h(
- 'a',
- {
- 'class': prefixCls + '-decade-select',
- attrs: { role: 'button',
- title: locale.decadeSelect
- },
- on: {
- 'click': decadePanelShow
- }
- },
- [h(
- 'span',
- { 'class': prefixCls + '-decade-select-content' },
- [startYear, '-', endYear]
- ), h(
- 'span',
- { 'class': prefixCls + '-decade-select-arrow' },
- ['x']
- )]
- ), h('a', {
- 'class': prefixCls + '-next-decade-btn',
- attrs: { role: 'button',
- title: locale.nextDecade
- },
- on: {
- 'click': this.nextDecade
- }
- })]
- ), h(
- 'div',
- { 'class': prefixCls + '-body' },
- [h(
- 'table',
- { 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
- },
- [h(
- 'tbody',
- { 'class': prefixCls + '-tbody' },
- [yeasEls]
- )]
- )]
- ), footer && h(
- 'div',
- { 'class': prefixCls + '-footer' },
- [footer]
- )])]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-cascader/Cascader.jsx":
- /*!*********************************************!*\
- !*** ./components/vc-cascader/Cascader.jsx ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
- /* harmony import */ var _Menus__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Menus */ "./components/vc-cascader/Menus.jsx");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! array-tree-filter */ "./node_modules/array-tree-filter/lib/index.js");
- /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(array_tree_filter__WEBPACK_IMPORTED_MODULE_8__);
- /* harmony import */ var shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! shallow-equal/arrays */ "./node_modules/shallow-equal/arrays/index.js");
- /* harmony import */ var shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9__);
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- var BUILT_IN_PLACEMENTS = {
- bottomLeft: {
- points: ['tl', 'bl'],
- offset: [0, 4],
- overflow: {
- adjustX: 1,
- adjustY: 1
- }
- },
- topLeft: {
- points: ['bl', 'tl'],
- offset: [0, -4],
- overflow: {
- adjustX: 1,
- adjustY: 1
- }
- },
- bottomRight: {
- points: ['tr', 'br'],
- offset: [0, 4],
- overflow: {
- adjustX: 1,
- adjustY: 1
- }
- },
- topRight: {
- points: ['br', 'tr'],
- offset: [0, -4],
- overflow: {
- adjustX: 1,
- adjustY: 1
- }
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
- model: {
- prop: 'value',
- event: 'change'
- },
- props: {
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
- options: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
- // onChange: PropTypes.func,
- // onPopupVisibleChange: PropTypes.func,
- popupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def(''),
- popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def(''),
- popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
- return {};
- }),
- popupPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('bottomLeft'),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('rc-cascader'),
- dropdownMenuColumnStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(BUILT_IN_PLACEMENTS),
- loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- changeOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- // onKeyDown: PropTypes.func,
- expandTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('click'),
- fieldNames: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
- return {
- label: 'label',
- value: 'value',
- children: 'children'
- };
- }),
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- loadingIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func
- },
- data: function data() {
- var initialValue = [];
- var value = this.value,
- defaultValue = this.defaultValue,
- popupVisible = this.popupVisible;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
- initialValue = value || [];
- } else if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'defaultValue')) {
- initialValue = defaultValue || [];
- }
- // warning(!('filedNames' in props),
- // '`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead.');
- return {
- sPopupVisible: popupVisible,
- sActiveValue: initialValue,
- sValue: initialValue
- };
- },
- watch: {
- value: function value(val, oldValue) {
- if (!shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9___default()(val, oldValue)) {
- var newValues = {
- sValue: val || []
- };
- // allow activeValue diff from value
- // https://github.com/ant-design/ant-design/issues/2767
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'loadData')) {
- newValues.sActiveValue = val || [];
- }
- this.setState(newValues);
- }
- },
- popupVisible: function popupVisible(val) {
- this.setState({
- sPopupVisible: val
- });
- }
- },
- methods: {
- getPopupDOMNode: function getPopupDOMNode() {
- return this.$refs.trigger.getPopupDomNode();
- },
- getFieldName: function getFieldName(name) {
- var defaultFieldNames = this.defaultFieldNames,
- fieldNames = this.fieldNames;
- return fieldNames[name] || defaultFieldNames[name];
- },
- getFieldNames: function getFieldNames() {
- return this.fieldNames;
- },
- getCurrentLevelOptions: function getCurrentLevelOptions() {
- var _this = this;
- var _options = this.options,
- options = _options === undefined ? [] : _options,
- _sActiveValue = this.sActiveValue,
- sActiveValue = _sActiveValue === undefined ? [] : _sActiveValue;
- var result = array_tree_filter__WEBPACK_IMPORTED_MODULE_8___default()(options, function (o, level) {
- return o[_this.getFieldName('value')] === sActiveValue[level];
- }, { childrenKeyName: this.getFieldName('children') });
- if (result[result.length - 2]) {
- return result[result.length - 2][this.getFieldName('children')];
- }
- return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(options)).filter(function (o) {
- return !o.disabled;
- });
- },
- getActiveOptions: function getActiveOptions(activeValue) {
- var _this2 = this;
- return array_tree_filter__WEBPACK_IMPORTED_MODULE_8___default()(this.options || [], function (o, level) {
- return o[_this2.getFieldName('value')] === activeValue[level];
- }, { childrenKeyName: this.getFieldName('children') });
- },
- setPopupVisible: function setPopupVisible(popupVisible) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'popupVisible')) {
- this.setState({ sPopupVisible: popupVisible });
- }
- // sync activeValue with value when panel open
- if (popupVisible && !this.sPopupVisible) {
- this.setState({
- sActiveValue: this.sValue
- });
- }
- this.__emit('popupVisibleChange', popupVisible);
- },
- handleChange: function handleChange(options, setProps, e) {
- var _this3 = this;
- if (e.type !== 'keydown' || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
- this.__emit('change', options.map(function (o) {
- return o[_this3.getFieldName('value')];
- }), options);
- this.setPopupVisible(setProps.visible);
- }
- },
- handlePopupVisibleChange: function handlePopupVisibleChange(popupVisible) {
- this.setPopupVisible(popupVisible);
- },
- handleMenuSelect: function handleMenuSelect(targetOption, menuIndex, e) {
- // Keep focused state for keyboard support
- var triggerNode = this.$refs.trigger.getRootDomNode();
- if (triggerNode && triggerNode.focus) {
- triggerNode.focus();
- }
- var changeOnSelect = this.changeOnSelect,
- loadData = this.loadData,
- expandTrigger = this.expandTrigger;
- if (!targetOption || targetOption.disabled) {
- return;
- }
- var sActiveValue = this.sActiveValue;
- sActiveValue = sActiveValue.slice(0, menuIndex + 1);
- sActiveValue[menuIndex] = targetOption[this.getFieldName('value')];
- var activeOptions = this.getActiveOptions(sActiveValue);
- if (targetOption.isLeaf === false && !targetOption[this.getFieldName('children')] && loadData) {
- if (changeOnSelect) {
- this.handleChange(activeOptions, { visible: true }, e);
- }
- this.setState({ sActiveValue: sActiveValue });
- loadData(activeOptions);
- return;
- }
- var newState = {};
- if (!targetOption[this.getFieldName('children')] || !targetOption[this.getFieldName('children')].length) {
- this.handleChange(activeOptions, { visible: false }, e);
- // set value to activeValue when select leaf option
- newState.sValue = sActiveValue;
- // add e.type judgement to prevent `onChange` being triggered by mouseEnter
- } else if (changeOnSelect && (e.type === 'click' || e.type === 'keydown')) {
- if (expandTrigger === 'hover') {
- this.handleChange(activeOptions, { visible: false }, e);
- } else {
- this.handleChange(activeOptions, { visible: true }, e);
- }
- // set value to activeValue on every select
- newState.sValue = sActiveValue;
- }
- newState.sActiveValue = sActiveValue;
- // not change the value by keyboard
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value') || e.type === 'keydown' && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
- delete newState.sValue;
- }
- this.setState(newState);
- },
- handleItemDoubleClick: function handleItemDoubleClick() {
- var changeOnSelect = this.$props.changeOnSelect;
- if (changeOnSelect) {
- this.setPopupVisible(false);
- }
- },
- handleKeyDown: function handleKeyDown(e) {
- var _this4 = this;
- var $slots = this.$slots;
- var children = $slots['default'] && $slots['default'][0];
- // https://github.com/ant-design/ant-design/issues/6717
- // Don't bind keyboard support when children specify the onKeyDown
- if (children) {
- var keydown = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getEvents"])(children).keydown;
- if (keydown) {
- keydown(e);
- return;
- }
- }
- var activeValue = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.sActiveValue));
- var currentLevel = activeValue.length - 1 < 0 ? 0 : activeValue.length - 1;
- var currentOptions = this.getCurrentLevelOptions();
- var currentIndex = currentOptions.map(function (o) {
- return o[_this4.getFieldName('value')];
- }).indexOf(activeValue[currentLevel]);
- if (e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].SPACE && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ESC && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].TAB) {
- return;
- }
- // Press any keys above to reopen menu
- if (!this.sPopupVisible && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ESC && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].TAB) {
- this.setPopupVisible(true);
- return;
- }
- if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP) {
- e.preventDefault();
- var nextIndex = currentIndex;
- if (nextIndex !== -1) {
- if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN) {
- nextIndex += 1;
- nextIndex = nextIndex >= currentOptions.length ? 0 : nextIndex;
- } else {
- nextIndex -= 1;
- nextIndex = nextIndex < 0 ? currentOptions.length - 1 : nextIndex;
- }
- } else {
- nextIndex = 0;
- }
- activeValue[currentLevel] = currentOptions[nextIndex][this.getFieldName('value')];
- } else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE) {
- e.preventDefault();
- activeValue.splice(activeValue.length - 1, 1);
- } else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT) {
- e.preventDefault();
- if (currentOptions[currentIndex] && currentOptions[currentIndex][this.getFieldName('children')]) {
- activeValue.push(currentOptions[currentIndex][this.getFieldName('children')][0][this.getFieldName('value')]);
- }
- } else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ESC || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].TAB) {
- this.setPopupVisible(false);
- return;
- }
- if (!activeValue || activeValue.length === 0) {
- this.setPopupVisible(false);
- }
- var activeOptions = this.getActiveOptions(activeValue);
- var targetOption = activeOptions[activeOptions.length - 1];
- this.handleMenuSelect(targetOption, activeOptions.length - 1, e);
- this.__emit('keydown', e);
- }
- },
- render: function render() {
- var h = arguments[0];
- var $props = this.$props,
- sActiveValue = this.sActiveValue,
- handleMenuSelect = this.handleMenuSelect,
- sPopupVisible = this.sPopupVisible,
- handlePopupVisibleChange = this.handlePopupVisibleChange,
- handleKeyDown = this.handleKeyDown;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this);
- var prefixCls = $props.prefixCls,
- transitionName = $props.transitionName,
- popupClassName = $props.popupClassName,
- _$props$options = $props.options,
- options = _$props$options === undefined ? [] : _$props$options,
- disabled = $props.disabled,
- builtinPlacements = $props.builtinPlacements,
- popupPlacement = $props.popupPlacement,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()($props, ['prefixCls', 'transitionName', 'popupClassName', 'options', 'disabled', 'builtinPlacements', 'popupPlacement']);
- // Did not show popup when there is no options
- var menus = h('div');
- var emptyMenuClassName = '';
- if (options && options.length > 0) {
- var loadingIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'loadingIcon');
- var expandIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'expandIcon') || '>';
- var menusProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, $props, {
- fieldNames: this.getFieldNames(),
- defaultFieldNames: this.defaultFieldNames,
- activeValue: sActiveValue,
- visible: sPopupVisible,
- loadingIcon: loadingIcon,
- expandIcon: expandIcon
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
- select: handleMenuSelect,
- itemDoubleClick: this.handleItemDoubleClick
- })
- };
- menus = h(_Menus__WEBPACK_IMPORTED_MODULE_6__["default"], menusProps);
- } else {
- emptyMenuClassName = ' ' + prefixCls + '-menus-empty';
- }
- var triggerProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps, {
- disabled: disabled,
- popupPlacement: popupPlacement,
- builtinPlacements: builtinPlacements,
- popupTransitionName: transitionName,
- action: disabled ? [] : ['click'],
- popupVisible: disabled ? false : sPopupVisible,
- prefixCls: prefixCls + '-menus',
- popupClassName: popupClassName + emptyMenuClassName
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
- popupVisibleChange: handlePopupVisibleChange
- }),
- ref: 'trigger'
- };
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getSlot"])(this, 'default')[0];
- return h(
- _vc_trigger__WEBPACK_IMPORTED_MODULE_5__["default"],
- triggerProps,
- [children && Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(children, {
- on: {
- keydown: handleKeyDown
- },
- attrs: {
- tabIndex: disabled ? undefined : 0
- }
- }), h(
- 'template',
- { slot: 'popup' },
- [menus]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-cascader/Menus.jsx":
- /*!******************************************!*\
- !*** ./components/vc-cascader/Menus.jsx ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! array-tree-filter */ "./node_modules/array-tree-filter/lib/index.js");
- /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(array_tree_filter__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'CascaderMenus',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: {
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.def([]),
- activeValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.def([]),
- options: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-cascader-menus'),
- expandTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('click'),
- // onSelect: PropTypes.func,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
- dropdownMenuColumnStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- defaultFieldNames: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- fieldNames: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- loadingIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- },
- data: function data() {
- this.menuItems = {};
- return {};
- },
- watch: {
- visible: function visible(val) {
- var _this = this;
- if (val) {
- this.$nextTick(function () {
- _this.scrollActiveItemToView();
- });
- }
- }
- },
- mounted: function mounted() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.scrollActiveItemToView();
- });
- },
- methods: {
- getFieldName: function getFieldName(name) {
- var _$props = this.$props,
- fieldNames = _$props.fieldNames,
- defaultFieldNames = _$props.defaultFieldNames;
- // 防止只设置单个属性的名字
- return fieldNames[name] || defaultFieldNames[name];
- },
- getOption: function getOption(option, menuIndex) {
- var _this3 = this;
- var h = this.$createElement;
- var prefixCls = this.prefixCls,
- expandTrigger = this.expandTrigger;
- var loadingIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_0__["getComponentFromProp"])(this, 'loadingIcon');
- var expandIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_0__["getComponentFromProp"])(this, 'expandIcon');
- var onSelect = function onSelect(e) {
- _this3.__emit('select', option, menuIndex, e);
- };
- var onItemDoubleClick = function onItemDoubleClick(e) {
- _this3.__emit('itemDoubleClick', option, menuIndex, e);
- };
- var key = option[this.getFieldName('value')];
- var expandProps = {
- attrs: {
- role: 'menuitem'
- },
- on: {
- click: onSelect,
- dblclick: onItemDoubleClick,
- mousedown: function mousedown(e) {
- return e.preventDefault();
- }
- },
- key: Array.isArray(key) ? key.join('__ant__') : key
- };
- var menuItemCls = prefixCls + '-menu-item';
- var expandIconNode = null;
- var hasChildren = option[this.getFieldName('children')] && option[this.getFieldName('children')].length > 0;
- if (hasChildren || option.isLeaf === false) {
- menuItemCls += ' ' + prefixCls + '-menu-item-expand';
- if (!option.loading) {
- expandIconNode = h(
- 'span',
- { 'class': prefixCls + '-menu-item-expand-icon' },
- [expandIcon]
- );
- }
- }
- if (expandTrigger === 'hover' && (hasChildren || option.isLeaf === false)) {
- expandProps.on = {
- mouseenter: this.delayOnSelect.bind(this, onSelect),
- mouseleave: this.delayOnSelect.bind(this),
- click: onSelect
- };
- }
- if (this.isActiveOption(option, menuIndex)) {
- menuItemCls += ' ' + prefixCls + '-menu-item-active';
- expandProps.ref = this.getMenuItemRef(menuIndex);
- }
- if (option.disabled) {
- menuItemCls += ' ' + prefixCls + '-menu-item-disabled';
- }
- var loadingIconNode = null;
- if (option.loading) {
- menuItemCls += ' ' + prefixCls + '-menu-item-loading';
- loadingIconNode = loadingIcon || null;
- }
- var title = '';
- if (option.title) {
- title = option.title;
- } else if (typeof option[this.getFieldName('label')] === 'string') {
- title = option[this.getFieldName('label')];
- }
- expandProps.attrs.title = title;
- expandProps['class'] = menuItemCls;
- return h(
- 'li',
- expandProps,
- [option[this.getFieldName('label')], expandIconNode, loadingIconNode]
- );
- },
- getActiveOptions: function getActiveOptions(values) {
- var _this4 = this;
- var activeValue = values || this.activeValue;
- var options = this.options;
- return array_tree_filter__WEBPACK_IMPORTED_MODULE_2___default()(options, function (o, level) {
- return o[_this4.getFieldName('value')] === activeValue[level];
- }, { childrenKeyName: this.getFieldName('children') });
- },
- getShowOptions: function getShowOptions() {
- var _this5 = this;
- var options = this.options;
- var result = this.getActiveOptions().map(function (activeOption) {
- return activeOption[_this5.getFieldName('children')];
- }).filter(function (activeOption) {
- return !!activeOption;
- });
- result.unshift(options);
- return result;
- },
- delayOnSelect: function delayOnSelect(onSelect) {
- var _this6 = this;
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
- if (this.delayTimer) {
- clearTimeout(this.delayTimer);
- this.delayTimer = null;
- }
- if (typeof onSelect === 'function') {
- this.delayTimer = setTimeout(function () {
- onSelect(args);
- _this6.delayTimer = null;
- }, 150);
- }
- },
- scrollActiveItemToView: function scrollActiveItemToView() {
- // scroll into view
- var optionsLength = this.getShowOptions().length;
- for (var i = 0; i < optionsLength; i++) {
- var itemComponent = this.$refs['menuItems_' + i];
- if (itemComponent) {
- var target = itemComponent;
- target.parentNode.scrollTop = target.offsetTop;
- }
- }
- },
- isActiveOption: function isActiveOption(option, menuIndex) {
- var _activeValue = this.activeValue,
- activeValue = _activeValue === undefined ? [] : _activeValue;
- return activeValue[menuIndex] === option[this.getFieldName('value')];
- },
- getMenuItemRef: function getMenuItemRef(index) {
- return 'menuItems_' + index;
- }
- },
- render: function render() {
- var _this7 = this;
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- dropdownMenuColumnStyle = this.dropdownMenuColumnStyle;
- return h('div', [this.getShowOptions().map(function (options, menuIndex) {
- return h(
- 'ul',
- { 'class': prefixCls + '-menu', key: menuIndex, style: dropdownMenuColumnStyle },
- [options.map(function (option) {
- return _this7.getOption(option, menuIndex);
- })]
- );
- })]);
- }
- });
- /***/ }),
- /***/ "./components/vc-cascader/index.js":
- /*!*****************************************!*\
- !*** ./components/vc-cascader/index.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Cascader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Cascader */ "./components/vc-cascader/Cascader.jsx");
- // based on rc-cascader 0.17.4
- /* harmony default export */ __webpack_exports__["default"] = (_Cascader__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-checkbox/index.js":
- /*!*****************************************!*\
- !*** ./components/vc-checkbox/index.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/ */ "./components/vc-checkbox/src/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _src___WEBPACK_IMPORTED_MODULE_0__["default"]; });
- // based on rc-checkbox 2.1.7
- /***/ }),
- /***/ "./components/vc-checkbox/src/Checkbox.jsx":
- /*!*************************************************!*\
- !*** ./components/vc-checkbox/src/Checkbox.jsx ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Checkbox',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
- inheritAttrs: false,
- model: {
- prop: 'checked',
- event: 'change'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- id: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
- checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- // onFocus: PropTypes.func,
- // onBlur: PropTypes.func,
- // onChange: PropTypes.func,
- // onClick: PropTypes.func,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
- readOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
- }, {
- prefixCls: 'rc-checkbox',
- type: 'checkbox',
- defaultChecked: false
- }),
- data: function data() {
- var checked = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'checked') ? this.checked : this.defaultChecked;
- return {
- sChecked: checked
- };
- },
- watch: {
- checked: function checked(val) {
- this.sChecked = val;
- }
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.autoFocus) {
- _this.$refs.input && _this.$refs.input.focus();
- }
- });
- },
- methods: {
- focus: function focus() {
- this.$refs.input.focus();
- },
- blur: function blur() {
- this.$refs.input.blur();
- },
- handleChange: function handleChange(e) {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
- if (props.disabled) {
- return;
- }
- if (!('checked' in props)) {
- this.sChecked = e.target.checked;
- }
- this.$forceUpdate(); // change前,维持现有状态
- e.shiftKey = this.eventShiftKey;
- this.__emit('change', {
- target: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, props, {
- checked: e.target.checked
- }),
- stopPropagation: function stopPropagation() {
- e.stopPropagation();
- },
- preventDefault: function preventDefault() {
- e.preventDefault();
- },
- nativeEvent: e
- });
- this.eventShiftKey = false;
- // fix https://github.com/vueComponent/ant-design-vue/issues/3047
- if ('checked' in props) {
- this.$refs.input.checked = props.checked;
- }
- },
- onClick: function onClick(e) {
- this.__emit('click', e);
- // onChange没能获取到shiftKey,使用onClick hack
- this.eventShiftKey = e.shiftKey;
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
- prefixCls = _getOptionProps.prefixCls,
- name = _getOptionProps.name,
- id = _getOptionProps.id,
- type = _getOptionProps.type,
- disabled = _getOptionProps.disabled,
- readOnly = _getOptionProps.readOnly,
- tabIndex = _getOptionProps.tabIndex,
- autoFocus = _getOptionProps.autoFocus,
- value = _getOptionProps.value,
- others = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps, ['prefixCls', 'name', 'id', 'type', 'disabled', 'readOnly', 'tabIndex', 'autoFocus', 'value']);
- var attrs = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getAttrs"])(this);
- var globalProps = Object.keys(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, others, attrs)).reduce(function (prev, key) {
- if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
- prev[key] = others[key];
- }
- return prev;
- }, {});
- var sChecked = this.sChecked;
- var classString = classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-checked', sChecked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
- return h(
- 'span',
- { 'class': classString },
- [h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- name: name,
- id: id,
- type: type,
- readOnly: readOnly,
- disabled: disabled,
- tabIndex: tabIndex,
- autoFocus: autoFocus
- },
- 'class': prefixCls + '-input',
- domProps: {
- 'checked': !!sChecked,
- 'value': value
- },
- ref: 'input'
- }, {
- attrs: globalProps,
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
- change: this.handleChange,
- click: this.onClick
- })
- }])), h('span', { 'class': prefixCls + '-inner' })]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-checkbox/src/index.js":
- /*!*********************************************!*\
- !*** ./components/vc-checkbox/src/index.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Checkbox */ "./components/vc-checkbox/src/Checkbox.jsx");
- /* harmony default export */ __webpack_exports__["default"] = (_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-collapse/index.js":
- /*!*****************************************!*\
- !*** ./components/vc-collapse/index.js ***!
- \*****************************************/
- /*! exports provided: collapseProps, panelProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _src_Panel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/Panel */ "./components/vc-collapse/src/Panel.jsx");
- /* harmony import */ var _src_Collapse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Collapse */ "./components/vc-collapse/src/Collapse.jsx");
- /* harmony import */ var _src_commonProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/commonProps */ "./components/vc-collapse/src/commonProps.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "collapseProps", function() { return _src_commonProps__WEBPACK_IMPORTED_MODULE_2__["collapseProps"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "panelProps", function() { return _src_commonProps__WEBPACK_IMPORTED_MODULE_2__["panelProps"]; });
- // based on rc-collapse 1.11.8
- _src_Collapse__WEBPACK_IMPORTED_MODULE_1__["default"].Panel = _src_Panel__WEBPACK_IMPORTED_MODULE_0__["default"];
- /* harmony default export */ __webpack_exports__["default"] = (_src_Collapse__WEBPACK_IMPORTED_MODULE_1__["default"]);
- /***/ }),
- /***/ "./components/vc-collapse/src/Collapse.jsx":
- /*!*************************************************!*\
- !*** ./components/vc-collapse/src/Collapse.jsx ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _openAnimationFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./openAnimationFactory */ "./components/vc-collapse/src/openAnimationFactory.js");
- /* harmony import */ var _commonProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonProps */ "./components/vc-collapse/src/commonProps.js");
- function _toArray(activeKey) {
- var currentActiveKey = activeKey;
- if (!Array.isArray(currentActiveKey)) {
- currentActiveKey = currentActiveKey ? [currentActiveKey] : [];
- }
- return currentActiveKey.map(function (key) {
- return String(key);
- });
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Collapse',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- model: {
- prop: 'activeKey',
- event: 'change'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(Object(_commonProps__WEBPACK_IMPORTED_MODULE_6__["collapseProps"])(), {
- prefixCls: 'rc-collapse',
- accordion: false,
- destroyInactivePanel: false
- }),
- data: function data() {
- var _$props = this.$props,
- activeKey = _$props.activeKey,
- defaultActiveKey = _$props.defaultActiveKey,
- openAnimation = _$props.openAnimation,
- prefixCls = _$props.prefixCls;
- var currentActiveKey = defaultActiveKey;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'activeKey')) {
- currentActiveKey = activeKey;
- }
- var currentOpenAnimations = openAnimation || Object(_openAnimationFactory__WEBPACK_IMPORTED_MODULE_5__["default"])(prefixCls);
- return {
- currentOpenAnimations: currentOpenAnimations,
- stateActiveKey: _toArray(currentActiveKey)
- };
- },
- watch: {
- activeKey: function activeKey(val) {
- this.setState({
- stateActiveKey: _toArray(val)
- });
- },
- openAnimation: function openAnimation(val) {
- this.setState({
- currentOpenAnimations: val
- });
- }
- },
- methods: {
- onClickItem: function onClickItem(key) {
- var activeKey = this.stateActiveKey;
- if (this.accordion) {
- activeKey = activeKey[0] === key ? [] : [key];
- } else {
- activeKey = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(activeKey));
- var index = activeKey.indexOf(key);
- var isActive = index > -1;
- if (isActive) {
- // remove active state
- activeKey.splice(index, 1);
- } else {
- activeKey.push(key);
- }
- }
- this.setActiveKey(activeKey);
- },
- getNewChild: function getNewChild(child, index) {
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["isEmptyElement"])(child)) return;
- var activeKey = this.stateActiveKey;
- var _$props2 = this.$props,
- prefixCls = _$props2.prefixCls,
- accordion = _$props2.accordion,
- destroyInactivePanel = _$props2.destroyInactivePanel,
- expandIcon = _$props2.expandIcon;
- // If there is no key provide, use the panel order as default key
- var key = child.key || String(index);
- var _getPropsData = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getPropsData"])(child),
- header = _getPropsData.header,
- headerClass = _getPropsData.headerClass,
- disabled = _getPropsData.disabled;
- var isActive = false;
- if (accordion) {
- isActive = activeKey[0] === key;
- } else {
- isActive = activeKey.indexOf(key) > -1;
- }
- var panelEvents = {};
- if (!disabled && disabled !== '') {
- panelEvents = {
- itemClick: this.onClickItem
- };
- }
- var props = {
- key: key,
- props: {
- panelKey: key,
- header: header,
- headerClass: headerClass,
- isActive: isActive,
- prefixCls: prefixCls,
- destroyInactivePanel: destroyInactivePanel,
- openAnimation: this.currentOpenAnimations,
- accordion: accordion,
- expandIcon: expandIcon
- },
- on: panelEvents
- };
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(child, props);
- },
- getItems: function getItems() {
- var _this = this;
- var newChildren = [];
- this.$slots['default'] && this.$slots['default'].forEach(function (child, index) {
- newChildren.push(_this.getNewChild(child, index));
- });
- return newChildren;
- },
- setActiveKey: function setActiveKey(activeKey) {
- this.setState({ stateActiveKey: activeKey });
- this.$emit('change', this.accordion ? activeKey[0] : activeKey);
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$props3 = this.$props,
- prefixCls = _$props3.prefixCls,
- accordion = _$props3.accordion;
- var collapseClassName = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls, true);
- return h(
- 'div',
- { 'class': collapseClassName, attrs: { role: accordion ? 'tablist' : null }
- },
- [this.getItems()]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-collapse/src/Panel.jsx":
- /*!**********************************************!*\
- !*** ./components/vc-collapse/src/Panel.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _PanelContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PanelContent */ "./components/vc-collapse/src/PanelContent.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _commonProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commonProps */ "./components/vc-collapse/src/commonProps.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Panel',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(Object(_commonProps__WEBPACK_IMPORTED_MODULE_4__["panelProps"])(), {
- showArrow: true,
- isActive: false,
- destroyInactivePanel: false,
- headerClass: '',
- forceRender: false
- }),
- methods: {
- handleItemClick: function handleItemClick() {
- this.$emit('itemClick', this.panelKey);
- },
- handleKeyPress: function handleKeyPress(e) {
- if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {
- this.handleItemClick();
- }
- }
- },
- render: function render() {
- var _headerCls, _itemCls;
- var h = arguments[0];
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- headerClass = _$props.headerClass,
- isActive = _$props.isActive,
- showArrow = _$props.showArrow,
- destroyInactivePanel = _$props.destroyInactivePanel,
- disabled = _$props.disabled,
- openAnimation = _$props.openAnimation,
- accordion = _$props.accordion,
- forceRender = _$props.forceRender,
- expandIcon = _$props.expandIcon,
- extra = _$props.extra;
- var $slots = this.$slots;
- var transitionProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- appear: true,
- css: false
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, openAnimation)
- };
- var headerCls = (_headerCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_headerCls, prefixCls + '-header', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_headerCls, headerClass, headerClass), _headerCls);
- var header = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'header');
- var itemCls = (_itemCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_itemCls, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_itemCls, prefixCls + '-item-active', isActive), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_itemCls, prefixCls + '-item-disabled', disabled), _itemCls);
- var icon = h('i', { 'class': 'arrow' });
- if (showArrow && typeof expandIcon === 'function') {
- icon = expandIcon(this.$props);
- }
- return h(
- 'div',
- { 'class': itemCls, attrs: { role: 'tablist' }
- },
- [h(
- 'div',
- {
- 'class': headerCls,
- on: {
- 'click': this.handleItemClick.bind(this),
- 'keypress': this.handleKeyPress
- },
- attrs: {
- role: accordion ? 'tab' : 'button',
- tabIndex: disabled ? -1 : 0,
- 'aria-expanded': isActive
- }
- },
- [showArrow && icon, header, extra && h(
- 'div',
- { 'class': prefixCls + '-extra' },
- [extra]
- )]
- ), h(
- 'transition',
- transitionProps,
- [h(
- _PanelContent__WEBPACK_IMPORTED_MODULE_2__["default"],
- {
- directives: [{
- name: 'show',
- value: isActive
- }],
- attrs: {
- prefixCls: prefixCls,
- isActive: isActive,
- destroyInactivePanel: destroyInactivePanel,
- forceRender: forceRender,
- role: accordion ? 'tabpanel' : null
- }
- },
- [$slots['default']]
- )]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-collapse/src/PanelContent.jsx":
- /*!*****************************************************!*\
- !*** ./components/vc-collapse/src/PanelContent.jsx ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'PanelContent',
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- isActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- destroyInactivePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- role: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- },
- data: function data() {
- return {
- _isActive: undefined
- };
- },
- render: function render() {
- var _contentCls;
- var h = arguments[0];
- this._isActive = this.forceRender || this._isActive || this.isActive;
- if (!this._isActive) {
- return null;
- }
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- isActive = _$props.isActive,
- destroyInactivePanel = _$props.destroyInactivePanel,
- forceRender = _$props.forceRender,
- role = _$props.role;
- var $slots = this.$slots;
- var contentCls = (_contentCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_contentCls, prefixCls + '-content', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_contentCls, prefixCls + '-content-active', isActive), _contentCls);
- var child = !forceRender && !isActive && destroyInactivePanel ? null : h(
- 'div',
- { 'class': prefixCls + '-content-box' },
- [$slots['default']]
- );
- return h(
- 'div',
- { 'class': contentCls, attrs: { role: role }
- },
- [child]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-collapse/src/commonProps.js":
- /*!***************************************************!*\
- !*** ./components/vc-collapse/src/commonProps.js ***!
- \***************************************************/
- /*! exports provided: collapseProps, panelProps */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "collapseProps", function() { return collapseProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "panelProps", function() { return panelProps; });
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- var collapseProps = function collapseProps() {
- return {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]))]),
- defaultActiveKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]))]),
- accordion: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- destroyInactivePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- expandIconPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['left', 'right'])
- };
- };
- var panelProps = function panelProps() {
- return {
- openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- header: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].node]),
- headerClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- isActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- destroyInactivePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- accordion: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- panelKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- };
- };
- /***/ }),
- /***/ "./components/vc-collapse/src/openAnimationFactory.js":
- /*!************************************************************!*\
- !*** ./components/vc-collapse/src/openAnimationFactory.js ***!
- \************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_css_animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/css-animation */ "./components/_util/css-animation/index.js");
- function animate(node, show, transitionName, done) {
- var height = void 0;
- return Object(_util_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(node, transitionName, {
- start: function start() {
- if (!show) {
- node.style.height = node.offsetHeight + 'px';
- } else {
- height = node.offsetHeight;
- node.style.height = 0;
- }
- },
- active: function active() {
- node.style.height = (show ? height : 0) + 'px';
- },
- end: function end() {
- node.style.height = '';
- done();
- }
- });
- }
- function animation(prefixCls) {
- return {
- enter: function enter(node, done) {
- return animate(node, true, prefixCls + '-anim', done);
- },
- leave: function leave(node, done) {
- return animate(node, false, prefixCls + '-anim', done);
- }
- };
- }
- /* harmony default export */ __webpack_exports__["default"] = (animation);
- /***/ }),
- /***/ "./components/vc-dialog/Dialog.jsx":
- /*!*****************************************!*\
- !*** ./components/vc-dialog/Dialog.jsx ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
- /* harmony import */ var _LazyRenderBox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LazyRenderBox */ "./components/vc-dialog/LazyRenderBox.jsx");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- /* harmony import */ var _util_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/switchScrollingEffect */ "./components/_util/switchScrollingEffect.js");
- /* harmony import */ var _IDialogPropTypes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./IDialogPropTypes */ "./components/vc-dialog/IDialogPropTypes.js");
- var IDialogPropTypes = Object(_IDialogPropTypes__WEBPACK_IMPORTED_MODULE_10__["default"])();
- var uuid = 0;
- function noop() {}
- function getScroll(w, top) {
- var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];
- var method = 'scroll' + (top ? 'Top' : 'Left');
- if (typeof ret !== 'number') {
- var d = w.document;
- ret = d.documentElement[method];
- if (typeof ret !== 'number') {
- ret = d.body[method];
- }
- }
- return ret;
- }
- function setTransformOrigin(node, value) {
- var style = node.style;
- ['Webkit', 'Moz', 'Ms', 'ms'].forEach(function (prefix) {
- style[prefix + 'TransformOrigin'] = value;
- });
- style['transformOrigin'] = value;
- }
- function offset(el) {
- var rect = el.getBoundingClientRect();
- var pos = {
- left: rect.left,
- top: rect.top
- };
- var doc = el.ownerDocument;
- var w = doc.defaultView || doc.parentWindow;
- pos.left += getScroll(w);
- pos.top += getScroll(w, true);
- return pos;
- }
- var cacheOverflow = {};
- /* harmony default export */ __webpack_exports__["default"] = ({
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(IDialogPropTypes, {
- mask: true,
- visible: false,
- keyboard: true,
- closable: true,
- maskClosable: true,
- destroyOnClose: false,
- prefixCls: 'rc-dialog',
- getOpenCount: function getOpenCount() {
- return null;
- },
- focusTriggerAfterClose: true
- }),
- data: function data() {
- return {
- destroyPopup: false
- };
- },
- provide: function provide() {
- return {
- dialogContext: this
- };
- },
- watch: {
- visible: function visible(val) {
- var _this = this;
- if (val) {
- this.destroyPopup = false;
- }
- this.$nextTick(function () {
- _this.updatedCallback(!val);
- });
- }
- },
- beforeMount: function beforeMount() {
- this.inTransition = false;
- this.titleId = 'rcDialogTitle' + uuid++;
- },
- mounted: function mounted() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.updatedCallback(false);
- // if forceRender is true, set element style display to be none;
- if ((_this2.forceRender || _this2.getContainer === false && !_this2.visible) && _this2.$refs.wrap) {
- _this2.$refs.wrap.style.display = 'none';
- }
- });
- },
- beforeDestroy: function beforeDestroy() {
- var visible = this.visible,
- getOpenCount = this.getOpenCount;
- if ((visible || this.inTransition) && !getOpenCount()) {
- this.switchScrollingEffect();
- }
- clearTimeout(this.timeoutId);
- },
- methods: {
- // 对外暴露的 api 不要更改名称或删除
- getDialogWrap: function getDialogWrap() {
- return this.$refs.wrap;
- },
- updatedCallback: function updatedCallback(visible) {
- var mousePosition = this.mousePosition;
- var mask = this.mask,
- focusTriggerAfterClose = this.focusTriggerAfterClose;
- if (this.visible) {
- // first show
- if (!visible) {
- this.openTime = Date.now();
- // this.lastOutSideFocusNode = document.activeElement
- this.switchScrollingEffect();
- // this.$refs.wrap.focus()
- this.tryFocus();
- var dialogNode = this.$refs.dialog.$el;
- if (mousePosition) {
- var elOffset = offset(dialogNode);
- setTransformOrigin(dialogNode, mousePosition.x - elOffset.left + 'px ' + (mousePosition.y - elOffset.top) + 'px');
- } else {
- setTransformOrigin(dialogNode, '');
- }
- }
- } else if (visible) {
- this.inTransition = true;
- if (mask && this.lastOutSideFocusNode && focusTriggerAfterClose) {
- try {
- this.lastOutSideFocusNode.focus();
- } catch (e) {
- this.lastOutSideFocusNode = null;
- }
- this.lastOutSideFocusNode = null;
- }
- }
- },
- tryFocus: function tryFocus() {
- if (!Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_5__["default"])(this.$refs.wrap, document.activeElement)) {
- this.lastOutSideFocusNode = document.activeElement;
- this.$refs.sentinelStart.focus();
- }
- },
- onAnimateLeave: function onAnimateLeave() {
- var afterClose = this.afterClose,
- destroyOnClose = this.destroyOnClose;
- // need demo?
- // https://github.com/react-component/dialog/pull/28
- if (this.$refs.wrap) {
- this.$refs.wrap.style.display = 'none';
- }
- if (destroyOnClose) {
- this.destroyPopup = true;
- }
- this.inTransition = false;
- this.switchScrollingEffect();
- if (afterClose) {
- afterClose();
- }
- },
- onDialogMouseDown: function onDialogMouseDown() {
- this.dialogMouseDown = true;
- },
- onMaskMouseUp: function onMaskMouseUp() {
- var _this3 = this;
- if (this.dialogMouseDown) {
- this.timeoutId = setTimeout(function () {
- _this3.dialogMouseDown = false;
- }, 0);
- }
- },
- onMaskClick: function onMaskClick(e) {
- // android trigger click on open (fastclick??)
- if (Date.now() - this.openTime < 300) {
- return;
- }
- if (e.target === e.currentTarget && !this.dialogMouseDown) {
- this.close(e);
- }
- },
- onKeydown: function onKeydown(e) {
- var props = this.$props;
- if (props.keyboard && e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ESC) {
- e.stopPropagation();
- this.close(e);
- return;
- }
- // keep focus inside dialog
- if (props.visible) {
- if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].TAB) {
- var activeElement = document.activeElement;
- var sentinelStart = this.$refs.sentinelStart;
- if (e.shiftKey) {
- if (activeElement === sentinelStart) {
- this.$refs.sentinelEnd.focus();
- }
- } else if (activeElement === this.$refs.sentinelEnd) {
- sentinelStart.focus();
- }
- }
- }
- },
- getDialogElement: function getDialogElement() {
- var h = this.$createElement;
- var closable = this.closable,
- prefixCls = this.prefixCls,
- width = this.width,
- height = this.height,
- title = this.title,
- tempFooter = this.footer,
- bodyStyle = this.bodyStyle,
- visible = this.visible,
- bodyProps = this.bodyProps,
- forceRender = this.forceRender,
- dialogStyle = this.dialogStyle,
- dialogClass = this.dialogClass;
- var dest = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, dialogStyle);
- if (width !== undefined) {
- dest.width = typeof width === 'number' ? width + 'px' : width;
- }
- if (height !== undefined) {
- dest.height = typeof height === 'number' ? height + 'px' : height;
- }
- var footer = void 0;
- if (tempFooter) {
- footer = h(
- 'div',
- { key: 'footer', 'class': prefixCls + '-footer', ref: 'footer' },
- [tempFooter]
- );
- }
- var header = void 0;
- if (title) {
- header = h(
- 'div',
- { key: 'header', 'class': prefixCls + '-header', ref: 'header' },
- [h(
- 'div',
- { 'class': prefixCls + '-title', attrs: { id: this.titleId }
- },
- [title]
- )]
- );
- }
- var closer = void 0;
- if (closable) {
- var closeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'closeIcon');
- closer = h(
- 'button',
- {
- attrs: {
- type: 'button',
- 'aria-label': 'Close'
- },
- key: 'close',
- on: {
- 'click': this.close || noop
- },
- 'class': prefixCls + '-close'
- },
- [closeIcon || h('span', { 'class': prefixCls + '-close-x' })]
- );
- }
- var style = dest;
- var sentinelStyle = { width: 0, height: 0, overflow: 'hidden' };
- var cls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls, true);
- var transitionName = this.getTransitionName();
- var dialogElement = h(
- _LazyRenderBox__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- directives: [{
- name: 'show',
- value: visible
- }],
- key: 'dialog-element',
- attrs: { role: 'document',
- forceRender: forceRender
- },
- ref: 'dialog',
- style: style,
- 'class': [cls, dialogClass], on: {
- 'mousedown': this.onDialogMouseDown
- }
- },
- [h('div', {
- attrs: { tabIndex: 0, 'aria-hidden': 'true' },
- ref: 'sentinelStart', style: sentinelStyle }), h(
- 'div',
- { 'class': prefixCls + '-content' },
- [closer, header, h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'body', 'class': prefixCls + '-body', style: bodyStyle, ref: 'body' }, bodyProps]),
- [this.$slots['default']]
- ), footer]
- ), h('div', {
- attrs: { tabIndex: 0, 'aria-hidden': 'true' },
- ref: 'sentinelEnd', style: sentinelStyle })]
- );
- var dialogTransitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__["default"])(transitionName, {
- afterLeave: this.onAnimateLeave
- });
- return h(
- 'transition',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'dialog' }, dialogTransitionProps]),
- [visible || !this.destroyPopup ? dialogElement : null]
- );
- },
- getZIndexStyle: function getZIndexStyle() {
- var style = {};
- var props = this.$props;
- if (props.zIndex !== undefined) {
- style.zIndex = props.zIndex;
- }
- return style;
- },
- getWrapStyle: function getWrapStyle() {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getZIndexStyle(), this.wrapStyle);
- },
- getMaskStyle: function getMaskStyle() {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getZIndexStyle(), this.maskStyle);
- },
- getMaskElement: function getMaskElement() {
- var h = this.$createElement;
- var props = this.$props;
- var maskElement = void 0;
- if (props.mask) {
- var maskTransition = this.getMaskTransitionName();
- maskElement = h(_LazyRenderBox__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- directives: [{
- name: 'show',
- value: props.visible
- }],
- style: this.getMaskStyle(),
- key: 'mask',
- 'class': props.prefixCls + '-mask'
- }, props.maskProps]));
- if (maskTransition) {
- var maskTransitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__["default"])(maskTransition);
- maskElement = h(
- 'transition',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'mask' }, maskTransitionProps]),
- [maskElement]
- );
- }
- }
- return maskElement;
- },
- getMaskTransitionName: function getMaskTransitionName() {
- var props = this.$props;
- var transitionName = props.maskTransitionName;
- var animation = props.maskAnimation;
- if (!transitionName && animation) {
- transitionName = props.prefixCls + '-' + animation;
- }
- return transitionName;
- },
- getTransitionName: function getTransitionName() {
- var props = this.$props;
- var transitionName = props.transitionName;
- var animation = props.animation;
- if (!transitionName && animation) {
- transitionName = props.prefixCls + '-' + animation;
- }
- return transitionName;
- },
- // setScrollbar() {
- // if (this.bodyIsOverflowing && this.scrollbarWidth !== undefined) {
- // document.body.style.paddingRight = `${this.scrollbarWidth}px`;
- // }
- // },
- switchScrollingEffect: function switchScrollingEffect() {
- var getOpenCount = this.getOpenCount;
- var openCount = getOpenCount();
- if (openCount === 1) {
- if (cacheOverflow.hasOwnProperty('overflowX')) {
- return;
- }
- cacheOverflow = {
- overflowX: document.body.style.overflowX,
- overflowY: document.body.style.overflowY,
- overflow: document.body.style.overflow
- };
- Object(_util_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_9__["default"])();
- // Must be set after switchScrollingEffect
- document.body.style.overflow = 'hidden';
- } else if (!openCount) {
- // IE browser doesn't merge overflow style, need to set it separately
- // https://github.com/ant-design/ant-design/issues/19393
- if (cacheOverflow.overflow !== undefined) {
- document.body.style.overflow = cacheOverflow.overflow;
- }
- if (cacheOverflow.overflowX !== undefined) {
- document.body.style.overflowX = cacheOverflow.overflowX;
- }
- if (cacheOverflow.overflowY !== undefined) {
- document.body.style.overflowY = cacheOverflow.overflowY;
- }
- cacheOverflow = {};
- Object(_util_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_9__["default"])(true);
- }
- },
- // removeScrollingEffect() {
- // const { getOpenCount } = this;
- // const openCount = getOpenCount();
- // if (openCount !== 0) {
- // return;
- // }
- // document.body.style.overflow = '';
- // switchScrollingEffect(true);
- // // this.resetAdjustments();
- // },
- close: function close(e) {
- this.__emit('close', e);
- }
- },
- render: function render() {
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- maskClosable = this.maskClosable,
- visible = this.visible,
- wrapClassName = this.wrapClassName,
- title = this.title,
- wrapProps = this.wrapProps;
- var style = this.getWrapStyle();
- // clear hide display
- // and only set display after async anim, not here for hide
- if (visible) {
- style.display = null;
- }
- return h(
- 'div',
- { 'class': prefixCls + '-root' },
- [this.getMaskElement(), h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- tabIndex: -1,
- role: 'dialog',
- 'aria-labelledby': title ? this.titleId : null
- },
- on: {
- 'keydown': this.onKeydown,
- 'click': maskClosable ? this.onMaskClick : noop,
- 'mouseup': maskClosable ? this.onMaskMouseUp : noop
- },
- 'class': prefixCls + '-wrap ' + (wrapClassName || ''),
- ref: 'wrap',
- style: style
- }, wrapProps]),
- [this.getDialogElement()]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-dialog/DialogWrap.jsx":
- /*!*********************************************!*\
- !*** ./components/vc-dialog/DialogWrap.jsx ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _Dialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dialog */ "./components/vc-dialog/Dialog.jsx");
- /* harmony import */ var _IDialogPropTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IDialogPropTypes */ "./components/vc-dialog/IDialogPropTypes.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_PortalWrapper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/PortalWrapper */ "./components/_util/PortalWrapper.js");
- var IDialogPropTypes = Object(_IDialogPropTypes__WEBPACK_IMPORTED_MODULE_3__["default"])();
- var DialogWrap = {
- inheritAttrs: false,
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, IDialogPropTypes, {
- visible: IDialogPropTypes.visible.def(false)
- }),
- render: function render() {
- var _this = this;
- var h = arguments[0];
- var _$props = this.$props,
- visible = _$props.visible,
- getContainer = _$props.getContainer,
- forceRender = _$props.forceRender;
- var dialogProps = {
- props: this.$props,
- attrs: this.$attrs,
- ref: '_component',
- key: 'dialog',
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
- };
- // 渲染在当前 dom 里;
- if (getContainer === false) {
- return h(
- _Dialog__WEBPACK_IMPORTED_MODULE_2__["default"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([dialogProps, {
- attrs: {
- getOpenCount: function getOpenCount() {
- return 2;
- } // 不对 body 做任何操作。。
- }
- }]),
- [this.$slots['default']]
- );
- }
- return h(_util_PortalWrapper__WEBPACK_IMPORTED_MODULE_5__["default"], {
- attrs: {
- visible: visible,
- forceRender: forceRender,
- getContainer: getContainer,
- children: function children(childProps) {
- dialogProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dialogProps.props, childProps);
- return h(
- _Dialog__WEBPACK_IMPORTED_MODULE_2__["default"],
- dialogProps,
- [_this.$slots['default']]
- );
- }
- }
- });
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (DialogWrap);
- /***/ }),
- /***/ "./components/vc-dialog/IDialogPropTypes.js":
- /*!**************************************************!*\
- !*** ./components/vc-dialog/IDialogPropTypes.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- function IDialogPropTypes() {
- return {
- keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- // onClose: PropTypes. (e: SyntheticEvent<HTMLDivElement>) =>any,
- closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- destroyOnClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- mousePosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].shape({
- x: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- y: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number
- }).loose,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- maskAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- wrapStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- wrapClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
- height: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
- zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- bodyProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- maskProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- wrapProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- dialogStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
- return {};
- }),
- dialogClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def(''),
- closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- getOpenCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- // https://github.com/ant-design/ant-design/issues/19771
- // https://github.com/react-component/dialog/issues/95
- focusTriggerAfterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
- };
- }
- /* harmony default export */ __webpack_exports__["default"] = (IDialogPropTypes);
- /***/ }),
- /***/ "./components/vc-dialog/LazyRenderBox.jsx":
- /*!************************************************!*\
- !*** ./components/vc-dialog/LazyRenderBox.jsx ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var ILazyRenderBoxPropTypes = {
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: ILazyRenderBoxPropTypes,
- render: function render() {
- var h = arguments[0];
- return h(
- 'div',
- { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getListeners"])(this) },
- [this.$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-dialog/index.js":
- /*!***************************************!*\
- !*** ./components/vc-dialog/index.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _DialogWrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DialogWrap */ "./components/vc-dialog/DialogWrap.jsx");
- // based on vc-dialog 7.5.14
- /* harmony default export */ __webpack_exports__["default"] = (_DialogWrap__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-drawer/src/Drawer.js":
- /*!********************************************!*\
- !*** ./components/vc-drawer/src/Drawer.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_getScrollBarSize__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/getScrollBarSize */ "./components/_util/getScrollBarSize.js");
- /* harmony import */ var _IDrawerPropTypes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./IDrawerPropTypes */ "./components/vc-drawer/src/IDrawerPropTypes.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ "./components/vc-drawer/src/utils.js");
- /* harmony import */ var _util_Portal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../_util/Portal */ "./components/_util/Portal.js");
- function noop() {}
- var currentDrawer = {};
- var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
- vue__WEBPACK_IMPORTED_MODULE_5___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_6___default.a, { name: 'ant-ref' });
- var Drawer = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["initDefaultProps"])(_IDrawerPropTypes__WEBPACK_IMPORTED_MODULE_11__["IDrawerProps"], {
- prefixCls: 'drawer',
- placement: 'left',
- getContainer: 'body',
- level: 'all',
- duration: '.3s',
- ease: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
- firstEnter: false, // 记录首次进入.
- showMask: true,
- handler: true,
- maskStyle: {},
- wrapperClassName: '',
- className: ''
- }),
- data: function data() {
- this.levelDom = [];
- this.contentDom = null;
- this.maskDom = null;
- this.handlerdom = null;
- this.mousePos = null;
- this.sFirstEnter = this.firstEnter;
- this.timeout = null;
- this.children = null;
- this.drawerId = Number((Date.now() + Math.random()).toString().replace('.', Math.round(Math.random() * 9))).toString(16);
- var open = this.open !== undefined ? this.open : !!this.defaultOpen;
- currentDrawer[this.drawerId] = open;
- this.orignalOpen = this.open;
- this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, this.$props);
- return {
- sOpen: open
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (!windowIsUndefined) {
- var passiveSupported = false;
- window.addEventListener('test', null, Object.defineProperty({}, 'passive', {
- get: function get() {
- passiveSupported = true;
- return null;
- }
- }));
- _this.passive = passiveSupported ? { passive: false } : false;
- }
- var open = _this.getOpen();
- if (_this.handler || open || _this.sFirstEnter) {
- _this.getDefault(_this.$props);
- if (open) {
- _this.isOpenChange = true;
- _this.$nextTick(function () {
- _this.domFocus();
- });
- }
- _this.$forceUpdate();
- }
- });
- },
- watch: {
- open: function (_open) {
- function open(_x) {
- return _open.apply(this, arguments);
- }
- open.toString = function () {
- return _open.toString();
- };
- return open;
- }(function (val) {
- var _this2 = this;
- if (val !== undefined && val !== this.preProps.open) {
- this.isOpenChange = true;
- // 没渲染 dom 时,获取默认数据;
- if (!this.container) {
- this.getDefault(this.$props);
- }
- this.setState({
- sOpen: open
- });
- }
- this.preProps.open = val;
- if (val) {
- this.$nextTick(function () {
- _this2.domFocus();
- });
- }
- }),
- placement: function placement(val) {
- if (val !== this.preProps.placement) {
- // test 的 bug, 有动画过场,删除 dom
- this.contentDom = null;
- }
- this.preProps.placement = val;
- },
- level: function level(val) {
- if (this.preProps.level !== val) {
- this.getParentAndLevelDom(this.$props);
- }
- this.preProps.level = val;
- }
- },
- updated: function updated() {
- var _this3 = this;
- this.$nextTick(function () {
- // dom 没渲染时,重走一遍。
- if (!_this3.sFirstEnter && _this3.container) {
- _this3.$forceUpdate();
- _this3.sFirstEnter = true;
- }
- });
- },
- beforeDestroy: function beforeDestroy() {
- delete currentDrawer[this.drawerId];
- delete this.isOpenChange;
- if (this.container) {
- if (this.sOpen) {
- this.setLevelDomTransform(false, true);
- }
- document.body.style.overflow = '';
- }
- this.sFirstEnter = false;
- clearTimeout(this.timeout);
- },
- methods: {
- domFocus: function domFocus() {
- if (this.dom) {
- this.dom.focus();
- }
- },
- onKeyDown: function onKeyDown(e) {
- if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_12__["default"].ESC) {
- e.stopPropagation();
- this.$emit('close', e);
- }
- },
- onMaskTouchEnd: function onMaskTouchEnd(e) {
- this.$emit('close', e);
- this.onTouchEnd(e, true);
- },
- onIconTouchEnd: function onIconTouchEnd(e) {
- this.$emit('handleClick', e);
- this.onTouchEnd(e);
- },
- onTouchEnd: function onTouchEnd(e, close) {
- if (this.open !== undefined) {
- return;
- }
- var open = close || this.sOpen;
- this.isOpenChange = true;
- this.setState({
- sOpen: !open
- });
- },
- onWrapperTransitionEnd: function onWrapperTransitionEnd(e) {
- if (e.target === this.contentWrapper && e.propertyName.match(/transform$/)) {
- var _open2 = this.getOpen();
- this.dom.style.transition = '';
- if (!_open2 && this.getCurrentDrawerSome()) {
- document.body.style.overflowX = '';
- if (this.maskDom) {
- this.maskDom.style.left = '';
- this.maskDom.style.width = '';
- }
- }
- if (this.afterVisibleChange) {
- this.afterVisibleChange(!!_open2);
- }
- }
- },
- getDefault: function getDefault(props) {
- this.getParentAndLevelDom(props);
- if (props.getContainer || props.parent) {
- this.container = this.defaultGetContainer();
- }
- },
- getCurrentDrawerSome: function getCurrentDrawerSome() {
- return !Object.keys(currentDrawer).some(function (key) {
- return currentDrawer[key];
- });
- },
- getSelfContainer: function getSelfContainer() {
- return this.container;
- },
- getParentAndLevelDom: function getParentAndLevelDom(props) {
- var _this4 = this;
- if (windowIsUndefined) {
- return;
- }
- var level = props.level,
- getContainer = props.getContainer;
- this.levelDom = [];
- if (getContainer) {
- if (typeof getContainer === 'string') {
- var dom = document.querySelectorAll(getContainer)[0];
- this.parent = dom;
- }
- if (typeof getContainer === 'function') {
- this.parent = getContainer();
- }
- if ((typeof getContainer === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(getContainer)) === 'object' && getContainer instanceof window.HTMLElement) {
- this.parent = getContainer;
- }
- }
- if (!getContainer && this.container) {
- this.parent = this.container.parentNode;
- }
- if (level === 'all') {
- var children = Array.prototype.slice.call(this.parent.children);
- children.forEach(function (child) {
- if (child.nodeName !== 'SCRIPT' && child.nodeName !== 'STYLE' && child.nodeName !== 'LINK' && child !== _this4.container) {
- _this4.levelDom.push(child);
- }
- });
- } else if (level) {
- Object(_utils__WEBPACK_IMPORTED_MODULE_13__["dataToArray"])(level).forEach(function (key) {
- document.querySelectorAll(key).forEach(function (item) {
- _this4.levelDom.push(item);
- });
- });
- }
- },
- setLevelDomTransform: function setLevelDomTransform(open, openTransition, placementName, value) {
- var _this5 = this;
- var _$props = this.$props,
- placement = _$props.placement,
- levelMove = _$props.levelMove,
- duration = _$props.duration,
- ease = _$props.ease,
- getContainer = _$props.getContainer;
- if (!windowIsUndefined) {
- this.levelDom.forEach(function (dom) {
- if (_this5.isOpenChange || openTransition) {
- /* eslint no-param-reassign: "error" */
- dom.style.transition = 'transform ' + duration + ' ' + ease;
- Object(_utils__WEBPACK_IMPORTED_MODULE_13__["addEventListener"])(dom, _utils__WEBPACK_IMPORTED_MODULE_13__["transitionEnd"], _this5.trnasitionEnd);
- var levelValue = open ? value : 0;
- if (levelMove) {
- var $levelMove = Object(_utils__WEBPACK_IMPORTED_MODULE_13__["transformArguments"])(levelMove, { target: dom, open: open });
- levelValue = open ? $levelMove[0] : $levelMove[1] || 0;
- }
- var $value = typeof levelValue === 'number' ? levelValue + 'px' : levelValue;
- var placementPos = placement === 'left' || placement === 'top' ? $value : '-' + $value;
- dom.style.transform = levelValue ? placementName + '(' + placementPos + ')' : '';
- dom.style.msTransform = levelValue ? placementName + '(' + placementPos + ')' : '';
- }
- });
- // 处理 body 滚动
- if (getContainer === 'body') {
- var eventArray = ['touchstart'];
- var domArray = [document.body, this.maskDom, this.handlerdom, this.contentDom];
- var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? Object(_util_getScrollBarSize__WEBPACK_IMPORTED_MODULE_10__["default"])(1) : 0;
- var widthTransition = 'width ' + duration + ' ' + ease;
- var trannsformTransition = 'transform ' + duration + ' ' + ease;
- if (open && document.body.style.overflow !== 'hidden') {
- document.body.style.overflow = 'hidden';
- if (right) {
- document.body.style.position = 'relative';
- document.body.style.width = 'calc(100% - ' + right + 'px)';
- this.dom.style.transition = 'none';
- switch (placement) {
- case 'right':
- this.dom.style.transform = 'translateX(-' + right + 'px)';
- this.dom.style.msTransform = 'translateX(-' + right + 'px)';
- break;
- case 'top':
- case 'bottom':
- this.dom.style.width = 'calc(100% - ' + right + 'px)';
- this.dom.style.transform = 'translateZ(0)';
- break;
- default:
- break;
- }
- clearTimeout(this.timeout);
- this.timeout = setTimeout(function () {
- _this5.dom.style.transition = trannsformTransition + ',' + widthTransition;
- _this5.dom.style.width = '';
- _this5.dom.style.transform = '';
- _this5.dom.style.msTransform = '';
- });
- }
- // 手机禁滚
- domArray.forEach(function (item, i) {
- if (!item) {
- return;
- }
- Object(_utils__WEBPACK_IMPORTED_MODULE_13__["addEventListener"])(item, eventArray[i] || 'touchmove', i ? _this5.removeMoveHandler : _this5.removeStartHandler, _this5.passive);
- });
- } else if (this.getCurrentDrawerSome()) {
- document.body.style.overflow = '';
- if ((this.isOpenChange || openTransition) && right) {
- document.body.style.position = '';
- document.body.style.width = '';
- if (_utils__WEBPACK_IMPORTED_MODULE_13__["transitionStr"]) {
- document.body.style.overflowX = 'hidden';
- }
- this.dom.style.transition = 'none';
- var heightTransition = void 0;
- switch (placement) {
- case 'right':
- {
- this.dom.style.transform = 'translateX(' + right + 'px)';
- this.dom.style.msTransform = 'translateX(' + right + 'px)';
- this.dom.style.width = '100%';
- widthTransition = 'width 0s ' + ease + ' ' + duration;
- if (this.maskDom) {
- this.maskDom.style.left = '-' + right + 'px';
- this.maskDom.style.width = 'calc(100% + ' + right + 'px)';
- }
- break;
- }
- case 'top':
- case 'bottom':
- {
- this.dom.style.width = 'calc(100% + ' + right + 'px)';
- this.dom.style.height = '100%';
- this.dom.style.transform = 'translateZ(0)';
- heightTransition = 'height 0s ' + ease + ' ' + duration;
- break;
- }
- default:
- break;
- }
- clearTimeout(this.timeout);
- this.timeout = setTimeout(function () {
- _this5.dom.style.transition = trannsformTransition + ',' + (heightTransition ? heightTransition + ',' : '') + widthTransition;
- _this5.dom.style.transform = '';
- _this5.dom.style.msTransform = '';
- _this5.dom.style.width = '';
- _this5.dom.style.height = '';
- });
- }
- domArray.forEach(function (item, i) {
- if (!item) {
- return;
- }
- Object(_utils__WEBPACK_IMPORTED_MODULE_13__["removeEventListener"])(item, eventArray[i] || 'touchmove', i ? _this5.removeMoveHandler : _this5.removeStartHandler, _this5.passive);
- });
- }
- }
- }
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
- change = _getListeners.change;
- if (change && this.isOpenChange && this.sFirstEnter) {
- change(open);
- this.isOpenChange = false;
- }
- },
- getChildToRender: function getChildToRender(open) {
- var _classnames,
- _this6 = this;
- var h = this.$createElement;
- var _$props2 = this.$props,
- className = _$props2.className,
- prefixCls = _$props2.prefixCls,
- placement = _$props2.placement,
- handler = _$props2.handler,
- showMask = _$props2.showMask,
- maskStyle = _$props2.maskStyle,
- width = _$props2.width,
- height = _$props2.height,
- wrapStyle = _$props2.wrapStyle,
- keyboard = _$props2.keyboard,
- maskClosable = _$props2.maskClosable;
- var children = this.$slots['default'];
- var wrapperClassname = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, (_classnames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, prefixCls + '-' + placement, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, prefixCls + '-open', open), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, className, !!className), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, 'no-mask', !showMask), _classnames));
- var isOpenChange = this.isOpenChange;
- var isHorizontal = placement === 'left' || placement === 'right';
- var placementName = 'translate' + (isHorizontal ? 'X' : 'Y');
- // 百分比与像素动画不同步,第一次打用后全用像素动画。
- // const defaultValue = !this.contentDom || !level ? '100%' : `${value}px`;
- var placementPos = placement === 'left' || placement === 'top' ? '-100%' : '100%';
- var transform = open ? '' : placementName + '(' + placementPos + ')';
- if (isOpenChange === undefined || isOpenChange) {
- var contentValue = this.contentDom ? this.contentDom.getBoundingClientRect()[isHorizontal ? 'width' : 'height'] : 0;
- var value = (isHorizontal ? width : height) || contentValue;
- this.setLevelDomTransform(open, false, placementName, value);
- }
- var handlerChildren = void 0;
- if (handler !== false) {
- var handlerDefalut = h(
- 'div',
- { 'class': 'drawer-handle' },
- [h('i', { 'class': 'drawer-handle-icon' })]
- );
- var handlerSlot = this.handler;
- var handlerSlotVnode = handlerSlot && handlerSlot[0] || handlerDefalut;
- var _getEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getEvents"])(handlerSlotVnode),
- handleIconClick = _getEvents.click;
- handlerChildren = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(handlerSlotVnode, {
- on: {
- click: function click(e) {
- handleIconClick && handleIconClick();
- _this6.onIconTouchEnd(e);
- }
- },
- directives: [{
- name: 'ant-ref',
- value: function value(c) {
- _this6.handlerdom = c;
- }
- }]
- });
- }
- var domContProps = {
- 'class': wrapperClassname,
- directives: [{
- name: 'ant-ref',
- value: function value(c) {
- _this6.dom = c;
- }
- }],
- on: {
- transitionend: this.onWrapperTransitionEnd,
- keydown: open && keyboard ? this.onKeyDown : noop
- },
- style: wrapStyle
- };
- var directivesMaskDom = [{
- name: 'ant-ref',
- value: function value(c) {
- _this6.maskDom = c;
- }
- }];
- var directivesContentWrapper = [{
- name: 'ant-ref',
- value: function value(c) {
- _this6.contentWrapper = c;
- }
- }];
- var directivesContentDom = [{
- name: 'ant-ref',
- value: function value(c) {
- _this6.contentDom = c;
- }
- }];
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([domContProps, {
- attrs: { tabIndex: -1 }
- }]),
- [showMask && h('div', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- key: open // 第二次渲染时虚拟DOM没有改变,没有出发dom更新,使用key强制更新 https://github.com/vueComponent/ant-design-vue/issues/2407
- , 'class': prefixCls + '-mask',
- on: {
- 'click': maskClosable ? this.onMaskTouchEnd : noop
- },
- style: maskStyle
- }, { directives: directivesMaskDom }])), h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- 'class': prefixCls + '-content-wrapper',
- style: {
- transform: transform,
- msTransform: transform,
- width: Object(_utils__WEBPACK_IMPORTED_MODULE_13__["isNumeric"])(width) ? width + 'px' : width,
- height: Object(_utils__WEBPACK_IMPORTED_MODULE_13__["isNumeric"])(height) ? height + 'px' : height
- }
- }, { directives: directivesContentWrapper }]),
- [h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- 'class': prefixCls + '-content'
- }, { directives: directivesContentDom }, {
- on: {
- 'touchstart': open ? this.removeStartHandler : noop,
- 'touchmove': open ? this.removeMoveHandler : noop
- }
- }]),
- [children]
- ), handlerChildren]
- )]
- );
- },
- getOpen: function getOpen() {
- return this.open !== undefined ? this.open : this.sOpen;
- },
- getTouchParentScroll: function getTouchParentScroll(root, currentTarget, differX, differY) {
- if (!currentTarget || currentTarget === document) {
- return false;
- }
- // root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动;
- if (currentTarget === root.parentNode) {
- return true;
- }
- var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY);
- var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX);
- var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight;
- var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth;
- /**
- * <div style="height: 300px">
- * <div style="height: 900px"></div>
- * </div>
- * 在没设定 overflow: auto 或 scroll 时,currentTarget 里获取不到 scrollTop 或 scrollLeft,
- * 预先用 scrollTo 来滚动,如果取出的值跟滚动前取出不同,则 currnetTarget 被设定了 overflow; 否则就是上面这种。
- */
- var t = currentTarget.scrollTop;
- var l = currentTarget.scrollLeft;
- if (currentTarget.scrollTo) {
- currentTarget.scrollTo(currentTarget.scrollLeft + 1, currentTarget.scrollTop + 1);
- }
- var currentT = currentTarget.scrollTop;
- var currentL = currentTarget.scrollLeft;
- if (currentTarget.scrollTo) {
- currentTarget.scrollTo(currentTarget.scrollLeft - 1, currentTarget.scrollTop - 1);
- }
- if (isY && (!scrollY || !(currentT - t) || scrollY && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!scrollX || !(currentL - l) || scrollX && (currentTarget.scrollLeft >= scrollX && differX < 0 || currentTarget.scrollLeft <= 0 && differX > 0))) {
- return this.getTouchParentScroll(root, currentTarget.parentNode, differX, differY);
- }
- return false;
- },
- removeStartHandler: function removeStartHandler(e) {
- if (e.touches.length > 1) {
- return;
- }
- this.startPos = {
- x: e.touches[0].clientX,
- y: e.touches[0].clientY
- };
- },
- removeMoveHandler: function removeMoveHandler(e) {
- if (e.changedTouches.length > 1) {
- return;
- }
- var currentTarget = e.currentTarget;
- var differX = e.changedTouches[0].clientX - this.startPos.x;
- var differY = e.changedTouches[0].clientY - this.startPos.y;
- if (currentTarget === this.maskDom || currentTarget === this.handlerdom || currentTarget === this.contentDom && this.getTouchParentScroll(currentTarget, e.target, differX, differY)) {
- e.preventDefault();
- }
- },
- trnasitionEnd: function trnasitionEnd(e) {
- Object(_utils__WEBPACK_IMPORTED_MODULE_13__["removeEventListener"])(e.target, _utils__WEBPACK_IMPORTED_MODULE_13__["transitionEnd"], this.trnasitionEnd);
- e.target.style.transition = '';
- },
- defaultGetContainer: function defaultGetContainer() {
- if (windowIsUndefined) {
- return null;
- }
- var container = document.createElement('div');
- this.parent.appendChild(container);
- if (this.wrapperClassName) {
- container.className = this.wrapperClassName;
- }
- return container;
- }
- },
- render: function render() {
- var _this7 = this;
- var h = arguments[0];
- var _$props3 = this.$props,
- getContainer = _$props3.getContainer,
- wrapperClassName = _$props3.wrapperClassName,
- handler = _$props3.handler,
- forceRender = _$props3.forceRender;
- var open = this.getOpen();
- var portal = null;
- currentDrawer[this.drawerId] = open ? this.container : open;
- var children = this.getChildToRender(this.sFirstEnter ? open : false);
- if (!getContainer) {
- var directives = [{
- name: 'ant-ref',
- value: function value(c) {
- _this7.container = c;
- }
- }];
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': wrapperClassName }, { directives: directives }]),
- [children]
- );
- }
- if (!this.container || !open && !this.sFirstEnter) {
- return null;
- }
- // 如果有 handler 为内置强制渲染;
- var $forceRender = !!handler || forceRender;
- if ($forceRender || open || this.dom) {
- portal = h(_util_Portal__WEBPACK_IMPORTED_MODULE_14__["default"], {
- attrs: { getContainer: this.getSelfContainer, children: children }
- });
- }
- return portal;
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Drawer);
- /***/ }),
- /***/ "./components/vc-drawer/src/IDrawerPropTypes.js":
- /*!******************************************************!*\
- !*** ./components/vc-drawer/src/IDrawerPropTypes.js ***!
- \******************************************************/
- /*! exports provided: IDrawerProps, IDrawerChildProps */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IDrawerProps", function() { return IDrawerProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IDrawerChildProps", function() { return IDrawerChildProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- var IProps = {
- width: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- height: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- firstEnter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- level: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array]),
- levelMove: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array]),
- ease: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- duration: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- handler: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- showMask: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- wrapStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- afterVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- };
- var IDrawerProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, IProps, {
- wrapperClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool])
- });
- var IDrawerChildProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, IProps, {
- getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- getOpenCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- switchScrollingEffect: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- });
- /***/ }),
- /***/ "./components/vc-drawer/src/index.js":
- /*!*******************************************!*\
- !*** ./components/vc-drawer/src/index.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Drawer */ "./components/vc-drawer/src/Drawer.js");
- // base in 1.7.7
- // export this package's api
- /* harmony default export */ __webpack_exports__["default"] = (_Drawer__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-drawer/src/utils.js":
- /*!*******************************************!*\
- !*** ./components/vc-drawer/src/utils.js ***!
- \*******************************************/
- /*! exports provided: dataToArray, transitionStr, transitionEnd, addEventListener, removeEventListener, transformArguments, isNumeric, windowIsUndefined, getTouchParentScroll */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataToArray", function() { return dataToArray; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transitionStr", function() { return transitionStr; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transitionEnd", function() { return transitionEnd; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEventListener", function() { return addEventListener; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeEventListener", function() { return removeEventListener; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transformArguments", function() { return transformArguments; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumeric", function() { return isNumeric; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowIsUndefined", function() { return windowIsUndefined; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTouchParentScroll", function() { return getTouchParentScroll; });
- function dataToArray(vars) {
- if (Array.isArray(vars)) {
- return vars;
- }
- return [vars];
- }
- var transitionEndObject = {
- transition: 'transitionend',
- WebkitTransition: 'webkitTransitionEnd',
- MozTransition: 'transitionend',
- OTransition: 'oTransitionEnd otransitionend'
- };
- var transitionStr = Object.keys(transitionEndObject).filter(function (key) {
- if (typeof document === 'undefined') {
- return false;
- }
- var html = document.getElementsByTagName('html')[0];
- return key in (html ? html.style : {});
- })[0];
- var transitionEnd = transitionEndObject[transitionStr];
- function addEventListener(target, eventType, callback, options) {
- if (target.addEventListener) {
- target.addEventListener(eventType, callback, options);
- } else if (target.attachEvent) {
- target.attachEvent('on' + eventType, callback);
- }
- }
- function removeEventListener(target, eventType, callback, options) {
- if (target.removeEventListener) {
- target.removeEventListener(eventType, callback, options);
- } else if (target.attachEvent) {
- target.detachEvent('on' + eventType, callback);
- }
- }
- function transformArguments(arg, cb) {
- var result = void 0;
- if (typeof arg === 'function') {
- result = arg(cb);
- } else {
- result = arg;
- }
- if (Array.isArray(result)) {
- if (result.length === 2) {
- return result;
- }
- return [result[0], result[1]];
- }
- return [result];
- }
- var isNumeric = function isNumeric(value) {
- return !isNaN(parseFloat(value)) && isFinite(value); // eslint-disable-line
- };
- var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
- var getTouchParentScroll = function getTouchParentScroll(root, currentTarget, differX, differY) {
- if (!currentTarget || currentTarget === document || currentTarget instanceof Document) {
- return false;
- }
- // root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动;
- if (currentTarget === root.parentNode) {
- return true;
- }
- var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY);
- var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX);
- var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight;
- var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth;
- var style = document.defaultView.getComputedStyle(currentTarget);
- var overflowY = style.overflowY === 'auto' || style.overflowY === 'scroll';
- var overflowX = style.overflowX === 'auto' || style.overflowX === 'scroll';
- var y = scrollY && overflowY;
- var x = scrollX && overflowX;
- if (isY && (!y || y && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!x || x && (currentTarget.scrollLeft >= scrollX && scrollX < 0 || currentTarget.scrollLeft <= 0 && scrollX > 0))) {
- return getTouchParentScroll(root, currentTarget.parentNode, differX, differY);
- }
- return false;
- };
- /***/ }),
- /***/ "./components/vc-dropdown/src/Dropdown.jsx":
- /*!*************************************************!*\
- !*** ./components/vc-dropdown/src/Dropdown.jsx ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
- /* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placements */ "./components/vc-dropdown/src/placements.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
- props: {
- minOverlayWidthMatchTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-dropdown'),
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def(''),
- openClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(function () {
- return {};
- }),
- placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('bottomLeft'),
- overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def(['hover']),
- alignPoint: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]),
- hideAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]),
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- defaultVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
- mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0.15),
- mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0.1)
- },
- data: function data() {
- var sVisible = this.defaultVisible;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
- sVisible = this.visible;
- }
- return {
- sVisible: sVisible
- };
- },
- watch: {
- visible: function visible(val) {
- if (val !== undefined) {
- this.setState({
- sVisible: val
- });
- }
- }
- },
- methods: {
- onClick: function onClick(e) {
- // do no call onVisibleChange, if you need click to hide, use onClick and control visible
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
- this.setState({
- sVisible: false
- });
- }
- this.$emit('overlayClick', e);
- if (this.childOriginEvents.click) {
- this.childOriginEvents.click(e);
- }
- },
- onVisibleChange: function onVisibleChange(visible) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
- this.setState({
- sVisible: visible
- });
- }
- this.__emit('visibleChange', visible);
- },
- getMinOverlayWidthMatchTrigger: function getMinOverlayWidthMatchTrigger() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var minOverlayWidthMatchTrigger = props.minOverlayWidthMatchTrigger,
- alignPoint = props.alignPoint;
- if ('minOverlayWidthMatchTrigger' in props) {
- return minOverlayWidthMatchTrigger;
- }
- return !alignPoint;
- },
- getOverlayElement: function getOverlayElement() {
- var overlay = this.overlay || this.$slots.overlay || this.$scopedSlots.overlay;
- var overlayElement = void 0;
- if (typeof overlay === 'function') {
- overlayElement = overlay();
- } else {
- overlayElement = overlay;
- }
- return overlayElement;
- },
- getMenuElement: function getMenuElement() {
- var _this = this;
- var onClick = this.onClick,
- prefixCls = this.prefixCls,
- $slots = this.$slots;
- this.childOriginEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])($slots.overlay[0]);
- var overlayElement = this.getOverlayElement();
- var extraOverlayProps = {
- props: {
- prefixCls: prefixCls + '-menu',
- getPopupContainer: function getPopupContainer() {
- return _this.getPopupDomNode();
- }
- },
- on: {
- click: onClick
- }
- };
- if (typeof overlayElement.type === 'string') {
- delete extraOverlayProps.props.prefixCls;
- }
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])($slots.overlay[0], extraOverlayProps);
- },
- getMenuElementOrLambda: function getMenuElementOrLambda() {
- var overlay = this.overlay || this.$slots.overlay || this.$scopedSlots.overlay;
- if (typeof overlay === 'function') {
- return this.getMenuElement;
- }
- return this.getMenuElement();
- },
- getPopupDomNode: function getPopupDomNode() {
- return this.$refs.trigger.getPopupDomNode();
- },
- getOpenClassName: function getOpenClassName() {
- var _$props = this.$props,
- openClassName = _$props.openClassName,
- prefixCls = _$props.prefixCls;
- if (openClassName !== undefined) {
- return openClassName;
- }
- return prefixCls + '-open';
- },
- afterVisibleChange: function afterVisibleChange(visible) {
- if (visible && this.getMinOverlayWidthMatchTrigger()) {
- var overlayNode = this.getPopupDomNode();
- var rootNode = this.$el;
- if (rootNode && overlayNode && rootNode.offsetWidth > overlayNode.offsetWidth) {
- overlayNode.style.minWidth = rootNode.offsetWidth + 'px';
- if (this.$refs.trigger && this.$refs.trigger._component && this.$refs.trigger._component.$refs && this.$refs.trigger._component.$refs.alignInstance) {
- this.$refs.trigger._component.$refs.alignInstance.forceAlign();
- }
- }
- }
- },
- renderChildren: function renderChildren() {
- var children = this.$slots['default'] && this.$slots['default'][0];
- var sVisible = this.sVisible;
- return sVisible && children ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(children, { 'class': this.getOpenClassName() }) : children;
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$props2 = this.$props,
- prefixCls = _$props2.prefixCls,
- transitionName = _$props2.transitionName,
- animation = _$props2.animation,
- align = _$props2.align,
- placement = _$props2.placement,
- getPopupContainer = _$props2.getPopupContainer,
- showAction = _$props2.showAction,
- hideAction = _$props2.hideAction,
- overlayClassName = _$props2.overlayClassName,
- overlayStyle = _$props2.overlayStyle,
- trigger = _$props2.trigger,
- otherProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_$props2, ['prefixCls', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger']);
- var triggerHideAction = hideAction;
- if (!triggerHideAction && trigger.indexOf('contextmenu') !== -1) {
- triggerHideAction = ['click'];
- }
- var triggerProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, otherProps, {
- prefixCls: prefixCls,
- popupClassName: overlayClassName,
- popupStyle: overlayStyle,
- builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_4__["default"],
- action: trigger,
- showAction: showAction,
- hideAction: triggerHideAction || [],
- popupPlacement: placement,
- popupAlign: align,
- popupTransitionName: transitionName,
- popupAnimation: animation,
- popupVisible: this.sVisible,
- afterPopupVisibleChange: this.afterVisibleChange,
- getPopupContainer: getPopupContainer
- }),
- on: {
- popupVisibleChange: this.onVisibleChange
- },
- ref: 'trigger'
- };
- return h(
- _vc_trigger__WEBPACK_IMPORTED_MODULE_3__["default"],
- triggerProps,
- [this.renderChildren(), h(
- 'template',
- { slot: 'popup' },
- [this.$slots.overlay && this.getMenuElement()]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-dropdown/src/index.js":
- /*!*********************************************!*\
- !*** ./components/vc-dropdown/src/index.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dropdown */ "./components/vc-dropdown/src/Dropdown.jsx");
- // base in 2.4.1
- /* harmony default export */ __webpack_exports__["default"] = (_Dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-dropdown/src/placements.js":
- /*!**************************************************!*\
- !*** ./components/vc-dropdown/src/placements.js ***!
- \**************************************************/
- /*! exports provided: placements, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
- var autoAdjustOverflow = {
- adjustX: 1,
- adjustY: 1
- };
- var targetOffset = [0, 0];
- var placements = {
- topLeft: {
- points: ['bl', 'tl'],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset: targetOffset
- },
- topCenter: {
- points: ['bc', 'tc'],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset: targetOffset
- },
- topRight: {
- points: ['br', 'tr'],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset: targetOffset
- },
- bottomLeft: {
- points: ['tl', 'bl'],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset: targetOffset
- },
- bottomCenter: {
- points: ['tc', 'bc'],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset: targetOffset
- },
- bottomRight: {
- points: ['tr', 'br'],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset: targetOffset
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (placements);
- /***/ }),
- /***/ "./components/vc-form/src/createBaseForm.jsx":
- /*!***************************************************!*\
- !*** ./components/vc-form/src/createBaseForm.jsx ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var async_validator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");
- /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_7__);
- /* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/set */ "./node_modules/lodash/set.js");
- /* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_set__WEBPACK_IMPORTED_MODULE_8__);
- /* harmony import */ var lodash_eq__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/eq */ "./node_modules/lodash/eq.js");
- /* harmony import */ var lodash_eq__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_eq__WEBPACK_IMPORTED_MODULE_9__);
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_10__);
- /* harmony import */ var _createFieldsStore__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./createFieldsStore */ "./components/vc-form/src/createFieldsStore.jsx");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils */ "./components/vc-form/src/utils.js");
- var DEFAULT_TRIGGER = 'change';
- function createBaseForm() {
- var option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var mixins = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
- var validateMessages = option.validateMessages,
- onFieldsChange = option.onFieldsChange,
- onValuesChange = option.onValuesChange,
- _option$mapProps = option.mapProps,
- mapProps = _option$mapProps === undefined ? _utils__WEBPACK_IMPORTED_MODULE_16__["identity"] : _option$mapProps,
- mapPropsToFields = option.mapPropsToFields,
- fieldNameProp = option.fieldNameProp,
- fieldMetaProp = option.fieldMetaProp,
- fieldDataProp = option.fieldDataProp,
- _option$formPropName = option.formPropName,
- formPropName = _option$formPropName === undefined ? 'form' : _option$formPropName,
- formName = option.name,
- _option$props = option.props,
- props = _option$props === undefined ? {} : _option$props,
- templateContext = option.templateContext;
- return function decorate(WrappedComponent) {
- var formProps = {};
- if (Array.isArray(props)) {
- props.forEach(function (prop) {
- formProps[prop] = _util_vue_types__WEBPACK_IMPORTED_MODULE_15__["default"].any;
- });
- } else {
- formProps = props;
- }
- var Form = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_13__["default"]].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(mixins)),
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, formProps, {
- wrappedComponentRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_15__["default"].func.def(function () {})
- }),
- data: function data() {
- var _this = this;
- var fields = mapPropsToFields && mapPropsToFields(this.$props);
- this.fieldsStore = Object(_createFieldsStore__WEBPACK_IMPORTED_MODULE_11__["default"])(fields || {});
- this.templateContext = templateContext;
- this.instances = {};
- this.cachedBind = {};
- this.clearedFieldMetaCache = {};
- this.formItems = {};
- this.renderFields = {};
- this.domFields = {};
- // HACK: https://github.com/ant-design/ant-design/issues/6406
- ['getFieldsValue', 'getFieldValue', 'setFieldsInitialValue', 'getFieldsError', 'getFieldError', 'isFieldValidating', 'isFieldsValidating', 'isFieldsTouched', 'isFieldTouched'].forEach(function (key) {
- _this[key] = function () {
- var _fieldsStore;
- return (_fieldsStore = _this.fieldsStore)[key].apply(_fieldsStore, arguments);
- };
- });
- return {
- submitting: false
- };
- },
- watch: templateContext ? {} : {
- $props: {
- handler: function handler(nextProps) {
- if (mapPropsToFields) {
- this.fieldsStore.updateFields(mapPropsToFields(nextProps));
- }
- },
- deep: true
- }
- },
- mounted: function mounted() {
- this.cleanUpUselessFields();
- },
- updated: function updated() {
- // form updated add for template v-decorator
- this.cleanUpUselessFields();
- },
- methods: {
- updateFields: function updateFields() {
- var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- this.fieldsStore.updateFields(mapPropsToFields(fields));
- if (templateContext) {
- templateContext.$forceUpdate();
- }
- },
- onCollectCommon: function onCollectCommon(name, action, args) {
- var fieldMeta = this.fieldsStore.getFieldMeta(name);
- if (fieldMeta[action]) {
- fieldMeta[action].apply(fieldMeta, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args));
- } else if (fieldMeta.originalProps && fieldMeta.originalProps[action]) {
- var _fieldMeta$originalPr;
- (_fieldMeta$originalPr = fieldMeta.originalProps)[action].apply(_fieldMeta$originalPr, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args));
- }
- var value = fieldMeta.getValueFromEvent ? fieldMeta.getValueFromEvent.apply(fieldMeta, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args)) : _utils__WEBPACK_IMPORTED_MODULE_16__["getValueFromEvent"].apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args));
- if (onValuesChange && value !== this.fieldsStore.getFieldValue(name)) {
- var valuesAll = this.fieldsStore.getAllValues();
- var valuesAllSet = {};
- valuesAll[name] = value;
- Object.keys(valuesAll).forEach(function (key) {
- return lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(valuesAllSet, key, valuesAll[key]);
- });
- onValuesChange(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, formPropName, this.getForm()), this.$props), lodash_set__WEBPACK_IMPORTED_MODULE_8___default()({}, name, value), valuesAllSet);
- }
- var field = this.fieldsStore.getField(name);
- return { name: name, field: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field, { value: value, touched: true }), fieldMeta: fieldMeta };
- },
- onCollect: function onCollect(name_, action) {
- for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- args[_key - 2] = arguments[_key];
- }
- var _onCollectCommon = this.onCollectCommon(name_, action, args),
- name = _onCollectCommon.name,
- field = _onCollectCommon.field,
- fieldMeta = _onCollectCommon.fieldMeta;
- var validate = fieldMeta.validate;
- this.fieldsStore.setFieldsAsDirty();
- var newField = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field, {
- dirty: Object(_utils__WEBPACK_IMPORTED_MODULE_16__["hasRules"])(validate)
- });
- this.setFields(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, name, newField));
- },
- onCollectValidate: function onCollectValidate(name_, action) {
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
- args[_key2 - 2] = arguments[_key2];
- }
- var _onCollectCommon2 = this.onCollectCommon(name_, action, args),
- field = _onCollectCommon2.field,
- fieldMeta = _onCollectCommon2.fieldMeta;
- var newField = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field, {
- dirty: true
- });
- this.fieldsStore.setFieldsAsDirty();
- this.validateFieldsInternal([newField], {
- action: action,
- options: {
- firstFields: !!fieldMeta.validateFirst
- }
- });
- },
- getCacheBind: function getCacheBind(name, action, fn) {
- if (!this.cachedBind[name]) {
- this.cachedBind[name] = {};
- }
- var cache = this.cachedBind[name];
- if (!cache[action] || cache[action].oriFn !== fn) {
- cache[action] = {
- fn: fn.bind(this, name, action),
- oriFn: fn
- };
- }
- return cache[action].fn;
- },
- getFieldDecorator: function getFieldDecorator(name, fieldOption, formItem) {
- var _this2 = this;
- var _getFieldProps = this.getFieldProps(name, fieldOption),
- props = _getFieldProps.props,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getFieldProps, ['props']);
- this.formItems[name] = formItem;
- return function (fieldElem) {
- // We should put field in record if it is rendered
- _this2.renderFields[name] = true;
- var fieldMeta = _this2.fieldsStore.getFieldMeta(name);
- var originalProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getOptionProps"])(fieldElem);
- var originalEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getEvents"])(fieldElem);
- if (true) {
- var valuePropName = fieldMeta.valuePropName;
- warning__WEBPACK_IMPORTED_MODULE_6___default()(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["slotHasProp"])(fieldElem, valuePropName), '`getFieldDecorator` will override `' + valuePropName + '`, ' + ('so please don\'t set `' + valuePropName + ' and v-model` directly ') + 'and use `setFieldsValue` to set it.');
- warning__WEBPACK_IMPORTED_MODULE_6___default()(!(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["slotHasProp"])(fieldElem, valuePropName) && valuePropName in originalProps && !(fieldOption && 'initialValue' in fieldOption)), Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentName"])(fieldElem.componentOptions) + ' `default value` can not collect, ' + ' please use `option.initialValue` to set default value.');
- var defaultValuePropName = 'default' + valuePropName[0].toUpperCase() + valuePropName.slice(1);
- warning__WEBPACK_IMPORTED_MODULE_6___default()(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["slotHasProp"])(fieldElem, defaultValuePropName), '`' + defaultValuePropName + '` is invalid ' + ('for `getFieldDecorator` will set `' + valuePropName + '`,') + ' please use `option.initialValue` instead.');
- }
- fieldMeta.originalProps = originalProps;
- // fieldMeta.ref = fieldElem.data && fieldElem.data.ref
- var newProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, props, _this2.fieldsStore.getFieldValuePropValue(fieldMeta))
- }, restProps);
- newProps.domProps.value = newProps.props.value;
- var newEvents = {};
- Object.keys(newProps.on).forEach(function (key) {
- if (originalEvents[key]) {
- var triggerEvents = newProps.on[key];
- newEvents[key] = function () {
- originalEvents[key].apply(originalEvents, arguments);
- triggerEvents.apply(undefined, arguments);
- };
- } else {
- newEvents[key] = newProps.on[key];
- }
- });
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_12__["cloneElement"])(fieldElem, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, newProps, { on: newEvents }));
- };
- },
- getFieldProps: function getFieldProps(name) {
- var _this3 = this;
- var usersFieldOption = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- if (!name) {
- throw new Error('Must call `getFieldProps` with valid name string!');
- }
- if (true) {
- warning__WEBPACK_IMPORTED_MODULE_6___default()(this.fieldsStore.isValidNestedFieldName(name), 'One field name cannot be part of another, e.g. `a` and `a.b`. Check field: ' + name);
- warning__WEBPACK_IMPORTED_MODULE_6___default()(!('exclusive' in usersFieldOption), '`option.exclusive` of `getFieldProps`|`getFieldDecorator` had been remove.');
- }
- delete this.clearedFieldMetaCache[name];
- var fieldOption = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
- name: name,
- trigger: DEFAULT_TRIGGER,
- valuePropName: 'value',
- validate: []
- }, usersFieldOption);
- var rules = fieldOption.rules,
- trigger = fieldOption.trigger,
- _fieldOption$validate = fieldOption.validateTrigger,
- validateTrigger = _fieldOption$validate === undefined ? trigger : _fieldOption$validate,
- validate = fieldOption.validate;
- var fieldMeta = this.fieldsStore.getFieldMeta(name);
- if ('initialValue' in fieldOption) {
- fieldMeta.initialValue = fieldOption.initialValue;
- }
- var inputProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, this.fieldsStore.getFieldValuePropValue(fieldOption));
- var inputListeners = {};
- var inputAttrs = {};
- if (fieldNameProp) {
- inputProps[fieldNameProp] = formName ? formName + '_' + name : name;
- }
- var validateRules = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["normalizeValidateRules"])(validate, rules, validateTrigger);
- var validateTriggers = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getValidateTriggers"])(validateRules);
- validateTriggers.forEach(function (action) {
- if (inputListeners[action]) return;
- inputListeners[action] = _this3.getCacheBind(name, action, _this3.onCollectValidate);
- });
- // make sure that the value will be collect
- if (trigger && validateTriggers.indexOf(trigger) === -1) {
- inputListeners[trigger] = this.getCacheBind(name, trigger, this.onCollect);
- }
- var meta = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, fieldMeta, fieldOption, {
- validate: validateRules
- });
- this.fieldsStore.setFieldMeta(name, meta);
- if (fieldMetaProp) {
- inputAttrs[fieldMetaProp] = meta;
- }
- if (fieldDataProp) {
- inputAttrs[fieldDataProp] = this.fieldsStore.getField(name);
- }
- // This field is rendered, record it
- this.renderFields[name] = true;
- return {
- props: lodash_omit__WEBPACK_IMPORTED_MODULE_10___default()(inputProps, ['id']),
- // id: inputProps.id,
- domProps: {
- value: inputProps.value
- },
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, inputAttrs, {
- id: inputProps.id
- }),
- directives: [{
- name: 'ant-ref',
- value: this.getCacheBind(name, name + '__ref', this.saveRef)
- }],
- on: inputListeners
- };
- },
- getFieldInstance: function getFieldInstance(name) {
- return this.instances[name];
- },
- getRules: function getRules(fieldMeta, action) {
- var actionRules = fieldMeta.validate.filter(function (item) {
- return !action || item.trigger.indexOf(action) >= 0;
- }).map(function (item) {
- return item.rules;
- });
- return Object(_utils__WEBPACK_IMPORTED_MODULE_16__["flattenArray"])(actionRules);
- },
- setFields: function setFields(maybeNestedFields, callback) {
- var _this4 = this;
- var fields = this.fieldsStore.flattenRegisteredFields(maybeNestedFields);
- this.fieldsStore.setFields(fields);
- var changedFields = Object.keys(fields).reduce(function (acc, name) {
- return lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(acc, name, _this4.fieldsStore.getField(name));
- }, {});
- if (onFieldsChange) {
- var _changedFields = Object.keys(fields).reduce(function (acc, name) {
- return lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(acc, name, _this4.fieldsStore.getField(name));
- }, {});
- onFieldsChange(this, _changedFields, this.fieldsStore.getNestedAllFields());
- }
- var formContext = templateContext || this;
- var allUpdate = false;
- Object.keys(changedFields).forEach(function (key) {
- var formItem = _this4.formItems[key];
- formItem = typeof formItem === 'function' ? formItem() : formItem;
- if (formItem && formItem.itemSelfUpdate) {
- formItem.$forceUpdate();
- } else {
- allUpdate = true;
- }
- });
- if (allUpdate) {
- formContext.$forceUpdate();
- }
- this.$nextTick(function () {
- callback && callback();
- });
- },
- setFieldsValue: function setFieldsValue(changedValues, callback) {
- var fieldsMeta = this.fieldsStore.fieldsMeta;
- var values = this.fieldsStore.flattenRegisteredFields(changedValues);
- var newFields = Object.keys(values).reduce(function (acc, name) {
- var isRegistered = fieldsMeta[name];
- if (true) {
- warning__WEBPACK_IMPORTED_MODULE_6___default()(isRegistered, 'Cannot use `setFieldsValue` until ' + 'you use `getFieldDecorator` or `getFieldProps` to register it.');
- }
- if (isRegistered) {
- var value = values[name];
- acc[name] = {
- value: value
- };
- }
- return acc;
- }, {});
- this.setFields(newFields, callback);
- if (onValuesChange) {
- var allValues = this.fieldsStore.getAllValues();
- onValuesChange(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, formPropName, this.getForm()), this.$props), changedValues, allValues);
- }
- },
- saveRef: function saveRef(name, _, component) {
- if (!component) {
- var fieldMeta = this.fieldsStore.getFieldMeta(name);
- if (!fieldMeta.preserve) {
- // after destroy, delete data
- this.clearedFieldMetaCache[name] = {
- field: this.fieldsStore.getField(name),
- meta: fieldMeta
- };
- this.clearField(name);
- }
- delete this.domFields[name];
- return;
- }
- this.domFields[name] = true;
- this.recoverClearedField(name);
- // const fieldMeta = this.fieldsStore.getFieldMeta(name)
- // if (fieldMeta) {
- // const ref = fieldMeta.ref
- // if (ref) {
- // if (typeof ref === 'string') {
- // throw new Error(`can not set ref string for ${name}`)
- // }
- // ref(component)
- // }
- // }
- this.instances[name] = component;
- },
- cleanUpUselessFields: function cleanUpUselessFields() {
- var _this5 = this;
- var fieldList = this.fieldsStore.getAllFieldsName();
- var removedList = fieldList.filter(function (field) {
- var fieldMeta = _this5.fieldsStore.getFieldMeta(field);
- return !_this5.renderFields[field] && !_this5.domFields[field] && !fieldMeta.preserve;
- });
- if (removedList.length) {
- removedList.forEach(this.clearField);
- }
- this.renderFields = {};
- },
- clearField: function clearField(name) {
- this.fieldsStore.clearField(name);
- delete this.instances[name];
- delete this.cachedBind[name];
- },
- resetFields: function resetFields(ns) {
- var _this6 = this;
- var newFields = this.fieldsStore.resetFields(ns);
- if (Object.keys(newFields).length > 0) {
- this.setFields(newFields);
- }
- if (ns) {
- var names = Array.isArray(ns) ? ns : [ns];
- names.forEach(function (name) {
- return delete _this6.clearedFieldMetaCache[name];
- });
- } else {
- this.clearedFieldMetaCache = {};
- }
- },
- recoverClearedField: function recoverClearedField(name) {
- if (this.clearedFieldMetaCache[name]) {
- this.fieldsStore.setFields(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, name, this.clearedFieldMetaCache[name].field));
- this.fieldsStore.setFieldMeta(name, this.clearedFieldMetaCache[name].meta);
- delete this.clearedFieldMetaCache[name];
- }
- },
- validateFieldsInternal: function validateFieldsInternal(fields, _ref, callback) {
- var _this7 = this;
- var fieldNames = _ref.fieldNames,
- action = _ref.action,
- _ref$options = _ref.options,
- options = _ref$options === undefined ? {} : _ref$options;
- var allRules = {};
- var allValues = {};
- var allFields = {};
- var alreadyErrors = {};
- fields.forEach(function (field) {
- var name = field.name;
- if (options.force !== true && field.dirty === false) {
- if (field.errors) {
- lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(alreadyErrors, name, { errors: field.errors });
- }
- return;
- }
- var fieldMeta = _this7.fieldsStore.getFieldMeta(name);
- var newField = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field);
- newField.errors = undefined;
- newField.validating = true;
- newField.dirty = true;
- allRules[name] = _this7.getRules(fieldMeta, action);
- allValues[name] = newField.value;
- allFields[name] = newField;
- });
- this.setFields(allFields);
- // in case normalize
- Object.keys(allValues).forEach(function (f) {
- allValues[f] = _this7.fieldsStore.getFieldValue(f);
- });
- if (callback && Object(_utils__WEBPACK_IMPORTED_MODULE_16__["isEmptyObject"])(allFields)) {
- callback(Object(_utils__WEBPACK_IMPORTED_MODULE_16__["isEmptyObject"])(alreadyErrors) ? null : alreadyErrors, this.fieldsStore.getFieldsValue(fieldNames));
- return;
- }
- var validator = new async_validator__WEBPACK_IMPORTED_MODULE_5__["default"](allRules);
- if (validateMessages) {
- validator.messages(validateMessages);
- }
- validator.validate(allValues, options, function (errors) {
- var errorsGroup = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, alreadyErrors);
- if (errors && errors.length) {
- errors.forEach(function (e) {
- var errorFieldName = e.field;
- var fieldName = errorFieldName;
- // Handle using array validation rule.
- // ref: https://github.com/ant-design/ant-design/issues/14275
- Object.keys(allRules).some(function (ruleFieldName) {
- var rules = allRules[ruleFieldName] || [];
- // Exist if match rule
- if (ruleFieldName === errorFieldName) {
- fieldName = ruleFieldName;
- return true;
- }
- // Skip if not match array type
- if (rules.every(function (_ref2) {
- var type = _ref2.type;
- return type !== 'array';
- }) && errorFieldName.indexOf(ruleFieldName) !== 0) {
- return false;
- }
- // Exist if match the field name
- var restPath = errorFieldName.slice(ruleFieldName.length + 1);
- if (/^\d+$/.test(restPath)) {
- fieldName = ruleFieldName;
- return true;
- }
- return false;
- });
- var field = lodash_get__WEBPACK_IMPORTED_MODULE_7___default()(errorsGroup, fieldName);
- if ((typeof field === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(field)) !== 'object' || Array.isArray(field)) {
- lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(errorsGroup, fieldName, { errors: [] });
- }
- var fieldErrors = lodash_get__WEBPACK_IMPORTED_MODULE_7___default()(errorsGroup, fieldName.concat('.errors'));
- fieldErrors.push(e);
- });
- }
- var expired = [];
- var nowAllFields = {};
- Object.keys(allRules).forEach(function (name) {
- var fieldErrors = lodash_get__WEBPACK_IMPORTED_MODULE_7___default()(errorsGroup, name);
- var nowField = _this7.fieldsStore.getField(name);
- // avoid concurrency problems
- if (!lodash_eq__WEBPACK_IMPORTED_MODULE_9___default()(nowField.value, allValues[name])) {
- expired.push({
- name: name
- });
- } else {
- nowField.errors = fieldErrors && fieldErrors.errors;
- nowField.value = allValues[name];
- nowField.validating = false;
- nowField.dirty = false;
- nowAllFields[name] = nowField;
- }
- });
- _this7.setFields(nowAllFields);
- if (callback) {
- if (expired.length) {
- expired.forEach(function (_ref3) {
- var name = _ref3.name;
- var fieldErrors = [{
- message: name + ' need to revalidate',
- field: name
- }];
- lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(errorsGroup, name, {
- expired: true,
- errors: fieldErrors
- });
- });
- }
- callback(Object(_utils__WEBPACK_IMPORTED_MODULE_16__["isEmptyObject"])(errorsGroup) ? null : errorsGroup, _this7.fieldsStore.getFieldsValue(fieldNames));
- }
- });
- },
- validateFields: function validateFields(ns, opt, cb) {
- var _this8 = this;
- var pending = new Promise(function (resolve, reject) {
- var _getParams = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getParams"])(ns, opt, cb),
- names = _getParams.names,
- options = _getParams.options;
- var _getParams2 = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getParams"])(ns, opt, cb),
- callback = _getParams2.callback;
- if (!callback || typeof callback === 'function') {
- var oldCb = callback;
- callback = function callback(errors, values) {
- if (oldCb) {
- oldCb(errors, values);
- } else if (errors) {
- reject({ errors: errors, values: values });
- } else {
- resolve(values);
- }
- };
- }
- var fieldNames = names ? _this8.fieldsStore.getValidFieldsFullName(names) : _this8.fieldsStore.getValidFieldsName();
- var fields = fieldNames.filter(function (name) {
- var fieldMeta = _this8.fieldsStore.getFieldMeta(name);
- return Object(_utils__WEBPACK_IMPORTED_MODULE_16__["hasRules"])(fieldMeta.validate);
- }).map(function (name) {
- var field = _this8.fieldsStore.getField(name);
- field.value = _this8.fieldsStore.getFieldValue(name);
- return field;
- });
- if (!fields.length) {
- callback(null, _this8.fieldsStore.getFieldsValue(fieldNames));
- return;
- }
- if (!('firstFields' in options)) {
- options.firstFields = fieldNames.filter(function (name) {
- var fieldMeta = _this8.fieldsStore.getFieldMeta(name);
- return !!fieldMeta.validateFirst;
- });
- }
- _this8.validateFieldsInternal(fields, {
- fieldNames: fieldNames,
- options: options
- }, callback);
- });
- pending['catch'](function (e) {
- if (console.error && "development" !== 'production') {
- console.error(e);
- }
- return e;
- });
- return pending;
- },
- isSubmitting: function isSubmitting() {
- if (true) {
- warning__WEBPACK_IMPORTED_MODULE_6___default()(false, '`isSubmitting` is deprecated. ' + "Actually, it's more convenient to handle submitting status by yourself.");
- }
- return this.submitting;
- },
- submit: function submit(callback) {
- var _this9 = this;
- if (true) {
- warning__WEBPACK_IMPORTED_MODULE_6___default()(false, '`submit` is deprecated. ' + "Actually, it's more convenient to handle submitting status by yourself.");
- }
- var fn = function fn() {
- _this9.setState({
- submitting: false
- });
- };
- this.setState({
- submitting: true
- });
- callback(fn);
- }
- },
- render: function render() {
- var h = arguments[0];
- var $slots = this.$slots,
- $scopedSlots = this.$scopedSlots;
- var formProps = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, formPropName, this.getForm());
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getOptionProps"])(this),
- wrappedComponentRef = _getOptionProps.wrappedComponentRef,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['wrappedComponentRef']);
- var wrappedComponentProps = {
- props: mapProps.call(this, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, formProps, restProps)),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getListeners"])(this),
- ref: 'WrappedComponent',
- directives: [{
- name: 'ant-ref',
- value: wrappedComponentRef
- }]
- };
- if (Object.keys($scopedSlots).length) {
- wrappedComponentProps.scopedSlots = $scopedSlots;
- }
- var slotsKey = Object.keys($slots);
- return WrappedComponent ? h(
- WrappedComponent,
- wrappedComponentProps,
- [slotsKey.length ? slotsKey.map(function (name) {
- return h(
- 'template',
- { slot: name },
- [$slots[name]]
- );
- }) : null]
- ) : null;
- }
- };
- if (!WrappedComponent) return Form;
- if (Array.isArray(WrappedComponent.props)) {
- var newProps = {};
- WrappedComponent.props.forEach(function (prop) {
- newProps[prop] = _util_vue_types__WEBPACK_IMPORTED_MODULE_15__["default"].any;
- });
- newProps[formPropName] = Object;
- WrappedComponent.props = newProps;
- } else {
- WrappedComponent.props = WrappedComponent.props || {};
- if (!(formPropName in WrappedComponent.props)) {
- WrappedComponent.props[formPropName] = Object;
- }
- }
- return Object(_utils__WEBPACK_IMPORTED_MODULE_16__["argumentContainer"])(Form, WrappedComponent);
- };
- }
- /* harmony default export */ __webpack_exports__["default"] = (createBaseForm);
- /***/ }),
- /***/ "./components/vc-form/src/createDOMForm.jsx":
- /*!**************************************************!*\
- !*** ./components/vc-form/src/createDOMForm.jsx ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
- /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");
- /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _createBaseForm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createBaseForm */ "./components/vc-form/src/createBaseForm.jsx");
- /* harmony import */ var _createForm__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createForm */ "./components/vc-form/src/createForm.jsx");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./components/vc-form/src/utils.js");
- function computedStyle(el, prop) {
- var getComputedStyle = window.getComputedStyle;
- var style =
- // If we have getComputedStyle
- getComputedStyle ? // Query it
- // TODO: From CSS-Query notes, we might need (node, null) for FF
- getComputedStyle(el) : // Otherwise, we are in IE and use currentStyle
- el.currentStyle;
- if (style) {
- return style[
- // Switch to camelCase for CSSOM
- // DEV: Grabbed from jQuery
- // https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194
- // https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597
- prop.replace(/-(\w)/gi, function (word, letter) {
- return letter.toUpperCase();
- })];
- }
- return undefined;
- }
- function getScrollableContainer(n) {
- var node = n;
- var nodeName = void 0;
- /* eslint no-cond-assign:0 */
- while ((nodeName = node.nodeName.toLowerCase()) !== 'body') {
- var overflowY = computedStyle(node, 'overflowY');
- // https://stackoverflow.com/a/36900407/3040605
- if (node !== n && (overflowY === 'auto' || overflowY === 'scroll') && node.scrollHeight > node.clientHeight) {
- return node;
- }
- node = node.parentNode;
- }
- return nodeName === 'body' ? node.ownerDocument : node;
- }
- var mixin = {
- methods: {
- getForm: function getForm() {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _createForm__WEBPACK_IMPORTED_MODULE_4__["mixin"].methods.getForm.call(this), {
- validateFieldsAndScroll: this.validateFieldsAndScroll
- });
- },
- validateFieldsAndScroll: function validateFieldsAndScroll(ns, opt, cb) {
- var _this = this;
- var _getParams = Object(_utils__WEBPACK_IMPORTED_MODULE_5__["getParams"])(ns, opt, cb),
- names = _getParams.names,
- callback = _getParams.callback,
- options = _getParams.options;
- var newCb = function newCb(error, values) {
- if (error) {
- var validNames = _this.fieldsStore.getValidFieldsName();
- var firstNode = void 0;
- var firstTop = void 0;
- validNames.forEach(function (name) {
- if (lodash_has__WEBPACK_IMPORTED_MODULE_2___default()(error, name)) {
- var instance = _this.getFieldInstance(name);
- if (instance) {
- var node = instance.$el || instance.elm;
- var top = node.getBoundingClientRect().top;
- if (node.type !== 'hidden' && (firstTop === undefined || firstTop > top)) {
- firstTop = top;
- firstNode = node;
- }
- }
- }
- });
- if (firstNode) {
- var c = options.container || getScrollableContainer(firstNode);
- Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_1__["default"])(firstNode, c, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- onlyScrollIfNeeded: true
- }, options.scroll));
- }
- }
- if (typeof callback === 'function') {
- callback(error, values);
- }
- };
- return this.validateFields(names, options, newCb);
- }
- }
- };
- function createDOMForm(option) {
- return Object(_createBaseForm__WEBPACK_IMPORTED_MODULE_3__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, option), [mixin]);
- }
- /* harmony default export */ __webpack_exports__["default"] = (createDOMForm);
- /***/ }),
- /***/ "./components/vc-form/src/createFieldsStore.jsx":
- /*!******************************************************!*\
- !*** ./components/vc-form/src/createFieldsStore.jsx ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createFieldsStore; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
- /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/createClass */ "./node_modules/babel-runtime/helpers/createClass.js");
- /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/set */ "./node_modules/lodash/set.js");
- /* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_set__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _createFormField__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createFormField */ "./components/vc-form/src/createFormField.jsx");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/vc-form/src/utils.js");
- function partOf(a, b) {
- return b.indexOf(a) === 0 && ['.', '['].indexOf(b[a.length]) !== -1;
- }
- function internalFlattenFields(fields) {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["flattenFields"])(fields, function (_, node) {
- return Object(_createFormField__WEBPACK_IMPORTED_MODULE_5__["isFormField"])(node);
- }, 'You must wrap field data with `createFormField`.');
- }
- var FieldsStore = function () {
- function FieldsStore(fields) {
- babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, FieldsStore);
- _initialiseProps.call(this);
- this.fields = internalFlattenFields(fields);
- this.fieldsMeta = {};
- }
- babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(FieldsStore, [{
- key: 'updateFields',
- value: function updateFields(fields) {
- this.fields = internalFlattenFields(fields);
- }
- }, {
- key: 'flattenRegisteredFields',
- value: function flattenRegisteredFields(fields) {
- var validFieldsName = this.getAllFieldsName();
- return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["flattenFields"])(fields, function (path) {
- return validFieldsName.indexOf(path) >= 0;
- }, 'You cannot set a form field before rendering a field associated with the value. You can use `getFieldDecorator(id, options)` instead `v-decorator="[id, options]"` to register it before render.');
- }
- }, {
- key: 'setFields',
- value: function setFields(fields) {
- var _this = this;
- var fieldsMeta = this.fieldsMeta;
- var nowFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.fields, fields);
- var nowValues = {};
- Object.keys(fieldsMeta).forEach(function (f) {
- nowValues[f] = _this.getValueFromFields(f, nowFields);
- });
- Object.keys(nowValues).forEach(function (f) {
- var value = nowValues[f];
- var fieldMeta = _this.getFieldMeta(f);
- if (fieldMeta && fieldMeta.normalize) {
- var nowValue = fieldMeta.normalize(value, _this.getValueFromFields(f, _this.fields), nowValues);
- if (nowValue !== value) {
- nowFields[f] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nowFields[f], {
- value: nowValue
- });
- }
- }
- });
- this.fields = nowFields;
- }
- }, {
- key: 'resetFields',
- value: function resetFields(ns) {
- var fields = this.fields;
- var names = ns ? this.getValidFieldsFullName(ns) : this.getAllFieldsName();
- return names.reduce(function (acc, name) {
- var field = fields[name];
- if (field && 'value' in field) {
- acc[name] = {};
- }
- return acc;
- }, {});
- }
- }, {
- key: 'setFieldMeta',
- value: function setFieldMeta(name, meta) {
- this.fieldsMeta[name] = meta;
- }
- }, {
- key: 'setFieldsAsDirty',
- value: function setFieldsAsDirty() {
- var _this2 = this;
- Object.keys(this.fields).forEach(function (name) {
- var field = _this2.fields[name];
- var fieldMeta = _this2.fieldsMeta[name];
- if (field && fieldMeta && Object(_utils__WEBPACK_IMPORTED_MODULE_6__["hasRules"])(fieldMeta.validate)) {
- _this2.fields[name] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, field, {
- dirty: true
- });
- }
- });
- }
- }, {
- key: 'getFieldMeta',
- value: function getFieldMeta(name) {
- this.fieldsMeta[name] = this.fieldsMeta[name] || {};
- return this.fieldsMeta[name];
- }
- }, {
- key: 'getValueFromFields',
- value: function getValueFromFields(name, fields) {
- var field = fields[name];
- if (field && 'value' in field) {
- return field.value;
- }
- var fieldMeta = this.getFieldMeta(name);
- return fieldMeta && fieldMeta.initialValue;
- }
- }, {
- key: 'getValidFieldsName',
- value: function getValidFieldsName() {
- var _this3 = this;
- var fieldsMeta = this.fieldsMeta;
- return fieldsMeta ? Object.keys(fieldsMeta).filter(function (name) {
- return !_this3.getFieldMeta(name).hidden;
- }) : [];
- }
- }, {
- key: 'getAllFieldsName',
- value: function getAllFieldsName() {
- var fieldsMeta = this.fieldsMeta;
- return fieldsMeta ? Object.keys(fieldsMeta) : [];
- }
- }, {
- key: 'getValidFieldsFullName',
- value: function getValidFieldsFullName(maybePartialName) {
- var maybePartialNames = Array.isArray(maybePartialName) ? maybePartialName : [maybePartialName];
- return this.getValidFieldsName().filter(function (fullName) {
- return maybePartialNames.some(function (partialName) {
- return fullName === partialName || Object(_utils__WEBPACK_IMPORTED_MODULE_6__["startsWith"])(fullName, partialName) && ['.', '['].indexOf(fullName[partialName.length]) >= 0;
- });
- });
- }
- }, {
- key: 'getFieldValuePropValue',
- value: function getFieldValuePropValue(fieldMeta) {
- var name = fieldMeta.name,
- getValueProps = fieldMeta.getValueProps,
- valuePropName = fieldMeta.valuePropName;
- var field = this.getField(name);
- var fieldValue = 'value' in field ? field.value : fieldMeta.initialValue;
- if (getValueProps) {
- return getValueProps(fieldValue);
- }
- return babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, valuePropName, fieldValue);
- }
- }, {
- key: 'getField',
- value: function getField(name) {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.fields[name], {
- name: name
- });
- }
- }, {
- key: 'getNotCollectedFields',
- value: function getNotCollectedFields() {
- var _this4 = this;
- var fieldsName = this.getValidFieldsName();
- return fieldsName.filter(function (name) {
- return !_this4.fields[name];
- }).map(function (name) {
- return {
- name: name,
- dirty: false,
- value: _this4.getFieldMeta(name).initialValue
- };
- }).reduce(function (acc, field) {
- return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, field.name, Object(_createFormField__WEBPACK_IMPORTED_MODULE_5__["default"])(field));
- }, {});
- }
- }, {
- key: 'getNestedAllFields',
- value: function getNestedAllFields() {
- var _this5 = this;
- return Object.keys(this.fields).reduce(function (acc, name) {
- return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, name, Object(_createFormField__WEBPACK_IMPORTED_MODULE_5__["default"])(_this5.fields[name]));
- }, this.getNotCollectedFields());
- }
- }, {
- key: 'getFieldMember',
- value: function getFieldMember(name, member) {
- return this.getField(name)[member];
- }
- }, {
- key: 'getNestedFields',
- value: function getNestedFields(names, getter) {
- var fields = names || this.getValidFieldsName();
- return fields.reduce(function (acc, f) {
- return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, f, getter(f));
- }, {});
- }
- }, {
- key: 'getNestedField',
- value: function getNestedField(name, getter) {
- var fullNames = this.getValidFieldsFullName(name);
- if (fullNames.length === 0 || // Not registered
- fullNames.length === 1 && fullNames[0] === name // Name already is full name.
- ) {
- return getter(name);
- }
- var isArrayValue = fullNames[0][name.length] === '[';
- var suffixNameStartIndex = isArrayValue ? name.length : name.length + 1;
- return fullNames.reduce(function (acc, fullName) {
- return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, fullName.slice(suffixNameStartIndex), getter(fullName));
- }, isArrayValue ? [] : {});
- }
- }, {
- key: 'isValidNestedFieldName',
- // @private
- // BG: `a` and `a.b` cannot be use in the same form
- value: function isValidNestedFieldName(name) {
- var names = this.getAllFieldsName();
- return names.every(function (n) {
- return !partOf(n, name) && !partOf(name, n);
- });
- }
- }, {
- key: 'clearField',
- value: function clearField(name) {
- delete this.fields[name];
- delete this.fieldsMeta[name];
- }
- }]);
- return FieldsStore;
- }();
- var _initialiseProps = function _initialiseProps() {
- var _this6 = this;
- this.setFieldsInitialValue = function (initialValues) {
- var flattenedInitialValues = _this6.flattenRegisteredFields(initialValues);
- var fieldsMeta = _this6.fieldsMeta;
- Object.keys(flattenedInitialValues).forEach(function (name) {
- if (fieldsMeta[name]) {
- _this6.setFieldMeta(name, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _this6.getFieldMeta(name), {
- initialValue: flattenedInitialValues[name]
- }));
- }
- });
- };
- this.getAllValues = function () {
- var fieldsMeta = _this6.fieldsMeta,
- fields = _this6.fields;
- return Object.keys(fieldsMeta).reduce(function (acc, name) {
- return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, name, _this6.getValueFromFields(name, fields));
- }, {});
- };
- this.getFieldsValue = function (names) {
- return _this6.getNestedFields(names, _this6.getFieldValue);
- };
- this.getFieldValue = function (name) {
- var fields = _this6.fields;
- return _this6.getNestedField(name, function (fullName) {
- return _this6.getValueFromFields(fullName, fields);
- });
- };
- this.getFieldsError = function (names) {
- return _this6.getNestedFields(names, _this6.getFieldError);
- };
- this.getFieldError = function (name) {
- return _this6.getNestedField(name, function (fullName) {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["getErrorStrs"])(_this6.getFieldMember(fullName, 'errors'));
- });
- };
- this.isFieldValidating = function (name) {
- return _this6.getFieldMember(name, 'validating');
- };
- this.isFieldsValidating = function (ns) {
- var names = ns || _this6.getValidFieldsName();
- return names.some(function (n) {
- return _this6.isFieldValidating(n);
- });
- };
- this.isFieldTouched = function (name) {
- return _this6.getFieldMember(name, 'touched');
- };
- this.isFieldsTouched = function (ns) {
- var names = ns || _this6.getValidFieldsName();
- return names.some(function (n) {
- return _this6.isFieldTouched(n);
- });
- };
- };
- function createFieldsStore(fields) {
- return new FieldsStore(fields);
- }
- /***/ }),
- /***/ "./components/vc-form/src/createForm.jsx":
- /*!***********************************************!*\
- !*** ./components/vc-form/src/createForm.jsx ***!
- \***********************************************/
- /*! exports provided: mixin, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixin", function() { return mixin; });
- /* harmony import */ var _createBaseForm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createBaseForm */ "./components/vc-form/src/createBaseForm.jsx");
- var mixin = {
- methods: {
- getForm: function getForm() {
- return {
- getFieldsValue: this.fieldsStore.getFieldsValue,
- getFieldValue: this.fieldsStore.getFieldValue,
- getFieldInstance: this.getFieldInstance,
- setFieldsValue: this.setFieldsValue,
- setFields: this.setFields,
- setFieldsInitialValue: this.fieldsStore.setFieldsInitialValue,
- getFieldDecorator: this.getFieldDecorator,
- getFieldProps: this.getFieldProps,
- getFieldsError: this.fieldsStore.getFieldsError,
- getFieldError: this.fieldsStore.getFieldError,
- isFieldValidating: this.fieldsStore.isFieldValidating,
- isFieldsValidating: this.fieldsStore.isFieldsValidating,
- isFieldsTouched: this.fieldsStore.isFieldsTouched,
- isFieldTouched: this.fieldsStore.isFieldTouched,
- isSubmitting: this.isSubmitting,
- submit: this.submit,
- validateFields: this.validateFields,
- resetFields: this.resetFields
- };
- }
- }
- };
- function createForm(options) {
- return Object(_createBaseForm__WEBPACK_IMPORTED_MODULE_0__["default"])(options, [mixin]);
- }
- /* harmony default export */ __webpack_exports__["default"] = (createForm);
- /***/ }),
- /***/ "./components/vc-form/src/createFormField.jsx":
- /*!****************************************************!*\
- !*** ./components/vc-form/src/createFormField.jsx ***!
- \****************************************************/
- /*! exports provided: isFormField, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFormField", function() { return isFormField; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createFormField; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
- /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
- var Field = function Field(fields) {
- babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Field);
- babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()(this, fields);
- };
- function isFormField(obj) {
- return obj instanceof Field;
- }
- function createFormField(field) {
- if (isFormField(field)) {
- return field;
- }
- return new Field(field);
- }
- /***/ }),
- /***/ "./components/vc-form/src/utils.js":
- /*!*****************************************!*\
- !*** ./components/vc-form/src/utils.js ***!
- \*****************************************/
- /*! exports provided: argumentContainer, identity, flattenArray, treeTraverse, flattenFields, normalizeValidateRules, getValidateTriggers, getValueFromEvent, getErrorStrs, getParams, isEmptyObject, hasRules, startsWith */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "argumentContainer", function() { return argumentContainer; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flattenArray", function() { return flattenArray; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "treeTraverse", function() { return treeTraverse; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flattenFields", function() { return flattenFields; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeValidateRules", function() { return normalizeValidateRules; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValidateTriggers", function() { return getValidateTriggers; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueFromEvent", function() { return getValueFromEvent; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getErrorStrs", function() { return getErrorStrs; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getParams", function() { return getParams; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmptyObject", function() { return isEmptyObject; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasRules", function() { return hasRules; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "startsWith", function() { return startsWith; });
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_2__);
- function getDisplayName(WrappedComponent) {
- return WrappedComponent.name || 'WrappedComponent';
- }
- function argumentContainer(Container, WrappedComponent) {
- /* eslint no-param-reassign:0 */
- Container.name = 'Form_' + getDisplayName(WrappedComponent);
- Container.WrappedComponent = WrappedComponent;
- Container.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Container.props, WrappedComponent.props);
- return Container;
- }
- function identity(obj) {
- return obj;
- }
- function flattenArray(arr) {
- return Array.prototype.concat.apply([], arr);
- }
- function treeTraverse() {
- var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
- var tree = arguments[1];
- var isLeafNode = arguments[2];
- var errorMessage = arguments[3];
- var callback = arguments[4];
- if (isLeafNode(path, tree)) {
- callback(path, tree);
- } else if (tree === undefined || tree === null) {
- // Do nothing
- } else if (Array.isArray(tree)) {
- tree.forEach(function (subTree, index) {
- return treeTraverse(path + '[' + index + ']', subTree, isLeafNode, errorMessage, callback);
- });
- } else {
- // It's object and not a leaf node
- if ((typeof tree === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(tree)) !== 'object') {
- warning__WEBPACK_IMPORTED_MODULE_2___default()(false, errorMessage);
- return;
- }
- Object.keys(tree).forEach(function (subTreeKey) {
- var subTree = tree[subTreeKey];
- treeTraverse('' + path + (path ? '.' : '') + subTreeKey, subTree, isLeafNode, errorMessage, callback);
- });
- }
- }
- function flattenFields(maybeNestedFields, isLeafNode, errorMessage) {
- var fields = {};
- treeTraverse(undefined, maybeNestedFields, isLeafNode, errorMessage, function (path, node) {
- fields[path] = node;
- });
- return fields;
- }
- function normalizeValidateRules(validate, rules, validateTrigger) {
- var validateRules = validate.map(function (item) {
- var newItem = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, item, {
- trigger: item.trigger || []
- });
- if (typeof newItem.trigger === 'string') {
- newItem.trigger = [newItem.trigger];
- }
- return newItem;
- });
- if (rules) {
- validateRules.push({
- trigger: validateTrigger ? [].concat(validateTrigger) : [],
- rules: rules
- });
- }
- return validateRules;
- }
- function getValidateTriggers(validateRules) {
- return validateRules.filter(function (item) {
- return !!item.rules && item.rules.length;
- }).map(function (item) {
- return item.trigger;
- }).reduce(function (pre, curr) {
- return pre.concat(curr);
- }, []);
- }
- function getValueFromEvent(e) {
- // To support custom element
- if (!e || !e.target) {
- return e;
- }
- var target = e.target;
- return target.type === 'checkbox' ? target.checked : target.value;
- }
- function getErrorStrs(errors) {
- if (errors) {
- return errors.map(function (e) {
- if (e && e.message) {
- return e.message;
- }
- return e;
- });
- }
- return errors;
- }
- function getParams(ns, opt, cb) {
- var names = ns;
- var options = opt;
- var callback = cb;
- if (cb === undefined) {
- if (typeof names === 'function') {
- callback = names;
- options = {};
- names = undefined;
- } else if (Array.isArray(names)) {
- if (typeof options === 'function') {
- callback = options;
- options = {};
- } else {
- options = options || {};
- }
- } else {
- callback = options;
- options = names || {};
- names = undefined;
- }
- }
- return {
- names: names,
- options: options,
- callback: callback
- };
- }
- function isEmptyObject(obj) {
- return Object.keys(obj).length === 0;
- }
- function hasRules(validate) {
- if (validate) {
- return validate.some(function (item) {
- return item.rules && item.rules.length;
- });
- }
- return false;
- }
- function startsWith(str, prefix) {
- return str.lastIndexOf(prefix, 0) === 0;
- }
- /***/ }),
- /***/ "./components/vc-input-number/src/InputHandler.js":
- /*!********************************************************!*\
- !*** ./components/vc-input-number/src/InputHandler.js ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_m_feedback__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-m-feedback */ "./components/vc-m-feedback/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- var InputHandler = {
- name: 'InputHandler',
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
- },
- render: function render() {
- var h = arguments[0];
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- disabled = _$props.disabled;
- var touchableProps = {
- props: {
- disabled: disabled,
- activeClassName: prefixCls + '-handler-active'
- },
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this)
- };
- return h(
- _vc_m_feedback__WEBPACK_IMPORTED_MODULE_1__["default"],
- touchableProps,
- [h('span', [this.$slots['default']])]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (InputHandler);
- /***/ }),
- /***/ "./components/vc-input-number/src/index.js":
- /*!*************************************************!*\
- !*** ./components/vc-input-number/src/index.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _InputHandler__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./InputHandler */ "./components/vc-input-number/src/InputHandler.js");
- // based on rc-input-number 4.5.5
- function noop() {}
- function preventDefault(e) {
- e.preventDefault();
- }
- function defaultParser(input) {
- return input.replace(/[^\w\.-]+/g, '');
- }
- /**
- * When click and hold on a button - the speed of auto changin the value.
- */
- var SPEED = 200;
- /**
- * When click and hold on a button - the delay before auto changin the value.
- */
- var DELAY = 600;
- /**
- * Max Safe Integer -- on IE this is not available, so manually set the number in that case.
- * The reason this is used, instead of Infinity is because numbers above the MSI are unstable
- */
- var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1;
- var isValidProps = function isValidProps(value) {
- return value !== undefined && value !== null;
- };
- var isEqual = function isEqual(oldValue, newValue) {
- return newValue === oldValue || typeof newValue === 'number' && typeof oldValue === 'number' && isNaN(newValue) && isNaN(oldValue);
- };
- var inputNumberProps = {
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
- focusOnUpDown: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- // onChange: PropTypes.func,
- // onKeyDown: PropTypes.func,
- // onKeyUp: PropTypes.func,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- // onFocus: PropTypes.func,
- // onBlur: PropTypes.func,
- readonly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- step: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
- upHandler: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- downHandler: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- useTouch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- formatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- parser: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- // onMouseEnter: PropTypes.func,
- // onMouseLeave: PropTypes.func,
- // onMouseOver: PropTypes.func,
- // onMouseOut: PropTypes.func,
- precision: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- required: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- pattern: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- decimalSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- autoComplete: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'VCInputNumber',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- model: {
- prop: 'value',
- event: 'change'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(inputNumberProps, {
- focusOnUpDown: true,
- useTouch: false,
- prefixCls: 'rc-input-number',
- min: -MAX_SAFE_INTEGER,
- step: 1,
- parser: defaultParser,
- required: false,
- autoComplete: 'off'
- }),
- data: function data() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
- var value = void 0;
- if ('value' in props) {
- value = this.value;
- } else {
- value = this.defaultValue;
- }
- var validValue = this.getValidValue(this.toNumber(value));
- return {
- inputValue: this.toPrecisionAsStep(validValue),
- sValue: validValue,
- focused: this.autoFocus
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.autoFocus && !_this.disabled) {
- _this.focus();
- }
- _this.updatedFunc();
- });
- },
- updated: function updated() {
- var _this2 = this;
- var _$props = this.$props,
- value = _$props.value,
- max = _$props.max,
- min = _$props.min;
- var focused = this.$data.focused;
- var prevProps = this.prevProps;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- // Don't trigger in componentDidMount
- if (prevProps) {
- if (!isEqual(prevProps.value, value) || !isEqual(prevProps.max, max) || !isEqual(prevProps.min, min)) {
- var validValue = focused ? value : this.getValidValue(value);
- var nextInputValue = void 0;
- if (this.pressingUpOrDown) {
- nextInputValue = validValue;
- } else if (this.inputting) {
- nextInputValue = this.rawInput;
- } else {
- nextInputValue = this.toPrecisionAsStep(validValue);
- }
- this.setState({
- // eslint-disable-line
- sValue: validValue,
- inputValue: nextInputValue
- });
- }
- // Trigger onChange when max or min change
- // https://github.com/ant-design/ant-design/issues/11574
- var nextValue = 'value' in props ? value : this.sValue;
- // ref: null < 20 === true
- // https://github.com/ant-design/ant-design/issues/14277
- if ('max' in props && prevProps.max !== max && typeof nextValue === 'number' && nextValue > max) {
- this.$emit('change', max);
- }
- if ('min' in props && prevProps.min !== min && typeof nextValue === 'number' && nextValue < min) {
- this.$emit('change', min);
- }
- }
- this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
- this.$nextTick(function () {
- _this2.updatedFunc();
- });
- },
- beforeDestroy: function beforeDestroy() {
- this.stop();
- },
- methods: {
- updatedFunc: function updatedFunc() {
- var inputElem = this.$refs.inputRef;
- // Restore cursor
- try {
- // Firefox set the input cursor after it get focused.
- // This caused that if an input didn't init with the selection,
- // set will cause cursor not correct when first focus.
- // Safari will focus input if set selection. We need skip this.
- if (this.cursorStart !== undefined && this.focused) {
- // In most cases, the string after cursor is stable.
- // We can move the cursor before it
- if (
- // If not match full str, try to match part of str
- !this.partRestoreByAfter(this.cursorAfter) && this.sValue !== this.value) {
- // If not match any of then, let's just keep the position
- // TODO: Logic should not reach here, need check if happens
- var pos = this.cursorStart + 1;
- // If not have last string, just position to the end
- if (!this.cursorAfter) {
- pos = inputElem.value.length;
- } else if (this.lastKeyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE) {
- pos = this.cursorStart - 1;
- } else if (this.lastKeyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DELETE) {
- pos = this.cursorStart;
- }
- this.fixCaret(pos, pos);
- } else if (this.currentValue === inputElem.value) {
- // Handle some special key code
- switch (this.lastKeyCode) {
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE:
- this.fixCaret(this.cursorStart - 1, this.cursorStart - 1);
- break;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DELETE:
- this.fixCaret(this.cursorStart + 1, this.cursorStart + 1);
- break;
- default:
- // Do nothing
- }
- }
- }
- } catch (e) {}
- // Do nothing
- // Reset last key
- this.lastKeyCode = null;
- // pressingUpOrDown is true means that someone just click up or down button
- if (!this.pressingUpOrDown) {
- return;
- }
- if (this.focusOnUpDown && this.focused) {
- if (document.activeElement !== inputElem) {
- this.focus();
- }
- }
- this.pressingUpOrDown = false;
- },
- onKeyDown: function onKeyDown(e) {
- if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP) {
- var ratio = this.getRatio(e);
- this.up(e, ratio);
- this.stop();
- } else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN) {
- var _ratio = this.getRatio(e);
- this.down(e, _ratio);
- this.stop();
- } else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
- this.$emit('pressEnter', e);
- }
- // Trigger user key down
- this.recordCursorPosition();
- this.lastKeyCode = e.keyCode;
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
- this.$emit.apply(this, ['keydown', e].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
- },
- onKeyUp: function onKeyUp(e) {
- this.stop();
- this.recordCursorPosition();
- for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
- args[_key2 - 1] = arguments[_key2];
- }
- this.$emit.apply(this, ['keyup', e].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
- },
- onTrigger: function onTrigger(e) {
- if (e.target.composing) return false;
- this.onChange(e);
- },
- onChange: function onChange(e) {
- if (this.focused) {
- this.inputting = true;
- }
- this.rawInput = this.parser(this.getValueFromEvent(e));
- this.setState({ inputValue: this.rawInput });
- this.$emit('change', this.toNumber(this.rawInput)); // valid number or invalid string
- },
- onFocus: function onFocus() {
- this.setState({
- focused: true
- });
- for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
- args[_key3] = arguments[_key3];
- }
- this.$emit.apply(this, ['focus'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
- },
- onBlur: function onBlur() {
- this.inputting = false;
- this.setState({
- focused: false
- });
- var value = this.getCurrentValidValue(this.inputValue);
- var newValue = this.setValue(value);
- if (this.$listeners.blur) {
- var originValue = this.$refs.inputRef.value;
- var inputValue = this.getInputDisplayValue({ focused: false, sValue: newValue });
- this.$refs.inputRef.value = inputValue;
- for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
- args[_key4] = arguments[_key4];
- }
- this.$emit.apply(this, ['blur'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
- this.$refs.inputRef.value = originValue;
- }
- },
- getCurrentValidValue: function getCurrentValidValue(value) {
- var val = value;
- if (val === '') {
- val = '';
- } else if (!this.isNotCompleteNumber(parseFloat(val, 10))) {
- val = this.getValidValue(val);
- } else {
- val = this.sValue;
- }
- return this.toNumber(val);
- },
- getRatio: function getRatio(e) {
- var ratio = 1;
- if (e.metaKey || e.ctrlKey) {
- ratio = 0.1;
- } else if (e.shiftKey) {
- ratio = 10;
- }
- return ratio;
- },
- getValueFromEvent: function getValueFromEvent(e) {
- // optimize for chinese input expierence
- // https://github.com/ant-design/ant-design/issues/8196
- var value = e.target.value.trim().replace(/。/g, '.');
- if (isValidProps(this.decimalSeparator)) {
- value = value.replace(this.decimalSeparator, '.');
- }
- return value;
- },
- getValidValue: function getValidValue(value) {
- var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.min;
- var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.max;
- var val = parseFloat(value, 10);
- // https://github.com/ant-design/ant-design/issues/7358
- if (isNaN(val)) {
- return value;
- }
- if (val < min) {
- val = min;
- }
- if (val > max) {
- val = max;
- }
- return val;
- },
- setValue: function setValue(v, callback) {
- // trigger onChange
- var precision = this.$props.precision;
- var newValue = this.isNotCompleteNumber(parseFloat(v, 10)) ? null : parseFloat(v, 10);
- var _$data = this.$data,
- _$data$sValue = _$data.sValue,
- value = _$data$sValue === undefined ? null : _$data$sValue,
- _$data$inputValue = _$data.inputValue,
- inputValue = _$data$inputValue === undefined ? null : _$data$inputValue;
- // https://github.com/ant-design/ant-design/issues/7363
- // https://github.com/ant-design/ant-design/issues/16622
- var newValueInString = typeof newValue === 'number' ? newValue.toFixed(precision) : '' + newValue;
- var changed = newValue !== value || newValueInString !== '' + inputValue;
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'value')) {
- this.setState({
- sValue: newValue,
- inputValue: this.toPrecisionAsStep(v)
- }, callback);
- } else {
- // always set input value same as value
- this.setState({
- inputValue: this.toPrecisionAsStep(this.sValue)
- }, callback);
- }
- if (changed) {
- this.$emit('change', newValue);
- }
- return newValue;
- },
- getPrecision: function getPrecision(value) {
- if (isValidProps(this.precision)) {
- return this.precision;
- }
- var valueString = value.toString();
- if (valueString.indexOf('e-') >= 0) {
- return parseInt(valueString.slice(valueString.indexOf('e-') + 2), 10);
- }
- var precision = 0;
- if (valueString.indexOf('.') >= 0) {
- precision = valueString.length - valueString.indexOf('.') - 1;
- }
- return precision;
- },
- // step={1.0} value={1.51}
- // press +
- // then value should be 2.51, rather than 2.5
- // if this.$props.precision is undefined
- // https://github.com/react-component/input-number/issues/39
- getMaxPrecision: function getMaxPrecision(currentValue) {
- var ratio = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
- if (isValidProps(this.precision)) {
- return this.precision;
- }
- var step = this.step;
- var ratioPrecision = this.getPrecision(ratio);
- var stepPrecision = this.getPrecision(step);
- var currentValuePrecision = this.getPrecision(currentValue);
- if (!currentValue) {
- return ratioPrecision + stepPrecision;
- }
- return Math.max(currentValuePrecision, ratioPrecision + stepPrecision);
- },
- getPrecisionFactor: function getPrecisionFactor(currentValue) {
- var ratio = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
- var precision = this.getMaxPrecision(currentValue, ratio);
- return Math.pow(10, precision);
- },
- getInputDisplayValue: function getInputDisplayValue(state) {
- var _ref = state || this.$data,
- focused = _ref.focused,
- inputValue = _ref.inputValue,
- sValue = _ref.sValue;
- var inputDisplayValue = void 0;
- if (focused) {
- inputDisplayValue = inputValue;
- } else {
- inputDisplayValue = this.toPrecisionAsStep(sValue);
- }
- if (inputDisplayValue === undefined || inputDisplayValue === null) {
- inputDisplayValue = '';
- }
- var inputDisplayValueFormat = this.formatWrapper(inputDisplayValue);
- if (isValidProps(this.$props.decimalSeparator)) {
- inputDisplayValueFormat = inputDisplayValueFormat.toString().replace('.', this.$props.decimalSeparator);
- }
- return inputDisplayValueFormat;
- },
- recordCursorPosition: function recordCursorPosition() {
- // Record position
- try {
- var inputElem = this.$refs.inputRef;
- this.cursorStart = inputElem.selectionStart;
- this.cursorEnd = inputElem.selectionEnd;
- this.currentValue = inputElem.value;
- this.cursorBefore = inputElem.value.substring(0, this.cursorStart);
- this.cursorAfter = inputElem.value.substring(this.cursorEnd);
- } catch (e) {
- // Fix error in Chrome:
- // Failed to read the 'selectionStart' property from 'HTMLInputElement'
- // http://stackoverflow.com/q/21177489/3040605
- }
- },
- fixCaret: function fixCaret(start, end) {
- if (start === undefined || end === undefined || !this.$refs.inputRef || !this.$refs.inputRef.value) {
- return;
- }
- try {
- var inputElem = this.$refs.inputRef;
- var currentStart = inputElem.selectionStart;
- var currentEnd = inputElem.selectionEnd;
- if (start !== currentStart || end !== currentEnd) {
- inputElem.setSelectionRange(start, end);
- }
- } catch (e) {
- // Fix error in Chrome:
- // Failed to read the 'selectionStart' property from 'HTMLInputElement'
- // http://stackoverflow.com/q/21177489/3040605
- }
- },
- restoreByAfter: function restoreByAfter(str) {
- if (str === undefined) return false;
- var fullStr = this.$refs.inputRef.value;
- var index = fullStr.lastIndexOf(str);
- if (index === -1) return false;
- var prevCursorPos = this.cursorBefore.length;
- if (this.lastKeyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DELETE && this.cursorBefore.charAt(prevCursorPos - 1) === str[0]) {
- this.fixCaret(prevCursorPos, prevCursorPos);
- return true;
- }
- if (index + str.length === fullStr.length) {
- this.fixCaret(index, index);
- return true;
- }
- return false;
- },
- partRestoreByAfter: function partRestoreByAfter(str) {
- var _this3 = this;
- if (str === undefined) return false;
- // For loop from full str to the str with last char to map. e.g. 123
- // -> 123
- // -> 23
- // -> 3
- return Array.prototype.some.call(str, function (_, start) {
- var partStr = str.substring(start);
- return _this3.restoreByAfter(partStr);
- });
- },
- focus: function focus() {
- this.$refs.inputRef.focus();
- this.recordCursorPosition();
- },
- blur: function blur() {
- this.$refs.inputRef.blur();
- },
- formatWrapper: function formatWrapper(num) {
- // http://2ality.com/2012/03/signedzero.html
- // https://github.com/ant-design/ant-design/issues/9439
- if (this.formatter) {
- return this.formatter(num);
- }
- return num;
- },
- toPrecisionAsStep: function toPrecisionAsStep(num) {
- if (this.isNotCompleteNumber(num) || num === '') {
- return num;
- }
- var precision = Math.abs(this.getMaxPrecision(num));
- if (!isNaN(precision)) {
- return Number(num).toFixed(precision);
- }
- return num.toString();
- },
- // '1.' '1x' 'xx' '' => are not complete numbers
- isNotCompleteNumber: function isNotCompleteNumber(num) {
- return isNaN(num) || num === '' || num === null || num && num.toString().indexOf('.') === num.toString().length - 1;
- },
- toNumber: function toNumber(num) {
- var _$props2 = this.$props,
- precision = _$props2.precision,
- autoFocus = _$props2.autoFocus;
- var _focused = this.focused,
- focused = _focused === undefined ? autoFocus : _focused;
- // num.length > 16 => This is to prevent input of large numbers
- var numberIsTooLarge = num && num.length > 16 && focused;
- if (this.isNotCompleteNumber(num) || numberIsTooLarge) {
- return num;
- }
- if (isValidProps(precision)) {
- return Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision);
- }
- return Number(num);
- },
- upStep: function upStep(val, rat) {
- var step = this.step;
- var precisionFactor = this.getPrecisionFactor(val, rat);
- var precision = Math.abs(this.getMaxPrecision(val, rat));
- var result = ((precisionFactor * val + precisionFactor * step * rat) / precisionFactor).toFixed(precision);
- return this.toNumber(result);
- },
- downStep: function downStep(val, rat) {
- var step = this.step;
- var precisionFactor = this.getPrecisionFactor(val, rat);
- var precision = Math.abs(this.getMaxPrecision(val, rat));
- var result = ((precisionFactor * val - precisionFactor * step * rat) / precisionFactor).toFixed(precision);
- return this.toNumber(result);
- },
- stepFn: function stepFn(type, e) {
- var _this4 = this;
- var ratio = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
- var recursive = arguments[3];
- this.stop();
- if (e) {
- // e.persist()
- e.preventDefault();
- }
- if (this.disabled) {
- return;
- }
- var max = this.max,
- min = this.min;
- var value = this.getCurrentValidValue(this.inputValue) || 0;
- if (this.isNotCompleteNumber(value)) {
- return;
- }
- var val = this[type + 'Step'](value, ratio);
- var outOfRange = val > max || val < min;
- if (val > max) {
- val = max;
- } else if (val < min) {
- val = min;
- }
- this.setValue(val);
- this.setState({
- focused: true
- });
- if (outOfRange) {
- return;
- }
- this.autoStepTimer = setTimeout(function () {
- _this4[type](e, ratio, true);
- }, recursive ? SPEED : DELAY);
- },
- stop: function stop() {
- if (this.autoStepTimer) {
- clearTimeout(this.autoStepTimer);
- }
- },
- down: function down(e, ratio, recursive) {
- this.pressingUpOrDown = true;
- this.stepFn('down', e, ratio, recursive);
- },
- up: function up(e, ratio, recursive) {
- this.pressingUpOrDown = true;
- this.stepFn('up', e, ratio, recursive);
- },
- handleInputClick: function handleInputClick() {
- this.$emit('click');
- },
- onCompositionstart: function onCompositionstart(e) {
- e.target.composing = true;
- },
- onCompositionend: function onCompositionend(e) {
- this.onChange(e);
- e.target.composing = false;
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var _$props3 = this.$props,
- prefixCls = _$props3.prefixCls,
- disabled = _$props3.disabled,
- readonly = _$props3.readonly,
- useTouch = _$props3.useTouch,
- autoComplete = _$props3.autoComplete,
- upHandler = _$props3.upHandler,
- downHandler = _$props3.downHandler;
- var classes = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-focused', this.focused), _classNames));
- var upDisabledClass = '';
- var downDisabledClass = '';
- var sValue = this.sValue;
- if (sValue || sValue === 0) {
- if (!isNaN(sValue)) {
- var val = Number(sValue);
- if (val >= this.max) {
- upDisabledClass = prefixCls + '-handler-up-disabled';
- }
- if (val <= this.min) {
- downDisabledClass = prefixCls + '-handler-down-disabled';
- }
- } else {
- upDisabledClass = prefixCls + '-handler-up-disabled';
- downDisabledClass = prefixCls + '-handler-down-disabled';
- }
- }
- var editable = !this.readonly && !this.disabled;
- // focus state, show input value
- // unfocus state, show valid value
- var inputDisplayValue = this.getInputDisplayValue();
- var upEvents = void 0;
- var downEvents = void 0;
- if (useTouch) {
- upEvents = {
- touchstart: editable && !upDisabledClass ? this.up : noop,
- touchend: this.stop
- };
- downEvents = {
- touchstart: editable && !downDisabledClass ? this.down : noop,
- touchend: this.stop
- };
- } else {
- upEvents = {
- mousedown: editable && !upDisabledClass ? this.up : noop,
- mouseup: this.stop,
- mouseleave: this.stop
- };
- downEvents = {
- mousedown: editable && !downDisabledClass ? this.down : noop,
- mouseup: this.stop,
- mouseleave: this.stop
- };
- }
- var isUpDisabled = !!upDisabledClass || disabled || readonly;
- var isDownDisabled = !!downDisabledClass || disabled || readonly;
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
- _getListeners$mouseen = _getListeners.mouseenter,
- mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
- _getListeners$mousele = _getListeners.mouseleave,
- mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
- _getListeners$mouseov = _getListeners.mouseover,
- mouseover = _getListeners$mouseov === undefined ? noop : _getListeners$mouseov,
- _getListeners$mouseou = _getListeners.mouseout,
- mouseout = _getListeners$mouseou === undefined ? noop : _getListeners$mouseou;
- var contentProps = {
- on: { mouseenter: mouseenter, mouseleave: mouseleave, mouseover: mouseover, mouseout: mouseout },
- 'class': classes,
- attrs: { title: this.$props.title }
- };
- var upHandlerProps = {
- props: {
- disabled: isUpDisabled,
- prefixCls: prefixCls
- },
- attrs: {
- unselectable: 'unselectable',
- role: 'button',
- 'aria-label': 'Increase Value',
- 'aria-disabled': !!isUpDisabled
- },
- 'class': prefixCls + '-handler ' + prefixCls + '-handler-up ' + upDisabledClass,
- on: upEvents,
- ref: 'up'
- };
- var downHandlerProps = {
- props: {
- disabled: isDownDisabled,
- prefixCls: prefixCls
- },
- attrs: {
- unselectable: 'unselectable',
- role: 'button',
- 'aria-label': 'Decrease Value',
- 'aria-disabled': !!isDownDisabled
- },
- 'class': prefixCls + '-handler ' + prefixCls + '-handler-down ' + downDisabledClass,
- on: downEvents,
- ref: 'down'
- };
- // ref for test
- return h(
- 'div',
- contentProps,
- [h(
- 'div',
- { 'class': prefixCls + '-handler-wrap' },
- [h(
- _InputHandler__WEBPACK_IMPORTED_MODULE_8__["default"],
- upHandlerProps,
- [upHandler || h('span', {
- attrs: {
- unselectable: 'unselectable'
- },
- 'class': prefixCls + '-handler-up-inner',
- on: {
- 'click': preventDefault
- }
- })]
- ), h(
- _InputHandler__WEBPACK_IMPORTED_MODULE_8__["default"],
- downHandlerProps,
- [downHandler || h('span', {
- attrs: {
- unselectable: 'unselectable'
- },
- 'class': prefixCls + '-handler-down-inner',
- on: {
- 'click': preventDefault
- }
- })]
- )]
- ), h(
- 'div',
- { 'class': prefixCls + '-input-wrap' },
- [h('input', {
- attrs: {
- role: 'spinbutton',
- 'aria-valuemin': this.min,
- 'aria-valuemax': this.max,
- 'aria-valuenow': sValue,
- required: this.required,
- type: this.type,
- placeholder: this.placeholder,
- tabIndex: this.tabIndex,
- autoComplete: autoComplete,
- readonly: this.readonly,
- disabled: this.disabled,
- max: this.max,
- min: this.min,
- step: this.step,
- name: this.name,
- title: this.title,
- id: this.id,
- pattern: this.pattern
- },
- on: {
- 'click': this.handleInputClick,
- 'focus': this.onFocus,
- 'blur': this.onBlur,
- 'keydown': editable ? this.onKeyDown : noop,
- 'keyup': editable ? this.onKeyUp : noop,
- 'input': this.onTrigger,
- 'compositionstart': this.onCompositionstart,
- 'compositionend': this.onCompositionend
- },
- 'class': prefixCls + '-input',
- ref: 'inputRef',
- domProps: {
- 'value': inputDisplayValue
- }
- })]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-lazy-load/index.js":
- /*!******************************************!*\
- !*** ./components/vc-lazy-load/index.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _src_LazyLoad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/LazyLoad */ "./components/vc-lazy-load/src/LazyLoad.jsx");
- /* harmony default export */ __webpack_exports__["default"] = (_src_LazyLoad__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-lazy-load/src/LazyLoad.jsx":
- /*!**************************************************!*\
- !*** ./components/vc-lazy-load/src/LazyLoad.jsx ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/throttle */ "./node_modules/lodash/throttle.js");
- /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _utils_parentScroll__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/parentScroll */ "./components/vc-lazy-load/src/utils/parentScroll.js");
- /* harmony import */ var _utils_inViewport__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/inViewport */ "./components/vc-lazy-load/src/utils/inViewport.js");
- var lazyLoadProps = {
- debounce: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- elementType: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- height: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
- offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- offsetBottom: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- offsetHorizontal: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- offsetLeft: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- offsetRight: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- offsetTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- offsetVertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- threshold: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- throttle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
- _propsSymbol: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'LazyLoad',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(lazyLoadProps, {
- elementType: 'div',
- debounce: true,
- offset: 0,
- offsetBottom: 0,
- offsetHorizontal: 0,
- offsetLeft: 0,
- offsetRight: 0,
- offsetTop: 0,
- offsetVertical: 0,
- throttle: 250
- }),
- data: function data() {
- if (this.throttle > 0) {
- if (this.debounce) {
- this.lazyLoadHandler = lodash_debounce__WEBPACK_IMPORTED_MODULE_5___default()(this.lazyLoadHandler, this.throttle);
- } else {
- this.lazyLoadHandler = lodash_throttle__WEBPACK_IMPORTED_MODULE_6___default()(this.lazyLoadHandler, this.throttle);
- }
- }
- return {
- visible: false
- };
- },
- watch: {
- _propsSymbol: function _propsSymbol() {
- if (!this.visible) {
- this.lazyLoadHandler();
- }
- }
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- _this._mounted = true;
- var eventNode = _this.getEventNode();
- _this.lazyLoadHandler();
- if (_this.lazyLoadHandler.flush) {
- _this.lazyLoadHandler.flush();
- }
- _this.resizeHander = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__["default"])(window, 'resize', _this.lazyLoadHandler);
- _this.scrollHander = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__["default"])(eventNode, 'scroll', _this.lazyLoadHandler);
- });
- },
- beforeDestroy: function beforeDestroy() {
- this._mounted = false;
- if (this.lazyLoadHandler.cancel) {
- this.lazyLoadHandler.cancel();
- }
- this.detachListeners();
- },
- methods: {
- getEventNode: function getEventNode() {
- return Object(_utils_parentScroll__WEBPACK_IMPORTED_MODULE_7__["default"])(this.$el);
- },
- getOffset: function getOffset() {
- var _$props = this.$props,
- offset = _$props.offset,
- offsetVertical = _$props.offsetVertical,
- offsetHorizontal = _$props.offsetHorizontal,
- offsetTop = _$props.offsetTop,
- offsetBottom = _$props.offsetBottom,
- offsetLeft = _$props.offsetLeft,
- offsetRight = _$props.offsetRight,
- threshold = _$props.threshold;
- var _offsetAll = threshold || offset;
- var _offsetVertical = offsetVertical || _offsetAll;
- var _offsetHorizontal = offsetHorizontal || _offsetAll;
- return {
- top: offsetTop || _offsetVertical,
- bottom: offsetBottom || _offsetVertical,
- left: offsetLeft || _offsetHorizontal,
- right: offsetRight || _offsetHorizontal
- };
- },
- lazyLoadHandler: function lazyLoadHandler() {
- var _this2 = this;
- if (!this._mounted) {
- return;
- }
- var offset = this.getOffset();
- var node = this.$el;
- var eventNode = this.getEventNode();
- if (Object(_utils_inViewport__WEBPACK_IMPORTED_MODULE_8__["default"])(node, eventNode, offset)) {
- this.setState({ visible: true }, function () {
- _this2.__emit('contentVisible');
- });
- this.detachListeners();
- }
- },
- detachListeners: function detachListeners() {
- this.resizeHander && this.resizeHander.remove();
- this.scrollHander && this.scrollHander.remove();
- }
- },
- render: function render(createElement) {
- var children = this.$slots['default'];
- if (children.length !== 1) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_4__["default"])(false, 'lazyLoad组件只能包含一个子元素');
- return null;
- }
- var _$props2 = this.$props,
- height = _$props2.height,
- width = _$props2.width,
- elementType = _$props2.elementType;
- var visible = this.visible;
- var elStyles = {
- height: typeof height === 'number' ? height + 'px' : height,
- width: typeof width === 'number' ? width + 'px' : width
- };
- var elClasses = {
- LazyLoad: true,
- 'is-visible': visible
- };
- return createElement(elementType, {
- 'class': elClasses,
- style: elStyles
- }, [visible ? children[0] : null]);
- }
- });
- /***/ }),
- /***/ "./components/vc-lazy-load/src/utils/getElementPosition.js":
- /*!*****************************************************************!*\
- !*** ./components/vc-lazy-load/src/utils/getElementPosition.js ***!
- \*****************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getElementPosition; });
- /*
- * Finds element's position relative to the whole document,
- * rather than to the viewport as it is the case with .getBoundingClientRect().
- */
- function getElementPosition(element) {
- var rect = element.getBoundingClientRect();
- return {
- top: rect.top + window.pageYOffset,
- left: rect.left + window.pageXOffset
- };
- }
- /***/ }),
- /***/ "./components/vc-lazy-load/src/utils/inViewport.js":
- /*!*********************************************************!*\
- !*** ./components/vc-lazy-load/src/utils/inViewport.js ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return inViewport; });
- /* harmony import */ var _getElementPosition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getElementPosition */ "./components/vc-lazy-load/src/utils/getElementPosition.js");
- var isHidden = function isHidden(element) {
- return element.offsetParent === null;
- };
- function inViewport(element, container, customOffset) {
- if (isHidden(element)) {
- return false;
- }
- var top = void 0;
- var bottom = void 0;
- var left = void 0;
- var right = void 0;
- if (typeof container === 'undefined' || container === window) {
- top = window.pageYOffset;
- left = window.pageXOffset;
- bottom = top + window.innerHeight;
- right = left + window.innerWidth;
- } else {
- var containerPosition = Object(_getElementPosition__WEBPACK_IMPORTED_MODULE_0__["default"])(container);
- top = containerPosition.top;
- left = containerPosition.left;
- bottom = top + container.offsetHeight;
- right = left + container.offsetWidth;
- }
- var elementPosition = Object(_getElementPosition__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
- return top <= elementPosition.top + element.offsetHeight + customOffset.top && bottom >= elementPosition.top - customOffset.bottom && left <= elementPosition.left + element.offsetWidth + customOffset.left && right >= elementPosition.left - customOffset.right;
- }
- /***/ }),
- /***/ "./components/vc-lazy-load/src/utils/parentScroll.js":
- /*!***********************************************************!*\
- !*** ./components/vc-lazy-load/src/utils/parentScroll.js ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var style = function style(element, prop) {
- var styleVal = '';
- if (typeof getComputedStyle !== 'undefined') {
- styleVal = window.getComputedStyle(element, null).getPropertyValue(prop);
- } else {
- styleVal = element.style[prop];
- }
- return styleVal;
- };
- var overflow = function overflow(element) {
- return style(element, 'overflow') + style(element, 'overflow-y') + style(element, 'overflow-x');
- };
- var scrollParent = function scrollParent(element) {
- if (!(element instanceof window.HTMLElement)) {
- return window;
- }
- var parent = element;
- while (parent) {
- if (parent === document.body || parent === document.documentElement) {
- break;
- }
- if (!parent.parentNode) {
- break;
- }
- if (/(scroll|auto)/.test(overflow(parent))) {
- return parent;
- }
- parent = parent.parentNode;
- }
- return window;
- };
- /* harmony default export */ __webpack_exports__["default"] = (scrollParent);
- /***/ }),
- /***/ "./components/vc-m-feedback/index.js":
- /*!*******************************************!*\
- !*** ./components/vc-m-feedback/index.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _src_TouchFeedback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/TouchFeedback */ "./components/vc-m-feedback/src/TouchFeedback.jsx");
- // based on 2.0.0
- /* harmony default export */ __webpack_exports__["default"] = (_src_TouchFeedback__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-m-feedback/src/PropTypes.jsx":
- /*!****************************************************!*\
- !*** ./components/vc-m-feedback/src/PropTypes.jsx ***!
- \****************************************************/
- /*! exports provided: ITouchProps */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ITouchProps", function() { return ITouchProps; });
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- var ITouchProps = {
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- activeClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- activeStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- // onTouchStart: PropTypes.func,
- // onTouchEnd: PropTypes.func,
- // onTouchCancel: PropTypes.func,
- // onMouseDown: PropTypes.func,
- // onMouseUp: PropTypes.func,
- // onMouseLeave: PropTypes.func,
- };
- /***/ }),
- /***/ "./components/vc-m-feedback/src/TouchFeedback.jsx":
- /*!********************************************************!*\
- !*** ./components/vc-m-feedback/src/TouchFeedback.jsx ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-m-feedback/src/PropTypes.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TouchFeedback',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["initDefaultProps"])(_PropTypes__WEBPACK_IMPORTED_MODULE_5__["ITouchProps"], {
- disabled: false
- }),
- data: function data() {
- return {
- active: false
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.disabled && _this.active) {
- _this.setState({
- active: false
- });
- }
- });
- },
- methods: {
- triggerEvent: function triggerEvent(type, isActive, ev) {
- // 暂时仅有input-number用到,事件直接到挂载到Touchable上,不需要像antd那样从子组件触发
- this.$emit(type, ev);
- if (isActive !== this.active) {
- this.setState({
- active: isActive
- });
- }
- },
- onTouchStart: function onTouchStart(e) {
- this.triggerEvent('touchstart', true, e);
- },
- onTouchMove: function onTouchMove(e) {
- this.triggerEvent('touchmove', false, e);
- },
- onTouchEnd: function onTouchEnd(e) {
- this.triggerEvent('touchend', false, e);
- },
- onTouchCancel: function onTouchCancel(e) {
- this.triggerEvent('touchcancel', false, e);
- },
- onMouseDown: function onMouseDown(e) {
- // pc simulate mobile
- this.triggerEvent('mousedown', true, e);
- },
- onMouseUp: function onMouseUp(e) {
- this.triggerEvent('mouseup', false, e);
- },
- onMouseLeave: function onMouseLeave(e) {
- this.triggerEvent('mouseleave', false, e);
- }
- },
- render: function render() {
- var _$props = this.$props,
- disabled = _$props.disabled,
- _$props$activeClassNa = _$props.activeClassName,
- activeClassName = _$props$activeClassNa === undefined ? '' : _$props$activeClassNa,
- _$props$activeStyle = _$props.activeStyle,
- activeStyle = _$props$activeStyle === undefined ? {} : _$props$activeStyle;
- var child = this.$slots['default'];
- if (child.length !== 1) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_3__["default"])(false, 'm-feedback组件只能包含一个子元素');
- return null;
- }
- var childProps = {
- on: disabled ? {} : {
- touchstart: this.onTouchStart,
- touchmove: this.onTouchMove,
- touchend: this.onTouchEnd,
- touchcancel: this.onTouchCancel,
- mousedown: this.onMouseDown,
- mouseup: this.onMouseUp,
- mouseleave: this.onMouseLeave
- }
- };
- if (!disabled && this.active) {
- childProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, childProps, {
- style: activeStyle,
- 'class': activeClassName
- });
- }
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, childProps);
- }
- });
- /***/ }),
- /***/ "./components/vc-mentions/index.js":
- /*!*****************************************!*\
- !*** ./components/vc-mentions/index.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _src_Mentions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/Mentions */ "./components/vc-mentions/src/Mentions.jsx");
- /* harmony import */ var _src_Option__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Option */ "./components/vc-mentions/src/Option.jsx");
- _src_Mentions__WEBPACK_IMPORTED_MODULE_0__["default"].Option = _src_Option__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* harmony default export */ __webpack_exports__["default"] = (_src_Mentions__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-mentions/src/DropdownMenu.jsx":
- /*!*****************************************************!*\
- !*** ./components/vc-mentions/src/DropdownMenu.jsx ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../vc-menu */ "./components/vc-menu/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Option */ "./components/vc-mentions/src/Option.jsx");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'DropdownMenu',
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- options: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_Option__WEBPACK_IMPORTED_MODULE_2__["OptionProps"])
- },
- inject: {
- mentionsContext: { 'default': {} }
- },
- render: function render() {
- var h = arguments[0];
- var _mentionsContext = this.mentionsContext,
- notFoundContent = _mentionsContext.notFoundContent,
- activeIndex = _mentionsContext.activeIndex,
- setActiveIndex = _mentionsContext.setActiveIndex,
- selectOption = _mentionsContext.selectOption,
- _mentionsContext$onFo = _mentionsContext.onFocus,
- onFocus = _mentionsContext$onFo === undefined ? noop : _mentionsContext$onFo,
- _mentionsContext$onBl = _mentionsContext.onBlur,
- onBlur = _mentionsContext$onBl === undefined ? noop : _mentionsContext$onBl;
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- options = _$props.options;
- var activeOption = options[activeIndex] || {};
- return h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_0__["default"],
- {
- props: {
- prefixCls: prefixCls + '-menu',
- activeKey: activeOption.value
- },
- on: {
- select: function select(_ref) {
- var key = _ref.key;
- var option = options.find(function (_ref2) {
- var value = _ref2.value;
- return value === key;
- });
- selectOption(option);
- },
- focus: onFocus,
- blur: onBlur
- }
- },
- [options.map(function (option, index) {
- var value = option.value,
- disabled = option.disabled,
- children = option.children;
- return h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_0__["MenuItem"],
- {
- key: value,
- attrs: { disabled: disabled
- },
- on: {
- 'mouseenter': function mouseenter() {
- setActiveIndex(index);
- }
- }
- },
- [children]
- );
- }), !options.length && h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_0__["MenuItem"],
- {
- attrs: { disabled: true }
- },
- [notFoundContent]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-mentions/src/KeywordTrigger.jsx":
- /*!*******************************************************!*\
- !*** ./components/vc-mentions/src/KeywordTrigger.jsx ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
- /* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DropdownMenu */ "./components/vc-mentions/src/DropdownMenu.jsx");
- /* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Option */ "./components/vc-mentions/src/Option.jsx");
- /* harmony import */ var _placement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placement */ "./components/vc-mentions/src/placement.js");
- var BUILT_IN_PLACEMENTS = {
- bottomRight: {
- points: ['tl', 'br'],
- offset: [0, 4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- }
- },
- topRight: {
- points: ['bl', 'tr'],
- offset: [0, -4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- }
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'KeywordTrigger',
- props: {
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- options: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_Option__WEBPACK_IMPORTED_MODULE_3__["OptionProps"]),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(_placement__WEBPACK_IMPORTED_MODULE_4__["PlaceMent"]),
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
- },
- methods: {
- getDropdownPrefix: function getDropdownPrefix() {
- return this.$props.prefixCls + '-dropdown';
- },
- getDropdownElement: function getDropdownElement() {
- var h = this.$createElement;
- var options = this.$props.options;
- return h(_DropdownMenu__WEBPACK_IMPORTED_MODULE_2__["default"], {
- attrs: { prefixCls: this.getDropdownPrefix(), options: options }
- });
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$props = this.$props,
- visible = _$props.visible,
- placement = _$props.placement,
- transitionName = _$props.transitionName,
- getPopupContainer = _$props.getPopupContainer;
- var $slots = this.$slots;
- var children = $slots['default'];
- var popupElement = this.getDropdownElement();
- return h(
- _vc_trigger__WEBPACK_IMPORTED_MODULE_1__["default"],
- {
- attrs: {
- prefixCls: this.getDropdownPrefix(),
- popupVisible: visible,
- popup: popupElement,
- popupPlacement: placement === 'top' ? 'topRight' : 'bottomRight',
- popupTransitionName: transitionName,
- builtinPlacements: BUILT_IN_PLACEMENTS,
- getPopupContainer: getPopupContainer
- }
- },
- [children]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-mentions/src/Mentions.jsx":
- /*!*************************************************!*\
- !*** ./components/vc-mentions/src/Mentions.jsx ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_7__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util */ "./components/vc-mentions/src/util.js");
- /* harmony import */ var _KeywordTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./KeywordTrigger */ "./components/vc-mentions/src/KeywordTrigger.jsx");
- /* harmony import */ var _mentionsProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./mentionsProps */ "./components/vc-mentions/src/mentionsProps.js");
- function noop() {}
- var Mentions = {
- name: 'Mentions',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
- inheritAttrs: false,
- model: {
- prop: 'value',
- event: 'change'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(_mentionsProps__WEBPACK_IMPORTED_MODULE_10__["vcMentionsProps"], _mentionsProps__WEBPACK_IMPORTED_MODULE_10__["defaultProps"]),
- provide: function provide() {
- return {
- mentionsContext: this
- };
- },
- data: function data() {
- var _$props = this.$props,
- _$props$value = _$props.value,
- value = _$props$value === undefined ? '' : _$props$value,
- _$props$defaultValue = _$props.defaultValue,
- defaultValue = _$props$defaultValue === undefined ? '' : _$props$defaultValue;
- warning__WEBPACK_IMPORTED_MODULE_7___default()(this.$props.children, 'please children prop replace slots.default');
- return {
- _value: !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value') ? defaultValue : value,
- measuring: false,
- measureLocation: 0,
- measureText: null,
- measurePrefix: '',
- activeIndex: 0,
- isFocus: false
- };
- },
- watch: {
- value: function value(val) {
- this.$data._value = val;
- }
- },
- updated: function updated() {
- var _this = this;
- this.$nextTick(function () {
- var measuring = _this.$data.measuring;
- // Sync measure div top with textarea for rc-trigger usage
- if (measuring) {
- _this.$refs.measure.scrollTop = _this.$refs.textarea.scrollTop;
- }
- });
- },
- methods: {
- triggerChange: function triggerChange(value) {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
- if (!('value' in props)) {
- this.setState({ _value: value });
- } else {
- this.$forceUpdate();
- }
- this.$emit('change', value);
- },
- onChange: function onChange(_ref) {
- var _ref$target = _ref.target,
- value = _ref$target.value,
- composing = _ref$target.composing,
- isComposing = _ref.isComposing;
- if (isComposing || composing) return;
- this.triggerChange(value);
- },
- onKeyDown: function onKeyDown(event) {
- var which = event.which;
- var _$data = this.$data,
- activeIndex = _$data.activeIndex,
- measuring = _$data.measuring;
- // Skip if not measuring
- if (!measuring) {
- return;
- }
- if (which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].UP || which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].DOWN) {
- // Control arrow function
- var optionLen = this.getOptions().length;
- var offset = which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].UP ? -1 : 1;
- var newActiveIndex = (activeIndex + offset + optionLen) % optionLen;
- this.setState({
- activeIndex: newActiveIndex
- });
- event.preventDefault();
- } else if (which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ESC) {
- this.stopMeasure();
- } else if (which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ENTER) {
- // Measure hit
- event.preventDefault();
- var options = this.getOptions();
- if (!options.length) {
- this.stopMeasure();
- return;
- }
- var option = options[activeIndex];
- this.selectOption(option);
- }
- },
- /**
- * When to start measure:
- * 1. When user press `prefix`
- * 2. When measureText !== prevMeasureText
- * - If measure hit
- * - If measuring
- *
- * When to stop measure:
- * 1. Selection is out of range
- * 2. Contains `space`
- * 3. ESC or select one
- */
- onKeyUp: function onKeyUp(event) {
- var key = event.key,
- which = event.which;
- var _$data2 = this.$data,
- prevMeasureText = _$data2.measureText,
- measuring = _$data2.measuring;
- var _$props2 = this.$props,
- _$props2$prefix = _$props2.prefix,
- prefix = _$props2$prefix === undefined ? '' : _$props2$prefix,
- validateSearch = _$props2.validateSearch;
- var target = event.target;
- var selectionStartText = Object(_util__WEBPACK_IMPORTED_MODULE_8__["getBeforeSelectionText"])(target);
- var _getLastMeasureIndex = Object(_util__WEBPACK_IMPORTED_MODULE_8__["getLastMeasureIndex"])(selectionStartText, prefix),
- measureIndex = _getLastMeasureIndex.location,
- measurePrefix = _getLastMeasureIndex.prefix;
- // Skip if match the white key list
- if ([_util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ESC, _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].UP, _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].DOWN, _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ENTER].indexOf(which) !== -1) {
- return;
- }
- if (measureIndex !== -1) {
- var measureText = selectionStartText.slice(measureIndex + measurePrefix.length);
- var validateMeasure = validateSearch(measureText, this.$props);
- var matchOption = !!this.getOptions(measureText).length;
- if (validateMeasure) {
- if (key === measurePrefix || measuring || measureText !== prevMeasureText && matchOption) {
- this.startMeasure(measureText, measurePrefix, measureIndex);
- }
- } else if (measuring) {
- // Stop if measureText is invalidate
- this.stopMeasure();
- }
- /**
- * We will trigger `onSearch` to developer since they may use for async update.
- * If met `space` means user finished searching.
- */
- if (validateMeasure) {
- this.$emit('search', measureText, measurePrefix);
- }
- } else if (measuring) {
- this.stopMeasure();
- }
- },
- onInputFocus: function onInputFocus(event) {
- this.onFocus(event);
- },
- onInputBlur: function onInputBlur(event) {
- this.onBlur(event);
- },
- onDropdownFocus: function onDropdownFocus() {
- this.onFocus();
- },
- onDropdownBlur: function onDropdownBlur() {
- this.onBlur();
- },
- onFocus: function onFocus(event) {
- window.clearTimeout(this.focusId);
- var isFocus = this.$data.isFocus;
- if (!isFocus && event) {
- this.$emit('focus', event);
- }
- this.setState({ isFocus: true });
- },
- onBlur: function onBlur(event) {
- var _this2 = this;
- this.focusId = window.setTimeout(function () {
- _this2.setState({ isFocus: false });
- _this2.stopMeasure();
- _this2.$emit('blur', event);
- }, 0);
- },
- selectOption: function selectOption(option) {
- var _this3 = this;
- var _$data3 = this.$data,
- value = _$data3._value,
- measureLocation = _$data3.measureLocation,
- measurePrefix = _$data3.measurePrefix;
- var split = this.$props.split;
- var _option$value = option.value,
- mentionValue = _option$value === undefined ? '' : _option$value;
- var _replaceWithMeasure = Object(_util__WEBPACK_IMPORTED_MODULE_8__["replaceWithMeasure"])(value, {
- measureLocation: measureLocation,
- targetText: mentionValue,
- prefix: measurePrefix,
- selectionStart: this.$refs.textarea.selectionStart,
- split: split
- }),
- text = _replaceWithMeasure.text,
- selectionLocation = _replaceWithMeasure.selectionLocation;
- this.triggerChange(text);
- this.stopMeasure(function () {
- // We need restore the selection position
- Object(_util__WEBPACK_IMPORTED_MODULE_8__["setInputSelection"])(_this3.$refs.textarea, selectionLocation);
- });
- this.$emit('select', option, measurePrefix);
- },
- setActiveIndex: function setActiveIndex(activeIndex) {
- this.setState({
- activeIndex: activeIndex
- });
- },
- getOptions: function getOptions(measureText) {
- var targetMeasureText = measureText || this.$data.measureText || '';
- var _$props3 = this.$props,
- filterOption = _$props3.filterOption,
- _$props3$children = _$props3.children,
- children = _$props3$children === undefined ? [] : _$props3$children;
- var list = (Array.isArray(children) ? children : [children]).map(function (item) {
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getSlots"])(item)['default'];
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(item), { children: children });
- }).filter(function (option) {
- /** Return all result if `filterOption` is false. */
- if (filterOption === false) {
- return true;
- }
- return filterOption(targetMeasureText, option);
- });
- return list;
- },
- startMeasure: function startMeasure(measureText, measurePrefix, measureLocation) {
- this.setState({
- measuring: true,
- measureText: measureText,
- measurePrefix: measurePrefix,
- measureLocation: measureLocation,
- activeIndex: 0
- });
- },
- stopMeasure: function stopMeasure(callback) {
- this.setState({
- measuring: false,
- measureLocation: 0,
- measureText: null
- }, callback);
- },
- focus: function focus() {
- this.$refs.textarea.focus();
- },
- blur: function blur() {
- this.$refs.textarea.blur();
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$data4 = this.$data,
- value = _$data4._value,
- measureLocation = _$data4.measureLocation,
- measurePrefix = _$data4.measurePrefix,
- measuring = _$data4.measuring;
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
- prefixCls = _getOptionProps.prefixCls,
- placement = _getOptionProps.placement,
- transitionName = _getOptionProps.transitionName,
- autoFocus = _getOptionProps.autoFocus,
- notFoundContent = _getOptionProps.notFoundContent,
- getPopupContainer = _getOptionProps.getPopupContainer,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'placement', 'transitionName', 'autoFocus', 'notFoundContent', 'getPopupContainer']);
- var inputProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(restProps, ['value', 'defaultValue', 'prefix', 'split', 'children', 'validateSearch', 'filterOption']);
- var options = measuring ? this.getOptions() : [];
- return h(
- 'div',
- { 'class': prefixCls },
- [h('textarea', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- ref: 'textarea'
- }, {
- directives: [{ name: 'ant-input' }],
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, inputProps, this.$attrs),
- domProps: {
- value: value
- },
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
- select: noop,
- change: noop,
- input: this.onChange,
- keydown: this.onKeyDown,
- keyup: this.onKeyUp,
- blur: this.onInputBlur
- })
- }])), measuring && h(
- 'div',
- { ref: 'measure', 'class': prefixCls + '-measure' },
- [value.slice(0, measureLocation), h(
- _KeywordTrigger__WEBPACK_IMPORTED_MODULE_9__["default"],
- {
- attrs: {
- prefixCls: prefixCls,
- transitionName: transitionName,
- placement: placement,
- options: options,
- visible: true,
- getPopupContainer: getPopupContainer
- }
- },
- [h('span', [measurePrefix])]
- ), value.slice(measureLocation + measurePrefix.length)]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Mentions);
- /***/ }),
- /***/ "./components/vc-mentions/src/Option.jsx":
- /*!***********************************************!*\
- !*** ./components/vc-mentions/src/Option.jsx ***!
- \***********************************************/
- /*! exports provided: OptionProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionProps", function() { return OptionProps; });
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- var OptionProps = {
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].boolean,
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Option',
- props: OptionProps,
- render: function render() {
- return null;
- }
- });
- /***/ }),
- /***/ "./components/vc-mentions/src/mentionsProps.js":
- /*!*****************************************************!*\
- !*** ./components/vc-mentions/src/mentionsProps.js ***!
- \*****************************************************/
- /*! exports provided: mentionsProps, vcMentionsProps, defaultProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mentionsProps", function() { return mentionsProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vcMentionsProps", function() { return vcMentionsProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultProps", function() { return defaultProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./components/vc-mentions/src/util.js");
- /* harmony import */ var _placement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placement */ "./components/vc-mentions/src/placement.js");
- var mentionsProps = {
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array]),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- split: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(_placement__WEBPACK_IMPORTED_MODULE_4__["PlaceMent"]),
- character: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- characterRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- validateSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- };
- var vcMentionsProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, mentionsProps, {
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- });
- var defaultProps = {
- prefix: '@',
- split: ' ',
- validateSearch: _util__WEBPACK_IMPORTED_MODULE_3__["validateSearch"],
- filterOption: _util__WEBPACK_IMPORTED_MODULE_3__["filterOption"]
- };
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(vcMentionsProps, defaultProps));
- /***/ }),
- /***/ "./components/vc-mentions/src/placement.js":
- /*!*************************************************!*\
- !*** ./components/vc-mentions/src/placement.js ***!
- \*************************************************/
- /*! exports provided: PlaceMent */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlaceMent", function() { return PlaceMent; });
- var PlaceMent = ['top', 'bottom'];
- /***/ }),
- /***/ "./components/vc-mentions/src/util.js":
- /*!********************************************!*\
- !*** ./components/vc-mentions/src/util.js ***!
- \********************************************/
- /*! exports provided: getBeforeSelectionText, getLastMeasureIndex, replaceWithMeasure, setInputSelection, validateSearch, filterOption */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBeforeSelectionText", function() { return getBeforeSelectionText; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLastMeasureIndex", function() { return getLastMeasureIndex; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "replaceWithMeasure", function() { return replaceWithMeasure; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setInputSelection", function() { return setInputSelection; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateSearch", function() { return validateSearch; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterOption", function() { return filterOption; });
- /**
- * Cut input selection into 2 part and return text before selection start
- */
- function getBeforeSelectionText(input) {
- var selectionStart = input.selectionStart;
- return input.value.slice(0, selectionStart);
- }
- function lower(char) {
- return (char || '').toLowerCase();
- }
- /**
- * Find the last match prefix index
- */
- function getLastMeasureIndex(text) {
- var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
- var prefixList = Array.isArray(prefix) ? prefix : [prefix];
- return prefixList.reduce(function (lastMatch, prefixStr) {
- var lastIndex = text.lastIndexOf(prefixStr);
- if (lastIndex > lastMatch.location) {
- return {
- location: lastIndex,
- prefix: prefixStr
- };
- }
- return lastMatch;
- }, { location: -1, prefix: '' });
- }
- function reduceText(text, targetText, split) {
- var firstChar = text[0];
- if (!firstChar || firstChar === split) {
- return text;
- }
- // Reuse rest text as it can
- var restText = text;
- var targetTextLen = targetText.length;
- for (var i = 0; i < targetTextLen; i += 1) {
- if (lower(restText[i]) !== lower(targetText[i])) {
- restText = restText.slice(i);
- break;
- } else if (i === targetTextLen - 1) {
- restText = restText.slice(targetTextLen);
- }
- }
- return restText;
- }
- /**
- * Paint targetText into current text:
- * text: little@litest
- * targetText: light
- * => little @light test
- */
- function replaceWithMeasure(text, measureConfig) {
- var measureLocation = measureConfig.measureLocation,
- prefix = measureConfig.prefix,
- targetText = measureConfig.targetText,
- selectionStart = measureConfig.selectionStart,
- split = measureConfig.split;
- // Before text will append one space if have other text
- var beforeMeasureText = text.slice(0, measureLocation);
- if (beforeMeasureText[beforeMeasureText.length - split.length] === split) {
- beforeMeasureText = beforeMeasureText.slice(0, beforeMeasureText.length - split.length);
- }
- if (beforeMeasureText) {
- beforeMeasureText = '' + beforeMeasureText + split;
- }
- // Cut duplicate string with current targetText
- var restText = reduceText(text.slice(selectionStart), targetText.slice(selectionStart - measureLocation - prefix.length), split);
- if (restText.slice(0, split.length) === split) {
- restText = restText.slice(split.length);
- }
- var connectedStartText = '' + beforeMeasureText + prefix + targetText + split;
- return {
- text: '' + connectedStartText + restText,
- selectionLocation: connectedStartText.length
- };
- }
- function setInputSelection(input, location) {
- input.setSelectionRange(location, location);
- /**
- * Reset caret into view.
- * Since this function always called by user control, it's safe to focus element.
- */
- input.blur();
- input.focus();
- }
- function validateSearch() {
- var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
- var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var split = props.split;
- return !split || text.indexOf(split) === -1;
- }
- function filterOption() {
- var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
- var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
- _ref$value = _ref.value,
- value = _ref$value === undefined ? '' : _ref$value;
- var lowerCase = input.toLowerCase();
- return value.toLowerCase().indexOf(lowerCase) !== -1;
- }
- /***/ }),
- /***/ "./components/vc-menu/DOMWrap.jsx":
- /*!****************************************!*\
- !*** ./components/vc-menu/DOMWrap.jsx ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
- /* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SubMenu */ "./components/vc-menu/SubMenu.jsx");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
- var MENUITEM_OVERFLOWED_CLASSNAME = 'menuitem-overflowed';
- var FLOAT_PRECISION_ADJUST = 0.5;
- // Fix ssr
- if (canUseDOM) {
- __webpack_require__(/*! mutationobserver-shim */ "./node_modules/mutationobserver-shim/dist/mutationobserver.min.js");
- }
- var DOMWrap = {
- name: 'DOMWrap',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
- data: function data() {
- this.resizeObserver = null;
- this.mutationObserver = null;
- // original scroll size of the list
- this.originalTotalWidth = 0;
- // copy of overflowed items
- this.overflowedItems = [];
- // cache item of the original items (so we can track the size and order)
- this.menuItemSizes = [];
- return {
- lastVisibleIndex: undefined
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- _this.setChildrenWidthAndResize();
- if (_this.level === 1 && _this.mode === 'horizontal') {
- var menuUl = _this.$el;
- if (!menuUl) {
- return;
- }
- _this.resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__["default"](function (entries) {
- entries.forEach(_this.setChildrenWidthAndResize);
- });
- [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {
- _this.resizeObserver.observe(el);
- });
- if (typeof MutationObserver !== 'undefined') {
- _this.mutationObserver = new MutationObserver(function () {
- _this.resizeObserver.disconnect();
- [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {
- _this.resizeObserver.observe(el);
- });
- _this.setChildrenWidthAndResize();
- });
- _this.mutationObserver.observe(menuUl, {
- attributes: false,
- childList: true,
- subTree: false
- });
- }
- }
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.resizeObserver) {
- this.resizeObserver.disconnect();
- }
- if (this.mutationObserver) {
- this.mutationObserver.disconnect();
- }
- },
- methods: {
- // get all valid menuItem nodes
- getMenuItemNodes: function getMenuItemNodes() {
- var prefixCls = this.$props.prefixCls;
- var ul = this.$el;
- if (!ul) {
- return [];
- }
- // filter out all overflowed indicator placeholder
- return [].slice.call(ul.children).filter(function (node) {
- return node.className.split(' ').indexOf(prefixCls + '-overflowed-submenu') < 0;
- });
- },
- getOverflowedSubMenuItem: function getOverflowedSubMenuItem(keyPrefix, overflowedItems, renderPlaceholder) {
- var h = this.$createElement;
- var _$props = this.$props,
- overflowedIndicator = _$props.overflowedIndicator,
- level = _$props.level,
- mode = _$props.mode,
- prefixCls = _$props.prefixCls,
- theme = _$props.theme;
- if (level !== 1 || mode !== 'horizontal') {
- return null;
- }
- // put all the overflowed item inside a submenu
- // with a title of overflow indicator ('...')
- var copy = this.$slots['default'][0];
- var _getPropsData = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getPropsData"])(copy),
- title = _getPropsData.title,
- rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getPropsData, ['title']); // eslint-disable-line no-unused-vars
- var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getEvents"])(copy);
- var style = {};
- var key = keyPrefix + '-overflowed-indicator';
- var eventKey = keyPrefix + '-overflowed-indicator';
- if (overflowedItems.length === 0 && renderPlaceholder !== true) {
- style = {
- display: 'none'
- };
- } else if (renderPlaceholder) {
- style = {
- visibility: 'hidden',
- // prevent from taking normal dom space
- position: 'absolute'
- };
- key = key + '-placeholder';
- eventKey = eventKey + '-placeholder';
- }
- var popupClassName = theme ? prefixCls + '-' + theme : '';
- var props = {};
- var on = {};
- _util__WEBPACK_IMPORTED_MODULE_7__["menuAllProps"].props.forEach(function (k) {
- if (rest[k] !== undefined) {
- props[k] = rest[k];
- }
- });
- _util__WEBPACK_IMPORTED_MODULE_7__["menuAllProps"].on.forEach(function (k) {
- if (events[k] !== undefined) {
- on[k] = events[k];
- }
- });
- var subMenuProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- title: overflowedIndicator,
- popupClassName: popupClassName
- }, props, {
- eventKey: eventKey,
- disabled: false
- }),
- 'class': prefixCls + '-overflowed-submenu',
- key: key,
- style: style,
- on: on
- };
- return h(
- _SubMenu__WEBPACK_IMPORTED_MODULE_5__["default"],
- subMenuProps,
- [overflowedItems]
- );
- },
- // memorize rendered menuSize
- setChildrenWidthAndResize: function setChildrenWidthAndResize() {
- if (this.mode !== 'horizontal') {
- return;
- }
- var ul = this.$el;
- if (!ul) {
- return;
- }
- var ulChildrenNodes = ul.children;
- if (!ulChildrenNodes || ulChildrenNodes.length === 0) {
- return;
- }
- var lastOverflowedIndicatorPlaceholder = ul.children[ulChildrenNodes.length - 1];
- // need last overflowed indicator for calculating length;
- Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(lastOverflowedIndicatorPlaceholder, 'display', 'inline-block');
- var menuItemNodes = this.getMenuItemNodes();
- // reset display attribute for all hidden elements caused by overflow to calculate updated width
- // and then reset to original state after width calculation
- var overflowedItems = menuItemNodes.filter(function (c) {
- return c.className.split(' ').indexOf(MENUITEM_OVERFLOWED_CLASSNAME) >= 0;
- });
- overflowedItems.forEach(function (c) {
- Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(c, 'display', 'inline-block');
- });
- this.menuItemSizes = menuItemNodes.map(function (c) {
- return Object(_util__WEBPACK_IMPORTED_MODULE_7__["getWidth"])(c);
- });
- overflowedItems.forEach(function (c) {
- Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(c, 'display', 'none');
- });
- this.overflowedIndicatorWidth = Object(_util__WEBPACK_IMPORTED_MODULE_7__["getWidth"])(ul.children[ul.children.length - 1]);
- this.originalTotalWidth = this.menuItemSizes.reduce(function (acc, cur) {
- return acc + cur;
- }, 0);
- this.handleResize();
- // prevent the overflowed indicator from taking space;
- Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(lastOverflowedIndicatorPlaceholder, 'display', 'none');
- },
- handleResize: function handleResize() {
- var _this2 = this;
- if (this.mode !== 'horizontal') {
- return;
- }
- var ul = this.$el;
- if (!ul) {
- return;
- }
- var width = Object(_util__WEBPACK_IMPORTED_MODULE_7__["getWidth"])(ul);
- this.overflowedItems = [];
- var currentSumWidth = 0;
- // index for last visible child in horizontal mode
- var lastVisibleIndex = void 0;
- // float number comparison could be problematic
- // e.g. 0.1 + 0.2 > 0.3 =====> true
- // thus using FLOAT_PRECISION_ADJUST as buffer to help the situation
- if (this.originalTotalWidth > width + FLOAT_PRECISION_ADJUST) {
- lastVisibleIndex = -1;
- this.menuItemSizes.forEach(function (liWidth) {
- currentSumWidth += liWidth;
- if (currentSumWidth + _this2.overflowedIndicatorWidth <= width) {
- lastVisibleIndex += 1;
- }
- });
- }
- this.setState({ lastVisibleIndex: lastVisibleIndex });
- },
- renderChildren: function renderChildren(children) {
- var _this3 = this;
- // need to take care of overflowed items in horizontal mode
- var lastVisibleIndex = this.$data.lastVisibleIndex;
- var className = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getClass"])(this);
- return (children || []).reduce(function (acc, childNode, index) {
- var item = childNode;
- var eventKey = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getPropsData"])(childNode).eventKey;
- if (_this3.mode === 'horizontal') {
- var overflowed = _this3.getOverflowedSubMenuItem(eventKey, []);
- if (lastVisibleIndex !== undefined && className[_this3.prefixCls + '-root'] !== -1) {
- if (index > lastVisibleIndex) {
- item = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(childNode,
- // 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件
- {
- style: { display: 'none' },
- props: { eventKey: eventKey + '-hidden' },
- 'class': MENUITEM_OVERFLOWED_CLASSNAME
- });
- }
- if (index === lastVisibleIndex + 1) {
- _this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function (c) {
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(c,
- // children[index].key will become '.$key' in clone by default,
- // we have to overwrite with the correct key explicitly
- {
- key: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getPropsData"])(c).eventKey,
- props: { mode: 'vertical-left' }
- });
- });
- overflowed = _this3.getOverflowedSubMenuItem(eventKey, _this3.overflowedItems);
- }
- }
- var ret = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(acc), [overflowed, item]);
- if (index === children.length - 1) {
- // need a placeholder for calculating overflowed indicator width
- ret.push(_this3.getOverflowedSubMenuItem(eventKey, [], true));
- }
- return ret;
- }
- return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(acc), [item]);
- }, []);
- }
- },
- render: function render() {
- var h = arguments[0];
- var Tag = this.$props.tag;
- var tagProps = {
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this)
- };
- return h(
- Tag,
- tagProps,
- [this.renderChildren(this.$slots['default'])]
- );
- }
- };
- DOMWrap.props = {
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- level: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- overflowedIndicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].node,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- tag: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('div')
- };
- /* harmony default export */ __webpack_exports__["default"] = (DOMWrap);
- /***/ }),
- /***/ "./components/vc-menu/Divider.jsx":
- /*!****************************************!*\
- !*** ./components/vc-menu/Divider.jsx ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'MenuDivider',
- props: {
- disabled: {
- type: Boolean,
- 'default': true
- },
- rootPrefixCls: String
- },
- render: function render() {
- var h = arguments[0];
- var rootPrefixCls = this.$props.rootPrefixCls;
- return h('li', { 'class': rootPrefixCls + '-item-divider' });
- }
- });
- /***/ }),
- /***/ "./components/vc-menu/Menu.jsx":
- /*!*************************************!*\
- !*** ./components/vc-menu/Menu.jsx ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
- /* harmony import */ var _SubPopupMenu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SubPopupMenu */ "./components/vc-menu/SubPopupMenu.jsx");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _commonPropsType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonPropsType */ "./components/vc-menu/commonPropsType.js");
- var Menu = {
- name: 'Menu',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _commonPropsType__WEBPACK_IMPORTED_MODULE_6__["default"], {
- selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true)
- }),
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- data: function data() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var selectedKeys = props.defaultSelectedKeys;
- var openKeys = props.defaultOpenKeys;
- if ('selectedKeys' in props) {
- selectedKeys = props.selectedKeys || [];
- }
- if ('openKeys' in props) {
- openKeys = props.openKeys || [];
- }
- this.store = Object(_util_store__WEBPACK_IMPORTED_MODULE_2__["create"])({
- selectedKeys: selectedKeys,
- openKeys: openKeys,
- activeKey: {
- '0-menu-': Object(_SubPopupMenu__WEBPACK_IMPORTED_MODULE_3__["getActiveKey"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { children: this.$slots['default'] || [] }), props.activeKey)
- }
- });
- // this.isRootMenu = true // 声明在props上
- return {};
- },
- mounted: function mounted() {
- this.updateMiniStore();
- },
- updated: function updated() {
- this.updateMiniStore();
- },
- methods: {
- onSelect: function onSelect(selectInfo) {
- var props = this.$props;
- if (props.selectable) {
- // root menu
- var selectedKeys = this.store.getState().selectedKeys;
- var selectedKey = selectInfo.key;
- if (props.multiple) {
- selectedKeys = selectedKeys.concat([selectedKey]);
- } else {
- selectedKeys = [selectedKey];
- }
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'selectedKeys')) {
- this.store.setState({
- selectedKeys: selectedKeys
- });
- }
- this.__emit('select', babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, selectInfo, {
- selectedKeys: selectedKeys
- }));
- }
- },
- onClick: function onClick(e) {
- this.__emit('click', e);
- },
- // onKeyDown needs to be exposed as a instance method
- // e.g., in rc-select, we need to navigate menu item while
- // current active item is rc-select input box rather than the menu itself
- onKeyDown: function onKeyDown(e, callback) {
- this.$refs.innerMenu.getWrappedInstance().onKeyDown(e, callback);
- },
- onOpenChange: function onOpenChange(event) {
- var openKeys = this.store.getState().openKeys.concat();
- var changed = false;
- var processSingle = function processSingle(e) {
- var oneChanged = false;
- if (e.open) {
- oneChanged = openKeys.indexOf(e.key) === -1;
- if (oneChanged) {
- openKeys.push(e.key);
- }
- } else {
- var index = openKeys.indexOf(e.key);
- oneChanged = index !== -1;
- if (oneChanged) {
- openKeys.splice(index, 1);
- }
- }
- changed = changed || oneChanged;
- };
- if (Array.isArray(event)) {
- // batch change call
- event.forEach(processSingle);
- } else {
- processSingle(event);
- }
- if (changed) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'openKeys')) {
- this.store.setState({ openKeys: openKeys });
- }
- this.__emit('openChange', openKeys);
- }
- },
- onDeselect: function onDeselect(selectInfo) {
- var props = this.$props;
- if (props.selectable) {
- var selectedKeys = this.store.getState().selectedKeys.concat();
- var selectedKey = selectInfo.key;
- var index = selectedKeys.indexOf(selectedKey);
- if (index !== -1) {
- selectedKeys.splice(index, 1);
- }
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'selectedKeys')) {
- this.store.setState({
- selectedKeys: selectedKeys
- });
- }
- this.__emit('deselect', babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, selectInfo, {
- selectedKeys: selectedKeys
- }));
- }
- },
- getOpenTransitionName: function getOpenTransitionName() {
- var props = this.$props;
- var transitionName = props.openTransitionName;
- var animationName = props.openAnimation;
- if (!transitionName && typeof animationName === 'string') {
- transitionName = props.prefixCls + '-open-' + animationName;
- }
- return transitionName;
- },
- updateMiniStore: function updateMiniStore() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- if ('selectedKeys' in props) {
- this.store.setState({
- selectedKeys: props.selectedKeys || []
- });
- }
- if ('openKeys' in props) {
- this.store.setState({
- openKeys: props.openKeys || []
- });
- }
- }
- },
- render: function render() {
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var subPopupMenuProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
- itemIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'itemIcon', props),
- expandIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'expandIcon', props),
- overflowedIndicator: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'overflowedIndicator', props) || h('span', ['\xB7\xB7\xB7']),
- openTransitionName: this.getOpenTransitionName(),
- parentMenu: this,
- children: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])(this.$slots['default'] || [])
- }),
- 'class': props.prefixCls + '-root',
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
- click: this.onClick,
- openChange: this.onOpenChange,
- deselect: this.onDeselect,
- select: this.onSelect
- }),
- ref: 'innerMenu'
- };
- return h(
- _util_store__WEBPACK_IMPORTED_MODULE_2__["Provider"],
- {
- attrs: { store: this.store }
- },
- [h(_SubPopupMenu__WEBPACK_IMPORTED_MODULE_3__["default"], subPopupMenuProps)]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Menu);
- /***/ }),
- /***/ "./components/vc-menu/MenuItem.jsx":
- /*!*****************************************!*\
- !*** ./components/vc-menu/MenuItem.jsx ***!
- \*****************************************/
- /*! exports provided: default, menuItemProps */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "menuItemProps", function() { return props; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
- /* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var props = {
- attribute: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
- active: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- index: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(24),
- level: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(1),
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']).def('vertical'),
- parentMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- isSelected: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- manualRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(_util__WEBPACK_IMPORTED_MODULE_8__["noop"]),
- role: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- subMenuKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
- // clearSubMenuTimers: PropTypes.func.def(noop),
- };
- var MenuItem = {
- name: 'MenuItem',
- props: props,
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
- isMenuItem: true,
- created: function created() {
- this.prevActive = this.active;
- // invoke customized ref to expose component to mixin
- this.callRef();
- },
- updated: function updated() {
- var _this = this;
- this.$nextTick(function () {
- var _$props = _this.$props,
- active = _$props.active,
- parentMenu = _$props.parentMenu,
- eventKey = _$props.eventKey;
- if (!_this.prevActive && active && (!parentMenu || !parentMenu['scrolled-' + eventKey])) {
- Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_6__["default"])(_this.$el, _this.parentMenu.$el, {
- onlyScrollIfNeeded: true
- });
- parentMenu['scrolled-' + eventKey] = true;
- } else if (parentMenu && parentMenu['scrolled-' + eventKey]) {
- delete parentMenu['scrolled-' + eventKey];
- }
- _this.prevActive = active;
- });
- this.callRef();
- },
- beforeDestroy: function beforeDestroy() {
- var props = this.$props;
- this.__emit('destroy', props.eventKey);
- },
- methods: {
- onKeyDown: function onKeyDown(e) {
- var keyCode = e.keyCode;
- if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ENTER) {
- this.onClick(e);
- return true;
- }
- },
- onMouseLeave: function onMouseLeave(e) {
- var eventKey = this.$props.eventKey;
- this.__emit('itemHover', {
- key: eventKey,
- hover: false
- });
- this.__emit('mouseleave', {
- key: eventKey,
- domEvent: e
- });
- },
- onMouseEnter: function onMouseEnter(e) {
- var eventKey = this.eventKey;
- this.__emit('itemHover', {
- key: eventKey,
- hover: true
- });
- this.__emit('mouseenter', {
- key: eventKey,
- domEvent: e
- });
- },
- onClick: function onClick(e) {
- var _$props2 = this.$props,
- eventKey = _$props2.eventKey,
- multiple = _$props2.multiple,
- isSelected = _$props2.isSelected;
- var info = {
- key: eventKey,
- keyPath: [eventKey],
- item: this,
- domEvent: e
- };
- this.__emit('click', info);
- if (multiple) {
- if (isSelected) {
- this.__emit('deselect', info);
- } else {
- this.__emit('select', info);
- }
- } else if (!isSelected) {
- this.__emit('select', info);
- }
- },
- getPrefixCls: function getPrefixCls() {
- return this.$props.rootPrefixCls + '-item';
- },
- getActiveClassName: function getActiveClassName() {
- return this.getPrefixCls() + '-active';
- },
- getSelectedClassName: function getSelectedClassName() {
- return this.getPrefixCls() + '-selected';
- },
- getDisabledClassName: function getDisabledClassName() {
- return this.getPrefixCls() + '-disabled';
- },
- callRef: function callRef() {
- if (this.manualRef) {
- this.manualRef(this);
- }
- }
- },
- render: function render() {
- var _className;
- var h = arguments[0];
- var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
- var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getPrefixCls(), true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getActiveClassName(), !props.disabled && props.active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getSelectedClassName(), props.isSelected), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getDisabledClassName(), props.disabled), _className);
- var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props.attribute, {
- title: props.title,
- role: props.role || 'menuitem',
- 'aria-disabled': props.disabled
- });
- if (props.role === 'option') {
- // overwrite to option
- attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, attrs, {
- role: 'option',
- 'aria-selected': props.isSelected
- });
- } else if (props.role === null || props.role === 'none') {
- // sometimes we want to specify role inside <li/> element
- // <li><a role='menuitem'>Link</a></li> would be a good example
- // in this case the role on <li/> should be "none" to
- // remove the implied listitem role.
- // https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html
- attrs.role = 'none';
- }
- // In case that onClick/onMouseLeave/onMouseEnter is passed down from owner
- var mouseEvent = {
- click: props.disabled ? _util__WEBPACK_IMPORTED_MODULE_8__["noop"] : this.onClick,
- mouseleave: props.disabled ? _util__WEBPACK_IMPORTED_MODULE_8__["noop"] : this.onMouseLeave,
- mouseenter: props.disabled ? _util__WEBPACK_IMPORTED_MODULE_8__["noop"] : this.onMouseEnter
- };
- var style = {};
- if (props.mode === 'inline') {
- style.paddingLeft = props.inlineIndent * props.level + 'px';
- }
- var listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this));
- _util__WEBPACK_IMPORTED_MODULE_8__["menuAllProps"].props.forEach(function (key) {
- return delete props[key];
- });
- _util__WEBPACK_IMPORTED_MODULE_8__["menuAllProps"].on.forEach(function (key) {
- return delete listeners[key];
- });
- var liProps = {
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, attrs),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, listeners, mouseEvent)
- };
- return h(
- 'li',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([liProps, { style: style, 'class': className }]),
- [this.$slots['default'], Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'itemIcon', props)]
- );
- }
- };
- var connected = Object(_util_store__WEBPACK_IMPORTED_MODULE_7__["connect"])(function (_ref, _ref2) {
- var activeKey = _ref.activeKey,
- selectedKeys = _ref.selectedKeys;
- var eventKey = _ref2.eventKey,
- subMenuKey = _ref2.subMenuKey;
- return {
- active: activeKey[subMenuKey] === eventKey,
- isSelected: selectedKeys.indexOf(eventKey) !== -1
- };
- })(MenuItem);
- /* harmony default export */ __webpack_exports__["default"] = (connected);
- /***/ }),
- /***/ "./components/vc-menu/MenuItemGroup.jsx":
- /*!**********************************************!*\
- !*** ./components/vc-menu/MenuItemGroup.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- // import { menuAllProps } from './util'
- var MenuItemGroup = {
- name: 'MenuItemGroup',
- props: {
- renderMenuItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- index: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- subMenuKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- },
- isMenuItemGroup: true,
- methods: {
- renderInnerMenuItem: function renderInnerMenuItem(item) {
- var _$props = this.$props,
- renderMenuItem = _$props.renderMenuItem,
- index = _$props.index,
- subMenuKey = _$props.subMenuKey;
- return renderMenuItem(item, index, subMenuKey);
- }
- },
- render: function render() {
- var h = arguments[0];
- var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props);
- var rootPrefixCls = props.rootPrefixCls,
- title = props.title;
- var titleClassName = rootPrefixCls + '-item-group-title';
- var listClassName = rootPrefixCls + '-item-group-list';
- // menuAllProps.props.forEach(key => delete props[key])
- var listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this));
- delete listeners.click;
- return h(
- 'li',
- { on: listeners, 'class': rootPrefixCls + '-item-group' },
- [h(
- 'div',
- { 'class': titleClassName, attrs: { title: typeof title === 'string' ? title : undefined }
- },
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'title')]
- ), h(
- 'ul',
- { 'class': listClassName },
- [this.$slots['default'] && this.$slots['default'].map(this.renderInnerMenuItem)]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (MenuItemGroup);
- /***/ }),
- /***/ "./components/vc-menu/SubMenu.jsx":
- /*!****************************************!*\
- !*** ./components/vc-menu/SubMenu.jsx ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
- /* harmony import */ var _SubPopupMenu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SubPopupMenu */ "./components/vc-menu/SubPopupMenu.jsx");
- /* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./placements */ "./components/vc-menu/placements.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/requestAnimationTimeout */ "./components/_util/requestAnimationTimeout.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- var guid = 0;
- var popupPlacementMap = {
- horizontal: 'bottomLeft',
- vertical: 'rightTop',
- 'vertical-left': 'rightTop',
- 'vertical-right': 'leftTop'
- };
- var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) {
- var menuId = Object(_util__WEBPACK_IMPORTED_MODULE_14__["getMenuIdFromSubMenuEventKey"])(eventKey);
- var state = store.getState();
- store.setState({
- defaultActiveFirst: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, state.defaultActiveFirst, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, menuId, defaultActiveFirst))
- });
- };
- var SubMenu = {
- name: 'SubMenu',
- props: {
- parentMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array.def([]),
- openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array.def([]),
- openChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(_util__WEBPACK_IMPORTED_MODULE_14__["noop"]),
- rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number]),
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- active: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool, // TODO: remove
- isRootMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool.def(false),
- index: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number,
- triggerSubMenuAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
- forceSubMenuRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object]),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- subMenuOpenDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(0.1),
- subMenuCloseDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(0.1),
- level: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(1),
- inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(24),
- openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- popupOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
- isOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- store: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']).def('vertical'),
- manualRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(_util__WEBPACK_IMPORTED_MODULE_14__["noop"]),
- builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object.def(function () {
- return {};
- }),
- itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- subMenuKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
- },
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
- isSubMenu: true,
- data: function data() {
- var props = this.$props;
- var store = props.store;
- var eventKey = props.eventKey;
- var defaultActiveFirst = store.getState().defaultActiveFirst;
- var value = false;
- if (defaultActiveFirst) {
- value = defaultActiveFirst[eventKey];
- }
- updateDefaultActiveFirst(store, eventKey, value);
- return {
- // defaultActiveFirst: false,
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- _this.handleUpdated();
- });
- },
- updated: function updated() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.handleUpdated();
- });
- },
- beforeDestroy: function beforeDestroy() {
- var eventKey = this.eventKey;
- this.__emit('destroy', eventKey);
- /* istanbul ignore if */
- if (this.minWidthTimeout) {
- Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["cancelAnimationTimeout"])(this.minWidthTimeout);
- this.minWidthTimeout = null;
- }
- /* istanbul ignore if */
- if (this.mouseenterTimeout) {
- Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["cancelAnimationTimeout"])(this.mouseenterTimeout);
- this.mouseenterTimeout = null;
- }
- },
- methods: {
- handleUpdated: function handleUpdated() {
- var _this3 = this;
- var _$props = this.$props,
- mode = _$props.mode,
- parentMenu = _$props.parentMenu,
- manualRef = _$props.manualRef;
- // invoke customized ref to expose component to mixin
- if (manualRef) {
- manualRef(this);
- }
- if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.isOpen) {
- return;
- }
- this.minWidthTimeout = Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["requestAnimationTimeout"])(function () {
- return _this3.adjustWidth();
- }, 0);
- },
- onKeyDown: function onKeyDown(e) {
- var keyCode = e.keyCode;
- var menu = this.menuInstance;
- var _$props2 = this.$props,
- store = _$props2.store,
- isOpen = _$props2.isOpen;
- if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
- this.onTitleClick(e);
- updateDefaultActiveFirst(store, this.eventKey, true);
- return true;
- }
- if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT) {
- if (isOpen) {
- menu.onKeyDown(e);
- } else {
- this.triggerOpenChange(true);
- // need to update current menu's defaultActiveFirst value
- updateDefaultActiveFirst(store, this.eventKey, true);
- }
- return true;
- }
- if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT) {
- var handled = void 0;
- if (isOpen) {
- handled = menu.onKeyDown(e);
- } else {
- return undefined;
- }
- if (!handled) {
- this.triggerOpenChange(false);
- handled = true;
- }
- return handled;
- }
- if (isOpen && (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP || keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN)) {
- return menu.onKeyDown(e);
- }
- return undefined;
- },
- onPopupVisibleChange: function onPopupVisibleChange(visible) {
- this.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave');
- },
- onMouseEnter: function onMouseEnter(e) {
- var _$props3 = this.$props,
- key = _$props3.eventKey,
- store = _$props3.store;
- updateDefaultActiveFirst(store, key, false);
- this.__emit('mouseenter', {
- key: key,
- domEvent: e
- });
- },
- onMouseLeave: function onMouseLeave(e) {
- var eventKey = this.eventKey,
- parentMenu = this.parentMenu;
- parentMenu.subMenuInstance = this;
- // parentMenu.subMenuLeaveFn = () => {
- // // trigger mouseleave
- // this.__emit('mouseleave', {
- // key: eventKey,
- // domEvent: e,
- // })
- // }
- this.__emit('mouseleave', {
- key: eventKey,
- domEvent: e
- });
- // prevent popup menu and submenu gap
- // parentMenu.subMenuLeaveTimer = setTimeout(parentMenu.subMenuLeaveFn, 100)
- },
- onTitleMouseEnter: function onTitleMouseEnter(domEvent) {
- var key = this.$props.eventKey;
- // this.clearSubMenuTitleLeaveTimer()
- this.__emit('itemHover', {
- key: key,
- hover: true
- });
- this.__emit('titleMouseenter', {
- key: key,
- domEvent: domEvent
- });
- },
- onTitleMouseLeave: function onTitleMouseLeave(e) {
- var eventKey = this.eventKey,
- parentMenu = this.parentMenu;
- parentMenu.subMenuInstance = this;
- this.__emit('itemHover', {
- key: eventKey,
- hover: false
- });
- this.__emit('titleMouseleave', {
- key: eventKey,
- domEvent: e
- });
- },
- onTitleClick: function onTitleClick(e) {
- var _$props4 = this.$props,
- triggerSubMenuAction = _$props4.triggerSubMenuAction,
- eventKey = _$props4.eventKey,
- isOpen = _$props4.isOpen,
- store = _$props4.store;
- this.__emit('titleClick', {
- key: eventKey,
- domEvent: e
- });
- if (triggerSubMenuAction === 'hover') {
- return;
- }
- this.triggerOpenChange(!isOpen, 'click');
- updateDefaultActiveFirst(store, eventKey, false);
- },
- onSubMenuClick: function onSubMenuClick(info) {
- this.__emit('click', this.addKeyPath(info));
- },
- getPrefixCls: function getPrefixCls() {
- return this.$props.rootPrefixCls + '-submenu';
- },
- getActiveClassName: function getActiveClassName() {
- return this.getPrefixCls() + '-active';
- },
- getDisabledClassName: function getDisabledClassName() {
- return this.getPrefixCls() + '-disabled';
- },
- getSelectedClassName: function getSelectedClassName() {
- return this.getPrefixCls() + '-selected';
- },
- getOpenClassName: function getOpenClassName() {
- return this.$props.rootPrefixCls + '-submenu-open';
- },
- saveMenuInstance: function saveMenuInstance(c) {
- // children menu instance
- this.menuInstance = c;
- },
- addKeyPath: function addKeyPath(info) {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, info, {
- keyPath: (info.keyPath || []).concat(this.$props.eventKey)
- });
- },
- // triggerOpenChange (open, type) {
- // const key = this.$props.eventKey
- // this.__emit('openChange', {
- // key,
- // item: this,
- // trigger: type,
- // open,
- // })
- // },
- triggerOpenChange: function triggerOpenChange(open, type) {
- var _this4 = this;
- var key = this.$props.eventKey;
- var openChange = function openChange() {
- _this4.__emit('openChange', {
- key: key,
- item: _this4,
- trigger: type,
- open: open
- });
- };
- if (type === 'mouseenter') {
- // make sure mouseenter happen after other menu item's mouseleave
- this.mouseenterTimeout = Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["requestAnimationTimeout"])(function () {
- openChange();
- }, 0);
- } else {
- openChange();
- }
- },
- isChildrenSelected: function isChildrenSelected() {
- var ret = { find: false };
- Object(_util__WEBPACK_IMPORTED_MODULE_14__["loopMenuItemRecursively"])(this.$slots['default'], this.$props.selectedKeys, ret);
- return ret.find;
- },
- // isOpen () {
- // return this.$props.openKeys.indexOf(this.$props.eventKey) !== -1
- // },
- adjustWidth: function adjustWidth() {
- /* istanbul ignore if */
- if (!this.$refs.subMenuTitle || !this.menuInstance) {
- return;
- }
- var popupMenu = this.menuInstance.$el;
- if (popupMenu.offsetWidth >= this.$refs.subMenuTitle.offsetWidth) {
- return;
- }
- /* istanbul ignore next */
- popupMenu.style.minWidth = this.$refs.subMenuTitle.offsetWidth + 'px';
- },
- renderChildren: function renderChildren(children) {
- var h = this.$createElement;
- var props = this.$props;
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this),
- select = _getListeners.select,
- deselect = _getListeners.deselect,
- openChange = _getListeners.openChange;
- var subPopupMenuProps = {
- props: {
- mode: props.mode === 'horizontal' ? 'vertical' : props.mode,
- visible: props.isOpen,
- level: props.level + 1,
- inlineIndent: props.inlineIndent,
- focusable: false,
- selectedKeys: props.selectedKeys,
- eventKey: props.eventKey + '-menu-',
- openKeys: props.openKeys,
- openTransitionName: props.openTransitionName,
- openAnimation: props.openAnimation,
- subMenuOpenDelay: props.subMenuOpenDelay,
- parentMenu: this,
- subMenuCloseDelay: props.subMenuCloseDelay,
- forceSubMenuRender: props.forceSubMenuRender,
- triggerSubMenuAction: props.triggerSubMenuAction,
- builtinPlacements: props.builtinPlacements,
- defaultActiveFirst: props.store.getState().defaultActiveFirst[Object(_util__WEBPACK_IMPORTED_MODULE_14__["getMenuIdFromSubMenuEventKey"])(props.eventKey)],
- multiple: props.multiple,
- prefixCls: props.rootPrefixCls,
- manualRef: this.saveMenuInstance,
- itemIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'itemIcon'),
- expandIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'expandIcon'),
- children: children
- },
- on: {
- click: this.onSubMenuClick,
- select: select,
- deselect: deselect,
- openChange: openChange
- },
- id: this.internalMenuId
- };
- var baseProps = subPopupMenuProps.props;
- var haveRendered = this.haveRendered;
- this.haveRendered = true;
- this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender;
- // never rendered not planning to, don't render
- if (!this.haveOpened) {
- return h('div');
- }
- // don't show transition on first rendering (no animation for opened menu)
- // show appear transition if it's not visible (not sure why)
- // show appear transition if it's not inline mode
- var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline';
- subPopupMenuProps['class'] = ' ' + baseProps.prefixCls + '-sub';
- var animProps = { appear: transitionAppear, css: false };
- var transitionProps = {
- props: animProps,
- on: {}
- };
- if (baseProps.openTransitionName) {
- transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_15__["default"])(baseProps.openTransitionName, {
- appear: transitionAppear
- });
- } else if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(baseProps.openAnimation) === 'object') {
- animProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, animProps, baseProps.openAnimation.props || {});
- if (!transitionAppear) {
- animProps.appear = false;
- }
- } else if (typeof baseProps.openAnimation === 'string') {
- transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_15__["default"])(baseProps.openAnimation, { appear: transitionAppear });
- }
- if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(baseProps.openAnimation) === 'object' && baseProps.openAnimation.on) {
- transitionProps.on = baseProps.openAnimation.on;
- }
- return h(
- 'transition',
- transitionProps,
- [h(_SubPopupMenu__WEBPACK_IMPORTED_MODULE_9__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- directives: [{
- name: 'show',
- value: props.isOpen
- }]
- }, subPopupMenuProps]))]
- );
- }
- },
- render: function render() {
- var _className, _attrs;
- var h = arguments[0];
- var props = this.$props;
- var rootPrefixCls = this.rootPrefixCls,
- parentMenu = this.parentMenu;
- var isOpen = props.isOpen;
- var prefixCls = this.getPrefixCls();
- var isInlineMode = props.mode === 'inline';
- var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, prefixCls + '-' + props.mode, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getOpenClassName(), isOpen), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getActiveClassName(), props.active || isOpen && !isInlineMode), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getDisabledClassName(), props.disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getSelectedClassName(), this.isChildrenSelected()), _className);
- if (!this.internalMenuId) {
- if (props.eventKey) {
- this.internalMenuId = props.eventKey + '$Menu';
- } else {
- this.internalMenuId = '$__$' + ++guid + '$Menu';
- }
- }
- var mouseEvents = {};
- var titleClickEvents = {};
- var titleMouseEvents = {};
- if (!props.disabled) {
- mouseEvents = {
- mouseleave: this.onMouseLeave,
- mouseenter: this.onMouseEnter
- };
- // only works in title, not outer li
- titleClickEvents = {
- click: this.onTitleClick
- };
- titleMouseEvents = {
- mouseenter: this.onTitleMouseEnter,
- mouseleave: this.onTitleMouseLeave
- };
- }
- var style = {};
- if (isInlineMode) {
- style.paddingLeft = props.inlineIndent * props.level + 'px';
- }
- var ariaOwns = {};
- // only set aria-owns when menu is open
- // otherwise it would be an invalid aria-owns value
- // since corresponding node cannot be found
- if (isOpen) {
- ariaOwns = {
- 'aria-owns': this.internalMenuId
- };
- }
- var titleProps = {
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
- 'aria-expanded': isOpen
- }, ariaOwns, {
- 'aria-haspopup': 'true',
- title: typeof props.title === 'string' ? props.title : undefined
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, titleMouseEvents, titleClickEvents),
- style: style,
- 'class': prefixCls + '-title',
- ref: 'subMenuTitle'
- };
- // expand custom icon should NOT be displayed in menu with horizontal mode.
- var icon = null;
- if (props.mode !== 'horizontal') {
- icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'expandIcon', props);
- }
- var title = h(
- 'div',
- titleProps,
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'title'), icon || h('i', { 'class': prefixCls + '-arrow' })]
- );
- var children = this.renderChildren(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["filterEmpty"])(this.$slots['default']));
- var getPopupContainer = this.parentMenu.isRootMenu ? this.parentMenu.getPopupContainer : function (triggerNode) {
- return triggerNode.parentNode;
- };
- var popupPlacement = popupPlacementMap[props.mode];
- var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {};
- var popupClassName = props.mode === 'inline' ? '' : props.popupClassName;
- var liProps = {
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this), ['click']), mouseEvents),
- 'class': className
- };
- return h(
- 'li',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([liProps, {
- attrs: { role: 'menuitem' }
- }]),
- [isInlineMode && title, isInlineMode && children, !isInlineMode && h(
- _vc_trigger__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- attrs: (_attrs = {
- prefixCls: prefixCls,
- popupClassName: prefixCls + '-popup ' + rootPrefixCls + '-' + parentMenu.theme + ' ' + (popupClassName || ''),
- getPopupContainer: getPopupContainer,
- builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_10__["default"]
- }, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'builtinPlacements', babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _placements__WEBPACK_IMPORTED_MODULE_10__["default"], props.builtinPlacements)), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'popupPlacement', popupPlacement), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'popupVisible', isOpen), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'popupAlign', popupAlign), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'action', props.disabled ? [] : [props.triggerSubMenuAction]), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'mouseEnterDelay', props.subMenuOpenDelay), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'mouseLeaveDelay', props.subMenuCloseDelay), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'forceRender', props.forceSubMenuRender), _attrs),
- on: {
- 'popupVisibleChange': this.onPopupVisibleChange
- }
- },
- [h(
- 'template',
- { slot: 'popup' },
- [children]
- ), title]
- )]
- );
- }
- };
- var connected = Object(_util_store__WEBPACK_IMPORTED_MODULE_8__["connect"])(function (_ref, _ref2) {
- var openKeys = _ref.openKeys,
- activeKey = _ref.activeKey,
- selectedKeys = _ref.selectedKeys;
- var eventKey = _ref2.eventKey,
- subMenuKey = _ref2.subMenuKey;
- return {
- isOpen: openKeys.indexOf(eventKey) > -1,
- active: activeKey[subMenuKey] === eventKey,
- selectedKeys: selectedKeys
- };
- })(SubMenu);
- connected.isSubMenu = true;
- /* harmony default export */ __webpack_exports__["default"] = (connected);
- /***/ }),
- /***/ "./components/vc-menu/SubPopupMenu.jsx":
- /*!*********************************************!*\
- !*** ./components/vc-menu/SubPopupMenu.jsx ***!
- \*********************************************/
- /*! exports provided: saveRef, getActiveKey, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveRef", function() { return saveRef; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActiveKey", function() { return getActiveKey; });
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
- /* harmony import */ var _DOMWrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DOMWrap */ "./components/vc-menu/DOMWrap.jsx");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- function allDisabled(arr) {
- if (!arr.length) {
- return true;
- }
- return arr.every(function (c) {
- return !!c.disabled;
- });
- }
- function updateActiveKey(store, menuId, activeKey) {
- var state = store.getState();
- store.setState({
- activeKey: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state.activeKey, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, menuId, activeKey))
- });
- }
- function getEventKey(props) {
- // when eventKey not available ,it's menu and return menu id '0-menu-'
- return props.eventKey || '0-menu-';
- }
- function saveRef(key, c) {
- if (c) {
- var index = this.instanceArrayKeyIndexMap[key];
- this.instanceArray[index] = c;
- }
- }
- function getActiveKey(props, originalActiveKey) {
- var activeKey = originalActiveKey;
- var eventKey = props.eventKey,
- defaultActiveFirst = props.defaultActiveFirst,
- children = props.children;
- if (activeKey !== undefined && activeKey !== null) {
- var found = void 0;
- Object(_util__WEBPACK_IMPORTED_MODULE_9__["loopMenuItem"])(children, function (c, i) {
- var propsData = c.componentOptions.propsData || {};
- if (c && !propsData.disabled && activeKey === Object(_util__WEBPACK_IMPORTED_MODULE_9__["getKeyFromChildrenIndex"])(c, eventKey, i)) {
- found = true;
- }
- });
- if (found) {
- return activeKey;
- }
- }
- activeKey = null;
- if (defaultActiveFirst) {
- Object(_util__WEBPACK_IMPORTED_MODULE_9__["loopMenuItem"])(children, function (c, i) {
- var propsData = c.componentOptions.propsData || {};
- var noActiveKey = activeKey === null || activeKey === undefined;
- if (noActiveKey && c && !propsData.disabled) {
- activeKey = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getKeyFromChildrenIndex"])(c, eventKey, i);
- }
- });
- return activeKey;
- }
- return activeKey;
- }
- var SubPopupMenu = {
- name: 'SubPopupMenu',
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])({
- // onSelect: PropTypes.func,
- // onClick: PropTypes.func,
- // onDeselect: PropTypes.func,
- // onOpenChange: PropTypes.func,
- // onDestroy: PropTypes.func,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object]),
- openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- parentMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- store: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- forceSubMenuRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- // adding in refactor
- focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- defaultActiveFirst: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
- selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
- defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
- defaultOpenKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
- level: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),
- triggerSubMenuAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['click', 'hover']),
- inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string]),
- manualRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- overflowedIndicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def([]),
- __propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any // mock componentWillReceiveProps
- }, {
- prefixCls: 'rc-menu',
- mode: 'vertical',
- level: 1,
- inlineIndent: 24,
- visible: true,
- focusable: true,
- manualRef: _util__WEBPACK_IMPORTED_MODULE_9__["noop"]
- }),
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
- created: function created() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
- this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
- props.store.setState({
- activeKey: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props.store.getState().activeKey, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, props.eventKey, getActiveKey(props, props.activeKey)))
- });
- this.instanceArray = [];
- },
- mounted: function mounted() {
- // invoke customized ref to expose component to mixin
- if (this.manualRef) {
- this.manualRef(this);
- }
- },
- updated: function updated() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
- var prevProps = this.prevProps;
- var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)];
- var activeKey = getActiveKey(props, originalActiveKey);
- if (activeKey !== originalActiveKey) {
- updateActiveKey(props.store, getEventKey(props), activeKey);
- } else if ('activeKey' in prevProps) {
- // If prev activeKey is not same as current activeKey,
- // we should set it.
- var prevActiveKey = getActiveKey(prevProps, prevProps.activeKey);
- if (activeKey !== prevActiveKey) {
- updateActiveKey(props.store, getEventKey(props), activeKey);
- }
- }
- this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
- },
- methods: {
- // all keyboard events callbacks run from here at first
- onKeyDown: function onKeyDown(e, callback) {
- var keyCode = e.keyCode;
- var handled = void 0;
- this.getFlatInstanceArray().forEach(function (obj) {
- if (obj && obj.active && obj.onKeyDown) {
- handled = obj.onKeyDown(e);
- }
- });
- if (handled) {
- return 1;
- }
- var activeItem = null;
- if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP || keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN) {
- activeItem = this.step(keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP ? -1 : 1);
- }
- if (activeItem) {
- e.preventDefault();
- updateActiveKey(this.$props.store, getEventKey(this.$props), activeItem.eventKey);
- if (typeof callback === 'function') {
- callback(activeItem);
- }
- return 1;
- }
- return undefined;
- },
- onItemHover: function onItemHover(e) {
- var key = e.key,
- hover = e.hover;
- updateActiveKey(this.$props.store, getEventKey(this.$props), hover ? key : null);
- },
- onDeselect: function onDeselect(selectInfo) {
- this.__emit('deselect', selectInfo);
- },
- onSelect: function onSelect(selectInfo) {
- this.__emit('select', selectInfo);
- },
- onClick: function onClick(e) {
- this.__emit('click', e);
- },
- onOpenChange: function onOpenChange(e) {
- this.__emit('openChange', e);
- },
- onDestroy: function onDestroy(key) {
- this.__emit('destroy', key);
- },
- getFlatInstanceArray: function getFlatInstanceArray() {
- return this.instanceArray;
- },
- getOpenTransitionName: function getOpenTransitionName() {
- return this.$props.openTransitionName;
- },
- step: function step(direction) {
- var children = this.getFlatInstanceArray();
- var activeKey = this.$props.store.getState().activeKey[getEventKey(this.$props)];
- var len = children.length;
- if (!len) {
- return null;
- }
- if (direction < 0) {
- children = children.concat().reverse();
- }
- // find current activeIndex
- var activeIndex = -1;
- children.every(function (c, ci) {
- if (c && c.eventKey === activeKey) {
- activeIndex = ci;
- return false;
- }
- return true;
- });
- if (!this.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) {
- return undefined;
- }
- var start = (activeIndex + 1) % len;
- var i = start;
- do {
- var child = children[i];
- if (!child || child.disabled) {
- i = (i + 1) % len;
- } else {
- return child;
- }
- } while (i !== start);
- return null;
- },
- getIcon: function getIcon(instance, name) {
- if (instance.$createElement) {
- var temp = instance[name];
- if (temp !== undefined) {
- return temp;
- }
- return instance.$slots[name] || instance.$scopedSlots[name];
- } else {
- var _temp = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getPropsData"])(instance)[name];
- if (_temp !== undefined) {
- return _temp;
- }
- var slotsProp = [];
- var componentOptions = instance.componentOptions || {};
- (componentOptions.children || []).forEach(function (child) {
- if (child.data && child.data.slot === name) {
- if (child.tag === 'template') {
- slotsProp.push(child.children);
- } else {
- slotsProp.push(child);
- }
- }
- });
- return slotsProp.length ? slotsProp : undefined;
- }
- },
- renderCommonMenuItem: function renderCommonMenuItem(child, i, extraProps) {
- var _this = this;
- if (child.tag === undefined) {
- return child;
- }
- var state = this.$props.store.getState();
- var props = this.$props;
- var key = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getKeyFromChildrenIndex"])(child, props.eventKey, i);
- var childProps = child.componentOptions.propsData || {};
- var isActive = key === state.activeKey[getEventKey(this.$props)];
- if (!childProps.disabled) {
- // manualRef的执行顺序不能保证,使用key映射ref在this.instanceArray中的位置
- this.instanceArrayKeyIndexMap[key] = Object.keys(this.instanceArrayKeyIndexMap).length;
- }
- var childListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getEvents"])(child);
- var newChildProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- mode: childProps.mode || props.mode,
- level: props.level,
- inlineIndent: props.inlineIndent,
- renderMenuItem: this.renderMenuItem,
- rootPrefixCls: props.prefixCls,
- index: i,
- parentMenu: props.parentMenu,
- // customized ref function, need to be invoked manually in child's componentDidMount
- manualRef: childProps.disabled ? _util__WEBPACK_IMPORTED_MODULE_9__["noop"] : saveRef.bind(this, key),
- eventKey: key,
- active: !childProps.disabled && isActive,
- multiple: props.multiple,
- openTransitionName: this.getOpenTransitionName(),
- openAnimation: props.openAnimation,
- subMenuOpenDelay: props.subMenuOpenDelay,
- subMenuCloseDelay: props.subMenuCloseDelay,
- forceSubMenuRender: props.forceSubMenuRender,
- builtinPlacements: props.builtinPlacements,
- itemIcon: this.getIcon(child, 'itemIcon') || this.getIcon(this, 'itemIcon'),
- expandIcon: this.getIcon(child, 'expandIcon') || this.getIcon(this, 'expandIcon')
- }, extraProps),
- on: {
- click: function click(e) {
- (childListeners.click || _util__WEBPACK_IMPORTED_MODULE_9__["noop"])(e);
- _this.onClick(e);
- },
- itemHover: this.onItemHover,
- openChange: this.onOpenChange,
- deselect: this.onDeselect,
- // destroy: this.onDestroy,
- select: this.onSelect
- }
- };
- // ref: https://github.com/ant-design/ant-design/issues/13943
- if (props.mode === 'inline' || Object(_util__WEBPACK_IMPORTED_MODULE_9__["isMobileDevice"])()) {
- newChildProps.props.triggerSubMenuAction = 'click';
- }
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(child, newChildProps);
- },
- renderMenuItem: function renderMenuItem(c, i, subMenuKey) {
- if (!c) {
- return null;
- }
- var state = this.$props.store.getState();
- var extraProps = {
- openKeys: state.openKeys,
- selectedKeys: state.selectedKeys,
- triggerSubMenuAction: this.triggerSubMenuAction,
- isRootMenu: false,
- subMenuKey: subMenuKey
- };
- return this.renderCommonMenuItem(c, i, extraProps);
- }
- },
- render: function render() {
- var _this2 = this;
- var h = arguments[0];
- var props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(this.$props, []);
- var eventKey = props.eventKey,
- prefixCls = props.prefixCls,
- visible = props.visible,
- level = props.level,
- mode = props.mode,
- theme = props.theme;
- this.instanceArray = [];
- this.instanceArrayKeyIndexMap = {};
- var className = classnames__WEBPACK_IMPORTED_MODULE_8___default()(props.prefixCls, props.prefixCls + '-' + props.mode);
- var domWrapProps = {
- props: {
- tag: 'ul',
- // hiddenClassName: `${prefixCls}-hidden`,
- visible: visible,
- prefixCls: prefixCls,
- level: level,
- mode: mode,
- theme: theme,
- overflowedIndicator: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'overflowedIndicator')
- },
- attrs: {
- role: props.role || 'menu'
- },
- 'class': className,
- // Otherwise, the propagated click event will trigger another onClick
- on: Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this), ['click'])
- };
- // if (props.id) {
- // domProps.id = props.id
- // }
- if (props.focusable) {
- domWrapProps.attrs.tabIndex = '0';
- domWrapProps.on.keydown = this.onKeyDown;
- }
- return (
- // ESLint is not smart enough to know that the type of `children` was checked.
- /* eslint-disable */
- h(
- _DOMWrap__WEBPACK_IMPORTED_MODULE_10__["default"],
- domWrapProps,
- [props.children.map(function (c, i) {
- return _this2.renderMenuItem(c, i, eventKey || '0-menu-');
- })]
- )
- /*eslint -enable */
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_store__WEBPACK_IMPORTED_MODULE_5__["connect"])()(SubPopupMenu));
- /***/ }),
- /***/ "./components/vc-menu/commonPropsType.js":
- /*!***********************************************!*\
- !*** ./components/vc-menu/commonPropsType.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('rc-menu'),
- focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- defaultActiveFirst: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
- selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])),
- defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])).def([]),
- defaultOpenKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])).def([]),
- openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])),
- openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]),
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']).def('vertical'),
- triggerSubMenuAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('hover'),
- subMenuOpenDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
- subMenuCloseDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
- level: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
- inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(24),
- theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['light', 'dark']).def('light'),
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- forceSubMenuRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- isRootMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
- return {};
- }),
- itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- overflowedIndicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- });
- /***/ }),
- /***/ "./components/vc-menu/index.js":
- /*!*************************************!*\
- !*** ./components/vc-menu/index.js ***!
- \*************************************/
- /*! exports provided: SubMenu, Item, itemProps, MenuItem, MenuItemGroup, ItemGroup, Divider, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Menu */ "./components/vc-menu/Menu.jsx");
- /* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SubMenu */ "./components/vc-menu/SubMenu.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return _SubMenu__WEBPACK_IMPORTED_MODULE_1__["default"]; });
- /* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MenuItem */ "./components/vc-menu/MenuItem.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "itemProps", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["menuItemProps"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });
- /* harmony import */ var _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MenuItemGroup */ "./components/vc-menu/MenuItemGroup.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItemGroup", function() { return _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemGroup", function() { return _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
- /* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Divider */ "./components/vc-menu/Divider.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Divider", function() { return _Divider__WEBPACK_IMPORTED_MODULE_4__["default"]; });
- // based on rc-menu 7.5.5
- /* harmony default export */ __webpack_exports__["default"] = (_Menu__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-menu/placements.js":
- /*!******************************************!*\
- !*** ./components/vc-menu/placements.js ***!
- \******************************************/
- /*! exports provided: placements, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
- var autoAdjustOverflow = {
- adjustX: 1,
- adjustY: 1
- };
- var placements = {
- topLeft: {
- points: ['bl', 'tl'],
- overflow: autoAdjustOverflow,
- offset: [0, -7]
- },
- bottomLeft: {
- points: ['tl', 'bl'],
- overflow: autoAdjustOverflow,
- offset: [0, 7]
- },
- leftTop: {
- points: ['tr', 'tl'],
- overflow: autoAdjustOverflow,
- offset: [-4, 0]
- },
- rightTop: {
- points: ['tl', 'tr'],
- overflow: autoAdjustOverflow,
- offset: [4, 0]
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (placements);
- /***/ }),
- /***/ "./components/vc-menu/util.js":
- /*!************************************!*\
- !*** ./components/vc-menu/util.js ***!
- \************************************/
- /*! exports provided: noop, getKeyFromChildrenIndex, getMenuIdFromSubMenuEventKey, loopMenuItem, loopMenuItemRecursively, menuAllProps, getWidth, setStyle, isMobileDevice */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKeyFromChildrenIndex", function() { return getKeyFromChildrenIndex; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMenuIdFromSubMenuEventKey", function() { return getMenuIdFromSubMenuEventKey; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loopMenuItem", function() { return loopMenuItem; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loopMenuItemRecursively", function() { return loopMenuItemRecursively; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "menuAllProps", function() { return menuAllProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWidth", function() { return getWidth; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setStyle", function() { return setStyle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMobileDevice", function() { return isMobileDevice; });
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _utils_isMobile__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/isMobile */ "./components/vc-menu/utils/isMobile.js");
- function noop() {}
- function getKeyFromChildrenIndex(child, menuEventKey, index) {
- var prefix = menuEventKey || '';
- return child.key === undefined ? prefix + 'item_' + index : child.key;
- }
- function getMenuIdFromSubMenuEventKey(eventKey) {
- return eventKey + '-menu-';
- }
- function loopMenuItem(children, cb) {
- var index = -1;
- children.forEach(function (c) {
- index++;
- if (c && c.type && c.type.isMenuItemGroup) {
- c.$slots['default'].forEach(function (c2) {
- index++;
- c.componentOptions && cb(c2, index);
- });
- } else {
- c.componentOptions && cb(c, index);
- }
- });
- }
- function loopMenuItemRecursively(children, keys, ret) {
- if (!children || ret.find) {
- return;
- }
- children.forEach(function (c) {
- if (ret.find) {
- return;
- }
- if (c.data && c.data.slot && c.data.slot !== 'default') {
- return;
- }
- if (c && c.componentOptions) {
- var options = c.componentOptions.Ctor.options;
- if (!options || !(options.isSubMenu || options.isMenuItem || options.isMenuItemGroup)) {
- return;
- }
- if (keys.indexOf(c.key) !== -1) {
- ret.find = true;
- } else if (c.componentOptions.children) {
- loopMenuItemRecursively(c.componentOptions.children, keys, ret);
- }
- }
- });
- }
- var menuAllProps = {
- props: ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',
- // the following keys found need to be removed from test regression
- 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'],
- on: ['select', 'deselect', 'destroy', 'openChange', 'itemHover', 'titleMouseenter', 'titleMouseleave', 'titleClick']
- };
- // ref: https://github.com/ant-design/ant-design/issues/14007
- // ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
- // getBoundingClientRect return the full precision value, which is
- // not the same behavior as on chrome. Set the precision to 6 to
- // unify their behavior
- var getWidth = function getWidth(elem) {
- var width = elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width;
- if (width) {
- width = +width.toFixed(6);
- }
- return width || 0;
- };
- var setStyle = function setStyle(elem, styleProperty, value) {
- if (elem && babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(elem.style) === 'object') {
- elem.style[styleProperty] = value;
- }
- };
- var isMobileDevice = function isMobileDevice() {
- return _utils_isMobile__WEBPACK_IMPORTED_MODULE_1__["default"].any;
- };
- /***/ }),
- /***/ "./components/vc-menu/utils/isMobile.js":
- /*!**********************************************!*\
- !*** ./components/vc-menu/utils/isMobile.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
- // MIT License from https://github.com/kaimallea/isMobile
- var applePhone = /iPhone/i;
- var appleIpod = /iPod/i;
- var appleTablet = /iPad/i;
- var androidPhone = /\bAndroid(?:.+)Mobile\b/i; // Match 'Android' AND 'Mobile'
- var androidTablet = /Android/i;
- var amazonPhone = /\bAndroid(?:.+)SD4930UR\b/i;
- var amazonTablet = /\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i;
- var windowsPhone = /Windows Phone/i;
- var windowsTablet = /\bWindows(?:.+)ARM\b/i; // Match 'Windows' AND 'ARM'
- var otherBlackberry = /BlackBerry/i;
- var otherBlackberry10 = /BB10/i;
- var otherOpera = /Opera Mini/i;
- var otherChrome = /\b(CriOS|Chrome)(?:.+)Mobile/i;
- var otherFirefox = /Mobile(?:.+)Firefox\b/i; // Match 'Mobile' AND 'Firefox'
- function match(regex, userAgent) {
- return regex.test(userAgent);
- }
- function isMobile(userAgent) {
- var ua = userAgent || (typeof navigator !== 'undefined' ? navigator.userAgent : '');
- // Facebook mobile app's integrated browser adds a bunch of strings that
- // match everything. Strip it out if it exists.
- var tmp = ua.split('[FBAN');
- if (typeof tmp[1] !== 'undefined') {
- var _tmp = tmp;
- var _tmp2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_tmp, 1);
- ua = _tmp2[0];
- }
- // Twitter mobile app's integrated browser on iPad adds a "Twitter for
- // iPhone" string. Same probably happens on other tablet platforms.
- // This will confuse detection so strip it out if it exists.
- tmp = ua.split('Twitter');
- if (typeof tmp[1] !== 'undefined') {
- var _tmp3 = tmp;
- var _tmp4 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_tmp3, 1);
- ua = _tmp4[0];
- }
- var result = {
- apple: {
- phone: match(applePhone, ua) && !match(windowsPhone, ua),
- ipod: match(appleIpod, ua),
- tablet: !match(applePhone, ua) && match(appleTablet, ua) && !match(windowsPhone, ua),
- device: (match(applePhone, ua) || match(appleIpod, ua) || match(appleTablet, ua)) && !match(windowsPhone, ua)
- },
- amazon: {
- phone: match(amazonPhone, ua),
- tablet: !match(amazonPhone, ua) && match(amazonTablet, ua),
- device: match(amazonPhone, ua) || match(amazonTablet, ua)
- },
- android: {
- phone: !match(windowsPhone, ua) && match(amazonPhone, ua) || !match(windowsPhone, ua) && match(androidPhone, ua),
- tablet: !match(windowsPhone, ua) && !match(amazonPhone, ua) && !match(androidPhone, ua) && (match(amazonTablet, ua) || match(androidTablet, ua)),
- device: !match(windowsPhone, ua) && (match(amazonPhone, ua) || match(amazonTablet, ua) || match(androidPhone, ua) || match(androidTablet, ua)) || match(/\bokhttp\b/i, ua)
- },
- windows: {
- phone: match(windowsPhone, ua),
- tablet: match(windowsTablet, ua),
- device: match(windowsPhone, ua) || match(windowsTablet, ua)
- },
- other: {
- blackberry: match(otherBlackberry, ua),
- blackberry10: match(otherBlackberry10, ua),
- opera: match(otherOpera, ua),
- firefox: match(otherFirefox, ua),
- chrome: match(otherChrome, ua),
- device: match(otherBlackberry, ua) || match(otherBlackberry10, ua) || match(otherOpera, ua) || match(otherFirefox, ua) || match(otherChrome, ua)
- },
- // Additional
- any: null,
- phone: null,
- tablet: null
- };
- result.any = result.apple.device || result.android.device || result.windows.device || result.other.device;
- // excludes 'other' devices and ipods, targeting touchscreen phones
- result.phone = result.apple.phone || result.android.phone || result.windows.phone;
- result.tablet = result.apple.tablet || result.android.tablet || result.windows.tablet;
- return result;
- }
- var defaultResult = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, isMobile(), {
- isMobile: isMobile
- });
- /* harmony default export */ __webpack_exports__["default"] = (defaultResult);
- /***/ }),
- /***/ "./components/vc-notification/Notice.jsx":
- /*!***********************************************!*\
- !*** ./components/vc-notification/Notice.jsx ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: {
- duration: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number.def(1.5),
- closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- update: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- },
- watch: {
- duration: function duration() {
- this.restartCloseTimer();
- }
- },
- mounted: function mounted() {
- this.startCloseTimer();
- },
- updated: function updated() {
- if (this.update) {
- this.restartCloseTimer();
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.clearCloseTimer();
- this.willDestroy = true; // beforeDestroy调用后依然会触发onMouseleave事件
- },
- methods: {
- close: function close(e) {
- if (e) {
- e.stopPropagation();
- }
- this.clearCloseTimer();
- this.__emit('close');
- },
- startCloseTimer: function startCloseTimer() {
- var _this = this;
- this.clearCloseTimer();
- if (!this.willDestroy && this.duration) {
- this.closeTimer = setTimeout(function () {
- _this.close();
- }, this.duration * 1000);
- }
- },
- clearCloseTimer: function clearCloseTimer() {
- if (this.closeTimer) {
- clearTimeout(this.closeTimer);
- this.closeTimer = null;
- }
- },
- restartCloseTimer: function restartCloseTimer() {
- this.clearCloseTimer();
- this.startCloseTimer();
- }
- },
- render: function render() {
- var _className;
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- closable = this.closable,
- clearCloseTimer = this.clearCloseTimer,
- startCloseTimer = this.startCloseTimer,
- $slots = this.$slots,
- close = this.close;
- var componentClass = prefixCls + '-notice';
- var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, '' + componentClass, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, componentClass + '-closable', closable), _className);
- var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getStyle"])(this);
- var closeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'closeIcon');
- return h(
- 'div',
- {
- 'class': className,
- style: style || { right: '50%' },
- on: {
- 'mouseenter': clearCloseTimer,
- 'mouseleave': startCloseTimer,
- 'click': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this).click || noop
- }
- },
- [h(
- 'div',
- { 'class': componentClass + '-content' },
- [$slots['default']]
- ), closable ? h(
- 'a',
- {
- attrs: { tabIndex: '0' },
- on: {
- 'click': close
- },
- 'class': componentClass + '-close' },
- [closeIcon || h('span', { 'class': componentClass + '-close-x' })]
- ) : null]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-notification/Notification.jsx":
- /*!*****************************************************!*\
- !*** ./components/vc-notification/Notification.jsx ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_createChainedFunction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/createChainedFunction */ "./components/_util/createChainedFunction.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- /* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Notice */ "./components/vc-notification/Notice.jsx");
- /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
- function noop() {}
- var seed = 0;
- var now = Date.now();
- function getUuid() {
- return 'rcNotification_' + now + '_' + seed++;
- }
- var Notification = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-notification'),
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]).def('fade'),
- maxCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
- },
- data: function data() {
- return {
- notices: []
- };
- },
- methods: {
- getTransitionName: function getTransitionName() {
- var props = this.$props;
- var transitionName = props.transitionName;
- if (!transitionName && props.animation) {
- transitionName = props.prefixCls + '-' + props.animation;
- }
- return transitionName;
- },
- add: function add(notice) {
- var key = notice.key = notice.key || getUuid();
- var maxCount = this.$props.maxCount;
- this.setState(function (previousState) {
- var notices = previousState.notices;
- var noticeIndex = notices.map(function (v) {
- return v.key;
- }).indexOf(key);
- var updatedNotices = notices.concat();
- if (noticeIndex !== -1) {
- updatedNotices.splice(noticeIndex, 1, notice);
- } else {
- if (maxCount && notices.length >= maxCount) {
- // XXX, use key of first item to update new added (let React to move exsiting
- // instead of remove and mount). Same key was used before for both a) external
- // manual control and b) internal react 'key' prop , which is not that good.
- notice.updateKey = updatedNotices[0].updateKey || updatedNotices[0].key;
- updatedNotices.shift();
- }
- updatedNotices.push(notice);
- }
- return {
- notices: updatedNotices
- };
- });
- },
- remove: function remove(key) {
- this.setState(function (previousState) {
- return {
- notices: previousState.notices.filter(function (notice) {
- return notice.key !== key;
- })
- };
- });
- }
- },
- render: function render(h) {
- var _this = this;
- var prefixCls = this.prefixCls,
- notices = this.notices,
- remove = this.remove,
- getTransitionName = this.getTransitionName;
- var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_7__["default"])(getTransitionName());
- var noticeNodes = notices.map(function (notice, index) {
- var update = Boolean(index === notices.length - 1 && notice.updateKey);
- var key = notice.updateKey ? notice.updateKey : notice.key;
- var content = notice.content,
- duration = notice.duration,
- closable = notice.closable,
- onClose = notice.onClose,
- style = notice.style,
- className = notice['class'];
- var close = Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_6__["default"])(remove.bind(_this, notice.key), onClose);
- var noticeProps = {
- props: {
- prefixCls: prefixCls,
- duration: duration,
- closable: closable,
- update: update,
- closeIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(_this, 'closeIcon')
- },
- on: {
- close: close,
- click: notice.onClick || noop
- },
- style: style,
- 'class': className,
- key: key
- };
- return h(
- _Notice__WEBPACK_IMPORTED_MODULE_8__["default"],
- noticeProps,
- [typeof content === 'function' ? content(h) : content]
- );
- });
- var className = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls, 1);
- var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getStyle"])(this);
- return h(
- 'div',
- {
- 'class': className,
- style: style || {
- top: '65px',
- left: '50%'
- }
- },
- [h(
- 'transition-group',
- transitionProps,
- [noticeNodes]
- )]
- );
- }
- };
- Notification.newInstance = function newNotificationInstance(properties, callback) {
- var _ref = properties || {},
- getContainer = _ref.getContainer,
- style = _ref.style,
- className = _ref['class'],
- props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref, ['getContainer', 'style', 'class']);
- var div = document.createElement('div');
- if (getContainer) {
- var root = getContainer();
- root.appendChild(div);
- } else {
- document.body.appendChild(div);
- }
- var V = _base__WEBPACK_IMPORTED_MODULE_9__["default"].Vue || vue__WEBPACK_IMPORTED_MODULE_2___default.a;
- new V({
- el: div,
- mounted: function mounted() {
- var self = this;
- this.$nextTick(function () {
- callback({
- notice: function notice(noticeProps) {
- self.$refs.notification.add(noticeProps);
- },
- removeNotice: function removeNotice(key) {
- self.$refs.notification.remove(key);
- },
- component: self,
- destroy: function destroy() {
- self.$destroy();
- self.$el.parentNode.removeChild(self.$el);
- }
- });
- });
- },
- render: function render() {
- var h = arguments[0];
- var p = {
- props: props,
- ref: 'notification',
- style: style,
- 'class': className
- };
- return h(Notification, p);
- }
- });
- };
- /* harmony default export */ __webpack_exports__["default"] = (Notification);
- /***/ }),
- /***/ "./components/vc-notification/index.js":
- /*!*********************************************!*\
- !*** ./components/vc-notification/index.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Notification */ "./components/vc-notification/Notification.jsx");
- // based on rc-notification 3.3.1
- /* harmony default export */ __webpack_exports__["default"] = (_Notification__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-pagination/KeyCode.js":
- /*!*********************************************!*\
- !*** ./components/vc-pagination/KeyCode.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- ZERO: 48,
- NINE: 57,
- NUMPAD_ZERO: 96,
- NUMPAD_NINE: 105,
- BACKSPACE: 8,
- DELETE: 46,
- ENTER: 13,
- ARROW_UP: 38,
- ARROW_DOWN: 40
- });
- /***/ }),
- /***/ "./components/vc-pagination/Options.jsx":
- /*!**********************************************!*\
- !*** ./components/vc-pagination/Options.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./KeyCode */ "./components/vc-pagination/KeyCode.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: {
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- changeSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- quickGo: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- selectComponentClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- current: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- pageSizeOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.def(['10', '20', '30', '40']),
- pageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- buildOptionText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- selectPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- goButton: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- },
- data: function data() {
- return {
- goInputText: ''
- };
- },
- methods: {
- getValidValue: function getValidValue() {
- var goInputText = this.goInputText,
- current = this.current;
- return !goInputText || isNaN(goInputText) ? current : Number(goInputText);
- },
- defaultBuildOptionText: function defaultBuildOptionText(opt) {
- return opt.value + ' ' + this.locale.items_per_page;
- },
- handleChange: function handleChange(e) {
- var _e$target = e.target,
- value = _e$target.value,
- composing = _e$target.composing;
- if (e.isComposing || composing || this.goInputText === value) return;
- this.setState({
- goInputText: value
- });
- },
- handleBlur: function handleBlur(e) {
- var _$props = this.$props,
- goButton = _$props.goButton,
- quickGo = _$props.quickGo,
- rootPrefixCls = _$props.rootPrefixCls;
- if (goButton) {
- return;
- }
- if (e.relatedTarget && (e.relatedTarget.className.indexOf(rootPrefixCls + '-prev') >= 0 || e.relatedTarget.className.indexOf(rootPrefixCls + '-next') >= 0)) {
- return;
- }
- quickGo(this.getValidValue());
- },
- go: function go(e) {
- var goInputText = this.goInputText;
- if (goInputText === '') {
- return;
- }
- if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].ENTER || e.type === 'click') {
- // https://github.com/vueComponent/ant-design-vue/issues/1316
- this.quickGo(this.getValidValue());
- this.setState({
- goInputText: ''
- });
- }
- }
- },
- render: function render() {
- var _this = this;
- var h = arguments[0];
- var rootPrefixCls = this.rootPrefixCls,
- locale = this.locale,
- changeSize = this.changeSize,
- quickGo = this.quickGo,
- goButton = this.goButton,
- Select = this.selectComponentClass,
- defaultBuildOptionText = this.defaultBuildOptionText,
- selectPrefixCls = this.selectPrefixCls,
- pageSize = this.pageSize,
- pageSizeOptions = this.pageSizeOptions,
- goInputText = this.goInputText,
- disabled = this.disabled;
- var prefixCls = rootPrefixCls + '-options';
- var changeSelect = null;
- var goInput = null;
- var gotoButton = null;
- if (!changeSize && !quickGo) {
- return null;
- }
- if (changeSize && Select) {
- var buildOptionText = this.buildOptionText || defaultBuildOptionText;
- var options = pageSizeOptions.map(function (opt, i) {
- return h(
- Select.Option,
- { key: i, attrs: { value: opt }
- },
- [buildOptionText({ value: opt })]
- );
- });
- changeSelect = h(
- Select,
- {
- attrs: {
- disabled: disabled,
- prefixCls: selectPrefixCls,
- showSearch: false,
- optionLabelProp: 'children',
- dropdownMatchSelectWidth: false,
- value: (pageSize || pageSizeOptions[0]).toString(),
- getPopupContainer: function getPopupContainer(triggerNode) {
- return triggerNode.parentNode;
- }
- },
- 'class': prefixCls + '-size-changer', on: {
- 'change': function change(value) {
- return _this.changeSize(Number(value));
- }
- }
- },
- [options]
- );
- }
- if (quickGo) {
- if (goButton) {
- gotoButton = typeof goButton === 'boolean' ? h(
- 'button',
- {
- attrs: { type: 'button', disabled: disabled },
- on: {
- 'click': this.go,
- 'keyup': this.go
- }
- },
- [locale.jump_to_confirm]
- ) : h(
- 'span',
- {
- on: {
- 'click': this.go,
- 'keyup': this.go
- }
- },
- [goButton]
- );
- }
- goInput = h(
- 'div',
- { 'class': prefixCls + '-quick-jumper' },
- [locale.jump_to, h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- disabled: disabled,
- type: 'text'
- },
- domProps: {
- 'value': goInputText
- },
- on: {
- 'input': this.handleChange,
- 'keyup': this.go,
- 'blur': this.handleBlur
- }
- }, {
- directives: [{
- name: 'ant-input'
- }]
- }])), locale.page, gotoButton]
- );
- }
- return h(
- 'li',
- { 'class': '' + prefixCls },
- [changeSelect, goInput]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-pagination/Pager.jsx":
- /*!********************************************!*\
- !*** ./components/vc-pagination/Pager.jsx ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Pager',
- props: {
- rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- page: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- active: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- last: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- showTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- itemRender: {
- type: Function,
- 'default': function _default() {}
- }
- },
- methods: {
- handleClick: function handleClick() {
- this.$emit('click', this.page);
- },
- handleKeyPress: function handleKeyPress(event) {
- this.$emit('keypress', event, this.handleClick, this.page);
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var props = this.$props;
- var prefixCls = props.rootPrefixCls + '-item';
- var cls = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, prefixCls + '-' + props.page, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-active', props.active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', !props.page), _classNames));
- return h(
- 'li',
- {
- 'class': cls,
- on: {
- 'click': this.handleClick,
- 'keypress': this.handleKeyPress
- },
- attrs: {
- title: this.showTitle ? this.page : null,
- tabIndex: '0'
- }
- },
- [this.itemRender(this.page, 'page', h('a', [this.page]))]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-pagination/Pagination.jsx":
- /*!*************************************************!*\
- !*** ./components/vc-pagination/Pagination.jsx ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _Pager__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Pager */ "./components/vc-pagination/Pager.jsx");
- /* harmony import */ var _Options__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Options */ "./components/vc-pagination/Options.jsx");
- /* harmony import */ var _locale_zh_CN__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./locale/zh_CN */ "./components/vc-pagination/locale/zh_CN.js");
- /* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./KeyCode */ "./components/vc-pagination/KeyCode.js");
- function noop() {}
- // 是否是正整数
- function isInteger(value) {
- return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
- }
- function defaultItemRender(page, type, element) {
- return element;
- }
- function calculatePage(p, state, props) {
- var pageSize = p;
- if (typeof pageSize === 'undefined') {
- pageSize = state.statePageSize;
- }
- return Math.floor((props.total - 1) / pageSize) + 1;
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Pagination',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- model: {
- prop: 'current',
- event: 'change.current'
- },
- props: {
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-pagination'),
- selectPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-select'),
- current: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- defaultCurrent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(1),
- total: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0),
- pageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- defaultPageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(10),
- hideOnSinglePage: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
- showSizeChanger: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
- showLessItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
- // showSizeChange: PropTypes.func.def(noop),
- selectComponentClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- showPrevNextJumpers: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
- showQuickJumper: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]).def(false),
- showTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
- pageSizeOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
- buildOptionText: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- showTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- simple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(_locale_zh_CN__WEBPACK_IMPORTED_MODULE_8__["default"]),
- itemRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(defaultItemRender),
- prevIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- nextIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- jumpPrevIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- jumpNextIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
- },
- data: function data() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
- var hasOnChange = this.onChange !== noop;
- var hasCurrent = 'current' in props;
- if (hasCurrent && !hasOnChange) {
- console.warn('Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.'); // eslint-disable-line
- }
- var current = this.defaultCurrent;
- if ('current' in props) {
- current = this.current;
- }
- var pageSize = this.defaultPageSize;
- if ('pageSize' in props) {
- pageSize = this.pageSize;
- }
- current = Math.min(current, calculatePage(pageSize, undefined, props));
- return {
- stateCurrent: current,
- stateCurrentInputValue: current,
- statePageSize: pageSize
- };
- },
- watch: {
- current: function current(val) {
- this.setState({
- stateCurrent: val,
- stateCurrentInputValue: val
- });
- },
- pageSize: function pageSize(val) {
- var newState = {};
- var current = this.stateCurrent;
- var newCurrent = calculatePage(val, this.$data, this.$props);
- current = current > newCurrent ? newCurrent : current;
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
- newState.stateCurrent = current;
- newState.stateCurrentInputValue = current;
- }
- newState.statePageSize = val;
- this.setState(newState);
- },
- stateCurrent: function stateCurrent(val, oldValue) {
- var _this = this;
- // When current page change, fix focused style of prev item
- // A hacky solution of https://github.com/ant-design/ant-design/issues/8948
- this.$nextTick(function () {
- if (_this.$refs.paginationNode) {
- var lastCurrentNode = _this.$refs.paginationNode.querySelector('.' + _this.prefixCls + '-item-' + oldValue);
- if (lastCurrentNode && document.activeElement === lastCurrentNode) {
- lastCurrentNode.blur();
- }
- }
- });
- },
- total: function total() {
- var newState = {};
- var newCurrent = calculatePage(this.pageSize, this.$data, this.$props);
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
- var current = Math.min(this.current, newCurrent);
- newState.stateCurrent = current;
- newState.stateCurrentInputValue = current;
- } else {
- var _current = this.stateCurrent;
- if (_current === 0 && newCurrent > 0) {
- _current = 1;
- } else {
- _current = Math.min(this.stateCurrent, newCurrent);
- }
- newState.stateCurrent = _current;
- }
- this.setState(newState);
- }
- },
- methods: {
- getJumpPrevPage: function getJumpPrevPage() {
- return Math.max(1, this.stateCurrent - (this.showLessItems ? 3 : 5));
- },
- getJumpNextPage: function getJumpNextPage() {
- return Math.min(calculatePage(undefined, this.$data, this.$props), this.stateCurrent + (this.showLessItems ? 3 : 5));
- },
- getItemIcon: function getItemIcon(icon) {
- var h = this.$createElement;
- var prefixCls = this.$props.prefixCls;
- var iconNode = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, icon, this.$props) || h('a', { 'class': prefixCls + '-item-link' });
- return iconNode;
- },
- getValidValue: function getValidValue(e) {
- var inputValue = e.target.value;
- var allPages = calculatePage(undefined, this.$data, this.$props);
- var stateCurrentInputValue = this.$data.stateCurrentInputValue;
- var value = void 0;
- if (inputValue === '') {
- value = inputValue;
- } else if (isNaN(Number(inputValue))) {
- value = stateCurrentInputValue;
- } else if (inputValue >= allPages) {
- value = allPages;
- } else {
- value = Number(inputValue);
- }
- return value;
- },
- isValid: function isValid(page) {
- return isInteger(page) && page !== this.stateCurrent;
- },
- shouldDisplayQuickJumper: function shouldDisplayQuickJumper() {
- var _$props = this.$props,
- showQuickJumper = _$props.showQuickJumper,
- pageSize = _$props.pageSize,
- total = _$props.total;
- if (total <= pageSize) {
- return false;
- }
- return showQuickJumper;
- },
- // calculatePage (p) {
- // let pageSize = p
- // if (typeof pageSize === 'undefined') {
- // pageSize = this.statePageSize
- // }
- // return Math.floor((this.total - 1) / pageSize) + 1
- // },
- handleKeyDown: function handleKeyDown(event) {
- if (event.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_UP || event.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_DOWN) {
- event.preventDefault();
- }
- },
- handleKeyUp: function handleKeyUp(e) {
- if (e.isComposing || e.target.composing) return;
- var value = this.getValidValue(e);
- var stateCurrentInputValue = this.stateCurrentInputValue;
- if (value !== stateCurrentInputValue) {
- this.setState({
- stateCurrentInputValue: value
- });
- }
- if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ENTER) {
- this.handleChange(value);
- } else if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_UP) {
- this.handleChange(value - 1);
- } else if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_DOWN) {
- this.handleChange(value + 1);
- }
- },
- changePageSize: function changePageSize(size) {
- var current = this.stateCurrent;
- var preCurrent = current;
- var newCurrent = calculatePage(size, this.$data, this.$props);
- current = current > newCurrent ? newCurrent : current;
- // fix the issue:
- // Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct.
- if (newCurrent === 0) {
- current = this.stateCurrent;
- }
- if (typeof size === 'number') {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'pageSize')) {
- this.setState({
- statePageSize: size
- });
- }
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
- this.setState({
- stateCurrent: current,
- stateCurrentInputValue: current
- });
- }
- }
- this.$emit('update:pageSize', size);
- this.$emit('showSizeChange', current, size);
- if (current !== preCurrent) {
- this.$emit('change.current', current, size);
- }
- },
- handleChange: function handleChange(p) {
- var disabled = this.$props.disabled;
- var page = p;
- if (this.isValid(page) && !disabled) {
- var currentPage = calculatePage(undefined, this.$data, this.$props);
- if (page > currentPage) {
- page = currentPage;
- } else if (page < 1) {
- page = 1;
- }
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
- this.setState({
- stateCurrent: page,
- stateCurrentInputValue: page
- });
- }
- // this.$emit('input', page)
- this.$emit('change.current', page, this.statePageSize);
- this.$emit('change', page, this.statePageSize);
- return page;
- }
- return this.stateCurrent;
- },
- prev: function prev() {
- if (this.hasPrev()) {
- this.handleChange(this.stateCurrent - 1);
- }
- },
- next: function next() {
- if (this.hasNext()) {
- this.handleChange(this.stateCurrent + 1);
- }
- },
- jumpPrev: function jumpPrev() {
- this.handleChange(this.getJumpPrevPage());
- },
- jumpNext: function jumpNext() {
- this.handleChange(this.getJumpNextPage());
- },
- hasPrev: function hasPrev() {
- return this.stateCurrent > 1;
- },
- hasNext: function hasNext() {
- return this.stateCurrent < calculatePage(undefined, this.$data, this.$props);
- },
- runIfEnter: function runIfEnter(event, callback) {
- if (event.key === 'Enter' || event.charCode === 13) {
- for (var _len = arguments.length, restParams = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- restParams[_key - 2] = arguments[_key];
- }
- callback.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(restParams));
- }
- },
- runIfEnterPrev: function runIfEnterPrev(event) {
- this.runIfEnter(event, this.prev);
- },
- runIfEnterNext: function runIfEnterNext(event) {
- this.runIfEnter(event, this.next);
- },
- runIfEnterJumpPrev: function runIfEnterJumpPrev(event) {
- this.runIfEnter(event, this.jumpPrev);
- },
- runIfEnterJumpNext: function runIfEnterJumpNext(event) {
- this.runIfEnter(event, this.jumpNext);
- },
- handleGoTO: function handleGoTO(event) {
- if (event.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ENTER || event.type === 'click') {
- this.handleChange(this.stateCurrentInputValue);
- }
- }
- },
- render: function render() {
- var _ref;
- var h = arguments[0];
- var _$props2 = this.$props,
- prefixCls = _$props2.prefixCls,
- disabled = _$props2.disabled;
- // When hideOnSinglePage is true and there is only 1 page, hide the pager
- if (this.hideOnSinglePage === true && this.total <= this.statePageSize) {
- return null;
- }
- var props = this.$props;
- var locale = this.locale;
- var allPages = calculatePage(undefined, this.$data, this.$props);
- var pagerList = [];
- var jumpPrev = null;
- var jumpNext = null;
- var firstPager = null;
- var lastPager = null;
- var gotoButton = null;
- var goButton = this.showQuickJumper && this.showQuickJumper.goButton;
- var pageBufferSize = this.showLessItems ? 1 : 2;
- var stateCurrent = this.stateCurrent,
- statePageSize = this.statePageSize;
- var prevPage = stateCurrent - 1 > 0 ? stateCurrent - 1 : 0;
- var nextPage = stateCurrent + 1 < allPages ? stateCurrent + 1 : allPages;
- if (this.simple) {
- if (goButton) {
- if (typeof goButton === 'boolean') {
- gotoButton = h(
- 'button',
- {
- attrs: { type: 'button' },
- on: {
- 'click': this.handleGoTO,
- 'keyup': this.handleGoTO
- }
- },
- [locale.jump_to_confirm]
- );
- } else {
- gotoButton = h(
- 'span',
- {
- on: {
- 'click': this.handleGoTO,
- 'keyup': this.handleGoTO
- }
- },
- [goButton]
- );
- }
- gotoButton = h(
- 'li',
- {
- attrs: {
- title: this.showTitle ? '' + locale.jump_to + this.stateCurrent + '/' + allPages : null
- },
- 'class': prefixCls + '-simple-pager'
- },
- [gotoButton]
- );
- }
- var hasPrev = this.hasPrev();
- var hasNext = this.hasNext();
- return h(
- 'ul',
- { 'class': prefixCls + ' ' + prefixCls + '-simple' },
- [h(
- 'li',
- {
- attrs: {
- title: this.showTitle ? locale.prev_page : null,
- tabIndex: hasPrev ? 0 : null,
- 'aria-disabled': !this.hasPrev()
- },
- on: {
- 'click': this.prev,
- 'keypress': this.runIfEnterPrev
- },
- 'class': (hasPrev ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev' },
- [this.itemRender(prevPage, 'prev', this.getItemIcon('prevIcon'))]
- ), h(
- 'li',
- {
- attrs: {
- title: this.showTitle ? stateCurrent + '/' + allPages : null
- },
- 'class': prefixCls + '-simple-pager'
- },
- [h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{
- attrs: {
- type: 'text',
- size: '3'
- },
- domProps: {
- 'value': this.stateCurrentInputValue
- },
- on: {
- 'keydown': this.handleKeyDown,
- 'keyup': this.handleKeyUp,
- 'input': this.handleKeyUp
- }
- }, {
- directives: [{
- name: 'ant-input'
- }]
- }])), h(
- 'span',
- { 'class': prefixCls + '-slash' },
- ['\uFF0F']
- ), allPages]
- ), h(
- 'li',
- {
- attrs: {
- title: this.showTitle ? locale.next_page : null,
- tabIndex: this.hasNext ? 0 : null,
- 'aria-disabled': !this.hasNext()
- },
- on: {
- 'click': this.next,
- 'keypress': this.runIfEnterNext
- },
- 'class': (hasNext ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next' },
- [this.itemRender(nextPage, 'next', this.getItemIcon('nextIcon'))]
- ), gotoButton]
- );
- }
- if (allPages <= 5 + pageBufferSize * 2) {
- var pagerProps = {
- props: {
- locale: locale,
- rootPrefixCls: prefixCls,
- showTitle: props.showTitle,
- itemRender: props.itemRender
- },
- on: {
- click: this.handleChange,
- keypress: this.runIfEnter
- }
- };
- if (!allPages) {
- pagerList.push(h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([pagerProps, { key: 'noPager', attrs: { page: allPages },
- 'class': prefixCls + '-disabled' }])));
- }
- for (var i = 1; i <= allPages; i++) {
- var active = stateCurrent === i;
- pagerList.push(h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([pagerProps, { key: i, attrs: { page: i, active: active }
- }])));
- }
- } else {
- var prevItemTitle = this.showLessItems ? locale.prev_3 : locale.prev_5;
- var nextItemTitle = this.showLessItems ? locale.next_3 : locale.next_5;
- if (this.showPrevNextJumpers) {
- var jumpPrevClassString = prefixCls + '-jump-prev';
- if (props.jumpPrevIcon) {
- jumpPrevClassString += ' ' + prefixCls + '-jump-prev-custom-icon';
- }
- jumpPrev = h(
- 'li',
- {
- attrs: {
- title: this.showTitle ? prevItemTitle : null,
- tabIndex: '0'
- },
- key: 'prev',
- on: {
- 'click': this.jumpPrev,
- 'keypress': this.runIfEnterJumpPrev
- },
- 'class': jumpPrevClassString
- },
- [this.itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon('jumpPrevIcon'))]
- );
- var jumpNextClassString = prefixCls + '-jump-next';
- if (props.jumpNextIcon) {
- jumpNextClassString += ' ' + prefixCls + '-jump-next-custom-icon';
- }
- jumpNext = h(
- 'li',
- {
- attrs: {
- title: this.showTitle ? nextItemTitle : null,
- tabIndex: '0'
- },
- key: 'next', on: {
- 'click': this.jumpNext,
- 'keypress': this.runIfEnterJumpNext
- },
- 'class': jumpNextClassString
- },
- [this.itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon('jumpNextIcon'))]
- );
- }
- lastPager = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: {
- locale: locale,
- last: true,
- rootPrefixCls: prefixCls,
- page: allPages,
- active: false,
- showTitle: this.showTitle,
- itemRender: this.itemRender
- },
- on: {
- 'click': this.handleChange,
- 'keypress': this.runIfEnter
- },
- key: allPages });
- firstPager = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: {
- locale: locale,
- rootPrefixCls: prefixCls,
- page: 1,
- active: false,
- showTitle: this.showTitle,
- itemRender: this.itemRender
- },
- on: {
- 'click': this.handleChange,
- 'keypress': this.runIfEnter
- },
- key: 1 });
- var left = Math.max(1, stateCurrent - pageBufferSize);
- var right = Math.min(stateCurrent + pageBufferSize, allPages);
- if (stateCurrent - 1 <= pageBufferSize) {
- right = 1 + pageBufferSize * 2;
- }
- if (allPages - stateCurrent <= pageBufferSize) {
- left = allPages - pageBufferSize * 2;
- }
- for (var _i = left; _i <= right; _i++) {
- var _active = stateCurrent === _i;
- pagerList.push(h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: {
- locale: locale,
- rootPrefixCls: prefixCls,
- page: _i,
- active: _active,
- showTitle: this.showTitle,
- itemRender: this.itemRender
- },
- on: {
- 'click': this.handleChange,
- 'keypress': this.runIfEnter
- },
- key: _i }));
- }
- if (stateCurrent - 1 >= pageBufferSize * 2 && stateCurrent !== 1 + 2) {
- pagerList[0] = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: {
- locale: locale,
- rootPrefixCls: prefixCls,
- page: left,
- active: false,
- showTitle: this.showTitle,
- itemRender: this.itemRender
- },
- on: {
- 'click': this.handleChange,
- 'keypress': this.runIfEnter
- },
- key: left, 'class': prefixCls + '-item-after-jump-prev' });
- pagerList.unshift(jumpPrev);
- }
- if (allPages - stateCurrent >= pageBufferSize * 2 && stateCurrent !== allPages - 2) {
- pagerList[pagerList.length - 1] = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: {
- locale: locale,
- rootPrefixCls: prefixCls,
- page: right,
- active: false,
- showTitle: this.showTitle,
- itemRender: this.itemRender
- },
- on: {
- 'click': this.handleChange,
- 'keypress': this.runIfEnter
- },
- key: right, 'class': prefixCls + '-item-before-jump-next' });
- pagerList.push(jumpNext);
- }
- if (left !== 1) {
- pagerList.unshift(firstPager);
- }
- if (right !== allPages) {
- pagerList.push(lastPager);
- }
- }
- var totalText = null;
- if (this.showTotal) {
- totalText = h(
- 'li',
- { 'class': prefixCls + '-total-text' },
- [this.showTotal(this.total, [this.total === 0 ? 0 : (stateCurrent - 1) * statePageSize + 1, stateCurrent * statePageSize > this.total ? this.total : stateCurrent * statePageSize])]
- );
- }
- var prevDisabled = !this.hasPrev() || !allPages;
- var nextDisabled = !this.hasNext() || !allPages;
- var buildOptionText = this.buildOptionText || this.$scopedSlots.buildOptionText;
- return h(
- 'ul',
- {
- 'class': (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-disabled', disabled), _ref),
- attrs: { unselectable: 'unselectable'
- },
- ref: 'paginationNode'
- },
- [totalText, h(
- 'li',
- {
- attrs: {
- title: this.showTitle ? locale.prev_page : null,
- tabIndex: prevDisabled ? null : 0,
- 'aria-disabled': prevDisabled
- },
- on: {
- 'click': this.prev,
- 'keypress': this.runIfEnterPrev
- },
- 'class': (!prevDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev' },
- [this.itemRender(prevPage, 'prev', this.getItemIcon('prevIcon'))]
- ), pagerList, h(
- 'li',
- {
- attrs: {
- title: this.showTitle ? locale.next_page : null,
- tabIndex: nextDisabled ? null : 0,
- 'aria-disabled': nextDisabled
- },
- on: {
- 'click': this.next,
- 'keypress': this.runIfEnterNext
- },
- 'class': (!nextDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next' },
- [this.itemRender(nextPage, 'next', this.getItemIcon('nextIcon'))]
- ), h(_Options__WEBPACK_IMPORTED_MODULE_7__["default"], {
- attrs: {
- disabled: disabled,
- locale: locale,
- rootPrefixCls: prefixCls,
- selectComponentClass: this.selectComponentClass,
- selectPrefixCls: this.selectPrefixCls,
- changeSize: this.showSizeChanger ? this.changePageSize : null,
- current: stateCurrent,
- pageSize: statePageSize,
- pageSizeOptions: this.pageSizeOptions,
- buildOptionText: buildOptionText || null,
- quickGo: this.shouldDisplayQuickJumper() ? this.handleChange : null,
- goButton: goButton
- }
- })]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-pagination/index.js":
- /*!*******************************************!*\
- !*** ./components/vc-pagination/index.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Pagination */ "./components/vc-pagination/Pagination.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]; });
- // based on rc-pagination 1.20.14
- /***/ }),
- /***/ "./components/vc-pagination/locale/en_US.js":
- /*!**************************************************!*\
- !*** ./components/vc-pagination/locale/en_US.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- // Options.jsx
- items_per_page: '/ page',
- jump_to: 'Go to',
- jump_to_confirm: 'confirm',
- page: '',
- // Pagination.jsx
- prev_page: 'Previous Page',
- next_page: 'Next Page',
- prev_5: 'Previous 5 Pages',
- next_5: 'Next 5 Pages',
- prev_3: 'Previous 3 Pages',
- next_3: 'Next 3 Pages'
- });
- /***/ }),
- /***/ "./components/vc-pagination/locale/zh_CN.js":
- /*!**************************************************!*\
- !*** ./components/vc-pagination/locale/zh_CN.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- // Options.jsx
- items_per_page: '条/页',
- jump_to: '跳至',
- jump_to_confirm: '确定',
- page: '页',
- // Pagination.jsx
- prev_page: '上一页',
- next_page: '下一页',
- prev_5: '向前 5 页',
- next_5: '向后 5 页',
- prev_3: '向前 3 页',
- next_3: '向后 3 页'
- });
- /***/ }),
- /***/ "./components/vc-progress/index.js":
- /*!*****************************************!*\
- !*** ./components/vc-progress/index.js ***!
- \*****************************************/
- /*! exports provided: Line, Circle, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/ */ "./components/vc-progress/src/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Line", function() { return _src___WEBPACK_IMPORTED_MODULE_0__["Line"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Circle", function() { return _src___WEBPACK_IMPORTED_MODULE_0__["Circle"]; });
- // based on rc-progress 2.5.2
- /* harmony default export */ __webpack_exports__["default"] = (_src___WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-progress/src/Circle.js":
- /*!**********************************************!*\
- !*** ./components/vc-progress/src/Circle.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _enhancer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./enhancer */ "./components/vc-progress/src/enhancer.js");
- /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./types */ "./components/vc-progress/src/types.js");
- var circlePropTypes = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _types__WEBPACK_IMPORTED_MODULE_8__["propTypes"], {
- gapPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['top', 'bottom', 'left', 'right']),
- gapDegree: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool])
- });
- var circleDefaultProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _types__WEBPACK_IMPORTED_MODULE_8__["defaultProps"], {
- gapPosition: 'top'
- });
- vue__WEBPACK_IMPORTED_MODULE_3___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_4___default.a, { name: 'ant-ref' });
- var gradientSeed = 0;
- function stripPercentToNumber(percent) {
- return +percent.replace('%', '');
- }
- function toArray(symArray) {
- return Array.isArray(symArray) ? symArray : [symArray];
- }
- function getPathStyles(offset, percent, strokeColor, strokeWidth) {
- var gapDegree = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
- var gapPosition = arguments[5];
- var radius = 50 - strokeWidth / 2;
- var beginPositionX = 0;
- var beginPositionY = -radius;
- var endPositionX = 0;
- var endPositionY = -2 * radius;
- switch (gapPosition) {
- case 'left':
- beginPositionX = -radius;
- beginPositionY = 0;
- endPositionX = 2 * radius;
- endPositionY = 0;
- break;
- case 'right':
- beginPositionX = radius;
- beginPositionY = 0;
- endPositionX = -2 * radius;
- endPositionY = 0;
- break;
- case 'bottom':
- beginPositionY = radius;
- endPositionY = 2 * radius;
- break;
- default:
- }
- var pathString = 'M 50,50 m ' + beginPositionX + ',' + beginPositionY + '\n a ' + radius + ',' + radius + ' 0 1 1 ' + endPositionX + ',' + -endPositionY + '\n a ' + radius + ',' + radius + ' 0 1 1 ' + -endPositionX + ',' + endPositionY;
- var len = Math.PI * 2 * radius;
- var pathStyle = {
- stroke: strokeColor,
- strokeDasharray: percent / 100 * (len - gapDegree) + 'px ' + len + 'px',
- strokeDashoffset: '-' + (gapDegree / 2 + offset / 100 * (len - gapDegree)) + 'px',
- transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s' // eslint-disable-line
- };
- return {
- pathString: pathString,
- pathStyle: pathStyle
- };
- }
- var Circle = {
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(circlePropTypes, circleDefaultProps),
- created: function created() {
- this.paths = {};
- this.gradientId = gradientSeed;
- gradientSeed += 1;
- },
- methods: {
- getStokeList: function getStokeList() {
- var _this = this;
- var h = this.$createElement;
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- percent = _$props.percent,
- strokeColor = _$props.strokeColor,
- strokeWidth = _$props.strokeWidth,
- strokeLinecap = _$props.strokeLinecap,
- gapDegree = _$props.gapDegree,
- gapPosition = _$props.gapPosition;
- var percentList = toArray(percent);
- var strokeColorList = toArray(strokeColor);
- var stackPtg = 0;
- return percentList.map(function (ptg, index) {
- var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];
- var stroke = Object.prototype.toString.call(color) === '[object Object]' ? 'url(#' + prefixCls + '-gradient-' + _this.gradientId + ')' : '';
- var _getPathStyles = getPathStyles(stackPtg, ptg, color, strokeWidth, gapDegree, gapPosition),
- pathString = _getPathStyles.pathString,
- pathStyle = _getPathStyles.pathStyle;
- stackPtg += ptg;
- var pathProps = {
- key: index,
- attrs: {
- d: pathString,
- stroke: stroke,
- 'stroke-linecap': strokeLinecap,
- 'stroke-width': strokeWidth,
- opacity: ptg === 0 ? 0 : 1,
- 'fill-opacity': '0'
- },
- 'class': prefixCls + '-circle-path',
- style: pathStyle,
- directives: [{
- name: 'ant-ref',
- value: function value(c) {
- _this.paths[index] = c;
- }
- }]
- };
- return h('path', pathProps);
- });
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$props2 = this.$props,
- prefixCls = _$props2.prefixCls,
- strokeWidth = _$props2.strokeWidth,
- trailWidth = _$props2.trailWidth,
- gapDegree = _$props2.gapDegree,
- gapPosition = _$props2.gapPosition,
- trailColor = _$props2.trailColor,
- strokeLinecap = _$props2.strokeLinecap,
- strokeColor = _$props2.strokeColor,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_$props2, ['prefixCls', 'strokeWidth', 'trailWidth', 'gapDegree', 'gapPosition', 'trailColor', 'strokeLinecap', 'strokeColor']);
- var _getPathStyles2 = getPathStyles(0, 100, trailColor, strokeWidth, gapDegree, gapPosition),
- pathString = _getPathStyles2.pathString,
- pathStyle = _getPathStyles2.pathStyle;
- delete restProps.percent;
- var strokeColorList = toArray(strokeColor);
- var gradient = strokeColorList.find(function (color) {
- return Object.prototype.toString.call(color) === '[object Object]';
- });
- var pathFirst = {
- attrs: {
- d: pathString,
- stroke: trailColor,
- 'stroke-linecap': strokeLinecap,
- 'stroke-width': trailWidth || strokeWidth,
- 'fill-opacity': '0'
- },
- 'class': prefixCls + '-circle-trail',
- style: pathStyle
- };
- return h(
- 'svg',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': prefixCls + '-circle', attrs: { viewBox: '0 0 100 100' }
- }, restProps]),
- [gradient && h('defs', [h(
- 'linearGradient',
- {
- attrs: {
- id: prefixCls + '-gradient-' + this.gradientId,
- x1: '100%',
- y1: '0%',
- x2: '0%',
- y2: '0%'
- }
- },
- [Object.keys(gradient).sort(function (a, b) {
- return stripPercentToNumber(a) - stripPercentToNumber(b);
- }).map(function (key, index) {
- return h('stop', { key: index, attrs: { offset: key, 'stop-color': gradient[key] }
- });
- })]
- )]), h('path', pathFirst), this.getStokeList().reverse()]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Object(_enhancer__WEBPACK_IMPORTED_MODULE_7__["default"])(Circle));
- /***/ }),
- /***/ "./components/vc-progress/src/Line.js":
- /*!********************************************!*\
- !*** ./components/vc-progress/src/Line.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _enhancer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./enhancer */ "./components/vc-progress/src/enhancer.js");
- /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./types */ "./components/vc-progress/src/types.js");
- vue__WEBPACK_IMPORTED_MODULE_2___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_3___default.a, { name: 'ant-ref' });
- var Line = {
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(_types__WEBPACK_IMPORTED_MODULE_6__["propTypes"], _types__WEBPACK_IMPORTED_MODULE_6__["defaultProps"]),
- created: function created() {
- this.paths = {};
- },
- render: function render() {
- var _this = this;
- var h = arguments[0];
- var _$props = this.$props,
- percent = _$props.percent,
- prefixCls = _$props.prefixCls,
- strokeColor = _$props.strokeColor,
- strokeLinecap = _$props.strokeLinecap,
- strokeWidth = _$props.strokeWidth,
- trailColor = _$props.trailColor,
- trailWidth = _$props.trailWidth,
- transition = _$props.transition,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_$props, ['percent', 'prefixCls', 'strokeColor', 'strokeLinecap', 'strokeWidth', 'trailColor', 'trailWidth', 'transition']);
- delete restProps.gapPosition;
- var percentList = Array.isArray(percent) ? percent : [percent];
- var strokeColorList = Array.isArray(strokeColor) ? strokeColor : [strokeColor];
- var center = strokeWidth / 2;
- var right = 100 - strokeWidth / 2;
- var pathString = 'M ' + (strokeLinecap === 'round' ? center : 0) + ',' + center + '\n L ' + (strokeLinecap === 'round' ? right : 100) + ',' + center;
- var viewBoxString = '0 0 100 ' + strokeWidth;
- var stackPtg = 0;
- var pathFirst = {
- attrs: {
- d: pathString,
- 'stroke-linecap': strokeLinecap,
- stroke: trailColor,
- 'stroke-width': trailWidth || strokeWidth,
- 'fill-opacity': '0'
- },
- 'class': prefixCls + '-line-trail'
- };
- return h(
- 'svg',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- 'class': prefixCls + '-line',
- attrs: { viewBox: viewBoxString,
- preserveAspectRatio: 'none'
- }
- }, restProps]),
- [h('path', pathFirst), percentList.map(function (ptg, index) {
- var pathStyle = {
- strokeDasharray: ptg + 'px, 100px',
- strokeDashoffset: '-' + stackPtg + 'px',
- transition: transition || 'stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear'
- };
- var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];
- stackPtg += ptg;
- var pathProps = {
- key: index,
- attrs: {
- d: pathString,
- 'stroke-linecap': strokeLinecap,
- stroke: color,
- 'stroke-width': strokeWidth,
- 'fill-opacity': '0'
- },
- 'class': prefixCls + '-line-path',
- style: pathStyle,
- directives: [{
- name: 'ant-ref',
- value: function value(c) {
- _this.paths[index] = c;
- }
- }]
- };
- return h('path', pathProps);
- })]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Object(_enhancer__WEBPACK_IMPORTED_MODULE_5__["default"])(Line));
- /***/ }),
- /***/ "./components/vc-progress/src/enhancer.js":
- /*!************************************************!*\
- !*** ./components/vc-progress/src/enhancer.js ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- function enhancer(Component) {
- return {
- mixins: [Component],
- updated: function updated() {
- var _this = this;
- var now = Date.now();
- var updated = false;
- Object.keys(this.paths).forEach(function (key) {
- var path = _this.paths[key];
- if (!path) {
- return;
- }
- updated = true;
- var pathStyle = path.style;
- pathStyle.transitionDuration = '.3s, .3s, .3s, .06s';
- if (_this.prevTimeStamp && now - _this.prevTimeStamp < 100) {
- pathStyle.transitionDuration = '0s, 0s';
- }
- });
- if (updated) {
- this.prevTimeStamp = Date.now();
- }
- }
- };
- }
- /* harmony default export */ __webpack_exports__["default"] = (enhancer);
- /***/ }),
- /***/ "./components/vc-progress/src/index.js":
- /*!*********************************************!*\
- !*** ./components/vc-progress/src/index.js ***!
- \*********************************************/
- /*! exports provided: Line, Circle, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Line__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Line */ "./components/vc-progress/src/Line.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Line", function() { return _Line__WEBPACK_IMPORTED_MODULE_0__["default"]; });
- /* harmony import */ var _Circle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Circle */ "./components/vc-progress/src/Circle.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Circle", function() { return _Circle__WEBPACK_IMPORTED_MODULE_1__["default"]; });
- /* harmony default export */ __webpack_exports__["default"] = ({
- Line: _Line__WEBPACK_IMPORTED_MODULE_0__["default"],
- Circle: _Circle__WEBPACK_IMPORTED_MODULE_1__["default"]
- });
- /***/ }),
- /***/ "./components/vc-progress/src/types.js":
- /*!*********************************************!*\
- !*** ./components/vc-progress/src/types.js ***!
- \*********************************************/
- /*! exports provided: defaultProps, propTypes */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultProps", function() { return defaultProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "propTypes", function() { return propTypes; });
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- var defaultProps = {
- // className: '',
- percent: 0,
- prefixCls: 'rc-progress',
- strokeColor: '#2db7f5',
- strokeLinecap: 'round',
- strokeWidth: 1,
- // style: {},
- trailColor: '#D9D9D9',
- trailWidth: 1
- };
- var mixedType = _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string]);
- var propTypes = {
- // className: PropTypes.string,
- percent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([mixedType, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(mixedType)]),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- strokeColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object])), _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]),
- strokeLinecap: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['butt', 'round', 'square']),
- strokeWidth: mixedType,
- // style: PropTypes.object,
- trailColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- trailWidth: mixedType
- };
- /***/ }),
- /***/ "./components/vc-rate/index.js":
- /*!*************************************!*\
- !*** ./components/vc-rate/index.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/ */ "./components/vc-rate/src/index.js");
- // based on rc-rate 2.5.0
- /* harmony default export */ __webpack_exports__["default"] = (_src___WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-rate/src/Rate.jsx":
- /*!*****************************************!*\
- !*** ./components/vc-rate/src/Rate.jsx ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-rate/src/util.js");
- /* harmony import */ var _Star__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Star */ "./components/vc-rate/src/Star.jsx");
- var rateProps = {
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- count: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- allowHalf: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- character: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- characterRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
- };
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Rate',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- model: {
- prop: 'value',
- event: 'change'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(rateProps, {
- defaultValue: 0,
- count: 5,
- allowHalf: false,
- allowClear: true,
- prefixCls: 'rc-rate',
- tabIndex: 0,
- character: '★'
- }),
- data: function data() {
- var value = this.value;
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
- value = this.defaultValue;
- }
- return {
- sValue: value,
- focused: false,
- cleanedValue: null,
- hoverValue: undefined
- };
- },
- watch: {
- value: function value(val) {
- this.setState({
- sValue: val
- });
- }
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.autoFocus && !_this.disabled) {
- _this.focus();
- }
- });
- },
- methods: {
- onHover: function onHover(event, index) {
- var hoverValue = this.getStarValue(index, event.pageX);
- var cleanedValue = this.cleanedValue;
- if (hoverValue !== cleanedValue) {
- this.setState({
- hoverValue: hoverValue,
- cleanedValue: null
- });
- }
- this.$emit('hoverChange', hoverValue);
- },
- onMouseLeave: function onMouseLeave() {
- this.setState({
- hoverValue: undefined,
- cleanedValue: null
- });
- this.$emit('hoverChange', undefined);
- },
- onClick: function onClick(event, index) {
- var allowClear = this.allowClear,
- value = this.sValue;
- var newValue = this.getStarValue(index, event.pageX);
- var isReset = false;
- if (allowClear) {
- isReset = newValue === value;
- }
- this.onMouseLeave(true);
- this.changeValue(isReset ? 0 : newValue);
- this.setState({
- cleanedValue: isReset ? newValue : null
- });
- },
- onFocus: function onFocus() {
- this.setState({
- focused: true
- });
- this.$emit('focus');
- },
- onBlur: function onBlur() {
- this.setState({
- focused: false
- });
- this.$emit('blur');
- },
- onKeyDown: function onKeyDown(event) {
- var keyCode = event.keyCode;
- var count = this.count,
- allowHalf = this.allowHalf;
- var sValue = this.sValue;
- if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].RIGHT && sValue < count) {
- if (allowHalf) {
- sValue += 0.5;
- } else {
- sValue += 1;
- }
- this.changeValue(sValue);
- event.preventDefault();
- } else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].LEFT && sValue > 0) {
- if (allowHalf) {
- sValue -= 0.5;
- } else {
- sValue -= 1;
- }
- this.changeValue(sValue);
- event.preventDefault();
- }
- this.$emit('keydown', event);
- },
- getStarDOM: function getStarDOM(index) {
- return this.$refs['stars' + index].$el;
- },
- getStarValue: function getStarValue(index, x) {
- var value = index + 1;
- if (this.allowHalf) {
- var starEle = this.getStarDOM(index);
- var leftDis = Object(_util__WEBPACK_IMPORTED_MODULE_5__["getOffsetLeft"])(starEle);
- var width = starEle.clientWidth;
- if (x - leftDis < width / 2) {
- value -= 0.5;
- }
- }
- return value;
- },
- focus: function focus() {
- if (!this.disabled) {
- this.$refs.rateRef.focus();
- }
- },
- blur: function blur() {
- if (!this.disabled) {
- this.$refs.rateRef.blur();
- }
- },
- changeValue: function changeValue(value) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
- this.setState({
- sValue: value
- });
- }
- this.$emit('change', value);
- }
- },
- render: function render() {
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
- count = _getOptionProps.count,
- allowHalf = _getOptionProps.allowHalf,
- prefixCls = _getOptionProps.prefixCls,
- disabled = _getOptionProps.disabled,
- tabIndex = _getOptionProps.tabIndex;
- var sValue = this.sValue,
- hoverValue = this.hoverValue,
- focused = this.focused;
- var stars = [];
- var disabledClass = disabled ? prefixCls + '-disabled' : '';
- var character = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'character');
- var characterRender = this.characterRender || this.$scopedSlots.characterRender;
- for (var index = 0; index < count; index++) {
- var starProps = {
- props: {
- index: index,
- count: count,
- disabled: disabled,
- prefixCls: prefixCls + '-star',
- allowHalf: allowHalf,
- value: hoverValue === undefined ? sValue : hoverValue,
- character: character,
- characterRender: characterRender,
- focused: focused
- },
- on: {
- click: this.onClick,
- hover: this.onHover
- },
- key: index,
- ref: 'stars' + index
- };
- stars.push(h(_Star__WEBPACK_IMPORTED_MODULE_6__["default"], starProps));
- }
- return h(
- 'ul',
- {
- 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, disabledClass),
- on: {
- 'mouseleave': disabled ? noop : this.onMouseLeave,
- 'focus': disabled ? noop : this.onFocus,
- 'blur': disabled ? noop : this.onBlur,
- 'keydown': disabled ? noop : this.onKeyDown
- },
- attrs: {
- tabIndex: disabled ? -1 : tabIndex,
- role: 'radiogroup'
- },
- ref: 'rateRef' },
- [stars]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-rate/src/Star.jsx":
- /*!*****************************************!*\
- !*** ./components/vc-rate/src/Star.jsx ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Star',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
- props: {
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- index: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- allowHalf: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- character: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- characterRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- focused: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- count: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number
- },
- methods: {
- onHover: function onHover(e) {
- var index = this.index;
- this.$emit('hover', e, index);
- },
- onClick: function onClick(e) {
- var index = this.index;
- this.$emit('click', e, index);
- },
- onKeyDown: function onKeyDown(e) {
- var index = this.$props.index;
- if (e.keyCode === 13) {
- this.__emit('click', e, index);
- }
- },
- getClassName: function getClassName() {
- var prefixCls = this.prefixCls,
- index = this.index,
- value = this.value,
- allowHalf = this.allowHalf,
- focused = this.focused;
- var starValue = index + 1;
- var className = prefixCls;
- if (value === 0 && index === 0 && focused) {
- className += ' ' + prefixCls + '-focused';
- } else if (allowHalf && value + 0.5 === starValue) {
- className += ' ' + prefixCls + '-half ' + prefixCls + '-active';
- if (focused) {
- className += ' ' + prefixCls + '-focused';
- }
- } else {
- className += starValue <= value ? ' ' + prefixCls + '-full' : ' ' + prefixCls + '-zero';
- if (starValue === value && focused) {
- className += ' ' + prefixCls + '-focused';
- }
- }
- return className;
- }
- },
- render: function render() {
- var h = arguments[0];
- var onHover = this.onHover,
- onClick = this.onClick,
- onKeyDown = this.onKeyDown,
- disabled = this.disabled,
- prefixCls = this.prefixCls,
- characterRender = this.characterRender,
- index = this.index,
- count = this.count,
- value = this.value;
- var character = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'character');
- var star = h(
- 'li',
- { 'class': this.getClassName() },
- [h(
- 'div',
- {
- on: {
- 'click': disabled ? noop : onClick,
- 'keydown': disabled ? noop : onKeyDown,
- 'mousemove': disabled ? noop : onHover
- },
- attrs: {
- role: 'radio',
- 'aria-checked': value > index ? 'true' : 'false',
- 'aria-posinset': index + 1,
- 'aria-setsize': count,
- tabIndex: 0
- }
- },
- [h(
- 'div',
- { 'class': prefixCls + '-first' },
- [character]
- ), h(
- 'div',
- { 'class': prefixCls + '-second' },
- [character]
- )]
- )]
- );
- if (characterRender) {
- star = characterRender(star, this.$props);
- }
- return star;
- }
- });
- /***/ }),
- /***/ "./components/vc-rate/src/index.js":
- /*!*****************************************!*\
- !*** ./components/vc-rate/src/index.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Rate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Rate */ "./components/vc-rate/src/Rate.jsx");
- /* harmony default export */ __webpack_exports__["default"] = (_Rate__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-rate/src/util.js":
- /*!****************************************!*\
- !*** ./components/vc-rate/src/util.js ***!
- \****************************************/
- /*! exports provided: getOffsetLeft */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOffsetLeft", function() { return getOffsetLeft; });
- function getScroll(w, top) {
- var ret = top ? w.pageYOffset : w.pageXOffset;
- var method = top ? 'scrollTop' : 'scrollLeft';
- if (typeof ret !== 'number') {
- var d = w.document;
- // ie6,7,8 standard mode
- ret = d.documentElement[method];
- if (typeof ret !== 'number') {
- // quirks mode
- ret = d.body[method];
- }
- }
- return ret;
- }
- function getClientPosition(elem) {
- var x = void 0;
- var y = void 0;
- var doc = elem.ownerDocument;
- var body = doc.body;
- var docElem = doc && doc.documentElement;
- var box = elem.getBoundingClientRect();
- x = box.left;
- y = box.top;
- x -= docElem.clientLeft || body.clientLeft || 0;
- y -= docElem.clientTop || body.clientTop || 0;
- return {
- left: x,
- top: y
- };
- }
- function getOffsetLeft(el) {
- var pos = getClientPosition(el);
- var doc = el.ownerDocument;
- var w = doc.defaultView || doc.parentWindow;
- pos.left += getScroll(w);
- return pos.left;
- }
- /***/ }),
- /***/ "./components/vc-resize-observer/index.jsx":
- /*!*************************************************!*\
- !*** ./components/vc-resize-observer/index.jsx ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
- // based on rc-resize-observer 0.1.3
- // Still need to be compatible with React 15, we use class component here
- var VueResizeObserver = {
- name: 'ResizeObserver',
- props: {
- disabled: Boolean
- },
- data: function data() {
- this.currentElement = null;
- this.resizeObserver = null;
- return {
- width: 0,
- height: 0
- };
- },
- mounted: function mounted() {
- this.onComponentUpdated();
- },
- updated: function updated() {
- this.onComponentUpdated();
- },
- beforeDestroy: function beforeDestroy() {
- this.destroyObserver();
- },
- methods: {
- onComponentUpdated: function onComponentUpdated() {
- var disabled = this.$props.disabled;
- // Unregister if disabled
- if (disabled) {
- this.destroyObserver();
- return;
- }
- // Unregister if element changed
- var element = this.$el;
- var elementChanged = element !== this.currentElement;
- if (elementChanged) {
- this.destroyObserver();
- this.currentElement = element;
- }
- if (!this.resizeObserver && element) {
- this.resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__["default"](this.onResize);
- this.resizeObserver.observe(element);
- }
- },
- onResize: function onResize(entries) {
- var target = entries[0].target;
- var _target$getBoundingCl = target.getBoundingClientRect(),
- width = _target$getBoundingCl.width,
- height = _target$getBoundingCl.height;
- /**
- * Resize observer trigger when content size changed.
- * In most case we just care about element size,
- * let's use `boundary` instead of `contentRect` here to avoid shaking.
- */
- var fixedWidth = Math.floor(width);
- var fixedHeight = Math.floor(height);
- if (this.width !== fixedWidth || this.height !== fixedHeight) {
- var size = { width: fixedWidth, height: fixedHeight };
- this.width = fixedWidth;
- this.height = fixedHeight;
- this.$emit('resize', size);
- }
- },
- destroyObserver: function destroyObserver() {
- if (this.resizeObserver) {
- this.resizeObserver.disconnect();
- this.resizeObserver = null;
- }
- }
- },
- render: function render() {
- return this.$slots['default'][0];
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (VueResizeObserver);
- /***/ }),
- /***/ "./components/vc-select/DropdownMenu.jsx":
- /*!***********************************************!*\
- !*** ./components/vc-select/DropdownMenu.jsx ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
- /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-select/util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'DropdownMenu',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
- props: {
- ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- // onPopupFocus: PropTypes.func,
- // onPopupScroll: PropTypes.func,
- // onMenuDeSelect: PropTypes.func,
- // onMenuSelect: PropTypes.func,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- menuItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- inputValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- backfillValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- firstActiveValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
- },
- watch: {
- visible: function visible(val) {
- var _this = this;
- if (!val) {
- this.lastVisible = val;
- } else {
- this.$nextTick(function () {
- _this.scrollActiveItemToView();
- });
- }
- }
- },
- created: function created() {
- this.rafInstance = null;
- this.lastInputValue = this.$props.inputValue;
- this.lastVisible = false;
- },
- mounted: function mounted() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.scrollActiveItemToView();
- });
- this.lastVisible = this.$props.visible;
- },
- updated: function updated() {
- var props = this.$props;
- // if (!this.prevVisible && props.visible) {
- // this.$nextTick(() => {
- // this.scrollActiveItemToView();
- // });
- // }
- this.lastVisible = props.visible;
- this.lastInputValue = props.inputValue;
- this.prevVisible = this.visible;
- },
- beforeDestroy: function beforeDestroy() {
- if (this.rafInstance) {
- raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(this.rafInstance);
- }
- },
- methods: {
- scrollActiveItemToView: function scrollActiveItemToView() {
- var _this3 = this;
- // scroll into view
- var itemComponent = this.firstActiveItem && this.firstActiveItem.$el;
- var props = this.$props;
- var value = props.value,
- visible = props.visible,
- firstActiveValue = props.firstActiveValue;
- if (!itemComponent || !visible) {
- return;
- }
- var scrollIntoViewOpts = {
- onlyScrollIfNeeded: true
- };
- if ((!value || value.length === 0) && firstActiveValue) {
- scrollIntoViewOpts.alignWithTop = true;
- }
- // Delay to scroll since current frame item position is not ready when pre view is by filter
- // https://github.com/ant-design/ant-design/issues/11268#issuecomment-406634462
- this.rafInstance = raf__WEBPACK_IMPORTED_MODULE_1___default()(function () {
- Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_4__["default"])(itemComponent, _this3.$refs.menuRef.$el, scrollIntoViewOpts);
- });
- },
- renderMenu: function renderMenu() {
- var _this4 = this;
- var h = this.$createElement;
- var props = this.$props;
- var menuItems = props.menuItems,
- defaultActiveFirstOption = props.defaultActiveFirstOption,
- value = props.value,
- prefixCls = props.prefixCls,
- multiple = props.multiple,
- inputValue = props.inputValue,
- firstActiveValue = props.firstActiveValue,
- dropdownMenuStyle = props.dropdownMenuStyle,
- backfillValue = props.backfillValue,
- visible = props.visible;
- var menuItemSelectedIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'menuItemSelectedIcon');
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
- menuDeselect = _getListeners.menuDeselect,
- menuSelect = _getListeners.menuSelect,
- popupScroll = _getListeners.popupScroll;
- if (menuItems && menuItems.length) {
- var selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_5__["getSelectKeys"])(menuItems, value);
- var menuProps = {
- props: {
- multiple: multiple,
- itemIcon: multiple ? menuItemSelectedIcon : null,
- selectedKeys: selectedKeys,
- prefixCls: prefixCls + '-menu'
- },
- on: {},
- style: dropdownMenuStyle,
- ref: 'menuRef',
- attrs: {
- role: 'listbox'
- }
- };
- if (popupScroll) {
- menuProps.on.scroll = popupScroll;
- }
- if (multiple) {
- menuProps.on.deselect = menuDeselect;
- menuProps.on.select = menuSelect;
- } else {
- menuProps.on.click = menuSelect;
- }
- var activeKeyProps = {};
- var defaultActiveFirst = defaultActiveFirstOption;
- var clonedMenuItems = menuItems;
- if (selectedKeys.length || firstActiveValue) {
- if (props.visible && !this.lastVisible) {
- activeKeyProps.activeKey = selectedKeys[0] || firstActiveValue;
- } else if (!visible) {
- // Do not trigger auto active since we already have selectedKeys
- if (selectedKeys[0]) {
- defaultActiveFirst = false;
- }
- activeKeyProps.activeKey = undefined;
- }
- var foundFirst = false;
- // set firstActiveItem via cloning menus
- // for scroll into view
- var clone = function clone(item) {
- if (!foundFirst && selectedKeys.indexOf(item.key) !== -1 || !foundFirst && !selectedKeys.length && firstActiveValue.indexOf(item.key) !== -1) {
- foundFirst = true;
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(item, {
- directives: [{
- name: 'ant-ref',
- value: function value(ref) {
- _this4.firstActiveItem = ref;
- }
- }]
- });
- }
- return item;
- };
- clonedMenuItems = menuItems.map(function (item) {
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlotOptions"])(item).isMenuItemGroup) {
- var children = item.componentOptions.children.map(clone);
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(item, { children: children });
- }
- return clone(item);
- });
- } else {
- // Clear firstActiveItem when dropdown menu items was empty
- // Avoid `Unable to find node on an unmounted component`
- // https://github.com/ant-design/ant-design/issues/10774
- this.firstActiveItem = null;
- }
- // clear activeKey when inputValue change
- var lastValue = value && value[value.length - 1];
- if (inputValue !== this.lastInputValue && (!lastValue || lastValue !== backfillValue)) {
- activeKeyProps.activeKey = '';
- }
- menuProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, activeKeyProps, menuProps.props, { defaultActiveFirst: defaultActiveFirst });
- return h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_3__["default"],
- menuProps,
- [clonedMenuItems]
- );
- }
- return null;
- }
- },
- render: function render() {
- var h = arguments[0];
- var renderMenu = this.renderMenu();
- var _getListeners2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
- popupFocus = _getListeners2.popupFocus,
- popupScroll = _getListeners2.popupScroll;
- return renderMenu ? h(
- 'div',
- {
- style: {
- overflow: 'auto',
- transform: 'translateZ(0)'
- },
- attrs: { id: this.$props.ariaId,
- tabIndex: '-1'
- },
- on: {
- 'focus': popupFocus,
- 'mousedown': _util__WEBPACK_IMPORTED_MODULE_5__["preventDefaultEvent"],
- 'scroll': popupScroll
- },
- ref: 'menuContainer'
- },
- [renderMenu]
- ) : null;
- }
- });
- /***/ }),
- /***/ "./components/vc-select/OptGroup.jsx":
- /*!*******************************************!*\
- !*** ./components/vc-select/OptGroup.jsx ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
- label: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])
- },
- isSelectOptGroup: true
- });
- /***/ }),
- /***/ "./components/vc-select/Option.jsx":
- /*!*****************************************!*\
- !*** ./components/vc-select/Option.jsx ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
- label: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])
- },
- isSelectOption: true
- });
- /***/ }),
- /***/ "./components/vc-select/PropTypes.js":
- /*!*******************************************!*\
- !*** ./components/vc-select/PropTypes.js ***!
- \*******************************************/
- /*! exports provided: SelectPropTypes */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectPropTypes", function() { return SelectPropTypes; });
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- var SelectPropTypes = {
- defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- // children: PropTypes.any,
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- tags: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- // className: PropTypes.string,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- optionFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- // onChange: PropTypes.func,
- // onBlur: PropTypes.func,
- // onFocus: PropTypes.func,
- // onSelect: PropTypes.func,
- // onSearch: PropTypes.func,
- // onPopupScroll: PropTypes.func,
- // onMouseEnter: PropTypes.func,
- // onMouseLeave: PropTypes.func,
- // onInputKeyDown: PropTypes.func,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- // onDeselect: PropTypes.func,
- labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- tokenSeparators: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string),
- getInputElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string),
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['multiple', 'tags']),
- backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- dropdownAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([String, Number]),
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([String, Number])
- };
- /***/ }),
- /***/ "./components/vc-select/Select.jsx":
- /*!*****************************************!*\
- !*** ./components/vc-select/Select.jsx ***!
- \*****************************************/
- /*! exports provided: Select, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Select", function() { return Select; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! component-classes */ "./node_modules/component-classes/index.js");
- /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(component_classes__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_8__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_9__);
- /* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Option */ "./components/vc-select/Option.jsx");
- /* harmony import */ var _OptGroup__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./OptGroup */ "./components/vc-select/OptGroup.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_proxyComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/proxyComponent */ "./components/_util/proxyComponent.jsx");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_17__);
- /* harmony import */ var _SelectTrigger__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./SelectTrigger */ "./components/vc-select/SelectTrigger.jsx");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./util */ "./components/vc-select/util.js");
- /* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-select/PropTypes.js");
- /* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
- /* harmony import */ var _util_env__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../_util/env */ "./components/_util/env.js");
- vue__WEBPACK_IMPORTED_MODULE_9___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_17___default.a, { name: 'ant-ref' });
- var SELECT_EMPTY_VALUE_KEY = 'RC_SELECT_EMPTY_VALUE_KEY';
- var noop = function noop() {
- return null;
- };
- // Where el is the DOM element you'd like to test for visibility
- function isHidden(node) {
- return !node || node.offsetParent === null;
- }
- function chaining() {
- for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {
- fns[_key] = arguments[_key];
- }
- return function () {
- for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
- // eslint-disable-line
- // eslint-disable-line
- for (var i = 0; i < fns.length; i++) {
- if (fns[i] && typeof fns[i] === 'function') {
- fns[i].apply(chaining, args);
- }
- }
- };
- }
- var Select = {
- inheritAttrs: false,
- Option: _Option__WEBPACK_IMPORTED_MODULE_10__["default"],
- OptGroup: _OptGroup__WEBPACK_IMPORTED_MODULE_11__["default"],
- name: 'Select',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__["default"]],
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"], {
- prefixCls: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].prefixCls.def('rc-select'),
- defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
- labelInValue: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].labelInValue.def(false),
- defaultActiveFirstOption: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].defaultActiveFirstOption.def(true),
- showSearch: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].showSearch.def(true),
- allowClear: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].allowClear.def(false),
- placeholder: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].placeholder.def(''),
- // showArrow: SelectPropTypes.showArrow.def(true),
- dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
- dropdownStyle: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].dropdownStyle.def(function () {
- return {};
- }),
- dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
- return {};
- }),
- optionFilterProp: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].optionFilterProp.def('value'),
- optionLabelProp: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].optionLabelProp.def('value'),
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def('Not Found'),
- backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
- showAction: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].showAction.def(['click']),
- combobox: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
- tokenSeparators: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string).def([]),
- autoClearSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def(0),
- dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function (menu) {
- return menu;
- })
- // onChange: noop,
- // onFocus: noop,
- // onBlur: noop,
- // onSelect: noop,
- // onSearch: noop,
- // onDeselect: noop,
- // onInputKeydown: noop,
- }),
- model: {
- prop: 'value',
- event: 'change'
- },
- created: function created() {
- this.saveInputRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'inputRef');
- this.saveInputMirrorRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'inputMirrorRef');
- this.saveTopCtrlRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'topCtrlRef');
- this.saveSelectTriggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'selectTriggerRef');
- this.saveRootRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'rootRef');
- this.saveSelectionRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'selectionRef');
- this._focused = false;
- this._mouseDown = false;
- this._options = [];
- this._empty = false;
- },
- data: function data() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
- var optionsInfo = this.getOptionsInfoFromProps(props);
- warning__WEBPACK_IMPORTED_MODULE_8___default()(this.__propsSymbol__, 'Replace slots.default with props.children and pass props.__propsSymbol__');
- if (props.tags && typeof props.filterOption !== 'function') {
- var isDisabledExist = Object.keys(optionsInfo).some(function (key) {
- return optionsInfo[key].disabled;
- });
- warning__WEBPACK_IMPORTED_MODULE_8___default()(!isDisabledExist, 'Please avoid setting option to disabled in tags mode since user can always type text as tag.');
- }
- var state = {
- _value: this.getValueFromProps(props, true), // true: use default value
- _inputValue: props.combobox ? this.getInputValueForCombobox(props, optionsInfo, true // use default value
- ) : '',
- _open: props.defaultOpen,
- _optionsInfo: optionsInfo,
- _backfillValue: '',
- // a flag for aviod redundant getOptionsInfoFromProps call
- _skipBuildOptionsInfo: true,
- _ariaId: Object(_util__WEBPACK_IMPORTED_MODULE_19__["generateUUID"])()
- };
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state, {
- _mirrorInputValue: state._inputValue }, this.getDerivedState(props, state));
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- // when defaultOpen is true, we should auto focus search input
- // https://github.com/ant-design/ant-design/issues/14254
- if (_this.autoFocus || _this._open) {
- _this.focus();
- }
- // this.setState({
- // _ariaId: generateUUID(),
- // });
- });
- },
- watch: {
- __propsSymbol__: function __propsSymbol__() {
- babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()(this.$data, this.getDerivedState(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this), this.$data));
- },
- '$data._inputValue': function $data_inputValue(val) {
- this.$data._mirrorInputValue = val;
- }
- },
- updated: function updated() {
- var _this2 = this;
- this.$nextTick(function () {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(_this2.$props)) {
- var inputNode = _this2.getInputDOMNode();
- var mirrorNode = _this2.getInputMirrorDOMNode();
- if (inputNode && inputNode.value && mirrorNode) {
- inputNode.style.width = '';
- inputNode.style.width = mirrorNode.clientWidth + 10 + 'px';
- } else if (inputNode) {
- inputNode.style.width = '';
- }
- }
- _this2.forcePopupAlign();
- });
- },
- beforeDestroy: function beforeDestroy() {
- this.clearFocusTime();
- this.clearBlurTime();
- this.clearComboboxTime();
- if (this.dropdownContainer) {
- document.body.removeChild(this.dropdownContainer);
- this.dropdownContainer = null;
- }
- },
- methods: {
- getDerivedState: function getDerivedState(nextProps, prevState) {
- var optionsInfo = prevState._skipBuildOptionsInfo ? prevState._optionsInfo : this.getOptionsInfoFromProps(nextProps, prevState);
- var newState = {
- _optionsInfo: optionsInfo,
- _skipBuildOptionsInfo: false
- };
- if ('open' in nextProps) {
- newState._open = nextProps.open;
- }
- if ('value' in nextProps) {
- var value = this.getValueFromProps(nextProps);
- newState._value = value;
- if (nextProps.combobox) {
- newState._inputValue = this.getInputValueForCombobox(nextProps, optionsInfo);
- }
- }
- return newState;
- },
- getOptionsFromChildren: function getOptionsFromChildren() {
- var _this3 = this;
- var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
- children.forEach(function (child) {
- if (!child.data || child.data.slot !== undefined) {
- return;
- }
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).isSelectOptGroup) {
- _this3.getOptionsFromChildren(child.componentOptions.children, options);
- } else {
- options.push(child);
- }
- });
- return options;
- },
- getInputValueForCombobox: function getInputValueForCombobox(props, optionsInfo, useDefaultValue) {
- var value = [];
- if ('value' in props && !useDefaultValue) {
- value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.value);
- }
- if ('defaultValue' in props && useDefaultValue) {
- value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.defaultValue);
- }
- if (value.length) {
- value = value[0];
- } else {
- return '';
- }
- var label = value;
- if (props.labelInValue) {
- label = value.label;
- } else if (optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)]) {
- label = optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)].label;
- }
- if (label === undefined) {
- label = '';
- }
- return label;
- },
- getLabelFromOption: function getLabelFromOption(props, option) {
- return Object(_util__WEBPACK_IMPORTED_MODULE_19__["getPropValue"])(option, props.optionLabelProp);
- },
- getOptionsInfoFromProps: function getOptionsInfoFromProps(props, preState) {
- var _this4 = this;
- var options = this.getOptionsFromChildren(this.$props.children);
- var optionsInfo = {};
- options.forEach(function (option) {
- var singleValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(option);
- optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(singleValue)] = {
- option: option,
- value: singleValue,
- label: _this4.getLabelFromOption(props, option),
- title: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(option, 'title'),
- disabled: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(option, 'disabled')
- };
- });
- if (preState) {
- // keep option info in pre state value.
- var oldOptionsInfo = preState._optionsInfo;
- var value = preState._value;
- if (value) {
- value.forEach(function (v) {
- var key = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(v);
- if (!optionsInfo[key] && oldOptionsInfo[key] !== undefined) {
- optionsInfo[key] = oldOptionsInfo[key];
- }
- });
- }
- }
- return optionsInfo;
- },
- getValueFromProps: function getValueFromProps(props, useDefaultValue) {
- var value = [];
- if ('value' in props && !useDefaultValue) {
- value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.value);
- }
- if ('defaultValue' in props && useDefaultValue) {
- value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.defaultValue);
- }
- if (props.labelInValue) {
- value = value.map(function (v) {
- return v.key;
- });
- }
- return value;
- },
- onInputChange: function onInputChange(e) {
- var _e$target = e.target,
- val = _e$target.value,
- composing = _e$target.composing;
- var _$data$_inputValue = this.$data._inputValue,
- _inputValue = _$data$_inputValue === undefined ? '' : _$data$_inputValue;
- if (e.isComposing || composing || _inputValue === val) {
- this.setState({
- _mirrorInputValue: val
- });
- return;
- }
- var tokenSeparators = this.$props.tokenSeparators;
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) && tokenSeparators.length && Object(_util__WEBPACK_IMPORTED_MODULE_19__["includesSeparators"])(val, tokenSeparators)) {
- var nextValue = this.getValueByInput(val);
- if (nextValue !== undefined) {
- this.fireChange(nextValue);
- }
- this.setOpenState(false, { needFocus: true });
- this.setInputValue('', false);
- return;
- }
- this.setInputValue(val);
- this.setState({
- _open: true
- });
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props)) {
- this.fireChange([val]);
- }
- },
- onDropdownVisibleChange: function onDropdownVisibleChange(open) {
- if (open && !this._focused) {
- this.clearBlurTime();
- this.timeoutFocus();
- this._focused = true;
- this.updateFocusClassName();
- }
- this.setOpenState(open);
- },
- // combobox ignore
- onKeyDown: function onKeyDown(event) {
- var open = this.$data._open;
- var disabled = this.$props.disabled;
- if (disabled) {
- return;
- }
- var keyCode = event.keyCode;
- if (open && !this.getInputDOMNode()) {
- this.onInputKeydown(event);
- } else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER || keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].DOWN) {
- // vue state是同步更新,onKeyDown在onMenuSelect后会再次调用,单选时不在调用setOpenState
- // https://github.com/vueComponent/ant-design-vue/issues/1142
- if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER && !Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props)) {
- this.maybeFocus(true);
- } else if (!open) {
- this.setOpenState(true);
- }
- event.preventDefault();
- } else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].SPACE) {
- // Not block space if popup is shown
- if (!open) {
- this.setOpenState(true);
- event.preventDefault();
- }
- }
- },
- onInputKeydown: function onInputKeydown(event) {
- var _this5 = this;
- var _$props = this.$props,
- disabled = _$props.disabled,
- combobox = _$props.combobox,
- defaultActiveFirstOption = _$props.defaultActiveFirstOption;
- if (disabled) {
- return;
- }
- var state = this.$data;
- var isRealOpen = this.getRealOpenState(state);
- var keyCode = event.keyCode;
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) && !event.target.value && keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].BACKSPACE) {
- event.preventDefault();
- var value = state._value;
- if (value.length) {
- this.removeSelected(value[value.length - 1]);
- }
- return;
- }
- if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].DOWN) {
- if (!state._open) {
- this.openIfHasChildren();
- event.preventDefault();
- event.stopPropagation();
- return;
- }
- } else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER && state._open) {
- // Aviod trigger form submit when select item
- // https://github.com/ant-design/ant-design/issues/10861
- // https://github.com/ant-design/ant-design/issues/14544
- if (isRealOpen || !combobox) {
- event.preventDefault();
- }
- // Hard close popup to avoid lock of non option in combobox mode
- if (isRealOpen && combobox && defaultActiveFirstOption === false) {
- this.comboboxTimer = setTimeout(function () {
- _this5.setOpenState(false);
- });
- }
- } else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ESC) {
- if (state._open) {
- this.setOpenState(false);
- event.preventDefault();
- event.stopPropagation();
- }
- return;
- }
- if (isRealOpen && this.selectTriggerRef) {
- var menu = this.selectTriggerRef.getInnerMenu();
- if (menu && menu.onKeyDown(event, this.handleBackfill)) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- },
- onMenuSelect: function onMenuSelect(_ref) {
- var item = _ref.item;
- if (!item) {
- return;
- }
- var value = this.$data._value;
- var props = this.$props;
- var selectedValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item);
- var lastValue = value[value.length - 1];
- var skipTrigger = false;
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props)) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["findIndexInValueBySingleValue"])(value, selectedValue) !== -1) {
- skipTrigger = true;
- } else {
- value = value.concat([selectedValue]);
- }
- } else {
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props) && lastValue !== undefined && lastValue === selectedValue && selectedValue !== this.$data._backfillValue) {
- this.setOpenState(false, { needFocus: true, fireSearch: false });
- skipTrigger = true;
- } else {
- value = [selectedValue];
- this.setOpenState(false, { needFocus: true, fireSearch: false });
- }
- }
- if (!skipTrigger) {
- this.fireChange(value);
- }
- if (!skipTrigger) {
- this.fireSelect(selectedValue);
- var inputValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props) ? Object(_util__WEBPACK_IMPORTED_MODULE_19__["getPropValue"])(item, props.optionLabelProp) : '';
- if (props.autoClearSearchValue) {
- this.setInputValue(inputValue, false);
- }
- }
- },
- onMenuDeselect: function onMenuDeselect(_ref2) {
- var item = _ref2.item,
- domEvent = _ref2.domEvent;
- if (domEvent.type === 'keydown' && domEvent.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER) {
- var menuItemDomNode = item.$el;
- // https://github.com/ant-design/ant-design/issues/20465#issuecomment-569033796
- if (!isHidden(menuItemDomNode)) {
- this.removeSelected(Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item));
- }
- return;
- }
- if (domEvent.type === 'click') {
- this.removeSelected(Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item));
- }
- if (this.autoClearSearchValue) {
- this.setInputValue('');
- }
- },
- onArrowClick: function onArrowClick(e) {
- e.stopPropagation();
- e.preventDefault();
- this.clearBlurTime();
- if (!this.disabled) {
- this.setOpenState(!this.$data._open, { needFocus: !this.$data._open });
- }
- },
- onPlaceholderClick: function onPlaceholderClick() {
- if (this.getInputDOMNode() && this.getInputDOMNode()) {
- this.getInputDOMNode().focus();
- }
- },
- onPopupFocus: function onPopupFocus() {
- // fix ie scrollbar, focus element again
- this.maybeFocus(true, true);
- },
- onClearSelection: function onClearSelection(event) {
- var props = this.$props;
- var state = this.$data;
- if (props.disabled) {
- return;
- }
- var inputValue = state._inputValue,
- value = state._value;
- event.stopPropagation();
- if (inputValue || value.length) {
- if (value.length) {
- this.fireChange([]);
- }
- this.setOpenState(false, { needFocus: true });
- if (inputValue) {
- this.setInputValue('');
- }
- }
- },
- onChoiceAnimationLeave: function onChoiceAnimationLeave() {
- this.forcePopupAlign();
- },
- getOptionInfoBySingleValue: function getOptionInfoBySingleValue(value, optionsInfo) {
- var h = this.$createElement;
- var info = void 0;
- optionsInfo = optionsInfo || this.$data._optionsInfo;
- if (optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)]) {
- info = optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)];
- }
- if (info) {
- return info;
- }
- var defaultLabel = value;
- if (this.$props.labelInValue) {
- var valueLabel = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getLabelFromPropsValue"])(this.$props.value, value);
- var defaultValueLabel = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getLabelFromPropsValue"])(this.$props.defaultValue, value);
- if (valueLabel !== undefined) {
- defaultLabel = valueLabel;
- } else if (defaultValueLabel !== undefined) {
- defaultLabel = defaultValueLabel;
- }
- }
- var defaultInfo = {
- option: h(
- _Option__WEBPACK_IMPORTED_MODULE_10__["default"],
- {
- attrs: { value: value },
- key: value },
- [value]
- ),
- value: value,
- label: defaultLabel
- };
- return defaultInfo;
- },
- getOptionBySingleValue: function getOptionBySingleValue(value) {
- var _getOptionInfoBySingl = this.getOptionInfoBySingleValue(value),
- option = _getOptionInfoBySingl.option;
- return option;
- },
- getOptionsBySingleValue: function getOptionsBySingleValue(values) {
- var _this6 = this;
- return values.map(function (value) {
- return _this6.getOptionBySingleValue(value);
- });
- },
- getValueByLabel: function getValueByLabel(label) {
- var _this7 = this;
- if (label === undefined) {
- return null;
- }
- var value = null;
- Object.keys(this.$data._optionsInfo).forEach(function (key) {
- var info = _this7.$data._optionsInfo[key];
- var disabled = info.disabled;
- if (disabled) {
- return;
- }
- var oldLable = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(info.label);
- if (oldLable && oldLable.join('') === label) {
- value = info.value;
- }
- });
- return value;
- },
- getVLBySingleValue: function getVLBySingleValue(value) {
- if (this.$props.labelInValue) {
- return {
- key: value,
- label: this.getLabelBySingleValue(value)
- };
- }
- return value;
- },
- getVLForOnChange: function getVLForOnChange(vlsS) {
- var _this8 = this;
- var vls = vlsS;
- if (vls !== undefined) {
- if (!this.labelInValue) {
- vls = vls.map(function (v) {
- return v;
- });
- } else {
- vls = vls.map(function (vl) {
- return {
- key: vl,
- label: _this8.getLabelBySingleValue(vl)
- };
- });
- }
- return Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) ? vls : vls[0];
- }
- return vls;
- },
- getLabelBySingleValue: function getLabelBySingleValue(value, optionsInfo) {
- var _getOptionInfoBySingl2 = this.getOptionInfoBySingleValue(value, optionsInfo),
- label = _getOptionInfoBySingl2.label;
- return label;
- },
- getDropdownContainer: function getDropdownContainer() {
- if (!this.dropdownContainer) {
- this.dropdownContainer = document.createElement('div');
- document.body.appendChild(this.dropdownContainer);
- }
- return this.dropdownContainer;
- },
- getPlaceholderElement: function getPlaceholderElement() {
- var h = this.$createElement;
- var props = this.$props,
- state = this.$data;
- var hidden = false;
- if (state._mirrorInputValue) {
- hidden = true;
- }
- var value = state._value;
- if (value.length) {
- hidden = true;
- }
- if (!state._mirrorInputValue && Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props) && value.length === 1 && state._value && !state._value[0]) {
- hidden = false;
- }
- var placeholder = props.placeholder;
- if (placeholder) {
- var p = {
- on: {
- mousedown: _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"],
- click: this.onPlaceholderClick
- },
- attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"],
- style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- display: hidden ? 'none' : 'block'
- }, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]),
- 'class': props.prefixCls + '-selection__placeholder'
- };
- return h(
- 'div',
- p,
- [placeholder]
- );
- }
- return null;
- },
- inputClick: function inputClick(e) {
- if (this.$data._open) {
- this.clearBlurTime();
- e.stopPropagation();
- } else {
- this._focused = false;
- }
- },
- inputBlur: function inputBlur(e) {
- var _this9 = this;
- var target = e.relatedTarget || document.activeElement;
- // https://github.com/vueComponent/ant-design-vue/issues/999
- // https://github.com/vueComponent/ant-design-vue/issues/1223
- if ((_util_env__WEBPACK_IMPORTED_MODULE_22__["isIE"] || _util_env__WEBPACK_IMPORTED_MODULE_22__["isEdge"]) && (e.relatedTarget === this.$refs.arrow || target && this.selectTriggerRef && this.selectTriggerRef.getInnerMenu() && this.selectTriggerRef.getInnerMenu().$el === target || Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_21__["default"])(e.target, target))) {
- e.target.focus();
- e.preventDefault();
- return;
- }
- this.clearBlurTime();
- if (this.disabled) {
- e.preventDefault();
- return;
- }
- this.blurTimer = setTimeout(function () {
- _this9._focused = false;
- _this9.updateFocusClassName();
- var props = _this9.$props;
- var value = _this9.$data._value;
- var inputValue = _this9.$data._inputValue;
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(props) && props.showSearch && inputValue && props.defaultActiveFirstOption) {
- var options = _this9._options || [];
- if (options.length) {
- var firstOption = Object(_util__WEBPACK_IMPORTED_MODULE_19__["findFirstMenuItem"])(options);
- if (firstOption) {
- value = [Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(firstOption)];
- _this9.fireChange(value);
- }
- }
- } else if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props) && inputValue) {
- if (_this9._mouseDown) {
- // need update dropmenu when not blur
- _this9.setInputValue('');
- } else {
- // why not use setState?
- _this9.$data._inputValue = '';
- if (_this9.getInputDOMNode && _this9.getInputDOMNode()) {
- _this9.getInputDOMNode().value = '';
- }
- }
- var tmpValue = _this9.getValueByInput(inputValue);
- if (tmpValue !== undefined) {
- value = tmpValue;
- _this9.fireChange(value);
- }
- }
- // if click the rest space of Select in multiple mode
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props) && _this9._mouseDown) {
- _this9.maybeFocus(true, true);
- _this9._mouseDown = false;
- return;
- }
- _this9.setOpenState(false);
- _this9.$emit('blur', _this9.getVLForOnChange(value));
- }, 200);
- },
- inputFocus: function inputFocus(e) {
- if (this.$props.disabled) {
- e.preventDefault();
- return;
- }
- this.clearBlurTime();
- // In IE11, onOuterFocus will be trigger twice when focus input
- // First one: e.target is div
- // Second one: e.target is input
- // other browser only trigger second one
- // https://github.com/ant-design/ant-design/issues/15942
- // Here we ignore the first one when e.target is div
- var inputNode = this.getInputDOMNode();
- if (inputNode && e.target === this.rootRef) {
- return;
- }
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props) && e.target === inputNode) {
- return;
- }
- if (this._focused) {
- return;
- }
- this._focused = true;
- this.updateFocusClassName();
- // only effect multiple or tag mode
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) || !this._mouseDown) {
- this.timeoutFocus();
- }
- },
- _getInputElement: function _getInputElement() {
- var h = this.$createElement;
- var props = this.$props;
- var _$data = this.$data,
- inputValue = _$data._inputValue,
- _mirrorInputValue = _$data._mirrorInputValue;
- var attrs = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getAttrs"])(this);
- var defaultInput = h('input', {
- attrs: { id: attrs.id, autoComplete: 'off' }
- });
- var inputElement = props.getInputElement ? props.getInputElement() : defaultInput;
- var inputCls = classnames__WEBPACK_IMPORTED_MODULE_5___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getClass"])(inputElement), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, props.prefixCls + '-search__field', true));
- var inputEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getEvents"])(inputElement);
- // https://github.com/ant-design/ant-design/issues/4992#issuecomment-281542159
- // Add space to the end of the inputValue as the width measurement tolerance
- inputElement.data = inputElement.data || {};
- return h(
- 'div',
- { 'class': props.prefixCls + '-search__field__wrap', on: {
- 'click': this.inputClick
- }
- },
- [Object(_util_vnode__WEBPACK_IMPORTED_MODULE_14__["cloneElement"])(inputElement, {
- props: {
- disabled: props.disabled,
- value: inputValue
- },
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, inputElement.data.attrs || {}, {
- disabled: props.disabled,
- value: inputValue
- }),
- domProps: {
- value: inputValue
- },
- 'class': inputCls,
- directives: [{
- name: 'ant-ref',
- value: this.saveInputRef
- }, {
- name: 'ant-input'
- }],
- on: {
- input: this.onInputChange,
- keydown: chaining(this.onInputKeydown, inputEvents.keydown, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this).inputKeydown),
- focus: chaining(this.inputFocus, inputEvents.focus),
- blur: chaining(this.inputBlur, inputEvents.blur)
- }
- }), h(
- 'span',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- directives: [{
- name: 'ant-ref',
- value: this.saveInputMirrorRef
- }]
- }, {
- // ref='inputMirrorRef'
- 'class': props.prefixCls + '-search__field__mirror'
- }]),
- [_mirrorInputValue, '\xA0']
- )]
- );
- },
- getInputDOMNode: function getInputDOMNode() {
- return this.topCtrlRef ? this.topCtrlRef.querySelector('input,textarea,div[contentEditable]') : this.inputRef;
- },
- getInputMirrorDOMNode: function getInputMirrorDOMNode() {
- return this.inputMirrorRef;
- },
- getPopupDOMNode: function getPopupDOMNode() {
- if (this.selectTriggerRef) {
- return this.selectTriggerRef.getPopupDOMNode();
- }
- },
- getPopupMenuComponent: function getPopupMenuComponent() {
- if (this.selectTriggerRef) {
- return this.selectTriggerRef.getInnerMenu();
- }
- },
- setOpenState: function setOpenState(open) {
- var _this10 = this;
- var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var props = this.$props,
- state = this.$data;
- var needFocus = config.needFocus,
- fireSearch = config.fireSearch;
- if (state._open === open) {
- this.maybeFocus(open, !!needFocus);
- return;
- }
- this.__emit('dropdownVisibleChange', open);
- var nextState = {
- _open: open,
- _backfillValue: ''
- };
- // clear search input value when open is false in singleMode.
- if (!open && Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(props) && props.showSearch) {
- this.setInputValue('', fireSearch);
- }
- if (!open) {
- this.maybeFocus(open, !!needFocus);
- }
- this.setState(nextState, function () {
- if (open) {
- _this10.maybeFocus(open, !!needFocus);
- }
- });
- },
- setInputValue: function setInputValue(inputValue) {
- var fireSearch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- if (inputValue !== this.$data._inputValue) {
- this.setState({
- _inputValue: inputValue
- }, this.forcePopupAlign);
- if (fireSearch) {
- this.$emit('search', inputValue);
- }
- }
- },
- getValueByInput: function getValueByInput(str) {
- var _this11 = this;
- var _$props2 = this.$props,
- multiple = _$props2.multiple,
- tokenSeparators = _$props2.tokenSeparators;
- var nextValue = this.$data._value;
- var hasNewValue = false;
- Object(_util__WEBPACK_IMPORTED_MODULE_19__["splitBySeparators"])(str, tokenSeparators).forEach(function (label) {
- var selectedValue = [label];
- if (multiple) {
- var value = _this11.getValueByLabel(label);
- if (value && Object(_util__WEBPACK_IMPORTED_MODULE_19__["findIndexInValueBySingleValue"])(nextValue, value) === -1) {
- nextValue = nextValue.concat(value);
- hasNewValue = true;
- _this11.fireSelect(value);
- }
- } else if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["findIndexInValueBySingleValue"])(nextValue, label) === -1) {
- nextValue = nextValue.concat(selectedValue);
- hasNewValue = true;
- _this11.fireSelect(label);
- }
- });
- return hasNewValue ? nextValue : undefined;
- },
- getRealOpenState: function getRealOpenState(state) {
- var _open = this.$props.open;
- if (typeof _open === 'boolean') {
- return _open;
- }
- var open = (state || this.$data)._open;
- var options = this._options || [];
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props) || !this.$props.showSearch) {
- if (open && !options.length) {
- open = false;
- }
- }
- return open;
- },
- focus: function focus() {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props) && this.selectionRef) {
- this.selectionRef.focus();
- } else if (this.getInputDOMNode()) {
- this.getInputDOMNode().focus();
- }
- },
- blur: function blur() {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props) && this.selectionRef) {
- this.selectionRef.blur();
- } else if (this.getInputDOMNode()) {
- this.getInputDOMNode().blur();
- }
- },
- markMouseDown: function markMouseDown() {
- this._mouseDown = true;
- },
- markMouseLeave: function markMouseLeave() {
- this._mouseDown = false;
- },
- handleBackfill: function handleBackfill(item) {
- if (!this.backfill || !(Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props) || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props))) {
- return;
- }
- var key = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item);
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props)) {
- this.setInputValue(key, false);
- }
- this.setState({
- _value: [key],
- _backfillValue: key
- });
- },
- _filterOption: function _filterOption(input, child) {
- var defaultFilter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _util__WEBPACK_IMPORTED_MODULE_19__["defaultFilterFn"];
- var _$data2 = this.$data,
- value = _$data2._value,
- backfillValue = _$data2._backfillValue;
- var lastValue = value[value.length - 1];
- if (!input || lastValue && lastValue === backfillValue) {
- return true;
- }
- var filterFn = this.$props.filterOption;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["hasProp"])(this, 'filterOption')) {
- if (filterFn === true) {
- filterFn = defaultFilter.bind(this);
- }
- } else {
- filterFn = defaultFilter.bind(this);
- }
- if (!filterFn) {
- return true;
- } else if (typeof filterFn === 'function') {
- return filterFn.call(this, input, child);
- } else if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(child, 'disabled')) {
- return false;
- }
- return true;
- },
- timeoutFocus: function timeoutFocus() {
- var _this12 = this;
- if (this.focusTimer) {
- this.clearFocusTime();
- }
- this.focusTimer = window.setTimeout(function () {
- // this._focused = true
- // this.updateFocusClassName()
- _this12.$emit('focus');
- }, 10);
- },
- clearFocusTime: function clearFocusTime() {
- if (this.focusTimer) {
- clearTimeout(this.focusTimer);
- this.focusTimer = null;
- }
- },
- clearBlurTime: function clearBlurTime() {
- if (this.blurTimer) {
- clearTimeout(this.blurTimer);
- this.blurTimer = null;
- }
- },
- clearComboboxTime: function clearComboboxTime() {
- if (this.comboboxTimer) {
- clearTimeout(this.comboboxTimer);
- this.comboboxTimer = null;
- }
- },
- updateFocusClassName: function updateFocusClassName() {
- var rootRef = this.rootRef,
- prefixCls = this.prefixCls;
- // avoid setState and its side effect
- if (this._focused) {
- component_classes__WEBPACK_IMPORTED_MODULE_6___default()(rootRef).add(prefixCls + '-focused');
- } else {
- component_classes__WEBPACK_IMPORTED_MODULE_6___default()(rootRef).remove(prefixCls + '-focused');
- }
- },
- maybeFocus: function maybeFocus(open, needFocus) {
- if (needFocus || open) {
- var input = this.getInputDOMNode();
- var _document = document,
- activeElement = _document.activeElement;
- if (input && (open || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props))) {
- if (activeElement !== input) {
- input.focus();
- this._focused = true;
- }
- } else if (activeElement !== this.selectionRef && this.selectionRef) {
- this.selectionRef.focus();
- this._focused = true;
- }
- }
- },
- removeSelected: function removeSelected(selectedKey, e) {
- var props = this.$props;
- if (props.disabled || this.isChildDisabled(selectedKey)) {
- return;
- }
- // Do not trigger Trigger popup
- if (e && e.stopPropagation) {
- e.stopPropagation();
- }
- var oldValue = this.$data._value;
- var value = oldValue.filter(function (singleValue) {
- return singleValue !== selectedKey;
- });
- var canMultiple = Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props);
- if (canMultiple) {
- var event = selectedKey;
- if (props.labelInValue) {
- event = {
- key: selectedKey,
- label: this.getLabelBySingleValue(selectedKey)
- };
- }
- this.$emit('deselect', event, this.getOptionBySingleValue(selectedKey));
- }
- this.fireChange(value);
- },
- openIfHasChildren: function openIfHasChildren() {
- var $props = this.$props;
- if ($props.children && $props.children.length || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])($props)) {
- this.setOpenState(true);
- }
- },
- fireSelect: function fireSelect(value) {
- this.$emit('select', this.getVLBySingleValue(value), this.getOptionBySingleValue(value));
- },
- fireChange: function fireChange(value) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["hasProp"])(this, 'value')) {
- this.setState({
- _value: value
- }, this.forcePopupAlign);
- }
- var vls = this.getVLForOnChange(value);
- var options = this.getOptionsBySingleValue(value);
- this._valueOptions = options;
- this.$emit('change', vls, Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) ? options : options[0]);
- },
- isChildDisabled: function isChildDisabled(key) {
- return (this.$props.children || []).some(function (child) {
- var childValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(child);
- return childValue === key && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(child, 'disabled');
- });
- },
- forcePopupAlign: function forcePopupAlign() {
- if (!this.$data._open) {
- return;
- }
- if (this.selectTriggerRef && this.selectTriggerRef.triggerRef) {
- this.selectTriggerRef.triggerRef.forcePopupAlign();
- }
- },
- renderFilterOptions: function renderFilterOptions() {
- var h = this.$createElement;
- var inputValue = this.$data._inputValue;
- var _$props3 = this.$props,
- children = _$props3.children,
- tags = _$props3.tags,
- notFoundContent = _$props3.notFoundContent;
- var menuItems = [];
- var childrenKeys = [];
- var empty = false;
- var options = this.renderFilterOptionsFromChildren(children, childrenKeys, menuItems);
- if (tags) {
- // tags value must be string
- var value = this.$data._value;
- value = value.filter(function (singleValue) {
- return childrenKeys.indexOf(singleValue) === -1 && (!inputValue || String(singleValue).indexOf(String(inputValue)) > -1);
- });
- // sort by length
- value.sort(function (val1, val2) {
- return val1.length - val2.length;
- });
- value.forEach(function (singleValue) {
- var key = singleValue;
- var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], {
- role: 'option'
- });
- var menuItem = h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"] }, { attrs: attrs }, {
- attrs: { value: key },
- key: key }]),
- [key]
- );
- options.push(menuItem);
- menuItems.push(menuItem);
- });
- // ref: https://github.com/ant-design/ant-design/issues/14090
- if (inputValue && menuItems.every(function (option) {
- return Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(option) !== inputValue;
- })) {
- var p = {
- attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"],
- key: inputValue,
- props: {
- value: inputValue,
- role: 'option'
- },
- style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
- };
- options.unshift(h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
- p,
- [inputValue]
- ));
- }
- }
- if (!options.length && notFoundContent) {
- empty = true;
- var _p = {
- attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"],
- key: 'NOT_FOUND',
- props: {
- value: 'NOT_FOUND',
- disabled: true,
- role: 'option'
- },
- style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
- };
- options = [h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
- _p,
- [notFoundContent]
- )];
- }
- return { empty: empty, options: options };
- },
- renderFilterOptionsFromChildren: function renderFilterOptionsFromChildren() {
- var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var _this13 = this;
- var childrenKeys = arguments[1];
- var menuItems = arguments[2];
- var h = this.$createElement;
- var sel = [];
- var props = this.$props;
- var inputValue = this.$data._inputValue;
- var tags = props.tags;
- children.forEach(function (child) {
- if (!child.data || child.data.slot !== undefined) {
- return;
- }
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).isSelectOptGroup) {
- var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(child, 'label');
- var key = child.key;
- if (!key && typeof label === 'string') {
- key = label;
- } else if (!label && key) {
- label = key;
- }
- var childChildren = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlots"])(child)['default'];
- childChildren = typeof childChildren === 'function' ? childChildren() : childChildren;
- // Match option group label
- if (inputValue && _this13._filterOption(inputValue, child)) {
- var innerItems = childChildren.map(function (subChild) {
- var childValueSub = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(subChild) || subChild.key;
- return h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: childValueSub, attrs: { value: childValueSub }
- }, subChild.data]),
- [subChild.componentOptions.children]
- );
- });
- sel.push(h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_7__["ItemGroup"],
- { key: key, attrs: { title: label },
- 'class': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getClass"])(child) },
- [innerItems]
- ));
- // Not match
- } else {
- var _innerItems = _this13.renderFilterOptionsFromChildren(childChildren, childrenKeys, menuItems);
- if (_innerItems.length) {
- sel.push(h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_7__["ItemGroup"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: key, attrs: { title: label }
- }, child.data]),
- [_innerItems]
- ));
- }
- }
- return;
- }
- warning__WEBPACK_IMPORTED_MODULE_8___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).isSelectOption, 'the children of `Select` should be `Select.Option` or `Select.OptGroup`, ' + ('instead of `' + (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).name || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child)) + '`.'));
- var childValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(child);
- Object(_util__WEBPACK_IMPORTED_MODULE_19__["validateOptionValue"])(childValue, _this13.$props);
- if (_this13._filterOption(inputValue, child)) {
- var p = {
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getAttrs"])(child)),
- key: childValue,
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- value: childValue
- }, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getPropsData"])(child), {
- role: 'option'
- }),
- style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"],
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getEvents"])(child),
- 'class': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getClass"])(child)
- };
- var menuItem = h(
- _vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
- p,
- [child.componentOptions.children]
- );
- sel.push(menuItem);
- menuItems.push(menuItem);
- }
- if (tags) {
- childrenKeys.push(childValue);
- }
- });
- return sel;
- },
- renderTopControlNode: function renderTopControlNode() {
- var _this14 = this;
- var h = this.$createElement;
- var props = this.$props;
- var _$data3 = this.$data,
- value = _$data3._value,
- inputValue = _$data3._inputValue,
- open = _$data3._open;
- var choiceTransitionName = props.choiceTransitionName,
- prefixCls = props.prefixCls,
- maxTagTextLength = props.maxTagTextLength,
- maxTagCount = props.maxTagCount,
- maxTagPlaceholder = props.maxTagPlaceholder,
- showSearch = props.showSearch;
- var removeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'removeIcon');
- var className = prefixCls + '-selection__rendered';
- // search input is inside topControlNode in single, multiple & combobox. 2016/04/13
- var innerNode = null;
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(props)) {
- var selectedValue = null;
- if (value.length) {
- var showSelectedValue = false;
- var opacity = 1;
- if (!showSearch) {
- showSelectedValue = true;
- } else if (open) {
- showSelectedValue = !inputValue;
- if (showSelectedValue) {
- opacity = 0.4;
- }
- } else {
- showSelectedValue = true;
- }
- var singleValue = value[0];
- var _getOptionInfoBySingl3 = this.getOptionInfoBySingleValue(singleValue),
- label = _getOptionInfoBySingl3.label,
- title = _getOptionInfoBySingl3.title;
- selectedValue = h(
- 'div',
- {
- key: 'value',
- 'class': prefixCls + '-selection-selected-value',
- attrs: { title: Object(_util__WEBPACK_IMPORTED_MODULE_19__["toTitle"])(title || label)
- },
- style: {
- display: showSelectedValue ? 'block' : 'none',
- opacity: opacity
- }
- },
- [label]
- );
- }
- if (!showSearch) {
- innerNode = [selectedValue];
- } else {
- innerNode = [selectedValue, h(
- 'div',
- {
- 'class': prefixCls + '-search ' + prefixCls + '-search--inline',
- key: 'input',
- style: {
- display: open ? 'block' : 'none'
- }
- },
- [this._getInputElement()]
- )];
- }
- } else {
- var selectedValueNodes = [];
- var limitedCountValue = value;
- var maxTagPlaceholderEl = void 0;
- if (maxTagCount !== undefined && value.length > maxTagCount) {
- limitedCountValue = limitedCountValue.slice(0, maxTagCount);
- var omittedValues = this.getVLForOnChange(value.slice(maxTagCount, value.length));
- var content = '+ ' + (value.length - maxTagCount) + ' ...';
- if (maxTagPlaceholder) {
- content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;
- }
- var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], {
- role: 'presentation',
- title: Object(_util__WEBPACK_IMPORTED_MODULE_19__["toTitle"])(content)
- });
- maxTagPlaceholderEl = h(
- 'li',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
- }, { attrs: attrs }, {
- on: {
- 'mousedown': _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"]
- },
- 'class': prefixCls + '-selection__choice ' + prefixCls + '-selection__choice__disabled',
- key: 'maxTagPlaceholder'
- }]),
- [h(
- 'div',
- { 'class': prefixCls + '-selection__choice__content' },
- [content]
- )]
- );
- }
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props)) {
- selectedValueNodes = limitedCountValue.map(function (singleValue) {
- var info = _this14.getOptionInfoBySingleValue(singleValue);
- var content = info.label;
- var title = info.title || content;
- if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {
- content = content.slice(0, maxTagTextLength) + '...';
- }
- var disabled = _this14.isChildDisabled(singleValue);
- var choiceClassName = disabled ? prefixCls + '-selection__choice ' + prefixCls + '-selection__choice__disabled' : prefixCls + '-selection__choice';
- // attrs 放在一起,避免动态title混乱问题,很奇怪的问题 https://github.com/vueComponent/ant-design-vue/issues/588
- var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], {
- role: 'presentation',
- title: Object(_util__WEBPACK_IMPORTED_MODULE_19__["toTitle"])(title)
- });
- return h(
- 'li',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
- }, { attrs: attrs }, {
- on: {
- 'mousedown': _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"]
- },
- 'class': choiceClassName,
- key: singleValue || SELECT_EMPTY_VALUE_KEY
- }]),
- [h(
- 'div',
- { 'class': prefixCls + '-selection__choice__content' },
- [content]
- ), disabled ? null : h(
- 'span',
- {
- on: {
- 'click': function click(event) {
- _this14.removeSelected(singleValue, event);
- }
- },
- 'class': prefixCls + '-selection__choice__remove'
- },
- [removeIcon || h(
- 'i',
- { 'class': prefixCls + '-selection__choice__remove-icon' },
- ['\xD7']
- )]
- )]
- );
- });
- }
- if (maxTagPlaceholderEl) {
- selectedValueNodes.push(maxTagPlaceholderEl);
- }
- selectedValueNodes.push(h(
- 'li',
- { 'class': prefixCls + '-search ' + prefixCls + '-search--inline', key: '__input' },
- [this._getInputElement()]
- ));
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props) && choiceTransitionName) {
- var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__["default"])(choiceTransitionName, {
- tag: 'ul',
- afterLeave: this.onChoiceAnimationLeave
- });
- innerNode = h(
- 'transition-group',
- transitionProps,
- [selectedValueNodes]
- );
- } else {
- innerNode = h('ul', [selectedValueNodes]);
- }
- }
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- 'class': className
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.saveTopCtrlRef
- }]
- }, {
- on: {
- 'click': this.topCtrlContainerClick
- }
- }]),
- [this.getPlaceholderElement(), innerNode]
- );
- },
- renderArrow: function renderArrow(multiple) {
- var h = this.$createElement;
- // showArrow : Set to true if not multiple by default but keep set value.
- var _$props4 = this.$props,
- _$props4$showArrow = _$props4.showArrow,
- showArrow = _$props4$showArrow === undefined ? !multiple : _$props4$showArrow,
- loading = _$props4.loading,
- prefixCls = _$props4.prefixCls;
- var inputIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'inputIcon');
- if (!showArrow && !loading) {
- return null;
- }
- // if loading have loading icon
- var defaultIcon = loading ? h('i', { 'class': prefixCls + '-arrow-loading' }) : h('i', { 'class': prefixCls + '-arrow-icon' });
- return h(
- 'span',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- key: 'arrow',
- 'class': prefixCls + '-arrow',
- style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
- }, { attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"] }, {
- on: {
- 'click': this.onArrowClick
- },
- ref: 'arrow'
- }]),
- [inputIcon || defaultIcon]
- );
- },
- topCtrlContainerClick: function topCtrlContainerClick(e) {
- if (this.$data._open && !Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props)) {
- e.stopPropagation();
- }
- },
- renderClear: function renderClear() {
- var h = this.$createElement;
- var _$props5 = this.$props,
- prefixCls = _$props5.prefixCls,
- allowClear = _$props5.allowClear;
- var _$data4 = this.$data,
- value = _$data4._value,
- inputValue = _$data4._inputValue;
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'clearIcon');
- var clear = h(
- 'span',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- key: 'clear',
- 'class': prefixCls + '-selection__clear',
- on: {
- 'mousedown': _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"]
- },
- style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
- }, { attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"] }, {
- on: {
- 'click': this.onClearSelection
- }
- }]),
- [clearIcon || h(
- 'i',
- { 'class': prefixCls + '-selection__clear-icon' },
- ['\xD7']
- )]
- );
- if (!allowClear) {
- return null;
- }
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props)) {
- if (inputValue) {
- return clear;
- }
- return null;
- }
- if (inputValue || value.length) {
- return clear;
- }
- return null;
- },
- selectionRefClick: function selectionRefClick() {
- //e.stopPropagation();
- if (!this.disabled) {
- var input = this.getInputDOMNode();
- if (this._focused && this.$data._open) {
- // this._focused = false;
- this.setOpenState(false, false);
- input && input.blur();
- } else {
- this.clearBlurTime();
- //this._focused = true;
- this.setOpenState(true, true);
- input && input.focus();
- }
- }
- },
- selectionRefFocus: function selectionRefFocus(e) {
- if (this._focused || this.disabled || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props)) {
- e.preventDefault();
- return;
- }
- this._focused = true;
- this.updateFocusClassName();
- this.$emit('focus');
- },
- selectionRefBlur: function selectionRefBlur(e) {
- if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props)) {
- e.preventDefault();
- return;
- }
- this.inputBlur(e);
- }
- },
- render: function render() {
- var _rootCls;
- var h = arguments[0];
- var props = this.$props;
- var multiple = Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props);
- // Default set showArrow to true if not set (not set directly in defaultProps to handle multiple case)
- var _props$showArrow = props.showArrow,
- showArrow = _props$showArrow === undefined ? true : _props$showArrow;
- var state = this.$data;
- var disabled = props.disabled,
- prefixCls = props.prefixCls,
- loading = props.loading;
- var ctrlNode = this.renderTopControlNode();
- var _$data5 = this.$data,
- open = _$data5._open,
- inputValue = _$data5._inputValue,
- value = _$data5._value;
- if (open) {
- var filterOptions = this.renderFilterOptions();
- this._empty = filterOptions.empty;
- this._options = filterOptions.options;
- }
- var realOpen = this.getRealOpenState();
- var empty = this._empty;
- var options = this._options || [];
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this),
- _getListeners$mouseen = _getListeners.mouseenter,
- mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
- _getListeners$mousele = _getListeners.mouseleave,
- mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
- _getListeners$popupSc = _getListeners.popupScroll,
- popupScroll = _getListeners$popupSc === undefined ? noop : _getListeners$popupSc;
- var selectionProps = {
- props: {},
- attrs: {
- role: 'combobox',
- 'aria-autocomplete': 'list',
- 'aria-haspopup': 'true',
- 'aria-expanded': realOpen,
- 'aria-controls': this.$data._ariaId
- },
- on: {
- // click: this.selectionRefClick,
- },
- 'class': prefixCls + '-selection ' + prefixCls + '-selection--' + (multiple ? 'multiple' : 'single'),
- // directives: [
- // {
- // name: 'ant-ref',
- // value: this.saveSelectionRef,
- // },
- // ],
- key: 'selection'
- };
- //if (!isMultipleOrTagsOrCombobox(props)) {
- // selectionProps.on.keydown = this.onKeyDown;
- // selectionProps.on.focus = this.selectionRefFocus;
- // selectionProps.on.blur = this.selectionRefBlur;
- // selectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex;
- //}
- var extraSelectionProps = { attrs: { tabIndex: -1 } };
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(props)) {
- extraSelectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex;
- }
- var rootCls = (_rootCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-open', open), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-focused', open || !!this._focused), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-combobox', Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props)), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-enabled', !disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-allow-clear', !!props.allowClear), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-no-arrow', !showArrow), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-loading', !!loading), _rootCls);
- return h(
- _SelectTrigger__WEBPACK_IMPORTED_MODULE_18__["default"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- dropdownAlign: props.dropdownAlign,
- dropdownClassName: props.dropdownClassName,
- dropdownMatchSelectWidth: props.dropdownMatchSelectWidth,
- defaultActiveFirstOption: props.defaultActiveFirstOption,
- dropdownMenuStyle: props.dropdownMenuStyle,
- transitionName: props.transitionName,
- animation: props.animation,
- prefixCls: props.prefixCls,
- dropdownStyle: props.dropdownStyle,
- combobox: props.combobox,
- showSearch: props.showSearch,
- options: options,
- empty: empty,
- multiple: multiple,
- disabled: disabled,
- visible: realOpen,
- inputValue: inputValue,
- value: value,
- backfillValue: state._backfillValue,
- firstActiveValue: props.firstActiveValue,
- getPopupContainer: props.getPopupContainer,
- showAction: props.showAction,
- menuItemSelectedIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'menuItemSelectedIcon')
- },
- on: {
- 'dropdownVisibleChange': this.onDropdownVisibleChange,
- 'menuSelect': this.onMenuSelect,
- 'menuDeselect': this.onMenuDeselect,
- 'popupScroll': popupScroll,
- 'popupFocus': this.onPopupFocus,
- 'mouseenter': mouseenter,
- 'mouseleave': mouseleave
- }
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.saveSelectTriggerRef
- }]
- }, {
- attrs: {
- dropdownRender: props.dropdownRender,
- ariaId: this.$data._ariaId
- }
- }]),
- [h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- directives: [{
- name: 'ant-ref',
- value: chaining(this.saveRootRef, this.saveSelectionRef)
- }]
- }, {
- style: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getStyle"])(this),
- 'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(rootCls),
- on: {
- 'mousedown': this.markMouseDown,
- 'mouseup': this.markMouseLeave,
- 'mouseout': this.markMouseLeave
- }
- }, extraSelectionProps, {
- on: {
- 'blur': this.selectionRefBlur,
- 'focus': this.selectionRefFocus,
- 'click': this.selectionRefClick,
- 'keydown': Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(props) ? noop : this.onKeyDown
- }
- }]),
- [h(
- 'div',
- selectionProps,
- [ctrlNode, this.renderClear(), this.renderArrow(!!multiple)]
- )]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_proxyComponent__WEBPACK_IMPORTED_MODULE_16__["default"])(Select));
- /***/ }),
- /***/ "./components/vc-select/SelectTrigger.jsx":
- /*!************************************************!*\
- !*** ./components/vc-select/SelectTrigger.jsx ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DropdownMenu */ "./components/vc-select/DropdownMenu.jsx");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util */ "./components/vc-select/util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- var BUILT_IN_PLACEMENTS = {
- bottomLeft: {
- points: ['tl', 'bl'],
- offset: [0, 4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- }
- },
- topLeft: {
- points: ['bl', 'tl'],
- offset: [0, -4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- }
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'SelectTrigger',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
- props: {
- // onPopupFocus: PropTypes.func,
- // onPopupScroll: PropTypes.func,
- dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- dropdownAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
- dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- inputValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- empty: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- options: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
- // children: PropTypes.any,
- showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string),
- combobox: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
- animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
- backfillValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
- ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
- },
- data: function data() {
- return {
- dropdownWidth: 0
- };
- },
- created: function created() {
- this.rafInstance = null;
- this.saveDropdownMenuRef = Object(_util__WEBPACK_IMPORTED_MODULE_7__["saveRef"])(this, 'dropdownMenuRef');
- this.saveTriggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_7__["saveRef"])(this, 'triggerRef');
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- _this.setDropdownWidth();
- });
- },
- updated: function updated() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.setDropdownWidth();
- });
- },
- beforeDestroy: function beforeDestroy() {
- this.cancelRafInstance();
- },
- methods: {
- setDropdownWidth: function setDropdownWidth() {
- var _this3 = this;
- this.cancelRafInstance();
- this.rafInstance = raf__WEBPACK_IMPORTED_MODULE_3___default()(function () {
- var width = _this3.$el.offsetWidth;
- if (width !== _this3.dropdownWidth) {
- _this3.setState({ dropdownWidth: width });
- }
- });
- },
- cancelRafInstance: function cancelRafInstance() {
- if (this.rafInstance) {
- raf__WEBPACK_IMPORTED_MODULE_3___default.a.cancel(this.rafInstance);
- }
- },
- getInnerMenu: function getInnerMenu() {
- return this.dropdownMenuRef && this.dropdownMenuRef.$refs.menuRef;
- },
- getPopupDOMNode: function getPopupDOMNode() {
- return this.triggerRef.getPopupDomNode();
- },
- getDropdownElement: function getDropdownElement(newProps) {
- var h = this.$createElement;
- var value = this.value,
- firstActiveValue = this.firstActiveValue,
- defaultActiveFirstOption = this.defaultActiveFirstOption,
- dropdownMenuStyle = this.dropdownMenuStyle,
- getDropdownPrefixCls = this.getDropdownPrefixCls,
- backfillValue = this.backfillValue,
- menuItemSelectedIcon = this.menuItemSelectedIcon;
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this),
- menuSelect = _getListeners.menuSelect,
- menuDeselect = _getListeners.menuDeselect,
- popupScroll = _getListeners.popupScroll;
- var props = this.$props;
- var dropdownRender = props.dropdownRender,
- ariaId = props.ariaId;
- var dropdownMenuProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, newProps.props, {
- ariaId: ariaId,
- prefixCls: getDropdownPrefixCls(),
- value: value,
- firstActiveValue: firstActiveValue,
- defaultActiveFirstOption: defaultActiveFirstOption,
- dropdownMenuStyle: dropdownMenuStyle,
- backfillValue: backfillValue,
- menuItemSelectedIcon: menuItemSelectedIcon
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, newProps.on, {
- menuSelect: menuSelect,
- menuDeselect: menuDeselect,
- popupScroll: popupScroll
- }),
- directives: [{
- name: 'ant-ref',
- value: this.saveDropdownMenuRef
- }]
- };
- var menuNode = h(_DropdownMenu__WEBPACK_IMPORTED_MODULE_6__["default"], dropdownMenuProps);
- if (dropdownRender) {
- return dropdownRender(menuNode, props);
- }
- return null;
- },
- getDropdownTransitionName: function getDropdownTransitionName() {
- var props = this.$props;
- var transitionName = props.transitionName;
- if (!transitionName && props.animation) {
- transitionName = this.getDropdownPrefixCls() + '-' + props.animation;
- }
- return transitionName;
- },
- getDropdownPrefixCls: function getDropdownPrefixCls() {
- return this.prefixCls + '-dropdown';
- }
- },
- render: function render() {
- var _popupClassName;
- var h = arguments[0];
- var $props = this.$props,
- $slots = this.$slots;
- var multiple = $props.multiple,
- visible = $props.visible,
- inputValue = $props.inputValue,
- dropdownAlign = $props.dropdownAlign,
- disabled = $props.disabled,
- showSearch = $props.showSearch,
- dropdownClassName = $props.dropdownClassName,
- dropdownStyle = $props.dropdownStyle,
- dropdownMatchSelectWidth = $props.dropdownMatchSelectWidth,
- options = $props.options,
- getPopupContainer = $props.getPopupContainer,
- showAction = $props.showAction,
- empty = $props.empty;
- var _getListeners2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this),
- mouseenter = _getListeners2.mouseenter,
- mouseleave = _getListeners2.mouseleave,
- popupFocus = _getListeners2.popupFocus,
- dropdownVisibleChange = _getListeners2.dropdownVisibleChange;
- var dropdownPrefixCls = this.getDropdownPrefixCls();
- var popupClassName = (_popupClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_popupClassName, dropdownClassName, !!dropdownClassName), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_popupClassName, dropdownPrefixCls + '--' + (multiple ? 'multiple' : 'single'), 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_popupClassName, dropdownPrefixCls + '--empty', empty), _popupClassName);
- var popupElement = this.getDropdownElement({
- props: {
- menuItems: options,
- multiple: multiple,
- inputValue: inputValue,
- visible: visible
- },
- on: {
- popupFocus: popupFocus
- }
- });
- var hideAction = void 0;
- if (disabled) {
- hideAction = [];
- } else if (Object(_util__WEBPACK_IMPORTED_MODULE_7__["isSingleMode"])($props) && !showSearch) {
- hideAction = ['click'];
- } else {
- hideAction = ['blur'];
- }
- var popupStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dropdownStyle);
- var widthProp = dropdownMatchSelectWidth ? 'width' : 'minWidth';
- if (this.dropdownWidth) {
- popupStyle[widthProp] = this.dropdownWidth + 'px';
- }
- var triggerProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $props, {
- showAction: disabled ? [] : showAction,
- hideAction: hideAction,
- ref: 'triggerRef',
- popupPlacement: 'bottomLeft',
- builtinPlacements: BUILT_IN_PLACEMENTS,
- prefixCls: dropdownPrefixCls,
- popupTransitionName: this.getDropdownTransitionName(),
- popupAlign: dropdownAlign,
- popupVisible: visible,
- getPopupContainer: getPopupContainer,
- popupClassName: classnames__WEBPACK_IMPORTED_MODULE_2___default()(popupClassName),
- popupStyle: popupStyle
- }),
- on: {
- popupVisibleChange: dropdownVisibleChange
- },
- directives: [{
- name: 'ant-ref',
- value: this.saveTriggerRef
- }]
- };
- if (mouseenter) {
- triggerProps.on.mouseenter = mouseenter;
- }
- if (mouseleave) {
- triggerProps.on.mouseleave = mouseleave;
- }
- return h(
- _vc_trigger__WEBPACK_IMPORTED_MODULE_4__["default"],
- triggerProps,
- [$slots['default'], h(
- 'template',
- { slot: 'popup' },
- [popupElement]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-select/index.js":
- /*!***************************************!*\
- !*** ./components/vc-select/index.js ***!
- \***************************************/
- /*! exports provided: Select, Option, OptGroup, SelectPropTypes, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Select */ "./components/vc-select/Select.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Select", function() { return _Select__WEBPACK_IMPORTED_MODULE_0__["Select"]; });
- /* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Option */ "./components/vc-select/Option.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Option", function() { return _Option__WEBPACK_IMPORTED_MODULE_1__["default"]; });
- /* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-select/PropTypes.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectPropTypes", function() { return _PropTypes__WEBPACK_IMPORTED_MODULE_2__["SelectPropTypes"]; });
- /* harmony import */ var _OptGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OptGroup */ "./components/vc-select/OptGroup.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OptGroup", function() { return _OptGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
- // based on vc-select 9.2.2
- _Select__WEBPACK_IMPORTED_MODULE_0__["Select"].Option = _Option__WEBPACK_IMPORTED_MODULE_1__["default"];
- _Select__WEBPACK_IMPORTED_MODULE_0__["Select"].OptGroup = _OptGroup__WEBPACK_IMPORTED_MODULE_3__["default"];
- _Select__WEBPACK_IMPORTED_MODULE_0__["default"].Option = _Option__WEBPACK_IMPORTED_MODULE_1__["default"];
- _Select__WEBPACK_IMPORTED_MODULE_0__["default"].OptGroup = _OptGroup__WEBPACK_IMPORTED_MODULE_3__["default"];
- /* harmony default export */ __webpack_exports__["default"] = (_Select__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-select/util.js":
- /*!**************************************!*\
- !*** ./components/vc-select/util.js ***!
- \**************************************/
- /*! exports provided: toTitle, getValuePropValue, getPropValue, isMultiple, isCombobox, isMultipleOrTags, isMultipleOrTagsOrCombobox, isSingleMode, toArray, getMapKey, preventDefaultEvent, findIndexInValueBySingleValue, getLabelFromPropsValue, getSelectKeys, UNSELECTABLE_STYLE, UNSELECTABLE_ATTRIBUTE, findFirstMenuItem, includesSeparators, splitBySeparators, defaultFilterFn, validateOptionValue, saveRef, generateUUID */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toTitle", function() { return toTitle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValuePropValue", function() { return getValuePropValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPropValue", function() { return getPropValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMultiple", function() { return isMultiple; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCombobox", function() { return isCombobox; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMultipleOrTags", function() { return isMultipleOrTags; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMultipleOrTagsOrCombobox", function() { return isMultipleOrTagsOrCombobox; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSingleMode", function() { return isSingleMode; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMapKey", function() { return getMapKey; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "preventDefaultEvent", function() { return preventDefaultEvent; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIndexInValueBySingleValue", function() { return findIndexInValueBySingleValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLabelFromPropsValue", function() { return getLabelFromPropsValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSelectKeys", function() { return getSelectKeys; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_STYLE", function() { return UNSELECTABLE_STYLE; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_ATTRIBUTE", function() { return UNSELECTABLE_ATTRIBUTE; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findFirstMenuItem", function() { return findFirstMenuItem; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "includesSeparators", function() { return includesSeparators; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitBySeparators", function() { return splitBySeparators; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultFilterFn", function() { return defaultFilterFn; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateOptionValue", function() { return validateOptionValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveRef", function() { return saveRef; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateUUID", function() { return generateUUID; });
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- function toTitle(title) {
- if (typeof title === 'string') {
- return title.trim();
- }
- return '';
- }
- function getValuePropValue(child) {
- if (!child) {
- return null;
- }
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
- if ('value' in props) {
- return props.value;
- }
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getKey"])(child) !== undefined) {
- return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getKey"])(child);
- }
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getSlotOptions"])(child).isSelectOptGroup) {
- var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(child, 'label');
- if (label) {
- return label;
- }
- }
- throw new Error('Need at least a key or a value or a label (only for OptGroup) for ' + child);
- }
- function getPropValue(child, prop) {
- if (prop === 'value') {
- return getValuePropValue(child);
- }
- if (prop === 'children') {
- var newChild = child.$slots ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneVNodes"])(child.$slots['default'], true) : Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneVNodes"])(child.componentOptions.children, true);
- if (newChild.length === 1 && !newChild[0].tag) {
- return newChild[0].text;
- }
- return newChild;
- }
- var data = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
- if (prop in data) {
- return data[prop];
- } else {
- return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getAttrs"])(child)[prop];
- }
- }
- function isMultiple(props) {
- return props.multiple;
- }
- function isCombobox(props) {
- return props.combobox;
- }
- function isMultipleOrTags(props) {
- return props.multiple || props.tags;
- }
- function isMultipleOrTagsOrCombobox(props) {
- return isMultipleOrTags(props) || isCombobox(props);
- }
- function isSingleMode(props) {
- return !isMultipleOrTagsOrCombobox(props);
- }
- function toArray(value) {
- var ret = value;
- if (value === undefined) {
- ret = [];
- } else if (!Array.isArray(value)) {
- ret = [value];
- }
- return ret;
- }
- function getMapKey(value) {
- return (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) + '-' + value;
- }
- function preventDefaultEvent(e) {
- e.preventDefault();
- }
- function findIndexInValueBySingleValue(value, singleValue) {
- var index = -1;
- if (value) {
- for (var i = 0; i < value.length; i++) {
- if (value[i] === singleValue) {
- index = i;
- break;
- }
- }
- }
- return index;
- }
- function getLabelFromPropsValue(value, key) {
- var label = void 0;
- value = toArray(value);
- if (value) {
- for (var i = 0; i < value.length; i++) {
- if (value[i].key === key) {
- label = value[i].label;
- break;
- }
- }
- }
- return label;
- }
- function getSelectKeys(menuItems, value) {
- if (value === null || value === undefined) {
- return [];
- }
- var selectedKeys = [];
- menuItems.forEach(function (item) {
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getSlotOptions"])(item).isMenuItemGroup) {
- selectedKeys = selectedKeys.concat(getSelectKeys(item.componentOptions.children, value));
- } else {
- var itemValue = getValuePropValue(item);
- var itemKey = item.key;
- if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey !== undefined) {
- selectedKeys.push(itemKey);
- }
- }
- });
- return selectedKeys;
- }
- var UNSELECTABLE_STYLE = {
- userSelect: 'none',
- WebkitUserSelect: 'none'
- };
- var UNSELECTABLE_ATTRIBUTE = {
- unselectable: 'on'
- };
- function findFirstMenuItem(children) {
- for (var i = 0; i < children.length; i++) {
- var child = children[i];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getSlotOptions"])(child).isMenuItemGroup) {
- var found = findFirstMenuItem(child.componentOptions.children);
- if (found) {
- return found;
- }
- } else if (!(props.disabled || props.disabled === '')) {
- return child;
- }
- }
- return null;
- }
- function includesSeparators(str, separators) {
- for (var i = 0; i < separators.length; ++i) {
- if (str.lastIndexOf(separators[i]) > 0) {
- return true;
- }
- }
- return false;
- }
- function splitBySeparators(str, separators) {
- var reg = new RegExp('[' + separators.join() + ']');
- return str.split(reg).filter(function (token) {
- return token;
- });
- }
- function defaultFilterFn(input, child) {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
- if (props.disabled) {
- return false;
- }
- var value = getPropValue(child, this.optionFilterProp);
- if (value.length && value[0].text) {
- value = value[0].text;
- } else {
- value = String(value);
- }
- return value.toLowerCase().indexOf(input.toLowerCase()) > -1;
- }
- function validateOptionValue(value, props) {
- if (isSingleMode(props) || isMultiple(props)) {
- return;
- }
- if (typeof value !== 'string') {
- throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.');
- }
- }
- function saveRef(instance, name) {
- return function (node) {
- instance[name] = node;
- };
- }
- function generateUUID() {
- if (false) {}
- var d = new Date().getTime();
- var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
- var r = (d + Math.random() * 16) % 16 | 0;
- d = Math.floor(d / 16);
- return (c === 'x' ? r : r & 0x7 | 0x8).toString(16);
- });
- return uuid;
- }
- /***/ }),
- /***/ "./components/vc-slick/src/arrows.js":
- /*!*******************************************!*\
- !*** ./components/vc-slick/src/arrows.js ***!
- \*******************************************/
- /*! exports provided: PrevArrow, NextArrow */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PrevArrow", function() { return PrevArrow; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NextArrow", function() { return NextArrow; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
- function noop() {}
- var PrevArrow = {
- functional: true,
- clickHandler: function clickHandler(options, handle, e) {
- if (e) {
- e.preventDefault();
- }
- handle(options, e);
- },
- render: function render(createElement, context) {
- var h = arguments[0];
- var props = context.props;
- var clickHandler = props.clickHandler,
- infinite = props.infinite,
- currentSlide = props.currentSlide,
- slideCount = props.slideCount,
- slidesToShow = props.slidesToShow;
- var prevClasses = { 'slick-arrow': true, 'slick-prev': true };
- var prevHandler = function prevHandler(e) {
- if (e) {
- e.preventDefault();
- }
- clickHandler({ message: 'previous' });
- };
- if (!infinite && (currentSlide === 0 || slideCount <= slidesToShow)) {
- prevClasses['slick-disabled'] = true;
- prevHandler = noop;
- }
- var prevArrowProps = {
- key: '0',
- domProps: {
- 'data-role': 'none'
- },
- 'class': prevClasses,
- style: { display: 'block' },
- on: {
- click: prevHandler
- }
- };
- var customProps = {
- currentSlide: currentSlide,
- slideCount: slideCount
- };
- var prevArrow = void 0;
- if (props.prevArrow) {
- prevArrow = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(props.prevArrow(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, prevArrowProps, {
- props: customProps
- })), {
- key: '0',
- 'class': prevClasses,
- style: { display: 'block' },
- on: {
- click: prevHandler
- }
- });
- } else {
- prevArrow = h(
- 'button',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: '0', attrs: { type: 'button' }
- }, prevArrowProps]),
- [' ', 'Previous']
- );
- }
- return prevArrow;
- }
- };
- var NextArrow = {
- functional: true,
- clickHandler: function clickHandler(options, handle, e) {
- if (e) {
- e.preventDefault();
- }
- handle(options, e);
- },
- render: function render(createElement, context) {
- var h = arguments[0];
- var props = context.props;
- var clickHandler = props.clickHandler,
- currentSlide = props.currentSlide,
- slideCount = props.slideCount;
- var nextClasses = { 'slick-arrow': true, 'slick-next': true };
- var nextHandler = function nextHandler(e) {
- if (e) {
- e.preventDefault();
- }
- clickHandler({ message: 'next' });
- };
- if (!Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_3__["canGoNext"])(props)) {
- nextClasses['slick-disabled'] = true;
- nextHandler = noop;
- }
- var nextArrowProps = {
- key: '1',
- domProps: {
- 'data-role': 'none'
- },
- 'class': nextClasses,
- style: { display: 'block' },
- on: {
- click: nextHandler
- }
- };
- var customProps = {
- currentSlide: currentSlide,
- slideCount: slideCount
- };
- var nextArrow = void 0;
- if (props.nextArrow) {
- nextArrow = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(props.nextArrow(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nextArrowProps, {
- props: customProps
- })), {
- key: '1',
- 'class': nextClasses,
- style: { display: 'block' },
- on: {
- click: nextHandler
- }
- });
- } else {
- nextArrow = h(
- 'button',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: '1', attrs: { type: 'button' }
- }, nextArrowProps]),
- [' ', 'Next']
- );
- }
- return nextArrow;
- }
- };
- /***/ }),
- /***/ "./components/vc-slick/src/default-props.js":
- /*!**************************************************!*\
- !*** ./components/vc-slick/src/default-props.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- var defaultProps = {
- accessibility: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- // 自定义高度
- adaptiveHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- afterChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
- arrows: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- autoplay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- autoplaySpeed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(3000),
- beforeChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
- centerMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- centerPadding: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('50px'),
- cssEase: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('ease'),
- dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- dotsClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('slick-dots'),
- draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- unslick: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- easing: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('linear'),
- edgeFriction: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.35),
- fade: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- focusOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- infinite: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- initialSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0),
- lazyLoad: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
- verticalSwiping: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- asNavFor: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
- // 圆点hover是否暂停
- pauseOnDotsHover: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- // focus是否暂停
- pauseOnFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- // hover是否暂停
- pauseOnHover: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- responsive: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
- rows: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
- rtl: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- slide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('div'),
- slidesPerRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
- slidesToScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
- slidesToShow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
- speed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(500),
- swipe: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- swipeEvent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
- swipeToSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- touchMove: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- touchThreshold: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(5),
- useCSS: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- useTransform: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- variableWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- waitForAnimate: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
- __propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- };
- /* harmony default export */ __webpack_exports__["default"] = (defaultProps);
- /***/ }),
- /***/ "./components/vc-slick/src/dots.js":
- /*!*****************************************!*\
- !*** ./components/vc-slick/src/dots.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- var getDotCount = function getDotCount(spec) {
- var dots = void 0;
- if (spec.infinite) {
- dots = Math.ceil(spec.slideCount / spec.slidesToScroll);
- } else {
- dots = Math.ceil((spec.slideCount - spec.slidesToShow) / spec.slidesToScroll) + 1;
- }
- return dots;
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- functional: true,
- render: function render(createElement, context) {
- var h = arguments[0];
- var props = context.props,
- listeners = context.listeners;
- var slideCount = props.slideCount,
- slidesToScroll = props.slidesToScroll,
- slidesToShow = props.slidesToShow,
- infinite = props.infinite,
- currentSlide = props.currentSlide,
- appendDots = props.appendDots,
- customPaging = props.customPaging,
- clickHandler = props.clickHandler,
- dotsClass = props.dotsClass;
- var dotCount = getDotCount({
- slideCount: slideCount,
- slidesToScroll: slidesToScroll,
- slidesToShow: slidesToShow,
- infinite: infinite
- });
- // Apply join & split to Array to pre-fill it for IE8
- //
- // Credit: http://stackoverflow.com/a/13735425/1849458
- var mouseenter = listeners.mouseenter,
- mouseover = listeners.mouseover,
- mouseleave = listeners.mouseleave;
- var mouseEvents = { mouseenter: mouseenter, mouseover: mouseover, mouseleave: mouseleave };
- var dots = Array.apply(null, Array(dotCount + 1).join('0').split('')).map(function (x, i) {
- var leftBound = i * slidesToScroll;
- var rightBound = i * slidesToScroll + (slidesToScroll - 1);
- var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
- 'slick-active': currentSlide >= leftBound && currentSlide <= rightBound
- });
- var dotOptions = {
- message: 'dots',
- index: i,
- slidesToScroll: slidesToScroll,
- currentSlide: currentSlide
- };
- function onClick(e) {
- // In Autoplay the focus stays on clicked button even after transition
- // to next slide. That only goes away by click somewhere outside
- if (e) {
- e.preventDefault();
- }
- clickHandler(dotOptions);
- }
- return h(
- 'li',
- { key: i, 'class': className },
- [Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(customPaging({ i: i }), {
- on: {
- click: onClick
- }
- })]
- );
- });
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(appendDots({ dots: dots }), {
- 'class': dotsClass,
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, mouseEvents)
- });
- }
- });
- /***/ }),
- /***/ "./components/vc-slick/src/index.js":
- /*!******************************************!*\
- !*** ./components/vc-slick/src/index.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _slider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./slider */ "./components/vc-slick/src/slider.js");
- // base react-slick 0.23.2
- /* harmony default export */ __webpack_exports__["default"] = (_slider__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-slick/src/initial-state.js":
- /*!**************************************************!*\
- !*** ./components/vc-slick/src/initial-state.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var initialState = {
- animating: false,
- autoplaying: null,
- currentDirection: 0,
- currentLeft: null,
- currentSlide: 0,
- direction: 1,
- dragging: false,
- edgeDragged: false,
- initialized: false,
- lazyLoadedList: [],
- listHeight: null,
- listWidth: null,
- scrolling: false,
- slideCount: null,
- slideHeight: null,
- slideWidth: null,
- swipeLeft: null,
- swiped: false, // used by swipeEvent. differentites between touch and swipe.
- swiping: false,
- touchObject: { startX: 0, startY: 0, curX: 0, curY: 0 },
- trackStyle: {},
- trackWidth: 0
- };
- /* harmony default export */ __webpack_exports__["default"] = (initialState);
- /***/ }),
- /***/ "./components/vc-slick/src/inner-slider.js":
- /*!*************************************************!*\
- !*** ./components/vc-slick/src/inner-slider.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _default_props__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./default-props */ "./components/vc-slick/src/default-props.js");
- /* harmony import */ var _initial_state__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./initial-state */ "./components/vc-slick/src/initial-state.js");
- /* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
- /* harmony import */ var _track__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./track */ "./components/vc-slick/src/track.js");
- /* harmony import */ var _dots__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./dots */ "./components/vc-slick/src/dots.js");
- /* harmony import */ var _arrows__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./arrows */ "./components/vc-slick/src/arrows.js");
- /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
- vue__WEBPACK_IMPORTED_MODULE_5___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_6___default.a, { name: 'ant-ref' });
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _default_props__WEBPACK_IMPORTED_MODULE_9__["default"]),
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
- data: function data() {
- this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
- this.list = null;
- this.track = null;
- this.callbackTimers = [];
- this.clickable = true;
- this.debouncedResize = null;
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _initial_state__WEBPACK_IMPORTED_MODULE_10__["default"], {
- currentSlide: this.initialSlide,
- slideCount: this.children.length
- });
- },
- methods: {
- listRefHandler: function listRefHandler(ref) {
- this.list = ref;
- },
- trackRefHandler: function trackRefHandler(ref) {
- this.track = ref;
- },
- adaptHeight: function adaptHeight() {
- if (this.adaptiveHeight && this.list) {
- var elem = this.list.querySelector('[data-index="' + this.currentSlide + '"]');
- this.list.style.height = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getHeight"])(elem) + 'px';
- }
- },
- onWindowResized: function onWindowResized(setTrackStyle) {
- var _this = this;
- if (this.debouncedResize) this.debouncedResize.cancel();
- this.debouncedResize = lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default()(function () {
- return _this.resizeWindow(setTrackStyle);
- }, 50);
- this.debouncedResize();
- },
- resizeWindow: function resizeWindow() {
- var _this2 = this;
- var setTrackStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
- if (!this.track) return;
- var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- listRef: this.list,
- trackRef: this.track,
- children: this.children
- }, this.$props, this.$data);
- this.updateState(spec, setTrackStyle, function () {
- if (_this2.autoplay) {
- _this2.handleAutoPlay('update');
- } else {
- _this2.pause('paused');
- }
- });
- // animating state should be cleared while resizing, otherwise autoplay stops working
- this.setState({
- animating: false
- });
- clearTimeout(this.animationEndCallback);
- delete this.animationEndCallback;
- },
- updateState: function updateState(spec, setTrackStyle, callback) {
- var updatedState = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["initializedState"])(spec);
- spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, spec, updatedState, { slideIndex: updatedState.currentSlide });
- var targetLeft = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getTrackLeft"])(spec);
- spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, spec, { left: targetLeft });
- var trackStyle = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getTrackCSS"])(spec);
- if (setTrackStyle || this.children.length !== spec.children.length) {
- updatedState['trackStyle'] = trackStyle;
- }
- this.setState(updatedState, callback);
- },
- ssrInit: function ssrInit() {
- var children = this.children;
- if (this.variableWidth) {
- var _trackWidth = 0;
- var _trackLeft = 0;
- var childrenWidths = [];
- var preClones = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
- slideCount: children.length
- }));
- var postClones = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPostClones"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
- slideCount: children.length
- }));
- children.forEach(function (child) {
- var childWidth = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getStyle"])(child).width.split('px')[0];
- childrenWidths.push(childWidth);
- _trackWidth += childWidth;
- });
- for (var i = 0; i < preClones; i++) {
- _trackLeft += childrenWidths[childrenWidths.length - 1 - i];
- _trackWidth += childrenWidths[childrenWidths.length - 1 - i];
- }
- for (var _i = 0; _i < postClones; _i++) {
- _trackWidth += childrenWidths[_i];
- }
- for (var _i2 = 0; _i2 < this.currentSlide; _i2++) {
- _trackLeft += childrenWidths[_i2];
- }
- var _trackStyle = {
- width: _trackWidth + 'px',
- left: -_trackLeft + 'px'
- };
- if (this.centerMode) {
- var currentWidth = childrenWidths[this.currentSlide] + 'px';
- _trackStyle.left = 'calc(' + _trackStyle.left + ' + (100% - ' + currentWidth + ') / 2 ) ';
- }
- this.setState({
- trackStyle: _trackStyle
- });
- return;
- }
- var childrenCount = children.length;
- var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, { slideCount: childrenCount });
- var slideCount = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(spec) + Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPostClones"])(spec) + childrenCount;
- var trackWidth = 100 / this.slidesToShow * slideCount;
- var slideWidth = 100 / slideCount;
- var trackLeft = -slideWidth * (Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(spec) + this.currentSlide) * trackWidth / 100;
- if (this.centerMode) {
- trackLeft += (100 - slideWidth * trackWidth / 100) / 2;
- }
- var trackStyle = {
- width: trackWidth + '%',
- left: trackLeft + '%'
- };
- this.setState({
- slideWidth: slideWidth + '%',
- trackStyle: trackStyle
- });
- },
- checkImagesLoad: function checkImagesLoad() {
- var _this3 = this;
- var images = document.querySelectorAll('.slick-slide img');
- var imagesCount = images.length;
- var loadedCount = 0;
- Array.prototype.forEach.call(images, function (image) {
- var handler = function handler() {
- return ++loadedCount && loadedCount >= imagesCount && _this3.onWindowResized();
- };
- if (!image.onclick) {
- image.onclick = function () {
- return image.parentNode.focus();
- };
- } else {
- var prevClickHandler = image.onclick;
- image.onclick = function () {
- prevClickHandler();
- image.parentNode.focus();
- };
- }
- if (!image.onload) {
- if (_this3.$props.lazyLoad) {
- image.onload = function () {
- _this3.adaptHeight();
- _this3.callbackTimers.push(setTimeout(_this3.onWindowResized, _this3.speed));
- };
- } else {
- image.onload = handler;
- image.onerror = function () {
- handler();
- _this3.$emit('lazyLoadError');
- };
- }
- }
- });
- },
- progressiveLazyLoad: function progressiveLazyLoad() {
- var slidesToLoad = [];
- var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data);
- for (var index = this.currentSlide; index < this.slideCount + Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPostClones"])(spec); index++) {
- if (this.lazyLoadedList.indexOf(index) < 0) {
- slidesToLoad.push(index);
- break;
- }
- }
- for (var _index = this.currentSlide - 1; _index >= -Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(spec); _index--) {
- if (this.lazyLoadedList.indexOf(_index) < 0) {
- slidesToLoad.push(_index);
- break;
- }
- }
- if (slidesToLoad.length > 0) {
- this.setState(function (state) {
- return {
- lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad)
- };
- });
- this.$emit('lazyLoad', slidesToLoad);
- } else {
- if (this.lazyLoadTimer) {
- clearInterval(this.lazyLoadTimer);
- delete this.lazyLoadTimer;
- }
- }
- },
- slideHandler: function slideHandler(index) {
- var _this4 = this;
- var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- var _$props = this.$props,
- asNavFor = _$props.asNavFor,
- currentSlide = _$props.currentSlide,
- beforeChange = _$props.beforeChange,
- speed = _$props.speed,
- afterChange = _$props.afterChange;
- var _slideHandler2 = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["slideHandler"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- index: index
- }, this.$props, this.$data, {
- trackRef: this.track,
- useCSS: this.useCSS && !dontAnimate
- })),
- state = _slideHandler2.state,
- nextState = _slideHandler2.nextState;
- if (!state) return;
- beforeChange && beforeChange(currentSlide, state.currentSlide);
- var slidesToLoad = state.lazyLoadedList.filter(function (value) {
- return _this4.lazyLoadedList.indexOf(value) < 0;
- });
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this).lazyLoad && slidesToLoad.length > 0) {
- this.$emit('lazyLoad', slidesToLoad);
- }
- this.setState(state, function () {
- asNavFor && asNavFor.innerSlider.currentSlide !== currentSlide && asNavFor.innerSlider.slideHandler(index);
- if (!nextState) return;
- _this4.animationEndCallback = setTimeout(function () {
- var animating = nextState.animating,
- firstBatch = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(nextState, ['animating']);
- _this4.setState(firstBatch, function () {
- _this4.callbackTimers.push(setTimeout(function () {
- return _this4.setState({ animating: animating });
- }, 10));
- afterChange && afterChange(state.currentSlide);
- delete _this4.animationEndCallback;
- });
- }, speed);
- });
- },
- changeSlide: function changeSlide(options) {
- var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data);
- var targetSlide = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["changeSlide"])(spec, options);
- if (targetSlide !== 0 && !targetSlide) return;
- if (dontAnimate === true) {
- this.slideHandler(targetSlide, dontAnimate);
- } else {
- this.slideHandler(targetSlide);
- }
- },
- clickHandler: function clickHandler(e) {
- if (this.clickable === false) {
- e.stopPropagation();
- e.preventDefault();
- }
- this.clickable = true;
- },
- keyHandler: function keyHandler(e) {
- var dir = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["keyHandler"])(e, this.accessibility, this.rtl);
- dir !== '' && this.changeSlide({ message: dir });
- },
- selectHandler: function selectHandler(options) {
- this.changeSlide(options);
- },
- disableBodyScroll: function disableBodyScroll() {
- var preventDefault = function preventDefault(e) {
- e = e || window.event;
- if (e.preventDefault) e.preventDefault();
- e.returnValue = false;
- };
- window.ontouchmove = preventDefault;
- },
- enableBodyScroll: function enableBodyScroll() {
- window.ontouchmove = null;
- },
- swipeStart: function swipeStart(e) {
- if (this.verticalSwiping) {
- this.disableBodyScroll();
- }
- var state = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["swipeStart"])(e, this.swipe, this.draggable);
- state !== '' && this.setState(state);
- },
- swipeMove: function swipeMove(e) {
- var state = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["swipeMove"])(e, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
- trackRef: this.track,
- listRef: this.list,
- slideIndex: this.currentSlide
- }));
- if (!state) return;
- if (state['swiping']) {
- this.clickable = false;
- }
- this.setState(state);
- },
- swipeEnd: function swipeEnd(e) {
- var state = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["swipeEnd"])(e, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
- trackRef: this.track,
- listRef: this.list,
- slideIndex: this.currentSlide
- }));
- if (!state) return;
- var triggerSlideHandler = state['triggerSlideHandler'];
- delete state['triggerSlideHandler'];
- this.setState(state);
- if (triggerSlideHandler === undefined) return;
- this.slideHandler(triggerSlideHandler);
- if (this.$props.verticalSwiping) {
- this.enableBodyScroll();
- }
- },
- slickPrev: function slickPrev() {
- var _this5 = this;
- // this and fellow methods are wrapped in setTimeout
- // to make sure initialize setState has happened before
- // any of such methods are called
- this.callbackTimers.push(setTimeout(function () {
- return _this5.changeSlide({ message: 'previous' });
- }, 0));
- },
- slickNext: function slickNext() {
- var _this6 = this;
- this.callbackTimers.push(setTimeout(function () {
- return _this6.changeSlide({ message: 'next' });
- }, 0));
- },
- slickGoTo: function slickGoTo(slide) {
- var _this7 = this;
- var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- slide = Number(slide);
- if (isNaN(slide)) return '';
- this.callbackTimers.push(setTimeout(function () {
- return _this7.changeSlide({
- message: 'index',
- index: slide,
- currentSlide: _this7.currentSlide
- }, dontAnimate);
- }, 0));
- },
- play: function play() {
- var nextIndex = void 0;
- if (this.rtl) {
- nextIndex = this.currentSlide - this.slidesToScroll;
- } else {
- if (Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["canGoNext"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data))) {
- nextIndex = this.currentSlide + this.slidesToScroll;
- } else {
- return false;
- }
- }
- this.slideHandler(nextIndex);
- },
- handleAutoPlay: function handleAutoPlay(playType) {
- if (this.autoplayTimer) {
- clearInterval(this.autoplayTimer);
- }
- var autoplaying = this.autoplaying;
- if (playType === 'update') {
- if (autoplaying === 'hovered' || autoplaying === 'focused' || autoplaying === 'paused') {
- return;
- }
- } else if (playType === 'leave') {
- if (autoplaying === 'paused' || autoplaying === 'focused') {
- return;
- }
- } else if (playType === 'blur') {
- if (autoplaying === 'paused' || autoplaying === 'hovered') {
- return;
- }
- }
- this.autoplayTimer = setInterval(this.play, this.autoplaySpeed + 50);
- this.setState({ autoplaying: 'playing' });
- },
- pause: function pause(pauseType) {
- if (this.autoplayTimer) {
- clearInterval(this.autoplayTimer);
- this.autoplayTimer = null;
- }
- var autoplaying = this.autoplaying;
- if (pauseType === 'paused') {
- this.setState({ autoplaying: 'paused' });
- } else if (pauseType === 'focused') {
- if (autoplaying === 'hovered' || autoplaying === 'playing') {
- this.setState({ autoplaying: 'focused' });
- }
- } else {
- // pauseType is 'hovered'
- if (autoplaying === 'playing') {
- this.setState({ autoplaying: 'hovered' });
- }
- }
- },
- onDotsOver: function onDotsOver() {
- this.autoplay && this.pause('hovered');
- },
- onDotsLeave: function onDotsLeave() {
- this.autoplay && this.autoplaying === 'hovered' && this.handleAutoPlay('leave');
- },
- onTrackOver: function onTrackOver() {
- this.autoplay && this.pause('hovered');
- },
- onTrackLeave: function onTrackLeave() {
- this.autoplay && this.autoplaying === 'hovered' && this.handleAutoPlay('leave');
- },
- onSlideFocus: function onSlideFocus() {
- this.autoplay && this.pause('focused');
- },
- onSlideBlur: function onSlideBlur() {
- this.autoplay && this.autoplaying === 'focused' && this.handleAutoPlay('blur');
- },
- customPaging: function customPaging(_ref) {
- var i = _ref.i;
- var h = this.$createElement;
- return h('button', [i + 1]);
- },
- appendDots: function appendDots(_ref2) {
- var dots = _ref2.dots;
- var h = this.$createElement;
- return h(
- 'ul',
- { style: { display: 'block' } },
- [dots]
- );
- }
- },
- beforeMount: function beforeMount() {
- this.ssrInit();
- this.$emit('init');
- if (this.lazyLoad) {
- var slidesToLoad = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getOnDemandLazySlides"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data));
- if (slidesToLoad.length > 0) {
- this.setState(function (prevState) {
- return {
- lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
- };
- });
- this.$emit('lazyLoad', slidesToLoad);
- }
- }
- },
- mounted: function mounted() {
- var _this8 = this;
- this.$nextTick(function () {
- var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- listRef: _this8.list,
- trackRef: _this8.track,
- children: _this8.children
- }, _this8.$props);
- _this8.updateState(spec, true, function () {
- _this8.adaptHeight();
- _this8.autoplay && _this8.handleAutoPlay('update');
- });
- if (_this8.lazyLoad === 'progressive') {
- _this8.lazyLoadTimer = setInterval(_this8.progressiveLazyLoad, 1000);
- }
- _this8.ro = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_15__["default"](function () {
- if (_this8.animating) {
- _this8.onWindowResized(false); // don't set trackStyle hence don't break animation
- _this8.callbackTimers.push(setTimeout(function () {
- return _this8.onWindowResized();
- }, _this8.speed));
- } else {
- _this8.onWindowResized();
- }
- });
- _this8.ro.observe(_this8.list);
- Array.prototype.forEach.call(document.querySelectorAll('.slick-slide'), function (slide) {
- slide.onfocus = _this8.$props.pauseOnFocus ? _this8.onSlideFocus : null;
- slide.onblur = _this8.$props.pauseOnFocus ? _this8.onSlideBlur : null;
- });
- // To support server-side rendering
- if (!window) {
- return;
- }
- if (window.addEventListener) {
- window.addEventListener('resize', _this8.onWindowResized);
- } else {
- window.attachEvent('onresize', _this8.onWindowResized);
- }
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.animationEndCallback) {
- clearTimeout(this.animationEndCallback);
- }
- if (this.lazyLoadTimer) {
- clearInterval(this.lazyLoadTimer);
- }
- if (this.callbackTimers.length) {
- this.callbackTimers.forEach(function (timer) {
- return clearTimeout(timer);
- });
- this.callbackTimers = [];
- }
- if (window.addEventListener) {
- window.removeEventListener('resize', this.onWindowResized);
- } else {
- window.detachEvent('onresize', this.onWindowResized);
- }
- if (this.autoplayTimer) {
- clearInterval(this.autoplayTimer);
- }
- },
- updated: function updated() {
- this.checkImagesLoad();
- this.$emit('reInit');
- if (this.lazyLoad) {
- var slidesToLoad = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getOnDemandLazySlides"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data));
- if (slidesToLoad.length > 0) {
- this.setState(function (prevState) {
- return {
- lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
- };
- });
- this.$emit('lazyLoad');
- }
- }
- // if (this.props.onLazyLoad) {
- // this.props.onLazyLoad([leftMostSlide])
- // }
- this.adaptHeight();
- },
- watch: {
- __propsSymbol__: function __propsSymbol__() {
- var _this9 = this;
- var nextProps = this.$props;
- var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- listRef: this.list,
- trackRef: this.track
- }, nextProps, this.$data);
- var setTrackStyle = false;
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
- try {
- for (var _iterator = Object.keys(this.preProps)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var key = _step.value;
- if (!nextProps.hasOwnProperty(key)) {
- setTrackStyle = true;
- break;
- }
- if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(nextProps[key]) === 'object' || typeof nextProps[key] === 'function' || babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(nextProps[key]) === 'symbol') {
- continue;
- }
- if (nextProps[key] !== this.preProps[key]) {
- setTrackStyle = true;
- break;
- }
- }
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator['return']) {
- _iterator['return']();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
- this.updateState(spec, setTrackStyle, function () {
- if (_this9.currentSlide >= nextProps.children.length) {
- _this9.changeSlide({
- message: 'index',
- index: nextProps.children.length - nextProps.slidesToShow,
- currentSlide: _this9.currentSlide
- });
- }
- if (nextProps.autoplay) {
- _this9.handleAutoPlay('update');
- } else {
- _this9.pause('paused');
- }
- });
- this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, nextProps);
- }
- },
- render: function render() {
- var h = arguments[0];
- var className = classnames__WEBPACK_IMPORTED_MODULE_4___default()('slick-slider', {
- 'slick-vertical': this.vertical,
- 'slick-initialized': true
- });
- var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data);
- var trackProps = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["extractObject"])(spec, ['fade', 'cssEase', 'speed', 'infinite', 'centerMode', 'focusOnSelect', 'currentSlide', 'lazyLoad', 'lazyLoadedList', 'rtl', 'slideWidth', 'slideHeight', 'listHeight', 'vertical', 'slidesToShow', 'slidesToScroll', 'slideCount', 'trackStyle', 'variableWidth', 'unslick', 'centerPadding']);
- var pauseOnHover = this.$props.pauseOnHover;
- trackProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, trackProps, {
- focusOnSelect: this.focusOnSelect ? this.selectHandler : null
- }),
- directives: [{
- name: 'ant-ref',
- value: this.trackRefHandler
- }],
- on: {
- mouseenter: pauseOnHover ? this.onTrackOver : noop,
- mouseleave: pauseOnHover ? this.onTrackLeave : noop,
- mouseover: pauseOnHover ? this.onTrackOver : noop
- }
- };
- var dots = void 0;
- if (this.dots === true && this.slideCount >= this.slidesToShow) {
- var dotProps = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["extractObject"])(spec, ['dotsClass', 'slideCount', 'slidesToShow', 'currentSlide', 'slidesToScroll', 'clickHandler', 'children', 'infinite', 'appendDots']);
- dotProps.customPaging = this.customPaging;
- dotProps.appendDots = this.appendDots;
- var _$scopedSlots = this.$scopedSlots,
- customPaging = _$scopedSlots.customPaging,
- appendDots = _$scopedSlots.appendDots;
- if (customPaging) {
- dotProps.customPaging = customPaging;
- }
- if (appendDots) {
- dotProps.appendDots = appendDots;
- }
- var pauseOnDotsHover = this.$props.pauseOnDotsHover;
- dotProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, dotProps, {
- clickHandler: this.changeSlide
- }),
- on: {
- mouseenter: pauseOnDotsHover ? this.onDotsLeave : noop,
- mouseover: pauseOnDotsHover ? this.onDotsOver : noop,
- mouseleave: pauseOnDotsHover ? this.onDotsLeave : noop
- }
- };
- dots = h(_dots__WEBPACK_IMPORTED_MODULE_13__["default"], dotProps);
- }
- var prevArrow = void 0,
- nextArrow = void 0;
- var arrowProps = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["extractObject"])(spec, ['infinite', 'centerMode', 'currentSlide', 'slideCount', 'slidesToShow']);
- arrowProps.clickHandler = this.changeSlide;
- var _$scopedSlots2 = this.$scopedSlots,
- prevArrowCustom = _$scopedSlots2.prevArrow,
- nextArrowCustom = _$scopedSlots2.nextArrow;
- if (prevArrowCustom) {
- arrowProps.prevArrow = prevArrowCustom;
- }
- if (nextArrowCustom) {
- arrowProps.nextArrow = nextArrowCustom;
- }
- if (this.arrows) {
- prevArrow = h(_arrows__WEBPACK_IMPORTED_MODULE_14__["PrevArrow"], { props: arrowProps });
- nextArrow = h(_arrows__WEBPACK_IMPORTED_MODULE_14__["NextArrow"], { props: arrowProps });
- }
- var verticalHeightStyle = null;
- if (this.vertical) {
- verticalHeightStyle = {
- height: typeof this.listHeight === 'number' ? this.listHeight + 'px' : this.listHeight
- };
- }
- var centerPaddingStyle = null;
- if (this.vertical === false) {
- if (this.centerMode === true) {
- centerPaddingStyle = {
- padding: '0px ' + this.centerPadding
- };
- }
- } else {
- if (this.centerMode === true) {
- centerPaddingStyle = {
- padding: this.centerPadding + ' 0px'
- };
- }
- }
- var listStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, verticalHeightStyle, centerPaddingStyle);
- var touchMove = this.touchMove;
- var listProps = {
- directives: [{
- name: 'ant-ref',
- value: this.listRefHandler
- }],
- 'class': 'slick-list',
- style: listStyle,
- on: {
- click: this.clickHandler,
- mousedown: touchMove ? this.swipeStart : noop,
- mousemove: this.dragging && touchMove ? this.swipeMove : noop,
- mouseup: touchMove ? this.swipeEnd : noop,
- mouseleave: this.dragging && touchMove ? this.swipeEnd : noop,
- touchstart: touchMove ? this.swipeStart : noop,
- touchmove: this.dragging && touchMove ? this.swipeMove : noop,
- touchend: touchMove ? this.swipeEnd : noop,
- touchcancel: this.dragging && touchMove ? this.swipeEnd : noop,
- keydown: this.accessibility ? this.keyHandler : noop
- }
- };
- var innerSliderProps = {
- 'class': className,
- props: {
- dir: 'ltr'
- }
- };
- if (this.unslick) {
- listProps = {
- 'class': 'slick-list',
- directives: [{
- name: 'ant-ref',
- value: this.listRefHandler
- }]
- };
- innerSliderProps = { 'class': className };
- }
- return h(
- 'div',
- innerSliderProps,
- [!this.unslick ? prevArrow : '', h(
- 'div',
- listProps,
- [h(
- _track__WEBPACK_IMPORTED_MODULE_12__["default"],
- trackProps,
- [this.children]
- )]
- ), !this.unslick ? nextArrow : '', !this.unslick ? dots : '']
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-slick/src/slider.js":
- /*!*******************************************!*\
- !*** ./components/vc-slick/src/slider.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var json2mq__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! json2mq */ "./node_modules/json2mq/index.js");
- /* harmony import */ var json2mq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(json2mq__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _inner_slider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./inner-slider */ "./components/vc-slick/src/inner-slider.js");
- /* harmony import */ var _default_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./default-props */ "./components/vc-slick/src/default-props.js");
- /* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
- var enquire = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__["canUseDOM"])() && __webpack_require__(/*! enquire.js */ "./node_modules/enquire.js/src/index.js");
- vue__WEBPACK_IMPORTED_MODULE_2___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_3___default.a, { name: 'ant-ref' });
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _default_props__WEBPACK_IMPORTED_MODULE_8__["default"]),
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- data: function data() {
- this._responsiveMediaHandlers = [];
- return {
- breakpoint: null
- };
- },
- methods: {
- innerSliderRefHandler: function innerSliderRefHandler(ref) {
- this.innerSlider = ref;
- },
- media: function media(query, handler) {
- // javascript handler for css media query
- enquire.register(query, handler);
- this._responsiveMediaHandlers.push({ query: query, handler: handler });
- },
- slickPrev: function slickPrev() {
- this.innerSlider.slickPrev();
- },
- slickNext: function slickNext() {
- this.innerSlider.slickNext();
- },
- slickGoTo: function slickGoTo(slide) {
- var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- this.innerSlider.slickGoTo(slide, dontAnimate);
- },
- slickPause: function slickPause() {
- this.innerSlider.pause('paused');
- },
- slickPlay: function slickPlay() {
- this.innerSlider.handleAutoPlay('play');
- }
- },
- // handles responsive breakpoints
- beforeMount: function beforeMount() {
- var _this = this;
- // performance monitoring
- // if (process.env.NODE_ENV !== 'production') {
- // const { whyDidYouUpdate } = require('why-did-you-update')
- // whyDidYouUpdate(React)
- // }
- if (this.responsive) {
- var breakpoints = this.responsive.map(function (breakpt) {
- return breakpt.breakpoint;
- });
- // sort them in increasing order of their numerical value
- breakpoints.sort(function (x, y) {
- return x - y;
- });
- breakpoints.forEach(function (breakpoint, index) {
- // media query for each breakpoint
- var bQuery = void 0;
- if (index === 0) {
- bQuery = json2mq__WEBPACK_IMPORTED_MODULE_1___default()({ minWidth: 0, maxWidth: breakpoint });
- } else {
- bQuery = json2mq__WEBPACK_IMPORTED_MODULE_1___default()({
- minWidth: breakpoints[index - 1] + 1,
- maxWidth: breakpoint
- });
- }
- // when not using server side rendering
- Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__["canUseDOM"])() && _this.media(bQuery, function () {
- _this.setState({ breakpoint: breakpoint });
- });
- });
- // Register media query for full screen. Need to support resize from small to large
- // convert javascript object to media query string
- var query = json2mq__WEBPACK_IMPORTED_MODULE_1___default()({ minWidth: breakpoints.slice(-1)[0] });
- Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__["canUseDOM"])() && this.media(query, function () {
- _this.setState({ breakpoint: null });
- });
- }
- },
- beforeDestroy: function beforeDestroy() {
- this._responsiveMediaHandlers.forEach(function (obj) {
- enquire.unregister(obj.query, obj.handler);
- });
- },
- render: function render() {
- var _this2 = this;
- var h = arguments[0];
- var settings = void 0;
- var newProps = void 0;
- if (this.breakpoint) {
- newProps = this.responsive.filter(function (resp) {
- return resp.breakpoint === _this2.breakpoint;
- });
- settings = newProps[0].settings === 'unslick' ? 'unslick' : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, newProps[0].settings);
- } else {
- settings = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props);
- }
- // force scrolling by one if centerMode is on
- if (settings.centerMode) {
- if (settings.slidesToScroll > 1 && "development" !== 'production') {
- console.warn('slidesToScroll should be equal to 1 in centerMode, you are using ' + settings.slidesToScroll);
- }
- settings.slidesToScroll = 1;
- }
- // force showing one slide and scrolling by one if the fade mode is on
- if (settings.fade) {
- if (settings.slidesToShow > 1 && "development" !== 'production') {
- console.warn('slidesToShow should be equal to 1 when fade is true, you\'re using ' + settings.slidesToShow);
- }
- if (settings.slidesToScroll > 1 && "development" !== 'production') {
- console.warn('slidesToScroll should be equal to 1 when fade is true, you\'re using ' + settings.slidesToScroll);
- }
- settings.slidesToShow = 1;
- settings.slidesToScroll = 1;
- }
- // makes sure that children is an array, even when there is only 1 child
- var children = this.$slots['default'] || [];
- // Children may contain false or null, so we should filter them
- // children may also contain string filled with spaces (in certain cases where we use jsx strings)
- children = children.filter(function (child) {
- if (typeof child === 'string') {
- return !!child.trim();
- }
- return !!child;
- });
- // rows and slidesPerRow logic is handled here
- if (settings.variableWidth && (settings.rows > 1 || settings.slidesPerRow > 1)) {
- console.warn('variableWidth is not supported in case of rows > 1 or slidesPerRow > 1');
- settings.variableWidth = false;
- }
- var newChildren = [];
- var currentWidth = null;
- for (var i = 0; i < children.length; i += settings.rows * settings.slidesPerRow) {
- var newSlide = [];
- for (var j = i; j < i + settings.rows * settings.slidesPerRow; j += settings.slidesPerRow) {
- var row = [];
- for (var k = j; k < j + settings.slidesPerRow; k += 1) {
- if (settings.variableWidth && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(children[k])) {
- currentWidth = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(children[k]).width;
- }
- if (k >= children.length) break;
- row.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(children[k], {
- key: 100 * i + 10 * j + k,
- attrs: {
- tabIndex: -1
- },
- style: {
- width: 100 / settings.slidesPerRow + '%',
- display: 'inline-block'
- }
- }));
- }
- newSlide.push(h(
- 'div',
- { key: 10 * i + j },
- [row]
- ));
- }
- if (settings.variableWidth) {
- newChildren.push(h(
- 'div',
- { key: i, style: { width: currentWidth } },
- [newSlide]
- ));
- } else {
- newChildren.push(h(
- 'div',
- { key: i },
- [newSlide]
- ));
- }
- }
- if (settings === 'unslick') {
- var className = 'regular slider ' + (this.className || '');
- return h(
- 'div',
- { 'class': className },
- [newChildren]
- );
- } else if (newChildren.length <= settings.slidesToShow) {
- settings.unslick = true;
- }
- var sliderProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, settings, {
- children: newChildren,
- __propsSymbol__: Symbol()
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this),
- directives: [{
- name: 'ant-ref',
- value: this.innerSliderRefHandler
- }],
- scopedSlots: this.$scopedSlots
- };
- return h(_inner_slider__WEBPACK_IMPORTED_MODULE_7__["default"], sliderProps);
- }
- });
- /***/ }),
- /***/ "./components/vc-slick/src/track.js":
- /*!******************************************!*\
- !*** ./components/vc-slick/src/track.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
- // given specifications/props for a slide, fetch all the classes that need to be applied to the slide
- var getSlideClasses = function getSlideClasses(spec) {
- var slickActive = void 0,
- slickCenter = void 0;
- var centerOffset = void 0,
- index = void 0;
- if (spec.rtl) {
- index = spec.slideCount - 1 - spec.index;
- } else {
- index = spec.index;
- }
- var slickCloned = index < 0 || index >= spec.slideCount;
- if (spec.centerMode) {
- centerOffset = Math.floor(spec.slidesToShow / 2);
- slickCenter = (index - spec.currentSlide) % spec.slideCount === 0;
- if (index > spec.currentSlide - centerOffset - 1 && index <= spec.currentSlide + centerOffset) {
- slickActive = true;
- }
- } else {
- slickActive = spec.currentSlide <= index && index < spec.currentSlide + spec.slidesToShow;
- }
- var slickCurrent = index === spec.currentSlide;
- return {
- 'slick-slide': true,
- 'slick-active': slickActive,
- 'slick-center': slickCenter,
- 'slick-cloned': slickCloned,
- 'slick-current': slickCurrent // dubious in case of RTL
- };
- };
- var getSlideStyle = function getSlideStyle(spec) {
- var style = {};
- if (spec.variableWidth === undefined || spec.variableWidth === false) {
- style.width = spec.slideWidth + (typeof spec.slideWidth === 'number' ? 'px' : '');
- }
- if (spec.fade) {
- style.position = 'relative';
- if (spec.vertical) {
- style.top = -spec.index * parseInt(spec.slideHeight) + 'px';
- } else {
- style.left = -spec.index * parseInt(spec.slideWidth) + 'px';
- }
- style.opacity = spec.currentSlide === spec.index ? 1 : 0;
- style.transition = 'opacity ' + spec.speed + 'ms ' + spec.cssEase + ', ' + 'visibility ' + spec.speed + 'ms ' + spec.cssEase;
- style.WebkitTransition = 'opacity ' + spec.speed + 'ms ' + spec.cssEase + ', ' + 'visibility ' + spec.speed + 'ms ' + spec.cssEase;
- }
- return style;
- };
- var getKey = function getKey(child, fallbackKey) {
- return child.key || child.key === 0 && '0' || fallbackKey;
- };
- var renderSlides = function renderSlides(spec, children, createElement) {
- var key = void 0;
- var slides = [];
- var preCloneSlides = [];
- var postCloneSlides = [];
- var childrenCount = children.length;
- var startIndex = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__["lazyStartIndex"])(spec);
- var endIndex = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__["lazyEndIndex"])(spec);
- children.forEach(function (elem, index) {
- var child = void 0;
- var childOnClickOptions = {
- message: 'children',
- index: index,
- slidesToScroll: spec.slidesToScroll,
- currentSlide: spec.currentSlide
- };
- // in case of lazyLoad, whether or not we want to fetch the slide
- if (!spec.lazyLoad || spec.lazyLoad && spec.lazyLoadedList.indexOf(index) >= 0) {
- child = elem;
- } else {
- child = createElement('div');
- }
- var childStyle = getSlideStyle(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: index }));
- var slideClass = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getClass"])(child.context) || '';
- var slideClasses = getSlideClasses(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: index }));
- // push a cloned element of the desired slide
- slides.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
- key: 'original' + getKey(child, index),
- attrs: {
- tabIndex: '-1',
- 'data-index': index,
- 'aria-hidden': !slideClasses['slick-active']
- },
- 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(slideClasses, slideClass),
- style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ outline: 'none' }, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(child.context) || {}, childStyle),
- on: {
- click: function click() {
- // child.props && child.props.onClick && child.props.onClick(e)
- if (spec.focusOnSelect) {
- spec.focusOnSelect(childOnClickOptions);
- }
- }
- }
- }, true));
- // if slide needs to be precloned or postcloned
- if (spec.infinite && spec.fade === false) {
- var preCloneNo = childrenCount - index;
- if (preCloneNo <= Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__["getPreClones"])(spec) && childrenCount !== spec.slidesToShow) {
- key = -preCloneNo;
- if (key >= startIndex) {
- child = elem;
- }
- slideClasses = getSlideClasses(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: key }));
- preCloneSlides.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
- key: 'precloned' + getKey(child, key),
- 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(slideClasses, slideClass),
- attrs: {
- tabIndex: '-1',
- 'data-index': key,
- 'aria-hidden': !slideClasses['slick-active']
- },
- style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(child.context) || {}, childStyle),
- on: {
- click: function click() {
- // child.props && child.props.onClick && child.props.onClick(e)
- if (spec.focusOnSelect) {
- spec.focusOnSelect(childOnClickOptions);
- }
- }
- }
- }));
- }
- if (childrenCount !== spec.slidesToShow) {
- key = childrenCount + index;
- if (key < endIndex) {
- child = elem;
- }
- slideClasses = getSlideClasses(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: key }));
- postCloneSlides.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
- key: 'postcloned' + getKey(child, key),
- attrs: {
- tabIndex: '-1',
- 'data-index': key,
- 'aria-hidden': !slideClasses['slick-active']
- },
- 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(slideClasses, slideClass),
- style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(child.context) || {}, childStyle),
- on: {
- click: function click() {
- // child.props && child.props.onClick && child.props.onClick(e)
- if (spec.focusOnSelect) {
- spec.focusOnSelect(childOnClickOptions);
- }
- }
- }
- }));
- }
- }
- });
- if (spec.rtl) {
- return preCloneSlides.concat(slides, postCloneSlides).reverse();
- } else {
- return preCloneSlides.concat(slides, postCloneSlides);
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- functional: true,
- render: function render(createElement, context) {
- var h = arguments[0];
- var props = context.props,
- listeners = context.listeners,
- children = context.children,
- data = context.data;
- var slides = renderSlides(props, children, createElement);
- var mouseenter = listeners.mouseenter,
- mouseover = listeners.mouseover,
- mouseleave = listeners.mouseleave;
- var mouseEvents = { mouseenter: mouseenter, mouseover: mouseover, mouseleave: mouseleave };
- var trackProps = {
- 'class': 'slick-track',
- style: props.trackStyle,
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, mouseEvents),
- directives: data.directives
- };
- return h(
- 'div',
- trackProps,
- [slides]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-slick/src/utils/innerSliderUtils.js":
- /*!***********************************************************!*\
- !*** ./components/vc-slick/src/utils/innerSliderUtils.js ***!
- \***********************************************************/
- /*! exports provided: getOnDemandLazySlides, getRequiredLazySlides, lazyStartIndex, lazyEndIndex, lazySlidesOnLeft, lazySlidesOnRight, getWidth, getHeight, getSwipeDirection, canGoNext, extractObject, initializedState, slideHandler, changeSlide, keyHandler, swipeStart, swipeMove, swipeEnd, getNavigableIndexes, checkNavigable, getSlideCount, checkSpecKeys, getTrackCSS, getTrackAnimateCSS, getTrackLeft, getPreClones, getPostClones, getTotalSlides, siblingDirection, slidesOnRight, slidesOnLeft, canUseDOM */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOnDemandLazySlides", function() { return getOnDemandLazySlides; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRequiredLazySlides", function() { return getRequiredLazySlides; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazyStartIndex", function() { return lazyStartIndex; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazyEndIndex", function() { return lazyEndIndex; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazySlidesOnLeft", function() { return lazySlidesOnLeft; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazySlidesOnRight", function() { return lazySlidesOnRight; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWidth", function() { return getWidth; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHeight", function() { return getHeight; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSwipeDirection", function() { return getSwipeDirection; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canGoNext", function() { return canGoNext; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractObject", function() { return extractObject; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializedState", function() { return initializedState; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slideHandler", function() { return slideHandler; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "changeSlide", function() { return changeSlide; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyHandler", function() { return keyHandler; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "swipeStart", function() { return swipeStart; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "swipeMove", function() { return swipeMove; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "swipeEnd", function() { return swipeEnd; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNavigableIndexes", function() { return getNavigableIndexes; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkNavigable", function() { return checkNavigable; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlideCount", function() { return getSlideCount; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkSpecKeys", function() { return checkSpecKeys; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTrackCSS", function() { return getTrackCSS; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTrackAnimateCSS", function() { return getTrackAnimateCSS; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTrackLeft", function() { return getTrackLeft; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPreClones", function() { return getPreClones; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPostClones", function() { return getPostClones; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTotalSlides", function() { return getTotalSlides; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "siblingDirection", function() { return siblingDirection; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slidesOnRight", function() { return slidesOnRight; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slidesOnLeft", function() { return slidesOnLeft; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canUseDOM", function() { return canUseDOM; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- var getOnDemandLazySlides = function getOnDemandLazySlides(spec) {
- var onDemandSlides = [];
- var startIndex = lazyStartIndex(spec);
- var endIndex = lazyEndIndex(spec);
- for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
- if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {
- onDemandSlides.push(slideIndex);
- }
- }
- return onDemandSlides;
- };
- // return list of slides that need to be present
- var getRequiredLazySlides = function getRequiredLazySlides(spec) {
- var requiredSlides = [];
- var startIndex = lazyStartIndex(spec);
- var endIndex = lazyEndIndex(spec);
- for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
- requiredSlides.push(slideIndex);
- }
- return requiredSlides;
- };
- // startIndex that needs to be present
- var lazyStartIndex = function lazyStartIndex(spec) {
- return spec.currentSlide - lazySlidesOnLeft(spec);
- };
- var lazyEndIndex = function lazyEndIndex(spec) {
- return spec.currentSlide + lazySlidesOnRight(spec);
- };
- var lazySlidesOnLeft = function lazySlidesOnLeft(spec) {
- return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0;
- };
- var lazySlidesOnRight = function lazySlidesOnRight(spec) {
- return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow;
- };
- // get width of an element
- var getWidth = function getWidth(elem) {
- return elem && elem.offsetWidth || 0;
- };
- var getHeight = function getHeight(elem) {
- return elem && elem.offsetHeight || 0;
- };
- var getSwipeDirection = function getSwipeDirection(touchObject) {
- var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- var swipeAngle = void 0;
- var xDist = touchObject.startX - touchObject.curX;
- var yDist = touchObject.startY - touchObject.curY;
- var r = Math.atan2(yDist, xDist);
- swipeAngle = Math.round(r * 180 / Math.PI);
- if (swipeAngle < 0) {
- swipeAngle = 360 - Math.abs(swipeAngle);
- }
- if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) {
- return 'left';
- }
- if (swipeAngle >= 135 && swipeAngle <= 225) {
- return 'right';
- }
- if (verticalSwiping === true) {
- if (swipeAngle >= 35 && swipeAngle <= 135) {
- return 'up';
- } else {
- return 'down';
- }
- }
- return 'vertical';
- };
- // whether or not we can go next
- var canGoNext = function canGoNext(spec) {
- var canGo = true;
- if (!spec.infinite) {
- if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {
- canGo = false;
- } else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) {
- canGo = false;
- }
- }
- return canGo;
- };
- // given an object and a list of keys, return new object with given keys
- var extractObject = function extractObject(spec, keys) {
- var newObject = {};
- keys.forEach(function (key) {
- return newObject[key] = spec[key];
- });
- return newObject;
- };
- // get initialized state
- var initializedState = function initializedState(spec) {
- // spec also contains listRef, trackRef
- var slideCount = spec.children.length;
- var listWidth = Math.ceil(getWidth(spec.listRef));
- var trackWidth = Math.ceil(getWidth(spec.trackRef));
- var slideWidth = void 0;
- if (!spec.vertical) {
- var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;
- if (typeof spec.centerPadding === 'string' && spec.centerPadding.slice(-1) === '%') {
- centerPaddingAdj *= listWidth / 100;
- }
- slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);
- } else {
- slideWidth = listWidth;
- }
- var slideHeight = spec.listRef && getHeight(spec.listRef.querySelector('[data-index="0"]'));
- var listHeight = slideHeight * spec.slidesToShow;
- var currentSlide = spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide;
- if (spec.rtl && spec.currentSlide === undefined) {
- currentSlide = slideCount - 1 - spec.initialSlide;
- }
- var lazyLoadedList = spec.lazyLoadedList || [];
- var slidesToLoad = getOnDemandLazySlides({ currentSlide: currentSlide, lazyLoadedList: lazyLoadedList }, spec);
- lazyLoadedList.concat(slidesToLoad);
- var state = {
- slideCount: slideCount,
- slideWidth: slideWidth,
- listWidth: listWidth,
- trackWidth: trackWidth,
- currentSlide: currentSlide,
- slideHeight: slideHeight,
- listHeight: listHeight,
- lazyLoadedList: lazyLoadedList
- };
- if (spec.autoplaying === null && spec.autoplay) {
- state['autoplaying'] = 'playing';
- }
- return state;
- };
- var slideHandler = function slideHandler(spec) {
- var waitForAnimate = spec.waitForAnimate,
- animating = spec.animating,
- fade = spec.fade,
- infinite = spec.infinite,
- index = spec.index,
- slideCount = spec.slideCount,
- lazyLoadedList = spec.lazyLoadedList,
- lazyLoad = spec.lazyLoad,
- currentSlide = spec.currentSlide,
- centerMode = spec.centerMode,
- slidesToScroll = spec.slidesToScroll,
- slidesToShow = spec.slidesToShow,
- useCSS = spec.useCSS;
- if (waitForAnimate && animating) return {};
- var animationSlide = index;
- var finalSlide = void 0;
- var animationLeft = void 0;
- var finalLeft = void 0;
- var state = {};
- var nextState = {};
- if (fade) {
- if (!infinite && (index < 0 || index >= slideCount)) return {};
- if (index < 0) {
- animationSlide = index + slideCount;
- } else if (index >= slideCount) {
- animationSlide = index - slideCount;
- }
- if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) {
- lazyLoadedList.push(animationSlide);
- }
- state = {
- animating: true,
- currentSlide: animationSlide,
- lazyLoadedList: lazyLoadedList
- };
- nextState = { animating: false };
- } else {
- finalSlide = animationSlide;
- if (animationSlide < 0) {
- finalSlide = animationSlide + slideCount;
- if (!infinite) finalSlide = 0;else if (slideCount % slidesToScroll !== 0) {
- finalSlide = slideCount - slideCount % slidesToScroll;
- }
- } else if (!canGoNext(spec) && animationSlide > currentSlide) {
- animationSlide = finalSlide = currentSlide;
- } else if (centerMode && animationSlide >= slideCount) {
- animationSlide = infinite ? slideCount : slideCount - 1;
- finalSlide = infinite ? 0 : slideCount - 1;
- } else if (animationSlide >= slideCount) {
- finalSlide = animationSlide - slideCount;
- if (!infinite) finalSlide = slideCount - slidesToShow;else if (slideCount % slidesToScroll !== 0) finalSlide = 0;
- }
- animationLeft = getTrackLeft(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { slideIndex: animationSlide }));
- finalLeft = getTrackLeft(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { slideIndex: finalSlide }));
- if (!infinite) {
- if (animationLeft === finalLeft) animationSlide = finalSlide;
- animationLeft = finalLeft;
- }
- lazyLoad && lazyLoadedList.concat(getOnDemandLazySlides(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { currentSlide: animationSlide })));
- if (!useCSS) {
- state = {
- currentSlide: finalSlide,
- trackStyle: getTrackCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: finalLeft })),
- lazyLoadedList: lazyLoadedList
- };
- } else {
- state = {
- animating: true,
- currentSlide: finalSlide,
- trackStyle: getTrackAnimateCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: animationLeft })),
- lazyLoadedList: lazyLoadedList
- };
- nextState = {
- animating: false,
- currentSlide: finalSlide,
- trackStyle: getTrackCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: finalLeft })),
- swipeLeft: null
- };
- }
- }
- return { state: state, nextState: nextState };
- };
- var changeSlide = function changeSlide(spec, options) {
- var previousInt = void 0,
- slideOffset = void 0,
- targetSlide = void 0;
- var slidesToScroll = spec.slidesToScroll,
- slidesToShow = spec.slidesToShow,
- slideCount = spec.slideCount,
- currentSlide = spec.currentSlide,
- lazyLoad = spec.lazyLoad,
- infinite = spec.infinite;
- var unevenOffset = slideCount % slidesToScroll !== 0;
- var indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll;
- if (options.message === 'previous') {
- slideOffset = indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset;
- targetSlide = currentSlide - slideOffset;
- if (lazyLoad && !infinite) {
- previousInt = currentSlide - slideOffset;
- targetSlide = previousInt === -1 ? slideCount - 1 : previousInt;
- }
- } else if (options.message === 'next') {
- slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset;
- targetSlide = currentSlide + slideOffset;
- if (lazyLoad && !infinite) {
- targetSlide = (currentSlide + slidesToScroll) % slideCount + indexOffset;
- }
- } else if (options.message === 'dots') {
- // Click on dots
- targetSlide = options.index * options.slidesToScroll;
- if (targetSlide === options.currentSlide) {
- return null;
- }
- } else if (options.message === 'children') {
- // Click on the slides
- targetSlide = options.index;
- if (targetSlide === options.currentSlide) {
- return null;
- }
- if (infinite) {
- var direction = siblingDirection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { targetSlide: targetSlide }));
- if (targetSlide > options.currentSlide && direction === 'left') {
- targetSlide = targetSlide - slideCount;
- } else if (targetSlide < options.currentSlide && direction === 'right') {
- targetSlide = targetSlide + slideCount;
- }
- }
- } else if (options.message === 'index') {
- targetSlide = Number(options.index);
- if (targetSlide === options.currentSlide) {
- return null;
- }
- }
- return targetSlide;
- };
- var keyHandler = function keyHandler(e, accessibility, rtl) {
- if (e.target.tagName.match('TEXTAREA|INPUT|SELECT') || !accessibility) {
- return '';
- }
- if (e.keyCode === 37) return rtl ? 'next' : 'previous';
- if (e.keyCode === 39) return rtl ? 'previous' : 'next';
- return '';
- };
- var swipeStart = function swipeStart(e, swipe, draggable) {
- e.target.tagName === 'IMG' && e.preventDefault();
- if (!swipe || !draggable && e.type.indexOf('mouse') !== -1) return '';
- return {
- dragging: true,
- touchObject: {
- startX: e.touches ? e.touches[0].pageX : e.clientX,
- startY: e.touches ? e.touches[0].pageY : e.clientY,
- curX: e.touches ? e.touches[0].pageX : e.clientX,
- curY: e.touches ? e.touches[0].pageY : e.clientY
- }
- };
- };
- var swipeMove = function swipeMove(e, spec) {
- // spec also contains, trackRef and slideIndex
- var scrolling = spec.scrolling,
- animating = spec.animating,
- vertical = spec.vertical,
- swipeToSlide = spec.swipeToSlide,
- verticalSwiping = spec.verticalSwiping,
- rtl = spec.rtl,
- currentSlide = spec.currentSlide,
- edgeFriction = spec.edgeFriction,
- edgeDragged = spec.edgeDragged,
- onEdge = spec.onEdge,
- swiped = spec.swiped,
- swiping = spec.swiping,
- slideCount = spec.slideCount,
- slidesToScroll = spec.slidesToScroll,
- infinite = spec.infinite,
- touchObject = spec.touchObject,
- swipeEvent = spec.swipeEvent,
- listHeight = spec.listHeight,
- listWidth = spec.listWidth;
- if (scrolling) return;
- if (animating) return e.preventDefault();
- if (vertical && swipeToSlide && verticalSwiping) e.preventDefault();
- var swipeLeft = void 0;
- var state = {};
- var curLeft = getTrackLeft(spec);
- touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX;
- touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY;
- touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2)));
- var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2)));
- if (!verticalSwiping && !swiping && verticalSwipeLength > 10) {
- return { scrolling: true };
- }
- if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength;
- var positionOffset = (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1);
- if (verticalSwiping) {
- positionOffset = touchObject.curY > touchObject.startY ? 1 : -1;
- }
- var dotCount = Math.ceil(slideCount / slidesToScroll);
- var swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping);
- var touchSwipeLength = touchObject.swipeLength;
- if (!infinite) {
- if (currentSlide === 0 && swipeDirection === 'right' || currentSlide + 1 >= dotCount && swipeDirection === 'left' || !canGoNext(spec) && swipeDirection === 'left') {
- touchSwipeLength = touchObject.swipeLength * edgeFriction;
- if (edgeDragged === false && onEdge) {
- onEdge(swipeDirection);
- state['edgeDragged'] = true;
- }
- }
- }
- if (!swiped && swipeEvent) {
- swipeEvent(swipeDirection);
- state['swiped'] = true;
- }
- if (!vertical) {
- if (!rtl) {
- swipeLeft = curLeft + touchSwipeLength * positionOffset;
- } else {
- swipeLeft = curLeft - touchSwipeLength * positionOffset;
- }
- } else {
- swipeLeft = curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset;
- }
- if (verticalSwiping) {
- swipeLeft = curLeft + touchSwipeLength * positionOffset;
- }
- state = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, state, {
- touchObject: touchObject,
- swipeLeft: swipeLeft,
- trackStyle: getTrackCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: swipeLeft }))
- });
- if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8) {
- return state;
- }
- if (touchObject.swipeLength > 10) {
- state['swiping'] = true;
- e.preventDefault();
- }
- return state;
- };
- var swipeEnd = function swipeEnd(e, spec) {
- var dragging = spec.dragging,
- swipe = spec.swipe,
- touchObject = spec.touchObject,
- listWidth = spec.listWidth,
- touchThreshold = spec.touchThreshold,
- verticalSwiping = spec.verticalSwiping,
- listHeight = spec.listHeight,
- currentSlide = spec.currentSlide,
- swipeToSlide = spec.swipeToSlide,
- scrolling = spec.scrolling,
- onSwipe = spec.onSwipe;
- if (!dragging) {
- if (swipe) e.preventDefault();
- return {};
- }
- var minSwipe = verticalSwiping ? listHeight / touchThreshold : listWidth / touchThreshold;
- var swipeDirection = getSwipeDirection(touchObject, verticalSwiping);
- // reset the state of touch related state variables.
- var state = {
- dragging: false,
- edgeDragged: false,
- scrolling: false,
- swiping: false,
- swiped: false,
- swipeLeft: null,
- touchObject: {}
- };
- if (scrolling) {
- return state;
- }
- if (!touchObject.swipeLength) {
- return state;
- }
- if (touchObject.swipeLength > minSwipe) {
- e.preventDefault();
- if (onSwipe) {
- onSwipe(swipeDirection);
- }
- var slideCount = void 0,
- newSlide = void 0;
- switch (swipeDirection) {
- case 'left':
- case 'up':
- newSlide = currentSlide + getSlideCount(spec);
- slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
- state['currentDirection'] = 0;
- break;
- case 'right':
- case 'down':
- newSlide = currentSlide - getSlideCount(spec);
- slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
- state['currentDirection'] = 1;
- break;
- default:
- slideCount = currentSlide;
- }
- state['triggerSlideHandler'] = slideCount;
- } else {
- // Adjust the track back to it's original position.
- var currentLeft = getTrackLeft(spec);
- state['trackStyle'] = getTrackAnimateCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: currentLeft }));
- }
- return state;
- };
- var getNavigableIndexes = function getNavigableIndexes(spec) {
- var max = spec.infinite ? spec.slideCount * 2 : spec.slideCount;
- var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0;
- var counter = spec.infinite ? spec.slidesToShow * -1 : 0;
- var indexes = [];
- while (breakpoint < max) {
- indexes.push(breakpoint);
- breakpoint = counter + spec.slidesToScroll;
- counter += Math.min(spec.slidesToScroll, spec.slidesToShow);
- }
- return indexes;
- };
- var checkNavigable = function checkNavigable(spec, index) {
- var navigables = getNavigableIndexes(spec);
- var prevNavigable = 0;
- if (index > navigables[navigables.length - 1]) {
- index = navigables[navigables.length - 1];
- } else {
- for (var n in navigables) {
- if (index < navigables[n]) {
- index = prevNavigable;
- break;
- }
- prevNavigable = navigables[n];
- }
- }
- return index;
- };
- var getSlideCount = function getSlideCount(spec) {
- var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0;
- if (spec.swipeToSlide) {
- var swipedSlide = void 0;
- var slickList = spec.listRef;
- var slides = slickList.querySelectorAll('.slick-slide');
- Array.from(slides).every(function (slide) {
- if (!spec.vertical) {
- if (slide.offsetLeft - centerOffset + getWidth(slide) / 2 > spec.swipeLeft * -1) {
- swipedSlide = slide;
- return false;
- }
- } else {
- if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) {
- swipedSlide = slide;
- return false;
- }
- }
- return true;
- });
- if (!swipedSlide) {
- return 0;
- }
- var currentIndex = spec.rtl === true ? spec.slideCount - spec.currentSlide : spec.currentSlide;
- var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1;
- return slidesTraversed;
- } else {
- return spec.slidesToScroll;
- }
- };
- var checkSpecKeys = function checkSpecKeys(spec, keysArray) {
- return keysArray.reduce(function (value, key) {
- return value && spec.hasOwnProperty(key);
- }, true) ? null : console.error('Keys Missing:', spec);
- };
- var getTrackCSS = function getTrackCSS(spec) {
- checkSpecKeys(spec, ['left', 'variableWidth', 'slideCount', 'slidesToShow', 'slideWidth']);
- var trackWidth = void 0,
- trackHeight = void 0;
- var trackChildren = spec.slideCount + 2 * spec.slidesToShow;
- if (!spec.vertical) {
- trackWidth = getTotalSlides(spec) * spec.slideWidth;
- } else {
- trackHeight = trackChildren * spec.slideHeight;
- }
- var style = {
- opacity: 1,
- transition: '',
- WebkitTransition: ''
- };
- if (spec.useTransform) {
- var WebkitTransform = !spec.vertical ? 'translate3d(' + spec.left + 'px, 0px, 0px)' : 'translate3d(0px, ' + spec.left + 'px, 0px)';
- var transform = !spec.vertical ? 'translate3d(' + spec.left + 'px, 0px, 0px)' : 'translate3d(0px, ' + spec.left + 'px, 0px)';
- var msTransform = !spec.vertical ? 'translateX(' + spec.left + 'px)' : 'translateY(' + spec.left + 'px)';
- style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, style, {
- WebkitTransform: WebkitTransform,
- transform: transform,
- msTransform: msTransform
- });
- } else {
- if (spec.vertical) {
- style['top'] = spec.left;
- } else {
- style['left'] = spec.left;
- }
- }
- if (spec.fade) style = { opacity: 1 };
- if (trackWidth) style.width = trackWidth + 'px';
- if (trackHeight) style.height = trackHeight + 'px';
- // Fallback for IE8
- if (window && !window.addEventListener && window.attachEvent) {
- if (!spec.vertical) {
- style.marginLeft = spec.left + 'px';
- } else {
- style.marginTop = spec.left + 'px';
- }
- }
- return style;
- };
- var getTrackAnimateCSS = function getTrackAnimateCSS(spec) {
- checkSpecKeys(spec, ['left', 'variableWidth', 'slideCount', 'slidesToShow', 'slideWidth', 'speed', 'cssEase']);
- var style = getTrackCSS(spec);
- // useCSS is true by default so it can be undefined
- if (spec.useTransform) {
- style.WebkitTransition = '-webkit-transform ' + spec.speed + 'ms ' + spec.cssEase;
- style.transition = 'transform ' + spec.speed + 'ms ' + spec.cssEase;
- } else {
- if (spec.vertical) {
- style.transition = 'top ' + spec.speed + 'ms ' + spec.cssEase;
- } else {
- style.transition = 'left ' + spec.speed + 'ms ' + spec.cssEase;
- }
- }
- return style;
- };
- var getTrackLeft = function getTrackLeft(spec) {
- if (spec.unslick) {
- return 0;
- }
- checkSpecKeys(spec, ['slideIndex', 'trackRef', 'infinite', 'centerMode', 'slideCount', 'slidesToShow', 'slidesToScroll', 'slideWidth', 'listWidth', 'variableWidth', 'slideHeight']);
- var slideIndex = spec.slideIndex,
- trackRef = spec.trackRef,
- infinite = spec.infinite,
- centerMode = spec.centerMode,
- slideCount = spec.slideCount,
- slidesToShow = spec.slidesToShow,
- slidesToScroll = spec.slidesToScroll,
- slideWidth = spec.slideWidth,
- listWidth = spec.listWidth,
- variableWidth = spec.variableWidth,
- slideHeight = spec.slideHeight,
- fade = spec.fade,
- vertical = spec.vertical;
- var slideOffset = 0;
- var targetLeft = void 0;
- var targetSlide = void 0;
- var verticalOffset = 0;
- if (fade || spec.slideCount === 1) {
- return 0;
- }
- var slidesToOffset = 0;
- if (infinite) {
- slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area
- // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children
- if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
- slidesToOffset = -(slideIndex > slideCount ? slidesToShow - (slideIndex - slideCount) : slideCount % slidesToScroll);
- }
- // shift current slide to center of the frame
- if (centerMode) {
- slidesToOffset += parseInt(slidesToShow / 2);
- }
- } else {
- if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
- slidesToOffset = slidesToShow - slideCount % slidesToScroll;
- }
- if (centerMode) {
- slidesToOffset = parseInt(slidesToShow / 2);
- }
- }
- slideOffset = slidesToOffset * slideWidth;
- verticalOffset = slidesToOffset * slideHeight;
- if (!vertical) {
- targetLeft = slideIndex * slideWidth * -1 + slideOffset;
- } else {
- targetLeft = slideIndex * slideHeight * -1 + verticalOffset;
- }
- if (variableWidth === true) {
- var targetSlideIndex = void 0;
- var trackElem = trackRef;
- targetSlideIndex = slideIndex + getPreClones(spec);
- targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];
- targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0;
- if (centerMode === true) {
- targetSlideIndex = infinite ? slideIndex + getPreClones(spec) : slideIndex;
- targetSlide = trackElem && trackElem.children[targetSlideIndex];
- targetLeft = 0;
- for (var slide = 0; slide < targetSlideIndex; slide++) {
- targetLeft -= trackElem && trackElem.children[slide] && trackElem.children[slide].offsetWidth;
- }
- targetLeft -= parseInt(spec.centerPadding);
- targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2;
- }
- }
- return targetLeft;
- };
- var getPreClones = function getPreClones(spec) {
- if (spec.unslick || !spec.infinite) {
- return 0;
- }
- if (spec.variableWidth) {
- return spec.slideCount;
- }
- return spec.slidesToShow + (spec.centerMode ? 1 : 0);
- };
- var getPostClones = function getPostClones(spec) {
- if (spec.unslick || !spec.infinite) {
- return 0;
- }
- return spec.slideCount;
- };
- var getTotalSlides = function getTotalSlides(spec) {
- return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec);
- };
- var siblingDirection = function siblingDirection(spec) {
- if (spec.targetSlide > spec.currentSlide) {
- if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) {
- return 'left';
- }
- return 'right';
- } else {
- if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) {
- return 'right';
- }
- return 'left';
- }
- };
- var slidesOnRight = function slidesOnRight(_ref) {
- var slidesToShow = _ref.slidesToShow,
- centerMode = _ref.centerMode,
- rtl = _ref.rtl,
- centerPadding = _ref.centerPadding;
- // returns no of slides on the right of active slide
- if (centerMode) {
- var right = (slidesToShow - 1) / 2 + 1;
- if (parseInt(centerPadding) > 0) right += 1;
- if (rtl && slidesToShow % 2 === 0) right += 1;
- return right;
- }
- if (rtl) {
- return 0;
- }
- return slidesToShow - 1;
- };
- var slidesOnLeft = function slidesOnLeft(_ref2) {
- var slidesToShow = _ref2.slidesToShow,
- centerMode = _ref2.centerMode,
- rtl = _ref2.rtl,
- centerPadding = _ref2.centerPadding;
- // returns no of slides on the left of active slide
- if (centerMode) {
- var left = (slidesToShow - 1) / 2 + 1;
- if (parseInt(centerPadding) > 0) left += 1;
- if (!rtl && slidesToShow % 2 === 0) left += 1;
- return left;
- }
- if (rtl) {
- return slidesToShow - 1;
- }
- return 0;
- };
- var canUseDOM = function canUseDOM() {
- return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
- };
- /***/ }),
- /***/ "./components/vc-slider/src/Handle.jsx":
- /*!*********************************************!*\
- !*** ./components/vc-slider/src/Handle.jsx ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Handle',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- className: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
- // handleFocus: PropTypes.func.def(noop),
- // handleBlur: PropTypes.func.def(noop),
- },
- data: function data() {
- return {
- clickFocused: false
- };
- },
- mounted: function mounted() {
- // mouseup won't trigger if mouse moved out of handle
- // so we listen on document here.
- this.onMouseUpListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_6__["default"])(document, 'mouseup', this.handleMouseUp);
- },
- beforeDestroy: function beforeDestroy() {
- if (this.onMouseUpListener) {
- this.onMouseUpListener.remove();
- }
- },
- methods: {
- setClickFocus: function setClickFocus(focused) {
- this.setState({ clickFocused: focused });
- },
- handleMouseUp: function handleMouseUp() {
- if (document.activeElement === this.$refs.handle) {
- this.setClickFocus(true);
- }
- },
- handleBlur: function handleBlur(e) {
- this.setClickFocus(false);
- this.__emit('blur', e);
- },
- handleKeyDown: function handleKeyDown() {
- this.setClickFocus(false);
- },
- clickFocus: function clickFocus() {
- this.setClickFocus(true);
- this.focus();
- },
- focus: function focus() {
- this.$refs.handle.focus();
- },
- blur: function blur() {
- this.$refs.handle.blur();
- },
- // when click can not focus in vue, use mousedown trigger focus
- handleMousedown: function handleMousedown(e) {
- this.focus();
- this.__emit('mousedown', e);
- }
- },
- render: function render() {
- var _ref, _ref2;
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this),
- prefixCls = _getOptionProps.prefixCls,
- vertical = _getOptionProps.vertical,
- reverse = _getOptionProps.reverse,
- offset = _getOptionProps.offset,
- disabled = _getOptionProps.disabled,
- min = _getOptionProps.min,
- max = _getOptionProps.max,
- value = _getOptionProps.value,
- tabIndex = _getOptionProps.tabIndex;
- var className = classnames__WEBPACK_IMPORTED_MODULE_2___default()(this.$props.className, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-handle-click-focused', this.clickFocused));
- var positionStyle = vertical ? (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'top' : 'bottom', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'bottom' : 'top', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, 'transform', 'translateY(+50%)'), _ref) : (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'right' : 'left', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'left' : 'right', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, 'transform', 'translateX(' + (reverse ? '+' : '-') + '50%)'), _ref2);
- var ariaProps = {
- 'aria-valuemin': min,
- 'aria-valuemax': max,
- 'aria-valuenow': value,
- 'aria-disabled': !!disabled
- };
- var _tabIndex = tabIndex || 0;
- if (disabled || tabIndex === null) {
- _tabIndex = null;
- }
- var handleProps = {
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- role: 'slider',
- tabIndex: _tabIndex
- }, ariaProps),
- 'class': className,
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
- blur: this.handleBlur,
- keydown: this.handleKeyDown,
- mousedown: this.handleMousedown
- }),
- ref: 'handle',
- style: positionStyle
- };
- return h('div', handleProps);
- }
- });
- /***/ }),
- /***/ "./components/vc-slider/src/Range.jsx":
- /*!********************************************!*\
- !*** ./components/vc-slider/src/Range.jsx ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _common_Track__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./common/Track */ "./components/vc-slider/src/common/Track.jsx");
- /* harmony import */ var _common_createSlider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./common/createSlider */ "./components/vc-slider/src/common/createSlider.jsx");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/vc-slider/src/utils.js");
- var _trimAlignValue = function _trimAlignValue(_ref) {
- var value = _ref.value,
- handle = _ref.handle,
- bounds = _ref.bounds,
- props = _ref.props;
- var allowCross = props.allowCross,
- pushable = props.pushable;
- var thershold = Number(pushable);
- var valInRange = _utils__WEBPACK_IMPORTED_MODULE_9__["ensureValueInRange"](value, props);
- var valNotConflict = valInRange;
- if (!allowCross && handle != null && bounds !== undefined) {
- if (handle > 0 && valInRange <= bounds[handle - 1] + thershold) {
- valNotConflict = bounds[handle - 1] + thershold;
- }
- if (handle < bounds.length - 1 && valInRange >= bounds[handle + 1] - thershold) {
- valNotConflict = bounds[handle + 1] - thershold;
- }
- }
- return _utils__WEBPACK_IMPORTED_MODULE_9__["ensureValuePrecision"](valNotConflict, props);
- };
- var rangeProps = {
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number),
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number),
- count: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- pushable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
- allowCross: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- min: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- max: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
- };
- var Range = {
- name: 'Range',
- displayName: 'Range',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(rangeProps, {
- count: 1,
- allowCross: true,
- pushable: false,
- tabIndex: []
- }),
- data: function data() {
- var _this = this;
- var count = this.count,
- min = this.min,
- max = this.max;
- var initialValue = Array.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(Array(count + 1))).map(function () {
- return min;
- });
- var defaultValue = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'defaultValue') ? this.defaultValue : initialValue;
- var value = this.value;
- if (value === undefined) {
- value = defaultValue;
- }
- var bounds = value.map(function (v, i) {
- return _trimAlignValue({
- value: v,
- handle: i,
- props: _this.$props
- });
- });
- var recent = bounds[0] === max ? 0 : bounds.length - 1;
- return {
- sHandle: null,
- recent: recent,
- bounds: bounds
- };
- },
- watch: {
- value: {
- handler: function handler(val) {
- var bounds = this.bounds;
- this.setChangeValue(val || bounds);
- },
- deep: true
- },
- min: function min() {
- var value = this.value;
- this.setChangeValue(value || this.bounds);
- },
- max: function max() {
- var value = this.value;
- this.setChangeValue(value || this.bounds);
- }
- },
- methods: {
- setChangeValue: function setChangeValue(value) {
- var _this2 = this;
- var bounds = this.bounds;
- var nextBounds = value.map(function (v, i) {
- return _trimAlignValue({
- value: v,
- handle: i,
- bounds: bounds,
- props: _this2.$props
- });
- });
- if (nextBounds.length === bounds.length && nextBounds.every(function (v, i) {
- return v === bounds[i];
- })) return;
- this.setState({ bounds: nextBounds });
- if (value.some(function (v) {
- return _utils__WEBPACK_IMPORTED_MODULE_9__["isValueOutOfRange"](v, _this2.$props);
- })) {
- var newValues = value.map(function (v) {
- return _utils__WEBPACK_IMPORTED_MODULE_9__["ensureValueInRange"](v, _this2.$props);
- });
- this.$emit('change', newValues);
- }
- },
- onChange: function onChange(state) {
- var isNotControlled = !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value');
- if (isNotControlled) {
- this.setState(state);
- } else {
- var controlledState = {};
- ['sHandle', 'recent'].forEach(function (item) {
- if (state[item] !== undefined) {
- controlledState[item] = state[item];
- }
- });
- if (Object.keys(controlledState).length) {
- this.setState(controlledState);
- }
- }
- var data = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$data, state);
- var changedValue = data.bounds;
- this.$emit('change', changedValue);
- },
- onStart: function onStart(position) {
- var bounds = this.bounds;
- this.$emit('beforeChange', bounds);
- var value = this.calcValueByPos(position);
- this.startValue = value;
- this.startPosition = position;
- var closestBound = this.getClosestBound(value);
- this.prevMovedHandleIndex = this.getBoundNeedMoving(value, closestBound);
- this.setState({
- sHandle: this.prevMovedHandleIndex,
- recent: this.prevMovedHandleIndex
- });
- var prevValue = bounds[this.prevMovedHandleIndex];
- if (value === prevValue) return;
- var nextBounds = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(bounds));
- nextBounds[this.prevMovedHandleIndex] = value;
- this.onChange({ bounds: nextBounds });
- },
- onEnd: function onEnd(force) {
- var sHandle = this.sHandle;
- this.removeDocumentEvents();
- if (sHandle !== null || force) {
- this.$emit('afterChange', this.bounds);
- }
- this.setState({ sHandle: null });
- },
- onMove: function onMove(e, position) {
- _utils__WEBPACK_IMPORTED_MODULE_9__["pauseEvent"](e);
- var bounds = this.bounds,
- sHandle = this.sHandle;
- var value = this.calcValueByPos(position);
- var oldValue = bounds[sHandle];
- if (value === oldValue) return;
- this.moveTo(value);
- },
- onKeyboard: function onKeyboard(e) {
- var _$props = this.$props,
- reverse = _$props.reverse,
- vertical = _$props.vertical;
- var valueMutator = _utils__WEBPACK_IMPORTED_MODULE_9__["getKeyboardValueMutator"](e, vertical, reverse);
- if (valueMutator) {
- _utils__WEBPACK_IMPORTED_MODULE_9__["pauseEvent"](e);
- var bounds = this.bounds,
- sHandle = this.sHandle;
- var oldValue = bounds[sHandle === null ? this.recent : sHandle];
- var mutatedValue = valueMutator(oldValue, this.$props);
- var value = _trimAlignValue({
- value: mutatedValue,
- handle: sHandle,
- bounds: bounds,
- props: this.$props
- });
- if (value === oldValue) return;
- var isFromKeyboardEvent = true;
- this.moveTo(value, isFromKeyboardEvent);
- }
- },
- getClosestBound: function getClosestBound(value) {
- var bounds = this.bounds;
- var closestBound = 0;
- for (var i = 1; i < bounds.length - 1; ++i) {
- if (value > bounds[i]) {
- closestBound = i;
- }
- }
- if (Math.abs(bounds[closestBound + 1] - value) < Math.abs(bounds[closestBound] - value)) {
- closestBound += 1;
- }
- return closestBound;
- },
- getBoundNeedMoving: function getBoundNeedMoving(value, closestBound) {
- var bounds = this.bounds,
- recent = this.recent;
- var boundNeedMoving = closestBound;
- var isAtTheSamePoint = bounds[closestBound + 1] === bounds[closestBound];
- if (isAtTheSamePoint && bounds[recent] === bounds[closestBound]) {
- boundNeedMoving = recent;
- }
- if (isAtTheSamePoint && value !== bounds[closestBound + 1]) {
- boundNeedMoving = value < bounds[closestBound + 1] ? closestBound : closestBound + 1;
- }
- return boundNeedMoving;
- },
- getLowerBound: function getLowerBound() {
- return this.bounds[0];
- },
- getUpperBound: function getUpperBound() {
- var bounds = this.bounds;
- return bounds[bounds.length - 1];
- },
- /**
- * Returns an array of possible slider points, taking into account both
- * `marks` and `step`. The result is cached.
- */
- getPoints: function getPoints() {
- var marks = this.marks,
- step = this.step,
- min = this.min,
- max = this.max;
- var cache = this._getPointsCache;
- if (!cache || cache.marks !== marks || cache.step !== step) {
- var pointsObject = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, marks);
- if (step !== null) {
- for (var point = min; point <= max; point += step) {
- pointsObject[point] = point;
- }
- }
- var points = Object.keys(pointsObject).map(parseFloat);
- points.sort(function (a, b) {
- return a - b;
- });
- this._getPointsCache = { marks: marks, step: step, points: points };
- }
- return this._getPointsCache.points;
- },
- moveTo: function moveTo(value, isFromKeyboardEvent) {
- var _this3 = this;
- var nextBounds = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.bounds));
- var sHandle = this.sHandle,
- recent = this.recent;
- var handle = sHandle === null ? recent : sHandle;
- nextBounds[handle] = value;
- var nextHandle = handle;
- if (this.$props.pushable !== false) {
- this.pushSurroundingHandles(nextBounds, nextHandle);
- } else if (this.$props.allowCross) {
- nextBounds.sort(function (a, b) {
- return a - b;
- });
- nextHandle = nextBounds.indexOf(value);
- }
- this.onChange({
- recent: nextHandle,
- sHandle: nextHandle,
- bounds: nextBounds
- });
- if (isFromKeyboardEvent) {
- // known problem: because setState is async,
- // so trigger focus will invoke handler's onEnd and another handler's onStart too early,
- // cause onBeforeChange and onAfterChange receive wrong value.
- // here use setState callback to hack,but not elegant
- this.$emit('afterChange', nextBounds);
- this.setState({}, function () {
- _this3.handlesRefs[nextHandle].focus();
- });
- this.onEnd();
- }
- },
- pushSurroundingHandles: function pushSurroundingHandles(bounds, handle) {
- var value = bounds[handle];
- var threshold = this.pushable;
- threshold = Number(threshold);
- var direction = 0;
- if (bounds[handle + 1] - value < threshold) {
- direction = +1; // push to right
- }
- if (value - bounds[handle - 1] < threshold) {
- direction = -1; // push to left
- }
- if (direction === 0) {
- return;
- }
- var nextHandle = handle + direction;
- var diffToNext = direction * (bounds[nextHandle] - value);
- if (!this.pushHandle(bounds, nextHandle, direction, threshold - diffToNext)) {
- // revert to original value if pushing is impossible
- bounds[handle] = bounds[nextHandle] - direction * threshold;
- }
- },
- pushHandle: function pushHandle(bounds, handle, direction, amount) {
- var originalValue = bounds[handle];
- var currentValue = bounds[handle];
- while (direction * (currentValue - originalValue) < amount) {
- if (!this.pushHandleOnePoint(bounds, handle, direction)) {
- // can't push handle enough to create the needed `amount` gap, so we
- // revert its position to the original value
- bounds[handle] = originalValue;
- return false;
- }
- currentValue = bounds[handle];
- }
- // the handle was pushed enough to create the needed `amount` gap
- return true;
- },
- pushHandleOnePoint: function pushHandleOnePoint(bounds, handle, direction) {
- var points = this.getPoints();
- var pointIndex = points.indexOf(bounds[handle]);
- var nextPointIndex = pointIndex + direction;
- if (nextPointIndex >= points.length || nextPointIndex < 0) {
- // reached the minimum or maximum available point, can't push anymore
- return false;
- }
- var nextHandle = handle + direction;
- var nextValue = points[nextPointIndex];
- var threshold = this.pushable;
- var diffToNext = direction * (bounds[nextHandle] - nextValue);
- if (!this.pushHandle(bounds, nextHandle, direction, threshold - diffToNext)) {
- // couldn't push next handle, so we won't push this one either
- return false;
- }
- // push the handle
- bounds[handle] = nextValue;
- return true;
- },
- trimAlignValue: function trimAlignValue(value) {
- var sHandle = this.sHandle,
- bounds = this.bounds;
- return _trimAlignValue({
- value: value,
- handle: sHandle,
- bounds: bounds,
- props: this.$props
- });
- },
- ensureValueNotConflict: function ensureValueNotConflict(handle, val, _ref2) {
- var allowCross = _ref2.allowCross,
- thershold = _ref2.pushable;
- var state = this.$data || {};
- var bounds = state.bounds;
- handle = handle === undefined ? state.sHandle : handle;
- thershold = Number(thershold);
- /* eslint-disable eqeqeq */
- if (!allowCross && handle != null && bounds !== undefined) {
- if (handle > 0 && val <= bounds[handle - 1] + thershold) {
- return bounds[handle - 1] + thershold;
- }
- if (handle < bounds.length - 1 && val >= bounds[handle + 1] - thershold) {
- return bounds[handle + 1] - thershold;
- }
- }
- /* eslint-enable eqeqeq */
- return val;
- },
- getTrack: function getTrack(_ref3) {
- var bounds = _ref3.bounds,
- prefixCls = _ref3.prefixCls,
- reverse = _ref3.reverse,
- vertical = _ref3.vertical,
- included = _ref3.included,
- offsets = _ref3.offsets,
- trackStyle = _ref3.trackStyle;
- var h = this.$createElement;
- return bounds.slice(0, -1).map(function (_, index) {
- var _classNames;
- var i = index + 1;
- var trackClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-track', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-track-' + i, true), _classNames));
- return h(_common_Track__WEBPACK_IMPORTED_MODULE_7__["default"], {
- 'class': trackClassName,
- attrs: { vertical: vertical,
- reverse: reverse,
- included: included,
- offset: offsets[i - 1],
- length: offsets[i] - offsets[i - 1]
- },
- style: trackStyle[index],
- key: i
- });
- });
- },
- renderSlider: function renderSlider() {
- var _this4 = this;
- var sHandle = this.sHandle,
- bounds = this.bounds,
- prefixCls = this.prefixCls,
- vertical = this.vertical,
- included = this.included,
- disabled = this.disabled,
- min = this.min,
- max = this.max,
- reverse = this.reverse,
- handle = this.handle,
- defaultHandle = this.defaultHandle,
- trackStyle = this.trackStyle,
- handleStyle = this.handleStyle,
- tabIndex = this.tabIndex;
- var handleGenerator = handle || defaultHandle;
- var offsets = bounds.map(function (v) {
- return _this4.calcOffset(v);
- });
- var handleClassName = prefixCls + '-handle';
- var handles = bounds.map(function (v, i) {
- var _classNames2;
- var _tabIndex = tabIndex[i] || 0;
- if (disabled || tabIndex[i] === null) {
- _tabIndex = null;
- }
- return handleGenerator({
- className: classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, handleClassName, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, handleClassName + '-' + (i + 1), true), _classNames2)),
- prefixCls: prefixCls,
- vertical: vertical,
- offset: offsets[i],
- value: v,
- dragging: sHandle === i,
- index: i,
- tabIndex: _tabIndex,
- min: min,
- max: max,
- reverse: reverse,
- disabled: disabled,
- style: handleStyle[i],
- directives: [{
- name: 'ant-ref',
- value: function value(h) {
- return _this4.saveHandle(i, h);
- }
- }],
- on: {
- focus: _this4.onFocus,
- blur: _this4.onBlur
- }
- });
- });
- return {
- tracks: this.getTrack({
- bounds: bounds,
- prefixCls: prefixCls,
- reverse: reverse,
- vertical: vertical,
- included: included,
- offsets: offsets,
- trackStyle: trackStyle
- }),
- handles: handles
- };
- }
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Object(_common_createSlider__WEBPACK_IMPORTED_MODULE_8__["default"])(Range));
- /***/ }),
- /***/ "./components/vc-slider/src/Slider.jsx":
- /*!*********************************************!*\
- !*** ./components/vc-slider/src/Slider.jsx ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _common_Track__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./common/Track */ "./components/vc-slider/src/common/Track.jsx");
- /* harmony import */ var _common_createSlider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./common/createSlider */ "./components/vc-slider/src/common/createSlider.jsx");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "./components/vc-slider/src/utils.js");
- var Slider = {
- name: 'Slider',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: {
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- min: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- max: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number
- },
- data: function data() {
- var defaultValue = this.defaultValue !== undefined ? this.defaultValue : this.min;
- var value = this.value !== undefined ? this.value : defaultValue;
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'minimumTrackStyle'), 'Slider', 'minimumTrackStyle will be deprecate, please use trackStyle instead.');
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'maximumTrackStyle'), 'Slider', 'maximumTrackStyle will be deprecate, please use railStyle instead.');
- return {
- sValue: this.trimAlignValue(value),
- dragging: false
- };
- },
- watch: {
- value: {
- handler: function handler(val) {
- this.setChangeValue(val);
- },
- deep: true
- },
- min: function min() {
- var sValue = this.sValue;
- this.setChangeValue(sValue);
- },
- max: function max() {
- var sValue = this.sValue;
- this.setChangeValue(sValue);
- }
- },
- methods: {
- setChangeValue: function setChangeValue(value) {
- var newValue = value !== undefined ? value : this.sValue;
- var nextValue = this.trimAlignValue(newValue, this.$props);
- if (nextValue === this.sValue) return;
- this.setState({ sValue: nextValue });
- if (_utils__WEBPACK_IMPORTED_MODULE_7__["isValueOutOfRange"](newValue, this.$props)) {
- this.$emit('change', nextValue);
- }
- },
- onChange: function onChange(state) {
- var isNotControlled = !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'value');
- var nextState = state.sValue > this.max ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, state, { sValue: this.max }) : state;
- if (isNotControlled) {
- this.setState(nextState);
- }
- var changedValue = nextState.sValue;
- this.$emit('change', changedValue);
- },
- onStart: function onStart(position) {
- this.setState({ dragging: true });
- var sValue = this.sValue;
- this.$emit('beforeChange', sValue);
- var value = this.calcValueByPos(position);
- this.startValue = value;
- this.startPosition = position;
- if (value === sValue) return;
- this.prevMovedHandleIndex = 0;
- this.onChange({ sValue: value });
- },
- onEnd: function onEnd(force) {
- var dragging = this.dragging;
- this.removeDocumentEvents();
- if (dragging || force) {
- this.$emit('afterChange', this.sValue);
- }
- this.setState({ dragging: false });
- },
- onMove: function onMove(e, position) {
- _utils__WEBPACK_IMPORTED_MODULE_7__["pauseEvent"](e);
- var sValue = this.sValue;
- var value = this.calcValueByPos(position);
- if (value === sValue) return;
- this.onChange({ sValue: value });
- },
- onKeyboard: function onKeyboard(e) {
- var _$props = this.$props,
- reverse = _$props.reverse,
- vertical = _$props.vertical;
- var valueMutator = _utils__WEBPACK_IMPORTED_MODULE_7__["getKeyboardValueMutator"](e, vertical, reverse);
- if (valueMutator) {
- _utils__WEBPACK_IMPORTED_MODULE_7__["pauseEvent"](e);
- var sValue = this.sValue;
- var mutatedValue = valueMutator(sValue, this.$props);
- var value = this.trimAlignValue(mutatedValue);
- if (value === sValue) return;
- this.onChange({ sValue: value });
- this.$emit('afterChange', value);
- this.onEnd();
- }
- },
- getLowerBound: function getLowerBound() {
- return this.min;
- },
- getUpperBound: function getUpperBound() {
- return this.sValue;
- },
- trimAlignValue: function trimAlignValue(v) {
- var nextProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- if (v === null) {
- return null;
- }
- var mergedProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, nextProps);
- var val = _utils__WEBPACK_IMPORTED_MODULE_7__["ensureValueInRange"](v, mergedProps);
- return _utils__WEBPACK_IMPORTED_MODULE_7__["ensureValuePrecision"](val, mergedProps);
- },
- getTrack: function getTrack(_ref) {
- var prefixCls = _ref.prefixCls,
- reverse = _ref.reverse,
- vertical = _ref.vertical,
- included = _ref.included,
- offset = _ref.offset,
- minimumTrackStyle = _ref.minimumTrackStyle,
- _trackStyle = _ref._trackStyle;
- var h = this.$createElement;
- return h(_common_Track__WEBPACK_IMPORTED_MODULE_5__["default"], {
- 'class': prefixCls + '-track',
- attrs: { vertical: vertical,
- included: included,
- offset: 0,
- reverse: reverse,
- length: offset
- },
- style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, minimumTrackStyle, _trackStyle)
- });
- },
- renderSlider: function renderSlider() {
- var _this = this;
- var prefixCls = this.prefixCls,
- vertical = this.vertical,
- included = this.included,
- disabled = this.disabled,
- minimumTrackStyle = this.minimumTrackStyle,
- trackStyle = this.trackStyle,
- handleStyle = this.handleStyle,
- tabIndex = this.tabIndex,
- min = this.min,
- max = this.max,
- reverse = this.reverse,
- handle = this.handle,
- defaultHandle = this.defaultHandle;
- var handleGenerator = handle || defaultHandle;
- var sValue = this.sValue,
- dragging = this.dragging;
- var offset = this.calcOffset(sValue);
- var handles = handleGenerator({
- className: prefixCls + '-handle',
- prefixCls: prefixCls,
- vertical: vertical,
- offset: offset,
- value: sValue,
- dragging: dragging,
- disabled: disabled,
- min: min,
- max: max,
- reverse: reverse,
- index: 0,
- tabIndex: tabIndex,
- style: handleStyle[0] || handleStyle,
- directives: [{
- name: 'ant-ref',
- value: function value(h) {
- return _this.saveHandle(0, h);
- }
- }],
- on: {
- focus: this.onFocus,
- blur: this.onBlur
- }
- });
- var _trackStyle = trackStyle[0] || trackStyle;
- return {
- tracks: this.getTrack({
- prefixCls: prefixCls,
- reverse: reverse,
- vertical: vertical,
- included: included,
- offset: offset,
- minimumTrackStyle: minimumTrackStyle,
- _trackStyle: _trackStyle
- }),
- handles: handles
- };
- }
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Object(_common_createSlider__WEBPACK_IMPORTED_MODULE_6__["default"])(Slider));
- /***/ }),
- /***/ "./components/vc-slider/src/common/Marks.jsx":
- /*!***************************************************!*\
- !*** ./components/vc-slider/src/common/Marks.jsx ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- var Marks = {
- functional: true,
- render: function render(h, context) {
- var _context$props = context.props,
- className = _context$props.className,
- vertical = _context$props.vertical,
- reverse = _context$props.reverse,
- marks = _context$props.marks,
- included = _context$props.included,
- upperBound = _context$props.upperBound,
- lowerBound = _context$props.lowerBound,
- max = _context$props.max,
- min = _context$props.min;
- var clickLabel = context.listeners.clickLabel;
- var marksKeys = Object.keys(marks);
- var range = max - min;
- var elements = marksKeys.map(parseFloat).sort(function (a, b) {
- return a - b;
- }).map(function (point) {
- var _classNames;
- var markPoint = typeof marks[point] === 'function' ? marks[point](h) : marks[point];
- var markPointIsObject = (typeof markPoint === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(markPoint)) === 'object' && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isValidElement"])(markPoint);
- var markLabel = markPointIsObject ? markPoint.label : markPoint;
- if (!markLabel && markLabel !== 0) {
- return null;
- }
- var isActive = !included && point === upperBound || included && point <= upperBound && point >= lowerBound;
- var markClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, className + '-text', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, className + '-text-active', isActive), _classNames));
- var bottomStyle = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({
- marginBottom: '-50%'
- }, reverse ? 'top' : 'bottom', (point - min) / range * 100 + '%');
- var leftStyle = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({
- transform: 'translateX(-50%)',
- msTransform: 'translateX(-50%)'
- }, reverse ? 'right' : 'left', reverse ? (point - min / 4) / range * 100 + '%' : (point - min) / range * 100 + '%');
- var style = vertical ? bottomStyle : leftStyle;
- var markStyle = markPointIsObject ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, style, markPoint.style) : style;
- return h(
- 'span',
- {
- 'class': markClassName,
- style: markStyle,
- key: point,
- on: {
- 'mousedown': function mousedown(e) {
- return clickLabel(e, point);
- },
- 'touchstart': function touchstart(e) {
- return clickLabel(e, point);
- }
- }
- },
- [markLabel]
- );
- });
- return h(
- 'div',
- { 'class': className },
- [elements]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Marks);
- /***/ }),
- /***/ "./components/vc-slider/src/common/Steps.jsx":
- /*!***************************************************!*\
- !*** ./components/vc-slider/src/common/Steps.jsx ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/warning */ "./components/_util/warning.js");
- var calcPoints = function calcPoints(vertical, marks, dots, step, min, max) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_3__["default"])(dots ? step > 0 : true, 'Slider', '`Slider[step]` should be a positive number in order to make Slider[dots] work.');
- var points = Object.keys(marks).map(parseFloat).sort(function (a, b) {
- return a - b;
- });
- if (dots && step) {
- for (var i = min; i <= max; i += step) {
- if (points.indexOf(i) === -1) {
- points.push(i);
- }
- }
- }
- return points;
- };
- var Steps = {
- functional: true,
- render: function render(h, context) {
- var _context$props = context.props,
- prefixCls = _context$props.prefixCls,
- vertical = _context$props.vertical,
- reverse = _context$props.reverse,
- marks = _context$props.marks,
- dots = _context$props.dots,
- step = _context$props.step,
- included = _context$props.included,
- lowerBound = _context$props.lowerBound,
- upperBound = _context$props.upperBound,
- max = _context$props.max,
- min = _context$props.min,
- dotStyle = _context$props.dotStyle,
- activeDotStyle = _context$props.activeDotStyle;
- var range = max - min;
- var elements = calcPoints(vertical, marks, dots, step, min, max).map(function (point) {
- var _classNames;
- var offset = Math.abs(point - min) / range * 100 + '%';
- var isActived = !included && point === upperBound || included && point <= upperBound && point >= lowerBound;
- var style = vertical ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dotStyle, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, reverse ? 'top' : 'bottom', offset)) : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dotStyle, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, reverse ? 'right' : 'left', offset));
- if (isActived) {
- style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, style, activeDotStyle);
- }
- var pointClassName = classnames__WEBPACK_IMPORTED_MODULE_2___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-dot', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-dot-active', isActived), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-dot-reverse', reverse), _classNames));
- return h('span', { 'class': pointClassName, style: style, key: point });
- });
- return h(
- 'div',
- { 'class': prefixCls + '-step' },
- [elements]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Steps);
- /***/ }),
- /***/ "./components/vc-slider/src/common/Track.jsx":
- /*!***************************************************!*\
- !*** ./components/vc-slider/src/common/Track.jsx ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* eslint-disable */
- var Track = {
- functional: true,
- render: function render(h, context) {
- var _ref, _ref2;
- var _context$props = context.props,
- included = _context$props.included,
- vertical = _context$props.vertical,
- offset = _context$props.offset,
- length = _context$props.length,
- reverse = _context$props.reverse;
- var _context$data = context.data,
- style = _context$data.style,
- className = _context$data['class'];
- var positonStyle = vertical ? (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'top' : 'bottom', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'bottom' : 'top', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, 'height', length + '%'), _ref) : (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'right' : 'left', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'left' : 'right', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, 'width', length + '%'), _ref2);
- var elStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, style, positonStyle);
- return included ? h('div', { 'class': className, style: elStyle }) : null;
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Track);
- /***/ }),
- /***/ "./components/vc-slider/src/common/createSlider.jsx":
- /*!**********************************************************!*\
- !*** ./components/vc-slider/src/common/createSlider.jsx ***!
- \**********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createSlider; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _Steps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Steps */ "./components/vc-slider/src/common/Steps.jsx");
- /* harmony import */ var _Marks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Marks */ "./components/vc-slider/src/common/Marks.jsx");
- /* harmony import */ var _Handle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Handle */ "./components/vc-slider/src/Handle.jsx");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils */ "./components/vc-slider/src/utils.js");
- function noop() {}
- function createSlider(Component) {
- // const displayName = `ComponentEnhancer(${Component.displayName})`
- var propTypes = {
- min: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- max: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- step: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- marks: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- included: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- handle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- minimumTrackStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, // just for compatibility, will be deperecate
- maximumTrackStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, // just for compatibility, will be deperecate
- handleStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object)]),
- trackStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object)]),
- railStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- dotStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- activeDotStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
- };
- return {
- name: 'createSlider',
- mixins: [Component],
- model: {
- prop: 'value',
- event: 'change'
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(propTypes, {
- prefixCls: 'rc-slider',
- min: 0,
- max: 100,
- step: 1,
- marks: {},
- included: true,
- disabled: false,
- dots: false,
- vertical: false,
- reverse: false,
- trackStyle: [{}],
- handleStyle: [{}],
- railStyle: {},
- dotStyle: {},
- activeDotStyle: {}
- }),
- data: function data() {
- var step = this.step,
- max = this.max,
- min = this.min;
- var isPointDiffEven = isFinite(max - min) ? (max - min) % step === 0 : true; // eslint-disable-line
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(step && Math.floor(step) === step ? isPointDiffEven : true, 'Slider', 'Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)', max - min, step);
- this.handlesRefs = {};
- return {};
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- // Snapshot testing cannot handle refs, so be sure to null-check this.
- _this.document = _this.$refs.sliderRef && _this.$refs.sliderRef.ownerDocument;
- // this.setHandleRefs()
- var autoFocus = _this.autoFocus,
- disabled = _this.disabled;
- if (autoFocus && !disabled) {
- _this.focus();
- }
- });
- },
- beforeDestroy: function beforeDestroy() {
- var _this2 = this;
- this.$nextTick(function () {
- // if (super.componentWillUnmount) super.componentWillUnmount()
- _this2.removeDocumentEvents();
- });
- },
- methods: {
- defaultHandle: function defaultHandle(_ref) {
- var index = _ref.index,
- directives = _ref.directives,
- className = _ref.className,
- style = _ref.style,
- on = _ref.on,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_ref, ['index', 'directives', 'className', 'style', 'on']);
- var h = this.$createElement;
- delete restProps.dragging;
- if (restProps.value === null) {
- return null;
- }
- var handleProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, restProps),
- 'class': className,
- style: style,
- key: index,
- directives: directives,
- on: on
- };
- return h(_Handle__WEBPACK_IMPORTED_MODULE_10__["default"], handleProps);
- },
- onMouseDown: function onMouseDown(e) {
- if (e.button !== 0) {
- return;
- }
- var isVertical = this.vertical;
- var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getMousePosition"](isVertical, e);
- if (!_utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
- this.dragOffset = 0;
- } else {
- var handlePosition = _utils__WEBPACK_IMPORTED_MODULE_11__["getHandleCenterPosition"](isVertical, e.target);
- this.dragOffset = position - handlePosition;
- position = handlePosition;
- }
- this.removeDocumentEvents();
- this.onStart(position);
- this.addDocumentMouseEvents();
- _utils__WEBPACK_IMPORTED_MODULE_11__["pauseEvent"](e);
- },
- onTouchStart: function onTouchStart(e) {
- if (_utils__WEBPACK_IMPORTED_MODULE_11__["isNotTouchEvent"](e)) return;
- var isVertical = this.vertical;
- var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getTouchPosition"](isVertical, e);
- if (!_utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
- this.dragOffset = 0;
- } else {
- var handlePosition = _utils__WEBPACK_IMPORTED_MODULE_11__["getHandleCenterPosition"](isVertical, e.target);
- this.dragOffset = position - handlePosition;
- position = handlePosition;
- }
- this.onStart(position);
- this.addDocumentTouchEvents();
- _utils__WEBPACK_IMPORTED_MODULE_11__["pauseEvent"](e);
- },
- onFocus: function onFocus(e) {
- var vertical = this.vertical;
- if (_utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
- var handlePosition = _utils__WEBPACK_IMPORTED_MODULE_11__["getHandleCenterPosition"](vertical, e.target);
- this.dragOffset = 0;
- this.onStart(handlePosition);
- _utils__WEBPACK_IMPORTED_MODULE_11__["pauseEvent"](e);
- this.$emit('focus', e);
- }
- },
- onBlur: function onBlur(e) {
- this.onEnd();
- this.$emit('blur', e);
- },
- onMouseUp: function onMouseUp() {
- if (this.handlesRefs[this.prevMovedHandleIndex]) {
- this.handlesRefs[this.prevMovedHandleIndex].clickFocus();
- }
- },
- onMouseMove: function onMouseMove(e) {
- if (!this.$refs.sliderRef) {
- this.onEnd();
- return;
- }
- var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getMousePosition"](this.vertical, e);
- this.onMove(e, position - this.dragOffset);
- },
- onTouchMove: function onTouchMove(e) {
- if (_utils__WEBPACK_IMPORTED_MODULE_11__["isNotTouchEvent"](e) || !this.$refs.sliderRef) {
- this.onEnd();
- return;
- }
- var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getTouchPosition"](this.vertical, e);
- this.onMove(e, position - this.dragOffset);
- },
- onKeyDown: function onKeyDown(e) {
- if (this.$refs.sliderRef && _utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
- this.onKeyboard(e);
- }
- },
- onClickMarkLabel: function onClickMarkLabel(e, value) {
- var _this3 = this;
- e.stopPropagation();
- this.onChange({ sValue: value });
- this.setState({ sValue: value }, function () {
- return _this3.onEnd(true);
- });
- },
- getSliderStart: function getSliderStart() {
- var slider = this.$refs.sliderRef;
- var vertical = this.vertical,
- reverse = this.reverse;
- var rect = slider.getBoundingClientRect();
- if (vertical) {
- return reverse ? rect.bottom : rect.top;
- }
- return window.pageXOffset + (reverse ? rect.right : rect.left);
- },
- getSliderLength: function getSliderLength() {
- var slider = this.$refs.sliderRef;
- if (!slider) {
- return 0;
- }
- var coords = slider.getBoundingClientRect();
- return this.vertical ? coords.height : coords.width;
- },
- addDocumentTouchEvents: function addDocumentTouchEvents() {
- // just work for Chrome iOS Safari and Android Browser
- this.onTouchMoveListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'touchmove', this.onTouchMove);
- this.onTouchUpListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'touchend', this.onEnd);
- },
- addDocumentMouseEvents: function addDocumentMouseEvents() {
- this.onMouseMoveListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'mousemove', this.onMouseMove);
- this.onMouseUpListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'mouseup', this.onEnd);
- },
- removeDocumentEvents: function removeDocumentEvents() {
- /* eslint-disable no-unused-expressions */
- this.onTouchMoveListener && this.onTouchMoveListener.remove();
- this.onTouchUpListener && this.onTouchUpListener.remove();
- this.onMouseMoveListener && this.onMouseMoveListener.remove();
- this.onMouseUpListener && this.onMouseUpListener.remove();
- /* eslint-enable no-unused-expressions */
- },
- focus: function focus() {
- if (!this.disabled) {
- this.handlesRefs[0].focus();
- }
- },
- blur: function blur() {
- var _this4 = this;
- if (!this.disabled) {
- Object.keys(this.handlesRefs).forEach(function (key) {
- if (_this4.handlesRefs[key] && _this4.handlesRefs[key].blur) {
- _this4.handlesRefs[key].blur();
- }
- });
- }
- },
- calcValue: function calcValue(offset) {
- var vertical = this.vertical,
- min = this.min,
- max = this.max;
- var ratio = Math.abs(Math.max(offset, 0) / this.getSliderLength());
- var value = vertical ? (1 - ratio) * (max - min) + min : ratio * (max - min) + min;
- return value;
- },
- calcValueByPos: function calcValueByPos(position) {
- var sign = this.reverse ? -1 : +1;
- var pixelOffset = sign * (position - this.getSliderStart());
- var nextValue = this.trimAlignValue(this.calcValue(pixelOffset));
- return nextValue;
- },
- calcOffset: function calcOffset(value) {
- var min = this.min,
- max = this.max;
- var ratio = (value - min) / (max - min);
- return ratio * 100;
- },
- saveHandle: function saveHandle(index, handle) {
- this.handlesRefs[index] = handle;
- }
- },
- render: function render(h) {
- var _classNames;
- var prefixCls = this.prefixCls,
- marks = this.marks,
- dots = this.dots,
- step = this.step,
- included = this.included,
- disabled = this.disabled,
- vertical = this.vertical,
- reverse = this.reverse,
- min = this.min,
- max = this.max,
- maximumTrackStyle = this.maximumTrackStyle,
- railStyle = this.railStyle,
- dotStyle = this.dotStyle,
- activeDotStyle = this.activeDotStyle;
- var _renderSlider = this.renderSlider(h),
- tracks = _renderSlider.tracks,
- handles = _renderSlider.handles;
- var sliderClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-with-marks', Object.keys(marks).length), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-vertical', vertical), _classNames));
- var markProps = {
- props: {
- vertical: vertical,
- marks: marks,
- included: included,
- lowerBound: this.getLowerBound(),
- upperBound: this.getUpperBound(),
- max: max,
- min: min,
- reverse: reverse,
- className: prefixCls + '-mark'
- },
- on: {
- clickLabel: disabled ? noop : this.onClickMarkLabel
- }
- };
- return h(
- 'div',
- {
- ref: 'sliderRef',
- attrs: { tabIndex: '-1'
- },
- 'class': sliderClassName,
- on: {
- 'touchstart': disabled ? noop : this.onTouchStart,
- 'mousedown': disabled ? noop : this.onMouseDown,
- 'mouseup': disabled ? noop : this.onMouseUp,
- 'keydown': disabled ? noop : this.onKeyDown,
- 'focus': disabled ? noop : this.onFocus,
- 'blur': disabled ? noop : this.onBlur
- }
- },
- [h('div', {
- 'class': prefixCls + '-rail',
- style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, maximumTrackStyle, railStyle)
- }), tracks, h(_Steps__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: {
- prefixCls: prefixCls,
- vertical: vertical,
- reverse: reverse,
- marks: marks,
- dots: dots,
- step: step,
- included: included,
- lowerBound: this.getLowerBound(),
- upperBound: this.getUpperBound(),
- max: max,
- min: min,
- dotStyle: dotStyle,
- activeDotStyle: activeDotStyle
- }
- }), handles, h(_Marks__WEBPACK_IMPORTED_MODULE_9__["default"], markProps), this.$slots['default']]
- );
- }
- };
- }
- /***/ }),
- /***/ "./components/vc-slider/src/utils.js":
- /*!*******************************************!*\
- !*** ./components/vc-slider/src/utils.js ***!
- \*******************************************/
- /*! exports provided: isEventFromHandle, isValueOutOfRange, isNotTouchEvent, getClosestPoint, getPrecision, getMousePosition, getTouchPosition, getHandleCenterPosition, ensureValueInRange, ensureValuePrecision, pauseEvent, calculateNextValue, getKeyboardValueMutator */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEventFromHandle", function() { return isEventFromHandle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValueOutOfRange", function() { return isValueOutOfRange; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNotTouchEvent", function() { return isNotTouchEvent; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClosestPoint", function() { return getClosestPoint; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPrecision", function() { return getPrecision; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMousePosition", function() { return getMousePosition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTouchPosition", function() { return getTouchPosition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHandleCenterPosition", function() { return getHandleCenterPosition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ensureValueInRange", function() { return ensureValueInRange; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ensureValuePrecision", function() { return ensureValuePrecision; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pauseEvent", function() { return pauseEvent; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateNextValue", function() { return calculateNextValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKeyboardValueMutator", function() { return getKeyboardValueMutator; });
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
- function isEventFromHandle(e, handles) {
- try {
- return Object.keys(handles).some(function (key) {
- return e.target === handles[key].$el || e.target === handles[key];
- });
- } catch (error) {
- return false;
- }
- }
- function isValueOutOfRange(value, _ref) {
- var min = _ref.min,
- max = _ref.max;
- return value < min || value > max;
- }
- function isNotTouchEvent(e) {
- return e.touches.length > 1 || e.type.toLowerCase() === 'touchend' && e.touches.length > 0;
- }
- function getClosestPoint(val, _ref2) {
- var marks = _ref2.marks,
- step = _ref2.step,
- min = _ref2.min,
- max = _ref2.max;
- var points = Object.keys(marks).map(parseFloat);
- if (step !== null) {
- var base = Math.pow(10, getPrecision(step));
- var maxSteps = Math.floor((max * base - min * base) / (step * base));
- var steps = Math.min((val - min) / step, maxSteps);
- var closestStep = Math.round(steps) * step + min;
- points.push(closestStep);
- }
- var diffs = points.map(function (point) {
- return Math.abs(val - point);
- });
- return points[diffs.indexOf(Math.min.apply(Math, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(diffs)))];
- }
- function getPrecision(step) {
- var stepString = step.toString();
- var precision = 0;
- if (stepString.indexOf('.') >= 0) {
- precision = stepString.length - stepString.indexOf('.') - 1;
- }
- return precision;
- }
- function getMousePosition(vertical, e) {
- var zoom = 1;
- if (window.visualViewport) {
- zoom = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2);
- }
- return (vertical ? e.clientY : e.pageX) / zoom;
- }
- function getTouchPosition(vertical, e) {
- var zoom = 1;
- if (window.visualViewport) {
- zoom = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2);
- }
- return (vertical ? e.touches[0].clientY : e.touches[0].pageX) / zoom;
- }
- function getHandleCenterPosition(vertical, handle) {
- var coords = handle.getBoundingClientRect();
- return vertical ? coords.top + coords.height * 0.5 : window.pageXOffset + coords.left + coords.width * 0.5;
- }
- function ensureValueInRange(val, _ref3) {
- var max = _ref3.max,
- min = _ref3.min;
- if (val <= min) {
- return min;
- }
- if (val >= max) {
- return max;
- }
- return val;
- }
- function ensureValuePrecision(val, props) {
- var step = props.step;
- var closestPoint = isFinite(getClosestPoint(val, props)) ? getClosestPoint(val, props) : 0; // eslint-disable-line
- return step === null ? closestPoint : parseFloat(closestPoint.toFixed(getPrecision(step)));
- }
- function pauseEvent(e) {
- e.stopPropagation();
- e.preventDefault();
- }
- function calculateNextValue(func, value, props) {
- var operations = {
- increase: function increase(a, b) {
- return a + b;
- },
- decrease: function decrease(a, b) {
- return a - b;
- }
- };
- var indexToGet = operations[func](Object.keys(props.marks).indexOf(JSON.stringify(value)), 1);
- var keyToGet = Object.keys(props.marks)[indexToGet];
- if (props.step) {
- return operations[func](value, props.step);
- } else if (!!Object.keys(props.marks).length && !!props.marks[keyToGet]) {
- return props.marks[keyToGet];
- }
- return value;
- }
- function getKeyboardValueMutator(e, vertical, reverse) {
- var increase = 'increase';
- var decrease = 'decrease';
- var method = increase;
- switch (e.keyCode) {
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].UP:
- method = vertical && reverse ? decrease : increase;
- break;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].RIGHT:
- method = !vertical && reverse ? decrease : increase;
- break;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].DOWN:
- method = vertical && reverse ? increase : decrease;
- break;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].LEFT:
- method = !vertical && reverse ? increase : decrease;
- break;
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].END:
- return function (value, props) {
- return props.max;
- };
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].HOME:
- return function (value, props) {
- return props.min;
- };
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].PAGE_UP:
- return function (value, props) {
- return value + props.step * 2;
- };
- case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].PAGE_DOWN:
- return function (value, props) {
- return value - props.step * 2;
- };
- default:
- return undefined;
- }
- return function (value, props) {
- return calculateNextValue(method, value, props);
- };
- }
- /***/ }),
- /***/ "./components/vc-steps/Step.jsx":
- /*!**************************************!*\
- !*** ./components/vc-steps/Step.jsx ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- function isString(str) {
- return typeof str === 'string';
- }
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Step',
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- wrapperStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- itemWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- active: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- status: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- iconPrefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- adjustMarginRight: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- stepNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- stepIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- description: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- subTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- progressDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func]),
- tailContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- icons: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
- finish: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- error: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
- }).loose
- },
- methods: {
- onClick: function onClick() {
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- this.$emit.apply(this, ['click'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
- this.$emit('stepClick', this.stepIndex);
- },
- renderIconNode: function renderIconNode() {
- var _iconClassName;
- var h = this.$createElement;
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
- prefixCls = _getOptionProps.prefixCls,
- stepNumber = _getOptionProps.stepNumber,
- status = _getOptionProps.status,
- iconPrefix = _getOptionProps.iconPrefix,
- icons = _getOptionProps.icons;
- var progressDot = this.progressDot;
- if (progressDot === undefined) {
- progressDot = this.$scopedSlots.progressDot;
- }
- var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'icon');
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'title');
- var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'description');
- var iconNode = void 0;
- var iconClassName = (_iconClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, prefixCls + '-icon', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon-' + icon, icon && isString(icon)), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon-check', !icon && status === 'finish' && icons && !icons.finish), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon-close', !icon && status === 'error' && icons && !icons.error), _iconClassName);
- var iconDot = h('span', { 'class': prefixCls + '-icon-dot' });
- // `progressDot` enjoy the highest priority
- if (progressDot) {
- if (typeof progressDot === 'function') {
- iconNode = h(
- 'span',
- { 'class': prefixCls + '-icon' },
- [progressDot({ index: stepNumber - 1, status: status, title: title, description: description, prefixCls: prefixCls })]
- );
- } else {
- iconNode = h(
- 'span',
- { 'class': prefixCls + '-icon' },
- [iconDot]
- );
- }
- } else if (icon && !isString(icon)) {
- iconNode = h(
- 'span',
- { 'class': prefixCls + '-icon' },
- [icon]
- );
- } else if (icons && icons.finish && status === 'finish') {
- iconNode = h(
- 'span',
- { 'class': prefixCls + '-icon' },
- [icons.finish]
- );
- } else if (icons && icons.error && status === 'error') {
- iconNode = h(
- 'span',
- { 'class': prefixCls + '-icon' },
- [icons.error]
- );
- } else if (icon || status === 'finish' || status === 'error') {
- iconNode = h('span', { 'class': iconClassName });
- } else {
- iconNode = h(
- 'span',
- { 'class': prefixCls + '-icon' },
- [stepNumber]
- );
- }
- return iconNode;
- }
- },
- render: function render() {
- var _classString;
- var h = arguments[0];
- var _getOptionProps2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
- prefixCls = _getOptionProps2.prefixCls,
- itemWidth = _getOptionProps2.itemWidth,
- active = _getOptionProps2.active,
- _getOptionProps2$stat = _getOptionProps2.status,
- status = _getOptionProps2$stat === undefined ? 'wait' : _getOptionProps2$stat,
- tailContent = _getOptionProps2.tailContent,
- adjustMarginRight = _getOptionProps2.adjustMarginRight,
- disabled = _getOptionProps2.disabled;
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'title');
- var subTitle = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'subTitle');
- var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'description');
- var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-' + status, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-custom', Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'icon')), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-active', active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-disabled', disabled === true), _classString);
- var stepProps = {
- 'class': classString,
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
- };
- var stepItemStyle = {};
- if (itemWidth) {
- stepItemStyle.width = itemWidth;
- }
- if (adjustMarginRight) {
- stepItemStyle.marginRight = adjustMarginRight;
- }
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this);
- var accessibilityProps = {
- attrs: {},
- on: {
- click: listeners.click || noop
- }
- };
- if (listeners.stepClick && !disabled) {
- accessibilityProps.attrs.role = 'button';
- accessibilityProps.attrs.tabIndex = 0;
- accessibilityProps.on.click = this.onClick;
- }
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([stepProps, { style: stepItemStyle }]),
- [h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([accessibilityProps, { 'class': prefixCls + '-item-container' }]),
- [h(
- 'div',
- { 'class': prefixCls + '-item-tail' },
- [tailContent]
- ), h(
- 'div',
- { 'class': prefixCls + '-item-icon' },
- [this.renderIconNode()]
- ), h(
- 'div',
- { 'class': prefixCls + '-item-content' },
- [h(
- 'div',
- { 'class': prefixCls + '-item-title' },
- [title, subTitle && h(
- 'div',
- {
- attrs: { title: subTitle },
- 'class': prefixCls + '-item-subtitle' },
- [subTitle]
- )]
- ), description && h(
- 'div',
- { 'class': prefixCls + '-item-description' },
- [description]
- )]
- )]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-steps/Steps.jsx":
- /*!***************************************!*\
- !*** ./components/vc-steps/Steps.jsx ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_isFlexSupported__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/isFlexSupported */ "./components/_util/isFlexSupported.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Steps',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: {
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('default'),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-steps'),
- iconPrefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc'),
- direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('horizontal'),
- labelPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('horizontal'),
- status: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('process'),
- size: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def(''),
- progressDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
- initial: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0),
- current: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0),
- icons: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape({
- finish: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- error: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
- }).loose
- },
- data: function data() {
- this.calcStepOffsetWidth = lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default()(this.calcStepOffsetWidth, 150);
- return {
- flexSupported: true,
- lastStepOffsetWidth: 0
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- _this.calcStepOffsetWidth();
- if (!Object(_util_isFlexSupported__WEBPACK_IMPORTED_MODULE_5__["default"])()) {
- _this.setState({
- flexSupported: false
- });
- }
- });
- },
- updated: function updated() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.calcStepOffsetWidth();
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.calcTimeout) {
- clearTimeout(this.calcTimeout);
- }
- if (this.calcStepOffsetWidth && this.calcStepOffsetWidth.cancel) {
- this.calcStepOffsetWidth.cancel();
- }
- },
- methods: {
- onStepClick: function onStepClick(next) {
- var current = this.$props.current;
- if (current !== next) {
- this.$emit('change', next);
- }
- },
- calcStepOffsetWidth: function calcStepOffsetWidth() {
- var _this3 = this;
- if (Object(_util_isFlexSupported__WEBPACK_IMPORTED_MODULE_5__["default"])()) {
- return;
- }
- var lastStepOffsetWidth = this.$data.lastStepOffsetWidth;
- // Just for IE9
- var domNode = this.$refs.vcStepsRef;
- if (domNode.children.length > 0) {
- if (this.calcTimeout) {
- clearTimeout(this.calcTimeout);
- }
- this.calcTimeout = setTimeout(function () {
- // +1 for fit edge bug of digit width, like 35.4px
- var offsetWidth = (domNode.lastChild.offsetWidth || 0) + 1;
- // Reduce shake bug
- if (lastStepOffsetWidth === offsetWidth || Math.abs(lastStepOffsetWidth - offsetWidth) <= 3) {
- return;
- }
- _this3.setState({ lastStepOffsetWidth: offsetWidth });
- });
- }
- }
- },
- render: function render() {
- var _classString,
- _this4 = this;
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- direction = this.direction,
- type = this.type,
- labelPlacement = this.labelPlacement,
- iconPrefix = this.iconPrefix,
- status = this.status,
- size = this.size,
- current = this.current,
- $scopedSlots = this.$scopedSlots,
- initial = this.initial,
- icons = this.icons;
- var isNav = type === 'navigation';
- var progressDot = this.progressDot;
- if (progressDot === undefined) {
- progressDot = $scopedSlots.progressDot;
- }
- var lastStepOffsetWidth = this.lastStepOffsetWidth,
- flexSupported = this.flexSupported;
- var filteredChildren = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(this.$slots['default']);
- var lastIndex = filteredChildren.length - 1;
- var adjustedlabelPlacement = progressDot ? 'vertical' : labelPlacement;
- var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-' + direction, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-' + size, size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-label-' + adjustedlabelPlacement, direction === 'horizontal'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-dot', !!progressDot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-navigation', isNav), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-flex-not-supported', !flexSupported), _classString);
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this);
- var stepsProps = {
- 'class': classString,
- ref: 'vcStepsRef',
- on: listeners
- };
- return h(
- 'div',
- stepsProps,
- [filteredChildren.map(function (child, index) {
- var childProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getPropsData"])(child);
- var stepNumber = initial + index;
- var stepProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- stepNumber: '' + (stepNumber + 1),
- stepIndex: stepNumber,
- prefixCls: prefixCls,
- iconPrefix: iconPrefix,
- progressDot: _this4.progressDot,
- icons: icons
- }, childProps),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getEvents"])(child),
- scopedSlots: $scopedSlots
- };
- if (listeners.change) {
- stepProps.on.stepClick = _this4.onStepClick;
- }
- if (!flexSupported && direction !== 'vertical') {
- if (isNav) {
- stepProps.props.itemWidth = 100 / (lastIndex + 1) + '%';
- stepProps.props.adjustMarginRight = 0;
- } else if (index !== lastIndex) {
- stepProps.props.itemWidth = 100 / lastIndex + '%';
- stepProps.props.adjustMarginRight = -Math.round(lastStepOffsetWidth / lastIndex + 1) + 'px';
- }
- }
- // fix tail color
- if (status === 'error' && index === current - 1) {
- stepProps['class'] = prefixCls + '-next-error';
- }
- if (!childProps.status) {
- if (stepNumber === current) {
- stepProps.props.status = status;
- } else if (stepNumber < current) {
- stepProps.props.status = 'finish';
- } else {
- stepProps.props.status = 'wait';
- }
- }
- stepProps.props.active = stepNumber === current;
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(child, stepProps);
- })]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-steps/index.js":
- /*!**************************************!*\
- !*** ./components/vc-steps/index.js ***!
- \**************************************/
- /*! exports provided: Step, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Steps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Steps */ "./components/vc-steps/Steps.jsx");
- /* harmony import */ var _Step__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Step */ "./components/vc-steps/Step.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Step", function() { return _Step__WEBPACK_IMPORTED_MODULE_1__["default"]; });
- // base rc-steps 3.5.0
- _Steps__WEBPACK_IMPORTED_MODULE_0__["default"].Step = _Step__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* harmony default export */ __webpack_exports__["default"] = (_Steps__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-switch/PropTypes.js":
- /*!*******************************************!*\
- !*** ./components/vc-switch/PropTypes.js ***!
- \*******************************************/
- /*! exports provided: switchPropTypes */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchPropTypes", function() { return switchPropTypes; });
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- var switchPropTypes = {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- checkedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- unCheckedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- // onChange: PropTypes.func,
- // onMouseUp: PropTypes.func,
- // onClick: PropTypes.func,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
- checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
- loadingIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- };
- /***/ }),
- /***/ "./components/vc-switch/Switch.jsx":
- /*!*****************************************!*\
- !*** ./components/vc-switch/Switch.jsx ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-switch/PropTypes.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- // function noop () {
- // }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'VcSwitch',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- model: {
- prop: 'checked',
- event: 'change'
- },
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _PropTypes__WEBPACK_IMPORTED_MODULE_3__["switchPropTypes"], {
- prefixCls: _PropTypes__WEBPACK_IMPORTED_MODULE_3__["switchPropTypes"].prefixCls.def('rc-switch')
- // onChange: switchPropTypes.onChange.def(noop),
- // onClick: switchPropTypes.onClick.def(noop),
- }),
- data: function data() {
- var checked = false;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'checked')) {
- checked = !!this.checked;
- } else {
- checked = !!this.defaultChecked;
- }
- return {
- stateChecked: checked
- };
- },
- watch: {
- checked: function checked(val) {
- this.stateChecked = val;
- }
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- var autoFocus = _this.autoFocus,
- disabled = _this.disabled;
- if (autoFocus && !disabled) {
- _this.focus();
- }
- });
- },
- methods: {
- setChecked: function setChecked(checked, e) {
- if (this.disabled) {
- return;
- }
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'checked')) {
- this.stateChecked = checked;
- }
- this.$emit('change', checked, e);
- },
- handleClick: function handleClick(e) {
- var checked = !this.stateChecked;
- this.setChecked(checked, e);
- this.$emit('click', checked, e);
- },
- handleKeyDown: function handleKeyDown(e) {
- if (e.keyCode === 37) {
- // Left
- this.setChecked(false, e);
- } else if (e.keyCode === 39) {
- // Right
- this.setChecked(true, e);
- }
- },
- handleMouseUp: function handleMouseUp(e) {
- if (this.$refs.refSwitchNode) {
- this.$refs.refSwitchNode.blur();
- }
- this.$emit('mouseup', e);
- },
- focus: function focus() {
- this.$refs.refSwitchNode.focus();
- },
- blur: function blur() {
- this.$refs.refSwitchNode.blur();
- }
- },
- render: function render() {
- var _switchClassName;
- var h = arguments[0];
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this),
- prefixCls = _getOptionProps.prefixCls,
- disabled = _getOptionProps.disabled,
- loadingIcon = _getOptionProps.loadingIcon,
- tabIndex = _getOptionProps.tabIndex,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'disabled', 'loadingIcon', 'tabIndex']);
- var checked = this.stateChecked;
- var switchClassName = (_switchClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_switchClassName, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_switchClassName, prefixCls + '-checked', checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_switchClassName, prefixCls + '-disabled', disabled), _switchClassName);
- var spanProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
- keydown: this.handleKeyDown,
- click: this.handleClick,
- mouseup: this.handleMouseUp
- }),
- attrs: {
- type: 'button',
- role: 'switch',
- 'aria-checked': checked,
- disabled: disabled,
- tabIndex: tabIndex
- },
- 'class': switchClassName,
- ref: 'refSwitchNode'
- };
- return h(
- 'button',
- spanProps,
- [loadingIcon, h(
- 'span',
- { 'class': prefixCls + '-inner' },
- [checked ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'checkedChildren') : Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'unCheckedChildren')]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-switch/index.js":
- /*!***************************************!*\
- !*** ./components/vc-switch/index.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Switch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Switch */ "./components/vc-switch/Switch.jsx");
- // base rc-switch 1.9.0
- /* harmony default export */ __webpack_exports__["default"] = (_Switch__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-table/index.js":
- /*!**************************************!*\
- !*** ./components/vc-table/index.js ***!
- \**************************************/
- /*! exports provided: default, Column, ColumnGroup, INTERNAL_COL_DEFINE */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _src_Table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Table */ "./components/vc-table/src/Table.jsx");
- /* harmony import */ var _src_Column__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/Column */ "./components/vc-table/src/Column.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Column", function() { return _src_Column__WEBPACK_IMPORTED_MODULE_2__["default"]; });
- /* harmony import */ var _src_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/ColumnGroup */ "./components/vc-table/src/ColumnGroup.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnGroup", function() { return _src_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _src_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./src/utils */ "./components/vc-table/src/utils.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_COL_DEFINE", function() { return _src_utils__WEBPACK_IMPORTED_MODULE_5__["INTERNAL_COL_DEFINE"]; });
- // base rc-table 6.10.9
- var Table = {
- name: 'Table',
- Column: _src_Column__WEBPACK_IMPORTED_MODULE_2__["default"],
- ColumnGroup: _src_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__["default"],
- props: _src_Table__WEBPACK_IMPORTED_MODULE_1__["default"].props,
- methods: {
- getTableNode: function getTableNode() {
- return this.$refs.table.tableNode;
- },
- getBodyTable: function getBodyTable() {
- return this.$refs.table.ref_bodyTable;
- },
- normalize: function normalize() {
- var _this = this;
- var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var columns = [];
- elements.forEach(function (element) {
- if (!element.tag) {
- return;
- }
- var key = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getKey"])(element);
- var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getStyle"])(element);
- var cls = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getClass"])(element);
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(element);
- var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getEvents"])(element);
- var listeners = {};
- Object.keys(events).forEach(function (e) {
- var k = 'on-' + e;
- listeners[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["camelize"])(k)] = events[e];
- });
- var _getSlots = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getSlots"])(element),
- children = _getSlots['default'],
- title = _getSlots.title;
- var column = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ title: title }, props, { style: style, 'class': cls }, listeners);
- if (key) {
- column.key = key;
- }
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getSlotOptions"])(element).isTableColumnGroup) {
- column.children = _this.normalize(typeof children === 'function' ? children() : children);
- } else {
- var customRender = element.data && element.data.scopedSlots && element.data.scopedSlots['default'];
- column.customRender = column.customRender || customRender;
- }
- columns.push(column);
- });
- return columns;
- }
- },
- render: function render() {
- var h = arguments[0];
- var $slots = this.$slots,
- normalize = this.normalize;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
- var columns = props.columns || normalize($slots['default']);
- var tProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
- columns: columns
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
- ref: 'table'
- };
- return h(_src_Table__WEBPACK_IMPORTED_MODULE_1__["default"], tProps);
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Table);
- /***/ }),
- /***/ "./components/vc-table/src/BaseTable.jsx":
- /*!***********************************************!*\
- !*** ./components/vc-table/src/BaseTable.jsx ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _ColGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ColGroup */ "./components/vc-table/src/ColGroup.jsx");
- /* harmony import */ var _TableHeader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TableHeader */ "./components/vc-table/src/TableHeader.jsx");
- /* harmony import */ var _TableRow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TableRow */ "./components/vc-table/src/TableRow.jsx");
- /* harmony import */ var _ExpandableRow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ExpandableRow */ "./components/vc-table/src/ExpandableRow.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- function noop() {}
- var BaseTable = {
- name: 'BaseTable',
- props: {
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
- columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.isRequired,
- tableClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.isRequired,
- hasHead: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.isRequired,
- hasBody: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.isRequired,
- expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.isRequired,
- getRowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- isAnyColumnsFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- },
- inject: {
- table: { 'default': function _default() {
- return {};
- } },
- store: { from: 'table-store', 'default': function _default() {
- return {};
- } }
- },
- methods: {
- getColumns: function getColumns(cols) {
- var _$props = this.$props,
- _$props$columns = _$props.columns,
- columns = _$props$columns === undefined ? [] : _$props$columns,
- fixed = _$props.fixed;
- var table = this.table;
- var prefixCls = table.$props.prefixCls;
- return (cols || columns).map(function (column) {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, column, {
- className: !!column.fixed && !fixed ? classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls + '-fixed-columns-in-body', column.className || column['class']) : column.className || column['class']
- });
- });
- },
- handleRowHover: function handleRowHover(isHover, key) {
- this.store.currentHoverKey = isHover ? key : null;
- },
- renderRows: function renderRows(renderData, indent) {
- var _this = this;
- var ancestorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
- var h = this.$createElement;
- var _table = this.table,
- columnManager = _table.columnManager,
- components = _table.sComponents,
- prefixCls = _table.prefixCls,
- childrenColumnName = _table.childrenColumnName,
- rowClassName = _table.rowClassName,
- _table$customRow = _table.customRow,
- customRow = _table$customRow === undefined ? noop : _table$customRow;
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this.table),
- _getListeners$rowClic = _getListeners.rowClick,
- onRowClick = _getListeners$rowClic === undefined ? noop : _getListeners$rowClic,
- _getListeners$rowDoub = _getListeners.rowDoubleclick,
- onRowDoubleClick = _getListeners$rowDoub === undefined ? noop : _getListeners$rowDoub,
- _getListeners$rowCont = _getListeners.rowContextmenu,
- onRowContextMenu = _getListeners$rowCont === undefined ? noop : _getListeners$rowCont,
- _getListeners$rowMous = _getListeners.rowMouseenter,
- onRowMouseEnter = _getListeners$rowMous === undefined ? noop : _getListeners$rowMous,
- _getListeners$rowMous2 = _getListeners.rowMouseleave,
- onRowMouseLeave = _getListeners$rowMous2 === undefined ? noop : _getListeners$rowMous2;
- var getRowKey = this.getRowKey,
- fixed = this.fixed,
- expander = this.expander,
- isAnyColumnsFixed = this.isAnyColumnsFixed;
- var rows = [];
- var _loop = function _loop(i) {
- var record = renderData[i];
- var key = getRowKey(record, i);
- var className = typeof rowClassName === 'string' ? rowClassName : rowClassName(record, i, indent);
- var onHoverProps = {};
- if (columnManager.isAnyColumnsFixed()) {
- onHoverProps.hover = _this.handleRowHover;
- }
- var leafColumns = void 0;
- if (fixed === 'left') {
- leafColumns = columnManager.leftLeafColumns();
- } else if (fixed === 'right') {
- leafColumns = columnManager.rightLeafColumns();
- } else {
- leafColumns = _this.getColumns(columnManager.leafColumns());
- }
- var rowPrefixCls = prefixCls + '-row';
- var expandableRowProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, expander.props, {
- fixed: fixed,
- index: i,
- prefixCls: rowPrefixCls,
- record: record,
- rowKey: key,
- needIndentSpaced: expander.needIndentSpaced
- }),
- key: key,
- on: {
- // ...expander.on,
- rowClick: onRowClick,
- expandedChange: expander.handleExpandChange
- },
- scopedSlots: {
- 'default': function _default(expandableRow) {
- var tableRowProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["mergeProps"])({
- props: {
- fixed: fixed,
- indent: indent,
- record: record,
- index: i,
- prefixCls: rowPrefixCls,
- childrenColumnName: childrenColumnName,
- columns: leafColumns,
- rowKey: key,
- ancestorKeys: ancestorKeys,
- components: components,
- isAnyColumnsFixed: isAnyColumnsFixed,
- customRow: customRow
- },
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- rowDoubleclick: onRowDoubleClick,
- rowContextmenu: onRowContextMenu,
- rowMouseenter: onRowMouseEnter,
- rowMouseleave: onRowMouseLeave
- }, onHoverProps),
- 'class': className,
- ref: 'row_' + i + '_' + indent
- }, expandableRow);
- return h(_TableRow__WEBPACK_IMPORTED_MODULE_5__["default"], tableRowProps);
- }
- }
- };
- var row = h(_ExpandableRow__WEBPACK_IMPORTED_MODULE_6__["default"], expandableRowProps);
- rows.push(row);
- expander.renderRows(_this.renderRows, rows, record, i, indent, fixed, key, ancestorKeys);
- };
- for (var i = 0; i < renderData.length; i += 1) {
- _loop(i);
- }
- return rows;
- }
- },
- render: function render() {
- var h = arguments[0];
- var _table2 = this.table,
- components = _table2.sComponents,
- prefixCls = _table2.prefixCls,
- scroll = _table2.scroll,
- data = _table2.data,
- getBodyWrapper = _table2.getBodyWrapper;
- var _$props2 = this.$props,
- expander = _$props2.expander,
- tableClassName = _$props2.tableClassName,
- hasHead = _$props2.hasHead,
- hasBody = _$props2.hasBody,
- fixed = _$props2.fixed,
- isAnyColumnsFixed = _$props2.isAnyColumnsFixed;
- var columns = this.getColumns();
- var tableStyle = {};
- if (!fixed && scroll.x) {
- // 当有固定列时,width auto 会导致 body table 的宽度撑不开,从而固定列无法对齐
- // 详情见:https://github.com/ant-design/ant-design/issues/22160
- var tableWidthScrollX = isAnyColumnsFixed ? 'max-content' : 'auto';
- // not set width, then use content fixed width
- tableStyle.width = scroll.x === true ? tableWidthScrollX : scroll.x;
- tableStyle.width = typeof tableStyle.width === 'number' ? tableStyle.width + 'px' : tableStyle.width;
- }
- if (fixed) {
- var width = columns.reduce(function (sum, _ref) {
- var w = _ref.width;
- return sum + parseFloat(w, 10);
- }, 0);
- if (width > 0) {
- tableStyle.width = width + 'px';
- }
- }
- var Table = hasBody ? components.table : 'table';
- var BodyWrapper = components.body.wrapper;
- var body = void 0;
- if (hasBody) {
- body = h(
- BodyWrapper,
- { 'class': prefixCls + '-tbody' },
- [this.renderRows(data, 0)]
- );
- if (getBodyWrapper) {
- body = getBodyWrapper(body);
- }
- }
- return h(
- Table,
- { 'class': tableClassName, style: tableStyle, key: 'table' },
- [h(_ColGroup__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: { columns: columns, fixed: fixed }
- }), hasHead && h(_TableHeader__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: { expander: expander, columns: columns, fixed: fixed }
- }), body]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (BaseTable);
- /***/ }),
- /***/ "./components/vc-table/src/BodyTable.jsx":
- /*!***********************************************!*\
- !*** ./components/vc-table/src/BodyTable.jsx ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
- /* harmony import */ var _BaseTable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BaseTable */ "./components/vc-table/src/BaseTable.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BodyTable',
- props: {
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool]),
- columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.isRequired,
- tableClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.isRequired,
- handleBodyScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
- handleWheel: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
- getRowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
- expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
- isAnyColumnsFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
- },
- inject: {
- table: { 'default': function _default() {
- return {};
- } }
- },
- render: function render() {
- var h = arguments[0];
- var _table = this.table,
- prefixCls = _table.prefixCls,
- scroll = _table.scroll;
- var columns = this.columns,
- fixed = this.fixed,
- tableClassName = this.tableClassName,
- getRowKey = this.getRowKey,
- handleBodyScroll = this.handleBodyScroll,
- handleWheel = this.handleWheel,
- expander = this.expander,
- isAnyColumnsFixed = this.isAnyColumnsFixed;
- var _table2 = this.table,
- useFixedHeader = _table2.useFixedHeader,
- saveRef = _table2.saveRef;
- var bodyStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.table.bodyStyle);
- var innerBodyStyle = {};
- if (scroll.x || fixed) {
- bodyStyle.overflowX = bodyStyle.overflowX || 'scroll';
- // Fix weired webkit render bug
- // https://github.com/ant-design/ant-design/issues/7783
- bodyStyle.WebkitTransform = 'translate3d (0, 0, 0)';
- }
- if (scroll.y) {
- // maxHeight will make fixed-Table scrolling not working
- // so we only set maxHeight to body-Table here
- var maxHeight = bodyStyle.maxHeight || scroll.y;
- maxHeight = typeof maxHeight === 'number' ? maxHeight + 'px' : maxHeight;
- if (fixed) {
- innerBodyStyle.maxHeight = maxHeight;
- innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
- } else {
- bodyStyle.maxHeight = maxHeight;
- }
- bodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
- useFixedHeader = true;
- // Add negative margin bottom for scroll bar overflow bug
- var scrollbarWidth = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["measureScrollbar"])({ direction: 'vertical' });
- if (scrollbarWidth > 0 && fixed) {
- bodyStyle.marginBottom = '-' + scrollbarWidth + 'px';
- bodyStyle.paddingBottom = '0px';
- }
- }
- var baseTable = h(_BaseTable__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: {
- tableClassName: tableClassName,
- hasHead: !useFixedHeader,
- hasBody: true,
- fixed: fixed,
- columns: columns,
- expander: expander,
- getRowKey: getRowKey,
- isAnyColumnsFixed: isAnyColumnsFixed
- }
- });
- if (fixed && columns.length) {
- var refName = void 0;
- if (columns[0].fixed === 'left' || columns[0].fixed === true) {
- refName = 'fixedColumnsBodyLeft';
- } else if (columns[0].fixed === 'right') {
- refName = 'fixedColumnsBodyRight';
- }
- delete bodyStyle.overflowX;
- delete bodyStyle.overflowY;
- return h(
- 'div',
- { key: 'bodyTable', 'class': prefixCls + '-body-outer', style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, bodyStyle) },
- [h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- 'class': prefixCls + '-body-inner',
- style: innerBodyStyle
- }, {
- directives: [{
- name: 'ant-ref',
- value: saveRef(refName)
- }]
- }, {
- on: {
- 'wheel': handleWheel,
- 'scroll': handleBodyScroll
- }
- }]),
- [baseTable]
- )]
- );
- }
- // Should provides `tabIndex` if use scroll to enable keyboard scroll
- var useTabIndex = scroll && (scroll.x || scroll.y);
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- tabIndex: useTabIndex ? -1 : undefined
- },
- key: 'bodyTable',
- 'class': prefixCls + '-body',
- style: bodyStyle
- }, {
- directives: [{
- name: 'ant-ref',
- value: saveRef('bodyTable')
- }]
- }, {
- on: {
- 'wheel': handleWheel,
- 'scroll': handleBodyScroll
- }
- }]),
- [baseTable]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-table/src/ColGroup.jsx":
- /*!**********************************************!*\
- !*** ./components/vc-table/src/ColGroup.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ColGroup',
- props: {
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
- },
- inject: {
- table: { 'default': function _default() {
- return {};
- } }
- },
- render: function render() {
- var h = arguments[0];
- var fixed = this.fixed,
- table = this.table;
- var prefixCls = table.prefixCls,
- expandIconAsCell = table.expandIconAsCell,
- columnManager = table.columnManager;
- var cols = [];
- if (expandIconAsCell && fixed !== 'right') {
- cols.push(h('col', { 'class': prefixCls + '-expand-icon-col', key: 'rc-table-expand-icon-col' }));
- }
- var leafColumns = void 0;
- if (fixed === 'left') {
- leafColumns = columnManager.leftLeafColumns();
- } else if (fixed === 'right') {
- leafColumns = columnManager.rightLeafColumns();
- } else {
- leafColumns = columnManager.leafColumns();
- }
- cols = cols.concat(leafColumns.map(function (_ref) {
- var key = _ref.key,
- dataIndex = _ref.dataIndex,
- width = _ref.width,
- additionalProps = _ref[_utils__WEBPACK_IMPORTED_MODULE_2__["INTERNAL_COL_DEFINE"]];
- var mergedKey = key !== undefined ? key : dataIndex;
- var w = typeof width === 'number' ? width + 'px' : width;
- return h('col', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: mergedKey, style: { width: w, minWidth: w } }, additionalProps]));
- }));
- return h('colgroup', [cols]);
- }
- });
- /***/ }),
- /***/ "./components/vc-table/src/Column.jsx":
- /*!********************************************!*\
- !*** ./components/vc-table/src/Column.jsx ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Column',
- props: {
- rowSpan: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- colSpan: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- dataIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string]),
- ellipsis: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf([true, 'left', 'right']),
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['left', 'center', 'right']),
- customRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- className: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- // onCellClick: PropTypes.func,
- customCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- customHeaderCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
- }
- });
- /***/ }),
- /***/ "./components/vc-table/src/ColumnGroup.jsx":
- /*!*************************************************!*\
- !*** ./components/vc-table/src/ColumnGroup.jsx ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ColumnGroup',
- props: {
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- },
- isTableColumnGroup: true
- });
- /***/ }),
- /***/ "./components/vc-table/src/ColumnManager.jsx":
- /*!***************************************************!*\
- !*** ./components/vc-table/src/ColumnManager.jsx ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
- /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/createClass */ "./node_modules/babel-runtime/helpers/createClass.js");
- /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
- var ColumnManager = function () {
- function ColumnManager(columns) {
- babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, ColumnManager);
- this.columns = columns;
- this._cached = {};
- }
- babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ColumnManager, [{
- key: 'isAnyColumnsFixed',
- value: function isAnyColumnsFixed() {
- var _this = this;
- return this._cache('isAnyColumnsFixed', function () {
- return _this.columns.some(function (column) {
- return !!column.fixed;
- });
- });
- }
- }, {
- key: 'isAnyColumnsLeftFixed',
- value: function isAnyColumnsLeftFixed() {
- var _this2 = this;
- return this._cache('isAnyColumnsLeftFixed', function () {
- return _this2.columns.some(function (column) {
- return column.fixed === 'left' || column.fixed === true;
- });
- });
- }
- }, {
- key: 'isAnyColumnsRightFixed',
- value: function isAnyColumnsRightFixed() {
- var _this3 = this;
- return this._cache('isAnyColumnsRightFixed', function () {
- return _this3.columns.some(function (column) {
- return column.fixed === 'right';
- });
- });
- }
- }, {
- key: 'leftColumns',
- value: function leftColumns() {
- var _this4 = this;
- return this._cache('leftColumns', function () {
- return _this4.groupedColumns().filter(function (column) {
- return column.fixed === 'left' || column.fixed === true;
- });
- });
- }
- }, {
- key: 'rightColumns',
- value: function rightColumns() {
- var _this5 = this;
- return this._cache('rightColumns', function () {
- return _this5.groupedColumns().filter(function (column) {
- return column.fixed === 'right';
- });
- });
- }
- }, {
- key: 'leafColumns',
- value: function leafColumns() {
- var _this6 = this;
- return this._cache('leafColumns', function () {
- return _this6._leafColumns(_this6.columns);
- });
- }
- }, {
- key: 'leftLeafColumns',
- value: function leftLeafColumns() {
- var _this7 = this;
- return this._cache('leftLeafColumns', function () {
- return _this7._leafColumns(_this7.leftColumns());
- });
- }
- }, {
- key: 'rightLeafColumns',
- value: function rightLeafColumns() {
- var _this8 = this;
- return this._cache('rightLeafColumns', function () {
- return _this8._leafColumns(_this8.rightColumns());
- });
- }
- // add appropriate rowspan and colspan to column
- }, {
- key: 'groupedColumns',
- value: function groupedColumns() {
- var _this9 = this;
- return this._cache('groupedColumns', function () {
- var _groupColumns = function _groupColumns(columns) {
- var currentRow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
- var parentColumn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- var rows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
- // track how many rows we got
- rows[currentRow] = rows[currentRow] || [];
- var grouped = [];
- var setRowSpan = function setRowSpan(column) {
- var rowSpan = rows.length - currentRow;
- if (column && !column.children && // parent columns are supposed to be one row
- rowSpan > 1 && (!column.rowSpan || column.rowSpan < rowSpan)) {
- column.rowSpan = rowSpan;
- }
- };
- columns.forEach(function (column, index) {
- var newColumn = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, column);
- rows[currentRow].push(newColumn);
- parentColumn.colSpan = parentColumn.colSpan || 0;
- if (newColumn.children && newColumn.children.length > 0) {
- newColumn.children = _groupColumns(newColumn.children, currentRow + 1, newColumn, rows);
- parentColumn.colSpan += newColumn.colSpan;
- } else {
- parentColumn.colSpan += 1;
- }
- // update rowspan to all same row columns
- for (var i = 0; i < rows[currentRow].length - 1; i += 1) {
- setRowSpan(rows[currentRow][i]);
- }
- // last column, update rowspan immediately
- if (index + 1 === columns.length) {
- setRowSpan(newColumn);
- }
- grouped.push(newColumn);
- });
- return grouped;
- };
- return _groupColumns(_this9.columns);
- });
- }
- }, {
- key: 'reset',
- value: function reset(columns) {
- this.columns = columns;
- this._cached = {};
- }
- }, {
- key: '_cache',
- value: function _cache(name, fn) {
- if (name in this._cached) {
- return this._cached[name];
- }
- this._cached[name] = fn();
- return this._cached[name];
- }
- }, {
- key: '_leafColumns',
- value: function _leafColumns(columns) {
- var _this10 = this;
- var leafColumns = [];
- columns.forEach(function (column) {
- if (!column.children) {
- leafColumns.push(column);
- } else {
- leafColumns.push.apply(leafColumns, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(_this10._leafColumns(column.children)));
- }
- });
- return leafColumns;
- }
- }]);
- return ColumnManager;
- }();
- /* harmony default export */ __webpack_exports__["default"] = (ColumnManager);
- /***/ }),
- /***/ "./components/vc-table/src/ExpandIcon.jsx":
- /*!************************************************!*\
- !*** ./components/vc-table/src/ExpandIcon.jsx ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ExpandIcon',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
- props: {
- record: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- expandable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- expanded: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- needIndentSpaced: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
- },
- methods: {
- onExpand: function onExpand(e) {
- this.__emit('expand', this.record, e);
- }
- },
- render: function render() {
- var h = arguments[0];
- var expandable = this.expandable,
- prefixCls = this.prefixCls,
- onExpand = this.onExpand,
- needIndentSpaced = this.needIndentSpaced,
- expanded = this.expanded;
- if (expandable) {
- var expandClassName = expanded ? 'expanded' : 'collapsed';
- return h('span', {
- 'class': prefixCls + '-expand-icon ' + prefixCls + '-' + expandClassName,
- on: {
- 'click': onExpand
- }
- });
- }
- if (needIndentSpaced) {
- return h('span', { 'class': prefixCls + '-expand-icon ' + prefixCls + '-spaced' });
- }
- return null;
- }
- });
- /***/ }),
- /***/ "./components/vc-table/src/ExpandableRow.jsx":
- /*!***************************************************!*\
- !*** ./components/vc-table/src/ExpandableRow.jsx ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _ExpandIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ExpandIcon */ "./components/vc-table/src/ExpandIcon.jsx");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- var ExpandableRow = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- name: 'ExpandableRow',
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.isRequired,
- rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]).isRequired,
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool]),
- record: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array]).isRequired,
- indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- needIndentSpaced: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.isRequired,
- expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
- childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
- // onExpandedChange: PropTypes.func.isRequired,
- // onRowClick: PropTypes.func,
- // children: PropTypes.func.isRequired,
- },
- inject: {
- store: { from: 'table-store', 'default': function _default() {
- return {};
- } }
- },
- computed: {
- expanded: function expanded() {
- return this.store.expandedRowKeys.includes(this.$props.rowKey);
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.handleDestroy();
- },
- methods: {
- hasExpandIcon: function hasExpandIcon(columnIndex) {
- var _$props = this.$props,
- expandRowByClick = _$props.expandRowByClick,
- expandIcon = _$props.expandIcon;
- if (this.tempExpandIconAsCell || columnIndex !== this.tempExpandIconColumnIndex) {
- return false;
- }
- return !!expandIcon || !expandRowByClick;
- },
- handleExpandChange: function handleExpandChange(record, event) {
- var expanded = this.expanded,
- rowKey = this.rowKey;
- this.__emit('expandedChange', !expanded, record, event, rowKey);
- },
- handleDestroy: function handleDestroy() {
- var rowKey = this.rowKey,
- record = this.record;
- this.__emit('expandedChange', false, record, null, rowKey, true);
- },
- handleRowClick: function handleRowClick(record, index, event) {
- var expandRowByClick = this.expandRowByClick;
- if (expandRowByClick) {
- this.handleExpandChange(record, event);
- }
- this.__emit('rowClick', record, index, event);
- },
- renderExpandIcon: function renderExpandIcon() {
- var h = this.$createElement;
- var prefixCls = this.prefixCls,
- expanded = this.expanded,
- record = this.record,
- needIndentSpaced = this.needIndentSpaced,
- expandIcon = this.expandIcon;
- if (expandIcon) {
- return expandIcon({
- prefixCls: prefixCls,
- expanded: expanded,
- record: record,
- needIndentSpaced: needIndentSpaced,
- expandable: this.expandable,
- onExpand: this.handleExpandChange
- });
- }
- return h(_ExpandIcon__WEBPACK_IMPORTED_MODULE_1__["default"], {
- attrs: {
- expandable: this.expandable,
- prefixCls: prefixCls,
- needIndentSpaced: needIndentSpaced,
- expanded: expanded,
- record: record
- },
- on: {
- 'expand': this.handleExpandChange
- }
- });
- },
- renderExpandIconCell: function renderExpandIconCell(cells) {
- var h = this.$createElement;
- if (!this.tempExpandIconAsCell) {
- return;
- }
- var prefixCls = this.prefixCls;
- cells.push(h(
- 'td',
- { 'class': prefixCls + '-expand-icon-cell', key: 'rc-table-expand-icon-cell' },
- [this.renderExpandIcon()]
- ));
- }
- },
- render: function render() {
- var childrenColumnName = this.childrenColumnName,
- expandedRowRender = this.expandedRowRender,
- indentSize = this.indentSize,
- record = this.record,
- fixed = this.fixed,
- $scopedSlots = this.$scopedSlots,
- expanded = this.expanded;
- this.tempExpandIconAsCell = fixed !== 'right' ? this.expandIconAsCell : false;
- this.tempExpandIconColumnIndex = fixed !== 'right' ? this.expandIconColumnIndex : -1;
- var childrenData = record[childrenColumnName];
- this.expandable = !!(childrenData || expandedRowRender);
- var expandableRowProps = {
- props: {
- indentSize: indentSize,
- expanded: expanded, // not used in TableRow, but it's required to re-render TableRow when `expanded` changes
- hasExpandIcon: this.hasExpandIcon,
- renderExpandIcon: this.renderExpandIcon,
- renderExpandIconCell: this.renderExpandIconCell
- },
- on: {
- rowClick: this.handleRowClick
- }
- };
- return $scopedSlots['default'] && $scopedSlots['default'](expandableRowProps);
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (ExpandableRow);
- /***/ }),
- /***/ "./components/vc-table/src/ExpandableTable.jsx":
- /*!*****************************************************!*\
- !*** ./components/vc-table/src/ExpandableTable.jsx ***!
- \*****************************************************/
- /*! exports provided: ExpandableTableProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpandableTableProps", function() { return ExpandableTableProps; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _TableRow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TableRow */ "./components/vc-table/src/TableRow.jsx");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- var ExpandableTableProps = function ExpandableTableProps() {
- return {
- expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- expandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
- expandedRowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- defaultExpandAllRows: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- defaultExpandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
- expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- // onExpand: PropTypes.func,
- // onExpandedRowsChange: PropTypes.func,
- columnManager: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.isRequired,
- data: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
- getRowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
- };
- };
- var ExpandableTable = {
- name: 'ExpandableTable',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(ExpandableTableProps(), {
- expandIconAsCell: false,
- expandedRowClassName: function expandedRowClassName() {
- return '';
- },
- expandIconColumnIndex: 0,
- defaultExpandAllRows: false,
- defaultExpandedRowKeys: [],
- childrenColumnName: 'children',
- indentSize: 15
- }),
- inject: {
- store: { from: 'table-store', 'default': function _default() {
- return {};
- } }
- },
- data: function data() {
- var data = this.data,
- childrenColumnName = this.childrenColumnName,
- defaultExpandAllRows = this.defaultExpandAllRows,
- expandedRowKeys = this.expandedRowKeys,
- defaultExpandedRowKeys = this.defaultExpandedRowKeys,
- getRowKey = this.getRowKey;
- var finalExpandedRowKeys = [];
- var rows = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(data));
- if (defaultExpandAllRows) {
- for (var i = 0; i < rows.length; i += 1) {
- var row = rows[i];
- finalExpandedRowKeys.push(getRowKey(row, i));
- rows = rows.concat(row[childrenColumnName] || []);
- }
- } else {
- finalExpandedRowKeys = expandedRowKeys || defaultExpandedRowKeys;
- }
- // this.columnManager = props.columnManager
- // this.store = props.store
- this.store.expandedRowsHeight = {};
- this.store.expandedRowKeys = finalExpandedRowKeys;
- return {};
- },
- mounted: function mounted() {
- this.handleUpdated();
- },
- updated: function updated() {
- this.handleUpdated();
- },
- watch: {
- expandedRowKeys: function expandedRowKeys(val) {
- var _this = this;
- this.$nextTick(function () {
- _this.store.expandedRowKeys = val;
- });
- }
- },
- methods: {
- handleUpdated: function handleUpdated() {
- // We should record latest expanded rows to avoid multiple rows remove cause `onExpandedRowsChange` trigger many times
- this.latestExpandedRows = null;
- },
- handleExpandChange: function handleExpandChange(expanded, record, event, rowKey) {
- var destroy = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
- if (event) {
- event.preventDefault();
- event.stopPropagation();
- }
- var expandedRowKeys = this.store.expandedRowKeys;
- if (expanded) {
- // row was expaned
- expandedRowKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(expandedRowKeys), [rowKey]);
- } else {
- // row was collapse
- var expandedRowIndex = expandedRowKeys.indexOf(rowKey);
- if (expandedRowIndex !== -1) {
- expandedRowKeys = Object(_utils__WEBPACK_IMPORTED_MODULE_6__["remove"])(expandedRowKeys, rowKey);
- }
- }
- if (!this.expandedRowKeys) {
- this.store.expandedRowKeys = expandedRowKeys;
- }
- // De-dup of repeat call
- if (!this.latestExpandedRows || !shallowequal__WEBPACK_IMPORTED_MODULE_4___default()(this.latestExpandedRows, expandedRowKeys)) {
- this.latestExpandedRows = expandedRowKeys;
- this.__emit('expandedRowsChange', expandedRowKeys);
- this.__emit('update:expandedRowKeys', expandedRowKeys);
- }
- if (!destroy) {
- this.__emit('expand', expanded, record);
- }
- },
- renderExpandIndentCell: function renderExpandIndentCell(rows, fixed) {
- var prefixCls = this.prefixCls,
- expandIconAsCell = this.expandIconAsCell;
- if (!expandIconAsCell || fixed === 'right' || !rows.length) {
- return;
- }
- var iconColumn = {
- key: 'rc-table-expand-icon-cell',
- className: prefixCls + '-expand-icon-th',
- title: '',
- rowSpan: rows.length
- };
- rows[0].unshift(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, iconColumn, { column: iconColumn }));
- },
- renderExpandedRow: function renderExpandedRow(record, index, expandedRowRender, className, ancestorKeys, indent, fixed) {
- var _this2 = this;
- var h = this.$createElement;
- var prefixCls = this.prefixCls,
- expandIconAsCell = this.expandIconAsCell,
- indentSize = this.indentSize;
- var parentKey = ancestorKeys[ancestorKeys.length - 1];
- var rowKey = parentKey + '-extra-row';
- var components = {
- body: {
- row: 'tr',
- cell: 'td'
- }
- };
- var colCount = void 0;
- if (fixed === 'left') {
- colCount = this.columnManager.leftLeafColumns().length;
- } else if (fixed === 'right') {
- colCount = this.columnManager.rightLeafColumns().length;
- } else {
- colCount = this.columnManager.leafColumns().length;
- }
- var columns = [{
- key: 'extra-row',
- customRender: function customRender() {
- var expandedRowKeys = _this2.store.expandedRowKeys;
- var expanded = expandedRowKeys.includes(parentKey);
- return {
- attrs: {
- colSpan: colCount
- },
- children: fixed !== 'right' ? expandedRowRender(record, index, indent, expanded) : ' '
- };
- }
- }];
- if (expandIconAsCell && fixed !== 'right') {
- columns.unshift({
- key: 'expand-icon-placeholder',
- customRender: function customRender() {
- return null;
- }
- });
- }
- return h(_TableRow__WEBPACK_IMPORTED_MODULE_5__["default"], {
- key: rowKey,
- attrs: { columns: columns,
- rowKey: rowKey,
- ancestorKeys: ancestorKeys,
- prefixCls: prefixCls + '-expanded-row',
- indentSize: indentSize,
- indent: indent,
- fixed: fixed,
- components: components,
- expandedRow: true,
- hasExpandIcon: function hasExpandIcon() {}
- },
- 'class': className });
- },
- renderRows: function renderRows(_renderRows, rows, record, index, indent, fixed, parentKey, ancestorKeys) {
- var expandedRowClassName = this.expandedRowClassName,
- expandedRowRender = this.expandedRowRender,
- childrenColumnName = this.childrenColumnName;
- var childrenData = record[childrenColumnName];
- var nextAncestorKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(ancestorKeys), [parentKey]);
- var nextIndent = indent + 1;
- if (expandedRowRender) {
- rows.push(this.renderExpandedRow(record, index, expandedRowRender, expandedRowClassName(record, index, indent), nextAncestorKeys, nextIndent, fixed));
- }
- if (childrenData) {
- rows.push.apply(rows, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(_renderRows(childrenData, nextIndent, nextAncestorKeys)));
- }
- }
- },
- render: function render() {
- var data = this.data,
- childrenColumnName = this.childrenColumnName,
- $scopedSlots = this.$scopedSlots;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
- var needIndentSpaced = data.some(function (record) {
- return record[childrenColumnName];
- });
- return $scopedSlots['default'] && $scopedSlots['default']({
- props: props,
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
- needIndentSpaced: needIndentSpaced,
- renderRows: this.renderRows,
- handleExpandChange: this.handleExpandChange,
- renderExpandIndentCell: this.renderExpandIndentCell
- });
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (ExpandableTable);
- /***/ }),
- /***/ "./components/vc-table/src/HeadTable.jsx":
- /*!***********************************************!*\
- !*** ./components/vc-table/src/HeadTable.jsx ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
- /* harmony import */ var _BaseTable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BaseTable */ "./components/vc-table/src/BaseTable.jsx");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'HeadTable',
- props: {
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool]),
- columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.isRequired,
- tableClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.isRequired,
- handleBodyScrollLeft: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
- expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired
- },
- inject: {
- table: { 'default': function _default() {
- return {};
- } }
- },
- render: function render() {
- var h = arguments[0];
- var columns = this.columns,
- fixed = this.fixed,
- tableClassName = this.tableClassName,
- handleBodyScrollLeft = this.handleBodyScrollLeft,
- expander = this.expander,
- table = this.table;
- var prefixCls = table.prefixCls,
- scroll = table.scroll,
- showHeader = table.showHeader,
- saveRef = table.saveRef;
- var useFixedHeader = table.useFixedHeader;
- var headStyle = {};
- var scrollbarWidth = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["measureScrollbar"])({ direction: 'vertical' });
- if (scroll.y) {
- useFixedHeader = true;
- // https://github.com/ant-design/ant-design/issues/17051
- var scrollbarWidthOfHeader = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["measureScrollbar"])({ direction: 'horizontal', prefixCls: prefixCls });
- // Add negative margin bottom for scroll bar overflow bug
- if (scrollbarWidthOfHeader > 0 && !fixed) {
- headStyle.marginBottom = '-' + scrollbarWidthOfHeader + 'px';
- headStyle.paddingBottom = '0px';
- // https://github.com/ant-design/ant-design/pull/19986
- headStyle.minWidth = scrollbarWidth + 'px';
- // https://github.com/ant-design/ant-design/issues/17051
- headStyle.overflowX = 'scroll';
- headStyle.overflowY = scrollbarWidth === 0 ? 'hidden' : 'scroll';
- }
- }
- if (!useFixedHeader || !showHeader) {
- return null;
- }
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- key: 'headTable'
- }, {
- directives: [{
- name: 'ant-ref',
- value: fixed ? function () {} : saveRef('headTable')
- }]
- }, {
- 'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls + '-header', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-hide-scrollbar', scrollbarWidth > 0)),
- style: headStyle,
- on: {
- 'scroll': handleBodyScrollLeft
- }
- }]),
- [h(_BaseTable__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: {
- tableClassName: tableClassName,
- hasHead: true,
- hasBody: false,
- fixed: fixed,
- columns: columns,
- expander: expander
- }
- })]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-table/src/Table.jsx":
- /*!*******************************************!*\
- !*** ./components/vc-table/src/Table.jsx ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/merge */ "./node_modules/lodash/merge.js");
- /* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! component-classes */ "./node_modules/component-classes/index.js");
- /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(component_classes__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
- /* harmony import */ var _ColumnManager__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ColumnManager */ "./components/vc-table/src/ColumnManager.jsx");
- /* harmony import */ var _HeadTable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./HeadTable */ "./components/vc-table/src/HeadTable.jsx");
- /* harmony import */ var _BodyTable__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./BodyTable */ "./components/vc-table/src/BodyTable.jsx");
- /* harmony import */ var _ExpandableTable__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ExpandableTable */ "./components/vc-table/src/ExpandableTable.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_18__);
- /* eslint-disable camelcase */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Table',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_17__["default"]],
- provide: function provide() {
- return { 'table-store': this.store, table: this };
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["initDefaultProps"])({
- data: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
- useFixedHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
- columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
- bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object,
- rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func]),
- rowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func]),
- customRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
- customHeaderRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
- // onRowClick: PropTypes.func,
- // onRowDoubleClick: PropTypes.func,
- // onRowContextMenu: PropTypes.func,
- // onRowMouseEnter: PropTypes.func,
- // onRowMouseLeave: PropTypes.func,
- showHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
- id: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
- footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
- emptyText: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
- scroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object,
- rowRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
- getBodyWrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
- components: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].shape({
- table: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
- header: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].shape({
- wrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
- row: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
- cell: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any
- }),
- body: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].shape({
- wrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
- row: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
- cell: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any
- })
- }),
- expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
- expandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
- expandedRowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
- defaultExpandAllRows: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
- defaultExpandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
- expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number,
- expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
- childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
- indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number,
- expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
- tableLayout: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
- transformCellText: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func
- }, {
- data: [],
- useFixedHeader: false,
- rowKey: 'key',
- rowClassName: function rowClassName() {
- return '';
- },
- prefixCls: 'rc-table',
- bodyStyle: {},
- showHeader: true,
- scroll: {},
- rowRef: function rowRef() {
- return null;
- },
- emptyText: function emptyText() {
- return 'No Data';
- },
- customHeaderRow: function customHeaderRow() {}
- }),
- data: function data() {
- this.preData = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default()(this.data));
- this.store = vue__WEBPACK_IMPORTED_MODULE_18___default.a.observable({
- currentHoverKey: null,
- fixedColumnsHeadRowsHeight: [],
- fixedColumnsBodyRowsHeight: {},
- expandedRowsHeight: {},
- expandedRowKeys: []
- });
- return {
- columnManager: new _ColumnManager__WEBPACK_IMPORTED_MODULE_12__["default"](this.columns),
- sComponents: lodash_merge__WEBPACK_IMPORTED_MODULE_5___default()({
- table: 'table',
- header: {
- wrapper: 'thead',
- row: 'tr',
- cell: 'th'
- },
- body: {
- wrapper: 'tbody',
- row: 'tr',
- cell: 'td'
- }
- }, this.components)
- };
- },
- watch: {
- components: function components() {
- this._components = lodash_merge__WEBPACK_IMPORTED_MODULE_5___default()({
- table: 'table',
- header: {
- wrapper: 'thead',
- row: 'tr',
- cell: 'th'
- },
- body: {
- wrapper: 'tbody',
- row: 'tr',
- cell: 'td'
- }
- }, this.components);
- },
- columns: function columns(val) {
- if (val) {
- this.columnManager.reset(val);
- }
- },
- data: function data(val) {
- var _this = this;
- if (val.length === 0 && this.hasScrollX()) {
- this.$nextTick(function () {
- _this.resetScrollX();
- });
- }
- }
- },
- // static childContextTypes = {
- // table: PropTypes.any,
- // components: PropTypes.any,
- // },
- created: function created() {
- var _this2 = this;
- ['rowClick', 'rowDoubleclick', 'rowContextmenu', 'rowMouseenter', 'rowMouseleave'].forEach(function (name) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["getListeners"])(_this2)[name] === undefined, name + ' is deprecated, please use customRow instead.');
- });
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(this.getBodyWrapper === undefined, 'getBodyWrapper is deprecated, please use custom components instead.');
- this.setScrollPosition('left');
- this.debouncedWindowResize = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["debounce"])(this.handleWindowResize, 150);
- },
- mounted: function mounted() {
- var _this3 = this;
- this.$nextTick(function () {
- if (_this3.columnManager.isAnyColumnsFixed()) {
- _this3.handleWindowResize();
- _this3.resizeEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_11__["default"])(window, 'resize', _this3.debouncedWindowResize);
- }
- // https://github.com/ant-design/ant-design/issues/11635
- if (_this3.ref_headTable) {
- _this3.ref_headTable.scrollLeft = 0;
- }
- if (_this3.ref_bodyTable) {
- _this3.ref_bodyTable.scrollLeft = 0;
- }
- });
- },
- updated: function updated() {
- var _this4 = this;
- this.$nextTick(function () {
- if (_this4.columnManager.isAnyColumnsFixed()) {
- _this4.handleWindowResize();
- if (!_this4.resizeEvent) {
- _this4.resizeEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_11__["default"])(window, 'resize', _this4.debouncedWindowResize);
- }
- }
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.resizeEvent) {
- this.resizeEvent.remove();
- }
- if (this.debouncedWindowResize) {
- this.debouncedWindowResize.cancel();
- }
- },
- methods: {
- getRowKey: function getRowKey(record, index) {
- var rowKey = this.rowKey;
- var key = typeof rowKey === 'function' ? rowKey(record, index) : record[rowKey];
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(key !== undefined, 'Each record in table should have a unique `key` prop,' + 'or set `rowKey` to an unique primary key.');
- return key === undefined ? index : key;
- },
- setScrollPosition: function setScrollPosition(position) {
- this.scrollPosition = position;
- if (this.tableNode) {
- var prefixCls = this.prefixCls;
- if (position === 'both') {
- component_classes__WEBPACK_IMPORTED_MODULE_6___default()(this.tableNode).remove(new RegExp('^' + prefixCls + '-scroll-position-.+$')).add(prefixCls + '-scroll-position-left').add(prefixCls + '-scroll-position-right');
- } else {
- component_classes__WEBPACK_IMPORTED_MODULE_6___default()(this.tableNode).remove(new RegExp('^' + prefixCls + '-scroll-position-.+$')).add(prefixCls + '-scroll-position-' + position);
- }
- }
- },
- setScrollPositionClassName: function setScrollPositionClassName() {
- var node = this.ref_bodyTable;
- var scrollToLeft = node.scrollLeft === 0;
- var scrollToRight = node.scrollLeft + 1 >= node.children[0].getBoundingClientRect().width - node.getBoundingClientRect().width;
- if (scrollToLeft && scrollToRight) {
- this.setScrollPosition('both');
- } else if (scrollToLeft) {
- this.setScrollPosition('left');
- } else if (scrollToRight) {
- this.setScrollPosition('right');
- } else if (this.scrollPosition !== 'middle') {
- this.setScrollPosition('middle');
- }
- },
- isTableLayoutFixed: function isTableLayoutFixed() {
- var _$props = this.$props,
- tableLayout = _$props.tableLayout,
- _$props$columns = _$props.columns,
- columns = _$props$columns === undefined ? [] : _$props$columns,
- useFixedHeader = _$props.useFixedHeader,
- _$props$scroll = _$props.scroll,
- scroll = _$props$scroll === undefined ? {} : _$props$scroll;
- if (typeof tableLayout !== 'undefined') {
- return tableLayout === 'fixed';
- }
- // if one column is ellipsis, use fixed table layout to fix align issue
- if (columns.some(function (_ref) {
- var ellipsis = _ref.ellipsis;
- return !!ellipsis;
- })) {
- return true;
- }
- // if header fixed, use fixed table layout to fix align issue
- if (useFixedHeader || scroll.y) {
- return true;
- }
- // if scroll.x is number/px/% width value, we should fixed table layout
- // to avoid long word layout broken issue
- if (scroll.x && scroll.x !== true && scroll.x !== 'max-content') {
- return true;
- }
- return false;
- },
- handleWindowResize: function handleWindowResize() {
- this.syncFixedTableRowHeight();
- this.setScrollPositionClassName();
- },
- syncFixedTableRowHeight: function syncFixedTableRowHeight() {
- var tableRect = this.tableNode.getBoundingClientRect();
- // If tableNode's height less than 0, suppose it is hidden and don't recalculate rowHeight.
- // see: https://github.com/ant-design/ant-design/issues/4836
- if (tableRect.height !== undefined && tableRect.height <= 0) {
- return;
- }
- var prefixCls = this.prefixCls;
- var headRows = this.ref_headTable ? this.ref_headTable.querySelectorAll('thead') : this.ref_bodyTable.querySelectorAll('thead');
- var bodyRows = this.ref_bodyTable.querySelectorAll('.' + prefixCls + '-row') || [];
- var fixedColumnsHeadRowsHeight = [].map.call(headRows, function (row) {
- return row.getBoundingClientRect().height ? row.getBoundingClientRect().height - 0.5 : 'auto';
- });
- var state = this.store;
- var fixedColumnsBodyRowsHeight = [].reduce.call(bodyRows, function (acc, row) {
- var rowKey = row.getAttribute('data-row-key');
- var height = row.getBoundingClientRect().height || state.fixedColumnsBodyRowsHeight[rowKey] || 'auto';
- acc[rowKey] = height;
- return acc;
- }, {});
- if (shallowequal__WEBPACK_IMPORTED_MODULE_4___default()(state.fixedColumnsHeadRowsHeight, fixedColumnsHeadRowsHeight) && shallowequal__WEBPACK_IMPORTED_MODULE_4___default()(state.fixedColumnsBodyRowsHeight, fixedColumnsBodyRowsHeight)) {
- return;
- }
- this.store.fixedColumnsHeadRowsHeight = fixedColumnsHeadRowsHeight;
- this.store.fixedColumnsBodyRowsHeight = fixedColumnsBodyRowsHeight;
- },
- resetScrollX: function resetScrollX() {
- if (this.ref_headTable) {
- this.ref_headTable.scrollLeft = 0;
- }
- if (this.ref_bodyTable) {
- this.ref_bodyTable.scrollLeft = 0;
- }
- },
- hasScrollX: function hasScrollX() {
- var _scroll = this.scroll,
- scroll = _scroll === undefined ? {} : _scroll;
- return 'x' in scroll;
- },
- handleBodyScrollLeft: function handleBodyScrollLeft(e) {
- // Fix https://github.com/ant-design/ant-design/issues/7635
- if (e.currentTarget !== e.target) {
- return;
- }
- var target = e.target;
- var _scroll2 = this.scroll,
- scroll = _scroll2 === undefined ? {} : _scroll2;
- var ref_headTable = this.ref_headTable,
- ref_bodyTable = this.ref_bodyTable;
- if (target.scrollLeft !== this.lastScrollLeft && scroll.x) {
- if (target === ref_bodyTable && ref_headTable) {
- ref_headTable.scrollLeft = target.scrollLeft;
- } else if (target === ref_headTable && ref_bodyTable) {
- ref_bodyTable.scrollLeft = target.scrollLeft;
- }
- this.setScrollPositionClassName();
- }
- // Remember last scrollLeft for scroll direction detecting.
- this.lastScrollLeft = target.scrollLeft;
- },
- handleBodyScrollTop: function handleBodyScrollTop(e) {
- var target = e.target;
- // Fix https://github.com/ant-design/ant-design/issues/9033
- if (e.currentTarget !== target) {
- return;
- }
- var _scroll3 = this.scroll,
- scroll = _scroll3 === undefined ? {} : _scroll3;
- var ref_headTable = this.ref_headTable,
- ref_bodyTable = this.ref_bodyTable,
- ref_fixedColumnsBodyLeft = this.ref_fixedColumnsBodyLeft,
- ref_fixedColumnsBodyRight = this.ref_fixedColumnsBodyRight;
- if (target.scrollTop !== this.lastScrollTop && scroll.y && target !== ref_headTable) {
- var scrollTop = target.scrollTop;
- if (ref_fixedColumnsBodyLeft && target !== ref_fixedColumnsBodyLeft) {
- ref_fixedColumnsBodyLeft.scrollTop = scrollTop;
- }
- if (ref_fixedColumnsBodyRight && target !== ref_fixedColumnsBodyRight) {
- ref_fixedColumnsBodyRight.scrollTop = scrollTop;
- }
- if (ref_bodyTable && target !== ref_bodyTable) {
- ref_bodyTable.scrollTop = scrollTop;
- }
- }
- // Remember last scrollTop for scroll direction detecting.
- this.lastScrollTop = target.scrollTop;
- },
- handleBodyScroll: function handleBodyScroll(e) {
- this.handleBodyScrollLeft(e);
- this.handleBodyScrollTop(e);
- },
- handleWheel: function handleWheel(event) {
- var _$props$scroll2 = this.$props.scroll,
- scroll = _$props$scroll2 === undefined ? {} : _$props$scroll2;
- if (window.navigator.userAgent.match(/Trident\/7\./) && scroll.y) {
- event.preventDefault();
- var wd = event.deltaY;
- var target = event.target;
- var bodyTable = this.ref_bodyTable,
- fixedColumnsBodyLeft = this.ref_fixedColumnsBodyLeft,
- fixedColumnsBodyRight = this.ref_fixedColumnsBodyRight;
- var scrollTop = 0;
- if (this.lastScrollTop) {
- scrollTop = this.lastScrollTop + wd;
- } else {
- scrollTop = wd;
- }
- if (fixedColumnsBodyLeft && target !== fixedColumnsBodyLeft) {
- fixedColumnsBodyLeft.scrollTop = scrollTop;
- }
- if (fixedColumnsBodyRight && target !== fixedColumnsBodyRight) {
- fixedColumnsBodyRight.scrollTop = scrollTop;
- }
- if (bodyTable && target !== bodyTable) {
- bodyTable.scrollTop = scrollTop;
- }
- }
- },
- // saveChildrenRef(name, node) {
- // this[`ref_${name}`] = node;
- // },
- saveRef: function saveRef(name) {
- var _this5 = this;
- return function (node) {
- _this5['ref_' + name] = node;
- };
- },
- saveTableNodeRef: function saveTableNodeRef(node) {
- this.tableNode = node;
- },
- renderMainTable: function renderMainTable() {
- var h = this.$createElement;
- var scroll = this.scroll,
- prefixCls = this.prefixCls;
- var isAnyColumnsFixed = this.columnManager.isAnyColumnsFixed();
- var scrollable = isAnyColumnsFixed || scroll.x || scroll.y;
- var table = [this.renderTable({
- columns: this.columnManager.groupedColumns(),
- isAnyColumnsFixed: isAnyColumnsFixed
- }), this.renderEmptyText(), this.renderFooter()];
- return scrollable ? h(
- 'div',
- { 'class': prefixCls + '-scroll' },
- [table]
- ) : table;
- },
- renderLeftFixedTable: function renderLeftFixedTable() {
- var h = this.$createElement;
- var prefixCls = this.prefixCls;
- return h(
- 'div',
- { 'class': prefixCls + '-fixed-left' },
- [this.renderTable({
- columns: this.columnManager.leftColumns(),
- fixed: 'left'
- })]
- );
- },
- renderRightFixedTable: function renderRightFixedTable() {
- var h = this.$createElement;
- var prefixCls = this.prefixCls;
- return h(
- 'div',
- { 'class': prefixCls + '-fixed-right' },
- [this.renderTable({
- columns: this.columnManager.rightColumns(),
- fixed: 'right'
- })]
- );
- },
- renderTable: function renderTable(options) {
- var h = this.$createElement;
- var columns = options.columns,
- fixed = options.fixed,
- isAnyColumnsFixed = options.isAnyColumnsFixed;
- var prefixCls = this.prefixCls,
- _scroll4 = this.scroll,
- scroll = _scroll4 === undefined ? {} : _scroll4;
- var tableClassName = scroll.x || fixed ? prefixCls + '-fixed' : '';
- var headTable = h(_HeadTable__WEBPACK_IMPORTED_MODULE_13__["default"], {
- key: 'head',
- attrs: { columns: columns,
- fixed: fixed,
- tableClassName: tableClassName,
- handleBodyScrollLeft: this.handleBodyScrollLeft,
- expander: this.expander
- }
- });
- var bodyTable = h(_BodyTable__WEBPACK_IMPORTED_MODULE_14__["default"], {
- key: 'body',
- attrs: { columns: columns,
- fixed: fixed,
- tableClassName: tableClassName,
- getRowKey: this.getRowKey,
- handleWheel: this.handleWheel,
- handleBodyScroll: this.handleBodyScroll,
- expander: this.expander,
- isAnyColumnsFixed: isAnyColumnsFixed
- }
- });
- return [headTable, bodyTable];
- },
- renderTitle: function renderTitle() {
- var h = this.$createElement;
- var title = this.title,
- prefixCls = this.prefixCls,
- data = this.data;
- return title ? h(
- 'div',
- { 'class': prefixCls + '-title', key: 'title' },
- [title(data)]
- ) : null;
- },
- renderFooter: function renderFooter() {
- var h = this.$createElement;
- var footer = this.footer,
- prefixCls = this.prefixCls,
- data = this.data;
- return footer ? h(
- 'div',
- { 'class': prefixCls + '-footer', key: 'footer' },
- [footer(data)]
- ) : null;
- },
- renderEmptyText: function renderEmptyText() {
- var h = this.$createElement;
- var emptyText = this.emptyText,
- prefixCls = this.prefixCls,
- data = this.data;
- if (data.length) {
- return null;
- }
- var emptyClassName = prefixCls + '-placeholder';
- return h(
- 'div',
- { 'class': emptyClassName, key: 'emptyText' },
- [typeof emptyText === 'function' ? emptyText() : emptyText]
- );
- }
- },
- render: function render() {
- var _classNames,
- _this6 = this;
- var h = arguments[0];
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["getOptionProps"])(this);
- var columnManager = this.columnManager,
- getRowKey = this.getRowKey;
- var prefixCls = props.prefixCls;
- var tableClassName = classnames__WEBPACK_IMPORTED_MODULE_7___default()(props.prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-fixed-header', props.useFixedHeader || props.scroll && props.scroll.y), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-scroll-position-left ' + prefixCls + '-scroll-position-right', this.scrollPosition === 'both'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-scroll-position-' + this.scrollPosition, this.scrollPosition !== 'both'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-layout-fixed', this.isTableLayoutFixed()), _classNames));
- var hasLeftFixed = columnManager.isAnyColumnsLeftFixed();
- var hasRightFixed = columnManager.isAnyColumnsRightFixed();
- var expandableTableProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
- columnManager: columnManager,
- getRowKey: getRowKey
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["getListeners"])(this),
- scopedSlots: {
- 'default': function _default(expander) {
- _this6.expander = expander;
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- directives: [{
- name: 'ant-ref',
- value: _this6.saveTableNodeRef
- }]
- }, {
- 'class': tableClassName
- // style={props.style}
- // id={props.id}
- }]),
- [_this6.renderTitle(), h(
- 'div',
- { 'class': prefixCls + '-content' },
- [_this6.renderMainTable(), hasLeftFixed && _this6.renderLeftFixedTable(), hasRightFixed && _this6.renderRightFixedTable()]
- )]
- );
- }
- }
- };
- return h(_ExpandableTable__WEBPACK_IMPORTED_MODULE_15__["default"], expandableTableProps);
- }
- });
- /***/ }),
- /***/ "./components/vc-table/src/TableCell.jsx":
- /*!***********************************************!*\
- !*** ./components/vc-table/src/TableCell.jsx ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");
- /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- function isInvalidRenderCellText(text) {
- return text && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(text) && Object.prototype.toString.call(text) === '[object Object]';
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TableCell',
- props: {
- record: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- index: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- indent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- column: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- component: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
- },
- inject: {
- table: { 'default': function _default() {
- return {};
- } }
- },
- methods: {
- handleClick: function handleClick(e) {
- var record = this.record,
- onCellClick = this.column.onCellClick;
- if (onCellClick) {
- onCellClick(record, e);
- }
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var record = this.record,
- indentSize = this.indentSize,
- prefixCls = this.prefixCls,
- indent = this.indent,
- index = this.index,
- expandIcon = this.expandIcon,
- column = this.column,
- BodyCell = this.component;
- var dataIndex = column.dataIndex,
- customRender = column.customRender,
- _column$className = column.className,
- className = _column$className === undefined ? '' : _column$className;
- var transformCellText = this.table.transformCellText;
- // We should return undefined if no dataIndex is specified, but in order to
- // be compatible with object-path's behavior, we return the record object instead.
- var text = void 0;
- if (typeof dataIndex === 'number') {
- text = lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(record, dataIndex);
- } else if (!dataIndex || dataIndex.length === 0) {
- text = record;
- } else {
- text = lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(record, dataIndex);
- }
- var tdProps = {
- props: {},
- attrs: {},
- on: {
- click: this.handleClick
- }
- };
- var colSpan = void 0;
- var rowSpan = void 0;
- if (customRender) {
- text = customRender(text, record, index, column);
- if (isInvalidRenderCellText(text)) {
- tdProps.attrs = text.attrs || {};
- tdProps.props = text.props || {};
- tdProps['class'] = text['class'];
- tdProps.style = text.style;
- colSpan = tdProps.attrs.colSpan;
- rowSpan = tdProps.attrs.rowSpan;
- text = text.children;
- }
- }
- if (column.customCell) {
- tdProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(tdProps, column.customCell(record, index));
- }
- // Fix https://github.com/ant-design/ant-design/issues/1202
- if (isInvalidRenderCellText(text)) {
- text = null;
- }
- if (transformCellText) {
- text = transformCellText({ text: text, column: column, record: record, index: index });
- }
- var indentText = expandIcon ? h('span', {
- style: { paddingLeft: indentSize * indent + 'px' },
- 'class': prefixCls + '-indent indent-level-' + indent
- }) : null;
- if (rowSpan === 0 || colSpan === 0) {
- return null;
- }
- if (column.align) {
- tdProps.style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({ textAlign: column.align }, tdProps.style);
- }
- var cellClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, column['class'], (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-cell-ellipsis', !!column.ellipsis), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-cell-break-word', !!column.width), _classNames));
- if (column.ellipsis) {
- if (typeof text === 'string') {
- tdProps.attrs.title = text;
- } else if (text) {
- // const { props: textProps } = text;
- // if (textProps && textProps.children && typeof textProps.children === 'string') {
- // tdProps.attrs.title = textProps.children;
- // }
- }
- }
- return h(
- BodyCell,
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': cellClassName }, tdProps]),
- [indentText, expandIcon, text]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-table/src/TableHeader.jsx":
- /*!*************************************************!*\
- !*** ./components/vc-table/src/TableHeader.jsx ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _TableHeaderRow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TableHeaderRow */ "./components/vc-table/src/TableHeaderRow.jsx");
- function getHeaderRows(_ref) {
- var _ref$columns = _ref.columns,
- columns = _ref$columns === undefined ? [] : _ref$columns,
- _ref$currentRow = _ref.currentRow,
- currentRow = _ref$currentRow === undefined ? 0 : _ref$currentRow,
- _ref$rows = _ref.rows,
- rows = _ref$rows === undefined ? [] : _ref$rows,
- _ref$isLast = _ref.isLast,
- isLast = _ref$isLast === undefined ? true : _ref$isLast;
- rows = rows || [];
- rows[currentRow] = rows[currentRow] || [];
- columns.forEach(function (column, i) {
- if (column.rowSpan && rows.length < column.rowSpan) {
- while (rows.length < column.rowSpan) {
- rows.push([]);
- }
- }
- var cellIsLast = isLast && i === columns.length - 1;
- var cell = {
- key: column.key,
- className: column.className || column['class'] || '',
- children: column.title,
- isLast: cellIsLast,
- column: column
- };
- if (column.children) {
- getHeaderRows({
- columns: column.children,
- currentRow: currentRow + 1,
- rows: rows,
- isLast: cellIsLast
- });
- }
- if ('colSpan' in column) {
- cell.colSpan = column.colSpan;
- }
- if ('rowSpan' in column) {
- cell.rowSpan = column.rowSpan;
- }
- if (cell.colSpan !== 0) {
- rows[currentRow].push(cell);
- }
- });
- return rows.filter(function (row) {
- return row.length > 0;
- });
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TableHeader',
- props: {
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array.isRequired,
- expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.isRequired
- },
- inject: {
- table: { 'default': function _default() {
- return {};
- } }
- },
- render: function render() {
- var h = arguments[0];
- var _table = this.table,
- components = _table.sComponents,
- prefixCls = _table.prefixCls,
- showHeader = _table.showHeader,
- customHeaderRow = _table.customHeaderRow;
- var expander = this.expander,
- columns = this.columns,
- fixed = this.fixed;
- if (!showHeader) {
- return null;
- }
- var rows = getHeaderRows({ columns: columns });
- expander.renderExpandIndentCell(rows, fixed);
- var HeaderWrapper = components.header.wrapper;
- return h(
- HeaderWrapper,
- { 'class': prefixCls + '-thead' },
- [rows.map(function (row, index) {
- return h(_TableHeaderRow__WEBPACK_IMPORTED_MODULE_1__["default"], {
- attrs: {
- prefixCls: prefixCls,
- index: index,
- fixed: fixed,
- columns: columns,
- rows: rows,
- row: row,
- components: components,
- customHeaderRow: customHeaderRow
- },
- key: index });
- })]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-table/src/TableHeaderRow.jsx":
- /*!****************************************************!*\
- !*** ./components/vc-table/src/TableHeaderRow.jsx ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- var TableHeaderRow = {
- inject: {
- store: { from: 'table-store', 'default': function _default() {
- return {};
- } }
- },
- props: {
- index: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number,
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
- columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
- rows: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
- row: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
- components: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
- customHeaderRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
- },
- name: 'TableHeaderRow',
- computed: {
- height: function height() {
- var fixedColumnsHeadRowsHeight = this.store.fixedColumnsHeadRowsHeight;
- var _$props = this.$props,
- columns = _$props.columns,
- rows = _$props.rows,
- fixed = _$props.fixed;
- var headerHeight = fixedColumnsHeadRowsHeight[0];
- if (!fixed) {
- return null;
- }
- if (headerHeight && columns) {
- if (headerHeight === 'auto') {
- return 'auto';
- }
- return headerHeight / rows.length + 'px';
- }
- return null;
- }
- },
- render: function render(h) {
- var row = this.row,
- index = this.index,
- height = this.height,
- components = this.components,
- customHeaderRow = this.customHeaderRow,
- prefixCls = this.prefixCls;
- var HeaderRow = components.header.row;
- var HeaderCell = components.header.cell;
- var rowProps = customHeaderRow(row.map(function (cell) {
- return cell.column;
- }), index);
- var customStyle = rowProps ? rowProps.style : {};
- var style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({ height: height }, customStyle);
- if (style.height === null) {
- delete style.height;
- }
- return h(
- HeaderRow,
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([rowProps, { style: style }]),
- [row.map(function (cell, i) {
- var _classNames;
- var column = cell.column,
- isLast = cell.isLast,
- children = cell.children,
- className = cell.className,
- cellProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(cell, ['column', 'isLast', 'children', 'className']);
- var customProps = column.customHeaderCell ? column.customHeaderCell(column) : {};
- var headerCellProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])({
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, cellProps)
- }, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, customProps, {
- key: column.key || column.dataIndex || i
- }));
- if (column.align) {
- headerCellProps.style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, customProps.style, { textAlign: column.align });
- }
- headerCellProps['class'] = classnames__WEBPACK_IMPORTED_MODULE_4___default()(customProps['class'], customProps.className, column['class'], column.className, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-align-' + column.align, !!column.align), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-cell-ellipsis', !!column.ellipsis), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-cell-break-word', !!column.width), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-cell-last', isLast), _classNames));
- if (typeof HeaderCell === 'function') {
- return HeaderCell(h, headerCellProps, children);
- }
- return h(
- HeaderCell,
- headerCellProps,
- [children]
- );
- })]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (TableHeaderRow);
- /***/ }),
- /***/ "./components/vc-table/src/TableRow.jsx":
- /*!**********************************************!*\
- !*** ./components/vc-table/src/TableRow.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TableCell */ "./components/vc-table/src/TableCell.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
- function noop() {}
- var TableRow = {
- name: 'TableRow',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
- inject: {
- store: { from: 'table-store', 'default': function _default() {
- return {};
- } }
- },
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
- customRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- // onRowClick: PropTypes.func,
- // onRowDoubleClick: PropTypes.func,
- // onRowContextMenu: PropTypes.func,
- // onRowMouseEnter: PropTypes.func,
- // onRowMouseLeave: PropTypes.func,
- record: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- // onHover: PropTypes.func,
- columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
- index: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]).isRequired,
- className: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- indent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- hasExpandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
- renderExpandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- renderExpandIconCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- components: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- expandedRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- isAnyColumnsFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- ancestorKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array.isRequired,
- expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
- expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
- // visible: PropTypes.bool,
- // hovered: PropTypes.bool,
- // height: PropTypes.any,
- }, {
- // expandIconColumnIndex: 0,
- // expandRowByClick: false,
- hasExpandIcon: function hasExpandIcon() {},
- renderExpandIcon: function renderExpandIcon() {},
- renderExpandIconCell: function renderExpandIconCell() {}
- }),
- computed: {
- visible: function visible() {
- var expandedRowKeys = this.store.expandedRowKeys;
- var ancestorKeys = this.$props.ancestorKeys;
- return !!(ancestorKeys.length === 0 || ancestorKeys.every(function (k) {
- return expandedRowKeys.includes(k);
- }));
- },
- height: function height() {
- var _store = this.store,
- expandedRowsHeight = _store.expandedRowsHeight,
- fixedColumnsBodyRowsHeight = _store.fixedColumnsBodyRowsHeight;
- var _$props = this.$props,
- fixed = _$props.fixed,
- rowKey = _$props.rowKey;
- if (!fixed) {
- return null;
- }
- if (expandedRowsHeight[rowKey]) {
- return expandedRowsHeight[rowKey];
- }
- if (fixedColumnsBodyRowsHeight[rowKey]) {
- return fixedColumnsBodyRowsHeight[rowKey];
- }
- return null;
- },
- hovered: function hovered() {
- var currentHoverKey = this.store.currentHoverKey;
- var rowKey = this.$props.rowKey;
- return currentHoverKey === rowKey;
- }
- },
- data: function data() {
- // this.shouldRender = this.visible
- return {
- shouldRender: this.visible
- };
- },
- mounted: function mounted() {
- var _this = this;
- if (this.shouldRender) {
- this.$nextTick(function () {
- _this.saveRowRef();
- });
- }
- },
- watch: {
- visible: {
- handler: function handler(val) {
- if (val) {
- this.shouldRender = true;
- }
- },
- immediate: true
- }
- },
- updated: function updated() {
- var _this2 = this;
- if (this.shouldRender && !this.rowRef) {
- this.$nextTick(function () {
- _this2.saveRowRef();
- });
- }
- },
- methods: {
- onRowClick: function onRowClick(event) {
- var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
- var record = this.record,
- index = this.index;
- this.__emit('rowClick', record, index, event);
- rowPropFunc(event);
- },
- onRowDoubleClick: function onRowDoubleClick(event) {
- var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
- var record = this.record,
- index = this.index;
- this.__emit('rowDoubleClick', record, index, event);
- rowPropFunc(event);
- },
- onContextMenu: function onContextMenu(event) {
- var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
- var record = this.record,
- index = this.index;
- this.__emit('rowContextmenu', record, index, event);
- rowPropFunc(event);
- },
- onMouseEnter: function onMouseEnter(event) {
- var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
- var record = this.record,
- index = this.index,
- rowKey = this.rowKey;
- this.__emit('hover', true, rowKey);
- this.__emit('rowMouseenter', record, index, event);
- rowPropFunc(event);
- },
- onMouseLeave: function onMouseLeave(event) {
- var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
- var record = this.record,
- index = this.index,
- rowKey = this.rowKey;
- this.__emit('hover', false, rowKey);
- this.__emit('rowMouseleave', record, index, event);
- rowPropFunc(event);
- },
- setExpandedRowHeight: function setExpandedRowHeight() {
- var store = this.store,
- rowKey = this.rowKey;
- var expandedRowsHeight = store.expandedRowsHeight;
- var height = this.rowRef.getBoundingClientRect().height;
- expandedRowsHeight = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, expandedRowsHeight, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, rowKey, height));
- store.expandedRowsHeight = expandedRowsHeight;
- },
- setRowHeight: function setRowHeight() {
- var store = this.store,
- rowKey = this.rowKey;
- var fixedColumnsBodyRowsHeight = store.fixedColumnsBodyRowsHeight;
- var height = this.rowRef.getBoundingClientRect().height;
- store.fixedColumnsBodyRowsHeight = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, fixedColumnsBodyRowsHeight, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, rowKey, height));
- },
- getStyle: function getStyle() {
- var height = this.height,
- visible = this.visible;
- var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(this);
- if (height) {
- style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, style, { height: height });
- }
- if (!visible && !style.display) {
- style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, style, { display: 'none' });
- }
- return style;
- },
- saveRowRef: function saveRowRef() {
- this.rowRef = this.$el;
- var isAnyColumnsFixed = this.isAnyColumnsFixed,
- fixed = this.fixed,
- expandedRow = this.expandedRow,
- ancestorKeys = this.ancestorKeys;
- if (!isAnyColumnsFixed) {
- return;
- }
- if (!fixed && expandedRow) {
- this.setExpandedRowHeight();
- }
- if (!fixed && ancestorKeys.length >= 0) {
- this.setRowHeight();
- }
- }
- },
- render: function render() {
- var _this3 = this;
- var h = arguments[0];
- if (!this.shouldRender) {
- return null;
- }
- var prefixCls = this.prefixCls,
- columns = this.columns,
- record = this.record,
- rowKey = this.rowKey,
- index = this.index,
- _customRow = this.customRow,
- customRow = _customRow === undefined ? noop : _customRow,
- indent = this.indent,
- indentSize = this.indentSize,
- hovered = this.hovered,
- height = this.height,
- visible = this.visible,
- components = this.components,
- hasExpandIcon = this.hasExpandIcon,
- renderExpandIcon = this.renderExpandIcon,
- renderExpandIconCell = this.renderExpandIconCell;
- var BodyRow = components.body.row;
- var BodyCell = components.body.cell;
- var className = '';
- if (hovered) {
- className += ' ' + prefixCls + '-hover';
- }
- var cells = [];
- renderExpandIconCell(cells);
- for (var i = 0; i < columns.length; i += 1) {
- var column = columns[i];
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(column.onCellClick === undefined, 'column[onCellClick] is deprecated, please use column[customCell] instead.');
- cells.push(h(_TableCell__WEBPACK_IMPORTED_MODULE_5__["default"], {
- attrs: {
- prefixCls: prefixCls,
- record: record,
- indentSize: indentSize,
- indent: indent,
- index: index,
- column: column,
- expandIcon: hasExpandIcon(i) && renderExpandIcon(),
- component: BodyCell
- },
- key: column.key || column.dataIndex }));
- }
- var _ref = customRow(record, index) || {},
- customClass = _ref['class'],
- customClassName = _ref.className,
- customStyle = _ref.style,
- rowProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref, ['class', 'className', 'style']);
- var style = { height: typeof height === 'number' ? height + 'px' : height };
- if (!visible) {
- style.display = 'none';
- }
- style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, style, customStyle);
- var rowClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, className, prefixCls + '-level-' + indent, customClassName, customClass);
- var rowPropEvents = rowProps.on || {};
- var bodyRowProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, rowProps, { style: style }), {
- on: {
- click: function click(e) {
- _this3.onRowClick(e, rowPropEvents.click);
- },
- dblclick: function dblclick(e) {
- _this3.onRowDoubleClick(e, rowPropEvents.dblclick);
- },
- mouseenter: function mouseenter(e) {
- _this3.onMouseEnter(e, rowPropEvents.mouseenter);
- },
- mouseleave: function mouseleave(e) {
- _this3.onMouseLeave(e, rowPropEvents.mouseleave);
- },
- contextmenu: function contextmenu(e) {
- _this3.onContextMenu(e, rowPropEvents.contextmenu);
- }
- },
- 'class': rowClassName
- }, {
- attrs: {
- 'data-row-key': rowKey
- }
- });
- return h(
- BodyRow,
- bodyRowProps,
- [cells]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (TableRow);
- /***/ }),
- /***/ "./components/vc-table/src/utils.js":
- /*!******************************************!*\
- !*** ./components/vc-table/src/utils.js ***!
- \******************************************/
- /*! exports provided: INTERNAL_COL_DEFINE, measureScrollbar, debounce, remove */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_COL_DEFINE", function() { return INTERNAL_COL_DEFINE; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "measureScrollbar", function() { return measureScrollbar; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "remove", function() { return remove; });
- var scrollbarVerticalSize = void 0;
- var scrollbarHorizontalSize = void 0;
- // Measure scrollbar width for padding body during modal show/hide
- var scrollbarMeasure = {
- position: 'absolute',
- top: '-9999px',
- width: '50px',
- height: '50px'
- };
- var INTERNAL_COL_DEFINE = 'RC_TABLE_INTERNAL_COL_DEFINE';
- function measureScrollbar(_ref) {
- var _ref$direction = _ref.direction,
- direction = _ref$direction === undefined ? 'vertical' : _ref$direction,
- prefixCls = _ref.prefixCls;
- if (typeof document === 'undefined' || typeof window === 'undefined') {
- return 0;
- }
- var isVertical = direction === 'vertical';
- if (isVertical && scrollbarVerticalSize) {
- return scrollbarVerticalSize;
- }
- if (!isVertical && scrollbarHorizontalSize) {
- return scrollbarHorizontalSize;
- }
- var scrollDiv = document.createElement('div');
- Object.keys(scrollbarMeasure).forEach(function (scrollProp) {
- scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp];
- });
- // apply hide scrollbar className ahead
- scrollDiv.className = prefixCls + '-hide-scrollbar scroll-div-append-to-body';
- // Append related overflow style
- if (isVertical) {
- scrollDiv.style.overflowY = 'scroll';
- } else {
- scrollDiv.style.overflowX = 'scroll';
- }
- document.body.appendChild(scrollDiv);
- var size = 0;
- if (isVertical) {
- size = scrollDiv.offsetWidth - scrollDiv.clientWidth;
- scrollbarVerticalSize = size;
- } else {
- size = scrollDiv.offsetHeight - scrollDiv.clientHeight;
- scrollbarHorizontalSize = size;
- }
- document.body.removeChild(scrollDiv);
- return size;
- }
- function debounce(func, wait, immediate) {
- var timeout = void 0;
- function debounceFunc() {
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- var context = this;
- // https://fb.me/react-event-pooling
- if (args[0] && args[0].persist) {
- args[0].persist();
- }
- var later = function later() {
- timeout = null;
- if (!immediate) {
- func.apply(context, args);
- }
- };
- var callNow = immediate && !timeout;
- clearTimeout(timeout);
- timeout = setTimeout(later, wait);
- if (callNow) {
- func.apply(context, args);
- }
- }
- debounceFunc.cancel = function cancel() {
- if (timeout) {
- clearTimeout(timeout);
- timeout = null;
- }
- };
- return debounceFunc;
- }
- function remove(array, item) {
- var index = array.indexOf(item);
- var front = array.slice(0, index);
- var last = array.slice(index + 1, array.length);
- return front.concat(last);
- }
- /***/ }),
- /***/ "./components/vc-tabs/src/InkTabBarNode.jsx":
- /*!**************************************************!*\
- !*** ./components/vc-tabs/src/InkTabBarNode.jsx ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- function componentDidUpdate(component, init) {
- var _component$$props = component.$props,
- _component$$props$sty = _component$$props.styles,
- styles = _component$$props$sty === undefined ? {} : _component$$props$sty,
- panels = _component$$props.panels,
- activeKey = _component$$props.activeKey,
- direction = _component$$props.direction;
- var rootNode = component.getRef('root');
- var wrapNode = component.getRef('nav') || rootNode;
- var inkBarNode = component.getRef('inkBar');
- var activeTab = component.getRef('activeTab');
- var inkBarNodeStyle = inkBarNode.style;
- var tabBarPosition = component.$props.tabBarPosition;
- var activeIndex = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getActiveIndex"])(panels, activeKey);
- if (init) {
- // prevent mount animation
- inkBarNodeStyle.display = 'none';
- }
- if (activeTab) {
- var tabNode = activeTab;
- var transformSupported = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["isTransform3dSupported"])(inkBarNodeStyle);
- // Reset current style
- Object(_utils__WEBPACK_IMPORTED_MODULE_3__["setTransform"])(inkBarNodeStyle, '');
- inkBarNodeStyle.width = '';
- inkBarNodeStyle.height = '';
- inkBarNodeStyle.left = '';
- inkBarNodeStyle.top = '';
- inkBarNodeStyle.bottom = '';
- inkBarNodeStyle.right = '';
- if (tabBarPosition === 'top' || tabBarPosition === 'bottom') {
- var left = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getLeft"])(tabNode, wrapNode);
- var width = tabNode.offsetWidth;
- // If tabNode'width width equal to wrapNode'width when tabBarPosition is top or bottom
- // It means no css working, then ink bar should not have width until css is loaded
- // Fix https://github.com/ant-design/ant-design/issues/7564
- if (width === rootNode.offsetWidth) {
- width = 0;
- } else if (styles.inkBar && styles.inkBar.width !== undefined) {
- width = parseFloat(styles.inkBar.width, 10);
- if (width) {
- left += (tabNode.offsetWidth - width) / 2;
- }
- }
- if (direction === 'rtl') {
- left = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(tabNode, 'margin-left') - left;
- }
- // use 3d gpu to optimize render
- if (transformSupported) {
- Object(_utils__WEBPACK_IMPORTED_MODULE_3__["setTransform"])(inkBarNodeStyle, 'translate3d(' + left + 'px,0,0)');
- } else {
- inkBarNodeStyle.left = left + 'px';
- }
- inkBarNodeStyle.width = width + 'px';
- } else {
- var top = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getTop"])(tabNode, wrapNode, true);
- var height = tabNode.offsetHeight;
- if (styles.inkBar && styles.inkBar.height !== undefined) {
- height = parseFloat(styles.inkBar.height, 10);
- if (height) {
- top += (tabNode.offsetHeight - height) / 2;
- }
- }
- if (transformSupported) {
- Object(_utils__WEBPACK_IMPORTED_MODULE_3__["setTransform"])(inkBarNodeStyle, 'translate3d(0,' + top + 'px,0)');
- inkBarNodeStyle.top = '0';
- } else {
- inkBarNodeStyle.top = top + 'px';
- }
- inkBarNodeStyle.height = height + 'px';
- }
- }
- inkBarNodeStyle.display = activeIndex !== -1 ? 'block' : 'none';
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'InkTabBarNode',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- props: {
- inkBarAnimated: {
- type: Boolean,
- 'default': true
- },
- direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- prefixCls: String,
- styles: Object,
- tabBarPosition: String,
- saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {}),
- getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {}),
- panels: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
- activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number])
- },
- updated: function updated() {
- this.$nextTick(function () {
- componentDidUpdate(this);
- });
- },
- mounted: function mounted() {
- this.$nextTick(function () {
- componentDidUpdate(this, true);
- });
- },
- render: function render() {
- var _classes;
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- _styles = this.styles,
- styles = _styles === undefined ? {} : _styles,
- inkBarAnimated = this.inkBarAnimated;
- var className = prefixCls + '-ink-bar';
- var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, className, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, inkBarAnimated ? className + '-animated' : className + '-no-animated', true), _classes);
- return h('div', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- style: styles.inkBar,
- 'class': classes,
- key: 'inkBar'
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.saveRef('inkBar')
- }]
- }]));
- }
- });
- /***/ }),
- /***/ "./components/vc-tabs/src/KeyCode.js":
- /*!*******************************************!*\
- !*** ./components/vc-tabs/src/KeyCode.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- /**
- * LEFT
- */
- LEFT: 37, // also NUM_WEST
- /**
- * UP
- */
- UP: 38, // also NUM_NORTH
- /**
- * RIGHT
- */
- RIGHT: 39, // also NUM_EAST
- /**
- * DOWN
- */
- DOWN: 40 // also NUM_SOUTH
- });
- /***/ }),
- /***/ "./components/vc-tabs/src/SaveRef.jsx":
- /*!********************************************!*\
- !*** ./components/vc-tabs/src/SaveRef.jsx ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.def(function () {
- return null;
- })
- },
- methods: {
- getRef: function getRef(name) {
- return this[name];
- },
- saveRef: function saveRef(name) {
- var _this = this;
- return function (node) {
- if (node) {
- _this[name] = node;
- }
- };
- }
- },
- render: function render() {
- var _this2 = this;
- // 每次都new一个新的function,避免子节点不能重新渲染
- var saveRef = function saveRef(name) {
- return _this2.saveRef(name);
- };
- var getRef = function getRef(name) {
- return _this2.getRef(name);
- };
- return this.children(saveRef, getRef);
- }
- });
- /***/ }),
- /***/ "./components/vc-tabs/src/ScrollableInkTabBar.jsx":
- /*!********************************************************!*\
- !*** ./components/vc-tabs/src/ScrollableInkTabBar.jsx ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _InkTabBarNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InkTabBarNode */ "./components/vc-tabs/src/InkTabBarNode.jsx");
- /* harmony import */ var _TabBarTabsNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabBarTabsNode */ "./components/vc-tabs/src/TabBarTabsNode.jsx");
- /* harmony import */ var _TabBarRootNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TabBarRootNode */ "./components/vc-tabs/src/TabBarRootNode.jsx");
- /* harmony import */ var _ScrollableTabBarNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ScrollableTabBarNode */ "./components/vc-tabs/src/ScrollableTabBarNode.jsx");
- /* harmony import */ var _SaveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SaveRef */ "./components/vc-tabs/src/SaveRef.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ScrollableInkTabBar',
- inheritAttrs: false,
- props: ['extraContent', 'inkBarAnimated', 'tabBarGutter', 'prefixCls', 'navWrapper', 'tabBarPosition', 'panels', 'activeKey', 'prevIcon', 'nextIcon'],
- render: function render() {
- var h = arguments[0];
- var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props);
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this);
- var renderTabBarNode = this.$scopedSlots['default'];
- return h(_SaveRef__WEBPACK_IMPORTED_MODULE_6__["default"], {
- attrs: {
- children: function children(saveRef, getRef) {
- return h(
- _TabBarRootNode__WEBPACK_IMPORTED_MODULE_4__["default"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: { saveRef: saveRef }
- }, { props: props, on: listeners }]),
- [h(
- _ScrollableTabBarNode__WEBPACK_IMPORTED_MODULE_5__["default"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: { saveRef: saveRef, getRef: getRef }
- }, { props: props, on: listeners }]),
- [h(_TabBarTabsNode__WEBPACK_IMPORTED_MODULE_3__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- saveRef: saveRef
- }
- }, { props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, { renderTabBarNode: renderTabBarNode }), on: listeners }])), h(_InkTabBarNode__WEBPACK_IMPORTED_MODULE_2__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: { saveRef: saveRef, getRef: getRef }
- }, { props: props, on: listeners }]))]
- )]
- );
- }
- }
- });
- }
- });
- /***/ }),
- /***/ "./components/vc-tabs/src/ScrollableTabBarNode.jsx":
- /*!*********************************************************!*\
- !*** ./components/vc-tabs/src/ScrollableTabBarNode.jsx ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
- /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ScrollableTabBarNode',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
- props: {
- activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(function () {}),
- saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(function () {}),
- tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['left', 'right', 'top', 'bottom']).def('left'),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string.def(''),
- scrollAnimated: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool.def(true),
- navWrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(function (arg) {
- return arg;
- }),
- prevIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- nextIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
- direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
- },
- data: function data() {
- this.offset = 0;
- this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
- return {
- next: false,
- prev: false
- };
- },
- watch: {
- tabBarPosition: function tabBarPosition() {
- var _this = this;
- this.tabBarPositionChange = true;
- this.$nextTick(function () {
- _this.setOffset(0);
- });
- }
- },
- mounted: function mounted() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.updatedCal();
- _this2.debouncedResize = lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default()(function () {
- _this2.setNextPrev();
- _this2.scrollToActiveTab();
- }, 200);
- _this2.resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__["default"](_this2.debouncedResize);
- _this2.resizeObserver.observe(_this2.$props.getRef('container'));
- });
- },
- updated: function updated() {
- var _this3 = this;
- this.$nextTick(function () {
- _this3.updatedCal(_this3.prevProps);
- _this3.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _this3.$props);
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.resizeObserver) {
- this.resizeObserver.disconnect();
- }
- if (this.debouncedResize && this.debouncedResize.cancel) {
- this.debouncedResize.cancel();
- }
- },
- methods: {
- updatedCal: function updatedCal(prevProps) {
- var _this4 = this;
- var props = this.$props;
- if (prevProps && prevProps.tabBarPosition !== props.tabBarPosition) {
- this.setOffset(0);
- return;
- }
- // wait next, prev show hide
- if (this.isNextPrevShown(this.$data) !== this.isNextPrevShown(this.setNextPrev())) {
- this.$forceUpdate();
- this.$nextTick(function () {
- _this4.scrollToActiveTab();
- });
- } else if (!prevProps || props.activeKey !== prevProps.activeKey) {
- // can not use props.activeKey
- this.scrollToActiveTab();
- }
- },
- setNextPrev: function setNextPrev() {
- var navNode = this.$props.getRef('nav');
- var navTabsContainer = this.$props.getRef('navTabsContainer');
- var navNodeWH = this.getScrollWH(navTabsContainer || navNode);
- // Add 1px to fix `offsetWidth` with decimal in Chrome not correct handle
- // https://github.com/ant-design/ant-design/issues/13423
- var containerWH = this.getOffsetWH(this.$props.getRef('container')) + 1;
- var navWrapNodeWH = this.getOffsetWH(this.$props.getRef('navWrap'));
- var offset = this.offset;
- var minOffset = containerWH - navNodeWH;
- var next = this.next,
- prev = this.prev;
- if (minOffset >= 0) {
- next = false;
- this.setOffset(0, false);
- offset = 0;
- } else if (minOffset < offset) {
- next = true;
- } else {
- next = false;
- // Fix https://github.com/ant-design/ant-design/issues/8861
- // Test with container offset which is stable
- // and set the offset of the nav wrap node
- var realOffset = navWrapNodeWH - navNodeWH;
- this.setOffset(realOffset, false);
- offset = realOffset;
- }
- if (offset < 0) {
- prev = true;
- } else {
- prev = false;
- }
- this.setNext(next);
- this.setPrev(prev);
- return {
- next: next,
- prev: prev
- };
- },
- getOffsetWH: function getOffsetWH(node) {
- var tabBarPosition = this.$props.tabBarPosition;
- var prop = 'offsetWidth';
- if (tabBarPosition === 'left' || tabBarPosition === 'right') {
- prop = 'offsetHeight';
- }
- return node[prop];
- },
- getScrollWH: function getScrollWH(node) {
- var tabBarPosition = this.tabBarPosition;
- var prop = 'scrollWidth';
- if (tabBarPosition === 'left' || tabBarPosition === 'right') {
- prop = 'scrollHeight';
- }
- return node[prop];
- },
- getOffsetLT: function getOffsetLT(node) {
- var tabBarPosition = this.$props.tabBarPosition;
- var prop = 'left';
- if (tabBarPosition === 'left' || tabBarPosition === 'right') {
- prop = 'top';
- }
- return node.getBoundingClientRect()[prop];
- },
- setOffset: function setOffset(offset) {
- var checkNextPrev = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var target = Math.min(0, offset);
- if (this.offset !== target) {
- this.offset = target;
- var navOffset = {};
- var tabBarPosition = this.$props.tabBarPosition;
- var navStyle = this.$props.getRef('nav').style;
- var transformSupported = Object(_utils__WEBPACK_IMPORTED_MODULE_8__["isTransform3dSupported"])(navStyle);
- if (tabBarPosition === 'left' || tabBarPosition === 'right') {
- if (transformSupported) {
- navOffset = {
- value: 'translate3d(0,' + target + 'px,0)'
- };
- } else {
- navOffset = {
- name: 'top',
- value: target + 'px'
- };
- }
- } else if (transformSupported) {
- if (this.$props.direction === 'rtl') {
- target = -target;
- }
- navOffset = {
- value: 'translate3d(' + target + 'px,0,0)'
- };
- } else {
- navOffset = {
- name: 'left',
- value: target + 'px'
- };
- }
- if (transformSupported) {
- Object(_utils__WEBPACK_IMPORTED_MODULE_8__["setTransform"])(navStyle, navOffset.value);
- } else {
- navStyle[navOffset.name] = navOffset.value;
- }
- if (checkNextPrev) {
- this.setNextPrev();
- }
- }
- },
- setPrev: function setPrev(v) {
- if (this.prev !== v) {
- this.prev = v;
- }
- },
- setNext: function setNext(v) {
- if (!v) {
- // debugger
- }
- if (this.next !== v) {
- this.next = v;
- }
- },
- isNextPrevShown: function isNextPrevShown(state) {
- if (state) {
- return state.next || state.prev;
- }
- return this.next || this.prev;
- },
- prevTransitionEnd: function prevTransitionEnd(e) {
- if (e.propertyName !== 'opacity') {
- return;
- }
- var container = this.$props.getRef('container');
- this.scrollToActiveTab({
- target: container,
- currentTarget: container
- });
- },
- scrollToActiveTab: function scrollToActiveTab(e) {
- var activeTab = this.$props.getRef('activeTab');
- var navWrap = this.$props.getRef('navWrap');
- if (e && e.target !== e.currentTarget || !activeTab) {
- return;
- }
- // when not scrollable or enter scrollable first time, don't emit scrolling
- var needToSroll = this.isNextPrevShown() && this.lastNextPrevShown;
- this.lastNextPrevShown = this.isNextPrevShown();
- if (!needToSroll) {
- return;
- }
- var activeTabWH = this.getScrollWH(activeTab);
- var navWrapNodeWH = this.getOffsetWH(navWrap);
- var offset = this.offset;
- var wrapOffset = this.getOffsetLT(navWrap);
- var activeTabOffset = this.getOffsetLT(activeTab);
- if (wrapOffset > activeTabOffset) {
- offset += wrapOffset - activeTabOffset;
- this.setOffset(offset);
- } else if (wrapOffset + navWrapNodeWH < activeTabOffset + activeTabWH) {
- offset -= activeTabOffset + activeTabWH - (wrapOffset + navWrapNodeWH);
- this.setOffset(offset);
- }
- },
- prevClick: function prevClick(e) {
- this.__emit('prevClick', e);
- var navWrapNode = this.$props.getRef('navWrap');
- var navWrapNodeWH = this.getOffsetWH(navWrapNode);
- var offset = this.offset;
- this.setOffset(offset + navWrapNodeWH);
- },
- nextClick: function nextClick(e) {
- this.__emit('nextClick', e);
- var navWrapNode = this.$props.getRef('navWrap');
- var navWrapNodeWH = this.getOffsetWH(navWrapNode);
- var offset = this.offset;
- this.setOffset(offset - navWrapNodeWH);
- }
- },
- render: function render() {
- var _ref, _ref2, _navClasses, _ref3;
- var h = arguments[0];
- var next = this.next,
- prev = this.prev;
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- scrollAnimated = _$props.scrollAnimated,
- navWrapper = _$props.navWrapper;
- var prevIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'prevIcon');
- var nextIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'nextIcon');
- var showNextPrev = prev || next;
- var prevButton = h(
- 'span',
- {
- on: {
- 'click': prev ? this.prevClick : noop,
- 'transitionend': this.prevTransitionEnd
- },
- attrs: {
- unselectable: 'unselectable'
- },
- 'class': (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-tab-prev', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-tab-btn-disabled', !prev), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-tab-arrow-show', showNextPrev), _ref)
- },
- [prevIcon || h('span', { 'class': prefixCls + '-tab-prev-icon' })]
- );
- var nextButton = h(
- 'span',
- {
- on: {
- 'click': next ? this.nextClick : noop
- },
- attrs: {
- unselectable: 'unselectable'
- },
- 'class': (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, prefixCls + '-tab-next', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, prefixCls + '-tab-btn-disabled', !next), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, prefixCls + '-tab-arrow-show', showNextPrev), _ref2)
- },
- [nextIcon || h('span', { 'class': prefixCls + '-tab-next-icon' })]
- );
- var navClassName = prefixCls + '-nav';
- var navClasses = (_navClasses = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_navClasses, navClassName, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_navClasses, scrollAnimated ? navClassName + '-animated' : navClassName + '-no-animated', true), _navClasses);
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- 'class': (_ref3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref3, prefixCls + '-nav-container', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref3, prefixCls + '-nav-container-scrolling', showNextPrev), _ref3),
- key: 'container'
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.saveRef('container')
- }]
- }]),
- [prevButton, nextButton, h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- 'class': prefixCls + '-nav-wrap'
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.saveRef('navWrap')
- }]
- }]),
- [h(
- 'div',
- { 'class': prefixCls + '-nav-scroll' },
- [h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- 'class': navClasses
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.saveRef('nav')
- }]
- }]),
- [navWrapper(this.$slots['default'])]
- )]
- )]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-tabs/src/Sentinel.jsx":
- /*!*********************************************!*\
- !*** ./components/vc-tabs/src/Sentinel.jsx ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
- var sentinelStyle = { width: 0, height: 0, overflow: 'hidden', position: 'absolute' };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Sentinel',
- props: {
- setRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- prevElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- nextElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- },
- methods: {
- onKeyDown: function onKeyDown(_ref) {
- var target = _ref.target,
- which = _ref.which,
- shiftKey = _ref.shiftKey;
- var _$props = this.$props,
- nextElement = _$props.nextElement,
- prevElement = _$props.prevElement;
- if (which !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].TAB || document.activeElement !== target) return;
- // Tab next
- if (!shiftKey && nextElement) {
- nextElement.focus();
- }
- // Tab prev
- if (shiftKey && prevElement) {
- prevElement.focus();
- }
- }
- },
- render: function render() {
- var h = arguments[0];
- var setRef = this.$props.setRef;
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- tabIndex: 0
- }
- }, {
- directives: [{
- name: 'ant-ref',
- value: setRef
- }]
- }, {
- style: sentinelStyle,
- on: {
- 'keydown': this.onKeyDown
- },
- attrs: {
- role: 'presentation'
- }
- }]),
- [this.$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-tabs/src/TabBarRootNode.jsx":
- /*!***************************************************!*\
- !*** ./components/vc-tabs/src/TabBarRootNode.jsx ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TabBarRootNode',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
- props: {
- saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
- getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def(''),
- tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('top'),
- extraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
- },
- methods: {
- onKeyDown: function onKeyDown(e) {
- this.__emit('keydown', e);
- }
- },
- render: function render() {
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- onKeyDown = this.onKeyDown,
- tabBarPosition = this.tabBarPosition,
- extraContent = this.extraContent;
- var cls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls + '-bar', true);
- var topOrBottom = tabBarPosition === 'top' || tabBarPosition === 'bottom';
- var tabBarExtraContentStyle = topOrBottom ? { float: 'right' } : {};
- var children = this.$slots['default'];
- var newChildren = children;
- if (extraContent) {
- newChildren = [Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(extraContent, {
- key: 'extra',
- style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tabBarExtraContentStyle)
- }), Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(children, { key: 'content' })];
- newChildren = topOrBottom ? newChildren : newChildren.reverse();
- }
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- role: 'tablist',
- tabIndex: '0'
- },
- 'class': cls, on: {
- 'keydown': onKeyDown
- }
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.saveRef('root')
- }]
- }]),
- [newChildren]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-tabs/src/TabBarTabsNode.jsx":
- /*!***************************************************!*\
- !*** ./components/vc-tabs/src/TabBarTabsNode.jsx ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TabBarTabsNode',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- props: {
- activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
- panels: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def([]),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def(''),
- tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def(null),
- onTabClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(noop),
- getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(noop),
- renderTabBarNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
- },
- render: function render() {
- var _this = this;
- var h = arguments[0];
- var _$props = this.$props,
- children = _$props.panels,
- activeKey = _$props.activeKey,
- prefixCls = _$props.prefixCls,
- tabBarGutter = _$props.tabBarGutter,
- saveRef = _$props.saveRef,
- tabBarPosition = _$props.tabBarPosition,
- direction = _$props.direction;
- var rst = [];
- var renderTabBarNode = this.renderTabBarNode || this.$scopedSlots.renderTabBarNode;
- children.forEach(function (child, index) {
- if (!child) {
- return;
- }
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(child);
- var key = child.key;
- var cls = activeKey === key ? prefixCls + '-tab-active' : '';
- cls += ' ' + prefixCls + '-tab';
- var events = { on: {} };
- var disabled = props.disabled || props.disabled === '';
- if (disabled) {
- cls += ' ' + prefixCls + '-tab-disabled';
- } else {
- events.on.click = function () {
- _this.__emit('tabClick', key);
- };
- }
- var directives = [];
- if (activeKey === key) {
- directives.push({
- name: 'ant-ref',
- value: saveRef('activeTab')
- });
- }
- var tab = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(child, 'tab');
- var gutter = tabBarGutter && index === children.length - 1 ? 0 : tabBarGutter;
- gutter = typeof gutter === 'number' ? gutter + 'px' : gutter;
- var marginProperty = direction === 'rtl' ? 'marginLeft' : 'marginRight';
- var style = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_utils__WEBPACK_IMPORTED_MODULE_6__["isVertical"])(tabBarPosition) ? 'marginBottom' : marginProperty, gutter);
- warning__WEBPACK_IMPORTED_MODULE_2___default()(tab !== undefined, 'There must be `tab` property or slot on children of Tabs.');
- var node = h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- role: 'tab',
- 'aria-disabled': disabled ? 'true' : 'false',
- 'aria-selected': activeKey === key ? 'true' : 'false'
- }
- }, events, {
- 'class': cls,
- key: key,
- style: style
- }, { directives: directives }]),
- [tab]
- );
- if (renderTabBarNode) {
- node = renderTabBarNode(node);
- }
- rst.push(node);
- });
- return h(
- 'div',
- {
- directives: [{
- name: 'ant-ref',
- value: this.saveRef('navTabsContainer')
- }]
- },
- [rst]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-tabs/src/TabContent.jsx":
- /*!***********************************************!*\
- !*** ./components/vc-tabs/src/TabContent.jsx ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TabContent',
- props: {
- animated: { type: Boolean, 'default': true },
- animatedWithMargin: { type: Boolean, 'default': true },
- prefixCls: {
- 'default': 'ant-tabs',
- type: String
- },
- activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
- tabBarPosition: String,
- direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- },
- computed: {
- classes: function classes() {
- var _ref;
- var animated = this.animated,
- prefixCls = this.prefixCls;
- return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-content', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, animated ? prefixCls + '-content-animated' : prefixCls + '-content-no-animated', true), _ref;
- }
- },
- methods: {
- getTabPanes: function getTabPanes() {
- var props = this.$props;
- var activeKey = props.activeKey;
- var children = this.$slots['default'] || [];
- var newChildren = [];
- children.forEach(function (child) {
- if (!child) {
- return;
- }
- var key = child.key;
- var active = activeKey === key;
- newChildren.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
- props: {
- active: active,
- destroyInactiveTabPane: props.destroyInactiveTabPane,
- rootPrefixCls: props.prefixCls
- }
- }));
- });
- return newChildren;
- }
- },
- render: function render() {
- var h = arguments[0];
- var activeKey = this.activeKey,
- tabBarPosition = this.tabBarPosition,
- animated = this.animated,
- animatedWithMargin = this.animatedWithMargin,
- direction = this.direction,
- classes = this.classes;
- var style = {};
- if (animated && this.$slots['default']) {
- var activeIndex = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getActiveIndex"])(this.$slots['default'], activeKey);
- if (activeIndex !== -1) {
- var animatedStyle = animatedWithMargin ? Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getMarginStyle"])(activeIndex, tabBarPosition) : Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getTransformPropValue"])(Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getTransformByIndex"])(activeIndex, tabBarPosition, direction));
- style = animatedStyle;
- } else {
- style = {
- display: 'none'
- };
- }
- }
- return h(
- 'div',
- { 'class': classes, style: style },
- [this.getTabPanes()]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-tabs/src/TabPane.jsx":
- /*!********************************************!*\
- !*** ./components/vc-tabs/src/TabPane.jsx ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _Sentinel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Sentinel */ "./components/vc-tabs/src/Sentinel.jsx");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TabPane',
- props: {
- active: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- tab: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- },
- inject: {
- sentinelContext: { 'default': function _default() {
- return {};
- } }
- },
- render: function render() {
- var _cls;
- var h = arguments[0];
- var _$props = this.$props,
- destroyInactiveTabPane = _$props.destroyInactiveTabPane,
- active = _$props.active,
- forceRender = _$props.forceRender,
- rootPrefixCls = _$props.rootPrefixCls;
- var children = this.$slots['default'];
- var placeholder = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'placeholder');
- this._isActived = this._isActived || active;
- var prefixCls = rootPrefixCls + '-tabpane';
- var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-inactive', !active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-active', active), _cls);
- var isRender = destroyInactiveTabPane ? active : this._isActived;
- var shouldRender = isRender || forceRender;
- var _sentinelContext = this.sentinelContext,
- sentinelStart = _sentinelContext.sentinelStart,
- sentinelEnd = _sentinelContext.sentinelEnd,
- setPanelSentinelStart = _sentinelContext.setPanelSentinelStart,
- setPanelSentinelEnd = _sentinelContext.setPanelSentinelEnd;
- var panelSentinelStart = void 0;
- var panelSentinelEnd = void 0;
- if (active && shouldRender) {
- panelSentinelStart = h(_Sentinel__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: { setRef: setPanelSentinelStart, prevElement: sentinelStart }
- });
- panelSentinelEnd = h(_Sentinel__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: { setRef: setPanelSentinelEnd, nextElement: sentinelEnd }
- });
- }
- return h(
- 'div',
- { 'class': cls, attrs: { role: 'tabpanel', 'aria-hidden': active ? 'false' : 'true' }
- },
- [panelSentinelStart, shouldRender ? children : placeholder, panelSentinelEnd]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-tabs/src/Tabs.jsx":
- /*!*****************************************!*\
- !*** ./components/vc-tabs/src/Tabs.jsx ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./KeyCode */ "./components/vc-tabs/src/KeyCode.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _Sentinel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Sentinel */ "./components/vc-tabs/src/Sentinel.jsx");
- /* harmony import */ var _util_isValid__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/isValid */ "./components/_util/isValid.js");
- function getDefaultActiveKey(props) {
- var activeKey = void 0;
- var children = props.children;
- children.forEach(function (child) {
- if (child && !Object(_util_isValid__WEBPACK_IMPORTED_MODULE_10__["default"])(activeKey) && !child.disabled) {
- activeKey = child.key;
- }
- });
- return activeKey;
- }
- function activeKeyIsValid(props, key) {
- var children = props.children;
- var keys = children.map(function (child) {
- return child && child.key;
- });
- return keys.indexOf(key) >= 0;
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Tabs',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- model: {
- prop: 'activeKey',
- event: 'change'
- },
- props: {
- destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- renderTabBar: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.isRequired,
- renderTabContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.isRequired,
- navWrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function (arg) {
- return arg;
- }),
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def([]),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('ant-tabs'),
- tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('top'),
- activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
- defaultActiveKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
- __propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('ltr'),
- tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number
- },
- data: function data() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
- var activeKey = void 0;
- if ('activeKey' in props) {
- activeKey = props.activeKey;
- } else if ('defaultActiveKey' in props) {
- activeKey = props.defaultActiveKey;
- } else {
- activeKey = getDefaultActiveKey(props);
- }
- return {
- _activeKey: activeKey
- };
- },
- provide: function provide() {
- return {
- sentinelContext: this
- };
- },
- watch: {
- __propsSymbol__: function __propsSymbol__() {
- var nextProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
- if ('activeKey' in nextProps) {
- this.setState({
- _activeKey: nextProps.activeKey
- });
- } else if (!activeKeyIsValid(nextProps, this.$data._activeKey)) {
- // https://github.com/ant-design/ant-design/issues/7093
- this.setState({
- _activeKey: getDefaultActiveKey(nextProps)
- });
- }
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.destroy = true;
- raf__WEBPACK_IMPORTED_MODULE_5___default.a.cancel(this.sentinelId);
- },
- methods: {
- onTabClick: function onTabClick(activeKey, e) {
- if (this.tabBar.componentOptions && this.tabBar.componentOptions.listeners && this.tabBar.componentOptions.listeners.tabClick) {
- this.tabBar.componentOptions.listeners.tabClick(activeKey, e);
- }
- this.setActiveKey(activeKey);
- },
- onNavKeyDown: function onNavKeyDown(e) {
- var eventKeyCode = e.keyCode;
- if (eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].RIGHT || eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].DOWN) {
- e.preventDefault();
- var nextKey = this.getNextActiveKey(true);
- this.onTabClick(nextKey);
- } else if (eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].LEFT || eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].UP) {
- e.preventDefault();
- var previousKey = this.getNextActiveKey(false);
- this.onTabClick(previousKey);
- }
- },
- onScroll: function onScroll(_ref) {
- var target = _ref.target,
- currentTarget = _ref.currentTarget;
- if (target === currentTarget && target.scrollLeft > 0) {
- target.scrollLeft = 0;
- }
- },
- // Sentinel for tab index
- setSentinelStart: function setSentinelStart(node) {
- this.sentinelStart = node;
- },
- setSentinelEnd: function setSentinelEnd(node) {
- this.sentinelEnd = node;
- },
- setPanelSentinelStart: function setPanelSentinelStart(node) {
- if (node !== this.panelSentinelStart) {
- this.updateSentinelContext();
- }
- this.panelSentinelStart = node;
- },
- setPanelSentinelEnd: function setPanelSentinelEnd(node) {
- if (node !== this.panelSentinelEnd) {
- this.updateSentinelContext();
- }
- this.panelSentinelEnd = node;
- },
- setActiveKey: function setActiveKey(activeKey) {
- if (this.$data._activeKey !== activeKey) {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
- if (!('activeKey' in props)) {
- this.setState({
- _activeKey: activeKey
- });
- }
- this.__emit('change', activeKey);
- }
- },
- getNextActiveKey: function getNextActiveKey(next) {
- var activeKey = this.$data._activeKey;
- var children = [];
- this.$props.children.forEach(function (c) {
- var disabled = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getValueByProp"])(c, 'disabled');
- if (c && !disabled && disabled !== '') {
- if (next) {
- children.push(c);
- } else {
- children.unshift(c);
- }
- }
- });
- var length = children.length;
- var ret = length && children[0].key;
- children.forEach(function (child, i) {
- if (child.key === activeKey) {
- if (i === length - 1) {
- ret = children[0].key;
- } else {
- ret = children[i + 1].key;
- }
- }
- });
- return ret;
- },
- updateSentinelContext: function updateSentinelContext() {
- var _this = this;
- if (this.destroy) return;
- raf__WEBPACK_IMPORTED_MODULE_5___default.a.cancel(this.sentinelId);
- this.sentinelId = raf__WEBPACK_IMPORTED_MODULE_5___default()(function () {
- if (_this.destroy) return;
- _this.$forceUpdate();
- });
- }
- },
- render: function render() {
- var _cls;
- var h = arguments[0];
- var props = this.$props;
- var prefixCls = props.prefixCls,
- navWrapper = props.navWrapper,
- tabBarPosition = props.tabBarPosition,
- renderTabContent = props.renderTabContent,
- renderTabBar = props.renderTabBar,
- destroyInactiveTabPane = props.destroyInactiveTabPane,
- direction = props.direction,
- tabBarGutter = props.tabBarGutter;
- var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-' + tabBarPosition, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-rtl', direction === 'rtl'), _cls);
- this.tabBar = renderTabBar();
- var tabBar = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(this.tabBar, {
- props: {
- prefixCls: prefixCls,
- navWrapper: navWrapper,
- tabBarPosition: tabBarPosition,
- panels: props.children,
- activeKey: this.$data._activeKey,
- direction: direction,
- tabBarGutter: tabBarGutter
- },
- on: {
- keydown: this.onNavKeyDown,
- tabClick: this.onTabClick
- },
- key: 'tabBar'
- });
- var tabContent = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(renderTabContent(), {
- props: {
- prefixCls: prefixCls,
- tabBarPosition: tabBarPosition,
- activeKey: this.$data._activeKey,
- destroyInactiveTabPane: destroyInactiveTabPane,
- direction: direction
- },
- on: {
- change: this.setActiveKey
- },
- children: props.children,
- key: 'tabContent'
- });
- var sentinelStart = h(_Sentinel__WEBPACK_IMPORTED_MODULE_9__["default"], {
- key: 'sentinelStart',
- attrs: { setRef: this.setSentinelStart,
- nextElement: this.panelSentinelStart
- }
- });
- var sentinelEnd = h(_Sentinel__WEBPACK_IMPORTED_MODULE_9__["default"], {
- key: 'sentinelEnd',
- attrs: { setRef: this.setSentinelEnd,
- prevElement: this.panelSentinelEnd
- }
- });
- var contents = [];
- if (tabBarPosition === 'bottom') {
- contents.push(sentinelStart, tabContent, sentinelEnd, tabBar);
- } else {
- contents.push(tabBar, sentinelStart, tabContent, sentinelEnd);
- }
- var listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), ['change']), {
- scroll: this.onScroll
- });
- return h(
- 'div',
- { on: listeners, 'class': cls },
- [contents]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-tabs/src/index.js":
- /*!*****************************************!*\
- !*** ./components/vc-tabs/src/index.js ***!
- \*****************************************/
- /*! exports provided: default, TabPane, TabContent */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _Tabs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Tabs */ "./components/vc-tabs/src/Tabs.jsx");
- /* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabPane */ "./components/vc-tabs/src/TabPane.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return _TabPane__WEBPACK_IMPORTED_MODULE_3__["default"]; });
- /* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TabContent */ "./components/vc-tabs/src/TabContent.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return _TabContent__WEBPACK_IMPORTED_MODULE_4__["default"]; });
- // based on rc-tabs 9.7.0
- vue__WEBPACK_IMPORTED_MODULE_1___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_0___default.a, { name: 'ant-ref' });
- /* harmony default export */ __webpack_exports__["default"] = (_Tabs__WEBPACK_IMPORTED_MODULE_2__["default"]);
- /***/ }),
- /***/ "./components/vc-tabs/src/utils.js":
- /*!*****************************************!*\
- !*** ./components/vc-tabs/src/utils.js ***!
- \*****************************************/
- /*! exports provided: toArray, getActiveIndex, getActiveKey, setTransform, isTransform3dSupported, setTransition, getTransformPropValue, isVertical, getTransformByIndex, getMarginStyle, getStyle, setPxStyle, getDataAttr, getLeft, getTop */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActiveIndex", function() { return getActiveIndex; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActiveKey", function() { return getActiveKey; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTransform", function() { return setTransform; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTransform3dSupported", function() { return isTransform3dSupported; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTransition", function() { return setTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTransformPropValue", function() { return getTransformPropValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isVertical", function() { return isVertical; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTransformByIndex", function() { return getTransformByIndex; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMarginStyle", function() { return getMarginStyle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyle", function() { return getStyle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setPxStyle", function() { return setPxStyle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataAttr", function() { return getDataAttr; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLeft", function() { return getLeft; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTop", function() { return getTop; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- function toArray(children) {
- var c = [];
- children.forEach(function (child) {
- if (child.data) {
- c.push(child);
- }
- });
- return c;
- }
- function getActiveIndex(children, activeKey) {
- var c = toArray(children);
- for (var i = 0; i < c.length; i++) {
- if (c[i].key === activeKey) {
- return i;
- }
- }
- return -1;
- }
- function getActiveKey(children, index) {
- var c = toArray(children);
- return c[index].key;
- }
- function setTransform(style, v) {
- style.transform = v;
- style.webkitTransform = v;
- style.mozTransform = v;
- }
- function isTransform3dSupported(style) {
- return ('transform' in style || 'webkitTransform' in style || 'MozTransform' in style) && window.atob;
- }
- function setTransition(style, v) {
- style.transition = v;
- style.webkitTransition = v;
- style.MozTransition = v;
- }
- function getTransformPropValue(v) {
- return {
- transform: v,
- WebkitTransform: v,
- MozTransform: v
- };
- }
- function isVertical(tabBarPosition) {
- return tabBarPosition === 'left' || tabBarPosition === 'right';
- }
- function getTransformByIndex(index, tabBarPosition) {
- var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'ltr';
- var translate = isVertical(tabBarPosition) ? 'translateY' : 'translateX';
- if (!isVertical(tabBarPosition) && direction === 'rtl') {
- return translate + '(' + index * 100 + '%) translateZ(0)';
- }
- return translate + '(' + -index * 100 + '%) translateZ(0)';
- }
- function getMarginStyle(index, tabBarPosition) {
- var marginDirection = isVertical(tabBarPosition) ? 'marginTop' : 'marginLeft';
- return babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, marginDirection, -index * 100 + '%');
- }
- function getStyle(el, property) {
- return +window.getComputedStyle(el).getPropertyValue(property).replace('px', '');
- }
- function setPxStyle(el, value, vertical) {
- value = vertical ? '0px, ' + value + 'px, 0px' : value + 'px, 0px, 0px';
- setTransform(el.style, 'translate3d(' + value + ')');
- }
- function getDataAttr(props) {
- return Object.keys(props).reduce(function (prev, key) {
- if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
- prev[key] = props[key];
- }
- return prev;
- }, {});
- }
- function toNum(style, property) {
- return +style.getPropertyValue(property).replace('px', '');
- }
- function getTypeValue(start, current, end, tabNode, wrapperNode) {
- var total = getStyle(wrapperNode, 'padding-' + start);
- if (!tabNode || !tabNode.parentNode) {
- return total;
- }
- var childNodes = tabNode.parentNode.childNodes;
- Array.prototype.some.call(childNodes, function (node) {
- var style = window.getComputedStyle(node);
- if (node !== tabNode) {
- total += toNum(style, 'margin-' + start);
- total += node[current];
- total += toNum(style, 'margin-' + end);
- if (style.boxSizing === 'content-box') {
- total += toNum(style, 'border-' + start + '-width') + toNum(style, 'border-' + end + '-width');
- }
- return false;
- }
- // We need count current node margin
- // ref: https://github.com/react-component/tabs/pull/139#issuecomment-431005262
- total += toNum(style, 'margin-' + start);
- return true;
- });
- return total;
- }
- function getLeft(tabNode, wrapperNode) {
- return getTypeValue('left', 'offsetWidth', 'right', tabNode, wrapperNode);
- }
- function getTop(tabNode, wrapperNode) {
- return getTypeValue('top', 'offsetHeight', 'bottom', tabNode, wrapperNode);
- }
- /***/ }),
- /***/ "./components/vc-time-picker/Combobox.jsx":
- /*!************************************************!*\
- !*** ./components/vc-time-picker/Combobox.jsx ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Select */ "./components/vc-time-picker/Select.jsx");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- var formatOption = function formatOption(option, disabledOptions) {
- var value = '' + option;
- if (option < 10) {
- value = '0' + option;
- }
- var disabled = false;
- if (disabledOptions && disabledOptions.indexOf(option) >= 0) {
- disabled = true;
- }
- return {
- value: value,
- disabled: disabled
- };
- };
- var Combobox = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- name: 'Combobox',
- props: {
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- defaultOpenValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
- // onChange: PropTypes.func,
- // onAmPmChange: PropTypes.func,
- showHour: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- showMinute: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- showSecond: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- hourOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
- minuteOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
- secondOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
- disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
- // onCurrentSelectPanelChange: PropTypes.func,
- use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- isAM: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
- },
- methods: {
- onItemChange: function onItemChange(type, itemValue) {
- var defaultOpenValue = this.defaultOpenValue,
- use12Hours = this.use12Hours,
- propValue = this.value,
- isAM = this.isAM;
- var value = (propValue || defaultOpenValue).clone();
- if (type === 'hour') {
- if (use12Hours) {
- if (isAM) {
- value.hour(+itemValue % 12);
- } else {
- value.hour(+itemValue % 12 + 12);
- }
- } else {
- value.hour(+itemValue);
- }
- } else if (type === 'minute') {
- value.minute(+itemValue);
- } else if (type === 'ampm') {
- var ampm = itemValue.toUpperCase();
- if (use12Hours) {
- if (ampm === 'PM' && value.hour() < 12) {
- value.hour(value.hour() % 12 + 12);
- }
- if (ampm === 'AM') {
- if (value.hour() >= 12) {
- value.hour(value.hour() - 12);
- }
- }
- }
- this.__emit('amPmChange', ampm);
- } else {
- value.second(+itemValue);
- }
- this.__emit('change', value);
- },
- onEnterSelectPanel: function onEnterSelectPanel(range) {
- this.__emit('currentSelectPanelChange', range);
- },
- onEsc: function onEsc(e) {
- this.__emit('esc', e);
- },
- getHourSelect: function getHourSelect(hour) {
- var _this = this;
- var h = this.$createElement;
- var prefixCls = this.prefixCls,
- hourOptions = this.hourOptions,
- disabledHours = this.disabledHours,
- showHour = this.showHour,
- use12Hours = this.use12Hours;
- if (!showHour) {
- return null;
- }
- var disabledOptions = disabledHours();
- var hourOptionsAdj = void 0;
- var hourAdj = void 0;
- if (use12Hours) {
- hourOptionsAdj = [12].concat(hourOptions.filter(function (h) {
- return h < 12 && h > 0;
- }));
- hourAdj = hour % 12 || 12;
- } else {
- hourOptionsAdj = hourOptions;
- hourAdj = hour;
- }
- return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
- attrs: {
- prefixCls: prefixCls,
- options: hourOptionsAdj.map(function (option) {
- return formatOption(option, disabledOptions);
- }),
- selectedIndex: hourOptionsAdj.indexOf(hourAdj),
- type: 'hour'
- },
- on: {
- 'select': this.onItemChange,
- 'mouseenter': function mouseenter() {
- return _this.onEnterSelectPanel('hour');
- },
- 'esc': this.onEsc
- }
- });
- },
- getMinuteSelect: function getMinuteSelect(minute) {
- var _this2 = this;
- var h = this.$createElement;
- var prefixCls = this.prefixCls,
- minuteOptions = this.minuteOptions,
- disabledMinutes = this.disabledMinutes,
- defaultOpenValue = this.defaultOpenValue,
- showMinute = this.showMinute,
- propValue = this.value;
- if (!showMinute) {
- return null;
- }
- var value = propValue || defaultOpenValue;
- var disabledOptions = disabledMinutes(value.hour());
- return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
- attrs: {
- prefixCls: prefixCls,
- options: minuteOptions.map(function (option) {
- return formatOption(option, disabledOptions);
- }),
- selectedIndex: minuteOptions.indexOf(minute),
- type: 'minute'
- },
- on: {
- 'select': this.onItemChange,
- 'mouseenter': function mouseenter() {
- return _this2.onEnterSelectPanel('minute');
- },
- 'esc': this.onEsc
- }
- });
- },
- getSecondSelect: function getSecondSelect(second) {
- var _this3 = this;
- var h = this.$createElement;
- var prefixCls = this.prefixCls,
- secondOptions = this.secondOptions,
- disabledSeconds = this.disabledSeconds,
- showSecond = this.showSecond,
- defaultOpenValue = this.defaultOpenValue,
- propValue = this.value;
- if (!showSecond) {
- return null;
- }
- var value = propValue || defaultOpenValue;
- var disabledOptions = disabledSeconds(value.hour(), value.minute());
- return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
- attrs: {
- prefixCls: prefixCls,
- options: secondOptions.map(function (option) {
- return formatOption(option, disabledOptions);
- }),
- selectedIndex: secondOptions.indexOf(second),
- type: 'second'
- },
- on: {
- 'select': this.onItemChange,
- 'mouseenter': function mouseenter() {
- return _this3.onEnterSelectPanel('second');
- },
- 'esc': this.onEsc
- }
- });
- },
- getAMPMSelect: function getAMPMSelect() {
- var _this4 = this;
- var h = this.$createElement;
- var prefixCls = this.prefixCls,
- use12Hours = this.use12Hours,
- format = this.format,
- isAM = this.isAM;
- if (!use12Hours) {
- return null;
- }
- var AMPMOptions = ['am', 'pm'] // If format has A char, then we should uppercase AM/PM
- .map(function (c) {
- return format.match(/\sA/) ? c.toUpperCase() : c;
- }).map(function (c) {
- return { value: c };
- });
- var selected = isAM ? 0 : 1;
- return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
- attrs: {
- prefixCls: prefixCls,
- options: AMPMOptions,
- selectedIndex: selected,
- type: 'ampm'
- },
- on: {
- 'select': this.onItemChange,
- 'mouseenter': function mouseenter() {
- return _this4.onEnterSelectPanel('ampm');
- },
- 'esc': this.onEsc
- }
- });
- }
- },
- render: function render() {
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- defaultOpenValue = this.defaultOpenValue,
- propValue = this.value;
- var value = propValue || defaultOpenValue;
- return h(
- 'div',
- { 'class': prefixCls + '-combobox' },
- [this.getHourSelect(value.hour()), this.getMinuteSelect(value.minute()), this.getSecondSelect(value.second()), this.getAMPMSelect(value.hour())]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Combobox);
- /***/ }),
- /***/ "./components/vc-time-picker/Header.jsx":
- /*!**********************************************!*\
- !*** ./components/vc-time-picker/Header.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
- var Header = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
- hourOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- minuteOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- secondOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- // onChange: PropTypes.func,
- // onClear: PropTypes.func,
- // onEsc: PropTypes.func,
- allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- defaultOpenValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- currentSelectPanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- // onKeyDown: PropTypes.func,
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- },
- data: function data() {
- var value = this.value,
- format = this.format;
- return {
- str: value && value.format(format) || '',
- invalid: false
- };
- },
- mounted: function mounted() {
- var _this = this;
- if (this.focusOnOpen) {
- // Wait one frame for the panel to be positioned before focusing
- var requestAnimationFrame = window.requestAnimationFrame || window.setTimeout;
- requestAnimationFrame(function () {
- _this.$refs.input.focus();
- _this.$refs.input.select();
- });
- }
- },
- watch: {
- value: function value(val) {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.setState({
- str: val && val.format(_this2.format) || '',
- invalid: false
- });
- });
- }
- },
- methods: {
- onInputChange: function onInputChange(e) {
- var _e$target = e.target,
- str = _e$target.value,
- composing = _e$target.composing;
- var _str = this.str,
- oldStr = _str === undefined ? '' : _str;
- if (e.isComposing || composing || oldStr === str) return;
- this.setState({
- str: str
- });
- var format = this.format,
- hourOptions = this.hourOptions,
- minuteOptions = this.minuteOptions,
- secondOptions = this.secondOptions,
- disabledHours = this.disabledHours,
- disabledMinutes = this.disabledMinutes,
- disabledSeconds = this.disabledSeconds,
- originalValue = this.value;
- if (str) {
- var value = this.getProtoValue().clone();
- var parsed = moment__WEBPACK_IMPORTED_MODULE_3___default()(str, format, true);
- if (!parsed.isValid()) {
- this.setState({
- invalid: true
- });
- return;
- }
- value.hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
- // if time value not allowed, response warning.
- if (hourOptions.indexOf(value.hour()) < 0 || minuteOptions.indexOf(value.minute()) < 0 || secondOptions.indexOf(value.second()) < 0) {
- this.setState({
- invalid: true
- });
- return;
- }
- // if time value is disabled, response warning.
- var disabledHourOptions = disabledHours();
- var disabledMinuteOptions = disabledMinutes(value.hour());
- var disabledSecondOptions = disabledSeconds(value.hour(), value.minute());
- if (disabledHourOptions && disabledHourOptions.indexOf(value.hour()) >= 0 || disabledMinuteOptions && disabledMinuteOptions.indexOf(value.minute()) >= 0 || disabledSecondOptions && disabledSecondOptions.indexOf(value.second()) >= 0) {
- this.setState({
- invalid: true
- });
- return;
- }
- if (originalValue) {
- if (originalValue.hour() !== value.hour() || originalValue.minute() !== value.minute() || originalValue.second() !== value.second()) {
- // keep other fields for rc-calendar
- var changedValue = originalValue.clone();
- changedValue.hour(value.hour());
- changedValue.minute(value.minute());
- changedValue.second(value.second());
- this.__emit('change', changedValue);
- }
- } else if (originalValue !== value) {
- this.__emit('change', value);
- }
- } else {
- this.__emit('change', null);
- }
- this.setState({
- invalid: false
- });
- },
- onKeyDown: function onKeyDown(e) {
- if (e.keyCode === 27) {
- this.__emit('esc');
- }
- this.__emit('keydown', e);
- },
- getProtoValue: function getProtoValue() {
- return this.value || this.defaultOpenValue;
- },
- getInput: function getInput() {
- var h = this.$createElement;
- var prefixCls = this.prefixCls,
- placeholder = this.placeholder,
- inputReadOnly = this.inputReadOnly,
- invalid = this.invalid,
- str = this.str;
- var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
- return h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- 'class': prefixCls + '-input ' + invalidClass,
- ref: 'input',
- on: {
- 'keydown': this.onKeyDown,
- 'input': this.onInputChange
- },
- domProps: {
- 'value': str
- },
- attrs: {
- placeholder: placeholder,
- readOnly: !!inputReadOnly
- }
- }, {
- directives: [{
- name: 'ant-input'
- }]
- }]));
- }
- },
- render: function render() {
- var h = arguments[0];
- var prefixCls = this.prefixCls;
- return h(
- 'div',
- { 'class': prefixCls + '-input-wrap' },
- [this.getInput()]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Header);
- /***/ }),
- /***/ "./components/vc-time-picker/Panel.jsx":
- /*!*********************************************!*\
- !*** ./components/vc-time-picker/Panel.jsx ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Header */ "./components/vc-time-picker/Header.jsx");
- /* harmony import */ var _Combobox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Combobox */ "./components/vc-time-picker/Combobox.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- function noop() {}
- function generateOptions(length, disabledOptions, hideDisabledOptions) {
- var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
- var arr = [];
- for (var value = 0; value < length; value += step) {
- if (!disabledOptions || disabledOptions.indexOf(value) < 0 || !hideDisabledOptions) {
- arr.push(value);
- }
- }
- return arr;
- }
- function toNearestValidTime(time, hourOptions, minuteOptions, secondOptions) {
- var hour = hourOptions.slice().sort(function (a, b) {
- return Math.abs(time.hour() - a) - Math.abs(time.hour() - b);
- })[0];
- var minute = minuteOptions.slice().sort(function (a, b) {
- return Math.abs(time.minute() - a) - Math.abs(time.minute() - b);
- })[0];
- var second = secondOptions.slice().sort(function (a, b) {
- return Math.abs(time.second() - a) - Math.abs(time.second() - b);
- })[0];
- return moment__WEBPACK_IMPORTED_MODULE_0___default()(hour + ':' + minute + ':' + second, 'HH:mm:ss');
- }
- var Panel = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-time-picker-panel'),
- defaultOpenValue: {
- type: Object,
- 'default': function _default() {
- return moment__WEBPACK_IMPORTED_MODULE_0___default()();
- }
- },
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
- disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
- disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
- disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
- hideDisabledOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- // onChange: PropTypes.func,
- // onEsc: PropTypes.func,
- allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- showHour: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- showMinute: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- showSecond: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- // onClear: PropTypes.func,
- use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
- hourStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- minuteStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- secondStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- addon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
- focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- // onKeydown: PropTypes.func,
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- },
- data: function data() {
- return {
- sValue: this.value,
- selectionRange: [],
- currentSelectPanel: ''
- };
- },
- watch: {
- value: function value(val) {
- this.setState({
- sValue: val
- });
- }
- },
- methods: {
- onChange: function onChange(newValue) {
- this.setState({ sValue: newValue });
- this.__emit('change', newValue);
- },
- onAmPmChange: function onAmPmChange(ampm) {
- this.__emit('amPmChange', ampm);
- },
- onCurrentSelectPanelChange: function onCurrentSelectPanelChange(currentSelectPanel) {
- this.setState({ currentSelectPanel: currentSelectPanel });
- },
- // https://github.com/ant-design/ant-design/issues/5829
- close: function close() {
- this.__emit('esc');
- },
- onEsc: function onEsc(e) {
- this.__emit('esc', e);
- },
- disabledHours2: function disabledHours2() {
- var use12Hours = this.use12Hours,
- disabledHours = this.disabledHours;
- var disabledOptions = disabledHours();
- if (use12Hours && Array.isArray(disabledOptions)) {
- if (this.isAM()) {
- disabledOptions = disabledOptions.filter(function (h) {
- return h < 12;
- }).map(function (h) {
- return h === 0 ? 12 : h;
- });
- } else {
- disabledOptions = disabledOptions.map(function (h) {
- return h === 12 ? 12 : h - 12;
- });
- }
- }
- return disabledOptions;
- },
- isAM: function isAM() {
- var value = this.sValue || this.defaultOpenValue;
- return value.hour() >= 0 && value.hour() < 12;
- }
- },
- render: function render() {
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- placeholder = this.placeholder,
- disabledMinutes = this.disabledMinutes,
- addon = this.addon,
- disabledSeconds = this.disabledSeconds,
- hideDisabledOptions = this.hideDisabledOptions,
- showHour = this.showHour,
- showMinute = this.showMinute,
- showSecond = this.showSecond,
- format = this.format,
- defaultOpenValue = this.defaultOpenValue,
- clearText = this.clearText,
- use12Hours = this.use12Hours,
- focusOnOpen = this.focusOnOpen,
- hourStep = this.hourStep,
- minuteStep = this.minuteStep,
- secondStep = this.secondStep,
- inputReadOnly = this.inputReadOnly,
- sValue = this.sValue,
- currentSelectPanel = this.currentSelectPanel;
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'clearIcon');
- var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
- _getListeners$esc = _getListeners.esc,
- esc = _getListeners$esc === undefined ? noop : _getListeners$esc,
- _getListeners$keydown = _getListeners.keydown,
- keydown = _getListeners$keydown === undefined ? noop : _getListeners$keydown;
- var disabledHourOptions = this.disabledHours2();
- var disabledMinuteOptions = disabledMinutes(sValue ? sValue.hour() : null);
- var disabledSecondOptions = disabledSeconds(sValue ? sValue.hour() : null, sValue ? sValue.minute() : null);
- var hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions, hourStep);
- var minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions, minuteStep);
- var secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions, secondStep);
- var validDefaultOpenValue = toNearestValidTime(defaultOpenValue, hourOptions, minuteOptions, secondOptions);
- return h(
- 'div',
- { 'class': prefixCls + '-inner' },
- [h(_Header__WEBPACK_IMPORTED_MODULE_3__["default"], {
- attrs: {
- clearText: clearText,
- prefixCls: prefixCls,
- defaultOpenValue: validDefaultOpenValue,
- value: sValue,
- currentSelectPanel: currentSelectPanel,
- format: format,
- placeholder: placeholder,
- hourOptions: hourOptions,
- minuteOptions: minuteOptions,
- secondOptions: secondOptions,
- disabledHours: this.disabledHours2,
- disabledMinutes: disabledMinutes,
- disabledSeconds: disabledSeconds,
- focusOnOpen: focusOnOpen,
- inputReadOnly: inputReadOnly,
- clearIcon: clearIcon
- },
- on: {
- 'esc': esc,
- 'change': this.onChange,
- 'keydown': keydown
- }
- }), h(_Combobox__WEBPACK_IMPORTED_MODULE_4__["default"], {
- attrs: {
- prefixCls: prefixCls,
- value: sValue,
- defaultOpenValue: validDefaultOpenValue,
- format: format,
- showHour: showHour,
- showMinute: showMinute,
- showSecond: showSecond,
- hourOptions: hourOptions,
- minuteOptions: minuteOptions,
- secondOptions: secondOptions,
- disabledHours: this.disabledHours2,
- disabledMinutes: disabledMinutes,
- disabledSeconds: disabledSeconds,
- use12Hours: use12Hours,
- isAM: this.isAM()
- },
- on: {
- 'change': this.onChange,
- 'amPmChange': this.onAmPmChange,
- 'currentSelectPanelChange': this.onCurrentSelectPanelChange,
- 'esc': this.onEsc
- }
- }), addon(this)]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Panel);
- /***/ }),
- /***/ "./components/vc-time-picker/Select.jsx":
- /*!**********************************************!*\
- !*** ./components/vc-time-picker/Select.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_4__);
- function noop() {}
- var scrollTo = function scrollTo(element, to, duration) {
- // jump to target if duration zero
- if (duration <= 0) {
- raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
- element.scrollTop = to;
- });
- return;
- }
- var difference = to - element.scrollTop;
- var perTick = difference / duration * 10;
- raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
- element.scrollTop += perTick;
- if (element.scrollTop === to) return;
- scrollTo(element, to, duration - 10);
- });
- };
- var Select = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- options: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
- selectedIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
- // onSelect: PropTypes.func,
- // onMouseEnter: PropTypes.func,
- },
- data: function data() {
- return {
- active: false
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- // jump to selected option
- _this.scrollToSelected(0);
- });
- },
- watch: {
- selectedIndex: function selectedIndex() {
- var _this2 = this;
- this.$nextTick(function () {
- // smooth scroll to selected option
- _this2.scrollToSelected(120);
- });
- }
- },
- methods: {
- onSelect: function onSelect(value) {
- var type = this.type;
- this.__emit('select', type, value);
- },
- onEsc: function onEsc(e) {
- this.__emit('esc', e);
- },
- getOptions: function getOptions() {
- var _this3 = this;
- var h = this.$createElement;
- var options = this.options,
- selectedIndex = this.selectedIndex,
- prefixCls = this.prefixCls;
- return options.map(function (item, index) {
- var _classnames;
- var cls = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classnames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, prefixCls + '-select-option-selected', selectedIndex === index), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, prefixCls + '-select-option-disabled', item.disabled), _classnames));
- var onClick = item.disabled ? noop : function () {
- _this3.onSelect(item.value);
- };
- var onKeyDown = function onKeyDown(e) {
- if (e.keyCode === 13) onClick();else if (e.keyCode === 27) _this3.onEsc();
- };
- return h(
- 'li',
- {
- attrs: {
- role: 'button',
- disabled: item.disabled,
- tabIndex: '0'
- },
- on: {
- 'click': onClick,
- 'keydown': onKeyDown
- },
- 'class': cls,
- key: index },
- [item.value]
- );
- });
- },
- handleMouseEnter: function handleMouseEnter(e) {
- this.setState({ active: true });
- this.__emit('mouseenter', e);
- },
- handleMouseLeave: function handleMouseLeave() {
- this.setState({ active: false });
- },
- scrollToSelected: function scrollToSelected(duration) {
- // move to selected item
- var select = this.$el;
- var list = this.$refs.list;
- if (!list) {
- return;
- }
- var index = this.selectedIndex;
- if (index < 0) {
- index = 0;
- }
- var topOption = list.children[index];
- var to = topOption.offsetTop;
- scrollTo(select, to, duration);
- }
- },
- render: function render() {
- var _cls;
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- options = this.options,
- active = this.active;
- if (options.length === 0) {
- return null;
- }
- var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-select', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-select-active', active), _cls);
- return h(
- 'div',
- { 'class': cls, on: {
- 'mouseenter': this.handleMouseEnter,
- 'mouseleave': this.handleMouseLeave
- }
- },
- [h(
- 'ul',
- { ref: 'list' },
- [this.getOptions()]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Select);
- /***/ }),
- /***/ "./components/vc-time-picker/TimePicker.jsx":
- /*!**************************************************!*\
- !*** ./components/vc-time-picker/TimePicker.jsx ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
- /* harmony import */ var _Panel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Panel */ "./components/vc-time-picker/Panel.jsx");
- /* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./placements */ "./components/vc-time-picker/placements.js");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'VcTimePicker',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])({
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- defaultOpenValue: {
- type: Object,
- 'default': function _default() {
- return moment__WEBPACK_IMPORTED_MODULE_1___default()();
- }
- },
- inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- format: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- showHour: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- showMinute: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- showSecond: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- hideDisabledOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- // onChange: PropTypes.func,
- // onAmPmChange: PropTypes.func,
- // onOpen: PropTypes.func,
- // onClose: PropTypes.func,
- // onFocus: PropTypes.func,
- // onBlur: PropTypes.func,
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- autoComplete: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- hourStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- minuteStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- secondStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- // onKeyDown: PropTypes.func,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- addon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func
- }, {
- clearText: 'clear',
- prefixCls: 'rc-time-picker',
- defaultOpen: false,
- inputReadOnly: false,
- popupClassName: '',
- popupStyle: {},
- align: {},
- allowEmpty: true,
- showHour: true,
- showMinute: true,
- showSecond: true,
- disabledHours: noop,
- disabledMinutes: noop,
- disabledSeconds: noop,
- hideDisabledOptions: false,
- placement: 'bottomLeft',
- use12Hours: false,
- focusOnOpen: false
- }),
- data: function data() {
- var defaultOpen = this.defaultOpen,
- defaultValue = this.defaultValue,
- _open = this.open,
- open = _open === undefined ? defaultOpen : _open,
- _value = this.value,
- value = _value === undefined ? defaultValue : _value;
- return {
- sOpen: open,
- sValue: value
- };
- },
- watch: {
- value: function value(val) {
- this.setState({
- sValue: val
- });
- },
- open: function open(val) {
- if (val !== undefined) {
- this.setState({
- sOpen: val
- });
- }
- }
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.autoFocus) {
- _this.focus();
- }
- });
- },
- methods: {
- onPanelChange: function onPanelChange(value) {
- this.setValue(value);
- },
- onAmPmChange: function onAmPmChange(ampm) {
- this.__emit('amPmChange', ampm);
- },
- onClear: function onClear(event) {
- event.stopPropagation();
- this.setValue(null);
- this.setOpen(false);
- },
- onVisibleChange: function onVisibleChange(open) {
- this.setOpen(open);
- },
- onEsc: function onEsc() {
- this.setOpen(false);
- this.focus();
- },
- onKeyDown: function onKeyDown(e) {
- if (e.keyCode === 40) {
- this.setOpen(true);
- }
- },
- onKeyDown2: function onKeyDown2(e) {
- this.__emit('keydown', e);
- },
- setValue: function setValue(value) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'value')) {
- this.setState({
- sValue: value
- });
- }
- this.__emit('change', value);
- },
- getFormat: function getFormat() {
- var format = this.format,
- showHour = this.showHour,
- showMinute = this.showMinute,
- showSecond = this.showSecond,
- use12Hours = this.use12Hours;
- if (format) {
- return format;
- }
- if (use12Hours) {
- var fmtString = [showHour ? 'h' : '', showMinute ? 'mm' : '', showSecond ? 'ss' : ''].filter(function (item) {
- return !!item;
- }).join(':');
- return fmtString.concat(' a');
- }
- return [showHour ? 'HH' : '', showMinute ? 'mm' : '', showSecond ? 'ss' : ''].filter(function (item) {
- return !!item;
- }).join(':');
- },
- getPanelElement: function getPanelElement() {
- var h = this.$createElement;
- var prefixCls = this.prefixCls,
- placeholder = this.placeholder,
- disabledHours = this.disabledHours,
- addon = this.addon,
- disabledMinutes = this.disabledMinutes,
- disabledSeconds = this.disabledSeconds,
- hideDisabledOptions = this.hideDisabledOptions,
- inputReadOnly = this.inputReadOnly,
- showHour = this.showHour,
- showMinute = this.showMinute,
- showSecond = this.showSecond,
- defaultOpenValue = this.defaultOpenValue,
- clearText = this.clearText,
- use12Hours = this.use12Hours,
- focusOnOpen = this.focusOnOpen,
- onKeyDown2 = this.onKeyDown2,
- hourStep = this.hourStep,
- minuteStep = this.minuteStep,
- secondStep = this.secondStep,
- sValue = this.sValue;
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'clearIcon');
- return h(_Panel__WEBPACK_IMPORTED_MODULE_8__["default"], {
- attrs: {
- clearText: clearText,
- prefixCls: prefixCls + '-panel',
- value: sValue,
- inputReadOnly: inputReadOnly,
- defaultOpenValue: defaultOpenValue,
- showHour: showHour,
- showMinute: showMinute,
- showSecond: showSecond,
- format: this.getFormat(),
- placeholder: placeholder,
- disabledHours: disabledHours,
- disabledMinutes: disabledMinutes,
- disabledSeconds: disabledSeconds,
- hideDisabledOptions: hideDisabledOptions,
- use12Hours: use12Hours,
- hourStep: hourStep,
- minuteStep: minuteStep,
- secondStep: secondStep,
- focusOnOpen: focusOnOpen,
- clearIcon: clearIcon,
- addon: addon
- },
- ref: 'panel', on: {
- 'change': this.onPanelChange,
- 'amPmChange': this.onAmPmChange,
- 'esc': this.onEsc,
- 'keydown': onKeyDown2
- }
- });
- },
- getPopupClassName: function getPopupClassName() {
- var showHour = this.showHour,
- showMinute = this.showMinute,
- showSecond = this.showSecond,
- use12Hours = this.use12Hours,
- prefixCls = this.prefixCls,
- popupClassName = this.popupClassName;
- var selectColumnCount = 0;
- if (showHour) {
- selectColumnCount += 1;
- }
- if (showMinute) {
- selectColumnCount += 1;
- }
- if (showSecond) {
- selectColumnCount += 1;
- }
- if (use12Hours) {
- selectColumnCount += 1;
- }
- // Keep it for old compatibility
- return classnames__WEBPACK_IMPORTED_MODULE_2___default()(popupClassName, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-panel-narrow', (!showHour || !showMinute || !showSecond) && !use12Hours), prefixCls + '-panel-column-' + selectColumnCount);
- },
- setOpen: function setOpen(open) {
- if (this.sOpen !== open) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'open')) {
- this.setState({ sOpen: open });
- }
- if (open) {
- this.__emit('open', { open: open });
- } else {
- this.__emit('close', { open: open });
- }
- }
- },
- focus: function focus() {
- this.$refs.picker.focus();
- },
- blur: function blur() {
- this.$refs.picker.blur();
- },
- onFocus: function onFocus(e) {
- this.__emit('focus', e);
- },
- onBlur: function onBlur(e) {
- this.__emit('blur', e);
- },
- renderClearButton: function renderClearButton() {
- var _this2 = this;
- var h = this.$createElement;
- var sValue = this.sValue;
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- allowEmpty = _$props.allowEmpty,
- clearText = _$props.clearText,
- disabled = _$props.disabled;
- if (!allowEmpty || !sValue || disabled) {
- return null;
- }
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'clearIcon');
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["isValidElement"])(clearIcon)) {
- var _ref = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])(clearIcon) || {},
- _click = _ref.click;
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(clearIcon, {
- on: {
- click: function click() {
- if (_click) _click.apply(undefined, arguments);
- _this2.onClear.apply(_this2, arguments);
- }
- }
- });
- }
- return h(
- 'a',
- {
- attrs: {
- role: 'button',
- title: clearText,
- tabIndex: 0
- },
- 'class': prefixCls + '-clear', on: {
- 'click': this.onClear
- }
- },
- [clearIcon || h('i', { 'class': prefixCls + '-clear-icon' })]
- );
- }
- },
- render: function render() {
- var h = arguments[0];
- var prefixCls = this.prefixCls,
- placeholder = this.placeholder,
- placement = this.placement,
- align = this.align,
- id = this.id,
- disabled = this.disabled,
- transitionName = this.transitionName,
- getPopupContainer = this.getPopupContainer,
- name = this.name,
- autoComplete = this.autoComplete,
- autoFocus = this.autoFocus,
- inputReadOnly = this.inputReadOnly,
- sOpen = this.sOpen,
- sValue = this.sValue,
- onFocus = this.onFocus,
- onBlur = this.onBlur,
- popupStyle = this.popupStyle;
- var popupClassName = this.getPopupClassName();
- var inputIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'inputIcon');
- return h(
- _vc_trigger__WEBPACK_IMPORTED_MODULE_7__["default"],
- {
- attrs: {
- prefixCls: prefixCls + '-panel',
- popupClassName: popupClassName,
- popupStyle: popupStyle,
- popupAlign: align,
- builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_9__["default"],
- popupPlacement: placement,
- action: disabled ? [] : ['click'],
- destroyPopupOnHide: true,
- getPopupContainer: getPopupContainer,
- popupTransitionName: transitionName,
- popupVisible: sOpen
- },
- on: {
- 'popupVisibleChange': this.onVisibleChange
- }
- },
- [h(
- 'template',
- { slot: 'popup' },
- [this.getPanelElement()]
- ), h(
- 'span',
- { 'class': '' + prefixCls },
- [h('input', {
- 'class': prefixCls + '-input',
- ref: 'picker',
- attrs: { type: 'text',
- placeholder: placeholder,
- name: name,
- disabled: disabled,
- autoComplete: autoComplete,
- autoFocus: autoFocus,
- readOnly: !!inputReadOnly,
- id: id
- },
- on: {
- 'keydown': this.onKeyDown,
- 'focus': onFocus,
- 'blur': onBlur
- },
- domProps: {
- 'value': sValue && sValue.format(this.getFormat()) || ''
- }
- }), inputIcon || h('span', { 'class': prefixCls + '-icon' }), this.renderClearButton()]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-time-picker/index.js":
- /*!********************************************!*\
- !*** ./components/vc-time-picker/index.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _TimePicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TimePicker */ "./components/vc-time-picker/TimePicker.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _TimePicker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
- // based on rc-time-picker 3.7.3
- /***/ }),
- /***/ "./components/vc-time-picker/placements.js":
- /*!*************************************************!*\
- !*** ./components/vc-time-picker/placements.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var autoAdjustOverflow = {
- adjustX: 1,
- adjustY: 1
- };
- var targetOffset = [0, 0];
- var placements = {
- bottomLeft: {
- points: ['tl', 'tl'],
- overflow: autoAdjustOverflow,
- offset: [0, -3],
- targetOffset: targetOffset
- },
- bottomRight: {
- points: ['tr', 'tr'],
- overflow: autoAdjustOverflow,
- offset: [0, -3],
- targetOffset: targetOffset
- },
- topRight: {
- points: ['br', 'br'],
- overflow: autoAdjustOverflow,
- offset: [0, 3],
- targetOffset: targetOffset
- },
- topLeft: {
- points: ['bl', 'bl'],
- overflow: autoAdjustOverflow,
- offset: [0, 3],
- targetOffset: targetOffset
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (placements);
- /***/ }),
- /***/ "./components/vc-tooltip/Content.jsx":
- /*!*******************************************!*\
- !*** ./components/vc-tooltip/Content.jsx ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
- overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
- trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
- },
- updated: function updated() {
- var trigger = this.trigger;
- if (trigger) {
- trigger.forcePopupAlign();
- }
- },
- render: function render() {
- var h = arguments[0];
- var overlay = this.overlay,
- prefixCls = this.prefixCls;
- return h(
- 'div',
- { 'class': prefixCls + '-inner', attrs: { role: 'tooltip' }
- },
- [typeof overlay === 'function' ? overlay() : overlay]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-tooltip/Tooltip.jsx":
- /*!*******************************************!*\
- !*** ./components/vc-tooltip/Tooltip.jsx ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
- /* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placements */ "./components/vc-tooltip/placements.js");
- /* harmony import */ var _Content__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Content */ "./components/vc-tooltip/Content.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any.def(['hover']),
- defaultVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('right'),
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]),
- animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- afterVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {}),
- overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-tooltip'),
- mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0),
- mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0.1),
- getTooltipContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- destroyTooltipOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(function () {
- return {};
- }),
- arrowContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any.def(null),
- tipId: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object
- },
- methods: {
- getPopupElement: function getPopupElement() {
- var h = this.$createElement;
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- tipId = _$props.tipId;
- return [h(
- 'div',
- { 'class': prefixCls + '-arrow', key: 'arrow' },
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'arrowContent')]
- ), h(_Content__WEBPACK_IMPORTED_MODULE_5__["default"], {
- key: 'content',
- attrs: { trigger: this.$refs.trigger,
- prefixCls: prefixCls,
- id: tipId,
- overlay: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'overlay')
- }
- })];
- },
- getPopupDomNode: function getPopupDomNode() {
- return this.$refs.trigger.getPopupDomNode();
- }
- },
- render: function render(h) {
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
- overlayClassName = _getOptionProps.overlayClassName,
- trigger = _getOptionProps.trigger,
- mouseEnterDelay = _getOptionProps.mouseEnterDelay,
- mouseLeaveDelay = _getOptionProps.mouseLeaveDelay,
- overlayStyle = _getOptionProps.overlayStyle,
- prefixCls = _getOptionProps.prefixCls,
- afterVisibleChange = _getOptionProps.afterVisibleChange,
- transitionName = _getOptionProps.transitionName,
- animation = _getOptionProps.animation,
- placement = _getOptionProps.placement,
- align = _getOptionProps.align,
- destroyTooltipOnHide = _getOptionProps.destroyTooltipOnHide,
- defaultVisible = _getOptionProps.defaultVisible,
- getTooltipContainer = _getOptionProps.getTooltipContainer,
- restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['overlayClassName', 'trigger', 'mouseEnterDelay', 'mouseLeaveDelay', 'overlayStyle', 'prefixCls', 'afterVisibleChange', 'transitionName', 'animation', 'placement', 'align', 'destroyTooltipOnHide', 'defaultVisible', 'getTooltipContainer']);
- var extraProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps);
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'visible')) {
- extraProps.popupVisible = this.$props.visible;
- }
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this);
- var triggerProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- popupClassName: overlayClassName,
- prefixCls: prefixCls,
- action: trigger,
- builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_4__["placements"],
- popupPlacement: placement,
- popupAlign: align,
- getPopupContainer: getTooltipContainer,
- afterPopupVisibleChange: afterVisibleChange,
- popupTransitionName: transitionName,
- popupAnimation: animation,
- defaultPopupVisible: defaultVisible,
- destroyPopupOnHide: destroyTooltipOnHide,
- mouseLeaveDelay: mouseLeaveDelay,
- popupStyle: overlayStyle,
- mouseEnterDelay: mouseEnterDelay
- }, extraProps),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
- popupVisibleChange: listeners.visibleChange || noop,
- popupAlign: listeners.popupAlign || noop
- }),
- ref: 'trigger'
- };
- return h(
- _vc_trigger__WEBPACK_IMPORTED_MODULE_3__["default"],
- triggerProps,
- [h(
- 'template',
- { slot: 'popup' },
- [this.getPopupElement(h)]
- ), this.$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-tooltip/index.js":
- /*!****************************************!*\
- !*** ./components/vc-tooltip/index.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tooltip */ "./components/vc-tooltip/Tooltip.jsx");
- // based on rc-tooltip 3.7.3
- /* harmony default export */ __webpack_exports__["default"] = (_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-tooltip/placements.js":
- /*!*********************************************!*\
- !*** ./components/vc-tooltip/placements.js ***!
- \*********************************************/
- /*! exports provided: placements, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
- var autoAdjustOverflow = {
- adjustX: 1,
- adjustY: 1
- };
- var targetOffset = [0, 0];
- var placements = {
- left: {
- points: ['cr', 'cl'],
- overflow: autoAdjustOverflow,
- offset: [-4, 0],
- targetOffset: targetOffset
- },
- right: {
- points: ['cl', 'cr'],
- overflow: autoAdjustOverflow,
- offset: [4, 0],
- targetOffset: targetOffset
- },
- top: {
- points: ['bc', 'tc'],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset: targetOffset
- },
- bottom: {
- points: ['tc', 'bc'],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset: targetOffset
- },
- topLeft: {
- points: ['bl', 'tl'],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset: targetOffset
- },
- leftTop: {
- points: ['tr', 'tl'],
- overflow: autoAdjustOverflow,
- offset: [-4, 0],
- targetOffset: targetOffset
- },
- topRight: {
- points: ['br', 'tr'],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset: targetOffset
- },
- rightTop: {
- points: ['tl', 'tr'],
- overflow: autoAdjustOverflow,
- offset: [4, 0],
- targetOffset: targetOffset
- },
- bottomRight: {
- points: ['tr', 'br'],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset: targetOffset
- },
- rightBottom: {
- points: ['bl', 'br'],
- overflow: autoAdjustOverflow,
- offset: [4, 0],
- targetOffset: targetOffset
- },
- bottomLeft: {
- points: ['tl', 'bl'],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset: targetOffset
- },
- leftBottom: {
- points: ['br', 'bl'],
- overflow: autoAdjustOverflow,
- offset: [-4, 0],
- targetOffset: targetOffset
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (placements);
- /***/ }),
- /***/ "./components/vc-tree-select/index.js":
- /*!********************************************!*\
- !*** ./components/vc-tree-select/index.js ***!
- \********************************************/
- /*! exports provided: default, TreeNode, SHOW_ALL, SHOW_PARENT, SHOW_CHILD */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src */ "./components/vc-tree-select/src/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["TreeNode"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_ALL", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["SHOW_ALL"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_PARENT", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["SHOW_PARENT"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_CHILD", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["SHOW_CHILD"]; });
- // export this package's api
- // base 2.9.3
- vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
- /* harmony default export */ __webpack_exports__["default"] = (_src__WEBPACK_IMPORTED_MODULE_1__["default"]);
- /***/ }),
- /***/ "./components/vc-tree-select/src/Base/BasePopup.jsx":
- /*!**********************************************************!*\
- !*** ./components/vc-tree-select/src/Base/BasePopup.jsx ***!
- \**********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../vc-tree */ "./components/vc-tree/index.js");
- /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_vc_tree__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
- // export const popupContextTypes = {
- // onPopupKeyDown: PropTypes.func.isRequired,
- // onTreeNodeSelect: PropTypes.func.isRequired,
- // onTreeNodeCheck: PropTypes.func.isRequired,
- // }
- function getDerivedState(nextProps, prevState) {
- var _ref = prevState || {},
- _ref$_prevProps = _ref._prevProps,
- prevProps = _ref$_prevProps === undefined ? {} : _ref$_prevProps,
- loadedKeys = _ref._loadedKeys,
- expandedKeyList = _ref._expandedKeyList,
- cachedExpandedKeyList = _ref._cachedExpandedKeyList;
- var valueList = nextProps.valueList,
- valueEntities = nextProps.valueEntities,
- keyEntities = nextProps.keyEntities,
- treeExpandedKeys = nextProps.treeExpandedKeys,
- filteredTreeNodes = nextProps.filteredTreeNodes,
- upperSearchValue = nextProps.upperSearchValue;
- var newState = {
- _prevProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nextProps)
- };
- // Check value update
- if (valueList !== prevProps.valueList) {
- newState._keyList = valueList.map(function (_ref2) {
- var value = _ref2.value;
- return valueEntities[value];
- }).filter(function (entity) {
- return entity;
- }).map(function (_ref3) {
- var key = _ref3.key;
- return key;
- });
- }
- // Show all when tree is in filter mode
- if (!treeExpandedKeys && filteredTreeNodes && filteredTreeNodes.length && filteredTreeNodes !== prevProps.filteredTreeNodes) {
- newState._expandedKeyList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keyEntities.keys()));
- }
- // Cache `expandedKeyList` when filter set
- if (upperSearchValue && !prevProps.upperSearchValue) {
- newState._cachedExpandedKeyList = expandedKeyList;
- } else if (!upperSearchValue && prevProps.upperSearchValue && !treeExpandedKeys) {
- newState._expandedKeyList = cachedExpandedKeyList || [];
- newState._cachedExpandedKeyList = [];
- }
- // Use expandedKeys if provided
- if (prevProps.treeExpandedKeys !== treeExpandedKeys) {
- newState._expandedKeyList = treeExpandedKeys;
- }
- // Clean loadedKeys if key not exist in keyEntities anymore
- if (nextProps.loadData) {
- newState._loadedKeys = loadedKeys.filter(function (key) {
- return keyEntities.has(key);
- });
- }
- return newState;
- }
- var BasePopup = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
- name: 'BasePopup',
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- upperSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- valueList: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- searchHalfCheckedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- valueEntities: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- keyEntities: Map,
- treeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- treeLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- treeNodeFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- treeCheckable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- treeCheckStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- treeDefaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- treeDefaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- treeExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- // onTreeExpand: PropTypes.func,
- searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- treeNodes: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- filteredTreeNodes: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- // HOC
- renderSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- // onTreeExpanded: PropTypes.func,
- __propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
- },
- inject: {
- vcTreeSelect: { 'default': function _default() {
- return {};
- } }
- },
- watch: {
- __propsSymbol__: function __propsSymbol__() {
- var state = getDerivedState(this.$props, this.$data);
- this.setState(state);
- }
- },
- data: function data() {
- this.treeRef = Object(_util__WEBPACK_IMPORTED_MODULE_6__["createRef"])();
- warning__WEBPACK_IMPORTED_MODULE_2___default()(this.$props.__propsSymbol__, 'must pass __propsSymbol__');
- var _$props = this.$props,
- treeDefaultExpandAll = _$props.treeDefaultExpandAll,
- treeDefaultExpandedKeys = _$props.treeDefaultExpandedKeys,
- keyEntities = _$props.keyEntities;
- // TODO: make `expandedKeyList` control
- var expandedKeyList = treeDefaultExpandedKeys;
- if (treeDefaultExpandAll) {
- expandedKeyList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keyEntities.keys()));
- }
- var state = {
- _keyList: [],
- _expandedKeyList: expandedKeyList,
- // Cache `expandedKeyList` when tree is in filter. This is used in `getDerivedState`
- _cachedExpandedKeyList: [],
- _loadedKeys: [],
- _prevProps: {}
- };
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, state, getDerivedState(this.$props, state));
- },
- methods: {
- onTreeExpand: function onTreeExpand(expandedKeyList) {
- var _this = this;
- var treeExpandedKeys = this.$props.treeExpandedKeys;
- // Set uncontrolled state
- if (!treeExpandedKeys) {
- this.setState({ _expandedKeyList: expandedKeyList }, function () {
- _this.__emit('treeExpanded');
- });
- }
- this.__emit('update:treeExpandedKeys', expandedKeyList);
- this.__emit('treeExpand', expandedKeyList);
- },
- onLoad: function onLoad(loadedKeys) {
- this.setState({ _loadedKeys: loadedKeys });
- },
- getTree: function getTree() {
- return this.treeRef.current;
- },
- /**
- * Not pass `loadData` when searching. To avoid loop ajax call makes browser crash.
- */
- getLoadData: function getLoadData() {
- var _$props2 = this.$props,
- loadData = _$props2.loadData,
- upperSearchValue = _$props2.upperSearchValue;
- if (upperSearchValue) return null;
- return loadData;
- },
- /**
- * This method pass to Tree component which is used for add filtered class
- * in TreeNode > li
- */
- filterTreeNode: function filterTreeNode(treeNode) {
- var _$props3 = this.$props,
- upperSearchValue = _$props3.upperSearchValue,
- treeNodeFilterProp = _$props3.treeNodeFilterProp;
- var filterVal = treeNode[treeNodeFilterProp];
- if (typeof filterVal === 'string') {
- return upperSearchValue && filterVal.toUpperCase().indexOf(upperSearchValue) !== -1;
- }
- return false;
- },
- renderNotFound: function renderNotFound() {
- var h = this.$createElement;
- var _$props4 = this.$props,
- prefixCls = _$props4.prefixCls,
- notFoundContent = _$props4.notFoundContent;
- return h(
- 'span',
- { 'class': prefixCls + '-not-found' },
- [notFoundContent]
- );
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$data = this.$data,
- keyList = _$data._keyList,
- expandedKeyList = _$data._expandedKeyList,
- loadedKeys = _$data._loadedKeys;
- var _$props5 = this.$props,
- prefixCls = _$props5.prefixCls,
- treeNodes = _$props5.treeNodes,
- filteredTreeNodes = _$props5.filteredTreeNodes,
- treeIcon = _$props5.treeIcon,
- treeLine = _$props5.treeLine,
- treeCheckable = _$props5.treeCheckable,
- treeCheckStrictly = _$props5.treeCheckStrictly,
- multiple = _$props5.multiple,
- ariaId = _$props5.ariaId,
- renderSearch = _$props5.renderSearch,
- switcherIcon = _$props5.switcherIcon,
- searchHalfCheckedKeys = _$props5.searchHalfCheckedKeys;
- var _vcTreeSelect = this.vcTreeSelect,
- onPopupKeyDown = _vcTreeSelect.onPopupKeyDown,
- onTreeNodeSelect = _vcTreeSelect.onTreeNodeSelect,
- onTreeNodeCheck = _vcTreeSelect.onTreeNodeCheck;
- var loadData = this.getLoadData();
- var treeProps = {};
- if (treeCheckable) {
- treeProps.checkedKeys = keyList;
- } else {
- treeProps.selectedKeys = keyList;
- }
- var $notFound = void 0;
- var $treeNodes = void 0;
- if (filteredTreeNodes) {
- if (filteredTreeNodes.length) {
- treeProps.checkStrictly = true;
- $treeNodes = filteredTreeNodes;
- // Fill halfCheckedKeys
- if (treeCheckable && !treeCheckStrictly) {
- treeProps.checkedKeys = {
- checked: keyList,
- halfChecked: searchHalfCheckedKeys
- };
- }
- } else {
- $notFound = this.renderNotFound();
- }
- } else if (!treeNodes || !treeNodes.length) {
- $notFound = this.renderNotFound();
- } else {
- $treeNodes = treeNodes;
- }
- var $tree = void 0;
- if ($notFound) {
- $tree = $notFound;
- } else {
- var treeAllProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
- prefixCls: prefixCls + '-tree',
- showIcon: treeIcon,
- showLine: treeLine,
- selectable: !treeCheckable,
- checkable: treeCheckable,
- checkStrictly: treeCheckStrictly,
- multiple: multiple,
- loadData: loadData,
- loadedKeys: loadedKeys,
- expandedKeys: expandedKeyList,
- filterTreeNode: this.filterTreeNode,
- switcherIcon: switcherIcon
- }, treeProps, {
- __propsSymbol__: Symbol(),
- children: $treeNodes
- }),
- on: {
- select: onTreeNodeSelect,
- check: onTreeNodeCheck,
- expand: this.onTreeExpand,
- load: this.onLoad
- },
- directives: [{
- name: 'ant-ref',
- value: this.treeRef
- }]
- };
- $tree = h(_vc_tree__WEBPACK_IMPORTED_MODULE_4__["Tree"], treeAllProps);
- }
- return h(
- 'div',
- {
- attrs: { role: 'listbox', id: ariaId, tabIndex: -1 },
- on: {
- 'keydown': onPopupKeyDown
- }
- },
- [renderSearch ? renderSearch() : null, $tree]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (BasePopup);
- /***/ }),
- /***/ "./components/vc-tree-select/src/Base/BaseSelector.jsx":
- /*!*************************************************************!*\
- !*** ./components/vc-tree-select/src/Base/BaseSelector.jsx ***!
- \*************************************************************/
- /*! exports provided: selectorPropTypes, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectorPropTypes", function() { return selectorPropTypes; });
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /**
- * Input Box is in different position for different mode.
- * This not the same design as `Select` cause it's followed by antd 0.x `Select`.
- * We will not follow the new design immediately since antd 3.x is already released.
- *
- * So this file named as Selector to avoid confuse.
- */
- var selectorPropTypes = function selectorPropTypes() {
- return {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- className: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- selectorValueList: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
- allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- // onClick: PropTypes.func,
- // onBlur: PropTypes.func,
- // onFocus: PropTypes.func,
- removeSelected: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- // Pass by component
- ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
- inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
- focused: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
- };
- };
- function noop() {}
- /* harmony default export */ __webpack_exports__["default"] = (function (modeName) {
- var BaseSelector = {
- name: 'BaseSelector',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, selectorPropTypes(), {
- // Pass by HOC
- renderSelection: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.isRequired,
- renderPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number
- }), {
- tabIndex: 0
- }),
- inject: {
- vcTreeSelect: { 'default': function _default() {
- return {};
- } }
- },
- created: function created() {
- this.domRef = Object(_util__WEBPACK_IMPORTED_MODULE_3__["createRef"])();
- },
- methods: {
- onFocus: function onFocus(e) {
- var focused = this.$props.focused;
- var onSelectorFocus = this.vcTreeSelect.onSelectorFocus;
- if (!focused) {
- onSelectorFocus();
- }
- this.__emit('focus', e);
- },
- onBlur: function onBlur(e) {
- var onSelectorBlur = this.vcTreeSelect.onSelectorBlur;
- // TODO: Not trigger when is inner component get focused
- onSelectorBlur();
- this.__emit('blur', e);
- },
- focus: function focus() {
- this.domRef.current.focus();
- },
- blur: function blur() {
- this.domRef.current.blur();
- },
- renderClear: function renderClear() {
- var h = this.$createElement;
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- allowClear = _$props.allowClear,
- selectorValueList = _$props.selectorValueList;
- var onSelectorClear = this.vcTreeSelect.onSelectorClear;
- if (!allowClear || !selectorValueList.length || !selectorValueList[0].value) {
- return null;
- }
- var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'clearIcon');
- return h(
- 'span',
- { key: 'clear', 'class': prefixCls + '-selection__clear', on: {
- 'click': onSelectorClear
- }
- },
- [clearIcon]
- );
- },
- renderArrow: function renderArrow() {
- var h = this.$createElement;
- var _$props2 = this.$props,
- prefixCls = _$props2.prefixCls,
- showArrow = _$props2.showArrow;
- if (!showArrow) {
- return null;
- }
- var inputIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'inputIcon');
- return h(
- 'span',
- { key: 'arrow', 'class': prefixCls + '-arrow', style: { outline: 'none' } },
- [inputIcon]
- );
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var _$props3 = this.$props,
- prefixCls = _$props3.prefixCls,
- className = _$props3.className,
- style = _$props3.style,
- open = _$props3.open,
- focused = _$props3.focused,
- disabled = _$props3.disabled,
- allowClear = _$props3.allowClear,
- ariaId = _$props3.ariaId,
- renderSelection = _$props3.renderSelection,
- renderPlaceholder = _$props3.renderPlaceholder,
- tabIndex = _$props3.tabIndex;
- var onSelectorKeyDown = this.vcTreeSelect.onSelectorKeyDown;
- var myTabIndex = tabIndex;
- if (disabled) {
- myTabIndex = null;
- }
- return h(
- 'span',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- style: style,
- on: {
- 'click': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this).click || noop
- },
- 'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-open', open), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-focused', open || focused), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-enabled', !disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-allow-clear', allowClear), _classNames))
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.domRef
- }]
- }, {
- attrs: {
- role: 'combobox',
- 'aria-expanded': open,
- 'aria-owns': open ? ariaId : undefined,
- 'aria-controls': open ? ariaId : undefined,
- 'aria-haspopup': 'listbox',
- 'aria-disabled': disabled,
- tabIndex: myTabIndex
- },
- on: {
- 'focus': this.onFocus,
- 'blur': this.onBlur,
- 'keydown': onSelectorKeyDown
- }
- }]),
- [h(
- 'span',
- {
- key: 'selection',
- 'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls + '-selection', prefixCls + '-selection--' + modeName)
- },
- [renderSelection(), this.renderClear(), this.renderArrow(), renderPlaceholder && renderPlaceholder()]
- )]
- );
- }
- };
- return BaseSelector;
- });
- /***/ }),
- /***/ "./components/vc-tree-select/src/Popup/MultiplePopup.jsx":
- /*!***************************************************************!*\
- !*** ./components/vc-tree-select/src/Popup/MultiplePopup.jsx ***!
- \***************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Base_BasePopup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Base/BasePopup */ "./components/vc-tree-select/src/Base/BasePopup.jsx");
- /* harmony default export */ __webpack_exports__["default"] = (_Base_BasePopup__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-tree-select/src/Popup/SinglePopup.jsx":
- /*!*************************************************************!*\
- !*** ./components/vc-tree-select/src/Popup/SinglePopup.jsx ***!
- \*************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _Base_BasePopup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Base/BasePopup */ "./components/vc-tree-select/src/Base/BasePopup.jsx");
- /* harmony import */ var _SearchInput__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../SearchInput */ "./components/vc-tree-select/src/SearchInput.jsx");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- var SinglePopup = {
- name: 'SinglePopup',
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _Base_BasePopup__WEBPACK_IMPORTED_MODULE_3__["default"].props, _SearchInput__WEBPACK_IMPORTED_MODULE_4__["default"].props, {
- searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
- }),
- created: function created() {
- this.inputRef = Object(_util__WEBPACK_IMPORTED_MODULE_5__["createRef"])();
- this.searchRef = Object(_util__WEBPACK_IMPORTED_MODULE_5__["createRef"])();
- this.popupRef = Object(_util__WEBPACK_IMPORTED_MODULE_5__["createRef"])();
- },
- methods: {
- onPlaceholderClick: function onPlaceholderClick() {
- this.inputRef.current.focus();
- },
- getTree: function getTree() {
- return this.popupRef.current && this.popupRef.current.getTree();
- },
- _renderPlaceholder: function _renderPlaceholder() {
- var h = this.$createElement;
- var _$props = this.$props,
- searchPlaceholder = _$props.searchPlaceholder,
- searchValue = _$props.searchValue,
- prefixCls = _$props.prefixCls;
- if (!searchPlaceholder) {
- return null;
- }
- return h(
- 'span',
- {
- style: {
- display: searchValue ? 'none' : 'block'
- },
- on: {
- 'click': this.onPlaceholderClick
- },
- 'class': prefixCls + '-search__field__placeholder'
- },
- [searchPlaceholder]
- );
- },
- _renderSearch: function _renderSearch() {
- var h = this.$createElement;
- var _$props2 = this.$props,
- showSearch = _$props2.showSearch,
- dropdownPrefixCls = _$props2.dropdownPrefixCls;
- if (!showSearch) {
- return null;
- }
- return h(
- 'span',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- 'class': dropdownPrefixCls + '-search'
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.searchRef
- }]
- }]),
- [h(_SearchInput__WEBPACK_IMPORTED_MODULE_4__["default"], {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, { renderPlaceholder: this._renderPlaceholder }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this),
- directives: [{
- name: 'ant-ref',
- value: this.inputRef
- }]
- })]
- );
- }
- },
- render: function render() {
- var h = arguments[0];
- return h(_Base_BasePopup__WEBPACK_IMPORTED_MODULE_3__["default"], {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, { renderSearch: this._renderSearch, __propsSymbol__: Symbol() }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this),
- directives: [{
- name: 'ant-ref',
- value: this.popupRef
- }]
- });
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (SinglePopup);
- /***/ }),
- /***/ "./components/vc-tree-select/src/SearchInput.jsx":
- /*!*******************************************************!*\
- !*** ./components/vc-tree-select/src/SearchInput.jsx ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./components/vc-tree-select/src/util.js");
- /**
- * Since search box is in different position with different mode.
- * - Single: in the popup box
- * - multiple: in the selector
- * Move the code as a SearchInput for easy management.
- */
- var SearchInput = {
- name: 'SearchInput',
- props: {
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- renderPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- needAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
- },
- inject: {
- vcTreeSelect: { 'default': function _default() {
- return {};
- } }
- },
- data: function data() {
- return {
- mirrorSearchValue: this.searchValue
- };
- },
- watch: {
- searchValue: function searchValue(val) {
- this.mirrorSearchValue = val;
- }
- },
- created: function created() {
- this.inputRef = Object(_util__WEBPACK_IMPORTED_MODULE_3__["createRef"])();
- this.mirrorInputRef = Object(_util__WEBPACK_IMPORTED_MODULE_3__["createRef"])();
- this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props);
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- var _$props = _this.$props,
- open = _$props.open,
- needAlign = _$props.needAlign;
- if (needAlign) {
- _this.alignInputWidth();
- }
- if (open) {
- _this.focus(true);
- }
- });
- },
- updated: function updated() {
- var _this2 = this;
- var _$props2 = this.$props,
- open = _$props2.open,
- searchValue = _$props2.searchValue,
- needAlign = _$props2.needAlign;
- var prevProps = this.prevProps;
- this.$nextTick(function () {
- if (open && prevProps.open !== open) {
- _this2.focus();
- }
- if (needAlign && searchValue !== prevProps.searchValue) {
- _this2.alignInputWidth();
- }
- _this2.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _this2.$props);
- });
- },
- methods: {
- /**
- * `scrollWidth` is not correct in IE, do the workaround.
- * ref: https://github.com/react-component/tree-select/issues/65
- * clientWidth 0 when mounted in vue. why?
- */
- alignInputWidth: function alignInputWidth() {
- this.inputRef.current.style.width = (this.mirrorInputRef.current.clientWidth || this.mirrorInputRef.current.offsetWidth) + 'px';
- },
- /**
- * Need additional timeout for focus cause parent dom is not ready when didMount trigger
- */
- focus: function focus(isDidMount) {
- var _this3 = this;
- if (this.inputRef.current) {
- if (isDidMount) {
- setTimeout(function () {
- _this3.inputRef.current.focus();
- }, 0);
- } else {
- // set it into else, Avoid scrolling when focus
- this.inputRef.current.focus();
- }
- }
- },
- blur: function blur() {
- if (this.inputRef.current) {
- this.inputRef.current.blur();
- }
- },
- handleInputChange: function handleInputChange(e) {
- var _e$target = e.target,
- value = _e$target.value,
- composing = _e$target.composing;
- var _searchValue = this.searchValue,
- searchValue = _searchValue === undefined ? '' : _searchValue;
- if (e.isComposing || composing || searchValue === value) {
- this.mirrorSearchValue = value;
- return;
- }
- this.vcTreeSelect.onSearchInputChange(e);
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$props3 = this.$props,
- searchValue = _$props3.searchValue,
- prefixCls = _$props3.prefixCls,
- disabled = _$props3.disabled,
- renderPlaceholder = _$props3.renderPlaceholder,
- open = _$props3.open,
- ariaId = _$props3.ariaId;
- var onSearchInputKeyDown = this.vcTreeSelect.onSearchInputKeyDown,
- handleInputChange = this.handleInputChange,
- mirrorSearchValue = this.mirrorSearchValue;
- return h(
- 'span',
- { 'class': prefixCls + '-search__field__wrap' },
- [h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- attrs: {
- type: 'text'
- }
- }, {
- directives: [{
- name: 'ant-ref',
- value: this.inputRef
- }, {
- name: 'ant-input'
- }]
- }, {
- on: {
- 'input': handleInputChange,
- 'keydown': onSearchInputKeyDown
- },
- domProps: {
- 'value': searchValue
- },
- attrs: {
- disabled: disabled,
- 'aria-label': 'filter select',
- 'aria-autocomplete': 'list',
- 'aria-controls': open ? ariaId : undefined,
- 'aria-multiline': 'false'
- },
- 'class': prefixCls + '-search__field' }])), h(
- 'span',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- directives: [{
- name: 'ant-ref',
- value: this.mirrorInputRef
- }]
- }, {
- 'class': prefixCls + '-search__field__mirror'
- }]),
- [mirrorSearchValue, '\xA0']
- ), renderPlaceholder && !mirrorSearchValue ? renderPlaceholder() : null]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (SearchInput);
- /***/ }),
- /***/ "./components/vc-tree-select/src/Select.jsx":
- /*!**************************************************!*\
- !*** ./components/vc-tree-select/src/Select.jsx ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
- /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
- /* harmony import */ var _SelectTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SelectTrigger */ "./components/vc-tree-select/src/SelectTrigger.jsx");
- /* harmony import */ var _Selector_SingleSelector__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Selector/SingleSelector */ "./components/vc-tree-select/src/Selector/SingleSelector.jsx");
- /* harmony import */ var _Selector_MultipleSelector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Selector/MultipleSelector */ "./components/vc-tree-select/src/Selector/MultipleSelector/index.jsx");
- /* harmony import */ var _Popup_SinglePopup__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Popup/SinglePopup */ "./components/vc-tree-select/src/Popup/SinglePopup.jsx");
- /* harmony import */ var _Popup_MultiplePopup__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Popup/MultiplePopup */ "./components/vc-tree-select/src/Popup/MultiplePopup.jsx");
- /* harmony import */ var _strategies__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./strategies */ "./components/vc-tree-select/src/strategies.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./util */ "./components/vc-tree-select/src/util.js");
- /* harmony import */ var _SelectNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./SelectNode */ "./components/vc-tree-select/src/SelectNode.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /**
- * ARIA: https://www.w3.org/TR/wai-aria/#combobox
- * Sample 1: https://www.w3.org/TR/2017/NOTE-wai-aria-practices-1.1-20171214/examples/combobox/aria1.1pattern/listbox-combo.html
- * Sample 2: https://www.w3.org/blog/wai-components-gallery/widget/combobox-with-aria-autocompleteinline/
- *
- * Tab logic:
- * Popup is close
- * 1. Focus input (mark component as focused)
- * 2. Press enter to show the popup
- * 3. If popup has input, focus it
- *
- * Popup is open
- * 1. press tab to close the popup
- * 2. Focus back to the selection input box
- * 3. Let the native tab going on
- *
- * TreeSelect use 2 design type.
- * In single mode, we should focus on the `span`
- * In multiple mode, we should focus on the `input`
- */
- function getWatch() {
- var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var watch = {};
- keys.forEach(function (k) {
- watch[k] = function () {
- this.needSyncKeys[k] = true;
- };
- });
- return watch;
- }
- var Select = {
- name: 'Select',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["initDefaultProps"])({
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- prefixAria: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- inputValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string, // [Legacy] Deprecated. Use `searchValue` instead.
- searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- autoClearSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any, // [Legacy] Confuse with placeholder
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
- maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func]),
- maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
- showCheckedStrategy: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOf([_strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_ALL"], _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_PARENT"], _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_CHILD"]]),
- dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
- dropdownVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func,
- dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
- treeDataSimpleMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object]),
- treeNodeFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- treeNodeLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- treeCheckable: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool]),
- // treeCheckable: PropTypes.any,
- treeCheckStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- treeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- treeLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- treeDefaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- treeDefaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
- treeExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
- loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func,
- filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool]),
- notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func,
- // onSearch: PropTypes.func,
- // onSelect: PropTypes.func,
- // onDeselect: PropTypes.func,
- // onChange: PropTypes.func,
- // onDropdownVisibleChange: PropTypes.func,
- // onTreeExpand: PropTypes.func,
- allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
- inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
- __propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any
- }, {
- prefixCls: 'rc-tree-select',
- prefixAria: 'rc-tree-select',
- showArrow: true,
- showSearch: true,
- autoClearSearchValue: true,
- showCheckedStrategy: _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_CHILD"],
- // dropdownMatchSelectWidth change the origin design, set to false now
- // ref: https://github.com/react-component/select/blob/4cad95e098a341a09de239ad6981067188842020/src/Select.jsx#L344
- // ref: https://github.com/react-component/select/pull/71
- treeNodeFilterProp: 'value',
- treeNodeLabelProp: 'title',
- treeIcon: false,
- notFoundContent: 'Not Found',
- dropdownStyle: {},
- dropdownVisibleChange: function dropdownVisibleChange() {
- return true;
- }
- }),
- data: function data() {
- warning__WEBPACK_IMPORTED_MODULE_6___default()(this.$props.__propsSymbol__, 'must pass __propsSymbol__');
- var _$props = this.$props,
- prefixAria = _$props.prefixAria,
- defaultOpen = _$props.defaultOpen,
- open = _$props.open;
- this.needSyncKeys = {};
- this.selectorRef = Object(_util__WEBPACK_IMPORTED_MODULE_16__["createRef"])();
- this.selectTriggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_16__["createRef"])();
- // ARIA need `aria-controls` props mapping
- // Since this need user input. Let's generate ourselves
- this.ariaId = Object(_util__WEBPACK_IMPORTED_MODULE_16__["generateAriaId"])(prefixAria + '-list');
- var state = {
- _open: open || defaultOpen,
- _valueList: [],
- _searchHalfCheckedKeys: [],
- _missValueList: [], // Contains the value not in the tree
- _selectorValueList: [], // Used for multiple selector
- _valueEntities: {},
- _posEntities: new Map(),
- _keyEntities: new Map(),
- _searchValue: '',
- _prevProps: {},
- _init: true,
- _focused: undefined,
- _treeNodes: undefined,
- _filteredTreeNodes: undefined
- };
- var newState = this.getDerivedState(this.$props, state);
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state, newState);
- },
- provide: function provide() {
- return {
- vcTreeSelect: {
- onSelectorFocus: this.onSelectorFocus,
- onSelectorBlur: this.onSelectorBlur,
- onSelectorKeyDown: this.onComponentKeyDown,
- onSelectorClear: this.onSelectorClear,
- onMultipleSelectorRemove: this.onMultipleSelectorRemove,
- onTreeNodeSelect: this.onTreeNodeSelect,
- onTreeNodeCheck: this.onTreeNodeCheck,
- onPopupKeyDown: this.onComponentKeyDown,
- onSearchInputChange: this.onSearchInputChange,
- onSearchInputKeyDown: this.onSearchInputKeyDown
- }
- };
- },
- watch: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, getWatch(['treeData', 'defaultValue', 'value']), {
- __propsSymbol__: function __propsSymbol__() {
- var state = this.getDerivedState(this.$props, this.$data);
- this.setState(state);
- this.needSyncKeys = {};
- },
- '$data._valueList': function $data_valueList() {
- var _this = this;
- this.$nextTick(function () {
- _this.forcePopupAlign();
- });
- },
- '$data._open': function $data_open(open) {
- var _this2 = this;
- setTimeout(function () {
- var prefixCls = _this2.$props.prefixCls;
- var _$data = _this2.$data,
- selectorValueList = _$data._selectorValueList,
- valueEntities = _$data._valueEntities;
- var isMultiple = _this2.isMultiple();
- // Scroll to value position, only need sync on single mode
- if (!isMultiple && selectorValueList.length && open && _this2.popup) {
- var value = selectorValueList[0].value;
- var _popup$getTree = _this2.popup.getTree(),
- domTreeNodes = _popup$getTree.domTreeNodes;
- var _ref = valueEntities[value] || {},
- key = _ref.key;
- var treeNode = domTreeNodes[key];
- if (treeNode) {
- var domNode = treeNode.$el;
- raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
- var popupNode = _this2.popup.$el;
- var triggerContainer = Object(_util__WEBPACK_IMPORTED_MODULE_16__["findPopupContainer"])(popupNode, prefixCls + '-dropdown');
- var searchNode = _this2.popup.searchRef.current;
- if (domNode && triggerContainer && searchNode) {
- Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_5__["default"])(domNode, triggerContainer, {
- onlyScrollIfNeeded: true,
- offsetTop: searchNode.offsetHeight
- });
- }
- });
- }
- }
- });
- }
- }),
- mounted: function mounted() {
- var _this3 = this;
- this.$nextTick(function () {
- var _$props2 = _this3.$props,
- autoFocus = _$props2.autoFocus,
- disabled = _$props2.disabled;
- if (autoFocus && !disabled) {
- _this3.focus();
- }
- });
- },
- methods: {
- getDerivedState: function getDerivedState(nextProps, prevState) {
- var h = this.$createElement;
- var _prevState$_prevProps = prevState._prevProps,
- prevProps = _prevState$_prevProps === undefined ? {} : _prevState$_prevProps;
- var treeCheckable = nextProps.treeCheckable,
- treeCheckStrictly = nextProps.treeCheckStrictly,
- filterTreeNode = nextProps.filterTreeNode,
- treeNodeFilterProp = nextProps.treeNodeFilterProp,
- treeDataSimpleMode = nextProps.treeDataSimpleMode;
- var newState = {
- _prevProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, nextProps),
- _init: false
- };
- var self = this;
- // Process the state when props updated
- function processState(propName, updater) {
- if (prevProps[propName] !== nextProps[propName] || self.needSyncKeys[propName]) {
- updater(nextProps[propName], prevProps[propName]);
- return true;
- }
- return false;
- }
- var valueRefresh = false;
- // Open
- processState('open', function (propValue) {
- newState._open = propValue;
- });
- // Tree Nodes
- var treeNodes = void 0;
- var treeDataChanged = false;
- var treeDataModeChanged = false;
- processState('treeData', function (propValue) {
- treeNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["convertDataToTree"])(h, propValue);
- treeDataChanged = true;
- });
- processState('treeDataSimpleMode', function (propValue, prevValue) {
- if (!propValue) return;
- var prev = !prevValue || prevValue === true ? {} : prevValue;
- // Shallow equal to avoid dynamic prop object
- if (!shallowequal__WEBPACK_IMPORTED_MODULE_3___default()(propValue, prev)) {
- treeDataModeChanged = true;
- }
- });
- // Parse by `treeDataSimpleMode`
- if (treeDataSimpleMode && (treeDataChanged || treeDataModeChanged)) {
- var simpleMapper = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- id: 'id',
- pId: 'pId',
- rootPId: null
- }, treeDataSimpleMode !== true ? treeDataSimpleMode : {});
- treeNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["convertDataToTree"])(h, Object(_util__WEBPACK_IMPORTED_MODULE_16__["parseSimpleTreeData"])(nextProps.treeData, simpleMapper));
- }
- // If `treeData` not provide, use children TreeNodes
- if (!nextProps.treeData) {
- // processState('children', (propValue) => {
- // treeNodes = Array.isArray(propValue) ? propValue : [propValue]
- // })
- treeNodes = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["filterEmpty"])(this.$slots['default']);
- }
- // Convert `treeData` to entities
- if (treeNodes) {
- var entitiesMap = Object(_util__WEBPACK_IMPORTED_MODULE_16__["convertTreeToEntities"])(treeNodes);
- newState._treeNodes = treeNodes;
- newState._posEntities = entitiesMap.posEntities;
- newState._valueEntities = entitiesMap.valueEntities;
- newState._keyEntities = entitiesMap.keyEntities;
- valueRefresh = true;
- }
- // Value List
- if (prevState._init) {
- processState('defaultValue', function (propValue) {
- newState._valueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatInternalValue"])(propValue, nextProps);
- valueRefresh = true;
- });
- }
- processState('value', function (propValue) {
- newState._valueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatInternalValue"])(propValue, nextProps);
- valueRefresh = true;
- });
- // Selector Value List
- if (valueRefresh) {
- // Find out that value not exist in the tree
- var missValueList = [];
- var filteredValueList = [];
- var keyList = [];
- // Get latest value list
- var latestValueList = newState._valueList;
- if (!latestValueList) {
- // Also need add prev missValueList to avoid new treeNodes contains the value
- latestValueList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(prevState._valueList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(prevState._missValueList));
- }
- // Get key by value
- var valueLabels = {};
- latestValueList.forEach(function (wrapperValue) {
- var value = wrapperValue.value,
- label = wrapperValue.label;
- var entity = (newState._valueEntities || prevState._valueEntities)[value];
- valueLabels[value] = label;
- if (entity) {
- keyList.push(entity.key);
- filteredValueList.push(wrapperValue);
- return;
- }
- // If not match, it may caused by ajax load. We need keep this
- missValueList.push(wrapperValue);
- });
- // We need calculate the value when tree is checked tree
- if (treeCheckable && !treeCheckStrictly) {
- // Calculate the keys need to be checked
- var _conductCheck = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])(keyList, true, newState._keyEntities || prevState._keyEntities),
- checkedKeys = _conductCheck.checkedKeys;
- // Format value list again for internal usage
- newState._valueList = checkedKeys.map(function (key) {
- var val = (newState._keyEntities || prevState._keyEntities).get(key).value;
- var wrappedValue = {
- value: val
- };
- if (valueLabels[val] !== undefined) {
- wrappedValue.label = valueLabels[val];
- }
- return wrappedValue;
- });
- } else {
- newState._valueList = filteredValueList;
- }
- // Fill the missValueList, we still need display in the selector
- newState._missValueList = missValueList;
- // Calculate the value list for `Selector` usage
- newState._selectorValueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatSelectorValue"])(newState._valueList, nextProps, newState._valueEntities || prevState._valueEntities);
- }
- // [Legacy] To align with `Select` component,
- // We use `searchValue` instead of `inputValue` but still keep the api
- // `inputValue` support `null` to work as `autoClearSearchValue`
- processState('inputValue', function (propValue) {
- if (propValue !== null) {
- newState._searchValue = propValue;
- }
- });
- // Search value
- processState('searchValue', function (propValue) {
- newState._searchValue = propValue;
- });
- // Do the search logic
- if (newState._searchValue !== undefined || prevState._searchValue && treeNodes) {
- var searchValue = newState._searchValue !== undefined ? newState._searchValue : prevState._searchValue;
- var upperSearchValue = String(searchValue).toUpperCase();
- var filterTreeNodeFn = filterTreeNode;
- if (filterTreeNode === false) {
- // Don't filter if is false
- filterTreeNodeFn = function filterTreeNodeFn() {
- return true;
- };
- } else if (typeof filterTreeNodeFn !== 'function') {
- // When is not function (true or undefined), use inner filter
- filterTreeNodeFn = function filterTreeNodeFn(_, node) {
- var nodeValue = String(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node)[treeNodeFilterProp]).toUpperCase();
- return nodeValue.indexOf(upperSearchValue) !== -1;
- };
- }
- newState._filteredTreeNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["getFilterTree"])(this.$createElement, newState._treeNodes || prevState._treeNodes, searchValue, filterTreeNodeFn, newState._valueEntities || prevState._valueEntities, _SelectNode__WEBPACK_IMPORTED_MODULE_17__["default"]);
- }
- // We should re-calculate the halfCheckedKeys when in search mode
- if (valueRefresh && treeCheckable && !treeCheckStrictly && (newState._searchValue || prevState._searchValue)) {
- newState._searchHalfCheckedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_16__["getHalfCheckedKeys"])(newState._valueList, newState._valueEntities || prevState._valueEntities);
- }
- // Checked Strategy
- processState('showCheckedStrategy', function () {
- newState._selectorValueList = newState._selectorValueList || Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatSelectorValue"])(newState._valueList || prevState._valueList, nextProps, newState._valueEntities || prevState._valueEntities);
- });
- return newState;
- },
- // ==================== Selector ====================
- onSelectorFocus: function onSelectorFocus() {
- this.setState({ _focused: true });
- },
- onSelectorBlur: function onSelectorBlur() {
- this.setState({ _focused: false });
- // TODO: Close when Popup is also not focused
- // this.setState({ open: false });
- },
- // Handle key board event in both Selector and Popup
- onComponentKeyDown: function onComponentKeyDown(event) {
- var open = this.$data._open;
- var keyCode = event.keyCode;
- if (!open) {
- if ([_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].ENTER, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].DOWN].indexOf(keyCode) !== -1) {
- this.setOpenState(true);
- }
- } else if (_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].ESC === keyCode) {
- this.setOpenState(false);
- } else if ([_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].UP, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].DOWN, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].LEFT, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].RIGHT].indexOf(keyCode) !== -1) {
- // TODO: Handle `open` state
- event.stopPropagation();
- }
- },
- onDeselect: function onDeselect(wrappedValue, node, nodeEventInfo) {
- this.__emit('deselect', wrappedValue, node, nodeEventInfo);
- },
- onSelectorClear: function onSelectorClear(event) {
- var disabled = this.$props.disabled;
- if (disabled) return;
- this.triggerChange([], []);
- if (!this.isSearchValueControlled()) {
- this.setUncontrolledState({
- _searchValue: '',
- _filteredTreeNodes: null
- });
- }
- event.stopPropagation();
- },
- onMultipleSelectorRemove: function onMultipleSelectorRemove(event, removeValue) {
- event.stopPropagation();
- var _$data2 = this.$data,
- valueList = _$data2._valueList,
- missValueList = _$data2._missValueList,
- valueEntities = _$data2._valueEntities;
- var _$props3 = this.$props,
- treeCheckable = _$props3.treeCheckable,
- treeCheckStrictly = _$props3.treeCheckStrictly,
- treeNodeLabelProp = _$props3.treeNodeLabelProp,
- disabled = _$props3.disabled;
- if (disabled) return;
- // Find trigger entity
- var triggerEntity = valueEntities[removeValue];
- // Clean up value
- var newValueList = valueList;
- if (triggerEntity) {
- // If value is in tree
- if (treeCheckable && !treeCheckStrictly) {
- newValueList = valueList.filter(function (_ref2) {
- var value = _ref2.value;
- var entity = valueEntities[value];
- return !Object(_util__WEBPACK_IMPORTED_MODULE_16__["isPosRelated"])(entity.pos, triggerEntity.pos);
- });
- } else {
- newValueList = valueList.filter(function (_ref3) {
- var value = _ref3.value;
- return value !== removeValue;
- });
- }
- }
- var triggerNode = triggerEntity ? triggerEntity.node : null;
- var extraInfo = {
- triggerValue: removeValue,
- triggerNode: triggerNode
- };
- var deselectInfo = {
- node: triggerNode
- };
- // [Legacy] Little hack on this to make same action as `onCheck` event.
- if (treeCheckable) {
- var filteredEntityList = newValueList.map(function (_ref4) {
- var value = _ref4.value;
- return valueEntities[value];
- });
- deselectInfo.event = 'check';
- deselectInfo.checked = false;
- deselectInfo.checkedNodes = filteredEntityList.map(function (_ref5) {
- var node = _ref5.node;
- return node;
- });
- deselectInfo.checkedNodesPositions = filteredEntityList.map(function (_ref6) {
- var node = _ref6.node,
- pos = _ref6.pos;
- return {
- node: node,
- pos: pos
- };
- });
- if (treeCheckStrictly) {
- extraInfo.allCheckedNodes = deselectInfo.checkedNodes;
- } else {
- // TODO: It's too expansive to get `halfCheckedKeys` in onDeselect. Not pass this.
- extraInfo.allCheckedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["flatToHierarchy"])(filteredEntityList).map(function (_ref7) {
- var node = _ref7.node;
- return node;
- });
- }
- } else {
- deselectInfo.event = 'select';
- deselectInfo.selected = false;
- deselectInfo.selectedNodes = newValueList.map(function (_ref8) {
- var value = _ref8.value;
- return (valueEntities[value] || {}).node;
- });
- }
- // Some value user pass prop is not in the tree, we also need clean it
- var newMissValueList = missValueList.filter(function (_ref9) {
- var value = _ref9.value;
- return value !== removeValue;
- });
- var wrappedValue = void 0;
- if (this.isLabelInValue()) {
- wrappedValue = {
- label: triggerNode ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(triggerNode)[treeNodeLabelProp] : null,
- value: removeValue
- };
- } else {
- wrappedValue = removeValue;
- }
- this.onDeselect(wrappedValue, triggerNode, deselectInfo);
- this.triggerChange(newMissValueList, newValueList, extraInfo);
- },
- // ===================== Popup ======================
- onValueTrigger: function onValueTrigger(isAdd, nodeList, nodeEventInfo, nodeExtraInfo) {
- var node = nodeEventInfo.node;
- var value = node.$props.value;
- var _$data3 = this.$data,
- missValueList = _$data3._missValueList,
- valueEntities = _$data3._valueEntities,
- keyEntities = _$data3._keyEntities,
- searchValue = _$data3._searchValue;
- var _$props4 = this.$props,
- disabled = _$props4.disabled,
- inputValue = _$props4.inputValue,
- treeNodeLabelProp = _$props4.treeNodeLabelProp,
- multiple = _$props4.multiple,
- treeCheckable = _$props4.treeCheckable,
- treeCheckStrictly = _$props4.treeCheckStrictly,
- autoClearSearchValue = _$props4.autoClearSearchValue;
- var label = node.$props[treeNodeLabelProp];
- if (disabled) return;
- // Wrap the return value for user
- var wrappedValue = void 0;
- if (this.isLabelInValue()) {
- wrappedValue = {
- value: value,
- label: label
- };
- } else {
- wrappedValue = value;
- }
- // [Legacy] Origin code not trigger `onDeselect` every time. Let's align the behaviour.
- if (isAdd) {
- this.__emit('select', wrappedValue, node, nodeEventInfo);
- } else {
- this.__emit('deselect', wrappedValue, node, nodeEventInfo);
- }
- // Get wrapped value list.
- // This is a bit hack cause we use key to match the value.
- var newValueList = nodeList.map(function (node) {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node);
- return {
- value: props.value,
- label: props[treeNodeLabelProp]
- };
- });
- // When is `treeCheckable` and with `searchValue`, `valueList` is not full filled.
- // We need calculate the missing nodes.
- if (treeCheckable && !treeCheckStrictly) {
- var keyList = newValueList.map(function (_ref10) {
- var val = _ref10.value;
- return valueEntities[val].key;
- });
- if (isAdd) {
- keyList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])(keyList, true, keyEntities).checkedKeys;
- } else {
- keyList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])([valueEntities[value].key], false, keyEntities, {
- checkedKeys: keyList
- }).checkedKeys;
- }
- newValueList = keyList.map(function (key) {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(keyEntities.get(key).node);
- return {
- value: props.value,
- label: props[treeNodeLabelProp]
- };
- });
- }
- // Clean up `searchValue` when this prop is set
- if (autoClearSearchValue || inputValue === null) {
- // Clean state `searchValue` if uncontrolled
- if (!this.isSearchValueControlled() && (multiple || treeCheckable)) {
- this.setUncontrolledState({
- _searchValue: '',
- _filteredTreeNodes: null
- });
- }
- // Trigger onSearch if `searchValue` to be empty.
- // We should also trigger onSearch with empty string here
- // since if user use `treeExpandedKeys`, it need user have the ability to reset it.
- if (searchValue && searchValue.length) {
- this.__emit('update:searchValue', '');
- this.__emit('search', '');
- }
- }
- // [Legacy] Provide extra info
- var extraInfo = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, nodeExtraInfo, {
- triggerValue: value,
- triggerNode: node
- });
- this.triggerChange(missValueList, newValueList, extraInfo);
- },
- onTreeNodeSelect: function onTreeNodeSelect(_, nodeEventInfo) {
- var _$data4 = this.$data,
- valueList = _$data4._valueList,
- valueEntities = _$data4._valueEntities;
- var _$props5 = this.$props,
- treeCheckable = _$props5.treeCheckable,
- multiple = _$props5.multiple;
- if (treeCheckable) return;
- if (!multiple) {
- this.setOpenState(false);
- }
- var isAdd = nodeEventInfo.selected;
- var selectedValue = nodeEventInfo.node.$props.value;
- var newValueList = void 0;
- if (!multiple) {
- newValueList = [{ value: selectedValue }];
- } else {
- newValueList = valueList.filter(function (_ref11) {
- var value = _ref11.value;
- return value !== selectedValue;
- });
- if (isAdd) {
- newValueList.push({ value: selectedValue });
- }
- }
- var selectedNodes = newValueList.map(function (_ref12) {
- var value = _ref12.value;
- return valueEntities[value];
- }).filter(function (entity) {
- return entity;
- }).map(function (_ref13) {
- var node = _ref13.node;
- return node;
- });
- this.onValueTrigger(isAdd, selectedNodes, nodeEventInfo, { selected: isAdd });
- },
- onTreeNodeCheck: function onTreeNodeCheck(_, nodeEventInfo) {
- var _$data5 = this.$data,
- searchValue = _$data5._searchValue,
- keyEntities = _$data5._keyEntities,
- valueEntities = _$data5._valueEntities,
- valueList = _$data5._valueList;
- var treeCheckStrictly = this.$props.treeCheckStrictly;
- var checkedNodes = nodeEventInfo.checkedNodes,
- checkedNodesPositions = nodeEventInfo.checkedNodesPositions;
- var isAdd = nodeEventInfo.checked;
- var extraInfo = {
- checked: isAdd
- };
- var checkedNodeList = checkedNodes;
- // [Legacy] Check event provide `allCheckedNodes`.
- // When `treeCheckStrictly` or internal `searchValue` is set, TreeNode will be unrelated:
- // - Related: Show the top checked nodes and has children prop.
- // - Unrelated: Show all the checked nodes.
- if (searchValue) {
- var oriKeyList = valueList.map(function (_ref14) {
- var value = _ref14.value;
- return valueEntities[value];
- }).filter(function (entity) {
- return entity;
- }).map(function (_ref15) {
- var key = _ref15.key;
- return key;
- });
- var keyList = void 0;
- if (isAdd) {
- keyList = Array.from(new Set([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(oriKeyList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(checkedNodeList.map(function (node) {
- var _getPropsData = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node),
- value = _getPropsData.value;
- return valueEntities[value].key;
- })))));
- } else {
- keyList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])([Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(nodeEventInfo.node).eventKey], false, keyEntities, {
- checkedKeys: oriKeyList
- }).checkedKeys;
- }
- checkedNodeList = keyList.map(function (key) {
- return keyEntities.get(key).node;
- });
- // Let's follow as not `treeCheckStrictly` format
- extraInfo.allCheckedNodes = keyList.map(function (key) {
- return Object(_util__WEBPACK_IMPORTED_MODULE_16__["cleanEntity"])(keyEntities.get(key));
- });
- } else if (treeCheckStrictly) {
- extraInfo.allCheckedNodes = nodeEventInfo.checkedNodes;
- } else {
- extraInfo.allCheckedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["flatToHierarchy"])(checkedNodesPositions);
- }
- this.onValueTrigger(isAdd, checkedNodeList, nodeEventInfo, extraInfo);
- },
- // ==================== Trigger =====================
- onDropdownVisibleChange: function onDropdownVisibleChange(open) {
- var _$props6 = this.$props,
- multiple = _$props6.multiple,
- treeCheckable = _$props6.treeCheckable;
- var _searchValue = this.$data._searchValue;
- // When set open success and single mode,
- // we will reset the input content.
- if (open && !multiple && !treeCheckable && _searchValue) {
- this.setUncontrolledState({
- _searchValue: '',
- _filteredTreeNodes: null
- });
- }
- this.setOpenState(open, true);
- },
- onSearchInputChange: function onSearchInputChange(event) {
- var value = event.target.value;
- var _$data6 = this.$data,
- treeNodes = _$data6._treeNodes,
- valueEntities = _$data6._valueEntities;
- var _$props7 = this.$props,
- filterTreeNode = _$props7.filterTreeNode,
- treeNodeFilterProp = _$props7.treeNodeFilterProp;
- this.__emit('update:searchValue', value);
- this.__emit('search', value);
- var isSet = false;
- if (!this.isSearchValueControlled()) {
- isSet = this.setUncontrolledState({
- _searchValue: value
- });
- this.setOpenState(true);
- }
- if (isSet) {
- // Do the search logic
- var upperSearchValue = String(value).toUpperCase();
- var filterTreeNodeFn = filterTreeNode;
- if (filterTreeNode === false) {
- filterTreeNodeFn = function filterTreeNodeFn() {
- return true;
- };
- } else if (!filterTreeNodeFn) {
- filterTreeNodeFn = function filterTreeNodeFn(_, node) {
- var nodeValue = String(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node)[treeNodeFilterProp]).toUpperCase();
- return nodeValue.indexOf(upperSearchValue) !== -1;
- };
- }
- this.setState({
- _filteredTreeNodes: Object(_util__WEBPACK_IMPORTED_MODULE_16__["getFilterTree"])(this.$createElement, treeNodes, value, filterTreeNodeFn, valueEntities, _SelectNode__WEBPACK_IMPORTED_MODULE_17__["default"])
- });
- }
- },
- onSearchInputKeyDown: function onSearchInputKeyDown(event) {
- var _$data7 = this.$data,
- searchValue = _$data7._searchValue,
- valueList = _$data7._valueList;
- var keyCode = event.keyCode;
- if (_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].BACKSPACE === keyCode && this.isMultiple() && !searchValue && valueList.length) {
- var lastValue = valueList[valueList.length - 1].value;
- this.onMultipleSelectorRemove(event, lastValue);
- }
- },
- onChoiceAnimationLeave: function onChoiceAnimationLeave() {
- var _this4 = this;
- raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
- _this4.forcePopupAlign();
- });
- },
- setPopupRef: function setPopupRef(popup) {
- this.popup = popup;
- },
- /**
- * Only update the value which is not in props
- */
- setUncontrolledState: function setUncontrolledState(state) {
- var needSync = false;
- var newState = {};
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
- Object.keys(state).forEach(function (name) {
- if (name.slice(1) in props) return;
- needSync = true;
- newState[name] = state[name];
- });
- if (needSync) {
- this.setState(newState);
- }
- return needSync;
- },
- // [Legacy] Origin provide `documentClickClose` which triggered by `Trigger`
- // Currently `TreeSelect` align the hide popup logic as `Select` which blur to hide.
- // `documentClickClose` is not accurate anymore. Let's just keep the key word.
- setOpenState: function setOpenState(open) {
- var byTrigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- var dropdownVisibleChange = this.$props.dropdownVisibleChange;
- if (dropdownVisibleChange && dropdownVisibleChange(open, { documentClickClose: !open && byTrigger }) === false) {
- return;
- }
- this.setUncontrolledState({ _open: open });
- },
- // Tree checkable is also a multiple case
- isMultiple: function isMultiple() {
- var _$props8 = this.$props,
- multiple = _$props8.multiple,
- treeCheckable = _$props8.treeCheckable;
- return !!(multiple || treeCheckable);
- },
- isLabelInValue: function isLabelInValue() {
- return Object(_util__WEBPACK_IMPORTED_MODULE_16__["isLabelInValue"])(this.$props);
- },
- // [Legacy] To align with `Select` component,
- // We use `searchValue` instead of `inputValue`
- // but currently still need support that.
- // Add this method the check if is controlled
- isSearchValueControlled: function isSearchValueControlled() {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
- var inputValue = props.inputValue;
- if ('searchValue' in props) return true;
- return 'inputValue' in props && inputValue !== null;
- },
- forcePopupAlign: function forcePopupAlign() {
- var $trigger = this.selectTriggerRef.current;
- if ($trigger) {
- $trigger.forcePopupAlign();
- }
- },
- delayForcePopupAlign: function delayForcePopupAlign() {
- var _this5 = this;
- // Wait 2 frame to avoid dom update & dom algin in the same time
- // https://github.com/ant-design/ant-design/issues/12031
- raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
- raf__WEBPACK_IMPORTED_MODULE_4___default()(_this5.forcePopupAlign);
- });
- },
- /**
- * 1. Update state valueList.
- * 2. Fire `onChange` event to user.
- */
- triggerChange: function triggerChange(missValueList, valueList) {
- var extraInfo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- var _$data8 = this.$data,
- valueEntities = _$data8._valueEntities,
- searchValue = _$data8._searchValue,
- prevSelectorValueList = _$data8._selectorValueList;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
- var disabled = props.disabled,
- treeCheckable = props.treeCheckable,
- treeCheckStrictly = props.treeCheckStrictly;
- if (disabled) return;
- // Trigger
- var extra = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
- // [Legacy] Always return as array contains label & value
- preValue: prevSelectorValueList.map(function (_ref16) {
- var label = _ref16.label,
- value = _ref16.value;
- return { label: label, value: value };
- })
- }, extraInfo);
- // Format value by `treeCheckStrictly`
- var selectorValueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatSelectorValue"])(valueList, props, valueEntities);
- if (!('value' in props)) {
- var newState = {
- _missValueList: missValueList,
- _valueList: valueList,
- _selectorValueList: selectorValueList
- };
- if (searchValue && treeCheckable && !treeCheckStrictly) {
- newState._searchHalfCheckedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_16__["getHalfCheckedKeys"])(valueList, valueEntities);
- }
- this.setState(newState);
- }
- // Only do the logic when `onChange` function provided
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getListeners"])(this).change) {
- var connectValueList = void 0;
- // Get value by mode
- if (this.isMultiple()) {
- connectValueList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(missValueList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(selectorValueList));
- } else {
- connectValueList = selectorValueList.slice(0, 1);
- }
- var labelList = null;
- var returnValue = void 0;
- if (this.isLabelInValue()) {
- returnValue = connectValueList.map(function (_ref17) {
- var label = _ref17.label,
- value = _ref17.value;
- return { label: label, value: value };
- });
- } else {
- labelList = [];
- returnValue = connectValueList.map(function (_ref18) {
- var label = _ref18.label,
- value = _ref18.value;
- labelList.push(label);
- return value;
- });
- }
- if (!this.isMultiple()) {
- returnValue = returnValue[0];
- }
- this.__emit('change', returnValue, labelList, extra);
- }
- },
- focus: function focus() {
- this.selectorRef.current.focus();
- },
- blur: function blur() {
- this.selectorRef.current.blur();
- }
- },
- // ===================== Render =====================
- render: function render() {
- var h = arguments[0];
- var _$data9 = this.$data,
- valueList = _$data9._valueList,
- missValueList = _$data9._missValueList,
- selectorValueList = _$data9._selectorValueList,
- searchHalfCheckedKeys = _$data9._searchHalfCheckedKeys,
- valueEntities = _$data9._valueEntities,
- keyEntities = _$data9._keyEntities,
- searchValue = _$data9._searchValue,
- open = _$data9._open,
- focused = _$data9._focused,
- treeNodes = _$data9._treeNodes,
- filteredTreeNodes = _$data9._filteredTreeNodes;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
- var prefixCls = props.prefixCls,
- treeExpandedKeys = props.treeExpandedKeys;
- var isMultiple = this.isMultiple();
- var passProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
- isMultiple: isMultiple,
- valueList: valueList,
- searchHalfCheckedKeys: searchHalfCheckedKeys,
- selectorValueList: [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(missValueList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(selectorValueList)),
- valueEntities: valueEntities,
- keyEntities: keyEntities,
- searchValue: searchValue,
- upperSearchValue: (searchValue || '').toUpperCase(), // Perf save
- open: open,
- focused: focused,
- dropdownPrefixCls: prefixCls + '-dropdown',
- ariaId: this.ariaId
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getListeners"])(this), {
- choiceAnimationLeave: this.onChoiceAnimationLeave
- }),
- scopedSlots: this.$scopedSlots
- };
- var popupProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["mergeProps"])(passProps, {
- props: {
- treeNodes: treeNodes,
- filteredTreeNodes: filteredTreeNodes,
- // Tree expanded control
- treeExpandedKeys: treeExpandedKeys,
- __propsSymbol__: Symbol()
- },
- on: {
- treeExpanded: this.delayForcePopupAlign
- },
- directives: [{
- name: 'ant-ref',
- value: this.setPopupRef
- }]
- });
- var Popup = isMultiple ? _Popup_MultiplePopup__WEBPACK_IMPORTED_MODULE_13__["default"] : _Popup_SinglePopup__WEBPACK_IMPORTED_MODULE_12__["default"];
- var $popup = h(Popup, popupProps);
- var Selector = isMultiple ? _Selector_MultipleSelector__WEBPACK_IMPORTED_MODULE_11__["default"] : _Selector_SingleSelector__WEBPACK_IMPORTED_MODULE_10__["default"];
- var $selector = h(Selector, babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([passProps, {
- directives: [{
- name: 'ant-ref',
- value: this.selectorRef
- }]
- }]));
- var selectTriggerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["mergeProps"])(passProps, {
- props: {
- popupElement: $popup,
- dropdownVisibleChange: this.onDropdownVisibleChange
- },
- directives: [{
- name: 'ant-ref',
- value: this.selectTriggerRef
- }]
- });
- return h(
- _SelectTrigger__WEBPACK_IMPORTED_MODULE_9__["default"],
- selectTriggerProps,
- [$selector]
- );
- }
- };
- Select.TreeNode = _SelectNode__WEBPACK_IMPORTED_MODULE_17__["default"];
- Select.SHOW_ALL = _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_ALL"];
- Select.SHOW_PARENT = _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_PARENT"];
- Select.SHOW_CHILD = _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_CHILD"];
- // Let warning show correct component name
- Select.name = 'TreeSelect';
- /* harmony default export */ __webpack_exports__["default"] = (Select);
- /***/ }),
- /***/ "./components/vc-tree-select/src/SelectNode.jsx":
- /*!******************************************************!*\
- !*** ./components/vc-tree-select/src/SelectNode.jsx ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-tree */ "./components/vc-tree/index.js");
- /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_vc_tree__WEBPACK_IMPORTED_MODULE_1__);
- /**
- * SelectNode wrapped the tree node.
- * Let's use SelectNode instead of TreeNode
- * since TreeNode is so confuse here.
- */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'SelectNode',
- functional: true,
- isTreeNode: true,
- props: _vc_tree__WEBPACK_IMPORTED_MODULE_1__["TreeNode"].props,
- render: function render(h, context) {
- var props = context.props,
- slots = context.slots,
- listeners = context.listeners,
- data = context.data,
- scopedSlots = context.scopedSlots;
- var $slots = slots() || {};
- var children = $slots['default'];
- var slotsKey = Object.keys($slots);
- var scopedSlotsTemp = {}; // for vue 2.5.x
- slotsKey.forEach(function (name) {
- scopedSlotsTemp[name] = function () {
- return $slots[name];
- };
- });
- var treeNodeProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, data, {
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, data.nativeOn),
- props: props,
- scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, scopedSlotsTemp, scopedSlots)
- });
- return h(
- _vc_tree__WEBPACK_IMPORTED_MODULE_1__["TreeNode"],
- treeNodeProps,
- [children]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-tree-select/src/SelectTrigger.jsx":
- /*!*********************************************************!*\
- !*** ./components/vc-tree-select/src/SelectTrigger.jsx ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./components/vc-tree-select/src/util.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
- var BUILT_IN_PLACEMENTS = {
- bottomLeft: {
- points: ['tl', 'bl'],
- offset: [0, 4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- },
- ignoreShake: true
- },
- topLeft: {
- points: ['bl', 'tl'],
- offset: [0, -4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- },
- ignoreShake: true
- }
- };
- var SelectTrigger = {
- name: 'SelectTrigger',
- props: {
- // Pass by outside user props
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- dropdownPopupAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- // Pass by Select
- isMultiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- dropdownVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- popupElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].node,
- open: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
- },
- created: function created() {
- this.triggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_4__["createRef"])();
- },
- methods: {
- getDropdownTransitionName: function getDropdownTransitionName() {
- var _$props = this.$props,
- transitionName = _$props.transitionName,
- animation = _$props.animation,
- dropdownPrefixCls = _$props.dropdownPrefixCls;
- if (!transitionName && animation) {
- return dropdownPrefixCls + '-' + animation;
- }
- return transitionName;
- },
- forcePopupAlign: function forcePopupAlign() {
- var $trigger = this.triggerRef.current;
- if ($trigger) {
- $trigger.forcePopupAlign();
- }
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var _$props2 = this.$props,
- disabled = _$props2.disabled,
- isMultiple = _$props2.isMultiple,
- dropdownPopupAlign = _$props2.dropdownPopupAlign,
- dropdownMatchSelectWidth = _$props2.dropdownMatchSelectWidth,
- dropdownClassName = _$props2.dropdownClassName,
- dropdownStyle = _$props2.dropdownStyle,
- dropdownVisibleChange = _$props2.dropdownVisibleChange,
- getPopupContainer = _$props2.getPopupContainer,
- dropdownPrefixCls = _$props2.dropdownPrefixCls,
- popupElement = _$props2.popupElement,
- open = _$props2.open;
- // TODO: [Legacy] Use new action when trigger fixed: https://github.com/react-component/trigger/pull/86
- // When false do nothing with the width
- // ref: https://github.com/ant-design/ant-design/issues/10927
- var stretch = void 0;
- if (dropdownMatchSelectWidth !== false) {
- stretch = dropdownMatchSelectWidth ? 'width' : 'minWidth';
- }
- return h(
- _vc_trigger__WEBPACK_IMPORTED_MODULE_3__["default"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- directives: [{
- name: 'ant-ref',
- value: this.triggerRef
- }]
- }, {
- attrs: {
- action: disabled ? [] : ['click'],
- popupPlacement: 'bottomLeft',
- builtinPlacements: BUILT_IN_PLACEMENTS,
- popupAlign: dropdownPopupAlign,
- prefixCls: dropdownPrefixCls,
- popupTransitionName: this.getDropdownTransitionName(),
- popup: popupElement,
- popupVisible: open,
- getPopupContainer: getPopupContainer,
- stretch: stretch,
- popupClassName: classnames__WEBPACK_IMPORTED_MODULE_5___default()(dropdownClassName, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, dropdownPrefixCls + '--multiple', isMultiple), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, dropdownPrefixCls + '--single', !isMultiple), _classNames)),
- popupStyle: dropdownStyle
- },
- on: {
- 'popupVisibleChange': dropdownVisibleChange
- }
- }]),
- [this.$slots['default']]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (SelectTrigger);
- /***/ }),
- /***/ "./components/vc-tree-select/src/Selector/MultipleSelector/Selection.jsx":
- /*!*******************************************************************************!*\
- !*** ./components/vc-tree-select/src/Selector/MultipleSelector/Selection.jsx ***!
- \*******************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util */ "./components/vc-tree-select/src/util.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- var Selection = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
- props: {
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
- // onRemove: PropTypes.func,
- label: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
- removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
- },
- methods: {
- onRemove: function onRemove(event) {
- var value = this.$props.value;
- this.__emit('remove', event, value);
- event.stopPropagation();
- }
- },
- render: function render() {
- var h = arguments[0];
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- maxTagTextLength = _$props.maxTagTextLength,
- label = _$props.label,
- value = _$props.value;
- var content = label || value;
- if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {
- content = content.slice(0, maxTagTextLength) + '...';
- }
- return h(
- 'li',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- style: _util__WEBPACK_IMPORTED_MODULE_2__["UNSELECTABLE_STYLE"]
- }, { attrs: _util__WEBPACK_IMPORTED_MODULE_2__["UNSELECTABLE_ATTRIBUTE"] }, {
- attrs: {
- role: 'menuitem',
- title: Object(_util__WEBPACK_IMPORTED_MODULE_2__["toTitle"])(label)
- },
- 'class': prefixCls + '-selection__choice' }]),
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this).remove && h(
- 'span',
- { 'class': prefixCls + '-selection__choice__remove', on: {
- 'click': this.onRemove
- }
- },
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'removeIcon')]
- ), h(
- 'span',
- { 'class': prefixCls + '-selection__choice__content' },
- [content]
- )]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Selection);
- /***/ }),
- /***/ "./components/vc-tree-select/src/Selector/MultipleSelector/index.jsx":
- /*!***************************************************************************!*\
- !*** ./components/vc-tree-select/src/Selector/MultipleSelector/index.jsx ***!
- \***************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ "./components/vc-tree-select/src/util.js");
- /* harmony import */ var _Base_BaseSelector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Base/BaseSelector */ "./components/vc-tree-select/src/Base/BaseSelector.jsx");
- /* harmony import */ var _SearchInput__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../SearchInput */ "./components/vc-tree-select/src/SearchInput.jsx");
- /* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Selection */ "./components/vc-tree-select/src/Selector/MultipleSelector/Selection.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- var TREE_SELECT_EMPTY_VALUE_KEY = 'RC_TREE_SELECT_EMPTY_VALUE_KEY';
- var Selector = Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_5__["default"])('multiple');
- // export const multipleSelectorContextTypes = {
- // onMultipleSelectorRemove: PropTypes.func.isRequired,
- // }
- var MultipleSelector = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_5__["selectorPropTypes"])(), _SearchInput__WEBPACK_IMPORTED_MODULE_6__["default"].props, {
- selectorValueList: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
- // onChoiceAnimationLeave: PropTypes.func,
- }),
- inject: {
- vcTreeSelect: { 'default': function _default() {
- return {};
- } }
- },
- created: function created() {
- this.inputRef = Object(_util__WEBPACK_IMPORTED_MODULE_4__["createRef"])();
- },
- methods: {
- onPlaceholderClick: function onPlaceholderClick() {
- this.inputRef.current.focus();
- },
- focus: function focus() {
- this.inputRef.current.focus();
- },
- blur: function blur() {
- this.inputRef.current.blur();
- },
- _renderPlaceholder: function _renderPlaceholder() {
- var h = this.$createElement;
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- placeholder = _$props.placeholder,
- searchPlaceholder = _$props.searchPlaceholder,
- searchValue = _$props.searchValue,
- selectorValueList = _$props.selectorValueList;
- var currentPlaceholder = placeholder || searchPlaceholder;
- if (!currentPlaceholder) return null;
- var hidden = searchValue || selectorValueList.length;
- // [Legacy] Not remove the placeholder
- return h(
- 'span',
- {
- style: {
- display: hidden ? 'none' : 'block'
- },
- on: {
- 'click': this.onPlaceholderClick
- },
- 'class': prefixCls + '-search__field__placeholder'
- },
- [currentPlaceholder]
- );
- },
- onChoiceAnimationLeave: function onChoiceAnimationLeave() {
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- this.__emit.apply(this, ['choiceAnimationLeave'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
- },
- renderSelection: function renderSelection() {
- var _this = this;
- var h = this.$createElement;
- var _$props2 = this.$props,
- selectorValueList = _$props2.selectorValueList,
- choiceTransitionName = _$props2.choiceTransitionName,
- prefixCls = _$props2.prefixCls,
- labelInValue = _$props2.labelInValue,
- maxTagCount = _$props2.maxTagCount;
- var onMultipleSelectorRemove = this.vcTreeSelect.onMultipleSelectorRemove,
- $slots = this.$slots;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
- // Check if `maxTagCount` is set
- var myValueList = selectorValueList;
- if (maxTagCount >= 0) {
- myValueList = selectorValueList.slice(0, maxTagCount);
- }
- // Selector node list
- var selectedValueNodes = myValueList.map(function (_ref) {
- var label = _ref.label,
- value = _ref.value;
- return h(
- _Selection__WEBPACK_IMPORTED_MODULE_7__["default"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _this.$props, {
- label: label,
- value: value
- }),
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, listeners, { remove: onMultipleSelectorRemove })
- }, {
- key: value || TREE_SELECT_EMPTY_VALUE_KEY
- }]),
- [$slots['default']]
- );
- });
- // Rest node count
- if (maxTagCount >= 0 && maxTagCount < selectorValueList.length) {
- var content = '+ ' + (selectorValueList.length - maxTagCount) + ' ...';
- var maxTagPlaceholder = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'maxTagPlaceholder', {}, false);
- if (typeof maxTagPlaceholder === 'string') {
- content = maxTagPlaceholder;
- } else if (typeof maxTagPlaceholder === 'function') {
- var restValueList = selectorValueList.slice(maxTagCount);
- content = maxTagPlaceholder(labelInValue ? restValueList : restValueList.map(function (_ref2) {
- var value = _ref2.value;
- return value;
- }));
- }
- var restNodeSelect = h(
- _Selection__WEBPACK_IMPORTED_MODULE_7__["default"],
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
- label: content,
- value: null
- }),
- on: listeners
- }, {
- key: 'rc-tree-select-internal-max-tag-counter'
- }]),
- [$slots['default']]
- );
- selectedValueNodes.push(restNodeSelect);
- }
- selectedValueNodes.push(h(
- 'li',
- { 'class': prefixCls + '-search ' + prefixCls + '-search--inline', key: '__input' },
- [h(
- _SearchInput__WEBPACK_IMPORTED_MODULE_6__["default"],
- {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
- needAlign: true
- }),
- on: listeners,
- directives: [{
- name: 'ant-ref',
- value: this.inputRef
- }]
- },
- [$slots['default']]
- )]
- ));
- var className = prefixCls + '-selection__rendered';
- if (choiceTransitionName) {
- var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_9__["default"])(choiceTransitionName, {
- tag: 'ul',
- afterLeave: this.onChoiceAnimationLeave
- });
- return h(
- 'transition-group',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': className }, transitionProps]),
- [selectedValueNodes]
- );
- }
- return h(
- 'ul',
- { 'class': className, attrs: { role: 'menubar' }
- },
- [selectedValueNodes]
- );
- }
- },
- render: function render() {
- var h = arguments[0];
- var $slots = this.$slots;
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
- return h(
- Selector,
- {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
- tabIndex: -1,
- showArrow: false,
- renderSelection: this.renderSelection,
- renderPlaceholder: this._renderPlaceholder
- }),
- on: listeners
- },
- [$slots['default']]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (MultipleSelector);
- /***/ }),
- /***/ "./components/vc-tree-select/src/Selector/SingleSelector.jsx":
- /*!*******************************************************************!*\
- !*** ./components/vc-tree-select/src/Selector/SingleSelector.jsx ***!
- \*******************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _Base_BaseSelector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Base/BaseSelector */ "./components/vc-tree-select/src/Base/BaseSelector.jsx");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
- var Selector = Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_1__["default"])('single');
- var SingleSelector = {
- name: 'SingleSelector',
- props: Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_1__["selectorPropTypes"])(),
- created: function created() {
- this.selectorRef = Object(_util__WEBPACK_IMPORTED_MODULE_2__["createRef"])();
- },
- methods: {
- focus: function focus() {
- this.selectorRef.current.focus();
- },
- blur: function blur() {
- this.selectorRef.current.blur();
- },
- renderSelection: function renderSelection() {
- var h = this.$createElement;
- var _$props = this.$props,
- selectorValueList = _$props.selectorValueList,
- placeholder = _$props.placeholder,
- prefixCls = _$props.prefixCls;
- var innerNode = void 0;
- if (selectorValueList.length) {
- var _selectorValueList$ = selectorValueList[0],
- label = _selectorValueList$.label,
- value = _selectorValueList$.value;
- innerNode = h(
- 'span',
- { key: 'value', attrs: { title: Object(_util__WEBPACK_IMPORTED_MODULE_2__["toTitle"])(label) },
- 'class': prefixCls + '-selection-selected-value' },
- [label || value]
- );
- } else {
- innerNode = h(
- 'span',
- { key: 'placeholder', 'class': prefixCls + '-selection__placeholder' },
- [placeholder]
- );
- }
- return h(
- 'span',
- { 'class': prefixCls + '-selection__rendered' },
- [innerNode]
- );
- }
- },
- render: function render() {
- var h = arguments[0];
- var props = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this), {
- renderSelection: this.renderSelection
- }),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this),
- directives: [{
- name: 'ant-ref',
- value: this.selectorRef
- }]
- };
- return h(Selector, props);
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (SingleSelector);
- /***/ }),
- /***/ "./components/vc-tree-select/src/index.js":
- /*!************************************************!*\
- !*** ./components/vc-tree-select/src/index.js ***!
- \************************************************/
- /*! exports provided: SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeNode, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return TreeNode; });
- /* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Select */ "./components/vc-tree-select/src/Select.jsx");
- /* harmony import */ var _SelectNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectNode */ "./components/vc-tree-select/src/SelectNode.jsx");
- /* harmony import */ var _strategies__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./strategies */ "./components/vc-tree-select/src/strategies.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_ALL", function() { return _strategies__WEBPACK_IMPORTED_MODULE_2__["SHOW_ALL"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_CHILD", function() { return _strategies__WEBPACK_IMPORTED_MODULE_2__["SHOW_CHILD"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_PARENT", function() { return _strategies__WEBPACK_IMPORTED_MODULE_2__["SHOW_PARENT"]; });
- var TreeNode = _SelectNode__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* harmony default export */ __webpack_exports__["default"] = (_Select__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-tree-select/src/strategies.js":
- /*!*****************************************************!*\
- !*** ./components/vc-tree-select/src/strategies.js ***!
- \*****************************************************/
- /*! exports provided: SHOW_ALL, SHOW_PARENT, SHOW_CHILD */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHOW_ALL", function() { return SHOW_ALL; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHOW_PARENT", function() { return SHOW_PARENT; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHOW_CHILD", function() { return SHOW_CHILD; });
- var SHOW_ALL = 'SHOW_ALL';
- var SHOW_PARENT = 'SHOW_PARENT';
- var SHOW_CHILD = 'SHOW_CHILD';
- /***/ }),
- /***/ "./components/vc-tree-select/src/util.js":
- /*!***********************************************!*\
- !*** ./components/vc-tree-select/src/util.js ***!
- \***********************************************/
- /*! exports provided: findPopupContainer, toTitle, toArray, createRef, UNSELECTABLE_STYLE, UNSELECTABLE_ATTRIBUTE, flatToHierarchy, resetAriaId, generateAriaId, isLabelInValue, parseSimpleTreeData, isPosRelated, cleanEntity, getFilterTree, formatInternalValue, getLabel, formatSelectorValue, convertDataToTree, convertTreeToEntities, getHalfCheckedKeys, conductCheck */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findPopupContainer", function() { return findPopupContainer; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toTitle", function() { return toTitle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createRef", function() { return createRef; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_STYLE", function() { return UNSELECTABLE_STYLE; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_ATTRIBUTE", function() { return UNSELECTABLE_ATTRIBUTE; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatToHierarchy", function() { return flatToHierarchy; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetAriaId", function() { return resetAriaId; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateAriaId", function() { return generateAriaId; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isLabelInValue", function() { return isLabelInValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseSimpleTreeData", function() { return parseSimpleTreeData; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPosRelated", function() { return isPosRelated; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cleanEntity", function() { return cleanEntity; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFilterTree", function() { return getFilterTree; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatInternalValue", function() { return formatInternalValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLabel", function() { return getLabel; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatSelectorValue", function() { return formatSelectorValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertDataToTree", function() { return convertDataToTree; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertTreeToEntities", function() { return convertTreeToEntities; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHalfCheckedKeys", function() { return getHalfCheckedKeys; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conductCheck", function() { return conductCheck; });
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../vc-tree/src/util */ "./components/vc-tree/src/util.js");
- /* harmony import */ var _vc_util_Dom_class__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../vc-util/Dom/class */ "./components/vc-util/Dom/class.js");
- /* harmony import */ var _strategies__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./strategies */ "./components/vc-tree-select/src/strategies.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- var warnDeprecatedLabel = false;
- // =================== DOM =====================
- function findPopupContainer(node, prefixClass) {
- var current = node;
- while (current) {
- if (Object(_vc_util_Dom_class__WEBPACK_IMPORTED_MODULE_6__["hasClass"])(current, prefixClass)) {
- return current;
- }
- current = current.parentNode;
- }
- return null;
- }
- // =================== MISC ====================
- function toTitle(title) {
- if (typeof title === 'string') {
- return title;
- }
- return null;
- }
- function toArray(data) {
- if (data === undefined || data === null) return [];
- return Array.isArray(data) ? data : [data];
- }
- function createRef() {
- var func = function setRef(node) {
- func.current = node;
- };
- return func;
- }
- // =============== Legacy ===============
- var UNSELECTABLE_STYLE = {
- userSelect: 'none',
- WebkitUserSelect: 'none'
- };
- var UNSELECTABLE_ATTRIBUTE = {
- unselectable: 'unselectable'
- };
- /**
- * Convert position list to hierarchy structure.
- * This is little hack since use '-' to split the position.
- */
- function flatToHierarchy(positionList) {
- if (!positionList.length) {
- return [];
- }
- var entrances = {};
- // Prepare the position map
- var posMap = {};
- var parsedList = positionList.slice().map(function (entity) {
- var clone = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, entity, {
- fields: entity.pos.split('-')
- });
- delete clone.children;
- return clone;
- });
- parsedList.forEach(function (entity) {
- posMap[entity.pos] = entity;
- });
- parsedList.sort(function (a, b) {
- return a.fields.length - b.fields.length;
- });
- // Create the hierarchy
- parsedList.forEach(function (entity) {
- var parentPos = entity.fields.slice(0, -1).join('-');
- var parentEntity = posMap[parentPos];
- if (!parentEntity) {
- entrances[entity.pos] = entity;
- } else {
- parentEntity.children = parentEntity.children || [];
- parentEntity.children.push(entity);
- }
- // Some time position list provide `key`, we don't need it
- delete entity.key;
- delete entity.fields;
- });
- return Object.keys(entrances).map(function (key) {
- return entrances[key];
- });
- }
- // =============== Accessibility ===============
- var ariaId = 0;
- function resetAriaId() {
- ariaId = 0;
- }
- function generateAriaId(prefix) {
- ariaId += 1;
- return prefix + '_' + ariaId;
- }
- function isLabelInValue(props) {
- var treeCheckable = props.treeCheckable,
- treeCheckStrictly = props.treeCheckStrictly,
- labelInValue = props.labelInValue;
- if (treeCheckable && treeCheckStrictly) {
- return true;
- }
- return labelInValue || false;
- }
- // =================== Tree ====================
- function parseSimpleTreeData(treeData, _ref) {
- var id = _ref.id,
- pId = _ref.pId,
- rootPId = _ref.rootPId;
- var keyNodes = {};
- var rootNodeList = [];
- // Fill in the map
- var nodeList = treeData.map(function (node) {
- var clone = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, node);
- var key = clone[id];
- keyNodes[key] = clone;
- clone.key = clone.key || key;
- return clone;
- });
- // Connect tree
- nodeList.forEach(function (node) {
- var parentKey = node[pId];
- var parent = keyNodes[parentKey];
- // Fill parent
- if (parent) {
- parent.children = parent.children || [];
- parent.children.push(node);
- }
- // Fill root tree node
- if (parentKey === rootPId || !parent && rootPId === null) {
- rootNodeList.push(node);
- }
- });
- return rootNodeList;
- }
- /**
- * Detect if position has relation.
- * e.g. 1-2 related with 1-2-3
- * e.g. 1-3-2 related with 1
- * e.g. 1-2 not related with 1-21
- */
- function isPosRelated(pos1, pos2) {
- var fields1 = pos1.split('-');
- var fields2 = pos2.split('-');
- var minLen = Math.min(fields1.length, fields2.length);
- for (var i = 0; i < minLen; i += 1) {
- if (fields1[i] !== fields2[i]) {
- return false;
- }
- }
- return true;
- }
- /**
- * This function is only used on treeNode check (none treeCheckStrictly but has searchInput).
- * We convert entity to { node, pos, children } format.
- * This is legacy bug but we still need to do with it.
- * @param entity
- */
- function cleanEntity(_ref2) {
- var node = _ref2.node,
- pos = _ref2.pos,
- children = _ref2.children;
- var instance = {
- node: node,
- pos: pos
- };
- if (children) {
- instance.children = children.map(cleanEntity);
- }
- return instance;
- }
- /**
- * Get a filtered TreeNode list by provided treeNodes.
- * [Legacy] Since `Tree` use `key` as map but `key` will changed by React,
- * we have to convert `treeNodes > data > treeNodes` to keep the key.
- * Such performance hungry!
- */
- function getFilterTree(h, treeNodes, searchValue, filterFunc, valueEntities, Component) {
- if (!searchValue) {
- return null;
- }
- function mapFilteredNodeToData(node) {
- if (!node || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["isEmptyElement"])(node)) return null;
- var match = false;
- if (filterFunc(searchValue, node)) {
- match = true;
- }
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlots"])(node)['default'];
- children = ((typeof children === 'function' ? children() : children) || []).map(mapFilteredNodeToData).filter(function (n) {
- return n;
- });
- if (children.length || match) {
- return h(
- Component,
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([node.data, { key: valueEntities[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(node).value].key }]),
- [children]
- );
- }
- return null;
- }
- return treeNodes.map(mapFilteredNodeToData).filter(function (node) {
- return node;
- });
- }
- // =================== Value ===================
- /**
- * Convert value to array format to make logic simplify.
- */
- function formatInternalValue(value, props) {
- var valueList = toArray(value);
- // Parse label in value
- if (isLabelInValue(props)) {
- return valueList.map(function (val) {
- if ((typeof val === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(val)) !== 'object' || !val) {
- return {
- value: '',
- label: ''
- };
- }
- return val;
- });
- }
- return valueList.map(function (val) {
- return {
- value: val
- };
- });
- }
- function getLabel(wrappedValue, entity, treeNodeLabelProp) {
- if (wrappedValue.label) {
- return wrappedValue.label;
- }
- if (entity) {
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(entity.node);
- if (Object.keys(props).length) {
- return props[treeNodeLabelProp];
- }
- }
- // Since value without entity will be in missValueList.
- // This code will never reached, but we still need this in case.
- return wrappedValue.value;
- }
- /**
- * Convert internal state `valueList` to user needed value list.
- * This will return an array list. You need check if is not multiple when return.
- *
- * `allCheckedNodes` is used for `treeCheckStrictly`
- */
- function formatSelectorValue(valueList, props, valueEntities) {
- var treeNodeLabelProp = props.treeNodeLabelProp,
- treeCheckable = props.treeCheckable,
- treeCheckStrictly = props.treeCheckStrictly,
- showCheckedStrategy = props.showCheckedStrategy;
- // Will hide some value if `showCheckedStrategy` is set
- if (treeCheckable && !treeCheckStrictly) {
- var values = {};
- valueList.forEach(function (wrappedValue) {
- values[wrappedValue.value] = wrappedValue;
- });
- var hierarchyList = flatToHierarchy(valueList.map(function (_ref3) {
- var value = _ref3.value;
- return valueEntities[value];
- }));
- if (showCheckedStrategy === _strategies__WEBPACK_IMPORTED_MODULE_7__["SHOW_PARENT"]) {
- // Only get the parent checked value
- return hierarchyList.map(function (_ref4) {
- var node = _ref4.node;
- var value = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(node).value;
- return {
- label: getLabel(values[value], valueEntities[value], treeNodeLabelProp),
- value: value
- };
- });
- }
- if (showCheckedStrategy === _strategies__WEBPACK_IMPORTED_MODULE_7__["SHOW_CHILD"]) {
- // Only get the children checked value
- var targetValueList = [];
- // Find the leaf children
- var traverse = function traverse(_ref5) {
- var node = _ref5.node,
- children = _ref5.children;
- var value = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(node).value;
- if (!children || children.length === 0) {
- targetValueList.push({
- label: getLabel(values[value], valueEntities[value], treeNodeLabelProp),
- value: value
- });
- return;
- }
- children.forEach(function (entity) {
- traverse(entity);
- });
- };
- hierarchyList.forEach(function (entity) {
- traverse(entity);
- });
- return targetValueList;
- }
- }
- return valueList.map(function (wrappedValue) {
- return {
- label: getLabel(wrappedValue, valueEntities[wrappedValue.value], treeNodeLabelProp),
- value: wrappedValue.value
- };
- });
- }
- /**
- * Use `rc-tree` convertDataToTree to convert treeData to TreeNodes.
- * This will change the label to title value
- */
- function processProps(props) {
- var title = props.title,
- label = props.label,
- value = props.value,
- cls = props['class'],
- style = props.style,
- _props$on = props.on,
- on = _props$on === undefined ? {} : _props$on;
- var key = props.key;
- if (!key && (key === undefined || key === null)) {
- key = value;
- }
- var p = {
- props: Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(props, ['on', 'key', 'class', 'className', 'style']),
- on: on,
- 'class': cls || props.className,
- style: style,
- key: key
- };
- // Warning user not to use deprecated label prop.
- if (label && !title) {
- if (!warnDeprecatedLabel) {
- warning__WEBPACK_IMPORTED_MODULE_3___default()(false, "'label' in treeData is deprecated. Please use 'title' instead.");
- warnDeprecatedLabel = true;
- }
- p.props.title = label;
- }
- return p;
- }
- function convertDataToTree(h, treeData) {
- return Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__["convertDataToTree"])(h, treeData, { processProps: processProps });
- }
- /**
- * Use `rc-tree` convertTreeToEntities for entities calculation.
- * We have additional entities of `valueEntities`
- */
- function initWrapper(wrapper) {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, wrapper, {
- valueEntities: {}
- });
- }
- function processEntity(entity, wrapper) {
- var value = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(entity.node).value;
- entity.value = value;
- // This should be empty, or will get error message.
- var currentEntity = wrapper.valueEntities[value];
- if (currentEntity) {
- warning__WEBPACK_IMPORTED_MODULE_3___default()(false, 'Conflict! value of node \'' + entity.key + '\' (' + value + ') has already used by node \'' + currentEntity.key + '\'.');
- }
- wrapper.valueEntities[value] = entity;
- }
- function convertTreeToEntities(treeNodes) {
- return Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__["convertTreeToEntities"])(treeNodes, {
- initWrapper: initWrapper,
- processEntity: processEntity
- });
- }
- /**
- * https://github.com/ant-design/ant-design/issues/13328
- * We need calculate the half check key when searchValue is set.
- */
- // TODO: This logic may better move to rc-tree
- function getHalfCheckedKeys(valueList, valueEntities) {
- var values = {};
- // Fill checked keys
- valueList.forEach(function (_ref6) {
- var value = _ref6.value;
- values[value] = false;
- });
- // Fill half checked keys
- valueList.forEach(function (_ref7) {
- var value = _ref7.value;
- var current = valueEntities[value];
- while (current && current.parent) {
- var parentValue = current.parent.value;
- if (parentValue in values) break;
- values[parentValue] = true;
- current = current.parent;
- }
- });
- // Get half keys
- return Object.keys(values).filter(function (value) {
- return values[value];
- }).map(function (value) {
- return valueEntities[value].key;
- });
- }
- var conductCheck = _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__["conductCheck"];
- /***/ }),
- /***/ "./components/vc-tree/index.js":
- /*!*************************************!*\
- !*** ./components/vc-tree/index.js ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // based on rc-tree 2.1.3
- module.exports = __webpack_require__(/*! ./src/ */ "./components/vc-tree/src/index.js");
- /***/ }),
- /***/ "./components/vc-tree/src/Tree.jsx":
- /*!*****************************************!*\
- !*** ./components/vc-tree/src/Tree.jsx ***!
- \*****************************************/
- /*! exports provided: Tree, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tree", function() { return Tree; });
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_proxyComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../_util/proxyComponent */ "./components/_util/proxyComponent.jsx");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./util */ "./components/vc-tree/src/util.js");
- /**
- * Thought we still use `cloneElement` to pass `key`,
- * other props can pass with context for future refactor.
- */
- function getWatch() {
- var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var watch = {};
- keys.forEach(function (k) {
- watch[k] = function () {
- this.needSyncKeys[k] = true;
- };
- });
- return watch;
- }
- var Tree = {
- name: 'Tree',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
- children: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array, // Generate treeNode by children
- showLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- showIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func]),
- focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- checkable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool]),
- checkStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- defaultExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- autoExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- defaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- defaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- expandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- defaultCheckedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- checkedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
- defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- // onClick: PropTypes.func,
- // onDoubleClick: PropTypes.func,
- // onExpand: PropTypes.func,
- // onCheck: PropTypes.func,
- // onSelect: PropTypes.func,
- loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- loadedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
- // onMouseEnter: PropTypes.func,
- // onMouseLeave: PropTypes.func,
- // onRightClick: PropTypes.func,
- // onDragStart: PropTypes.func,
- // onDragEnter: PropTypes.func,
- // onDragOver: PropTypes.func,
- // onDragLeave: PropTypes.func,
- // onDragEnd: PropTypes.func,
- // onDrop: PropTypes.func,
- filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
- switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- _propsSymbol: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
- }, {
- prefixCls: 'rc-tree',
- showLine: false,
- showIcon: true,
- selectable: true,
- multiple: false,
- checkable: false,
- disabled: false,
- checkStrictly: false,
- draggable: false,
- defaultExpandParent: true,
- autoExpandParent: false,
- defaultExpandAll: false,
- defaultExpandedKeys: [],
- defaultCheckedKeys: [],
- defaultSelectedKeys: []
- }),
- data: function data() {
- warning__WEBPACK_IMPORTED_MODULE_5___default()(this.$props.__propsSymbol__, 'must pass __propsSymbol__');
- warning__WEBPACK_IMPORTED_MODULE_5___default()(this.$props.children, 'please use children prop replace slots.default');
- this.needSyncKeys = {};
- this.domTreeNodes = {};
- var state = {
- _posEntities: new Map(),
- _keyEntities: new Map(),
- _expandedKeys: [],
- _selectedKeys: [],
- _checkedKeys: [],
- _halfCheckedKeys: [],
- _loadedKeys: [],
- _loadingKeys: [],
- _treeNode: [],
- _prevProps: null,
- _dragOverNodeKey: '',
- _dropPosition: null,
- _dragNodesKeys: []
- };
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state, this.getDerivedState(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this), state));
- },
- provide: function provide() {
- return {
- vcTree: this
- };
- },
- watch: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, getWatch(['treeData', 'children', 'expandedKeys', 'autoExpandParent', 'selectedKeys', 'checkedKeys', 'loadedKeys']), {
- __propsSymbol__: function __propsSymbol__() {
- this.setState(this.getDerivedState(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this), this.$data));
- this.needSyncKeys = {};
- }
- }),
- methods: {
- getDerivedState: function getDerivedState(props, prevState) {
- var _prevProps = prevState._prevProps;
- var newState = {
- _prevProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props)
- };
- var self = this;
- function needSync(name) {
- return !_prevProps && name in props || _prevProps && self.needSyncKeys[name];
- }
- // ================== Tree Node ==================
- var treeNode = null;
- // Check if `treeData` or `children` changed and save into the state.
- if (needSync('treeData')) {
- treeNode = Object(_util__WEBPACK_IMPORTED_MODULE_10__["convertDataToTree"])(this.$createElement, props.treeData);
- } else if (needSync('children')) {
- treeNode = props.children;
- }
- // Tree support filter function which will break the tree structure in the vdm.
- // We cache the treeNodes in state so that we can return the treeNode in event trigger.
- if (treeNode) {
- newState._treeNode = treeNode;
- // Calculate the entities data for quick match
- var entitiesMap = Object(_util__WEBPACK_IMPORTED_MODULE_10__["convertTreeToEntities"])(treeNode);
- newState._keyEntities = entitiesMap.keyEntities;
- }
- var keyEntities = newState._keyEntities || prevState._keyEntities;
- // ================ expandedKeys =================
- if (needSync('expandedKeys') || _prevProps && needSync('autoExpandParent')) {
- newState._expandedKeys = props.autoExpandParent || !_prevProps && props.defaultExpandParent ? Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductExpandParent"])(props.expandedKeys, keyEntities) : props.expandedKeys;
- } else if (!_prevProps && props.defaultExpandAll) {
- newState._expandedKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(keyEntities.keys()));
- } else if (!_prevProps && props.defaultExpandedKeys) {
- newState._expandedKeys = props.autoExpandParent || props.defaultExpandParent ? Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductExpandParent"])(props.defaultExpandedKeys, keyEntities) : props.defaultExpandedKeys;
- }
- // ================ selectedKeys =================
- if (props.selectable) {
- if (needSync('selectedKeys')) {
- newState._selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcSelectedKeys"])(props.selectedKeys, props);
- } else if (!_prevProps && props.defaultSelectedKeys) {
- newState._selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcSelectedKeys"])(props.defaultSelectedKeys, props);
- }
- }
- // ================= checkedKeys =================
- if (props.checkable) {
- var checkedKeyEntity = void 0;
- if (needSync('checkedKeys')) {
- checkedKeyEntity = Object(_util__WEBPACK_IMPORTED_MODULE_10__["parseCheckedKeys"])(props.checkedKeys) || {};
- } else if (!_prevProps && props.defaultCheckedKeys) {
- checkedKeyEntity = Object(_util__WEBPACK_IMPORTED_MODULE_10__["parseCheckedKeys"])(props.defaultCheckedKeys) || {};
- } else if (treeNode) {
- // If treeNode changed, we also need check it
- checkedKeyEntity = Object(_util__WEBPACK_IMPORTED_MODULE_10__["parseCheckedKeys"])(props.checkedKeys) || {
- checkedKeys: prevState._checkedKeys,
- halfCheckedKeys: prevState._halfCheckedKeys
- };
- }
- if (checkedKeyEntity) {
- var _checkedKeyEntity = checkedKeyEntity,
- _checkedKeyEntity$che = _checkedKeyEntity.checkedKeys,
- checkedKeys = _checkedKeyEntity$che === undefined ? [] : _checkedKeyEntity$che,
- _checkedKeyEntity$hal = _checkedKeyEntity.halfCheckedKeys,
- halfCheckedKeys = _checkedKeyEntity$hal === undefined ? [] : _checkedKeyEntity$hal;
- if (!props.checkStrictly) {
- var conductKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductCheck"])(checkedKeys, true, keyEntities);
- checkedKeys = conductKeys.checkedKeys;
- halfCheckedKeys = conductKeys.halfCheckedKeys;
- }
- newState._checkedKeys = checkedKeys;
- newState._halfCheckedKeys = halfCheckedKeys;
- }
- }
- // ================= loadedKeys ==================
- if (needSync('loadedKeys')) {
- newState._loadedKeys = props.loadedKeys;
- }
- return newState;
- },
- onNodeDragStart: function onNodeDragStart(event, node) {
- var _expandedKeys = this.$data._expandedKeys;
- var eventKey = node.eventKey;
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getSlots"])(node)['default'];
- this.dragNode = node;
- this.setState({
- _dragNodesKeys: Object(_util__WEBPACK_IMPORTED_MODULE_10__["getDragNodesKeys"])(typeof children === 'function' ? children() : children, node),
- _expandedKeys: Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(_expandedKeys, eventKey)
- });
- this.__emit('dragstart', { event: event, node: node });
- },
- /**
- * [Legacy] Select handler is less small than node,
- * so that this will trigger when drag enter node or select handler.
- * This is a little tricky if customize css without padding.
- * Better for use mouse move event to refresh drag state.
- * But let's just keep it to avoid event trigger logic change.
- */
- onNodeDragEnter: function onNodeDragEnter(event, node) {
- var _this = this;
- var expandedKeys = this.$data._expandedKeys;
- var pos = node.pos,
- eventKey = node.eventKey;
- if (!this.dragNode || !node.$refs.selectHandle) return;
- var dropPosition = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcDropPosition"])(event, node);
- // Skip if drag node is self
- if (this.dragNode.eventKey === eventKey && dropPosition === 0) {
- this.setState({
- _dragOverNodeKey: '',
- _dropPosition: null
- });
- return;
- }
- // Ref: https://github.com/react-component/tree/issues/132
- // Add timeout to let onDragLevel fire before onDragEnter,
- // so that we can clean drag props for onDragLeave node.
- // Macro task for this:
- // https://html.spec.whatwg.org/multipage/webappapis.html#clean-up-after-running-script
- setTimeout(function () {
- // Update drag over node
- _this.setState({
- _dragOverNodeKey: eventKey,
- _dropPosition: dropPosition
- });
- // Side effect for delay drag
- if (!_this.delayedDragEnterLogic) {
- _this.delayedDragEnterLogic = {};
- }
- Object.keys(_this.delayedDragEnterLogic).forEach(function (key) {
- clearTimeout(_this.delayedDragEnterLogic[key]);
- });
- _this.delayedDragEnterLogic[pos] = setTimeout(function () {
- var newExpandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(expandedKeys, eventKey);
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(_this, 'expandedKeys')) {
- _this.setState({
- _expandedKeys: newExpandedKeys
- });
- }
- _this.__emit('dragenter', { event: event, node: node, expandedKeys: newExpandedKeys });
- }, 400);
- }, 0);
- },
- onNodeDragOver: function onNodeDragOver(event, node) {
- var eventKey = node.eventKey;
- var _$data = this.$data,
- _dragOverNodeKey = _$data._dragOverNodeKey,
- _dropPosition = _$data._dropPosition;
- // Update drag position
- if (this.dragNode && eventKey === _dragOverNodeKey && node.$refs.selectHandle) {
- var dropPosition = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcDropPosition"])(event, node);
- if (dropPosition === _dropPosition) return;
- this.setState({
- _dropPosition: dropPosition
- });
- }
- this.__emit('dragover', { event: event, node: node });
- },
- onNodeDragLeave: function onNodeDragLeave(event, node) {
- this.setState({
- _dragOverNodeKey: ''
- });
- this.__emit('dragleave', { event: event, node: node });
- },
- onNodeDragEnd: function onNodeDragEnd(event, node) {
- this.setState({
- _dragOverNodeKey: ''
- });
- this.__emit('dragend', { event: event, node: node });
- this.dragNode = null;
- },
- onNodeDrop: function onNodeDrop(event, node) {
- var _$data2 = this.$data,
- _$data2$_dragNodesKey = _$data2._dragNodesKeys,
- _dragNodesKeys = _$data2$_dragNodesKey === undefined ? [] : _$data2$_dragNodesKey,
- _dropPosition = _$data2._dropPosition;
- var eventKey = node.eventKey,
- pos = node.pos;
- this.setState({
- _dragOverNodeKey: ''
- });
- if (_dragNodesKeys.indexOf(eventKey) !== -1) {
- warning__WEBPACK_IMPORTED_MODULE_5___default()(false, "Can not drop to dragNode(include it's children node)");
- return;
- }
- var posArr = Object(_util__WEBPACK_IMPORTED_MODULE_10__["posToArr"])(pos);
- var dropResult = {
- event: event,
- node: node,
- dragNode: this.dragNode,
- dragNodesKeys: _dragNodesKeys.slice(),
- dropPosition: _dropPosition + Number(posArr[posArr.length - 1]),
- dropToGap: false
- };
- if (_dropPosition !== 0) {
- dropResult.dropToGap = true;
- }
- this.__emit('drop', dropResult);
- this.dragNode = null;
- },
- onNodeClick: function onNodeClick(e, treeNode) {
- this.__emit('click', e, treeNode);
- },
- onNodeDoubleClick: function onNodeDoubleClick(e, treeNode) {
- this.__emit('dblclick', e, treeNode);
- },
- onNodeSelect: function onNodeSelect(e, treeNode) {
- var selectedKeys = this.$data._selectedKeys;
- var keyEntities = this.$data._keyEntities;
- var multiple = this.$props.multiple;
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
- selected = _getOptionProps.selected,
- eventKey = _getOptionProps.eventKey;
- var targetSelected = !selected;
- // Update selected keys
- if (!targetSelected) {
- selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(selectedKeys, eventKey);
- } else if (!multiple) {
- selectedKeys = [eventKey];
- } else {
- selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(selectedKeys, eventKey);
- }
- // [Legacy] Not found related usage in doc or upper libs
- var selectedNodes = selectedKeys.map(function (key) {
- var entity = keyEntities.get(key);
- if (!entity) return null;
- return entity.node;
- }).filter(function (node) {
- return node;
- });
- this.setUncontrolledState({ _selectedKeys: selectedKeys });
- var eventObj = {
- event: 'select',
- selected: targetSelected,
- node: treeNode,
- selectedNodes: selectedNodes,
- nativeEvent: e
- };
- this.__emit('update:selectedKeys', selectedKeys);
- this.__emit('select', selectedKeys, eventObj);
- },
- onNodeCheck: function onNodeCheck(e, treeNode, checked) {
- var _$data3 = this.$data,
- keyEntities = _$data3._keyEntities,
- oriCheckedKeys = _$data3._checkedKeys,
- oriHalfCheckedKeys = _$data3._halfCheckedKeys;
- var checkStrictly = this.$props.checkStrictly;
- var _getOptionProps2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
- eventKey = _getOptionProps2.eventKey;
- // Prepare trigger arguments
- var checkedObj = void 0;
- var eventObj = {
- event: 'check',
- node: treeNode,
- checked: checked,
- nativeEvent: e
- };
- if (checkStrictly) {
- var checkedKeys = checked ? Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(oriCheckedKeys, eventKey) : Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(oriCheckedKeys, eventKey);
- var halfCheckedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(oriHalfCheckedKeys, eventKey);
- checkedObj = { checked: checkedKeys, halfChecked: halfCheckedKeys };
- eventObj.checkedNodes = checkedKeys.map(function (key) {
- return keyEntities.get(key);
- }).filter(function (entity) {
- return entity;
- }).map(function (entity) {
- return entity.node;
- });
- this.setUncontrolledState({ _checkedKeys: checkedKeys });
- } else {
- var _conductCheck = Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductCheck"])([eventKey], checked, keyEntities, {
- checkedKeys: oriCheckedKeys,
- halfCheckedKeys: oriHalfCheckedKeys
- }),
- _checkedKeys = _conductCheck.checkedKeys,
- _halfCheckedKeys = _conductCheck.halfCheckedKeys;
- checkedObj = _checkedKeys;
- // [Legacy] This is used for `rc-tree-select`
- eventObj.checkedNodes = [];
- eventObj.checkedNodesPositions = [];
- eventObj.halfCheckedKeys = _halfCheckedKeys;
- _checkedKeys.forEach(function (key) {
- var entity = keyEntities.get(key);
- if (!entity) return;
- var node = entity.node,
- pos = entity.pos;
- eventObj.checkedNodes.push(node);
- eventObj.checkedNodesPositions.push({ node: node, pos: pos });
- });
- this.setUncontrolledState({
- _checkedKeys: _checkedKeys,
- _halfCheckedKeys: _halfCheckedKeys
- });
- }
- this.__emit('check', checkedObj, eventObj);
- },
- onNodeLoad: function onNodeLoad(treeNode) {
- var _this2 = this;
- return new Promise(function (resolve) {
- // We need to get the latest state of loading/loaded keys
- _this2.setState(function (_ref) {
- var _ref$_loadedKeys = _ref._loadedKeys,
- loadedKeys = _ref$_loadedKeys === undefined ? [] : _ref$_loadedKeys,
- _ref$_loadingKeys = _ref._loadingKeys,
- loadingKeys = _ref$_loadingKeys === undefined ? [] : _ref$_loadingKeys;
- var loadData = _this2.$props.loadData;
- var _getOptionProps3 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
- eventKey = _getOptionProps3.eventKey;
- if (!loadData || loadedKeys.indexOf(eventKey) !== -1 || loadingKeys.indexOf(eventKey) !== -1) {
- return {};
- }
- // Process load data
- var promise = loadData(treeNode);
- promise.then(function () {
- var _$data4 = _this2.$data,
- currentLoadedKeys = _$data4._loadedKeys,
- currentLoadingKeys = _$data4._loadingKeys;
- var newLoadedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(currentLoadedKeys, eventKey);
- var newLoadingKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(currentLoadingKeys, eventKey);
- // onLoad should trigger before internal setState to avoid `loadData` trigger twice.
- // https://github.com/ant-design/ant-design/issues/12464
- _this2.__emit('load', newLoadedKeys, {
- event: 'load',
- node: treeNode
- });
- _this2.setUncontrolledState({
- _loadedKeys: newLoadedKeys
- });
- _this2.setState({
- _loadingKeys: newLoadingKeys
- });
- resolve();
- });
- return {
- _loadingKeys: Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(loadingKeys, eventKey)
- };
- });
- });
- },
- onNodeExpand: function onNodeExpand(e, treeNode) {
- var _this3 = this;
- var expandedKeys = this.$data._expandedKeys;
- var loadData = this.$props.loadData;
- var _getOptionProps4 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
- eventKey = _getOptionProps4.eventKey,
- expanded = _getOptionProps4.expanded;
- // Update selected keys
- var index = expandedKeys.indexOf(eventKey);
- var targetExpanded = !expanded;
- warning__WEBPACK_IMPORTED_MODULE_5___default()(expanded && index !== -1 || !expanded && index === -1, 'Expand state not sync with index check');
- if (targetExpanded) {
- expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(expandedKeys, eventKey);
- } else {
- expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(expandedKeys, eventKey);
- }
- this.setUncontrolledState({ _expandedKeys: expandedKeys });
- this.__emit('expand', expandedKeys, {
- node: treeNode,
- expanded: targetExpanded,
- nativeEvent: e
- });
- this.__emit('update:expandedKeys', expandedKeys);
- // Async Load data
- if (targetExpanded && loadData) {
- var loadPromise = this.onNodeLoad(treeNode);
- return loadPromise ? loadPromise.then(function () {
- // [Legacy] Refresh logic
- _this3.setUncontrolledState({ _expandedKeys: expandedKeys });
- }) : null;
- }
- return null;
- },
- onNodeMouseEnter: function onNodeMouseEnter(event, node) {
- this.__emit('mouseenter', { event: event, node: node });
- },
- onNodeMouseLeave: function onNodeMouseLeave(event, node) {
- this.__emit('mouseleave', { event: event, node: node });
- },
- onNodeContextMenu: function onNodeContextMenu(event, node) {
- event.preventDefault();
- this.__emit('rightClick', { event: event, node: node });
- },
- /**
- * Only update the value which is not in props
- */
- setUncontrolledState: function setUncontrolledState(state) {
- var needSync = false;
- var newState = {};
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
- Object.keys(state).forEach(function (name) {
- if (name.replace('_', '') in props) return;
- needSync = true;
- newState[name] = state[name];
- });
- if (needSync) {
- this.setState(newState);
- }
- },
- registerTreeNode: function registerTreeNode(key, node) {
- if (node) {
- this.domTreeNodes[key] = node;
- } else {
- delete this.domTreeNodes[key];
- }
- },
- isKeyChecked: function isKeyChecked(key) {
- var _$data$_checkedKeys = this.$data._checkedKeys,
- checkedKeys = _$data$_checkedKeys === undefined ? [] : _$data$_checkedKeys;
- return checkedKeys.indexOf(key) !== -1;
- },
- /**
- * [Legacy] Original logic use `key` as tracking clue.
- * We have to use `cloneElement` to pass `key`.
- */
- renderTreeNode: function renderTreeNode(child, index) {
- var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
- var _$data5 = this.$data,
- keyEntities = _$data5._keyEntities,
- _$data5$_expandedKeys = _$data5._expandedKeys,
- expandedKeys = _$data5$_expandedKeys === undefined ? [] : _$data5$_expandedKeys,
- _$data5$_selectedKeys = _$data5._selectedKeys,
- selectedKeys = _$data5$_selectedKeys === undefined ? [] : _$data5$_selectedKeys,
- _$data5$_halfCheckedK = _$data5._halfCheckedKeys,
- halfCheckedKeys = _$data5$_halfCheckedK === undefined ? [] : _$data5$_halfCheckedK,
- _$data5$_loadedKeys = _$data5._loadedKeys,
- loadedKeys = _$data5$_loadedKeys === undefined ? [] : _$data5$_loadedKeys,
- _$data5$_loadingKeys = _$data5._loadingKeys,
- loadingKeys = _$data5$_loadingKeys === undefined ? [] : _$data5$_loadingKeys,
- dragOverNodeKey = _$data5._dragOverNodeKey,
- dropPosition = _$data5._dropPosition;
- var pos = Object(_util__WEBPACK_IMPORTED_MODULE_10__["getPosition"])(level, index);
- var key = child.key;
- if (!key && (key === undefined || key === null)) {
- key = pos;
- }
- if (!keyEntities.get(key)) {
- Object(_util__WEBPACK_IMPORTED_MODULE_10__["warnOnlyTreeNode"])();
- return null;
- }
- return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(child, {
- props: {
- eventKey: key,
- expanded: expandedKeys.indexOf(key) !== -1,
- selected: selectedKeys.indexOf(key) !== -1,
- loaded: loadedKeys.indexOf(key) !== -1,
- loading: loadingKeys.indexOf(key) !== -1,
- checked: this.isKeyChecked(key),
- halfChecked: halfCheckedKeys.indexOf(key) !== -1,
- pos: pos,
- // [Legacy] Drag props
- dragOver: dragOverNodeKey === key && dropPosition === 0,
- dragOverGapTop: dragOverNodeKey === key && dropPosition === -1,
- dragOverGapBottom: dragOverNodeKey === key && dropPosition === 1
- },
- key: key
- });
- }
- },
- render: function render() {
- var _this4 = this;
- var h = arguments[0];
- var treeNode = this.$data._treeNode;
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- focusable = _$props.focusable,
- showLine = _$props.showLine,
- _$props$tabIndex = _$props.tabIndex,
- tabIndex = _$props$tabIndex === undefined ? 0 : _$props$tabIndex;
- return h(
- 'ul',
- {
- 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-show-line', showLine)),
- attrs: { role: 'tree',
- unselectable: 'on',
- tabIndex: focusable ? tabIndex : null
- }
- },
- [Object(_util__WEBPACK_IMPORTED_MODULE_10__["mapChildren"])(treeNode, function (node, index) {
- return _this4.renderTreeNode(node, index);
- })]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_proxyComponent__WEBPACK_IMPORTED_MODULE_9__["default"])(Tree));
- /***/ }),
- /***/ "./components/vc-tree/src/TreeNode.jsx":
- /*!*********************************************!*\
- !*** ./components/vc-tree/src/TreeNode.jsx ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-tree/src/util.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
- function noop() {}
- var ICON_OPEN = 'open';
- var ICON_CLOSE = 'close';
- var defaultTitle = '---';
- var TreeNode = {
- name: 'TreeNode',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
- __ANT_TREE_NODE: true,
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
- eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]), // Pass by parent `cloneElement`
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- // className: PropTypes.string,
- root: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- // onSelect: PropTypes.func,
- // By parent
- expanded: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- selected: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- loaded: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- halfChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- pos: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- dragOver: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- dragOverGapTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- dragOverGapBottom: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- // By user
- isLeaf: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- checkable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- disableCheckbox: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- dataRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
- }, {}),
- data: function data() {
- return {
- dragNodeHighlight: false
- };
- },
- inject: {
- vcTree: { 'default': function _default() {
- return {};
- } },
- vcTreeNode: { 'default': function _default() {
- return {};
- } }
- },
- provide: function provide() {
- return {
- vcTreeNode: this
- };
- },
- // Isomorphic needn't load data in server side
- mounted: function mounted() {
- var eventKey = this.eventKey,
- registerTreeNode = this.vcTree.registerTreeNode;
- this.syncLoadData(this.$props);
- registerTreeNode && registerTreeNode(eventKey, this);
- },
- updated: function updated() {
- this.syncLoadData(this.$props);
- },
- beforeDestroy: function beforeDestroy() {
- var eventKey = this.eventKey,
- registerTreeNode = this.vcTree.registerTreeNode;
- registerTreeNode && registerTreeNode(eventKey, null);
- },
- methods: {
- onSelectorClick: function onSelectorClick(e) {
- // Click trigger before select/check operation
- var onNodeClick = this.vcTree.onNodeClick;
- onNodeClick(e, this);
- if (this.isSelectable()) {
- this.onSelect(e);
- } else {
- this.onCheck(e);
- }
- },
- onSelectorDoubleClick: function onSelectorDoubleClick(e) {
- var onNodeDoubleClick = this.vcTree.onNodeDoubleClick;
- onNodeDoubleClick(e, this);
- },
- onSelect: function onSelect(e) {
- if (this.isDisabled()) return;
- var onNodeSelect = this.vcTree.onNodeSelect;
- e.preventDefault();
- onNodeSelect(e, this);
- },
- onCheck: function onCheck(e) {
- if (this.isDisabled()) return;
- var disableCheckbox = this.disableCheckbox,
- checked = this.checked;
- var onNodeCheck = this.vcTree.onNodeCheck;
- if (!this.isCheckable() || disableCheckbox) return;
- e.preventDefault();
- var targetChecked = !checked;
- onNodeCheck(e, this, targetChecked);
- },
- onMouseEnter: function onMouseEnter(e) {
- var onNodeMouseEnter = this.vcTree.onNodeMouseEnter;
- onNodeMouseEnter(e, this);
- },
- onMouseLeave: function onMouseLeave(e) {
- var onNodeMouseLeave = this.vcTree.onNodeMouseLeave;
- onNodeMouseLeave(e, this);
- },
- onContextMenu: function onContextMenu(e) {
- var onNodeContextMenu = this.vcTree.onNodeContextMenu;
- onNodeContextMenu(e, this);
- },
- onDragStart: function onDragStart(e) {
- var onNodeDragStart = this.vcTree.onNodeDragStart;
- e.stopPropagation();
- this.setState({
- dragNodeHighlight: true
- });
- onNodeDragStart(e, this);
- try {
- // ie throw error
- // firefox-need-it
- e.dataTransfer.setData('text/plain', '');
- } catch (error) {
- // empty
- }
- },
- onDragEnter: function onDragEnter(e) {
- var onNodeDragEnter = this.vcTree.onNodeDragEnter;
- e.preventDefault();
- e.stopPropagation();
- onNodeDragEnter(e, this);
- },
- onDragOver: function onDragOver(e) {
- var onNodeDragOver = this.vcTree.onNodeDragOver;
- e.preventDefault();
- e.stopPropagation();
- onNodeDragOver(e, this);
- },
- onDragLeave: function onDragLeave(e) {
- var onNodeDragLeave = this.vcTree.onNodeDragLeave;
- e.stopPropagation();
- onNodeDragLeave(e, this);
- },
- onDragEnd: function onDragEnd(e) {
- var onNodeDragEnd = this.vcTree.onNodeDragEnd;
- e.stopPropagation();
- this.setState({
- dragNodeHighlight: false
- });
- onNodeDragEnd(e, this);
- },
- onDrop: function onDrop(e) {
- var onNodeDrop = this.vcTree.onNodeDrop;
- e.preventDefault();
- e.stopPropagation();
- this.setState({
- dragNodeHighlight: false
- });
- onNodeDrop(e, this);
- },
- // Disabled item still can be switch
- onExpand: function onExpand(e) {
- var onNodeExpand = this.vcTree.onNodeExpand;
- onNodeExpand(e, this);
- },
- getNodeChildren: function getNodeChildren() {
- var children = this.$slots['default'];
- var originList = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(children);
- var targetList = Object(_util__WEBPACK_IMPORTED_MODULE_5__["getNodeChildren"])(originList);
- if (originList.length !== targetList.length) {
- Object(_util__WEBPACK_IMPORTED_MODULE_5__["warnOnlyTreeNode"])();
- }
- return targetList;
- },
- getNodeState: function getNodeState() {
- var expanded = this.expanded;
- if (this.isLeaf2()) {
- return null;
- }
- return expanded ? ICON_OPEN : ICON_CLOSE;
- },
- isLeaf2: function isLeaf2() {
- var isLeaf = this.isLeaf,
- loaded = this.loaded;
- var loadData = this.vcTree.loadData;
- var hasChildren = this.getNodeChildren().length !== 0;
- if (isLeaf === false) {
- return false;
- }
- return isLeaf || !loadData && !hasChildren || loadData && loaded && !hasChildren;
- },
- isDisabled: function isDisabled() {
- var disabled = this.disabled;
- var treeDisabled = this.vcTree.disabled;
- // Follow the logic of Selectable
- if (disabled === false) {
- return false;
- }
- return !!(treeDisabled || disabled);
- },
- isCheckable: function isCheckable() {
- var checkable = this.$props.checkable;
- var treeCheckable = this.vcTree.checkable;
- // Return false if tree or treeNode is not checkable
- if (!treeCheckable || checkable === false) return false;
- return treeCheckable;
- },
- // Load data to avoid default expanded tree without data
- syncLoadData: function syncLoadData(props) {
- var expanded = props.expanded,
- loading = props.loading,
- loaded = props.loaded;
- var _vcTree = this.vcTree,
- loadData = _vcTree.loadData,
- onNodeLoad = _vcTree.onNodeLoad;
- if (loading) return;
- // read from state to avoid loadData at same time
- if (loadData && expanded && !this.isLeaf2()) {
- // We needn't reload data when has children in sync logic
- // It's only needed in node expanded
- var hasChildren = this.getNodeChildren().length !== 0;
- if (!hasChildren && !loaded) {
- onNodeLoad(this);
- }
- }
- },
- isSelectable: function isSelectable() {
- var selectable = this.selectable;
- var treeSelectable = this.vcTree.selectable;
- // Ignore when selectable is undefined or null
- if (typeof selectable === 'boolean') {
- return selectable;
- }
- return treeSelectable;
- },
- // Switcher
- renderSwitcher: function renderSwitcher() {
- var h = this.$createElement;
- var expanded = this.expanded;
- var prefixCls = this.vcTree.prefixCls;
- var switcherIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'switcherIcon', {}, false) || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this.vcTree, 'switcherIcon', {}, false);
- if (this.isLeaf2()) {
- return h(
- 'span',
- {
- key: 'switcher',
- 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-switcher', prefixCls + '-switcher-noop')
- },
- [typeof switcherIcon === 'function' ? switcherIcon(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef, { isLeaf: true })) : switcherIcon]
- );
- }
- var switcherCls = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-switcher', prefixCls + '-switcher_' + (expanded ? ICON_OPEN : ICON_CLOSE));
- return h(
- 'span',
- { key: 'switcher', on: {
- 'click': this.onExpand
- },
- 'class': switcherCls },
- [typeof switcherIcon === 'function' ? switcherIcon(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef, { isLeaf: false })) : switcherIcon]
- );
- },
- // Checkbox
- renderCheckbox: function renderCheckbox() {
- var h = this.$createElement;
- var checked = this.checked,
- halfChecked = this.halfChecked,
- disableCheckbox = this.disableCheckbox;
- var prefixCls = this.vcTree.prefixCls;
- var disabled = this.isDisabled();
- var checkable = this.isCheckable();
- if (!checkable) return null;
- // [Legacy] Custom element should be separate with `checkable` in future
- var $custom = typeof checkable !== 'boolean' ? checkable : null;
- return h(
- 'span',
- {
- key: 'checkbox',
- 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-checkbox', checked && prefixCls + '-checkbox-checked', !checked && halfChecked && prefixCls + '-checkbox-indeterminate', (disabled || disableCheckbox) && prefixCls + '-checkbox-disabled'),
- on: {
- 'click': this.onCheck
- }
- },
- [$custom]
- );
- },
- renderIcon: function renderIcon() {
- var h = this.$createElement;
- var loading = this.loading;
- var prefixCls = this.vcTree.prefixCls;
- return h('span', {
- key: 'icon',
- 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-iconEle', prefixCls + '-icon__' + (this.getNodeState() || 'docu'), loading && prefixCls + '-icon_loading')
- });
- },
- // Icon + Title
- renderSelector: function renderSelector(h) {
- var selected = this.selected,
- loading = this.loading,
- dragNodeHighlight = this.dragNodeHighlight;
- var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon', {}, false);
- var _vcTree2 = this.vcTree,
- prefixCls = _vcTree2.prefixCls,
- showIcon = _vcTree2.showIcon,
- treeIcon = _vcTree2.icon,
- draggable = _vcTree2.draggable,
- loadData = _vcTree2.loadData;
- var disabled = this.isDisabled();
- var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'title', {}, false);
- var wrapClass = prefixCls + '-node-content-wrapper';
- // Icon - Still show loading icon when loading without showIcon
- var $icon = void 0;
- if (showIcon) {
- var currentIcon = icon || treeIcon;
- $icon = currentIcon ? h(
- 'span',
- { 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-iconEle', prefixCls + '-icon__customize') },
- [typeof currentIcon === 'function' ? currentIcon(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef), h) : currentIcon]
- ) : this.renderIcon();
- } else if (loadData && loading) {
- $icon = this.renderIcon();
- }
- var currentTitle = title;
- var $title = currentTitle ? h(
- 'span',
- { 'class': prefixCls + '-title' },
- [typeof currentTitle === 'function' ? currentTitle(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef), h) : currentTitle]
- ) : h(
- 'span',
- { 'class': prefixCls + '-title' },
- [defaultTitle]
- );
- return h(
- 'span',
- {
- key: 'selector',
- ref: 'selectHandle',
- attrs: { title: typeof title === 'string' ? title : '',
- draggable: !disabled && draggable || undefined,
- 'aria-grabbed': !disabled && draggable || undefined
- },
- 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()('' + wrapClass, wrapClass + '-' + (this.getNodeState() || 'normal'), !disabled && (selected || dragNodeHighlight) && prefixCls + '-node-selected', !disabled && draggable && 'draggable'), on: {
- 'mouseenter': this.onMouseEnter,
- 'mouseleave': this.onMouseLeave,
- 'contextmenu': this.onContextMenu,
- 'click': this.onSelectorClick,
- 'dblclick': this.onSelectorDoubleClick,
- 'dragstart': draggable ? this.onDragStart : noop
- }
- },
- [$icon, $title]
- );
- },
- // Children list wrapped with `Animation`
- renderChildren: function renderChildren() {
- var h = this.$createElement;
- var expanded = this.expanded,
- pos = this.pos;
- var _vcTree3 = this.vcTree,
- prefixCls = _vcTree3.prefixCls,
- openTransitionName = _vcTree3.openTransitionName,
- openAnimation = _vcTree3.openAnimation,
- renderTreeNode = _vcTree3.renderTreeNode;
- var animProps = {};
- if (openTransitionName) {
- animProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__["default"])(openTransitionName);
- } else if ((typeof openAnimation === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(openAnimation)) === 'object') {
- animProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, openAnimation);
- animProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({ css: false }, animProps.props);
- }
- // Children TreeNode
- var nodeList = this.getNodeChildren();
- if (nodeList.length === 0) {
- return null;
- }
- var $children = void 0;
- if (expanded) {
- $children = h(
- 'ul',
- {
- 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-child-tree', expanded && prefixCls + '-child-tree-open'),
- attrs: { 'data-expanded': expanded,
- role: 'group'
- }
- },
- [Object(_util__WEBPACK_IMPORTED_MODULE_5__["mapChildren"])(nodeList, function (node, index) {
- return renderTreeNode(node, index, pos);
- })]
- );
- }
- return h(
- 'transition',
- animProps,
- [$children]
- );
- }
- },
- render: function render(h) {
- var _ref;
- var _$props = this.$props,
- dragOver = _$props.dragOver,
- dragOverGapTop = _$props.dragOverGapTop,
- dragOverGapBottom = _$props.dragOverGapBottom,
- isLeaf = _$props.isLeaf,
- expanded = _$props.expanded,
- selected = _$props.selected,
- checked = _$props.checked,
- halfChecked = _$props.halfChecked,
- loading = _$props.loading;
- var _vcTree4 = this.vcTree,
- prefixCls = _vcTree4.prefixCls,
- filterTreeNode = _vcTree4.filterTreeNode,
- draggable = _vcTree4.draggable;
- var disabled = this.isDisabled();
- return h(
- 'li',
- {
- 'class': (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-switcher-' + (expanded ? 'open' : 'close'), !isLeaf), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-checkbox-checked', checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-checkbox-indeterminate', halfChecked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-selected', selected), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-loading', loading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'drag-over', !disabled && dragOver), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'drag-over-gap-top', !disabled && dragOverGapTop), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'drag-over-gap-bottom', !disabled && dragOverGapBottom), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'filter-node', filterTreeNode && filterTreeNode(this)), _ref),
- attrs: { role: 'treeitem'
- },
- on: {
- 'dragenter': draggable ? this.onDragEnter : noop,
- 'dragover': draggable ? this.onDragOver : noop,
- 'dragleave': draggable ? this.onDragLeave : noop,
- 'drop': draggable ? this.onDrop : noop,
- 'dragend': draggable ? this.onDragEnd : noop
- }
- },
- [this.renderSwitcher(), this.renderCheckbox(), this.renderSelector(h), this.renderChildren()]
- );
- }
- };
- TreeNode.isTreeNode = 1;
- /* harmony default export */ __webpack_exports__["default"] = (TreeNode);
- /***/ }),
- /***/ "./components/vc-tree/src/index.js":
- /*!*****************************************!*\
- !*** ./components/vc-tree/src/index.js ***!
- \*****************************************/
- /*! exports provided: Tree, TreeNode, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tree */ "./components/vc-tree/src/Tree.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tree", function() { return _Tree__WEBPACK_IMPORTED_MODULE_0__["Tree"]; });
- /* harmony import */ var _TreeNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TreeNode */ "./components/vc-tree/src/TreeNode.jsx");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return _TreeNode__WEBPACK_IMPORTED_MODULE_1__["default"]; });
- _Tree__WEBPACK_IMPORTED_MODULE_0__["Tree"].TreeNode = _TreeNode__WEBPACK_IMPORTED_MODULE_1__["default"];
- _Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode = _TreeNode__WEBPACK_IMPORTED_MODULE_1__["default"];
- /* harmony default export */ __webpack_exports__["default"] = (_Tree__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-tree/src/util.js":
- /*!****************************************!*\
- !*** ./components/vc-tree/src/util.js ***!
- \****************************************/
- /*! exports provided: warnOnlyTreeNode, arrDel, arrAdd, posToArr, getPosition, isTreeNode, getNodeChildren, isCheckDisabled, traverseTreeNodes, mapChildren, getDragNodesKeys, calcDropPosition, calcSelectedKeys, convertDataToTree, convertTreeToEntities, parseCheckedKeys, conductCheck, conductExpandParent, getDataAndAria */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warnOnlyTreeNode", function() { return warnOnlyTreeNode; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arrDel", function() { return arrDel; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arrAdd", function() { return arrAdd; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "posToArr", function() { return posToArr; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPosition", function() { return getPosition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTreeNode", function() { return isTreeNode; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNodeChildren", function() { return getNodeChildren; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCheckDisabled", function() { return isCheckDisabled; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "traverseTreeNodes", function() { return traverseTreeNodes; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapChildren", function() { return mapChildren; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDragNodesKeys", function() { return getDragNodesKeys; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calcDropPosition", function() { return calcDropPosition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calcSelectedKeys", function() { return calcSelectedKeys; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertDataToTree", function() { return convertDataToTree; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertTreeToEntities", function() { return convertTreeToEntities; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCheckedKeys", function() { return parseCheckedKeys; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conductCheck", function() { return conductCheck; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conductExpandParent", function() { return conductExpandParent; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataAndAria", function() { return getDataAndAria; });
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
- /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
- /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
- /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
- /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
- /* harmony import */ var _TreeNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TreeNode */ "./components/vc-tree/src/TreeNode.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* eslint no-loop-func: 0*/
- var DRAG_SIDE_RANGE = 0.25;
- var DRAG_MIN_GAP = 2;
- var onlyTreeNodeWarned = false;
- function warnOnlyTreeNode() {
- if (onlyTreeNodeWarned) return;
- onlyTreeNodeWarned = true;
- warning__WEBPACK_IMPORTED_MODULE_4___default()(false, 'Tree only accept TreeNode as children.');
- }
- function arrDel(list, value) {
- var clone = list.slice();
- var index = clone.indexOf(value);
- if (index >= 0) {
- clone.splice(index, 1);
- }
- return clone;
- }
- function arrAdd(list, value) {
- var clone = list.slice();
- if (clone.indexOf(value) === -1) {
- clone.push(value);
- }
- return clone;
- }
- function posToArr(pos) {
- return pos.split('-');
- }
- function getPosition(level, index) {
- return level + '-' + index;
- }
- function isTreeNode(node) {
- return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getSlotOptions"])(node).isTreeNode;
- }
- function getNodeChildren() {
- var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- return children.filter(isTreeNode);
- }
- function isCheckDisabled(node) {
- var _ref = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node) || {},
- disabled = _ref.disabled,
- disableCheckbox = _ref.disableCheckbox,
- checkable = _ref.checkable;
- return !!(disabled || disableCheckbox) || checkable === false;
- }
- function traverseTreeNodes(treeNodes, callback) {
- function processNode(node, index, parent) {
- var children = node ? node.componentOptions.children : treeNodes;
- var pos = node ? getPosition(parent.pos, index) : 0;
- // Filter children
- var childList = getNodeChildren(children);
- // Process node if is not root
- if (node) {
- var key = node.key;
- if (!key && (key === undefined || key === null)) {
- key = pos;
- }
- var data = {
- node: node,
- index: index,
- pos: pos,
- key: key,
- parentPos: parent.node ? parent.pos : null
- };
- callback(data);
- }
- // Process children node
- childList.forEach(function (subNode, subIndex) {
- processNode(subNode, subIndex, { node: node, pos: pos });
- });
- }
- processNode(null);
- }
- /**
- * Use `rc-util` `toArray` to get the children list which keeps the key.
- * And return single node if children is only one(This can avoid `key` missing check).
- */
- function mapChildren() {
- var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- var func = arguments[1];
- var list = children.map(func);
- if (list.length === 1) {
- return list[0];
- }
- return list;
- }
- function getDragNodesKeys(treeNodes, node) {
- var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node),
- eventKey = _getOptionProps.eventKey,
- pos = _getOptionProps.pos;
- var dragNodesKeys = [];
- traverseTreeNodes(treeNodes, function (_ref2) {
- var key = _ref2.key;
- dragNodesKeys.push(key);
- });
- dragNodesKeys.push(eventKey || pos);
- return dragNodesKeys;
- }
- function calcDropPosition(event, treeNode) {
- var clientY = event.clientY;
- var _treeNode$$refs$selec = treeNode.$refs.selectHandle.getBoundingClientRect(),
- top = _treeNode$$refs$selec.top,
- bottom = _treeNode$$refs$selec.bottom,
- height = _treeNode$$refs$selec.height;
- var des = Math.max(height * DRAG_SIDE_RANGE, DRAG_MIN_GAP);
- if (clientY <= top + des) {
- return -1;
- }
- if (clientY >= bottom - des) {
- return 1;
- }
- return 0;
- }
- /**
- * Return selectedKeys according with multiple prop
- * @param selectedKeys
- * @param props
- * @returns [string]
- */
- function calcSelectedKeys(selectedKeys, props) {
- if (!selectedKeys) {
- return undefined;
- }
- var multiple = props.multiple;
- if (multiple) {
- return selectedKeys.slice();
- }
- if (selectedKeys.length) {
- return [selectedKeys[0]];
- }
- return selectedKeys;
- }
- /**
- * Since React internal will convert key to string,
- * we need do this to avoid `checkStrictly` use number match
- */
- // function keyListToString (keyList) {
- // if (!keyList) return keyList
- // return keyList.map(key => String(key))
- // }
- var internalProcessProps = function internalProcessProps() {
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- return {
- props: Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(props, ['on', 'key', 'class', 'className', 'style']),
- on: props.on || {},
- 'class': props['class'] || props.className,
- style: props.style,
- key: props.key
- };
- };
- function convertDataToTree(h, treeData, processor) {
- if (!treeData) return [];
- var _ref3 = processor || {},
- _ref3$processProps = _ref3.processProps,
- processProps = _ref3$processProps === undefined ? internalProcessProps : _ref3$processProps;
- var list = Array.isArray(treeData) ? treeData : [treeData];
- return list.map(function (_ref4) {
- var children = _ref4.children,
- props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_ref4, ['children']);
- var childrenNodes = convertDataToTree(h, children, processor);
- return h(
- _TreeNode__WEBPACK_IMPORTED_MODULE_6__["default"],
- processProps(props),
- [childrenNodes]
- );
- });
- }
- // TODO: ========================= NEW LOGIC =========================
- /**
- * Calculate treeNodes entities. `processTreeEntity` is used for `rc-tree-select`
- * @param treeNodes
- * @param processTreeEntity User can customize the entity
- */
- function convertTreeToEntities(treeNodes) {
- var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
- initWrapper = _ref5.initWrapper,
- processEntity = _ref5.processEntity,
- onProcessFinished = _ref5.onProcessFinished;
- var posEntities = new Map();
- var keyEntities = new Map();
- var wrapper = {
- posEntities: posEntities,
- keyEntities: keyEntities
- };
- if (initWrapper) {
- wrapper = initWrapper(wrapper) || wrapper;
- }
- traverseTreeNodes(treeNodes, function (item) {
- var node = item.node,
- index = item.index,
- pos = item.pos,
- key = item.key,
- parentPos = item.parentPos;
- var entity = { node: node, index: index, key: key, pos: pos };
- posEntities.set(pos, entity);
- keyEntities.set(key, entity);
- // Fill children
- entity.parent = posEntities.get(parentPos);
- if (entity.parent) {
- entity.parent.children = entity.parent.children || [];
- entity.parent.children.push(entity);
- }
- if (processEntity) {
- processEntity(entity, wrapper);
- }
- });
- if (onProcessFinished) {
- onProcessFinished(wrapper);
- }
- return wrapper;
- }
- /**
- * Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style
- */
- function parseCheckedKeys(keys) {
- if (!keys) {
- return null;
- }
- // Convert keys to object format
- var keyProps = void 0;
- if (Array.isArray(keys)) {
- // [Legacy] Follow the api doc
- keyProps = {
- checkedKeys: keys,
- halfCheckedKeys: undefined
- };
- } else if ((typeof keys === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(keys)) === 'object') {
- keyProps = {
- checkedKeys: keys.checked || undefined,
- halfCheckedKeys: keys.halfChecked || undefined
- };
- } else {
- warning__WEBPACK_IMPORTED_MODULE_4___default()(false, '`checkedKeys` is not an array or an object');
- return null;
- }
- // keyProps.checkedKeys = keyListToString(keyProps.checkedKeys)
- // keyProps.halfCheckedKeys = keyListToString(keyProps.halfCheckedKeys)
- return keyProps;
- }
- /**
- * Conduct check state by the keyList. It will conduct up & from the provided key.
- * If the conduct path reach the disabled or already checked / unchecked node will stop conduct.
- * @param keyList list of keys
- * @param isCheck is check the node or not
- * @param keyEntities parsed by `convertTreeToEntities` function in Tree
- * @param checkStatus Can pass current checked status for process (usually for uncheck operation)
- * @returns {{checkedKeys: [], halfCheckedKeys: []}}
- */
- function conductCheck(keyList, isCheck, keyEntities) {
- var checkStatus = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
- var checkedKeys = new Map();
- var halfCheckedKeys = new Map(); // Record the key has some child checked (include child half checked)
- (checkStatus.checkedKeys || []).forEach(function (key) {
- checkedKeys.set(key, true);
- });
- (checkStatus.halfCheckedKeys || []).forEach(function (key) {
- halfCheckedKeys.set(key, true);
- });
- // Conduct up
- function conductUp(key) {
- if (checkedKeys.get(key) === isCheck) return;
- var entity = keyEntities.get(key);
- if (!entity) return;
- var children = entity.children,
- parent = entity.parent,
- node = entity.node;
- if (isCheckDisabled(node)) return;
- // Check child node checked status
- var everyChildChecked = true;
- var someChildChecked = false; // Child checked or half checked
- (children || []).filter(function (child) {
- return !isCheckDisabled(child.node);
- }).forEach(function (_ref6) {
- var childKey = _ref6.key;
- var childChecked = checkedKeys.get(childKey);
- var childHalfChecked = halfCheckedKeys.get(childKey);
- if (childChecked || childHalfChecked) someChildChecked = true;
- if (!childChecked) everyChildChecked = false;
- });
- // Update checked status
- if (isCheck) {
- checkedKeys.set(key, everyChildChecked);
- } else {
- checkedKeys.set(key, false);
- }
- halfCheckedKeys.set(key, someChildChecked);
- if (parent) {
- conductUp(parent.key);
- }
- }
- // Conduct down
- function conductDown(key) {
- if (checkedKeys.get(key) === isCheck) return;
- var entity = keyEntities.get(key);
- if (!entity) return;
- var children = entity.children,
- node = entity.node;
- if (isCheckDisabled(node)) return;
- checkedKeys.set(key, isCheck);
- (children || []).forEach(function (child) {
- conductDown(child.key);
- });
- }
- function conduct(key) {
- var entity = keyEntities.get(key);
- if (!entity) {
- warning__WEBPACK_IMPORTED_MODULE_4___default()(false, '\'' + key + '\' does not exist in the tree.');
- return;
- }
- var children = entity.children,
- parent = entity.parent,
- node = entity.node;
- checkedKeys.set(key, isCheck);
- if (isCheckDisabled(node)) return;
- // Conduct down
- (children || []).filter(function (child) {
- return !isCheckDisabled(child.node);
- }).forEach(function (child) {
- conductDown(child.key);
- });
- // Conduct up
- if (parent) {
- conductUp(parent.key);
- }
- }
- (keyList || []).forEach(function (key) {
- conduct(key);
- });
- var checkedKeyList = [];
- var halfCheckedKeyList = [];
- // Fill checked list
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
- try {
- for (var _iterator = checkedKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var _ref7 = _step.value;
- var _ref8 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref7, 2);
- var key = _ref8[0];
- var value = _ref8[1];
- if (value) {
- checkedKeyList.push(key);
- }
- }
- // Fill half checked list
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator['return']) {
- _iterator['return']();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
- var _iteratorNormalCompletion2 = true;
- var _didIteratorError2 = false;
- var _iteratorError2 = undefined;
- try {
- for (var _iterator2 = halfCheckedKeys[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
- var _ref9 = _step2.value;
- var _ref10 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref9, 2);
- var _key = _ref10[0];
- var _value = _ref10[1];
- if (!checkedKeys.get(_key) && _value) {
- halfCheckedKeyList.push(_key);
- }
- }
- } catch (err) {
- _didIteratorError2 = true;
- _iteratorError2 = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion2 && _iterator2['return']) {
- _iterator2['return']();
- }
- } finally {
- if (_didIteratorError2) {
- throw _iteratorError2;
- }
- }
- }
- return {
- checkedKeys: checkedKeyList,
- halfCheckedKeys: halfCheckedKeyList
- };
- }
- /**
- * If user use `autoExpandParent` we should get the list of parent node
- * @param keyList
- * @param keyEntities
- */
- function conductExpandParent(keyList, keyEntities) {
- var expandedKeys = new Map();
- function conductUp(key) {
- if (expandedKeys.get(key)) return;
- var entity = keyEntities.get(key);
- if (!entity) return;
- expandedKeys.set(key, true);
- var parent = entity.parent,
- node = entity.node;
- var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node);
- if (props && props.disabled) return;
- if (parent) {
- conductUp(parent.key);
- }
- }
- (keyList || []).forEach(function (key) {
- conductUp(key);
- });
- return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(expandedKeys.keys()));
- }
- /**
- * Returns only the data- and aria- key/value pairs
- * @param {object} props
- */
- function getDataAndAria(props) {
- return Object.keys(props).reduce(function (prev, key) {
- if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-') {
- prev[key] = props[key];
- }
- return prev;
- }, {});
- }
- /***/ }),
- /***/ "./components/vc-trigger/LazyRenderBox.jsx":
- /*!*************************************************!*\
- !*** ./components/vc-trigger/LazyRenderBox.jsx ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
- hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string
- },
- render: function render() {
- var h = arguments[0];
- var _$props = this.$props,
- hiddenClassName = _$props.hiddenClassName,
- visible = _$props.visible;
- var children = null;
- if (hiddenClassName || !this.$slots['default'] || this.$slots['default'].length > 1) {
- var cls = '';
- if (!visible && hiddenClassName) {
- // cls += ` ${hiddenClassName}`
- }
- children = h(
- 'div',
- { 'class': cls },
- [this.$slots['default']]
- );
- } else {
- children = this.$slots['default'][0];
- }
- return children;
- }
- });
- /***/ }),
- /***/ "./components/vc-trigger/Popup.jsx":
- /*!*****************************************!*\
- !*** ./components/vc-trigger/Popup.jsx ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
- /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-align */ "./components/vc-align/index.js");
- /* harmony import */ var _PopupInner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PopupInner */ "./components/vc-trigger/PopupInner.jsx");
- /* harmony import */ var _LazyRenderBox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LazyRenderBox */ "./components/vc-trigger/LazyRenderBox.jsx");
- /* harmony import */ var _util_css_animation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/css-animation */ "./components/_util/css-animation/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'VCTriggerPopup',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
- props: {
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- getClassNameFromAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- getRootDomNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- destroyPopupOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- maskAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
- popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(function () {
- return {};
- }),
- stretch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- point: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape({
- pageX: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
- pageY: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number
- })
- },
- data: function data() {
- this.domEl = null;
- return {
- // Used for stretch
- stretchChecked: false,
- targetWidth: undefined,
- targetHeight: undefined
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- _this.rootNode = _this.getPopupDomNode();
- _this.setStretchSize();
- });
- },
- // 如添加会导致动画失效,如放开会导致快速输入时闪动 https://github.com/vueComponent/ant-design-vue/issues/1327,
- // 目前方案是保留动画,闪动问题(动画多次执行)进一步定位
- // beforeUpdate() {
- // if (this.domEl && this.domEl.rcEndListener) {
- // this.domEl.rcEndListener();
- // this.domEl = null;
- // }
- // },
- updated: function updated() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.setStretchSize();
- });
- },
- beforeDestroy: function beforeDestroy() {
- if (this.$el.parentNode) {
- this.$el.parentNode.removeChild(this.$el);
- } else if (this.$el.remove) {
- this.$el.remove();
- }
- },
- methods: {
- onAlign: function onAlign(popupDomNode, align) {
- var props = this.$props;
- var currentAlignClassName = props.getClassNameFromAlign(align);
- // FIX: https://github.com/react-component/trigger/issues/56
- // FIX: https://github.com/react-component/tooltip/issues/79
- if (this.currentAlignClassName !== currentAlignClassName) {
- this.currentAlignClassName = currentAlignClassName;
- popupDomNode.className = this.getClassName(currentAlignClassName);
- }
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
- listeners.align && listeners.align(popupDomNode, align);
- },
- // Record size if stretch needed
- setStretchSize: function setStretchSize() {
- var _$props = this.$props,
- stretch = _$props.stretch,
- getRootDomNode = _$props.getRootDomNode,
- visible = _$props.visible;
- var _$data = this.$data,
- stretchChecked = _$data.stretchChecked,
- targetHeight = _$data.targetHeight,
- targetWidth = _$data.targetWidth;
- if (!stretch || !visible) {
- if (stretchChecked) {
- this.setState({ stretchChecked: false });
- }
- return;
- }
- var $ele = getRootDomNode();
- if (!$ele) return;
- var height = $ele.offsetHeight;
- var width = $ele.offsetWidth;
- if (targetHeight !== height || targetWidth !== width || !stretchChecked) {
- this.setState({
- stretchChecked: true,
- targetHeight: height,
- targetWidth: width
- });
- }
- },
- getPopupDomNode: function getPopupDomNode() {
- return this.$refs.popupInstance ? this.$refs.popupInstance.$el : null;
- },
- getTargetElement: function getTargetElement() {
- return this.$props.getRootDomNode();
- },
- // `target` on `rc-align` can accept as a function to get the bind element or a point.
- // ref: https://www.npmjs.com/package/rc-align
- getAlignTarget: function getAlignTarget() {
- var point = this.$props.point;
- if (point) {
- return point;
- }
- return this.getTargetElement;
- },
- getMaskTransitionName: function getMaskTransitionName() {
- var props = this.$props;
- var transitionName = props.maskTransitionName;
- var animation = props.maskAnimation;
- if (!transitionName && animation) {
- transitionName = props.prefixCls + '-' + animation;
- }
- return transitionName;
- },
- getTransitionName: function getTransitionName() {
- var props = this.$props;
- var transitionName = props.transitionName;
- var animation = props.animation;
- if (!transitionName) {
- if (typeof animation === 'string') {
- transitionName = '' + animation;
- } else if (animation && animation.props && animation.props.name) {
- transitionName = animation.props.name;
- }
- }
- return transitionName;
- },
- getClassName: function getClassName(currentAlignClassName) {
- return this.$props.prefixCls + ' ' + this.$props.popupClassName + ' ' + currentAlignClassName;
- },
- getPopupElement: function getPopupElement() {
- var _this3 = this;
- var h = this.$createElement;
- var props = this.$props,
- $slots = this.$slots,
- getTransitionName = this.getTransitionName;
- var _$data2 = this.$data,
- stretchChecked = _$data2.stretchChecked,
- targetHeight = _$data2.targetHeight,
- targetWidth = _$data2.targetWidth;
- var align = props.align,
- visible = props.visible,
- prefixCls = props.prefixCls,
- animation = props.animation,
- popupStyle = props.popupStyle,
- getClassNameFromAlign = props.getClassNameFromAlign,
- destroyPopupOnHide = props.destroyPopupOnHide,
- stretch = props.stretch;
- var className = this.getClassName(this.currentAlignClassName || getClassNameFromAlign(align));
- // const hiddenClassName = `${prefixCls}-hidden`
- if (!visible) {
- this.currentAlignClassName = null;
- }
- var sizeStyle = {};
- if (stretch) {
- // Stretch with target
- if (stretch.indexOf('height') !== -1) {
- sizeStyle.height = typeof targetHeight === 'number' ? targetHeight + 'px' : targetHeight;
- } else if (stretch.indexOf('minHeight') !== -1) {
- sizeStyle.minHeight = typeof targetHeight === 'number' ? targetHeight + 'px' : targetHeight;
- }
- if (stretch.indexOf('width') !== -1) {
- sizeStyle.width = typeof targetWidth === 'number' ? targetWidth + 'px' : targetWidth;
- } else if (stretch.indexOf('minWidth') !== -1) {
- sizeStyle.minWidth = typeof targetWidth === 'number' ? targetWidth + 'px' : targetWidth;
- }
- // Delay force align to makes ui smooth
- if (!stretchChecked) {
- // sizeStyle.visibility = 'hidden'
- setTimeout(function () {
- if (_this3.$refs.alignInstance) {
- _this3.$refs.alignInstance.forceAlign();
- }
- }, 0);
- }
- }
- var popupInnerProps = {
- props: {
- prefixCls: prefixCls,
- visible: visible
- // hiddenClassName,
- },
- 'class': className,
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
- ref: 'popupInstance',
- style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, sizeStyle, popupStyle, this.getZIndexStyle())
- };
- var transitionProps = {
- props: {
- appear: true,
- css: false
- }
- };
- var transitionName = getTransitionName();
- var useTransition = !!transitionName;
- var transitionEvent = {
- beforeEnter: function beforeEnter() {
- // el.style.display = el.__vOriginalDisplay
- // this.$refs.alignInstance.forceAlign();
- },
- enter: function enter(el, done) {
- // render 后 vue 会移除通过animate动态添加的 class导致动画闪动,延迟两帧添加动画class,可以进一步定位或者重写 transition 组件
- _this3.$nextTick(function () {
- if (_this3.$refs.alignInstance) {
- _this3.$refs.alignInstance.$nextTick(function () {
- _this3.domEl = el;
- Object(_util_css_animation__WEBPACK_IMPORTED_MODULE_6__["default"])(el, transitionName + '-enter', done);
- });
- } else {
- done();
- }
- });
- },
- beforeLeave: function beforeLeave() {
- _this3.domEl = null;
- },
- leave: function leave(el, done) {
- Object(_util_css_animation__WEBPACK_IMPORTED_MODULE_6__["default"])(el, transitionName + '-leave', done);
- }
- };
- if ((typeof animation === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(animation)) === 'object') {
- useTransition = true;
- var _animation$on = animation.on,
- on = _animation$on === undefined ? {} : _animation$on,
- _animation$props = animation.props,
- _props = _animation$props === undefined ? {} : _animation$props;
- transitionProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, transitionProps.props, _props);
- transitionProps.on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, transitionEvent, on);
- } else {
- transitionProps.on = transitionEvent;
- }
- if (!useTransition) {
- transitionProps = {};
- }
- if (destroyPopupOnHide) {
- return h(
- 'transition',
- transitionProps,
- [visible ? h(
- _vc_align__WEBPACK_IMPORTED_MODULE_3__["default"],
- {
- attrs: {
- target: this.getAlignTarget(),
- monitorWindowResize: true,
- align: align
- },
- key: 'popup',
- ref: 'alignInstance', on: {
- 'align': this.onAlign
- }
- },
- [h(
- _PopupInner__WEBPACK_IMPORTED_MODULE_4__["default"],
- popupInnerProps,
- [$slots['default']]
- )]
- ) : null]
- );
- }
- return h(
- 'transition',
- transitionProps,
- [h(
- _vc_align__WEBPACK_IMPORTED_MODULE_3__["default"],
- {
- directives: [{
- name: 'show',
- value: visible
- }],
- attrs: {
- target: this.getAlignTarget(),
- monitorWindowResize: true,
- disabled: !visible,
- align: align
- },
- key: 'popup',
- ref: 'alignInstance', on: {
- 'align': this.onAlign
- }
- },
- [h(
- _PopupInner__WEBPACK_IMPORTED_MODULE_4__["default"],
- popupInnerProps,
- [$slots['default']]
- )]
- )]
- );
- },
- getZIndexStyle: function getZIndexStyle() {
- var style = {};
- var props = this.$props;
- if (props.zIndex !== undefined) {
- style.zIndex = props.zIndex;
- }
- return style;
- },
- getMaskElement: function getMaskElement() {
- var h = this.$createElement;
- var props = this.$props;
- var maskElement = null;
- if (props.mask) {
- var maskTransition = this.getMaskTransitionName();
- maskElement = h(_LazyRenderBox__WEBPACK_IMPORTED_MODULE_5__["default"], {
- directives: [{
- name: 'show',
- value: props.visible
- }],
- style: this.getZIndexStyle(),
- key: 'mask',
- 'class': props.prefixCls + '-mask',
- attrs: { visible: props.visible
- }
- });
- if (maskTransition) {
- maskElement = h(
- 'transition',
- {
- attrs: { appear: true, name: maskTransition }
- },
- [maskElement]
- );
- }
- }
- return maskElement;
- }
- },
- render: function render() {
- var h = arguments[0];
- var getMaskElement = this.getMaskElement,
- getPopupElement = this.getPopupElement;
- return h('div', [getMaskElement(), getPopupElement()]);
- }
- });
- /***/ }),
- /***/ "./components/vc-trigger/PopupInner.jsx":
- /*!**********************************************!*\
- !*** ./components/vc-trigger/PopupInner.jsx ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
- /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _LazyRenderBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LazyRenderBox */ "./components/vc-trigger/LazyRenderBox.jsx");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def(''),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
- },
- render: function render() {
- var h = arguments[0];
- var _$props = this.$props,
- prefixCls = _$props.prefixCls,
- visible = _$props.visible,
- hiddenClassName = _$props.hiddenClassName;
- var divProps = {
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
- };
- return h(
- 'div',
- babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([divProps, { 'class': !visible ? hiddenClassName : '' }]),
- [h(
- _LazyRenderBox__WEBPACK_IMPORTED_MODULE_2__["default"],
- { 'class': prefixCls + '-content', attrs: { visible: visible }
- },
- [this.$slots['default']]
- )]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-trigger/Trigger.jsx":
- /*!*******************************************!*\
- !*** ./components/vc-trigger/Trigger.jsx ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
- /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/requestAnimationTimeout */ "./components/_util/requestAnimationTimeout.js");
- /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
- /* harmony import */ var _Popup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Popup */ "./components/vc-trigger/Popup.jsx");
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils */ "./components/vc-trigger/utils.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
- /* harmony import */ var _util_ContainerRender__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/ContainerRender */ "./components/_util/ContainerRender.jsx");
- vue__WEBPACK_IMPORTED_MODULE_1___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
- function returnEmptyString() {
- return '';
- }
- function returnDocument() {
- return window.document;
- }
- var ALL_HANDLERS = ['click', 'mousedown', 'touchstart', 'mouseenter', 'mouseleave', 'focus', 'blur', 'contextmenu'];
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Trigger',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
- props: {
- action: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string)]).def([]),
- showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def([]),
- hideAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def([]),
- getPopupClassNameFromAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def(returnEmptyString),
- // onPopupVisibleChange: PropTypes.func.def(noop),
- afterPopupVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(_utils__WEBPACK_IMPORTED_MODULE_10__["noop"]),
- popup: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(function () {
- return {};
- }),
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-trigger-popup'),
- popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def(''),
- popupPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
- popupTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
- popupAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
- mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0),
- mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.1),
- zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
- focusDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0),
- blurDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.15),
- getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
- getDocument: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(returnDocument),
- forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- destroyPopupOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
- mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
- maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
- // onPopupAlign: PropTypes.func.def(noop),
- popupAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(function () {
- return {};
- }),
- popupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
- defaultPopupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
- maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
- maskAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- stretch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
- alignPoint: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool // Maybe we can support user pass position in the future
- },
- provide: function provide() {
- return {
- vcTriggerContext: this
- };
- },
- inject: {
- vcTriggerContext: { 'default': function _default() {
- return {};
- } },
- savePopupRef: { 'default': function _default() {
- return _utils__WEBPACK_IMPORTED_MODULE_10__["noop"];
- } },
- dialogContext: { 'default': function _default() {
- return null;
- } }
- },
- data: function data() {
- var _this = this;
- var props = this.$props;
- var popupVisible = void 0;
- if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'popupVisible')) {
- popupVisible = !!props.popupVisible;
- } else {
- popupVisible = !!props.defaultPopupVisible;
- }
- ALL_HANDLERS.forEach(function (h) {
- _this['fire' + h] = function (e) {
- _this.fireEvents(h, e);
- };
- });
- return {
- prevPopupVisible: popupVisible,
- sPopupVisible: popupVisible,
- point: null
- };
- },
- watch: {
- popupVisible: function popupVisible(val) {
- if (val !== undefined) {
- this.prevPopupVisible = this.sPopupVisible;
- this.sPopupVisible = val;
- }
- }
- },
- deactivated: function deactivated() {
- this.setPopupVisible(false);
- },
- mounted: function mounted() {
- var _this2 = this;
- this.$nextTick(function () {
- _this2.renderComponent(null);
- _this2.updatedCal();
- });
- },
- updated: function updated() {
- var _this3 = this;
- var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() {
- if (_this3.sPopupVisible !== _this3.prevPopupVisible) {
- _this3.afterPopupVisibleChange(_this3.sPopupVisible);
- }
- _this3.prevPopupVisible = _this3.sPopupVisible;
- };
- this.renderComponent(null, triggerAfterPopupVisibleChange);
- this.$nextTick(function () {
- _this3.updatedCal();
- });
- },
- beforeDestroy: function beforeDestroy() {
- this.clearDelayTimer();
- this.clearOutsideHandler();
- clearTimeout(this.mouseDownTimeout);
- },
- methods: {
- updatedCal: function updatedCal() {
- var props = this.$props;
- var state = this.$data;
- // We must listen to `mousedown` or `touchstart`, edge case:
- // https://github.com/ant-design/ant-design/issues/5804
- // https://github.com/react-component/calendar/issues/250
- // https://github.com/react-component/trigger/issues/50
- if (state.sPopupVisible) {
- var currentDocument = void 0;
- if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextmenuToShow())) {
- currentDocument = props.getDocument();
- this.clickOutsideHandler = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(currentDocument, 'mousedown', this.onDocumentClick);
- }
- // always hide on mobile
- if (!this.touchOutsideHandler) {
- currentDocument = currentDocument || props.getDocument();
- this.touchOutsideHandler = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(currentDocument, 'touchstart', this.onDocumentClick);
- }
- // close popup when trigger type contains 'onContextmenu' and document is scrolling.
- if (!this.contextmenuOutsideHandler1 && this.isContextmenuToShow()) {
- currentDocument = currentDocument || props.getDocument();
- this.contextmenuOutsideHandler1 = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(currentDocument, 'scroll', this.onContextmenuClose);
- }
- // close popup when trigger type contains 'onContextmenu' and window is blur.
- if (!this.contextmenuOutsideHandler2 && this.isContextmenuToShow()) {
- this.contextmenuOutsideHandler2 = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(window, 'blur', this.onContextmenuClose);
- }
- } else {
- this.clearOutsideHandler();
- }
- },
- onMouseenter: function onMouseenter(e) {
- var mouseEnterDelay = this.$props.mouseEnterDelay;
- this.fireEvents('mouseenter', e);
- this.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);
- },
- onMouseMove: function onMouseMove(e) {
- this.fireEvents('mousemove', e);
- this.setPoint(e);
- },
- onMouseleave: function onMouseleave(e) {
- this.fireEvents('mouseleave', e);
- this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay);
- },
- onPopupMouseenter: function onPopupMouseenter() {
- this.clearDelayTimer();
- },
- onPopupMouseleave: function onPopupMouseleave(e) {
- if (e && e.relatedTarget && !e.relatedTarget.setTimeout && this._component && this._component.getPopupDomNode && Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(this._component.getPopupDomNode(), e.relatedTarget)) {
- return;
- }
- this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay);
- },
- onFocus: function onFocus(e) {
- this.fireEvents('focus', e);
- // incase focusin and focusout
- this.clearDelayTimer();
- if (this.isFocusToShow()) {
- this.focusTime = Date.now();
- this.delaySetPopupVisible(true, this.$props.focusDelay);
- }
- },
- onMousedown: function onMousedown(e) {
- this.fireEvents('mousedown', e);
- this.preClickTime = Date.now();
- },
- onTouchstart: function onTouchstart(e) {
- this.fireEvents('touchstart', e);
- this.preTouchTime = Date.now();
- },
- onBlur: function onBlur(e) {
- if (!Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(e.target, e.relatedTarget || document.activeElement)) {
- this.fireEvents('blur', e);
- this.clearDelayTimer();
- if (this.isBlurToHide()) {
- this.delaySetPopupVisible(false, this.$props.blurDelay);
- }
- }
- },
- onContextmenu: function onContextmenu(e) {
- e.preventDefault();
- this.fireEvents('contextmenu', e);
- this.setPopupVisible(true, e);
- },
- onContextmenuClose: function onContextmenuClose() {
- if (this.isContextmenuToShow()) {
- this.close();
- }
- },
- onClick: function onClick(event) {
- this.fireEvents('click', event);
- // focus will trigger click
- if (this.focusTime) {
- var preTime = void 0;
- if (this.preClickTime && this.preTouchTime) {
- preTime = Math.min(this.preClickTime, this.preTouchTime);
- } else if (this.preClickTime) {
- preTime = this.preClickTime;
- } else if (this.preTouchTime) {
- preTime = this.preTouchTime;
- }
- if (Math.abs(preTime - this.focusTime) < 20) {
- return;
- }
- this.focusTime = 0;
- }
- this.preClickTime = 0;
- this.preTouchTime = 0;
- // Only prevent default when all the action is click.
- // https://github.com/ant-design/ant-design/issues/17043
- // https://github.com/ant-design/ant-design/issues/17291
- if (this.isClickToShow() && (this.isClickToHide() || this.isBlurToHide()) && event && event.preventDefault) {
- event.preventDefault();
- }
- if (event && event.domEvent) {
- event.domEvent.preventDefault();
- }
- var nextVisible = !this.$data.sPopupVisible;
- if (this.isClickToHide() && !nextVisible || nextVisible && this.isClickToShow()) {
- this.setPopupVisible(!this.$data.sPopupVisible, event);
- }
- },
- onPopupMouseDown: function onPopupMouseDown() {
- var _this4 = this;
- var _vcTriggerContext = this.vcTriggerContext,
- vcTriggerContext = _vcTriggerContext === undefined ? {} : _vcTriggerContext;
- this.hasPopupMouseDown = true;
- clearTimeout(this.mouseDownTimeout);
- this.mouseDownTimeout = setTimeout(function () {
- _this4.hasPopupMouseDown = false;
- }, 0);
- if (vcTriggerContext.onPopupMouseDown) {
- vcTriggerContext.onPopupMouseDown.apply(vcTriggerContext, arguments);
- }
- },
- onDocumentClick: function onDocumentClick(event) {
- if (this.$props.mask && !this.$props.maskClosable) {
- return;
- }
- var target = event.target;
- var root = this.$el;
- if (!Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(root, target) && !this.hasPopupMouseDown) {
- this.close();
- }
- },
- getPopupDomNode: function getPopupDomNode() {
- if (this._component && this._component.getPopupDomNode) {
- return this._component.getPopupDomNode();
- }
- return null;
- },
- getRootDomNode: function getRootDomNode() {
- return this.$el;
- // return this.$el.children[0] || this.$el
- },
- handleGetPopupClassFromAlign: function handleGetPopupClassFromAlign(align) {
- var className = [];
- var props = this.$props;
- var popupPlacement = props.popupPlacement,
- builtinPlacements = props.builtinPlacements,
- prefixCls = props.prefixCls,
- alignPoint = props.alignPoint,
- getPopupClassNameFromAlign = props.getPopupClassNameFromAlign;
- if (popupPlacement && builtinPlacements) {
- className.push(Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getAlignPopupClassName"])(builtinPlacements, prefixCls, align, alignPoint));
- }
- if (getPopupClassNameFromAlign) {
- className.push(getPopupClassNameFromAlign(align));
- }
- return className.join(' ');
- },
- getPopupAlign: function getPopupAlign() {
- var props = this.$props;
- var popupPlacement = props.popupPlacement,
- popupAlign = props.popupAlign,
- builtinPlacements = props.builtinPlacements;
- if (popupPlacement && builtinPlacements) {
- return Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getAlignFromPlacement"])(builtinPlacements, popupPlacement, popupAlign);
- }
- return popupAlign;
- },
- savePopup: function savePopup(node) {
- this._component = node;
- this.savePopupRef(node);
- },
- getComponent: function getComponent() {
- var h = this.$createElement;
- var self = this;
- var mouseProps = {};
- if (this.isMouseEnterToShow()) {
- mouseProps.mouseenter = self.onPopupMouseenter;
- }
- if (this.isMouseLeaveToHide()) {
- mouseProps.mouseleave = self.onPopupMouseleave;
- }
- mouseProps.mousedown = this.onPopupMouseDown;
- mouseProps.touchstart = this.onPopupMouseDown;
- var handleGetPopupClassFromAlign = self.handleGetPopupClassFromAlign,
- getRootDomNode = self.getRootDomNode,
- getContainer = self.getContainer;
- var _self$$props = self.$props,
- prefixCls = _self$$props.prefixCls,
- destroyPopupOnHide = _self$$props.destroyPopupOnHide,
- popupClassName = _self$$props.popupClassName,
- action = _self$$props.action,
- popupAnimation = _self$$props.popupAnimation,
- popupTransitionName = _self$$props.popupTransitionName,
- popupStyle = _self$$props.popupStyle,
- mask = _self$$props.mask,
- maskAnimation = _self$$props.maskAnimation,
- maskTransitionName = _self$$props.maskTransitionName,
- zIndex = _self$$props.zIndex,
- stretch = _self$$props.stretch,
- alignPoint = _self$$props.alignPoint;
- var _$data = this.$data,
- sPopupVisible = _$data.sPopupVisible,
- point = _$data.point;
- var align = this.getPopupAlign();
- var popupProps = {
- props: {
- prefixCls: prefixCls,
- destroyPopupOnHide: destroyPopupOnHide,
- visible: sPopupVisible,
- point: alignPoint && point,
- action: action,
- align: align,
- animation: popupAnimation,
- getClassNameFromAlign: handleGetPopupClassFromAlign,
- stretch: stretch,
- getRootDomNode: getRootDomNode,
- mask: mask,
- zIndex: zIndex,
- transitionName: popupTransitionName,
- maskAnimation: maskAnimation,
- maskTransitionName: maskTransitionName,
- getContainer: getContainer,
- popupClassName: popupClassName,
- popupStyle: popupStyle
- },
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- align: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this).popupAlign || _utils__WEBPACK_IMPORTED_MODULE_10__["noop"]
- }, mouseProps),
- directives: [{
- name: 'ant-ref',
- value: this.savePopup
- }]
- };
- return h(
- _Popup__WEBPACK_IMPORTED_MODULE_9__["default"],
- popupProps,
- [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(self, 'popup')]
- );
- },
- getContainer: function getContainer() {
- var props = this.$props,
- dialogContext = this.dialogContext;
- var popupContainer = document.createElement('div');
- // Make sure default popup container will never cause scrollbar appearing
- // https://github.com/react-component/trigger/issues/41
- popupContainer.style.position = 'absolute';
- popupContainer.style.top = '0';
- popupContainer.style.left = '0';
- popupContainer.style.width = '100%';
- var mountNode = props.getPopupContainer ? props.getPopupContainer(this.$el, dialogContext) : props.getDocument().body;
- mountNode.appendChild(popupContainer);
- this.popupContainer = popupContainer;
- return popupContainer;
- },
- setPopupVisible: function setPopupVisible(sPopupVisible, event) {
- var alignPoint = this.alignPoint,
- prevPopupVisible = this.sPopupVisible;
- this.clearDelayTimer();
- if (prevPopupVisible !== sPopupVisible) {
- if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'popupVisible')) {
- this.setState({
- sPopupVisible: sPopupVisible,
- prevPopupVisible: prevPopupVisible
- });
- }
- var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this);
- listeners.popupVisibleChange && listeners.popupVisibleChange(sPopupVisible);
- }
- // Always record the point position since mouseEnterDelay will delay the show
- if (alignPoint && event) {
- this.setPoint(event);
- }
- },
- setPoint: function setPoint(point) {
- var alignPoint = this.$props.alignPoint;
- if (!alignPoint || !point) return;
- this.setState({
- point: {
- pageX: point.pageX,
- pageY: point.pageY
- }
- });
- },
- delaySetPopupVisible: function delaySetPopupVisible(visible, delayS, event) {
- var _this5 = this;
- var delay = delayS * 1000;
- this.clearDelayTimer();
- if (delay) {
- var point = event ? { pageX: event.pageX, pageY: event.pageY } : null;
- this.delayTimer = Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__["requestAnimationTimeout"])(function () {
- _this5.setPopupVisible(visible, point);
- _this5.clearDelayTimer();
- }, delay);
- } else {
- this.setPopupVisible(visible, event);
- }
- },
- clearDelayTimer: function clearDelayTimer() {
- if (this.delayTimer) {
- Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__["cancelAnimationTimeout"])(this.delayTimer);
- this.delayTimer = null;
- }
- },
- clearOutsideHandler: function clearOutsideHandler() {
- if (this.clickOutsideHandler) {
- this.clickOutsideHandler.remove();
- this.clickOutsideHandler = null;
- }
- if (this.contextmenuOutsideHandler1) {
- this.contextmenuOutsideHandler1.remove();
- this.contextmenuOutsideHandler1 = null;
- }
- if (this.contextmenuOutsideHandler2) {
- this.contextmenuOutsideHandler2.remove();
- this.contextmenuOutsideHandler2 = null;
- }
- if (this.touchOutsideHandler) {
- this.touchOutsideHandler.remove();
- this.touchOutsideHandler = null;
- }
- },
- createTwoChains: function createTwoChains(event) {
- var fn = function fn() {};
- var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this);
- if (this.childOriginEvents[event] && events[event]) {
- return this['fire' + event];
- }
- fn = this.childOriginEvents[event] || events[event] || fn;
- return fn;
- },
- isClickToShow: function isClickToShow() {
- var _$props = this.$props,
- action = _$props.action,
- showAction = _$props.showAction;
- return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;
- },
- isContextmenuToShow: function isContextmenuToShow() {
- var _$props2 = this.$props,
- action = _$props2.action,
- showAction = _$props2.showAction;
- return action.indexOf('contextmenu') !== -1 || showAction.indexOf('contextmenu') !== -1;
- },
- isClickToHide: function isClickToHide() {
- var _$props3 = this.$props,
- action = _$props3.action,
- hideAction = _$props3.hideAction;
- return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;
- },
- isMouseEnterToShow: function isMouseEnterToShow() {
- var _$props4 = this.$props,
- action = _$props4.action,
- showAction = _$props4.showAction;
- return action.indexOf('hover') !== -1 || showAction.indexOf('mouseenter') !== -1;
- },
- isMouseLeaveToHide: function isMouseLeaveToHide() {
- var _$props5 = this.$props,
- action = _$props5.action,
- hideAction = _$props5.hideAction;
- return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseleave') !== -1;
- },
- isFocusToShow: function isFocusToShow() {
- var _$props6 = this.$props,
- action = _$props6.action,
- showAction = _$props6.showAction;
- return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;
- },
- isBlurToHide: function isBlurToHide() {
- var _$props7 = this.$props,
- action = _$props7.action,
- hideAction = _$props7.hideAction;
- return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;
- },
- forcePopupAlign: function forcePopupAlign() {
- if (this.$data.sPopupVisible && this._component && this._component.$refs.alignInstance) {
- this._component.$refs.alignInstance.forceAlign();
- }
- },
- fireEvents: function fireEvents(type, e) {
- if (this.childOriginEvents[type]) {
- this.childOriginEvents[type](e);
- }
- this.__emit(type, e);
- },
- close: function close() {
- this.setPopupVisible(false);
- }
- },
- render: function render() {
- var _this6 = this;
- var h = arguments[0];
- var sPopupVisible = this.sPopupVisible;
- var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])(this.$slots['default']);
- var _$props8 = this.$props,
- forceRender = _$props8.forceRender,
- alignPoint = _$props8.alignPoint;
- if (children.length > 1) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(false, 'Trigger $slots.default.length > 1, just support only one default', true);
- }
- var child = children[0];
- this.childOriginEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getDataEvents"])(child);
- var newChildProps = {
- props: {},
- nativeOn: {},
- key: 'trigger'
- };
- if (this.isContextmenuToShow()) {
- newChildProps.nativeOn.contextmenu = this.onContextmenu;
- } else {
- newChildProps.nativeOn.contextmenu = this.createTwoChains('contextmenu');
- }
- if (this.isClickToHide() || this.isClickToShow()) {
- newChildProps.nativeOn.click = this.onClick;
- newChildProps.nativeOn.mousedown = this.onMousedown;
- newChildProps.nativeOn.touchstart = this.onTouchstart;
- } else {
- newChildProps.nativeOn.click = this.createTwoChains('click');
- newChildProps.nativeOn.mousedown = this.createTwoChains('mousedown');
- newChildProps.nativeOn.touchstart = this.createTwoChains('onTouchstart');
- }
- if (this.isMouseEnterToShow()) {
- newChildProps.nativeOn.mouseenter = this.onMouseenter;
- if (alignPoint) {
- newChildProps.nativeOn.mousemove = this.onMouseMove;
- }
- } else {
- newChildProps.nativeOn.mouseenter = this.createTwoChains('mouseenter');
- }
- if (this.isMouseLeaveToHide()) {
- newChildProps.nativeOn.mouseleave = this.onMouseleave;
- } else {
- newChildProps.nativeOn.mouseleave = this.createTwoChains('mouseleave');
- }
- if (this.isFocusToShow() || this.isBlurToHide()) {
- newChildProps.nativeOn.focus = this.onFocus;
- newChildProps.nativeOn.blur = this.onBlur;
- } else {
- newChildProps.nativeOn.focus = this.createTwoChains('focus');
- newChildProps.nativeOn.blur = function (e) {
- if (e && (!e.relatedTarget || !Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(e.target, e.relatedTarget))) {
- _this6.createTwoChains('blur')(e);
- }
- };
- }
- this.trigger = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_12__["cloneElement"])(child, newChildProps);
- return h(_util_ContainerRender__WEBPACK_IMPORTED_MODULE_13__["default"], {
- attrs: {
- parent: this,
- visible: sPopupVisible,
- autoMount: false,
- forceRender: forceRender,
- getComponent: this.getComponent,
- getContainer: this.getContainer,
- children: function children(_ref) {
- var renderComponent = _ref.renderComponent;
- _this6.renderComponent = renderComponent;
- return _this6.trigger;
- }
- }
- });
- }
- });
- /***/ }),
- /***/ "./components/vc-trigger/index.js":
- /*!****************************************!*\
- !*** ./components/vc-trigger/index.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Trigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Trigger */ "./components/vc-trigger/Trigger.jsx");
- // based on rc-trigger 2.6.5
- /* harmony default export */ __webpack_exports__["default"] = (_Trigger__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-trigger/utils.js":
- /*!****************************************!*\
- !*** ./components/vc-trigger/utils.js ***!
- \****************************************/
- /*! exports provided: getAlignFromPlacement, getAlignPopupClassName, noop */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAlignFromPlacement", function() { return getAlignFromPlacement; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAlignPopupClassName", function() { return getAlignPopupClassName; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- function isPointsEq(a1, a2, isAlignPoint) {
- if (isAlignPoint) {
- return a1[0] === a2[0];
- }
- return a1[0] === a2[0] && a1[1] === a2[1];
- }
- function getAlignFromPlacement(builtinPlacements, placementStr, align) {
- var baseAlign = builtinPlacements[placementStr] || {};
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, baseAlign, align);
- }
- function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
- var points = align.points;
- for (var placement in builtinPlacements) {
- if (builtinPlacements.hasOwnProperty(placement)) {
- if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {
- return prefixCls + '-placement-' + placement;
- }
- }
- }
- return '';
- }
- function noop() {}
- /***/ }),
- /***/ "./components/vc-upload/index.js":
- /*!***************************************!*\
- !*** ./components/vc-upload/index.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src */ "./components/vc-upload/src/index.js");
- // rc-upload 2.9.4
- /* harmony default export */ __webpack_exports__["default"] = (_src__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-upload/src/AjaxUploader.jsx":
- /*!***************************************************!*\
- !*** ./components/vc-upload/src/AjaxUploader.jsx ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var lodash_partition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/partition */ "./node_modules/lodash/partition.js");
- /* harmony import */ var lodash_partition__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_partition__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./request */ "./components/vc-upload/src/request.js");
- /* harmony import */ var _uid__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./uid */ "./components/vc-upload/src/uid.js");
- /* harmony import */ var _attr_accept__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./attr-accept */ "./components/vc-upload/src/attr-accept.js");
- /* harmony import */ var _traverseFileTree__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./traverseFileTree */ "./components/vc-upload/src/traverseFileTree.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- var upLoadPropTypes = {
- componentTag: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- // style: PropTypes.object,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- // className: PropTypes.string,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- directory: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- // children: PropTypes.any,
- // onStart: PropTypes.func,
- data: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
- action: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
- headers: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
- beforeUpload: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- customRequest: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- // onProgress: PropTypes.func,
- withCredentials: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- openFileDialogOnClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- transformFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
- method: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
- };
- var AjaxUploader = {
- inheritAttrs: false,
- name: 'ajaxUploader',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: upLoadPropTypes,
- data: function data() {
- this.reqs = {};
- return {
- uid: Object(_uid__WEBPACK_IMPORTED_MODULE_7__["default"])()
- };
- },
- mounted: function mounted() {
- this._isMounted = true;
- },
- beforeDestroy: function beforeDestroy() {
- this._isMounted = false;
- this.abort();
- },
- methods: {
- onChange: function onChange(e) {
- var files = e.target.files;
- this.uploadFiles(files);
- this.reset();
- },
- onClick: function onClick() {
- var el = this.$refs.fileInputRef;
- if (!el) {
- return;
- }
- el.click();
- },
- onKeyDown: function onKeyDown(e) {
- if (e.key === 'Enter') {
- this.onClick();
- }
- },
- onFileDrop: function onFileDrop(e) {
- var _this = this;
- var multiple = this.$props.multiple;
- e.preventDefault();
- if (e.type === 'dragover') {
- return;
- }
- if (this.directory) {
- Object(_traverseFileTree__WEBPACK_IMPORTED_MODULE_9__["default"])(e.dataTransfer.items, this.uploadFiles, function (_file) {
- return Object(_attr_accept__WEBPACK_IMPORTED_MODULE_8__["default"])(_file, _this.accept);
- });
- } else {
- var files = lodash_partition__WEBPACK_IMPORTED_MODULE_4___default()(Array.prototype.slice.call(e.dataTransfer.files), function (file) {
- return Object(_attr_accept__WEBPACK_IMPORTED_MODULE_8__["default"])(file, _this.accept);
- });
- var successFiles = files[0];
- var errorFiles = files[1];
- if (multiple === false) {
- successFiles = successFiles.slice(0, 1);
- }
- this.uploadFiles(successFiles);
- if (errorFiles.length) {
- this.$emit('reject', errorFiles);
- }
- }
- },
- uploadFiles: function uploadFiles(files) {
- var _this2 = this;
- var postFiles = Array.prototype.slice.call(files);
- postFiles.map(function (file) {
- file.uid = Object(_uid__WEBPACK_IMPORTED_MODULE_7__["default"])();
- return file;
- }).forEach(function (file) {
- _this2.upload(file, postFiles);
- });
- },
- upload: function upload(file, fileList) {
- var _this3 = this;
- if (!this.beforeUpload) {
- // always async in case use react state to keep fileList
- return setTimeout(function () {
- return _this3.post(file);
- }, 0);
- }
- var before = this.beforeUpload(file, fileList);
- if (before && before.then) {
- before.then(function (processedFile) {
- var processedFileType = Object.prototype.toString.call(processedFile);
- if (processedFileType === '[object File]' || processedFileType === '[object Blob]') {
- return _this3.post(processedFile);
- }
- return _this3.post(file);
- })['catch'](function (e) {
- console && console.log(e); // eslint-disable-line
- });
- } else if (before !== false) {
- setTimeout(function () {
- return _this3.post(file);
- }, 0);
- }
- },
- post: function post(file) {
- var _this4 = this;
- if (!this._isMounted) {
- return;
- }
- var props = this.$props;
- var data = props.data;
- var _props$transformFile = props.transformFile,
- transformFile = _props$transformFile === undefined ? function (originFile) {
- return originFile;
- } : _props$transformFile;
- new Promise(function (resolve) {
- var action = _this4.action;
- if (typeof action === 'function') {
- return resolve(action(file));
- }
- resolve(action);
- }).then(function (action) {
- var uid = file.uid;
- var request = _this4.customRequest || _request__WEBPACK_IMPORTED_MODULE_6__["default"];
- var transform = Promise.resolve(transformFile(file))['catch'](function (e) {
- console.error(e); // eslint-disable-line no-console
- });
- transform.then(function (transformedFile) {
- if (typeof data === 'function') {
- data = data(file);
- }
- var requestOption = {
- action: action,
- filename: _this4.name,
- data: data,
- file: transformedFile,
- headers: _this4.headers,
- withCredentials: _this4.withCredentials,
- method: props.method || 'post',
- onProgress: function onProgress(e) {
- _this4.$emit('progress', e, file);
- },
- onSuccess: function onSuccess(ret, xhr) {
- delete _this4.reqs[uid];
- _this4.$emit('success', ret, file, xhr);
- },
- onError: function onError(err, ret) {
- delete _this4.reqs[uid];
- _this4.$emit('error', err, ret, file);
- }
- };
- _this4.reqs[uid] = request(requestOption);
- _this4.$emit('start', file);
- });
- });
- },
- reset: function reset() {
- this.setState({
- uid: Object(_uid__WEBPACK_IMPORTED_MODULE_7__["default"])()
- });
- },
- abort: function abort(file) {
- var reqs = this.reqs;
- if (file) {
- var uid = file;
- if (file && file.uid) {
- uid = file.uid;
- }
- if (reqs[uid] && reqs[uid].abort) {
- reqs[uid].abort();
- }
- delete reqs[uid];
- } else {
- Object.keys(reqs).forEach(function (uid) {
- if (reqs[uid] && reqs[uid].abort) {
- reqs[uid].abort();
- }
- delete reqs[uid];
- });
- }
- }
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var $props = this.$props,
- $attrs = this.$attrs;
- var Tag = $props.componentTag,
- prefixCls = $props.prefixCls,
- disabled = $props.disabled,
- multiple = $props.multiple,
- accept = $props.accept,
- directory = $props.directory,
- openFileDialogOnClick = $props.openFileDialogOnClick;
- var cls = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
- var events = disabled ? {} : {
- click: openFileDialogOnClick ? this.onClick : function () {},
- keydown: openFileDialogOnClick ? this.onKeyDown : function () {},
- drop: this.onFileDrop,
- dragover: this.onFileDrop
- };
- var tagProps = {
- on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getListeners"])(this), events),
- attrs: {
- role: 'button',
- tabIndex: disabled ? null : '0'
- },
- 'class': cls
- };
- return h(
- Tag,
- tagProps,
- [h('input', {
- attrs: {
- id: $attrs.id,
- type: 'file',
- accept: accept,
- directory: directory ? 'directory' : null,
- webkitdirectory: directory ? 'webkitdirectory' : null,
- multiple: multiple
- },
- ref: 'fileInputRef',
- on: {
- 'click': function click(e) {
- return e.stopPropagation();
- },
- 'change': this.onChange
- },
- // https://github.com/ant-design/ant-design/issues/19948
- key: this.uid,
- style: { display: 'none' } }), this.$slots['default']]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (AjaxUploader);
- /***/ }),
- /***/ "./components/vc-upload/src/IframeUploader.jsx":
- /*!*****************************************************!*\
- !*** ./components/vc-upload/src/IframeUploader.jsx ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
- /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _uid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./uid */ "./components/vc-upload/src/uid.js");
- /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
- var IFRAME_STYLE = {
- position: 'absolute',
- top: 0,
- opacity: 0,
- filter: 'alpha(opacity=0)',
- left: 0,
- zIndex: 9999
- };
- // diferent from AjaxUpload, can only upload on at one time, serial seriously
- var IframeUploader = {
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: {
- componentTag: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- // style: PropTypes.object,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- // className: PropTypes.string,
- accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
- // onStart: PropTypes.func,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
- // children: PropTypes.any,
- data: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
- action: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
- },
- data: function data() {
- this.file = {};
- return {
- uploading: false
- };
- },
- methods: {
- onLoad: function onLoad() {
- if (!this.uploading) {
- return;
- }
- var file = this.file;
- var response = void 0;
- try {
- var doc = this.getIframeDocument();
- var script = doc.getElementsByTagName('script')[0];
- if (script && script.parentNode === doc.body) {
- doc.body.removeChild(script);
- }
- response = doc.body.innerHTML;
- this.$emit('success', response, file);
- } catch (err) {
- Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'cross domain error for Upload. Maybe server should return document.domain script. see Note from https://github.com/react-component/upload');
- response = 'cross-domain';
- this.$emit('error', err, null, file);
- }
- this.endUpload();
- },
- onChange: function onChange() {
- var _this = this;
- var target = this.getFormInputNode();
- // ie8/9 don't support FileList Object
- // http://stackoverflow.com/questions/12830058/ie8-input-type-file-get-files
- var file = this.file = {
- uid: Object(_uid__WEBPACK_IMPORTED_MODULE_5__["default"])(),
- name: target.value && target.value.substring(target.value.lastIndexOf('\\') + 1, target.value.length)
- };
- this.startUpload();
- var props = this.$props;
- if (!props.beforeUpload) {
- return this.post(file);
- }
- var before = props.beforeUpload(file);
- if (before && before.then) {
- before.then(function () {
- _this.post(file);
- }, function () {
- _this.endUpload();
- });
- } else if (before !== false) {
- this.post(file);
- } else {
- this.endUpload();
- }
- },
- getIframeNode: function getIframeNode() {
- return this.$refs.iframeRef;
- },
- getIframeDocument: function getIframeDocument() {
- return this.getIframeNode().contentDocument;
- },
- getFormNode: function getFormNode() {
- return this.getIframeDocument().getElementById('form');
- },
- getFormInputNode: function getFormInputNode() {
- return this.getIframeDocument().getElementById('input');
- },
- getFormDataNode: function getFormDataNode() {
- return this.getIframeDocument().getElementById('data');
- },
- getFileForMultiple: function getFileForMultiple(file) {
- return this.multiple ? [file] : file;
- },
- getIframeHTML: function getIframeHTML(domain) {
- var domainScript = '';
- var domainInput = '';
- if (domain) {
- var script = 'script';
- domainScript = '<' + script + '>document.domain="' + domain + '";</' + script + '>';
- domainInput = '<input name="_documentDomain" value="' + domain + '" />';
- }
- return '\n <!DOCTYPE html>\n <html>\n <head>\n <meta http-equiv="X-UA-Compatible" content="IE=edge" />\n <style>\n body,html {padding:0;margin:0;border:0;overflow:hidden;}\n </style>\n ' + domainScript + '\n </head>\n <body>\n <form method="post"\n encType="multipart/form-data"\n action="" id="form"\n style="display:block;height:9999px;position:relative;overflow:hidden;">\n <input id="input" type="file"\n name="' + this.name + '"\n style="position:absolute;top:0;right:0;height:9999px;font-size:9999px;cursor:pointer;"/>\n ' + domainInput + '\n <span id="data"></span>\n </form>\n </body>\n </html>\n ';
- },
- initIframeSrc: function initIframeSrc() {
- if (this.domain) {
- this.getIframeNode().src = 'javascript:void((function(){\n var d = document;\n d.open();\n d.domain=\'' + this.domain + '\';\n d.write(\'\');\n d.close();\n })())';
- }
- },
- initIframe: function initIframe() {
- var iframeNode = this.getIframeNode();
- var win = iframeNode.contentWindow;
- var doc = void 0;
- this.domain = this.domain || '';
- this.initIframeSrc();
- try {
- doc = win.document;
- } catch (e) {
- this.domain = document.domain;
- this.initIframeSrc();
- win = iframeNode.contentWindow;
- doc = win.document;
- }
- doc.open('text/html', 'replace');
- doc.write(this.getIframeHTML(this.domain));
- doc.close();
- this.getFormInputNode().onchange = this.onChange;
- },
- endUpload: function endUpload() {
- if (this.uploading) {
- this.file = {};
- // hack avoid batch
- this.uploading = false;
- this.setState({
- uploading: false
- });
- this.initIframe();
- }
- },
- startUpload: function startUpload() {
- if (!this.uploading) {
- this.uploading = true;
- this.setState({
- uploading: true
- });
- }
- },
- updateIframeWH: function updateIframeWH() {
- var rootNode = this.$el;
- var iframeNode = this.getIframeNode();
- iframeNode.style.height = rootNode.offsetHeight + 'px';
- iframeNode.style.width = rootNode.offsetWidth + 'px';
- },
- abort: function abort(file) {
- if (file) {
- var uid = file;
- if (file && file.uid) {
- uid = file.uid;
- }
- if (uid === this.file.uid) {
- this.endUpload();
- }
- } else {
- this.endUpload();
- }
- },
- post: function post(file) {
- var _this2 = this;
- var formNode = this.getFormNode();
- var dataSpan = this.getFormDataNode();
- var data = this.$props.data;
- if (typeof data === 'function') {
- data = data(file);
- }
- var inputs = document.createDocumentFragment();
- for (var key in data) {
- if (data.hasOwnProperty(key)) {
- var input = document.createElement('input');
- input.setAttribute('name', key);
- input.value = data[key];
- inputs.appendChild(input);
- }
- }
- dataSpan.appendChild(inputs);
- new Promise(function (resolve) {
- var action = _this2.action;
- if (typeof action === 'function') {
- return resolve(action(file));
- }
- resolve(action);
- }).then(function (action) {
- formNode.setAttribute('action', action);
- formNode.submit();
- dataSpan.innerHTML = '';
- _this2.$emit('start', file);
- });
- }
- },
- mounted: function mounted() {
- var _this3 = this;
- this.$nextTick(function () {
- _this3.updateIframeWH();
- _this3.initIframe();
- });
- },
- updated: function updated() {
- var _this4 = this;
- this.$nextTick(function () {
- _this4.updateIframeWH();
- });
- },
- render: function render() {
- var _classNames;
- var h = arguments[0];
- var _$props = this.$props,
- Tag = _$props.componentTag,
- disabled = _$props.disabled,
- prefixCls = _$props.prefixCls;
- var iframeStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, IFRAME_STYLE, {
- display: this.uploading || disabled ? 'none' : ''
- });
- var cls = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
- return h(
- Tag,
- {
- attrs: { className: cls },
- style: { position: 'relative', zIndex: 0 } },
- [h('iframe', { ref: 'iframeRef', on: {
- 'load': this.onLoad
- },
- style: iframeStyle }), this.$slots['default']]
- );
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (IframeUploader);
- /***/ }),
- /***/ "./components/vc-upload/src/Upload.jsx":
- /*!*********************************************!*\
- !*** ./components/vc-upload/src/Upload.jsx ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
- /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
- /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
- /* harmony import */ var _AjaxUploader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AjaxUploader */ "./components/vc-upload/src/AjaxUploader.jsx");
- /* harmony import */ var _IframeUploader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./IframeUploader */ "./components/vc-upload/src/IframeUploader.jsx");
- function empty() {}
- var uploadProps = {
- componentTag: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- action: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
- name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- multipart: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- directory: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- // onError: PropTypes.func,
- // onSuccess: PropTypes.func,
- // onProgress: PropTypes.func,
- // onStart: PropTypes.func,
- data: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
- headers: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
- accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- beforeUpload: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- customRequest: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
- // onReady: PropTypes.func,
- method: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
- withCredentials: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- supportServerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- openFileDialogOnClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
- transformFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
- };
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'Upload',
- mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
- inheritAttrs: false,
- props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(uploadProps, {
- componentTag: 'span',
- prefixCls: 'rc-upload',
- data: {},
- headers: {},
- name: 'file',
- multipart: false,
- // onReady: empty,
- // onStart: empty,
- // onError: empty,
- // onSuccess: empty,
- supportServerRender: false,
- multiple: false,
- beforeUpload: empty,
- withCredentials: false,
- openFileDialogOnClick: true
- }),
- data: function data() {
- return {
- Component: null
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.supportServerRender) {
- _this.setState({
- Component: _this.getComponent()
- }, function () {
- _this.$emit('ready');
- });
- }
- });
- },
- methods: {
- getComponent: function getComponent() {
- return typeof File !== 'undefined' ? _AjaxUploader__WEBPACK_IMPORTED_MODULE_4__["default"] : _IframeUploader__WEBPACK_IMPORTED_MODULE_5__["default"];
- },
- abort: function abort(file) {
- this.$refs.uploaderRef.abort(file);
- }
- },
- render: function render() {
- var h = arguments[0];
- var componentProps = {
- props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props),
- on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
- ref: 'uploaderRef',
- attrs: this.$attrs
- };
- if (this.supportServerRender) {
- var _ComponentUploader = this.Component;
- if (_ComponentUploader) {
- return h(
- _ComponentUploader,
- componentProps,
- [this.$slots['default']]
- );
- }
- return null;
- }
- var ComponentUploader = this.getComponent();
- return h(
- ComponentUploader,
- componentProps,
- [this.$slots['default']]
- );
- }
- });
- /***/ }),
- /***/ "./components/vc-upload/src/attr-accept.js":
- /*!*************************************************!*\
- !*** ./components/vc-upload/src/attr-accept.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- function endsWith(str, suffix) {
- return str.indexOf(suffix, str.length - suffix.length) !== -1;
- }
- /* harmony default export */ __webpack_exports__["default"] = (function (file, acceptedFiles) {
- if (file && acceptedFiles) {
- var acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(',');
- var fileName = file.name || '';
- var mimeType = file.type || '';
- var baseMimeType = mimeType.replace(/\/.*$/, '');
- return acceptedFilesArray.some(function (type) {
- var validType = type.trim();
- if (validType.charAt(0) === '.') {
- return endsWith(fileName.toLowerCase(), validType.toLowerCase());
- } else if (/\/\*$/.test(validType)) {
- // This is something like a image/* mime type
- return baseMimeType === validType.replace(/\/.*$/, '');
- }
- return mimeType === validType;
- });
- }
- return true;
- });
- /***/ }),
- /***/ "./components/vc-upload/src/index.js":
- /*!*******************************************!*\
- !*** ./components/vc-upload/src/index.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ "./components/vc-upload/src/Upload.jsx");
- // export this package's api
- /* harmony default export */ __webpack_exports__["default"] = (_Upload__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./components/vc-upload/src/request.js":
- /*!*********************************************!*\
- !*** ./components/vc-upload/src/request.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return upload; });
- function getError(option, xhr) {
- var msg = 'cannot ' + option.method + ' ' + option.action + ' ' + xhr.status + '\'';
- var err = new Error(msg);
- err.status = xhr.status;
- err.method = option.method;
- err.url = option.action;
- return err;
- }
- function getBody(xhr) {
- var text = xhr.responseText || xhr.response;
- if (!text) {
- return text;
- }
- try {
- return JSON.parse(text);
- } catch (e) {
- return text;
- }
- }
- // option {
- // onProgress: (event: { percent: number }): void,
- // onError: (event: Error, body?: Object): void,
- // onSuccess: (body: Object): void,
- // data: Object,
- // filename: String,
- // file: File,
- // withCredentials: Boolean,
- // action: String,
- // headers: Object,
- // }
- function upload(option) {
- var xhr = new window.XMLHttpRequest();
- if (option.onProgress && xhr.upload) {
- xhr.upload.onprogress = function progress(e) {
- if (e.total > 0) {
- e.percent = e.loaded / e.total * 100;
- }
- option.onProgress(e);
- };
- }
- var formData = new window.FormData();
- if (option.data) {
- Object.keys(option.data).forEach(function (key) {
- var value = option.data[key];
- // support key-value array data
- if (Array.isArray(value)) {
- value.forEach(function (item) {
- // { list: [ 11, 22 ] }
- // formData.append('list[]', 11);
- formData.append(key + '[]', item);
- });
- return;
- }
- formData.append(key, option.data[key]);
- });
- }
- formData.append(option.filename, option.file);
- xhr.onerror = function error(e) {
- option.onError(e);
- };
- xhr.onload = function onload() {
- // allow success when 2xx status
- // see https://github.com/react-component/upload/issues/34
- if (xhr.status < 200 || xhr.status >= 300) {
- return option.onError(getError(option, xhr), getBody(xhr));
- }
- option.onSuccess(getBody(xhr), xhr);
- };
- xhr.open(option.method, option.action, true);
- // Has to be after `.open()`. See https://github.com/enyo/dropzone/issues/179
- if (option.withCredentials && 'withCredentials' in xhr) {
- xhr.withCredentials = true;
- }
- var headers = option.headers || {};
- // when set headers['X-Requested-With'] = null , can close default XHR header
- // see https://github.com/react-component/upload/issues/33
- if (headers['X-Requested-With'] !== null) {
- xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
- }
- for (var h in headers) {
- if (headers.hasOwnProperty(h) && headers[h] !== null) {
- xhr.setRequestHeader(h, headers[h]);
- }
- }
- xhr.send(formData);
- return {
- abort: function abort() {
- xhr.abort();
- }
- };
- }
- /***/ }),
- /***/ "./components/vc-upload/src/traverseFileTree.js":
- /*!******************************************************!*\
- !*** ./components/vc-upload/src/traverseFileTree.js ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- function loopFiles(item, callback) {
- var dirReader = item.createReader();
- var fileList = [];
- function sequence() {
- dirReader.readEntries(function (entries) {
- var entryList = Array.prototype.slice.apply(entries);
- fileList = fileList.concat(entryList);
- // Check if all the file has been viewed
- var isFinished = !entryList.length;
- if (isFinished) {
- callback(fileList);
- } else {
- sequence();
- }
- });
- }
- sequence();
- }
- var traverseFileTree = function traverseFileTree(files, callback, isAccepted) {
- var _traverseFileTree = function _traverseFileTree(item, path) {
- path = path || '';
- if (item.isFile) {
- item.file(function (file) {
- if (isAccepted(file)) {
- // https://github.com/ant-design/ant-design/issues/16426
- if (item.fullPath && !file.webkitRelativePath) {
- Object.defineProperties(file, {
- webkitRelativePath: {
- writable: true
- }
- });
- file.webkitRelativePath = item.fullPath.replace(/^\//, '');
- Object.defineProperties(file, {
- webkitRelativePath: {
- writable: false
- }
- });
- }
- callback([file]);
- }
- });
- } else if (item.isDirectory) {
- loopFiles(item, function (entries) {
- entries.forEach(function (entryItem) {
- _traverseFileTree(entryItem, '' + path + item.name + '/');
- });
- });
- }
- };
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
- try {
- for (var _iterator = files[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var file = _step.value;
- _traverseFileTree(file.webkitGetAsEntry());
- }
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator['return']) {
- _iterator['return']();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
- };
- /* harmony default export */ __webpack_exports__["default"] = (traverseFileTree);
- /***/ }),
- /***/ "./components/vc-upload/src/uid.js":
- /*!*****************************************!*\
- !*** ./components/vc-upload/src/uid.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return uid; });
- var now = +new Date();
- var index = 0;
- function uid() {
- return "vc-upload-" + now + "-" + ++index;
- }
- /***/ }),
- /***/ "./components/vc-util/Dom/addEventListener.js":
- /*!****************************************************!*\
- !*** ./components/vc-util/Dom/addEventListener.js ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addEventListenerWrap; });
- /* harmony import */ var add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! add-dom-event-listener */ "./node_modules/add-dom-event-listener/lib/index.js");
- /* harmony import */ var add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0__);
- function addEventListenerWrap(target, eventType, cb, option) {
- return add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0___default()(target, eventType, cb, option);
- }
- /***/ }),
- /***/ "./components/vc-util/Dom/class.js":
- /*!*****************************************!*\
- !*** ./components/vc-util/Dom/class.js ***!
- \*****************************************/
- /*! exports provided: hasClass, addClass, removeClass */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasClass", function() { return hasClass; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addClass", function() { return addClass; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeClass", function() { return removeClass; });
- function hasClass(node, className) {
- if (node.classList) {
- return node.classList.contains(className);
- }
- var originClass = node.className;
- return (' ' + originClass + ' ').indexOf(' ' + className + ' ') > -1;
- }
- function addClass(node, className) {
- if (node.classList) {
- node.classList.add(className);
- } else {
- if (!hasClass(node, className)) {
- node.className = node.className + ' ' + className;
- }
- }
- }
- function removeClass(node, className) {
- if (node.classList) {
- node.classList.remove(className);
- } else {
- if (hasClass(node, className)) {
- var originClass = node.className;
- node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', ' ');
- }
- }
- }
- /***/ }),
- /***/ "./components/vc-util/Dom/contains.js":
- /*!********************************************!*\
- !*** ./components/vc-util/Dom/contains.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return contains; });
- function contains(root, n) {
- var node = n;
- while (node) {
- if (node === root) {
- return true;
- }
- node = node.parentNode;
- }
- return false;
- }
- /***/ }),
- /***/ "./components/vc-util/warning.js":
- /*!***************************************!*\
- !*** ./components/vc-util/warning.js ***!
- \***************************************/
- /*! exports provided: warning, note, resetWarned, call, warningOnce, noteOnce, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warning", function() { return warning; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "note", function() { return note; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetWarned", function() { return resetWarned; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "call", function() { return call; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warningOnce", function() { return warningOnce; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noteOnce", function() { return noteOnce; });
- /* eslint-disable no-console */
- var warned = {};
- function warning(valid, message) {
- // Support uglify
- if ( true && !valid && console !== undefined) {
- console.error('Warning: ' + message);
- }
- }
- function note(valid, message) {
- // Support uglify
- if ( true && !valid && console !== undefined) {
- console.warn('Note: ' + message);
- }
- }
- function resetWarned() {
- warned = {};
- }
- function call(method, valid, message) {
- if (!valid && !warned[message]) {
- method(false, message);
- warned[message] = true;
- }
- }
- function warningOnce(valid, message) {
- call(warning, valid, message);
- }
- function noteOnce(valid, message) {
- call(note, valid, message);
- }
- /* harmony default export */ __webpack_exports__["default"] = (warningOnce);
- /* eslint-enable */
- /***/ }),
- /***/ "./components/version/index.js":
- /*!*************************************!*\
- !*** ./components/version/index.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../package.json */ "./package.json");
- var _package_json__WEBPACK_IMPORTED_MODULE_0___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../../package.json */ "./package.json", 1);
- /* harmony default export */ __webpack_exports__["default"] = (_package_json__WEBPACK_IMPORTED_MODULE_0__.version);
- /***/ }),
- /***/ "./components/version/style/index.js":
- /*!*******************************************!*\
- !*** ./components/version/style/index.js ***!
- \*******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
- /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
- // empty file prevent babel-plugin-import error
- /***/ }),
- /***/ "./index.js":
- /*!******************!*\
- !*** ./index.js ***!
- \******************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* eslint no-console:0 */
- function camelCase(name) {
- return name.charAt(0).toUpperCase() + name.slice(1).replace(/-(\w)/g, function (m, n) {
- return n.toUpperCase();
- });
- }
- // Just import style for https://github.com/ant-design/ant-design/issues/3745
- var req = __webpack_require__("./components sync recursive ^\\.\\/[^_][\\w-]+\\/style\\/index\\.js?$");
- req.keys().forEach(function (mod) {
- var v = req(mod);
- if (v && v['default']) {
- v = v['default'];
- }
- var match = mod.match(/^\.\/([^_][\w-]+)\/index\.js?$/);
- if (match && match[1]) {
- if (match[1] === 'message' || match[1] === 'notification') {
- // message & notification should not be capitalized
- exports[match[1]] = v;
- } else {
- exports[camelCase(match[1])] = v;
- }
- }
- });
- module.exports = __webpack_require__(/*! ./components */ "./components/index.js");
- /***/ }),
- /***/ "./node_modules/@ant-design/colors/lib/generate.js":
- /*!*********************************************************!*\
- !*** ./node_modules/@ant-design/colors/lib/generate.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- var tinycolor2_1 = __importDefault(__webpack_require__(/*! tinycolor2 */ "./node_modules/tinycolor2/tinycolor.js"));
- var hueStep = 2; // 色相阶梯
- var saturationStep = 16; // 饱和度阶梯,浅色部分
- var saturationStep2 = 5; // 饱和度阶梯,深色部分
- var brightnessStep1 = 5; // 亮度阶梯,浅色部分
- var brightnessStep2 = 15; // 亮度阶梯,深色部分
- var lightColorCount = 5; // 浅色数量,主色上
- var darkColorCount = 4; // 深色数量,主色下
- function getHue(hsv, i, light) {
- var hue;
- // 根据色相不同,色相转向不同
- if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
- hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
- }
- else {
- hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
- }
- if (hue < 0) {
- hue += 360;
- }
- else if (hue >= 360) {
- hue -= 360;
- }
- return hue;
- }
- function getSaturation(hsv, i, light) {
- // grey color don't change saturation
- if (hsv.h === 0 && hsv.s === 0) {
- return hsv.s;
- }
- var saturation;
- if (light) {
- saturation = Math.round(hsv.s * 100) - saturationStep * i;
- }
- else if (i === darkColorCount) {
- saturation = Math.round(hsv.s * 100) + saturationStep;
- }
- else {
- saturation = Math.round(hsv.s * 100) + saturationStep2 * i;
- }
- // 边界值修正
- if (saturation > 100) {
- saturation = 100;
- }
- // 第一格的 s 限制在 6-10 之间
- if (light && i === lightColorCount && saturation > 10) {
- saturation = 10;
- }
- if (saturation < 6) {
- saturation = 6;
- }
- return saturation;
- }
- function getValue(hsv, i, light) {
- if (light) {
- return Math.round(hsv.v * 100) + brightnessStep1 * i;
- }
- return Math.round(hsv.v * 100) - brightnessStep2 * i;
- }
- function generate(color) {
- var patterns = [];
- var pColor = tinycolor2_1.default(color);
- for (var i = lightColorCount; i > 0; i -= 1) {
- var hsv = pColor.toHsv();
- var colorString = tinycolor2_1.default({
- h: getHue(hsv, i, true),
- s: getSaturation(hsv, i, true),
- v: getValue(hsv, i, true),
- }).toHexString();
- patterns.push(colorString);
- }
- patterns.push(pColor.toHexString());
- for (var i = 1; i <= darkColorCount; i += 1) {
- var hsv = pColor.toHsv();
- var colorString = tinycolor2_1.default({
- h: getHue(hsv, i),
- s: getSaturation(hsv, i),
- v: getValue(hsv, i),
- }).toHexString();
- patterns.push(colorString);
- }
- return patterns;
- }
- exports.default = generate;
- /***/ }),
- /***/ "./node_modules/@ant-design/colors/lib/index.js":
- /*!******************************************************!*\
- !*** ./node_modules/@ant-design/colors/lib/index.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- var generate_1 = __importDefault(__webpack_require__(/*! ./generate */ "./node_modules/@ant-design/colors/lib/generate.js"));
- exports.generate = generate_1.default;
- var presetPrimaryColors = {
- red: '#F5222D',
- volcano: '#FA541C',
- orange: '#FA8C16',
- gold: '#FAAD14',
- yellow: '#FADB14',
- lime: '#A0D911',
- green: '#52C41A',
- cyan: '#13C2C2',
- blue: '#1890FF',
- geekblue: '#2F54EB',
- purple: '#722ED1',
- magenta: '#EB2F96',
- grey: '#666666',
- };
- exports.presetPrimaryColors = presetPrimaryColors;
- var presetPalettes = {};
- exports.presetPalettes = presetPalettes;
- Object.keys(presetPrimaryColors).forEach(function (key) {
- presetPalettes[key] = generate_1.default(presetPrimaryColors[key]);
- presetPalettes[key].primary = presetPalettes[key][5];
- });
- var red = presetPalettes.red;
- exports.red = red;
- var volcano = presetPalettes.volcano;
- exports.volcano = volcano;
- var gold = presetPalettes.gold;
- exports.gold = gold;
- var orange = presetPalettes.orange;
- exports.orange = orange;
- var yellow = presetPalettes.yellow;
- exports.yellow = yellow;
- var lime = presetPalettes.lime;
- exports.lime = lime;
- var green = presetPalettes.green;
- exports.green = green;
- var cyan = presetPalettes.cyan;
- exports.cyan = cyan;
- var blue = presetPalettes.blue;
- exports.blue = blue;
- var geekblue = presetPalettes.geekblue;
- exports.geekblue = geekblue;
- var purple = presetPalettes.purple;
- exports.purple = purple;
- var magenta = presetPalettes.magenta;
- exports.magenta = magenta;
- var grey = presetPalettes.grey;
- exports.grey = grey;
- /***/ }),
- /***/ "./node_modules/@ant-design/icons-vue/es/components/Icon.js":
- /*!******************************************************************!*\
- !*** ./node_modules/@ant-design/icons-vue/es/components/Icon.js ***!
- \******************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "./node_modules/@ant-design/icons-vue/es/utils.js");
- var twoToneColorPalette = {
- primaryColor: '#333',
- secondaryColor: '#E6E6E6'
- };
- var Icon = {
- name: 'AntdIcon',
- props: ['type', 'primaryColor', 'secondaryColor'],
- displayName: 'IconVue',
- definitions: new _utils__WEBPACK_IMPORTED_MODULE_1__["MiniMap"](),
- data: function data() {
- return {
- twoToneColorPalette: twoToneColorPalette
- };
- },
- add: function add() {
- for (var _len = arguments.length, icons = Array(_len), _key = 0; _key < _len; _key++) {
- icons[_key] = arguments[_key];
- }
- icons.forEach(function (icon) {
- Icon.definitions.set(Object(_utils__WEBPACK_IMPORTED_MODULE_1__["withSuffix"])(icon.name, icon.theme), icon);
- });
- },
- clear: function clear() {
- Icon.definitions.clear();
- },
- get: function get(key) {
- var colors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : twoToneColorPalette;
- if (key) {
- var target = Icon.definitions.get(key);
- if (target && typeof target.icon === 'function') {
- target = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, target, {
- icon: target.icon(colors.primaryColor, colors.secondaryColor)
- });
- }
- return target;
- }
- },
- setTwoToneColors: function setTwoToneColors(_ref) {
- var primaryColor = _ref.primaryColor,
- secondaryColor = _ref.secondaryColor;
- twoToneColorPalette.primaryColor = primaryColor;
- twoToneColorPalette.secondaryColor = secondaryColor || Object(_utils__WEBPACK_IMPORTED_MODULE_1__["getSecondaryColor"])(primaryColor);
- },
- getTwoToneColors: function getTwoToneColors() {
- return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, twoToneColorPalette);
- },
- render: function render(h) {
- var _$props = this.$props,
- type = _$props.type,
- primaryColor = _$props.primaryColor,
- secondaryColor = _$props.secondaryColor;
- var target = void 0;
- var colors = twoToneColorPalette;
- if (primaryColor) {
- colors = {
- primaryColor: primaryColor,
- secondaryColor: secondaryColor || Object(_utils__WEBPACK_IMPORTED_MODULE_1__["getSecondaryColor"])(primaryColor)
- };
- }
- if (Object(_utils__WEBPACK_IMPORTED_MODULE_1__["isIconDefinition"])(type)) {
- target = type;
- } else if (typeof type === 'string') {
- target = Icon.get(type, colors);
- if (!target) {
- // log(`Could not find icon: ${type}`);
- return null;
- }
- }
- if (!target) {
- Object(_utils__WEBPACK_IMPORTED_MODULE_1__["log"])('type should be string or icon definiton, but got ' + type);
- return null;
- }
- if (target && typeof target.icon === 'function') {
- target = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, target, {
- icon: target.icon(colors.primaryColor, colors.secondaryColor)
- });
- }
- return Object(_utils__WEBPACK_IMPORTED_MODULE_1__["generate"])(h, target.icon, 'svg-' + target.name, {
- attrs: {
- 'data-icon': target.name,
- width: '1em',
- height: '1em',
- fill: 'currentColor',
- 'aria-hidden': 'true'
- },
- on: this.$listeners
- });
- }
- };
- /* istanbul ignore next */
- Icon.install = function (Vue) {
- Vue.component(Icon.name, Icon);
- };
- /* harmony default export */ __webpack_exports__["default"] = (Icon);
- /***/ }),
- /***/ "./node_modules/@ant-design/icons-vue/es/index.js":
- /*!********************************************************!*\
- !*** ./node_modules/@ant-design/icons-vue/es/index.js ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _components_Icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Icon */ "./node_modules/@ant-design/icons-vue/es/components/Icon.js");
- /* harmony default export */ __webpack_exports__["default"] = (_components_Icon__WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./node_modules/@ant-design/icons-vue/es/utils.js":
- /*!********************************************************!*\
- !*** ./node_modules/@ant-design/icons-vue/es/utils.js ***!
- \********************************************************/
- /*! exports provided: log, isIconDefinition, normalizeAttrs, MiniMap, generate, getSecondaryColor, withSuffix */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "log", function() { return log; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIconDefinition", function() { return isIconDefinition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeAttrs", function() { return normalizeAttrs; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MiniMap", function() { return MiniMap; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generate", function() { return generate; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSecondaryColor", function() { return getSecondaryColor; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withSuffix", function() { return withSuffix; });
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
- /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/createClass */ "./node_modules/babel-runtime/helpers/createClass.js");
- /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _ant_design_colors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/colors */ "./node_modules/@ant-design/colors/lib/index.js");
- /* harmony import */ var _ant_design_colors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ant_design_colors__WEBPACK_IMPORTED_MODULE_3__);
- function log(message) {
- if (!(process && process.env && "development" === 'production')) {
- console.error('[@ant-design/icons-vue]: ' + message + '.');
- }
- }
- function isIconDefinition(target) {
- return typeof target === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (typeof target.icon === 'object' || typeof target.icon === 'function');
- }
- function normalizeAttrs() {
- var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- return Object.keys(attrs).reduce(function (acc, key) {
- var val = attrs[key];
- switch (key) {
- case 'class':
- acc.className = val;
- delete acc['class'];
- break;
- default:
- acc[key] = val;
- }
- return acc;
- }, {});
- }
- var MiniMap = function () {
- function MiniMap() {
- babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, MiniMap);
- this.collection = {};
- }
- babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(MiniMap, [{
- key: 'clear',
- value: function clear() {
- this.collection = {};
- }
- }, {
- key: 'delete',
- value: function _delete(key) {
- return delete this.collection[key];
- }
- }, {
- key: 'get',
- value: function get(key) {
- return this.collection[key];
- }
- }, {
- key: 'has',
- value: function has(key) {
- return Boolean(this.collection[key]);
- }
- }, {
- key: 'set',
- value: function set(key, value) {
- this.collection[key] = value;
- return this;
- }
- }, {
- key: 'size',
- get: function get() {
- return Object.keys(this.collection).length;
- }
- }]);
- return MiniMap;
- }();
- function generate(h, node, key, rootProps) {
- if (!rootProps) {
- return h(node.tag, { key: key, attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, normalizeAttrs(node.attrs)) }, (node.children || []).map(function (child, index) {
- return generate(h, child, key + '-' + node.tag + '-' + index);
- }));
- }
- return h(node.tag, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
- key: key
- }, rootProps, {
- attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, normalizeAttrs(node.attrs), rootProps.attrs)
- }), (node.children || []).map(function (child, index) {
- return generate(h, child, key + '-' + node.tag + '-' + index);
- }));
- }
- function getSecondaryColor(primaryColor) {
- // choose the second color
- return Object(_ant_design_colors__WEBPACK_IMPORTED_MODULE_3__["generate"])(primaryColor)[0];
- }
- function withSuffix(name, theme) {
- switch (theme) {
- case 'fill':
- return name + '-fill';
- case 'outline':
- return name + '-o';
- case 'twotone':
- return name + '-twotone';
- default:
- throw new TypeError('Unknown theme type: ' + theme + ', name: ' + name);
- }
- }
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ "./node_modules/process/browser.js")))
- /***/ }),
- /***/ "./node_modules/@ant-design/icons/lib/dist.js":
- /*!****************************************************!*\
- !*** ./node_modules/@ant-design/icons/lib/dist.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- var normalViewBox = '0 0 1024 1024';
- var newViewBox = '64 64 896 896';
- var fill = 'fill';
- var outline = 'outline';
- var twotone = 'twotone';
- function getNode(viewBox) {
- var paths = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- paths[_i - 1] = arguments[_i];
- }
- return {
- tag: 'svg',
- attrs: { viewBox: viewBox, focusable: false },
- children: paths.map(function (path) {
- if (Array.isArray(path)) {
- return {
- tag: 'path',
- attrs: {
- fill: path[0],
- d: path[1]
- }
- };
- }
- return {
- tag: 'path',
- attrs: {
- d: path
- }
- };
- })
- };
- }
- function getIcon(name, theme, icon) {
- return {
- name: name,
- theme: theme,
- icon: icon
- };
- }
- exports.AccountBookFill = getIcon('account-book', fill, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 0 1 8.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z'));
- exports.AlertFill = getIcon('alert', fill, getNode(newViewBox, 'M512 244c176.18 0 319 142.82 319 319v233a32 32 0 0 1-32 32H225a32 32 0 0 1-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 0 1 8 8v96a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8V76a8 8 0 0 1 8-8zM177.25 191.66a8 8 0 0 1 11.32 0l67.88 67.88a8 8 0 0 1 0 11.31l-39.6 39.6a8 8 0 0 1-11.31 0l-67.88-67.88a8 8 0 0 1 0-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 0 1 0 11.3l-67.88 67.9a8 8 0 0 1-11.32 0l-39.6-39.6a8 8 0 0 1 0-11.32l67.89-67.88a8 8 0 0 1 11.31 0zM192 892h640a32 32 0 0 1 32 32v24a8 8 0 0 1-8 8H168a8 8 0 0 1-8-8v-24a32 32 0 0 1 32-32zm148-317v253h64V575h-64z'));
- exports.AlipaySquareFill = getIcon('alipay-square', fill, getNode(newViewBox, 'M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm29.4 663.2S703 689.4 598.7 639.5C528.8 725.2 438.6 777.3 345 777.3c-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9 114.3 38.2 140.2 40.2 140.2 40.2v122.3z'));
- exports.AliwangwangFill = getIcon('aliwangwang', fill, getNode(newViewBox, 'M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 0 0-120.5-81.2A375.65 375.65 0 0 0 519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 0 0-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0 0 29.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-325.2 79c0 20.4-16.6 37.1-37.1 37.1-20.4 0-37.1-16.7-37.1-37.1v-55.1c0-20.4 16.6-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1zm175.2 0c0 20.4-16.6 37.1-37.1 37.1S644 476.8 644 456.4v-55.1c0-20.4 16.7-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1z'));
- exports.AlipayCircleFill = getIcon('alipay-circle', fill, getNode(newViewBox, 'M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 0 0 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z'));
- exports.AmazonCircleFill = getIcon('amazon-circle', fill, getNode(newViewBox, 'M485 467.5c-11.6 4.9-20.9 12.2-27.8 22-6.9 9.8-10.4 21.6-10.4 35.5 0 17.8 7.5 31.5 22.4 41.2 14.1 9.1 28.9 11.4 44.4 6.8 17.9-5.2 30-17.9 36.4-38.1 3-9.3 4.5-19.7 4.5-31.3v-50.2c-12.6.4-24.4 1.6-35.5 3.7-11.1 2.1-22.4 5.6-34 10.4zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm35.8 262.7c-7.2-10.9-20.1-16.4-38.7-16.4-1.3 0-3 .1-5.3.3-2.2.2-6.6 1.5-12.9 3.7a79.4 79.4 0 0 0-17.9 9.1c-5.5 3.8-11.5 10-18 18.4-6.4 8.5-11.5 18.4-15.3 29.8l-94-8.4c0-12.4 2.4-24.7 7-36.9 4.7-12.2 11.8-23.9 21.4-35 9.6-11.2 21.1-21 34.5-29.4 13.4-8.5 29.6-15.2 48.4-20.3 18.9-5.1 39.1-7.6 60.9-7.6 21.3 0 40.6 2.6 57.8 7.7 17.2 5.2 31.1 11.5 41.4 19.1a117 117 0 0 1 25.9 25.7c6.9 9.6 11.7 18.5 14.4 26.7 2.7 8.2 4 15.7 4 22.8v182.5c0 6.4 1.4 13 4.3 19.8 2.9 6.8 6.3 12.8 10.2 18 3.9 5.2 7.9 9.9 12 14.3 4.1 4.3 7.6 7.7 10.6 9.9l4.1 3.4-72.5 69.4c-8.5-7.7-16.9-15.4-25.2-23.4-8.3-8-14.5-14-18.5-18.1l-6.1-6.2c-2.4-2.3-5-5.7-8-10.2-8.1 12.2-18.5 22.8-31.1 31.8-12.7 9-26.3 15.6-40.7 19.7-14.5 4.1-29.4 6.5-44.7 7.1-15.3.6-30-1.5-43.9-6.5-13.9-5-26.5-11.7-37.6-20.3-11.1-8.6-19.9-20.2-26.5-35-6.6-14.8-9.9-31.5-9.9-50.4 0-17.4 3-33.3 8.9-47.7 6-14.5 13.6-26.5 23-36.1 9.4-9.6 20.7-18.2 34-25.7s26.4-13.4 39.2-17.7c12.8-4.2 26.6-7.8 41.5-10.7 14.9-2.9 27.6-4.8 38.2-5.7 10.6-.9 21.2-1.6 31.8-2v-39.4c0-13.5-2.3-23.5-6.7-30.1zm180.5 379.6c-2.8 3.3-7.5 7.8-14.1 13.5s-16.8 12.7-30.5 21.1c-13.7 8.4-28.8 16-45 22.9-16.3 6.9-36.3 12.9-60.1 18-23.7 5.1-48.2 7.6-73.3 7.6-25.4 0-50.7-3.2-76.1-9.6-25.4-6.4-47.6-14.3-66.8-23.7-19.1-9.4-37.6-20.2-55.1-32.2-17.6-12.1-31.7-22.9-42.4-32.5-10.6-9.6-19.6-18.7-26.8-27.1-1.7-1.9-2.8-3.6-3.2-5.1-.4-1.5-.3-2.8.3-3.7.6-.9 1.5-1.6 2.6-2.2a7.42 7.42 0 0 1 7.4.8c40.9 24.2 72.9 41.3 95.9 51.4 82.9 36.4 168 45.7 255.3 27.9 40.5-8.3 82.1-22.2 124.9-41.8 3.2-1.2 6-1.5 8.3-.9 2.3.6 3.5 2.4 3.5 5.4 0 2.8-1.6 6.3-4.8 10.2zm59.9-29c-1.8 11.1-4.9 21.6-9.1 31.8-7.2 17.1-16.3 30-27.1 38.4-3.6 2.9-6.4 3.8-8.3 2.8-1.9-1-1.9-3.5 0-7.4 4.5-9.3 9.2-21.8 14.2-37.7 5-15.8 5.7-26 2.1-30.5-1.1-1.5-2.7-2.6-5-3.6-2.2-.9-5.1-1.5-8.6-1.9s-6.7-.6-9.4-.8c-2.8-.2-6.5-.2-11.2 0-4.7.2-8 .4-10.1.6a874.4 874.4 0 0 1-17.1 1.5c-1.3.2-2.7.4-4.1.5-1.5.1-2.7.2-3.5.3l-2.7.3c-1 .1-1.7.2-2.2.2h-3.2l-1-.2-.6-.5-.5-.9c-1.3-3.3 3.7-7.4 15-12.4s22.3-8.1 32.9-9.3c9.8-1.5 21.3-1.5 34.5-.3s21.3 3.7 24.3 7.4c2.3 3.5 2.5 10.7.7 21.7z'));
- exports.AndroidFill = getIcon('android', fill, getNode(newViewBox, 'M270.1 741.7c0 23.4 19.1 42.5 42.6 42.5h48.7v120.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V784.1h85v120.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V784.1h48.7c23.5 0 42.6-19.1 42.6-42.5V346.4h-486v395.3zm357.1-600.1l44.9-65c2.6-3.8 2-8.9-1.5-11.4-3.5-2.4-8.5-1.2-11.1 2.6l-46.6 67.6c-30.7-12.1-64.9-18.8-100.8-18.8-35.9 0-70.1 6.7-100.8 18.8l-46.6-67.5c-2.6-3.8-7.6-5.1-11.1-2.6-3.5 2.4-4.1 7.4-1.5 11.4l44.9 65c-71.4 33.2-121.4 96.1-127.8 169.6h486c-6.6-73.6-56.7-136.5-128-169.7zM409.5 244.1a26.9 26.9 0 1 1 26.9-26.9 26.97 26.97 0 0 1-26.9 26.9zm208.4 0a26.9 26.9 0 1 1 26.9-26.9 26.97 26.97 0 0 1-26.9 26.9zm223.4 100.7c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V400.1c.1-30.6-24.3-55.3-54.6-55.3zm-658.6 0c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V400.1c0-30.6-24.5-55.3-54.6-55.3z'));
- exports.AmazonSquareFill = getIcon('amazon-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM547.8 326.7c-7.2-10.9-20.1-16.4-38.7-16.4-1.3 0-3 .1-5.3.3-2.2.2-6.6 1.5-12.9 3.7a79.4 79.4 0 0 0-17.9 9.1c-5.5 3.8-11.5 10-18 18.4-6.4 8.5-11.5 18.4-15.3 29.8l-94-8.4c0-12.4 2.4-24.7 7-36.9s11.8-23.9 21.4-35c9.6-11.2 21.1-21 34.5-29.4 13.4-8.5 29.6-15.2 48.4-20.3 18.9-5.1 39.1-7.6 60.9-7.6 21.3 0 40.6 2.6 57.8 7.7 17.2 5.2 31.1 11.5 41.4 19.1a117 117 0 0 1 25.9 25.7c6.9 9.6 11.7 18.5 14.4 26.7 2.7 8.2 4 15.7 4 22.8v182.5c0 6.4 1.4 13 4.3 19.8 2.9 6.8 6.3 12.8 10.2 18 3.9 5.2 7.9 9.9 12 14.3 4.1 4.3 7.6 7.7 10.6 9.9l4.1 3.4-72.5 69.4c-8.5-7.7-16.9-15.4-25.2-23.4-8.3-8-14.5-14-18.5-18.1l-6.1-6.2c-2.4-2.3-5-5.7-8-10.2-8.1 12.2-18.5 22.8-31.1 31.8-12.7 9-26.3 15.6-40.7 19.7-14.5 4.1-29.4 6.5-44.7 7.1-15.3.6-30-1.5-43.9-6.5-13.9-5-26.5-11.7-37.6-20.3-11.1-8.6-19.9-20.2-26.5-35-6.6-14.8-9.9-31.5-9.9-50.4 0-17.4 3-33.3 8.9-47.7 6-14.5 13.6-26.5 23-36.1 9.4-9.6 20.7-18.2 34-25.7s26.4-13.4 39.2-17.7c12.8-4.2 26.6-7.8 41.5-10.7 14.9-2.9 27.6-4.8 38.2-5.7 10.6-.9 21.2-1.6 31.8-2v-39.4c0-13.5-2.3-23.5-6.7-30.1zm180.5 379.6c-2.8 3.3-7.5 7.8-14.1 13.5s-16.8 12.7-30.5 21.1c-13.7 8.4-28.8 16-45 22.9-16.3 6.9-36.3 12.9-60.1 18-23.7 5.1-48.2 7.6-73.3 7.6-25.4 0-50.7-3.2-76.1-9.6-25.4-6.4-47.6-14.3-66.8-23.7-19.1-9.4-37.6-20.2-55.1-32.2-17.6-12.1-31.7-22.9-42.4-32.5-10.6-9.6-19.6-18.7-26.8-27.1-1.7-1.9-2.8-3.6-3.2-5.1-.4-1.5-.3-2.8.3-3.7.6-.9 1.5-1.6 2.6-2.2a7.42 7.42 0 0 1 7.4.8c40.9 24.2 72.9 41.3 95.9 51.4 82.9 36.4 168 45.7 255.3 27.9 40.5-8.3 82.1-22.2 124.9-41.8 3.2-1.2 6-1.5 8.3-.9 2.3.6 3.5 2.4 3.5 5.4 0 2.8-1.6 6.3-4.8 10.2zm59.9-29c-1.8 11.1-4.9 21.6-9.1 31.8-7.2 17.1-16.3 30-27.1 38.4-3.6 2.9-6.4 3.8-8.3 2.8-1.9-1-1.9-3.5 0-7.4 4.5-9.3 9.2-21.8 14.2-37.7 5-15.8 5.7-26 2.1-30.5-1.1-1.5-2.7-2.6-5-3.6-2.2-.9-5.1-1.5-8.6-1.9s-6.7-.6-9.4-.8c-2.8-.2-6.5-.2-11.2 0-4.7.2-8 .4-10.1.6a874.4 874.4 0 0 1-17.1 1.5c-1.3.2-2.7.4-4.1.5-1.5.1-2.7.2-3.5.3l-2.7.3c-1 .1-1.7.2-2.2.2h-3.2l-1-.2-.6-.5-.5-.9c-1.3-3.3 3.7-7.4 15-12.4s22.3-8.1 32.9-9.3c9.8-1.5 21.3-1.5 34.5-.3s21.3 3.7 24.3 7.4c2.3 3.5 2.5 10.7.7 21.7zM485 467.5c-11.6 4.9-20.9 12.2-27.8 22-6.9 9.8-10.4 21.6-10.4 35.5 0 17.8 7.5 31.5 22.4 41.2 14.1 9.1 28.9 11.4 44.4 6.8 17.9-5.2 30-17.9 36.4-38.1 3-9.3 4.5-19.7 4.5-31.3v-50.2c-12.6.4-24.4 1.6-35.5 3.7-11.1 2.1-22.4 5.6-34 10.4z'));
- exports.ApiFill = getIcon('api', fill, getNode(newViewBox, 'M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM578.9 546.7a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 68.9-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2z'));
- exports.AppstoreFill = getIcon('appstore', fill, getNode(newViewBox, 'M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z'));
- exports.AudioFill = getIcon('audio', fill, getNode(newViewBox, 'M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm330-170c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z'));
- exports.AppleFill = getIcon('apple', fill, getNode(newViewBox, 'M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z'));
- exports.BackwardFill = getIcon('backward', fill, getNode(normalViewBox, 'M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z'));
- exports.BankFill = getIcon('bank', fill, getNode(newViewBox, 'M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM381 836H264V462h117v374zm189 0H453V462h117v374zm190 0H642V462h118v374z'));
- exports.BehanceCircleFill = getIcon('behance-circle', fill, getNode(newViewBox, 'M420.3 470.3c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1a50.5 50.5 0 0 0 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm86.5 286.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7z'));
- exports.BellFill = getIcon('bell', fill, getNode(newViewBox, 'M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z'));
- exports.BehanceSquareFill = getIcon('behance-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z'));
- exports.BookFill = getIcon('book', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM668 345.9L621.5 312 572 347.4V124h96v221.9z'));
- exports.BoxPlotFill = getIcon('box-plot', fill, getNode(newViewBox, 'M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H448v432h344c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-728 80v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h152V296H232c-4.4 0-8 3.6-8 8z'));
- exports.BugFill = getIcon('bug', fill, getNode(newViewBox, 'M304 280h416c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 0 0-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 0 0-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z', 'M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 0 1-63 63H232a63 63 0 0 1-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0 0 22.7 49c24.3 41.5 59 76.2 100.5 100.5 28.9 16.9 61 28.8 95.3 34.5 4.4 0 8-3.6 8-8V484c0-4.4 3.6-8 8-8h60c4.4 0 8 3.6 8 8v464.2c0 4.4 3.6 8 8 8 34.3-5.7 66.4-17.6 95.3-34.5a281.38 281.38 0 0 0 123.2-149.5A120.4 120.4 0 0 1 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.CalculatorFill = getIcon('calculator', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM440.2 765h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 0 1-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zm7.8-382c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48zm328 369c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-104c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-265c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48z'));
- exports.BulbFill = getIcon('bulb', fill, getNode(newViewBox, 'M348 676.1C250 619.4 184 513.4 184 392c0-181.1 146.9-328 328-328s328 146.9 328 328c0 121.4-66 227.4-164 284.1V792c0 17.7-14.3 32-32 32H380c-17.7 0-32-14.3-32-32V676.1zM392 888h240c4.4 0 8 3.6 8 8v32c0 17.7-14.3 32-32 32H416c-17.7 0-32-14.3-32-32v-32c0-4.4 3.6-8 8-8z'));
- exports.BuildFill = getIcon('build', fill, getNode(newViewBox, 'M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zM612 746H412V546h200v200zm268-268H680V278h200v200z'));
- exports.CalendarFill = getIcon('calendar', fill, getNode(newViewBox, 'M112 880c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V460H112v420zm768-696H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v176h800V216c0-17.7-14.3-32-32-32z'));
- exports.CameraFill = getIcon('camera', fill, getNode(newViewBox, 'M864 260H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 260H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V340c0-44.2-35.8-80-80-80zM512 716c-88.4 0-160-71.6-160-160s71.6-160 160-160 160 71.6 160 160-71.6 160-160 160zm-96-160a96 96 0 1 0 192 0 96 96 0 1 0-192 0z'));
- exports.CarFill = getIcon('car', fill, getNode(newViewBox, 'M959 413.4L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM264 621c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm388 75c0 4.4-3.6 8-8 8H380c-4.4 0-8-3.6-8-8v-84c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v36h168v-36c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v84zm108-75c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM220 418l72.7-199.9.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220z'));
- exports.CaretDownFill = getIcon('caret-down', fill, getNode(normalViewBox, 'M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z'));
- exports.CaretLeftFill = getIcon('caret-left', fill, getNode(normalViewBox, 'M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z'));
- exports.CaretRightFill = getIcon('caret-right', fill, getNode(normalViewBox, 'M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z'));
- exports.CarryOutFill = getIcon('carry-out', fill, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM694.5 432.7L481.9 725.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.1 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.8-6.6 13-6.6H688c6.5.1 10.3 7.5 6.5 12.8z'));
- exports.CaretUpFill = getIcon('caret-up', fill, getNode(normalViewBox, 'M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z'));
- exports.CheckCircleFill = getIcon('check-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z'));
- exports.CheckSquareFill = getIcon('check-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM695.5 365.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L308.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H689c6.5 0 10.3 7.4 6.5 12.7z'));
- exports.ChromeFill = getIcon('chrome', fill, getNode(newViewBox, 'M371.8 512c0 77.5 62.7 140.2 140.2 140.2S652.2 589.5 652.2 512 589.5 371.8 512 371.8 371.8 434.4 371.8 512zM900 362.4l-234.3 12.1c63.6 74.3 64.6 181.5 11.1 263.7l-188 289.2c78 4.2 158.4-12.9 231.2-55.2 180-104 253-322.1 180-509.8zM320.3 591.9L163.8 284.1A415.35 415.35 0 0 0 96 512c0 208 152.3 380.3 351.4 410.8l106.9-209.4c-96.6 18.2-189.9-34.8-234-121.5zm218.5-285.5l344.4 18.1C848 254.7 792.6 194 719.8 151.7 653.9 113.6 581.5 95.5 510.5 96c-122.5.5-242.2 55.2-322.1 154.5l128.2 196.9c32-91.9 124.8-146.7 222.2-141z'));
- exports.CiCircleFill = getIcon('ci-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-63.6 656c-103 0-162.4-68.6-162.4-182.6v-49C286 373.5 345.4 304 448.3 304c88.3 0 152.3 56.9 152.3 138.1 0 2.4-2 4.4-4.4 4.4h-52.6c-4.2 0-7.6-3.2-8-7.4-4-46.1-37.6-77.6-87-77.6-61.1 0-95.6 45.4-95.6 126.9v49.3c0 80.3 34.5 125.1 95.6 125.1 49.3 0 82.8-29.5 87-72.4.4-4.1 3.8-7.3 8-7.3h52.7c2.4 0 4.4 2 4.4 4.4 0 77.4-64.3 132.5-152.3 132.5zM738 704.1c0 4.4-3.6 8-8 8h-50.4c-4.4 0-8-3.6-8-8V319.9c0-4.4 3.6-8 8-8H730c4.4 0 8 3.6 8 8v384.2z'));
- exports.ClockCircleFill = getIcon('clock-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm176.5 585.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z'));
- exports.CloseCircleFill = getIcon('close-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z'));
- exports.CloudFill = getIcon('cloud', fill, getNode(newViewBox, 'M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3z'));
- exports.CloseSquareFill = getIcon('close-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM676.1 657.9c4.4 5.2.7 13.1-6.1 13.1h-58.9c-4.7 0-9.2-2.1-12.3-5.7L512 561.8l-86.8 103.5c-3 3.6-7.5 5.7-12.3 5.7H354c-6.8 0-10.5-7.9-6.1-13.1L470.2 512 347.9 366.1A7.95 7.95 0 0 1 354 353h58.9c4.7 0 9.2 2.1 12.3 5.7L512 462.2l86.8-103.5c3-3.6 7.5-5.7 12.3-5.7H670c6.8 0 10.5 7.9 6.1 13.1L553.8 512l122.3 145.9z'));
- exports.CodeSandboxSquareFill = getIcon('code-sandbox-square', fill, getNode(newViewBox, 'M307.9 536.7l87.6 49.9V681l96.7 55.9V524.8L307.9 418.4zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM755.7 653.2L512 794 268.3 653.2V371.8l110-63.6-.4-.2h.2L512 231l134 77h-.2l-.3.2 110.1 63.6v281.4zm-223.9 83.7l97.3-56.2v-94.1l87-49.5V418.5L531.8 525zm-20-352L418 331l-91.1 52.6 185.2 107 185.2-106.9-91.4-52.8z'));
- exports.CodeSandboxCircleFill = getIcon('code-sandbox-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm243.7 589.2L512 794 268.3 653.2V371.8l110-63.6-.4-.2h.2L512 231l134 77h-.2l-.3.2 110.1 63.6v281.4zM307.9 536.7l87.6 49.9V681l96.7 55.9V524.8L307.9 418.4zm203.9-151.8L418 331l-91.1 52.6 185.2 107 185.2-106.9-91.4-52.8zm20 352l97.3-56.2v-94.1l87-49.5V418.5L531.8 525z'));
- exports.CodeFill = getIcon('code', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM513.1 518.1l-192 161c-5.2 4.4-13.1.7-13.1-6.1v-62.7c0-2.3 1.1-4.6 2.9-6.1L420.7 512l-109.8-92.2a7.63 7.63 0 0 1-2.9-6.1V351c0-6.8 7.9-10.5 13.1-6.1l192 160.9c3.9 3.2 3.9 9.1 0 12.3zM716 673c0 4.4-3.4 8-7.5 8h-185c-4.1 0-7.5-3.6-7.5-8v-48c0-4.4 3.4-8 7.5-8h185c4.1 0 7.5 3.6 7.5 8v48z'));
- exports.CompassFill = getIcon('compass', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM327.3 702.4c-2 .9-4.4 0-5.3-2.1-.4-1-.4-2.2 0-3.2l98.7-225.5 132.1 132.1-225.5 98.7zm375.1-375.1l-98.7 225.5-132.1-132.1L697.1 322c2-.9 4.4 0 5.3 2.1.4 1 .4 2.1 0 3.2z'));
- exports.CodepenCircleFill = getIcon('codepen-circle', fill, getNode(newViewBox, 'M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z'));
- exports.CodepenSquareFill = getIcon('codepen-square', fill, getNode(newViewBox, 'M723.1 428L535.9 303.4v111.3l103.6 69.1zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zm23.9 154.2v111.3L723.1 597l-83.6-55.8zm-151.4-69.1L300.9 597l187.2 124.6V610.3l-103.6-69.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-90 485c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-47.8-44.6v-79.8l-59.8 39.9zm-460.4-79.8v79.8l59.8-39.9zm206.3-57.9V303.4L300.9 428l83.6 55.8z'));
- exports.ContactsFill = getIcon('contacts', fill, getNode(newViewBox, 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zM661 736h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.6-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H363a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112 61.5 0 111.4 50.1 111.4 112 0 29.1-11 55.5-29.1 75.5 42.7 26.5 71.8 72.8 74.6 126.1.4 4.6-3.2 8.4-7.8 8.4zM512 474c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52c28.5 0 51.7-23.3 51.7-52s-23.2-52-51.7-52z'));
- exports.ControlFill = getIcon('control', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM404 683v77c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-77c-41.7-13.6-72-52.8-72-99s30.3-85.5 72-99V264c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v221c41.7 13.6 72 52.8 72 99s-30.3 85.5-72 99zm279.6-143.9c.2 0 .3-.1.4-.1v221c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V539c.2 0 .3.1.4.1-42-13.4-72.4-52.7-72.4-99.1 0-46.4 30.4-85.7 72.4-99.1-.2 0-.3.1-.4.1v-77c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v77c-.2 0-.3-.1-.4-.1 42 13.4 72.4 52.7 72.4 99.1 0 46.4-30.4 85.7-72.4 99.1zM616 440a36 36 0 1 0 72 0 36 36 0 1 0-72 0zM403.4 566.5l-1.5-2.4c0-.1-.1-.1-.1-.2l-.9-1.2c-.1-.1-.2-.2-.2-.3-1-1.3-2-2.5-3.2-3.6l-.2-.2c-.4-.4-.8-.8-1.2-1.1-.8-.8-1.7-1.5-2.6-2.1h-.1l-1.2-.9c-.1-.1-.3-.2-.4-.3-1.2-.8-2.5-1.6-3.9-2.2-.2-.1-.5-.2-.7-.4-.4-.2-.7-.3-1.1-.5-.3-.1-.7-.3-1-.4-.5-.2-1-.4-1.5-.5-.4-.1-.9-.3-1.3-.4l-.9-.3-1.4-.3c-.2-.1-.5-.1-.7-.2-.7-.1-1.4-.3-2.1-.4-.2 0-.4 0-.6-.1-.6-.1-1.1-.1-1.7-.2-.2 0-.4 0-.7-.1-.8 0-1.5-.1-2.3-.1s-1.5 0-2.3.1c-.2 0-.4 0-.7.1-.6 0-1.2.1-1.7.2-.2 0-.4 0-.6.1-.7.1-1.4.2-2.1.4-.2.1-.5.1-.7.2l-1.4.3-.9.3c-.4.1-.9.3-1.3.4-.5.2-1 .4-1.5.5-.3.1-.7.3-1 .4-.4.2-.7.3-1.1.5-.2.1-.5.2-.7.4-1.3.7-2.6 1.4-3.9 2.2-.1.1-.3.2-.4.3l-1.2.9h-.1c-.9.7-1.8 1.4-2.6 2.1-.4.4-.8.7-1.2 1.1l-.2.2a54.8 54.8 0 0 0-3.2 3.6c-.1.1-.2.2-.2.3l-.9 1.2c0 .1-.1.1-.1.2l-1.5 2.4c-.1.2-.2.3-.3.5-2.7 5.1-4.3 10.9-4.3 17s1.6 12 4.3 17c.1.2.2.3.3.5l1.5 2.4c0 .1.1.1.1.2l.9 1.2c.1.1.2.2.2.3 1 1.3 2 2.5 3.2 3.6l.2.2c.4.4.8.8 1.2 1.1.8.8 1.7 1.5 2.6 2.1h.1l1.2.9c.1.1.3.2.4.3 1.2.8 2.5 1.6 3.9 2.2.2.1.5.2.7.4.4.2.7.3 1.1.5.3.1.7.3 1 .4.5.2 1 .4 1.5.5.4.1.9.3 1.3.4l.9.3 1.4.3c.2.1.5.1.7.2.7.1 1.4.3 2.1.4.2 0 .4 0 .6.1.6.1 1.1.1 1.7.2.2 0 .4 0 .7.1.8 0 1.5.1 2.3.1s1.5 0 2.3-.1c.2 0 .4 0 .7-.1.6 0 1.2-.1 1.7-.2.2 0 .4 0 .6-.1.7-.1 1.4-.2 2.1-.4.2-.1.5-.1.7-.2l1.4-.3.9-.3c.4-.1.9-.3 1.3-.4.5-.2 1-.4 1.5-.5.3-.1.7-.3 1-.4.4-.2.7-.3 1.1-.5.2-.1.5-.2.7-.4 1.3-.7 2.6-1.4 3.9-2.2.1-.1.3-.2.4-.3l1.2-.9h.1c.9-.7 1.8-1.4 2.6-2.1.4-.4.8-.7 1.2-1.1l.2-.2c1.1-1.1 2.2-2.4 3.2-3.6.1-.1.2-.2.2-.3l.9-1.2c0-.1.1-.1.1-.2l1.5-2.4c.1-.2.2-.3.3-.5 2.7-5.1 4.3-10.9 4.3-17s-1.6-12-4.3-17c-.1-.2-.2-.4-.3-.5z'));
- exports.ContainerFill = getIcon('container', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v529c0-.6.4-1 1-1h219.3l5.2 24.7C397.6 708.5 450.8 752 512 752s114.4-43.5 126.4-103.3l5.2-24.7H863c.6 0 1 .4 1 1V96c0-17.7-14.3-32-32-32zM712 493c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48zm0-160c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48zm151 354H694.1c-11.6 32.8-32 62.3-59.1 84.7-34.5 28.6-78.2 44.3-123 44.3s-88.5-15.8-123-44.3a194.02 194.02 0 0 1-59.1-84.7H161c-.6 0-1-.4-1-1v242c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V686c0 .6-.4 1-1 1z'));
- exports.CopyFill = getIcon('copy', fill, getNode(newViewBox, 'M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM382 896h-.2L232 746.2v-.2h150v150z'));
- exports.CopyrightCircleFill = getIcon('copyright-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm5.4 670c-110 0-173.4-73.2-173.4-194.9v-52.3C344 364.2 407.4 290 517.3 290c94.3 0 162.7 60.7 162.7 147.4 0 2.6-2.1 4.7-4.7 4.7h-56.7c-4.2 0-7.6-3.2-8-7.4-4-49.5-40-83.4-93-83.4-65.3 0-102.1 48.5-102.1 135.5v52.6c0 85.7 36.9 133.6 102.1 133.6 52.8 0 88.7-31.7 93-77.8.4-4.1 3.8-7.3 8-7.3h56.8c2.6 0 4.7 2.1 4.7 4.7 0 82.6-68.7 141.4-162.7 141.4z'));
- exports.CreditCardFill = getIcon('credit-card', fill, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v160h896V192c0-17.7-14.3-32-32-32zM64 832c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V440H64v392zm579-184c0-4.4 3.6-8 8-8h165c4.4 0 8 3.6 8 8v72c0 4.4-3.6 8-8 8H651c-4.4 0-8-3.6-8-8v-72z'));
- exports.CrownFill = getIcon('crown', fill, getNode(newViewBox, 'M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zM512 734.2c-62.1 0-112.6-50.5-112.6-112.6S449.9 509 512 509s112.6 50.5 112.6 112.6S574.1 734.2 512 734.2zm0-160.9c-26.6 0-48.2 21.6-48.2 48.3 0 26.6 21.6 48.3 48.2 48.3s48.2-21.6 48.2-48.3c0-26.6-21.6-48.3-48.2-48.3z'));
- exports.CustomerServiceFill = getIcon('customer-service', fill, getNode(newViewBox, 'M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384z'));
- exports.DashboardFill = getIcon('dashboard', fill, getNode(newViewBox, 'M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM482 232c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.5l-31.1 31.1a8.03 8.03 0 0 1-11.3 0L261.7 352a8.03 8.03 0 0 1 0-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.6l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 0 1-79.2 0 55.95 55.95 0 0 1 0-79.2 55.87 55.87 0 0 1 54.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.1 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 0 1 0-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 0 1-11.3 0zM846 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44z'));
- exports.DeleteFill = getIcon('delete', fill, getNode(newViewBox, 'M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z'));
- exports.DiffFill = getIcon('diff', fill, getNode(newViewBox, 'M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23zM553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM568 753c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-220c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7v42z'));
- exports.DingtalkCircleFill = getIcon('dingtalk-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm227 385.3c-1 4.2-3.5 10.4-7 17.8h.1l-.4.7c-20.3 43.1-73.1 127.7-73.1 127.7s-.1-.2-.3-.5l-15.5 26.8h74.5L575.1 810l32.3-128h-58.6l20.4-84.7c-16.5 3.9-35.9 9.4-59 16.8 0 0-31.2 18.2-89.9-35 0 0-39.6-34.7-16.6-43.4 9.8-3.7 47.4-8.4 77-12.3 40-5.4 64.6-8.2 64.6-8.2S422 517 392.7 512.5c-29.3-4.6-66.4-53.1-74.3-95.8 0 0-12.2-23.4 26.3-12.3 38.5 11.1 197.9 43.2 197.9 43.2s-207.4-63.3-221.2-78.7c-13.8-15.4-40.6-84.2-37.1-126.5 0 0 1.5-10.5 12.4-7.7 0 0 153.3 69.7 258.1 107.9 104.8 37.9 195.9 57.3 184.2 106.7z'));
- exports.DatabaseFill = getIcon('database', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM288 232c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm128-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm128-168c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'));
- exports.DingtalkSquareFill = getIcon('dingtalk-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM739 449.3c-1 4.2-3.5 10.4-7 17.8h.1l-.4.7c-20.3 43.1-73.1 127.7-73.1 127.7s-.1-.2-.3-.5l-15.5 26.8h74.5L575.1 810l32.3-128h-58.6l20.4-84.7c-16.5 3.9-35.9 9.4-59 16.8 0 0-31.2 18.2-89.9-35 0 0-39.6-34.7-16.6-43.4 9.8-3.7 47.4-8.4 77-12.3 40-5.4 64.6-8.2 64.6-8.2S422 517 392.7 512.5c-29.3-4.6-66.4-53.1-74.3-95.8 0 0-12.2-23.4 26.3-12.3 38.5 11.1 197.9 43.2 197.9 43.2s-207.4-63.3-221.2-78.7c-13.8-15.4-40.6-84.2-37.1-126.5 0 0 1.5-10.5 12.4-7.7 0 0 153.3 69.7 258.1 107.9 104.8 37.9 195.9 57.3 184.2 106.7z'));
- exports.DislikeFill = getIcon('dislike', fill, getNode(newViewBox, 'M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H273v428h.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32z'));
- exports.DollarCircleFill = getIcon('dollar-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm22.3 665.2l.2 31.7c0 4.4-3.6 8.1-8 8.1h-28.4c-4.4 0-8-3.6-8-8v-31.4C401.3 723 359.5 672.4 355 617.4c-.4-4.7 3.3-8.7 8-8.7h46.2c3.9 0 7.3 2.8 7.9 6.6 5.1 31.7 29.8 55.4 74.1 61.3V533.9l-24.7-6.3c-52.3-12.5-102.1-45.1-102.1-112.7 0-72.9 55.4-112.1 126.2-119v-33c0-4.4 3.6-8 8-8h28.1c4.4 0 8 3.6 8 8v32.7c68.5 6.9 119.9 46.9 125.9 109.2.5 4.7-3.2 8.8-8 8.8h-44.9c-4 0-7.4-3-7.9-6.9-4-29.2-27.4-53-65.5-58.2v134.3l25.4 5.9c64.8 16 108.9 47 108.9 116.4 0 75.3-56 117.3-134.3 124.1zM426.6 410.3c0 25.4 15.7 45.1 49.5 57.3 4.7 1.9 9.4 3.4 15 5v-124c-36.9 4.7-64.5 25.4-64.5 61.7zm116.5 135.2c-2.8-.6-5.6-1.3-8.8-2.2V677c42.6-3.8 72-27.2 72-66.4 0-30.7-15.9-50.7-63.2-65.1z'));
- exports.DownCircleFill = getIcon('down-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm184.5 353.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7H381c10.2 0 19.9 4.9 25.9 13.2L512 563.6l105.2-145.4c6-8.3 15.6-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.5 12.7z'));
- exports.DownSquareFill = getIcon('down-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM696.5 412.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7H381c10.2 0 19.9 4.9 25.9 13.2L512 558.6l105.2-145.4c6-8.3 15.6-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.5 12.7z'));
- exports.DribbbleCircleFill = getIcon('dribbble-circle', fill, getNode(newViewBox, 'M675.1 328.3a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6zm47.7-11.9c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 736c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm53.1-346.2c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm30.6 82.5c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4z'));
- exports.DribbbleSquareFill = getIcon('dribbble-square', fill, getNode(newViewBox, 'M498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm66.5 21.8c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM512 800c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm89.7-259.1c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zm-72.5-26.4c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4zm145.9-186.2a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6z'));
- exports.DropboxCircleFill = getIcon('dropbox-circle', fill, getNode(newViewBox, 'M663.8 455.5zm-151.5-93.8l-151.8 93.8 151.8 93.9 151.5-93.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm151.2 595.5L512.6 750l-151-90.5v-33.1l45.4 29.4 105.6-87.7 105.6 87.7 45.1-29.4v33.1zm-45.6-22.4l-105.3-87.7L407 637.1l-151-99.2 104.5-82.4L256 371.2 407 274l105.3 87.7L617.6 274 768 372.1l-104.2 83.5L768 539l-150.4 98.1z'));
- exports.DropboxSquareFill = getIcon('dropbox-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM663.2 659.5L512.6 750l-151-90.5v-33.1l45.4 29.4 105.6-87.7 105.6 87.7 45.1-29.4v33.1zm-45.6-22.4l-105.3-87.7L407 637.1l-151-99.2 104.5-82.4L256 371.2 407 274l105.3 87.7L617.6 274 768 372.1l-104.2 83.5L768 539l-150.4 98.1zM512.3 361.7l-151.8 93.8 151.8 93.9 151.5-93.9zm151.5 93.8z'));
- exports.EnvironmentFill = getIcon('environment', fill, getNode(newViewBox, 'M512 327c-29.9 0-58 11.6-79.2 32.8A111.6 111.6 0 0 0 400 439c0 29.9 11.7 58 32.8 79.2A111.6 111.6 0 0 0 512 551c29.9 0 58-11.7 79.2-32.8C612.4 497 624 468.9 624 439c0-29.9-11.6-58-32.8-79.2S541.9 327 512 327zm342.6-37.9a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 615c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'));
- exports.EditFill = getIcon('edit', fill, getNode(newViewBox, 'M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z'));
- exports.ExclamationCircleFill = getIcon('exclamation-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
- exports.EuroCircleFill = getIcon('euro-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm63.5 375.8c4.4 0 8 3.6 8 8V475c0 4.4-3.6 8-8 8h-136c-.3 4.4-.3 9.1-.3 13.8v36h136.2c4.4 0 8 3.6 8 8V568c0 4.4-3.6 8-8 8H444.9c15.3 62 61.3 98.6 129.8 98.6 19.9 0 37.1-1.2 51.8-4.1 4.9-1 9.5 2.8 9.5 7.8v42.8c0 3.8-2.7 7-6.4 7.8-15.9 3.4-34.3 5.1-55.3 5.1-109.8 0-183-58.8-200.2-158H344c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h26.1v-36.9c0-4.4 0-8.8.3-12.8H344c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h31.7c19.7-94.2 92-149.9 198.6-149.9 20.9 0 39.4 1.9 55.3 5.4 3.7.8 6.3 4 6.3 7.8V346h.1c0 5.1-4.6 8.8-9.6 7.8-14.7-2.9-31.8-4.4-51.7-4.4-65.4 0-110.4 33.5-127.6 90.4h128.4z'));
- exports.ExperimentFill = getIcon('experiment', fill, getNode(newViewBox, 'M218.9 636.3l42.6 26.6c.1.1.3.2.4.3l12.7 8 .3.3a186.9 186.9 0 0 0 94.1 25.1c44.9 0 87.2-15.7 121-43.8a256.27 256.27 0 0 1 164.9-59.9c52.3 0 102.2 15.7 144.6 44.5l7.9 5-111.6-289V179.8h63.5c4.4 0 8-3.6 8-8V120c0-4.4-3.6-8-8-8H264.7c-4.4 0-8 3.6-8 8v51.9c0 4.4 3.6 8 8 8h63.5v173.6L218.9 636.3zm333-203.1c22 0 39.9 17.9 39.9 39.9S573.9 513 551.9 513 512 495.1 512 473.1s17.9-39.9 39.9-39.9zM878 825.1l-29.9-77.4-85.7-53.5-.1.1c-.7-.5-1.5-1-2.2-1.5l-8.1-5-.3-.3c-29-17.5-62.3-26.8-97-26.8-44.9 0-87.2 15.7-121 43.8a256.27 256.27 0 0 1-164.9 59.9c-53 0-103.5-16.1-146.2-45.6l-28.9-18.1L146 825.1c-2.8 7.4-4.3 15.2-4.3 23 0 35.2 28.6 63.8 63.8 63.8h612.9c7.9 0 15.7-1.5 23-4.3a63.6 63.6 0 0 0 36.6-82.5z'));
- exports.EyeInvisibleFill = getIcon('eye-invisible', fill, getNode(newViewBox, 'M508 624a112 112 0 0 0 112-112c0-3.28-.15-6.53-.43-9.74L498.26 623.57c3.21.28 6.45.43 9.74.43zm370.72-458.44L836 122.88a8 8 0 0 0-11.31 0L715.37 232.23Q624.91 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.7 119.43 136.55 191.45L112.56 835a8 8 0 0 0 0 11.31L155.25 889a8 8 0 0 0 11.31 0l712.16-712.12a8 8 0 0 0 0-11.32zM332 512a176 176 0 0 1 258.88-155.28l-48.62 48.62a112.08 112.08 0 0 0-140.92 140.92l-48.62 48.62A175.09 175.09 0 0 1 332 512z', 'M942.2 486.2Q889.4 375 816.51 304.85L672.37 449A176.08 176.08 0 0 1 445 676.37L322.74 798.63Q407.82 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z'));
- exports.EyeFill = getIcon('eye', fill, getNode(newViewBox, 'M396 512a112 112 0 1 0 224 0 112 112 0 1 0-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'));
- exports.FacebookFill = getIcon('facebook', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-92.4 233.5h-63.9c-50.1 0-59.8 23.8-59.8 58.8v77.1h119.6l-15.6 120.7h-104V912H539.2V602.2H434.9V481.4h104.3v-89c0-103.3 63.1-159.6 155.3-159.6 44.2 0 82.1 3.3 93.2 4.8v107.9z'));
- exports.FastBackwardFill = getIcon('fast-backward', fill, getNode(normalViewBox, 'M517.6 273.5L230.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
- exports.FastForwardFill = getIcon('fast-forward', fill, getNode(normalViewBox, 'M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 0 0 0-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
- exports.FileAddFill = getIcon('file-add', fill, getNode(newViewBox, 'M480 580H372a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h108v108a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8V644h108a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H544V472a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v108zm374.6-291.3c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z'));
- exports.FileExcelFill = getIcon('file-excel', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 0 0-10.27-5.79h-38.44a12 12 0 0 0-6.4 1.85 12 12 0 0 0-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 0 0-1.84 6.39 12 12 0 0 0 12 12h34.46a12 12 0 0 0 10.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0 0 10.23 5.72h37.48a12 12 0 0 0 6.48-1.9 12 12 0 0 0 3.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 0 0 1.9-6.5 12 12 0 0 0-12-12h-35.7a12 12 0 0 0-10.29 5.84z'));
- exports.FileExclamationFill = getIcon('file-exclamation', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 784a40 40 0 1 0 0-80 40 40 0 0 0 0 80zm32-152V448a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v184a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8z'));
- exports.FileImageFill = getIcon('file-image', fill, getNode(newViewBox, 'M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0 1 12.6 0l41.1 52.4 77.8-99.2a8 8 0 0 1 12.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z'));
- exports.FileMarkdownFill = getIcon('file-markdown', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0 0 14.62 9.5h24.06a16 16 0 0 0 14.63-9.51l59.1-133.35V758a16 16 0 0 0 16.01 16H641a16 16 0 0 0 16-16V486a16 16 0 0 0-16-16h-34.75a16 16 0 0 0-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 0 0-14.67-9.61H383a16 16 0 0 0-16 16v272a16 16 0 0 0 16 16h27.13a16 16 0 0 0 16-16V600.93z'));
- exports.FilePdfFill = getIcon('file-pdf', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 0 1 5.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 0 1-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 0 1-1.12-.15 2.07 2.07 0 0 1-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 0 1-1.36 6.31 6.7 6.7 0 0 1-2.17 1.28z'));
- exports.FilePptFill = getIcon('file-ppt', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 0 0-12 12v276a12 12 0 0 0 12 12h32.53a12 12 0 0 0 12-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z'));
- exports.FileTextFill = getIcon('file-text', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h384a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H320zm0 136a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h184a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H320z'));
- exports.FileWordFill = getIcon('file-word', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0 0 11.6 8.9h31.77a12 12 0 0 0 11.6-8.88l74.37-276a12 12 0 0 0 .4-3.12 12 12 0 0 0-12-12h-35.57a12 12 0 0 0-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 0 0 528.1 472h-32.2a12 12 0 0 0-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 0 0-11.68-9.29h-35.39a12 12 0 0 0-3.11.41 12 12 0 0 0-8.47 14.7l74.17 276A12 12 0 0 0 415.6 772h31.99a12 12 0 0 0 11.59-8.9l52.81-197z'));
- exports.FileUnknownFill = getIcon('file-unknown', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103zm110 227a32 32 0 1 0 0-64 32 32 0 0 0 0 64z'));
- exports.FileZipFill = getIcon('file-zip', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z'));
- exports.FileFill = getIcon('file', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z'));
- exports.FilterFill = getIcon('filter', fill, getNode(newViewBox, 'M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z'));
- exports.FireFill = getIcon('fire', fill, getNode(newViewBox, 'M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9z'));
- exports.FlagFill = getIcon('flag', fill, getNode(newViewBox, 'M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32z'));
- exports.FolderAddFill = getIcon('folder-add', fill, getNode(newViewBox, 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM632 577c0 3.8-3.4 7-7.5 7H540v84.9c0 3.9-3.2 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V584h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7H484v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.8 0 7 3.2 7 7.1V528h84.5c4.1 0 7.5 3.2 7.5 7v42z'));
- exports.FolderFill = getIcon('folder', fill, getNode(newViewBox, 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z'));
- exports.FolderOpenFill = getIcon('folder-open', fill, getNode(newViewBox, 'M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zm-180 0H238c-13 0-24.8 7.9-29.7 20L136 643.2V256h188.5l119.6 114.4H748V444z'));
- exports.ForwardFill = getIcon('forward', fill, getNode(normalViewBox, 'M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z'));
- exports.FrownFill = getIcon('frown', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm376 272h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 636.1 562.5 597 512 597s-92.1 39.1-95.8 88.6c-.3 4.2-3.9 7.4-8.1 7.4H360a8 8 0 0 1-8-8.4c4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6a8 8 0 0 1-8 8.4zm24-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
- exports.FundFill = getIcon('fund', fill, getNode(newViewBox, 'M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-92.3 194.4l-297 297.2a8.03 8.03 0 0 1-11.3 0L410.9 541.1 238.4 713.7a8.03 8.03 0 0 1-11.3 0l-36.8-36.8a8.03 8.03 0 0 1 0-11.3l214.9-215c3.1-3.1 8.2-3.1 11.3 0L531 565l254.5-254.6c3.1-3.1 8.2-3.1 11.3 0l36.8 36.8c3.2 3 3.2 8.1.1 11.2z'));
- exports.FunnelPlotFill = getIcon('funnel-plot', fill, getNode(newViewBox, 'M336.7 586h350.6l84.9-148H251.8zm543.4-432H143.9c-24.5 0-39.8 26.7-27.5 48L215 374h594l98.7-172c12.2-21.3-3.1-48-27.6-48zM349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V650H349v188z'));
- exports.GiftFill = getIcon('gift', fill, getNode(newViewBox, 'M160 894c0 17.7 14.3 32 32 32h286V550H160v344zm386 32h286c17.7 0 32-14.3 32-32V550H546v376zm334-616H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v140h366V310h68v172h366V342c0-17.7-14.3-32-32-32zm-402-4h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70 70 31.4 70 70v70zm138 0h-70v-70c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70z'));
- exports.GithubFill = getIcon('github', fill, getNode(newViewBox, 'M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z'));
- exports.GitlabFill = getIcon('gitlab', fill, getNode(newViewBox, 'M910.5 553.2l-109-370.8c-6.8-20.4-23.1-34.1-44.9-34.1s-39.5 12.3-46.3 32.7l-72.2 215.4H386.2L314 181.1c-6.8-20.4-24.5-32.7-46.3-32.7s-39.5 13.6-44.9 34.1L113.9 553.2c-4.1 13.6 1.4 28.6 12.3 36.8l385.4 289 386.7-289c10.8-8.1 16.3-23.1 12.2-36.8z'));
- exports.GoldenFill = getIcon('golden', fill, getNode(newViewBox, 'M905.9 806.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zm-470.2-248c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8z'));
- exports.GoogleCircleFill = getIcon('google-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm167 633.6C638.4 735 583 757 516.9 757c-95.7 0-178.5-54.9-218.8-134.9C281.5 589 272 551.6 272 512s9.5-77 26.1-110.1c40.3-80.1 123.1-135 218.8-135 66 0 121.4 24.3 163.9 63.8L610.6 401c-25.4-24.3-57.7-36.6-93.6-36.6-63.8 0-117.8 43.1-137.1 101-4.9 14.7-7.7 30.4-7.7 46.6s2.8 31.9 7.7 46.6c19.3 57.9 73.3 101 137 101 33 0 61-8.7 82.9-23.4 26-17.4 43.2-43.3 48.9-74H516.9v-94.8h230.7c2.9 16.1 4.4 32.8 4.4 50.1 0 74.7-26.7 137.4-73 180.1z'));
- exports.GooglePlusCircleFill = getIcon('google-plus-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm36.5 558.8c-43.9 61.8-132.1 79.8-200.9 53.3-69-26.3-118-99.2-112.1-173.5 1.5-90.9 85.2-170.6 176.1-167.5 43.6-2 84.6 16.9 118 43.6-14.3 16.2-29 31.8-44.8 46.3-40.1-27.7-97.2-35.6-137.3-3.6-57.4 39.7-60 133.4-4.8 176.1 53.7 48.7 155.2 24.5 170.1-50.1-33.6-.5-67.4 0-101-1.1-.1-20.1-.2-40.1-.1-60.2 56.2-.2 112.5-.3 168.8.2 3.3 47.3-3 97.5-32 136.5zM791 536.5c-16.8.2-33.6.3-50.4.4-.2 16.8-.3 33.6-.3 50.4H690c-.2-16.8-.2-33.5-.3-50.3-16.8-.2-33.6-.3-50.4-.5v-50.1c16.8-.2 33.6-.3 50.4-.3.1-16.8.3-33.6.4-50.4h50.2l.3 50.4c16.8.2 33.6.2 50.4.3v50.1z'));
- exports.GooglePlusSquareFill = getIcon('google-plus-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM548.5 622.8c-43.9 61.8-132.1 79.8-200.9 53.3-69-26.3-118-99.2-112.1-173.5 1.5-90.9 85.2-170.6 176.1-167.5 43.6-2 84.6 16.9 118 43.6-14.3 16.2-29 31.8-44.8 46.3-40.1-27.7-97.2-35.6-137.3-3.6-57.4 39.7-60 133.4-4.8 176.1 53.7 48.7 155.2 24.5 170.1-50.1-33.6-.5-67.4 0-101-1.1-.1-20.1-.2-40.1-.1-60.2 56.2-.2 112.5-.3 168.8.2 3.3 47.3-3 97.5-32 136.5zM791 536.5c-16.8.2-33.6.3-50.4.4-.2 16.8-.3 33.6-.3 50.4H690c-.2-16.8-.2-33.5-.3-50.3-16.8-.2-33.6-.3-50.4-.5v-50.1c16.8-.2 33.6-.3 50.4-.3.1-16.8.3-33.6.4-50.4h50.2l.3 50.4c16.8.2 33.6.2 50.4.3v50.1z'));
- exports.GoogleSquareFill = getIcon('google-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM679 697.6C638.4 735 583 757 516.9 757c-95.7 0-178.5-54.9-218.8-134.9A245.02 245.02 0 0 1 272 512c0-39.6 9.5-77 26.1-110.1 40.3-80.1 123.1-135 218.8-135 66 0 121.4 24.3 163.9 63.8L610.6 401c-25.4-24.3-57.7-36.6-93.6-36.6-63.8 0-117.8 43.1-137.1 101-4.9 14.7-7.7 30.4-7.7 46.6s2.8 31.9 7.7 46.6c19.3 57.9 73.3 101 137 101 33 0 61-8.7 82.9-23.4 26-17.4 43.2-43.3 48.9-74H516.9v-94.8h230.7c2.9 16.1 4.4 32.8 4.4 50.1 0 74.7-26.7 137.4-73 180.1z'));
- exports.HddFill = getIcon('hdd', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM456 216c0 4.4-3.6 8-8 8H264c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm576-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm96-152c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H264c-4.4 0-8-3.6-8-8v-48z'));
- exports.HeartFill = getIcon('heart', fill, getNode(newViewBox, 'M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z'));
- exports.HighlightFill = getIcon('highlight', fill, getNode(newViewBox, 'M957.6 507.4L603.2 158.2a7.9 7.9 0 0 0-11.2 0L353.3 393.4a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2z'));
- exports.HomeFill = getIcon('home', fill, getNode(newViewBox, 'M946.5 505L534.6 93.4a31.93 31.93 0 0 0-45.2 0L77.5 505c-12 12-18.8 28.3-18.8 45.3 0 35.3 28.7 64 64 64h43.4V908c0 17.7 14.3 32 32 32H448V716h112v224h265.9c17.7 0 32-14.3 32-32V614.3h43.4c17 0 33.3-6.7 45.3-18.8 24.9-25 24.9-65.5-.1-90.5z'));
- exports.HourglassFill = getIcon('hourglass', fill, getNode(newViewBox, 'M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194z'));
- exports.Html5Fill = getIcon('html5', fill, getNode(newViewBox, 'M145.2 96l66 746.6L512 928l299.6-85.4L878.9 96H145.2zm595 177.1l-4.8 47.2-1.7 19.5H382.3l8.2 94.2h335.1l-3.3 24.3-21.2 242.2-1.7 16.2-187 51.6v.3h-1.2l-.3.1v-.1h-.1l-188.6-52L310.8 572h91.1l6.5 73.2 102.4 27.7h.4l102-27.6 11.4-118.6H510.9v-.1H306l-22.8-253.5-1.7-24.3h460.3l-1.6 24.3z'));
- exports.IdcardFill = getIcon('idcard', fill, getNode(newViewBox, 'M373 411c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52 51.7-23.3 51.7-52-23.2-52-51.7-52zm555-251H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM608 420c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm-86 253h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.5-29.1 75.5 42.7 26.5 71.8 72.8 74.6 126.1.4 4.6-3.2 8.4-7.8 8.4zm278.9-53H615.1c-3.9 0-7.1-3.6-7.1-8v-48c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48h.1c0 4.4-3.2 8-7.1 8z'));
- exports.IeCircleFill = getIcon('ie-circle', fill, getNode(newViewBox, 'M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z'));
- exports.IeSquareFill = getIcon('ie-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM765.9 556.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zm-72.3-272.5c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z'));
- exports.InfoCircleFill = getIcon('info-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
- exports.InstagramFill = getIcon('instagram', fill, getNode(newViewBox, 'M512 378.7c-73.4 0-133.3 59.9-133.3 133.3S438.6 645.3 512 645.3 645.3 585.4 645.3 512 585.4 378.7 512 378.7zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zM512 717.1c-113.5 0-205.1-91.6-205.1-205.1S398.5 306.9 512 306.9 717.1 398.5 717.1 512 625.5 717.1 512 717.1zm213.5-370.7c-26.5 0-47.9-21.4-47.9-47.9s21.4-47.9 47.9-47.9 47.9 21.4 47.9 47.9a47.84 47.84 0 0 1-47.9 47.9z'));
- exports.InsuranceFill = getIcon('insurance', fill, getNode(newViewBox, 'M519.9 358.8h97.9v41.6h-97.9zm347-188.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM411.3 656h-.2c0 4.4-3.6 8-8 8h-37.3c-4.4 0-8-3.6-8-8V471.4c-7.7 9.2-15.4 17.9-23.1 26a6.04 6.04 0 0 1-10.2-2.4l-13.2-43.5c-.6-2-.2-4.1 1.2-5.6 37-43.4 64.7-95.1 82.2-153.6 1.1-3.5 5-5.3 8.4-3.7l38.6 18.3c2.7 1.3 4.1 4.4 3.2 7.2a429.2 429.2 0 0 1-33.6 79V656zm296.5-49.2l-26.3 35.3a5.92 5.92 0 0 1-8.9.7c-30.6-29.3-56.8-65.2-78.1-106.9V656c0 4.4-3.6 8-8 8h-36.2c-4.4 0-8-3.6-8-8V536c-22 44.7-49 80.8-80.6 107.6a5.9 5.9 0 0 1-8.9-1.4L430 605.7a6 6 0 0 1 1.6-8.1c28.6-20.3 51.9-45.2 71-76h-55.1c-4.4 0-8-3.6-8-8V478c0-4.4 3.6-8 8-8h94.9v-18.6h-65.9c-4.4 0-8-3.6-8-8V316c0-4.4 3.6-8 8-8h184.7c4.4 0 8 3.6 8 8v127.2c0 4.4-3.6 8-8 8h-66.7v18.6h98.8c4.4 0 8 3.6 8 8v35.6c0 4.4-3.6 8-8 8h-59c18.1 29.1 41.8 54.3 72.3 76.9 2.6 2.1 3.2 5.9 1.2 8.5z'));
- exports.InteractionFill = getIcon('interaction', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z'));
- exports.InterationFill = getIcon('interation', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z'));
- exports.LayoutFill = getIcon('layout', fill, getNode(newViewBox, 'M384 912h496c17.7 0 32-14.3 32-32V340H384v572zm496-800H384v164h528V144c0-17.7-14.3-32-32-32zm-768 32v736c0 17.7 14.3 32 32 32h176V112H144c-17.7 0-32 14.3-32 32z'));
- exports.LeftCircleFill = getIcon('left-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178a8 8 0 0 1 12.7 6.5v46.8z'));
- exports.LeftSquareFill = getIcon('left-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM624 380.9c0 10.2-4.9 19.9-13.2 25.9L465.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178c5.3-3.8 12.7 0 12.7 6.5v46.8z'));
- exports.LikeFill = getIcon('like', fill, getNode(newViewBox, 'M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311h-.3v428h472.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32z'));
- exports.LockFill = getIcon('lock', fill, getNode(newViewBox, 'M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0zm152-237H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224z'));
- exports.LinkedinFill = getIcon('linkedin', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM349.3 793.7H230.6V411.9h118.7v381.8zm-59.3-434a68.8 68.8 0 1 1 68.8-68.8c-.1 38-30.9 68.8-68.8 68.8zm503.7 434H675.1V608c0-44.3-.8-101.2-61.7-101.2-61.7 0-71.2 48.2-71.2 98v188.9H423.7V411.9h113.8v52.2h1.6c15.8-30 54.5-61.7 112.3-61.7 120.2 0 142.3 79.1 142.3 181.9v209.4z'));
- exports.MailFill = getIcon('mail', fill, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-80.8 108.9L531.7 514.4c-7.8 6.1-18.7 6.1-26.5 0L189.6 268.9A7.2 7.2 0 0 1 194 256h648.8a7.2 7.2 0 0 1 4.4 12.9z'));
- exports.MedicineBoxFill = getIcon('medicine-box', fill, getNode(newViewBox, 'M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM660 628c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V636H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V464c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8v48zm4-372H360v-72h304v72z'));
- exports.MediumCircleFill = getIcon('medium-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm256 253.7l-40.8 39.1c-3.6 2.7-5.3 7.1-4.6 11.4v287.7c-.7 4.4 1 8.8 4.6 11.4l40 39.1v8.7H566.4v-8.3l41.3-40.1c4.1-4.1 4.1-5.3 4.1-11.4V422.5l-115 291.6h-15.5L347.5 422.5V618c-1.2 8.2 1.7 16.5 7.5 22.4l53.8 65.1v8.7H256v-8.7l53.8-65.1a26.1 26.1 0 0 0 7-22.4V392c.7-6.3-1.7-12.4-6.5-16.7l-47.8-57.6V309H411l114.6 251.5 100.9-251.3H768v8.5z'));
- exports.MediumSquareFill = getIcon('medium-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM768 317.7l-40.8 39.1c-3.6 2.7-5.3 7.1-4.6 11.4v287.7c-.7 4.4 1 8.8 4.6 11.4l40 39.1v8.7H566.4v-8.3l41.3-40.1c4.1-4.1 4.1-5.3 4.1-11.4V422.5l-115 291.6h-15.5L347.5 422.5V618c-1.2 8.2 1.7 16.5 7.5 22.4l53.8 65.1v8.7H256v-8.7l53.8-65.1a26.1 26.1 0 0 0 7-22.4V392c.7-6.3-1.7-12.4-6.5-16.7l-47.8-57.6V309H411l114.6 251.5 100.9-251.3H768v8.5z'));
- exports.MehFill = getIcon('meh', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm384 200c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v48zm16-152a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
- exports.MessageFill = getIcon('message', fill, getNode(newViewBox, 'M924.3 338.4a447.57 447.57 0 0 0-96.1-143.3 443.09 443.09 0 0 0-143-96.3A443.91 443.91 0 0 0 512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 0 0-141.7 96.5 445 445 0 0 0-95 142.8A449.89 449.89 0 0 0 65 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 0 0 199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 0 0 827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z'));
- exports.MinusCircleFill = getIcon('minus-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z'));
- exports.MinusSquareFill = getIcon('minus-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z'));
- exports.MobileFill = getIcon('mobile', fill, getNode(newViewBox, 'M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zM512 824c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'));
- exports.MoneyCollectFill = getIcon('money-collect', fill, getNode(newViewBox, 'M911.5 699.7a8 8 0 0 0-10.3-4.8L840 717.2V179c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V762c0 3.3 2.1 6.3 5.3 7.5L501 909.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zm-243.8-377L564 514.3h57.6c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3v39h76.3c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3V703c0 4.4-3.6 8-8 8h-49.9c-4.4 0-8-3.6-8-8v-63.4h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h76v-39h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h57L356.5 322.8c-2.1-3.8-.7-8.7 3.2-10.8 1.2-.7 2.5-1 3.8-1h55.7a8 8 0 0 1 7.1 4.4L511 484.2h3.3L599 315.4c1.3-2.7 4.1-4.4 7.1-4.4h54.5c4.4 0 8 3.6 8.1 7.9 0 1.3-.4 2.6-1 3.8z'));
- exports.PauseCircleFill = getIcon('pause-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-80 600c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z'));
- exports.PayCircleFill = getIcon('pay-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm166.6 246.8L567.5 515.6h62c4.4 0 8 3.6 8 8v29.9c0 4.4-3.6 8-8 8h-82V603h82c4.4 0 8 3.6 8 8v29.9c0 4.4-3.6 8-8 8h-82V717c0 4.4-3.6 8-8 8h-54.3c-4.4 0-8-3.6-8-8v-68.1h-81.7c-4.4 0-8-3.6-8-8V611c0-4.4 3.6-8 8-8h81.7v-41.5h-81.7c-4.4 0-8-3.6-8-8v-29.9c0-4.4 3.6-8 8-8h61.4L345.4 310.8a8.07 8.07 0 0 1 7-11.9h60.7c3 0 5.8 1.7 7.1 4.4l90.6 180h3.4l90.6-180a8 8 0 0 1 7.1-4.4h59.5c4.4 0 8 3.6 8 8 .2 1.4-.2 2.7-.8 3.9z'));
- exports.NotificationFill = getIcon('notification', fill, getNode(newViewBox, 'M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.6c-3.7 11.6-5.6 23.9-5.6 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1z'));
- exports.PhoneFill = getIcon('phone', fill, getNode(newViewBox, 'M885.6 230.2L779.1 123.8a80.83 80.83 0 0 0-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L549.8 238.4a80.83 80.83 0 0 0-23.8 57.3c0 21.7 8.5 42.1 23.8 57.4l83.8 83.8A393.82 393.82 0 0 1 553.1 553 395.34 395.34 0 0 1 437 633.8L353.2 550a80.83 80.83 0 0 0-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L123.8 664.5a80.89 80.89 0 0 0-23.8 57.4c0 21.7 8.5 42.1 23.8 57.4l106.3 106.3c24.4 24.5 58.1 38.4 92.7 38.4 7.3 0 14.3-.6 21.2-1.8 134.8-22.2 268.5-93.9 376.4-201.7C828.2 612.8 899.8 479.2 922.3 344c6.8-41.3-6.9-83.8-36.7-113.8z'));
- exports.PictureFill = getIcon('picture', fill, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM338 304c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm513.9 437.1a8.11 8.11 0 0 1-5.2 1.9H177.2c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2l170.3-202c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l99.4 118 158.1-187.5c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l229.6 271.6c2.6 3.3 2.2 8.4-1.2 11.2z'));
- exports.PieChartFill = getIcon('pie-chart', fill, getNode(newViewBox, 'M863.1 518.5H505.5V160.9c0-4.4-3.6-8-8-8h-26a398.57 398.57 0 0 0-282.5 117 397.47 397.47 0 0 0-85.6 127C82.6 446.2 72 498.5 72 552.5S82.6 658.7 103.4 708c20.1 47.5 48.9 90.3 85.6 127 36.7 36.7 79.4 65.5 127 85.6a396.64 396.64 0 0 0 155.6 31.5 398.57 398.57 0 0 0 282.5-117c36.7-36.7 65.5-79.4 85.6-127a396.64 396.64 0 0 0 31.5-155.6v-26c-.1-4.4-3.7-8-8.1-8zM951 463l-2.6-28.2c-8.5-92-49.3-178.8-115.1-244.3A398.5 398.5 0 0 0 588.4 75.6L560.1 73c-4.7-.4-8.7 3.2-8.7 7.9v383.7c0 4.4 3.6 8 8 8l383.6-1c4.7-.1 8.4-4 8-8.6z'));
- exports.PlayCircleFill = getIcon('play-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 0 1-12.7-6.5V353.7a8 8 0 0 1 12.7-6.5L656.1 506a7.9 7.9 0 0 1 0 12.9z'));
- exports.PlaySquareFill = getIcon('play-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM641.7 520.8L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 0 1 0 17.6z'));
- exports.PlusCircleFill = getIcon('plus-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z'));
- exports.PlusSquareFill = getIcon('plus-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z'));
- exports.PoundCircleFill = getIcon('pound-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm146 658c0 4.4-3.6 8-8 8H376.2c-4.4 0-8-3.6-8-8v-38.5c0-3.7 2.5-6.9 6.1-7.8 44-10.9 72.8-49 72.8-94.2 0-14.7-2.5-29.4-5.9-44.2H374c-4.4 0-8-3.6-8-8v-30c0-4.4 3.6-8 8-8h53.7c-7.8-25.1-14.6-50.7-14.6-77.1 0-75.8 58.6-120.3 151.5-120.3 26.5 0 51.4 5.5 70.3 12.7 3.1 1.2 5.2 4.2 5.2 7.5v39.5a8 8 0 0 1-10.6 7.6c-17.9-6.4-39-10.5-60.4-10.5-53.3 0-87.3 26.6-87.3 70.2 0 24.7 6.2 47.9 13.4 70.5h112c4.4 0 8 3.6 8 8v30c0 4.4-3.6 8-8 8h-98.6c3.1 13.2 5.3 26.9 5.3 41 0 40.7-16.5 73.9-43.9 91.1v4.7h180c4.4 0 8 3.6 8 8V722z'));
- exports.PrinterFill = getIcon('printer', fill, getNode(newViewBox, 'M732 120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v148h440V120zm120 212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM664 844H360V568h304v276zm164-360c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z'));
- exports.ProfileFill = getIcon('profile', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM380 696c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm0-144c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm0-144c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm304 272c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-144c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-144c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48z'));
- exports.ProjectFill = getIcon('project', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM368 744c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v464zm192-280c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v184zm192 72c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v256z'));
- exports.PushpinFill = getIcon('pushpin', fill, getNode(newViewBox, 'M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z'));
- exports.PropertySafetyFill = getIcon('property-safety', fill, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM648.3 332.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V658c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 0 1 8.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z'));
- exports.QqCircleFill = getIcon('qq-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm210.5 612.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z'));
- exports.QqSquareFill = getIcon('qq-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM722.5 676.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z'));
- exports.QuestionCircleFill = getIcon('question-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z'));
- exports.ReadFill = getIcon('read', fill, getNode(newViewBox, 'M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 0 0 324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM404 553.5c0 4.1-3.2 7.5-7.1 7.5H211.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm0-140c0 4.1-3.2 7.5-7.1 7.5H211.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm416 140c0 4.1-3.2 7.5-7.1 7.5H627.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm0-140c0 4.1-3.2 7.5-7.1 7.5H627.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45z'));
- exports.ReconciliationFill = getIcon('reconciliation', fill, getNode(newViewBox, 'M676 623c-18.8 0-34 15.2-34 34s15.2 34 34 34 34-15.2 34-34-15.2-34-34-34zm204-455H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zM448 848H176V616h272v232zm0-296H176v-88h272v88zm20-272v-48h72v-56h64v56h72v48H468zm180 168v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8zm28 301c-50.8 0-92-41.2-92-92s41.2-92 92-92 92 41.2 92 92-41.2 92-92 92zm92-245c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v96zm-92 61c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34z'));
- exports.RedEnvelopeFill = getIcon('red-envelope', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM647 470.4l-87.2 161h45.9c4.6 0 8.4 3.8 8.4 8.4v25.1c0 4.6-3.8 8.4-8.4 8.4h-63.3v28.6h63.3c4.6 0 8.4 3.8 8.4 8.4v25c.2 4.6-3.6 8.5-8.2 8.5h-63.3v49.9c0 4.6-3.8 8.4-8.4 8.4h-43.7c-4.6 0-8.4-3.8-8.4-8.4v-49.9h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h63v-28.6h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h45.4l-87.5-161c-2.2-4.1-.7-9.1 3.4-11.4 1.3-.6 2.6-1 3.9-1h48.8c3.2 0 6.1 1.8 7.5 4.6l71.9 141.8 71.9-141.9a8.5 8.5 0 0 1 7.5-4.6h47.8c4.6 0 8.4 3.8 8.4 8.4-.1 1.5-.5 2.9-1.1 4.1zM512.6 323L289 148h446L512.6 323z'));
- exports.RedditCircleFill = getIcon('reddit-circle', fill, getNode(newViewBox, 'M584 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0zm144-108a35.9 35.9 0 0 0-32.5 20.6c18.8 14.3 34.4 30.7 45.9 48.8A35.98 35.98 0 0 0 728 440zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm245 477.9c4.6 13.5 7 27.6 7 42.1 0 99.4-112.8 180-252 180s-252-80.6-252-180c0-14.5 2.4-28.6 7-42.1A72.01 72.01 0 0 1 296 404c27.1 0 50.6 14.9 62.9 37 36.2-19.8 80.2-32.8 128.1-36.1l58.4-131.1c4.3-9.8 15.2-14.8 25.5-11.8l91.6 26.5a54.03 54.03 0 0 1 101.6 25.6c0 29.8-24.2 54-54 54-23.5 0-43.5-15.1-50.9-36.1L577 308.3l-43 96.5c49.1 3 94.2 16.1 131.2 36.3 12.3-22.1 35.8-37 62.9-37 39.8 0 72 32.2 72 72-.1 29.3-17.8 54.6-43.1 65.8zm-171.3 83c-14.9 11.7-44.3 24.3-73.7 24.3s-58.9-12.6-73.7-24.3c-9.3-7.3-22.7-5.7-30 3.6-7.3 9.3-5.7 22.7 3.6 30 25.7 20.4 65 33.5 100.1 33.5 35.1 0 74.4-13.1 100.2-33.5 9.3-7.3 10.9-20.8 3.6-30a21.46 21.46 0 0 0-30.1-3.6zM296 440a35.98 35.98 0 0 0-13.4 69.4c11.5-18.1 27.1-34.5 45.9-48.8A35.9 35.9 0 0 0 296 440zm72 108a36 36 0 1 0 72 0 36 36 0 1 0-72 0z'));
- exports.RedditSquareFill = getIcon('reddit-square', fill, getNode(newViewBox, 'M296 440a35.98 35.98 0 0 0-13.4 69.4c11.5-18.1 27.1-34.5 45.9-48.8A35.9 35.9 0 0 0 296 440zm289.7 184.9c-14.9 11.7-44.3 24.3-73.7 24.3s-58.9-12.6-73.7-24.3c-9.3-7.3-22.7-5.7-30 3.6-7.3 9.3-5.7 22.7 3.6 30 25.7 20.4 65 33.5 100.1 33.5 35.1 0 74.4-13.1 100.2-33.5 9.3-7.3 10.9-20.8 3.6-30a21.46 21.46 0 0 0-30.1-3.6zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM757 541.9c4.6 13.5 7 27.6 7 42.1 0 99.4-112.8 180-252 180s-252-80.6-252-180c0-14.5 2.4-28.6 7-42.1A72.01 72.01 0 0 1 296 404c27.1 0 50.6 14.9 62.9 37 36.2-19.8 80.2-32.8 128.1-36.1l58.4-131.1c4.3-9.8 15.2-14.8 25.5-11.8l91.6 26.5a54.03 54.03 0 0 1 101.6 25.6c0 29.8-24.2 54-54 54-23.5 0-43.5-15.1-50.9-36.1L577 308.3l-43 96.5c49.1 3 94.2 16.1 131.2 36.3 12.3-22.1 35.8-37 62.9-37 39.8 0 72 32.2 72 72-.1 29.3-17.8 54.6-43.1 65.8zM584 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0zm144-108a35.9 35.9 0 0 0-32.5 20.6c18.8 14.3 34.4 30.7 45.9 48.8A35.98 35.98 0 0 0 728 440zM368 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0z'));
- exports.RestFill = getIcon('rest', fill, getNode(newViewBox, 'M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zM508 704c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zM291 256l22.4-76h397.2l22.4 76H291zm137 304a80 80 0 1 0 160 0 80 80 0 1 0-160 0z'));
- exports.RightCircleFill = getIcon('right-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z'));
- exports.RocketFill = getIcon('rocket', fill, getNode(newViewBox, 'M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8L864 736zM512 352a48.01 48.01 0 0 1 0 96 48.01 48.01 0 0 1 0-96zm116.1 432.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5s-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5z'));
- exports.RightSquareFill = getIcon('right-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM658.7 518.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L558.6 512 413.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z'));
- exports.SafetyCertificateFill = getIcon('safety-certificate', fill, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM694.5 340.7L481.9 633.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.1 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.8-6.6 13-6.6H688c6.5.1 10.3 7.5 6.5 12.8z'));
- exports.SaveFill = getIcon('save', fill, getNode(newViewBox, 'M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z'));
- exports.ScheduleFill = getIcon('schedule', fill, getNode(newViewBox, 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zM424 688c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-136c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm374.5-91.3l-165 228.7a15.9 15.9 0 0 1-25.8 0L493.5 531.2c-3.8-5.3 0-12.7 6.5-12.7h54.9c5.1 0 9.9 2.5 12.9 6.6l52.8 73.1 103.7-143.7c3-4.2 7.8-6.6 12.9-6.6H792c6.5.1 10.3 7.5 6.5 12.8z'));
- exports.SecurityScanFill = getIcon('security-scan', fill, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM626.8 554c-48.5 48.5-123 55.2-178.6 20.1l-77.5 77.5a8.03 8.03 0 0 1-11.3 0l-34-34a8.03 8.03 0 0 1 0-11.3l77.5-77.5c-35.1-55.7-28.4-130.1 20.1-178.6 56.3-56.3 147.5-56.3 203.8 0 56.3 56.3 56.3 147.5 0 203.8zm-158.54-45.27a80.1 80.1 0 1 0 113.27-113.28 80.1 80.1 0 1 0-113.27 113.28z'));
- exports.SettingFill = getIcon('setting', fill, getNode(newViewBox, 'M512.5 390.6c-29.9 0-57.9 11.6-79.1 32.8-21.1 21.2-32.8 49.2-32.8 79.1 0 29.9 11.7 57.9 32.8 79.1 21.2 21.1 49.2 32.8 79.1 32.8 29.9 0 57.9-11.7 79.1-32.8 21.1-21.2 32.8-49.2 32.8-79.1 0-29.9-11.7-57.9-32.8-79.1a110.96 110.96 0 0 0-79.1-32.8zm412.3 235.5l-65.4-55.9c3.1-19 4.7-38.4 4.7-57.7s-1.6-38.8-4.7-57.7l65.4-55.9a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a442.5 442.5 0 0 0-79.6-137.7l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.2 28.9c-30-24.6-63.4-44-99.6-57.5l-15.7-84.9a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52-9.4-106.8-9.4-158.8 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.3a353.44 353.44 0 0 0-98.9 57.3l-81.8-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a445.93 445.93 0 0 0-79.6 137.7l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.2 56.5c-3.1 18.8-4.6 38-4.6 57 0 19.2 1.5 38.4 4.6 57l-66 56.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.3 44.8 96.8 79.6 137.7l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.8-29.1c29.8 24.5 63 43.9 98.9 57.3l15.8 85.3a32.05 32.05 0 0 0 25.8 25.7l2.7.5a448.27 448.27 0 0 0 158.8 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c4.3-12.4.6-26.3-9.5-35zm-412.3 52.2c-97.1 0-175.8-78.7-175.8-175.8s78.7-175.8 175.8-175.8 175.8 78.7 175.8 175.8-78.7 175.8-175.8 175.8z'));
- exports.ShopFill = getIcon('shop', fill, getNode(newViewBox, 'M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h274V736h128v176h274c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zm-72 568H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm0-568.1H214v-88h596v88z'));
- exports.ShoppingFill = getIcon('shopping', fill, getNode(newViewBox, 'M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-208 0H400v-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16z'));
- exports.SketchCircleFill = getIcon('sketch-circle', fill, getNode(newViewBox, 'M582.3 625.6l147.9-166.3h-63.4zm90-202.3h62.5l-92.1-115.1zm-274.7 36L512 684.5l114.4-225.2zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm286.7 380.2L515.8 762.3c-1 1.1-2.4 1.7-3.8 1.7s-2.8-.6-3.8-1.7L225.3 444.2a5.14 5.14 0 0 1-.2-6.6L365.6 262c1-1.2 2.4-1.9 4-1.9h284.6c1.6 0 3 .7 4 1.9l140.5 175.6a4.9 4.9 0 0 1 0 6.6zm-190.5-20.9L512 326.1l-96.2 97.2zM420.3 301.1l-23.1 89.8 88.8-89.8zm183.4 0H538l88.8 89.8zm-222.4 7.1l-92.1 115.1h62.5zm-87.5 151.1l147.9 166.3-84.5-166.3z'));
- exports.SketchSquareFill = getIcon('sketch-square', fill, getNode(newViewBox, 'M608.2 423.3L512 326.1l-96.2 97.2zm-25.9 202.3l147.9-166.3h-63.4zm90-202.3h62.5l-92.1-115.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-81.3 332.2L515.8 762.3c-1 1.1-2.4 1.7-3.8 1.7s-2.8-.6-3.8-1.7L225.3 444.2a5.14 5.14 0 0 1-.2-6.6L365.6 262c1-1.2 2.4-1.9 4-1.9h284.6c1.6 0 3 .7 4 1.9l140.5 175.6a4.9 4.9 0 0 1 0 6.6zm-401.1 15.1L512 684.5l114.4-225.2zm-16.3-151.1l-92.1 115.1h62.5zm-87.5 151.1l147.9 166.3-84.5-166.3zm126.5-158.2l-23.1 89.8 88.8-89.8zm183.4 0H538l88.8 89.8z'));
- exports.SkinFill = getIcon('skin', fill, getNode(newViewBox, 'M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44z'));
- exports.SlackCircleFill = getIcon('slack-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm83.7-50.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM579.3 765c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134c-13.3 0-26.1-5.3-35.6-14.8S529 593.6 529 580.2c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z'));
- exports.SlackSquareFill = getIcon('slack-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z'));
- exports.SkypeFill = getIcon('skype', fill, getNode(newViewBox, 'M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 0 0-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 0 0 335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 0 0 112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-370 162.9c-134.2 0-194.2-66-194.2-115.4 0-25.4 18.7-43.1 44.5-43.1 57.4 0 42.6 82.5 149.7 82.5 54.9 0 85.2-29.8 85.2-60.3 0-18.3-9-38.7-45.2-47.6l-119.4-29.8c-96.1-24.1-113.6-76.1-113.6-124.9 0-101.4 95.5-139.5 185.2-139.5 82.6 0 180 45.7 180 106.5 0 26.1-22.6 41.2-48.4 41.2-49 0-40-67.8-138.7-67.8-49 0-76.1 22.2-76.1 53.9s38.7 41.8 72.3 49.5l88.4 19.6c96.8 21.6 121.3 78.1 121.3 131.3 0 82.3-63.3 143.9-191 143.9z'));
- exports.SlidersFill = getIcon('sliders', fill, getNode(newViewBox, 'M904 296h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-584-72h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm292 180h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8z'));
- exports.SmileFill = getIcon('smile', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 0 1 8-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 0 1 8 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
- exports.SnippetsFill = getIcon('snippets', fill, getNode(newViewBox, 'M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 486H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z'));
- exports.SoundFill = getIcon('sound', fill, getNode(newViewBox, 'M892.1 737.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344zm174 132H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zM625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1z'));
- exports.StarFill = getIcon('star', fill, getNode(newViewBox, 'M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0 0 46.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z'));
- exports.StepBackwardFill = getIcon('step-backward', fill, getNode(normalViewBox, 'M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 0 0 0 33.9M330 864h-64a8 8 0 0 1-8-8V168a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v688a8 8 0 0 1-8 8'));
- exports.StepForwardFill = getIcon('step-forward', fill, getNode(normalViewBox, 'M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 0 1 0 33.9M694 864h64a8 8 0 0 0 8-8V168a8 8 0 0 0-8-8h-64a8 8 0 0 0-8 8v688a8 8 0 0 0 8 8'));
- exports.StopFill = getIcon('stop', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm234.8 736.5L223.5 277.2c16-19.7 34-37.7 53.7-53.7l523.3 523.3c-16 19.6-34 37.7-53.7 53.7z'));
- exports.SwitcherFill = getIcon('switcher', fill, getNode(newViewBox, 'M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zM596 606c0 4.4-3.6 8-8 8H308c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h280c4.4 0 8 3.6 8 8v48zm284-494H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32z'));
- exports.TabletFill = getIcon('tablet', fill, getNode(newViewBox, 'M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zM512 824c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'));
- exports.TagFill = getIcon('tag', fill, getNode(newViewBox, 'M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM699 387c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z'));
- exports.TagsFill = getIcon('tags', fill, getNode(newViewBox, 'M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm122.7-533.4c18.7-18.7 49.1-18.7 67.9 0 18.7 18.7 18.7 49.1 0 67.9-18.7 18.7-49.1 18.7-67.9 0-18.7-18.7-18.7-49.1 0-67.9zm283.8 282.9l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z'));
- exports.TaobaoCircleFill = getIcon('taobao-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z'));
- exports.TaobaoSquareFill = getIcon('taobao-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z'));
- exports.ToolFill = getIcon('tool', fill, getNode(newViewBox, 'M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 0 0 419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z'));
- exports.ThunderboltFill = getIcon('thunderbolt', fill, getNode(newViewBox, 'M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7z'));
- exports.TrademarkCircleFill = getIcon('trademark-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm164.7 660.2c-1.1.5-2.3.8-3.5.8h-62c-3.1 0-5.9-1.8-7.2-4.6l-74.6-159.2h-88.7V717c0 4.4-3.6 8-8 8H378c-4.4 0-8-3.6-8-8V307c0-4.4 3.6-8 8-8h155.6c98.8 0 144.2 59.9 144.2 131.1 0 70.2-43.6 106.4-78.4 119.2l80.8 164.2c2.1 3.9.4 8.7-3.5 10.7zM523.9 357h-83.4v148H522c53 0 82.8-25.6 82.8-72.4 0-50.3-32.9-75.6-80.9-75.6z'));
- exports.TwitterCircleFill = getIcon('twitter-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm215.3 337.7c.3 4.7.3 9.6.3 14.4 0 146.8-111.8 315.9-316.1 315.9-63 0-121.4-18.3-170.6-49.8 9 1 17.6 1.4 26.8 1.4 52 0 99.8-17.6 137.9-47.4-48.8-1-89.8-33-103.8-77 17.1 2.5 32.5 2.5 50.1-2a111 111 0 0 1-88.9-109v-1.4c14.7 8.3 32 13.4 50.1 14.1a111.13 111.13 0 0 1-49.5-92.4c0-20.7 5.4-39.6 15.1-56a315.28 315.28 0 0 0 229 116.1C492 353.1 548.4 292 616.2 292c32 0 60.8 13.4 81.1 35 25.1-4.7 49.1-14.1 70.5-26.7-8.3 25.7-25.7 47.4-48.8 61.1 22.4-2.4 44-8.6 64-17.3-15.1 22.2-34 41.9-55.7 57.6z'));
- exports.TrophyFill = getIcon('trophy', fill, getNode(newViewBox, 'M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.6 630.2 359 721.8 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.8 758.4 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM248 439.6c-37.1-11.9-64-46.7-64-87.6V232h64v207.6zM840 352c0 41-26.9 75.8-64 87.6V232h64v120z'));
- exports.TwitterSquareFill = getIcon('twitter-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM727.3 401.7c.3 4.7.3 9.6.3 14.4 0 146.8-111.8 315.9-316.1 315.9-63 0-121.4-18.3-170.6-49.8 9 1 17.6 1.4 26.8 1.4 52 0 99.8-17.6 137.9-47.4-48.8-1-89.8-33-103.8-77 17.1 2.5 32.5 2.5 50.1-2a111 111 0 0 1-88.9-109v-1.4c14.7 8.3 32 13.4 50.1 14.1a111.13 111.13 0 0 1-49.5-92.4c0-20.7 5.4-39.6 15.1-56a315.28 315.28 0 0 0 229 116.1C492 353.1 548.4 292 616.2 292c32 0 60.8 13.4 81.1 35 25.1-4.7 49.1-14.1 70.5-26.7-8.3 25.7-25.7 47.4-48.8 61.1 22.4-2.4 44-8.6 64-17.3-15.1 22.2-34 41.9-55.7 57.6z'));
- exports.UnlockFill = getIcon('unlock', fill, getNode(newViewBox, 'M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0z'));
- exports.UpCircleFill = getIcon('up-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm178 555h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 460.4 406.8 605.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z'));
- exports.UpSquareFill = getIcon('up-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM690 624h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 465.4 406.8 610.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z'));
- exports.UsbFill = getIcon('usb', fill, getNode(newViewBox, 'M408 312h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm352 120V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zm-72 0H336V184h352v248zM568 312h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'));
- exports.WalletFill = getIcon('wallet', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 464H528V448h320v128zm-268-64a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
- exports.VideoCameraFill = getIcon('video-camera', fill, getNode(newViewBox, 'M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z'));
- exports.WarningFill = getIcon('warning', fill, getNode(newViewBox, 'M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
- exports.WeiboCircleFill = getIcon('weibo-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
- exports.WechatFill = getIcon('wechat', fill, getNode(newViewBox, 'M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z'));
- exports.WindowsFill = getIcon('windows', fill, getNode(newViewBox, 'M523.8 191.4v288.9h382V128.1zm0 642.2l382 62.2v-352h-382zM120.1 480.2H443V201.9l-322.9 53.5zm0 290.4L443 823.2V543.8H120.1z'));
- exports.YahooFill = getIcon('yahoo', fill, getNode(newViewBox, 'M937.3 231H824.7c-15.5 0-27.7 12.6-27.1 28.1l13.1 366h84.4l65.4-366.4c2.7-15.2-7.8-27.7-23.2-27.7zm-77.4 450.4h-14.1c-27.1 0-49.2 22.2-49.2 49.3v14.1c0 27.1 22.2 49.3 49.2 49.3h14.1c27.1 0 49.2-22.2 49.2-49.3v-14.1c0-27.1-22.2-49.3-49.2-49.3zM402.6 231C216.2 231 65 357 65 512.5S216.2 794 402.6 794s337.6-126 337.6-281.5S589.1 231 402.6 231zm225.2 225.2h-65.3L458.9 559.8v65.3h84.4v56.3H318.2v-56.3h84.4v-65.3L242.9 399.9h-37v-56.3h168.5v56.3h-37l93.4 93.5 28.1-28.1V400h168.8v56.2z'));
- exports.WeiboSquareFill = getIcon('weibo-square', fill, getNode(newViewBox, 'M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
- exports.YuqueFill = getIcon('yuque', fill, getNode(newViewBox, 'M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.9-8.1-195-3-195-3s87.4 55.6 52.4 154.7c-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6z'));
- exports.YoutubeFill = getIcon('youtube', fill, getNode(newViewBox, 'M941.3 296.1a112.3 112.3 0 0 0-79.2-79.3C792.2 198 512 198 512 198s-280.2 0-350.1 18.7A112.12 112.12 0 0 0 82.7 296C64 366 64 512 64 512s0 146 18.7 215.9c10.3 38.6 40.7 69 79.2 79.3C231.8 826 512 826 512 826s280.2 0 350.1-18.8c38.6-10.3 68.9-40.7 79.2-79.3C960 658 960 512 960 512s0-146-18.7-215.9zM423 646V378l232 133-232 135z'));
- exports.ZhihuSquareFill = getIcon('zhihu-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM432.3 592.8l71 80.7c9.2 33-3.3 63.1-3.3 63.1l-95.7-111.9v-.1c-8.9 29-20.1 57.3-33.3 84.7-22.6 45.7-55.2 54.7-89.5 57.7-34.4 3-23.3-5.3-23.3-5.3 68-55.5 78-87.8 96.8-123.1 11.9-22.3 20.4-64.3 25.3-96.8H264.1s4.8-31.2 19.2-41.7h101.6c.6-15.3-1.3-102.8-2-131.4h-49.4c-9.2 45-41 56.7-48.1 60.1-7 3.4-23.6 7.1-21.1 0 2.6-7.1 27-46.2 43.2-110.7 16.3-64.6 63.9-62 63.9-62-12.8 22.5-22.4 73.6-22.4 73.6h159.7c10.1 0 10.6 39 10.6 39h-90.8c-.7 22.7-2.8 83.8-5 131.4H519s12.2 15.4 12.2 41.7h-110l-.1 1.5c-1.5 20.4-6.3 43.9-12.9 67.6l24.1-18.1zm335.5 116h-87.6l-69.5 46.6-16.4-46.6h-40.1V321.5h213.6v387.3zM408.2 611s0-.1 0 0zm216 94.3l56.8-38.1h45.6-.1V364.7H596.7v302.5h14.1z'));
- exports.ZhihuCircleFill = getIcon('zhihu-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-90.7 477.8l-.1 1.5c-1.5 20.4-6.3 43.9-12.9 67.6l24-18.1 71 80.7c9.2 33-3.3 63.1-3.3 63.1l-95.7-111.9v-.1c-8.9 29-20.1 57.3-33.3 84.7-22.6 45.7-55.2 54.7-89.5 57.7-34.4 3-23.3-5.3-23.3-5.3 68-55.5 78-87.8 96.8-123.1 11.9-22.3 20.4-64.3 25.3-96.8H264.1s4.8-31.2 19.2-41.7h101.6c.6-15.3-1.3-102.8-2-131.4h-49.4c-9.2 45-41 56.7-48.1 60.1-7 3.4-23.6 7.1-21.1 0 2.6-7.1 27-46.2 43.2-110.7 16.3-64.6 63.9-62 63.9-62-12.8 22.5-22.4 73.6-22.4 73.6h159.7c10.1 0 10.6 39 10.6 39h-90.8c-.7 22.7-2.8 83.8-5 131.4H519s12.2 15.4 12.2 41.7H421.3zm346.5 167h-87.6l-69.5 46.6-16.4-46.6h-40.1V321.5h213.6v387.3zM408.2 611s0-.1 0 0zm216 94.3l56.8-38.1h45.6-.1V364.7H596.7v302.5h14.1z'));
- exports.AccountBookOutline = getIcon('account-book', outline, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 0 0-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z'));
- exports.AlertOutline = getIcon('alert', outline, getNode(newViewBox, 'M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 0 0-11.3 0l-39.6 39.6a8.03 8.03 0 0 0 0 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-67.9 67.9a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z'));
- exports.AlipayCircleOutline = getIcon('alipay-circle', outline, getNode(newViewBox, 'M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 0 0 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z'));
- exports.AliwangwangOutline = getIcon('aliwangwang', outline, getNode(newViewBox, 'M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 0 0-120.5-81.2A375.65 375.65 0 0 0 519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 0 0-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10.1 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0 0 29.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-66.4 266.5a307.08 307.08 0 0 1-65.9 98c-28.4 28.5-61.3 50.7-97.7 65.9h-.1c-38 16-78.3 24.2-119.9 24.2a306.51 306.51 0 0 1-217.5-90.2c-28.4-28.5-50.6-61.4-65.8-97.8v-.1c-16-37.8-24.1-78.2-24.1-119.9 0-55.4 14.8-109.7 42.8-157l13.2-22.1-9.5-23.9L206 192c14.9.6 35.9 2.1 59.7 5.6 43.8 6.5 82.5 17.5 114.9 32.6l19 8.9 19.9-6.8c31.5-10.8 64.8-16.2 98.9-16.2a306.51 306.51 0 0 1 217.5 90.2c28.4 28.5 50.6 61.4 65.8 97.8l.1.1.1.1c16 37.6 24.1 78 24.2 119.8-.1 41.7-8.3 82-24.3 119.8zM681.1 364.2c-20.4 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.6 37.1 37.1 37.1s37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1zm-175.2 0c-20.5 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.7 37.1 37.1 37.1 20.5 0 37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1z'));
- exports.AndroidOutline = getIcon('android', outline, getNode(newViewBox, 'M448.3 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32-13.4 32-31.9.1-18.4-13.4-31.9-32-31.9zm393.9 96.4c-13.8-13.8-32.7-21.5-53.2-21.5-3.9 0-7.4.4-10.7 1v-1h-3.6c-5.5-30.6-18.6-60.5-38.1-87.4-18.7-25.7-43-47.9-70.8-64.9l25.1-35.8v-3.3c0-.8.4-2.3.7-3.8.6-2.4 1.4-5.5 1.4-8.9 0-18.5-13.5-31.9-32-31.9-9.8 0-19.5 5.7-25.9 15.4l-29.3 42.1c-30-9.8-62.4-15-93.8-15-31.3 0-63.7 5.2-93.8 15L389 79.4c-6.6-9.6-16.1-15.4-26-15.4-18.6 0-32 13.4-32 31.9 0 6.2 2.5 12.8 6.7 17.4l22.6 32.3c-28.7 17-53.5 39.4-72.2 65.1-19.4 26.9-32 56.8-36.7 87.4h-5.5v1c-3.2-.6-6.7-1-10.7-1-20.3 0-39.2 7.5-53.1 21.3-13.8 13.8-21.5 32.6-21.5 53v235c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 3.9 0 7.4-.4 10.7-1v93.5c0 29.2 23.9 53.1 53.2 53.1H331v58.3c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-58.2H544v58.1c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.4 0 39.2-7.5 53.1-21.6 13.8-13.8 21.5-32.6 21.5-53v-58.2h31.9c29.3 0 53.2-23.8 53.2-53.1v-91.4c3.2.6 6.7 1 10.7 1 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-235c-.1-20.3-7.6-39-21.4-52.9zM246 609.6c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zm131.1-396.8c37.5-27.3 85.3-42.3 135-42.3s97.5 15.1 135 42.5c32.4 23.7 54.2 54.2 62.7 87.5H314.4c8.5-33.4 30.5-64 62.7-87.7zm39.3 674.7c-.6 5.6-4.4 8.7-10.5 8.7-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1zm202.3 8.7c-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1c-.6 5.6-4.3 8.7-10.5 8.7zm95.8-132.6H309.9V364h404.6v399.6zm85.2-154c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zM576.1 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32.1-13.4 32.1-32-.1-18.6-13.4-31.8-32.1-31.8z'));
- exports.ApiOutline = getIcon('api', outline, getNode(newViewBox, 'M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 0 1-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z'));
- exports.AppstoreOutline = getIcon('appstore', outline, getNode(newViewBox, 'M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z'));
- exports.AudioOutline = getIcon('audio', outline, getNode(newViewBox, 'M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z'));
- exports.AppleOutline = getIcon('apple', outline, getNode(newViewBox, 'M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-10.6 267c-14.3 19.9-28.7 35.6-41.9 45.7-10.5 8-18.6 11.4-24 11.6-9-.1-17.7-2.3-34.7-8.8-1.2-.5-2.5-1-4.2-1.6l-4.4-1.7c-17.4-6.7-27.8-10.3-41.1-13.8-18.6-4.8-37.1-7.4-56.9-7.4-20.2 0-39.2 2.5-58.1 7.2-13.9 3.5-25.6 7.4-42.7 13.8-.7.3-8.1 3.1-10.2 3.9-3.5 1.3-6.2 2.3-8.7 3.2-10.4 3.6-17 5.1-22.9 5.2-.7 0-1.3-.1-1.8-.2-1.1-.2-2.5-.6-4.1-1.3-4.5-1.8-9.9-5.1-16-9.8-14-10.9-29.4-28-45.1-49.9-27.5-38.6-53.5-89.8-66-125.7-15.4-44.8-23-87.7-23-128.6 0-60.2 17.8-106 48.4-137.1 26.3-26.6 61.7-41.5 97.8-42.3 5.9.1 14.5 1.5 25.4 4.5 8.6 2.3 18 5.4 30.7 9.9 3.8 1.4 16.9 6.1 18.5 6.7 7.7 2.8 13.5 4.8 19.2 6.6 18.2 5.8 32.3 9 47.6 9 15.5 0 28.8-3.3 47.7-9.8 7.1-2.4 32.9-12 37.5-13.6 25.6-9.1 44.5-14 60.8-15.2 4.8-.4 9.1-.4 13.2-.1 22.7 1.8 42.1 6.3 58.6 13.8-37.6 43.4-57 96.5-56.9 158.4-.3 14.7.9 31.7 5.1 51.8 6.4 30.5 18.6 60.7 37.9 89 14.7 21.5 32.9 40.9 54.7 57.8-11.5 23.7-25.6 48.2-40.4 68.8zm-94.5-572c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z'));
- exports.BackwardOutline = getIcon('backward', outline, getNode(normalViewBox, 'M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z'));
- exports.BankOutline = getIcon('bank', outline, getNode(newViewBox, 'M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z'));
- exports.BellOutline = getIcon('bell', outline, getNode(newViewBox, 'M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z'));
- exports.BehanceSquareOutline = getIcon('behance-square', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z'));
- exports.BookOutline = getIcon('book', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0 0 22.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z'));
- exports.BoxPlotOutline = getIcon('box-plot', outline, getNode(newViewBox, 'M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H232c-4.4 0-8 3.6-8 8v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h560c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zM296 368h88v288h-88V368zm432 288H448V368h280v288z'));
- exports.BulbOutline = getIcon('bulb', outline, getNode(newViewBox, 'M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z'));
- exports.BugOutline = getIcon('bug', outline, getNode(newViewBox, 'M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 0 0-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 0 0-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z', 'M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 0 1-63 63H232a63 63 0 0 1-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0 0 22.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 0 0 123.2-149.5A120 120 0 0 1 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 0 1 308 680V412h408v268z'));
- exports.CalculatorOutline = getIcon('calculator', outline, getNode(newViewBox, 'M251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 0h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm-195.7-81l61.2-74.9c4.3-5.2.7-13.1-5.9-13.1H388c-2.3 0-4.5 1-5.9 2.9l-34 41.6-34-41.6a7.85 7.85 0 0 0-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.5-1 5.9-2.9l35.5-43.5 35.5 43.5c1.5 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 5.9-13.1L383.5 675zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-36 732H180V180h664v664z'));
- exports.BuildOutline = getIcon('build', outline, getNode(newViewBox, 'M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z'));
- exports.CalendarOutline = getIcon('calendar', outline, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z'));
- exports.CameraOutline = getIcon('camera', outline, getNode(newViewBox, 'M864 248H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z'));
- exports.CarOutline = getIcon('car', outline, getNode(newViewBox, 'M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm239-167.6L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
- exports.CaretDownOutline = getIcon('caret-down', outline, getNode(normalViewBox, 'M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z'));
- exports.CaretLeftOutline = getIcon('caret-left', outline, getNode(normalViewBox, 'M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z'));
- exports.CaretRightOutline = getIcon('caret-right', outline, getNode(normalViewBox, 'M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z'));
- exports.CarryOutOutline = getIcon('carry-out', outline, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z'));
- exports.CheckCircleOutline = getIcon('check-circle', outline, getNode(newViewBox, 'M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
- exports.CaretUpOutline = getIcon('caret-up', outline, getNode(normalViewBox, 'M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z'));
- exports.CheckSquareOutline = getIcon('check-square', outline, getNode(newViewBox, 'M433.1 657.7a31.8 31.8 0 0 0 51.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.ChromeOutline = getIcon('chrome', outline, getNode(newViewBox, 'M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z'));
- exports.ClockCircleOutline = getIcon('clock-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z'));
- exports.CloseCircleOutline = getIcon('close-circle', outline, getNode(newViewBox, 'M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z', 'M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
- exports.CloudOutline = getIcon('cloud', outline, getNode(newViewBox, 'M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 0 1-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 0 1 140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0 1 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z'));
- exports.CloseSquareOutline = getIcon('close-square', outline, getNode(newViewBox, 'M354 671h58.9c4.7 0 9.2-2.1 12.3-5.7L512 561.8l86.8 103.5c3 3.6 7.5 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.4-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.7 0-9.2 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 0 0 354 671z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.CodeOutline = getIcon('code', outline, getNode(newViewBox, 'M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 0 0 308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 0 0-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.CodepenCircleOutline = getIcon('codepen-circle', outline, getNode(newViewBox, 'M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z'));
- exports.CompassOutline = getIcon('compass', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 0 0-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 0 0-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z'));
- exports.ContactsOutline = getIcon('contacts', outline, getNode(newViewBox, 'M594.3 601.5a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1 8 8 0 0 0 8 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z'));
- exports.ContainerOutline = getIcon('container', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'));
- exports.ControlOutline = getIcon('control', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 0 1 5.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 0 1 5.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z'));
- exports.CopyOutline = getIcon('copy', outline, getNode(newViewBox, 'M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z'));
- exports.CreditCardOutline = getIcon('credit-card', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-792 72h752v120H136V232zm752 560H136V440h752v352zm-237-64h165c4.4 0 8-3.6 8-8v-72c0-4.4-3.6-8-8-8H651c-4.4 0-8 3.6-8 8v72c0 4.4 3.6 8 8 8z'));
- exports.CrownOutline = getIcon('crown', outline, getNode(newViewBox, 'M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z'));
- exports.CustomerServiceOutline = getIcon('customer-service', outline, getNode(newViewBox, 'M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z'));
- exports.DashboardOutline = getIcon('dashboard', outline, getNode(newViewBox, 'M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 0 1 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 0 0-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 0 0 0 79.2 55.95 55.95 0 0 0 79.2 0 55.87 55.87 0 0 0 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 0 0-11.3 0l-56.6 56.6a8.03 8.03 0 0 0 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 0 0-11.3 0l-31.1 31.1a8.03 8.03 0 0 0 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z'));
- exports.DeleteOutline = getIcon('delete', outline, getNode(newViewBox, 'M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z'));
- exports.DiffOutline = getIcon('diff', outline, getNode(newViewBox, 'M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7zm-7.1-502.6c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888zm190.2-581.4L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z'));
- exports.DatabaseOutline = getIcon('database', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
- exports.DislikeOutline = getIcon('dislike', outline, getNode(newViewBox, 'M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81zm627.2 160.4H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 0 1-42.2-32.3L329 459.2V172h415.4a56.85 56.85 0 0 1 33.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0 1 19.6 43c0 19.1-11 37.5-28.8 48.4z'));
- exports.DownCircleOutline = getIcon('down-circle', outline, getNode(newViewBox, 'M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
- exports.DownSquareOutline = getIcon('down-square', outline, getNode(newViewBox, 'M505.5 658.7c3.2 4.4 9.7 4.4 12.9 0l178-246c3.8-5.3 0-12.7-6.5-12.7H643c-10.2 0-19.9 4.9-25.9 13.2L512 558.6 406.8 413.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.DribbbleSquareOutline = getIcon('dribbble-square', outline, getNode(newViewBox, 'M498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm66.5 21.8c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM512 800c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm89.7-259.1c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zm-72.5-26.4c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4zm145.9-186.2a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6z'));
- exports.EnvironmentOutline = getIcon('environment', outline, getNode(newViewBox, 'M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z'));
- exports.EditOutline = getIcon('edit', outline, getNode(newViewBox, 'M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z'));
- exports.ExclamationCircleOutline = getIcon('exclamation-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z'));
- exports.ExperimentOutline = getIcon('experiment', outline, getNode(newViewBox, 'M512 472a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 0 1-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z'));
- exports.EyeInvisibleOutline = getIcon('eye-invisible', outline, getNode(newViewBox, 'M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zm-63.57-320.64L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z', 'M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z'));
- exports.EyeOutline = getIcon('eye', outline, getNode(newViewBox, 'M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z'));
- exports.FacebookOutline = getIcon('facebook', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 736H663.9V602.2h104l15.6-120.7H663.9v-77.1c0-35 9.7-58.8 59.8-58.8h63.9v-108c-11.1-1.5-49-4.8-93.2-4.8-92.2 0-155.3 56.3-155.3 159.6v89H434.9v120.7h104.3V848H176V176h672v672z'));
- exports.FastBackwardOutline = getIcon('fast-backward', outline, getNode(normalViewBox, 'M517.6 273.5L230.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
- exports.FastForwardOutline = getIcon('fast-forward', outline, getNode(normalViewBox, 'M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 0 0 0-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
- exports.FileAddOutline = getIcon('file-add', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z'));
- exports.FileExcelOutline = getIcon('file-excel', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0 0 10.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 0 0-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z'));
- exports.FileExclamationOutline = getIcon('file-exclamation', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM472 744a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm16-104h48c4.4 0 8-3.6 8-8V448c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8z'));
- exports.FileImageOutline = getIcon('file-image', outline, getNode(newViewBox, 'M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 0 0-12.6 0l-99.8 127.2a7.98 7.98 0 0 0 6.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 0 0-12.7 0zM360 442a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm494.6-153.4L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
- exports.FileMarkdownOutline = getIcon('file-markdown', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM429 481.2c-1.9-4.4-6.2-7.2-11-7.2h-35c-6.6 0-12 5.4-12 12v272c0 6.6 5.4 12 12 12h27.1c6.6 0 12-5.4 12-12V582.1l66.8 150.2a12 12 0 0 0 11 7.1H524c4.7 0 9-2.8 11-7.1l66.8-150.6V758c0 6.6 5.4 12 12 12H641c6.6 0 12-5.4 12-12V486c0-6.6-5.4-12-12-12h-34.7c-4.8 0-9.1 2.8-11 7.2l-83.1 191-83.2-191z'));
- exports.FilePptOutline = getIcon('file-ppt', outline, getNode(newViewBox, 'M424 476c-4.4 0-8 3.6-8 8v276c0 4.4 3.6 8 8 8h32.5c4.4 0 8-3.6 8-8v-95.5h63.3c59.4 0 96.2-38.9 96.2-94.1 0-54.5-36.3-94.3-96-94.3H424zm150.6 94.3c0 43.4-26.5 54.3-71.2 54.3h-38.9V516.2h56.2c33.8 0 53.9 19.7 53.9 54.1zm280-281.7L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
- exports.FileTextOutline = getIcon('file-text', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z'));
- exports.FilePdfOutline = getIcon('file-pdf', outline, getNode(newViewBox, 'M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
- exports.FileZipOutline = getIcon('file-zip', outline, getNode(newViewBox, 'M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h64v64h64v-64h174v216a42 42 0 0 0 42 42h216v494z'));
- exports.FileOutline = getIcon('file', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
- exports.FilterOutline = getIcon('filter', outline, getNode(newViewBox, 'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z'));
- exports.FileWordOutline = getIcon('file-word', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 0 0-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 0 0-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z'));
- exports.FireOutline = getIcon('fire', outline, getNode(newViewBox, 'M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0 0 58.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0 0 12.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0 0 24.4 59.8 73.36 73.36 0 0 0 53.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z'));
- exports.FileUnknownOutline = getIcon('file-unknown', outline, getNode(newViewBox, 'M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103zm78 195a32 32 0 1 0 64 0 32 32 0 1 0-64 0z'));
- exports.FlagOutline = getIcon('flag', outline, getNode(newViewBox, 'M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z'));
- exports.FolderAddOutline = getIcon('folder-add', outline, getNode(newViewBox, 'M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'));
- exports.FolderOutline = getIcon('folder', outline, getNode(newViewBox, 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'));
- exports.FolderOpenOutline = getIcon('folder-open', outline, getNode(newViewBox, 'M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z'));
- exports.ForwardOutline = getIcon('forward', outline, getNode(normalViewBox, 'M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z'));
- exports.FrownOutline = getIcon('frown', outline, getNode(newViewBox, 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 0 0 8 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 0 0 8-8.4C667.6 600.3 597.5 533 512 533z'));
- exports.FundOutline = getIcon('fund', outline, getNode(newViewBox, 'M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-40 632H134V236h752v560zm-658.9-82.3c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 0 0-11.3 0L531 565 416.6 450.5a8.03 8.03 0 0 0-11.3 0l-214.9 215a8.03 8.03 0 0 0 0 11.3l36.7 36.9z'));
- exports.FunnelPlotOutline = getIcon('funnel-plot', outline, getNode(newViewBox, 'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V650h182.9v148zm9.6-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z'));
- exports.GiftOutline = getIcon('gift', outline, getNode(newViewBox, 'M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z'));
- exports.GithubOutline = getIcon('github', outline, getNode(newViewBox, 'M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z'));
- exports.GitlabOutline = getIcon('gitlab', outline, getNode(newViewBox, 'M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z'));
- exports.HeartOutline = getIcon('heart', outline, getNode(newViewBox, 'M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z'));
- exports.HddOutline = getIcon('hdd', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
- exports.HighlightOutline = getIcon('highlight', outline, getNode(newViewBox, 'M957.6 507.4L603.2 158.2a7.9 7.9 0 0 0-11.2 0L353.3 393.4a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.2H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.2l68.6-67.6 171.4 168.9-68.6 67.6zM713.1 658L450.3 399.1 597.6 254l262.8 259-147.3 145z'));
- exports.HomeOutline = getIcon('home', outline, getNode(newViewBox, 'M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z'));
- exports.HourglassOutline = getIcon('hourglass', outline, getNode(newViewBox, 'M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194zm-72 388v134H354V706c0-42.2 16.4-81.9 46.3-111.7C430.1 564.4 469.8 548 512 548s81.9 16.4 111.7 46.3C653.6 624.1 670 663.8 670 706zm0-388c0 42.2-16.4 81.9-46.3 111.7C593.9 459.6 554.2 476 512 476s-81.9-16.4-111.7-46.3A156.63 156.63 0 0 1 354 318V184h316v134z'));
- exports.Html5Outline = getIcon('html5', outline, getNode(newViewBox, 'M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2zM281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z'));
- exports.IdcardOutline = getIcon('idcard', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z'));
- exports.InfoCircleOutline = getIcon('info-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z'));
- exports.InstagramOutline = getIcon('instagram', outline, getNode(newViewBox, 'M512 306.9c-113.5 0-205.1 91.6-205.1 205.1S398.5 717.1 512 717.1 717.1 625.5 717.1 512 625.5 306.9 512 306.9zm0 338.4c-73.4 0-133.3-59.9-133.3-133.3S438.6 378.7 512 378.7 645.3 438.6 645.3 512 585.4 645.3 512 645.3zm213.5-394.6c-26.5 0-47.9 21.4-47.9 47.9s21.4 47.9 47.9 47.9 47.9-21.3 47.9-47.9a47.84 47.84 0 0 0-47.9-47.9zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zm-88 235.8c-7.3 18.2-16.1 31.8-30.2 45.8-14.1 14.1-27.6 22.9-45.8 30.2C695.2 844.7 570.3 840 512 840c-58.3 0-183.3 4.7-235.9-16.1-18.2-7.3-31.8-16.1-45.8-30.2-14.1-14.1-22.9-27.6-30.2-45.8C179.3 695.2 184 570.3 184 512c0-58.3-4.7-183.3 16.1-235.9 7.3-18.2 16.1-31.8 30.2-45.8s27.6-22.9 45.8-30.2C328.7 179.3 453.7 184 512 184s183.3-4.7 235.9 16.1c18.2 7.3 31.8 16.1 45.8 30.2 14.1 14.1 22.9 27.6 30.2 45.8C844.7 328.7 840 453.7 840 512c0 58.3 4.7 183.2-16.2 235.8z'));
- exports.InsuranceOutline = getIcon('insurance', outline, getNode(newViewBox, 'M441.6 306.8L403 288.6a6.1 6.1 0 0 0-8.4 3.7c-17.5 58.5-45.2 110.1-82.2 153.6a6.05 6.05 0 0 0-1.2 5.6l13.2 43.5c1.3 4.4 7 5.7 10.2 2.4 7.7-8.1 15.4-16.9 23.1-26V656c0 4.4 3.6 8 8 8H403c4.4 0 8-3.6 8-8V393.1a429.2 429.2 0 0 0 33.6-79c1-2.9-.3-6-3-7.3zm26.8 9.2v127.2c0 4.4 3.6 8 8 8h65.9v18.6h-94.9c-4.4 0-8 3.6-8 8v35.6c0 4.4 3.6 8 8 8h55.1c-19.1 30.8-42.4 55.7-71 76a6 6 0 0 0-1.6 8.1l22.8 36.5c1.9 3.1 6.2 3.8 8.9 1.4 31.6-26.8 58.7-62.9 80.6-107.6v120c0 4.4 3.6 8 8 8h36.2c4.4 0 8-3.6 8-8V536c21.3 41.7 47.5 77.5 78.1 106.9 2.6 2.5 6.8 2.1 8.9-.7l26.3-35.3c2-2.7 1.4-6.5-1.2-8.4-30.5-22.6-54.2-47.8-72.3-76.9h59c4.4 0 8-3.6 8-8V478c0-4.4-3.6-8-8-8h-98.8v-18.6h66.7c4.4 0 8-3.6 8-8V316c0-4.4-3.6-8-8-8H476.4c-4.4 0-8 3.6-8 8zm51.5 42.8h97.9v41.6h-97.9v-41.6zm347-188.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'));
- exports.InteractionOutline = getIcon('interaction', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'));
- exports.InterationOutline = getIcon('interation', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'));
- exports.LayoutOutline = getIcon('layout', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z'));
- exports.LeftCircleOutline = getIcon('left-circle', outline, getNode(newViewBox, 'M603.3 327.5l-246 178a7.95 7.95 0 0 0 0 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
- exports.LeftSquareOutline = getIcon('left-square', outline, getNode(newViewBox, 'M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 0 0 0 13z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.LikeOutline = getIcon('like', outline, getNode(newViewBox, 'M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0 1 42.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z'));
- exports.LinkedinOutline = getIcon('linkedin', outline, getNode(newViewBox, 'M847.7 112H176.3c-35.5 0-64.3 28.8-64.3 64.3v671.4c0 35.5 28.8 64.3 64.3 64.3h671.4c35.5 0 64.3-28.8 64.3-64.3V176.3c0-35.5-28.8-64.3-64.3-64.3zm0 736c-447.8-.1-671.7-.2-671.7-.3.1-447.8.2-671.7.3-671.7 447.8.1 671.7.2 671.7.3-.1 447.8-.2 671.7-.3 671.7zM230.6 411.9h118.7v381.8H230.6zm59.4-52.2c37.9 0 68.8-30.8 68.8-68.8a68.8 68.8 0 1 0-137.6 0c-.1 38 30.7 68.8 68.8 68.8zm252.3 245.1c0-49.8 9.5-98 71.2-98 60.8 0 61.7 56.9 61.7 101.2v185.7h118.6V584.3c0-102.8-22.2-181.9-142.3-181.9-57.7 0-96.4 31.7-112.3 61.7h-1.6v-52.2H423.7v381.8h118.6V604.8z'));
- exports.LockOutline = getIcon('lock', outline, getNode(newViewBox, 'M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'));
- exports.MedicineBoxOutline = getIcon('medicine-box', outline, getNode(newViewBox, 'M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840zM652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
- exports.MehOutline = getIcon('meh', outline, getNode(newViewBox, 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
- exports.MailOutline = getIcon('mail', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z'));
- exports.MessageOutline = getIcon('message', outline, getNode(newViewBox, 'M464 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm200 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-400 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 0 0-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 0 0-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 0 0 112 714v152a46 46 0 0 0 46 46h152.1A449.4 449.4 0 0 0 510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 0 0 142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z'));
- exports.MinusCircleOutline = getIcon('minus-circle', outline, getNode(newViewBox, 'M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
- exports.MinusSquareOutline = getIcon('minus-square', outline, getNode(newViewBox, 'M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.MobileOutline = getIcon('mobile', outline, getNode(newViewBox, 'M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
- exports.MoneyCollectOutline = getIcon('money-collect', outline, getNode(newViewBox, 'M911.5 700.7a8 8 0 0 0-10.3-4.8L840 718.2V180c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V763c0 3.3 2.1 6.3 5.3 7.5L501 910.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zM512 837.5l-256-93.1V184h512v560.4l-256 93.1zM660.6 312h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.6-1.2 1-2.5 1-3.8-.1-4.3-3.7-7.9-8.1-7.9z'));
- exports.PauseCircleOutline = getIcon('pause-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z'));
- exports.PayCircleOutline = getIcon('pay-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 0 0-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8-.1-4.4-3.7-8-8.1-8z'));
- exports.NotificationOutline = getIcon('notification', outline, getNode(newViewBox, 'M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z'));
- exports.PhoneOutline = getIcon('phone', outline, getNode(newViewBox, 'M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 0 1-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 0 0-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 0 0 285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z'));
- exports.PictureOutline = getIcon('picture', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 1 0 0-176 88 88 0 0 0 0 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z'));
- exports.PieChartOutline = getIcon('pie-chart', outline, getNode(newViewBox, 'M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 0 0-282.8 117.1 398.19 398.19 0 0 0-85.7 127.1A397.61 397.61 0 0 0 72 552a398.46 398.46 0 0 0 117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 0 0 472 952a398.46 398.46 0 0 0 282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 0 0 872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 0 1 470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 0 0 589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 0 1 166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z'));
- exports.PlaySquareOutline = getIcon('play-square', outline, getNode(newViewBox, 'M442.3 677.6l199.4-156.7a11.3 11.3 0 0 0 0-17.7L442.3 346.4c-7.4-5.8-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.7 18.3 8.9z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.PlayCircleOutline = getIcon('play-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M719.4 499.1l-296.1-215A15.9 15.9 0 0 0 398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 0 0 0-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z'));
- exports.PlusCircleOutline = getIcon('plus-circle', outline, getNode(newViewBox, 'M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
- exports.PrinterOutline = getIcon('printer', outline, getNode(newViewBox, 'M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8zm32-104H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z'));
- exports.PlusSquareOutline = getIcon('plus-square', outline, getNode(newViewBox, 'M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.ProfileOutline = getIcon('profile', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 144a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
- exports.ProjectOutline = getIcon('project', outline, getNode(newViewBox, 'M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.PushpinOutline = getIcon('pushpin', outline, getNode(newViewBox, 'M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 0 0-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 0 1-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z'));
- exports.PropertySafetyOutline = getIcon('property-safety', outline, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM430.5 318h-46c-1.7 0-3.3.4-4.8 1.2a10.1 10.1 0 0 0-4 13.6l88 161.1h-45.2c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1v29.7h-63.1c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1V658c0 5.5 4.5 10 10 10h41.3c5.5 0 10-4.5 10-10v-51.8h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-63.4v-29.7h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-45.7l87.7-161.1a10.05 10.05 0 0 0-8.8-14.8h-45c-3.8 0-7.2 2.1-8.9 5.5l-73.2 144.3-72.9-144.3c-1.7-3.4-5.2-5.5-9-5.5z'));
- exports.QuestionCircleOutline = getIcon('question-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0 1 30.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
- exports.ReadOutline = getIcon('read', outline, getNode(newViewBox, 'M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 0 0 324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z'));
- exports.ReconciliationOutline = getIcon('reconciliation', outline, getNode(newViewBox, 'M676 565c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34zm204-523H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zm-412 64h72v-56h64v56h72v48H468v-48zm-20 616H176V616h272v232zm0-296H176v-88h272v88zm392 240H512V432c0-17.7-14.3-32-32-32H304V240h100v104h336V240h100v552zM704 408v96c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-96c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zM592 512h48c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
- exports.RedEnvelopeOutline = getIcon('red-envelope', outline, getNode(newViewBox, 'M440.6 462.6a8.38 8.38 0 0 0-7.5-4.6h-48.8c-1.3 0-2.6.4-3.9 1a8.4 8.4 0 0 0-3.4 11.4l87.4 161.1H419c-4.6 0-8.4 3.8-8.4 8.4V665c0 4.6 3.8 8.4 8.4 8.4h63V702h-63c-4.6 0-8.4 3.8-8.4 8.4v25.1c0 4.6 3.8 8.4 8.4 8.4h63v49.9c0 4.6 3.8 8.4 8.4 8.4h43.7c4.6 0 8.4-3.8 8.4-8.4v-49.9h63.3c4.7 0 8.4-3.8 8.2-8.5v-25c0-4.6-3.8-8.4-8.4-8.4h-63.3v-28.6h63.3c4.6 0 8.4-3.8 8.4-8.4v-25.1c0-4.6-3.8-8.4-8.4-8.4h-45.9l87.2-161a8.45 8.45 0 0 0-7.4-12.4h-47.8c-3.1 0-6 1.8-7.5 4.6l-71.9 141.9-71.7-142zM832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V193.1l260.3 204.1c11.6 9.1 27.9 9.1 39.5 0L792 193.1V888zm0-751.3h-31.7L512 331.3 263.7 136.7H232v-.7h560v.7z'));
- exports.RestOutline = getIcon('rest', outline, getNode(newViewBox, 'M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z', 'M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z'));
- exports.RightCircleOutline = getIcon('right-circle', outline, getNode(newViewBox, 'M666.7 505.5l-246-178A8 8 0 0 0 408 334v46.9c0 10.2 4.9 19.9 13.2 25.9L566.6 512 421.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.8 0-13z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
- exports.RocketOutline = getIcon('rocket', outline, getNode(newViewBox, 'M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0 1 62.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'));
- exports.RightSquareOutline = getIcon('right-square', outline, getNode(newViewBox, 'M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.SafetyCertificateOutline = getIcon('safety-certificate', outline, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z'));
- exports.ScheduleOutline = getIcon('schedule', outline, getNode(newViewBox, 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496zM416 496H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 136H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm308.2-177.4L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0 0 25.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5z'));
- exports.SaveOutline = getIcon('save', outline, getNode(newViewBox, 'M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z'));
- exports.SecurityScanOutline = getIcon('security-scan', outline, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM402.9 528.8l-77.5 77.5a8.03 8.03 0 0 0 0 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.7 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 123-20.1 178.6zm65.4-133.3c31.3-31.3 82-31.3 113.2 0 31.3 31.3 31.3 82 0 113.2-31.3 31.3-82 31.3-113.2 0s-31.3-81.9 0-113.2z'));
- exports.SettingOutline = getIcon('setting', outline, getNode(newViewBox, 'M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z'));
- exports.ShoppingOutline = getIcon('shopping', outline, getNode(newViewBox, 'M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z'));
- exports.SkinOutline = getIcon('skin', outline, getNode(newViewBox, 'M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z'));
- exports.SkypeOutline = getIcon('skype', outline, getNode(newViewBox, 'M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 0 0-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 0 0 335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 0 0 112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-88.1 216C766.9 823.4 729 839 688.4 839c-26.1 0-51.8-6.8-74.6-19.7l-22.5-12.7-25.5 4.5c-17.8 3.2-35.8 4.8-53.6 4.8-41.4 0-81.3-8.1-119.1-24.1-36.3-15.3-69-37.3-97.2-65.5a304.29 304.29 0 0 1-65.5-97.1c-16-37.7-24-77.6-24-119 0-17.4 1.6-35.2 4.6-52.8l4.4-25.1L203 410a151.02 151.02 0 0 1-19.1-73.4c0-40.6 15.7-78.5 44.4-107.2C257.1 200.7 295 185 335.6 185a153 153 0 0 1 71.4 17.9l22.4 11.8 24.8-4.8c18.9-3.6 38.4-5.5 58-5.5 41.4 0 81.3 8.1 119 24 36.5 15.4 69.1 37.4 97.2 65.5 28.2 28.1 50.2 60.8 65.6 97.2 16 37.7 24 77.6 24 119 0 18.4-1.7 37-5.1 55.5l-4.7 25.5 12.6 22.6c12.6 22.5 19.2 48 19.2 73.7 0 40.7-15.7 78.5-44.4 107.2zM583.4 466.2L495 446.6c-33.6-7.7-72.3-17.8-72.3-49.5s27.1-53.9 76.1-53.9c98.7 0 89.7 67.8 138.7 67.8 25.8 0 48.4-15.2 48.4-41.2 0-60.8-97.4-106.5-180-106.5-89.7 0-185.2 38.1-185.2 139.5 0 48.8 17.4 100.8 113.6 124.9l119.4 29.8c36.1 8.9 45.2 29.2 45.2 47.6 0 30.5-30.3 60.3-85.2 60.3-107.2 0-92.3-82.5-149.7-82.5-25.8 0-44.5 17.8-44.5 43.1 0 49.4 60 115.4 194.2 115.4 127.7 0 191-61.5 191-144 0-53.1-24.5-109.6-121.3-131.2z'));
- exports.SlackSquareOutline = getIcon('slack-square', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z'));
- exports.SlidersOutline = getIcon('sliders', outline, getNode(newViewBox, 'M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 0 1-3 3h-74a3 3 0 0 1-3-3v-74a3 3 0 0 1 3-3h74a3 3 0 0 1 3 3v74z'));
- exports.SmileOutline = getIcon('smile', outline, getNode(newViewBox, 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4z'));
- exports.SnippetsOutline = getIcon('snippets', outline, getNode(newViewBox, 'M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z'));
- exports.SoundOutline = getIcon('sound', outline, getNode(newViewBox, 'M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344z'));
- exports.StarOutline = getIcon('star', outline, getNode(newViewBox, 'M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0 0 46.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z'));
- exports.StepBackwardOutline = getIcon('step-backward', outline, getNode(normalViewBox, 'M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 0 0 0 33.9M330 864h-64a8 8 0 0 1-8-8V168a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v688a8 8 0 0 1-8 8'));
- exports.StepForwardOutline = getIcon('step-forward', outline, getNode(normalViewBox, 'M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 0 1 0 33.9M694 864h64a8 8 0 0 0 8-8V168a8 8 0 0 0-8-8h-64a8 8 0 0 0-8 8v688a8 8 0 0 0 8 8'));
- exports.StopOutline = getIcon('stop', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z'));
- exports.SwitcherOutline = getIcon('switcher', outline, getNode(newViewBox, 'M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528zm168-728H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM300 550h296v64H300z'));
- exports.TagOutline = getIcon('tag', outline, getNode(newViewBox, 'M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z'));
- exports.TabletOutline = getIcon('tablet', outline, getNode(newViewBox, 'M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H232V136h560v752zM472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
- exports.ShopOutline = getIcon('shop', outline, getNode(newViewBox, 'M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm30-404.4c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 0 1 512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 0 1-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z'));
- exports.TagsOutline = getIcon('tags', outline, getNode(newViewBox, 'M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1 0 67.88-67.89 48 48 0 1 0-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z'));
- exports.TaobaoCircleOutline = getIcon('taobao-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z'));
- exports.ToolOutline = getIcon('tool', outline, getNode(newViewBox, 'M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 0 1 144-53.5L537 318.9a32.05 32.05 0 0 0 0 45.3l124.5 124.5a32.05 32.05 0 0 0 45.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z'));
- exports.ThunderboltOutline = getIcon('thunderbolt', outline, getNode(newViewBox, 'M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z'));
- exports.TrophyOutline = getIcon('trophy', outline, getNode(newViewBox, 'M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM184 352V232h64v207.6a91.99 91.99 0 0 1-64-87.6zm520 128c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z'));
- exports.UnlockOutline = getIcon('unlock', outline, getNode(newViewBox, 'M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'));
- exports.UpCircleOutline = getIcon('up-circle', outline, getNode(newViewBox, 'M518.5 360.3a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7H381c10.2 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
- exports.UpSquareOutline = getIcon('up-square', outline, getNode(newViewBox, 'M334 624h46.9c10.2 0 19.9-4.9 25.9-13.2L512 465.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246a7.95 7.95 0 0 0-12.9 0l-178 246A7.96 7.96 0 0 0 334 624z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.UsbOutline = getIcon('usb', outline, getNode(newViewBox, 'M760 432V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V548c0-24.3 21.6-44 48.1-44h495.8c26.5 0 48.1 19.7 48.1 44v356c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zm-424 0V184h352v248H336zm120-184h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm160 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
- exports.VideoCameraOutline = getIcon('video-camera', outline, getNode(newViewBox, 'M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'));
- exports.WalletOutline = getIcon('wallet', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
- exports.WarningOutline = getIcon('warning', outline, getNode(newViewBox, 'M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z'));
- exports.WechatOutline = getIcon('wechat', outline, getNode(newViewBox, 'M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z'));
- exports.WeiboCircleOutline = getIcon('weibo-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
- exports.WindowsOutline = getIcon('windows', outline, getNode(newViewBox, 'M120.1 770.6L443 823.2V543.8H120.1v226.8zm63.4-163.5h196.2v141.6l-196.2-31.9V607.1zm340.3 226.5l382 62.2v-352h-382v289.8zm63.4-226.5h255.3v214.4l-255.3-41.6V607.1zm-63.4-415.7v288.8h382V128.1l-382 63.3zm318.7 225.5H587.3V245l255.3-42.3v214.2zm-722.4 63.3H443V201.9l-322.9 53.5v224.8zM183.5 309l196.2-32.5v140.4H183.5V309z'));
- exports.YahooOutline = getIcon('yahoo', outline, getNode(newViewBox, 'M859.9 681.4h-14.1c-27.1 0-49.2 22.2-49.2 49.3v14.1c0 27.1 22.2 49.3 49.2 49.3h14.1c27.1 0 49.2-22.2 49.2-49.3v-14.1c0-27.1-22.2-49.3-49.2-49.3zM402.6 231C216.2 231 65 357 65 512.5S216.2 794 402.6 794s337.6-126 337.6-281.5S589.1 231 402.6 231zm0 507C245.1 738 121 634.6 121 512.5c0-62.3 32.3-119.7 84.9-161v48.4h37l159.8 159.9v65.3h-84.4v56.3h225.1v-56.3H459v-65.3l103.5-103.6h65.3v-56.3H459v65.3l-28.1 28.1-93.4-93.5h37v-56.3H216.4c49.4-35 114.3-56.6 186.2-56.6 157.6 0 281.6 103.4 281.6 225.5S560.2 738 402.6 738zm534.7-507H824.7c-15.5 0-27.7 12.6-27.1 28.1l13.1 366h84.4l65.4-366.4c2.7-15.2-7.8-27.7-23.2-27.7z'));
- exports.WeiboSquareOutline = getIcon('weibo-square', outline, getNode(newViewBox, 'M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
- exports.YuqueOutline = getIcon('yuque', outline, getNode(newViewBox, 'M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.8-8.1-194.9-3-195-3 .1 0 87.4 55.6 52.4 154.7-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6zm-204.1 334c-10.6 0-26.2.1-46.8.3l-23.6.2-17.8 15.5c-47.1 41-104.4 71.5-171.4 87.6-52.5 12.6-110 16.2-172.7 9.6 18-20.5 36.5-41.6 55.4-63.1 92-104.6 173.8-197.5 236.9-268.5l1.4-1.4 1.3-1.5c4.1-4.6 20.6-23.3 24.7-28.1 9.7-11.1 17.3-19.9 24.5-28.6 30.7-36.7 52.2-67.8 69-102.2l1.6-3.3 1.2-3.4c13.7-38.8 15.4-76.9 6.2-112.8 22.5.7 46.5 1.9 71.7 3.6 33.3 2.3 55.5 12.9 71.1 29.2 5.8 6 10.2 12.5 13.4 18.7 1 2 1.7 3.6 2.3 5l5 17.7c-15.7 34.5-19.9 73.3-11.4 107.2 3 11.8 6.9 22.4 12.3 34.4 2.1 4.7 9.5 20.1 11 23.3 10.3 22.7 15.4 43 16.7 78.7 3.3 94.6-82.7 181.9-182 181.9z'));
- exports.YoutubeOutline = getIcon('youtube', outline, getNode(newViewBox, 'M960 509.2c0-2.2 0-4.7-.1-7.6-.1-8.1-.3-17.2-.5-26.9-.8-27.9-2.2-55.7-4.4-81.9-3-36.1-7.4-66.2-13.4-88.8a139.52 139.52 0 0 0-98.3-98.5c-28.3-7.6-83.7-12.3-161.7-15.2-37.1-1.4-76.8-2.3-116.5-2.8-13.9-.2-26.8-.3-38.4-.4h-29.4c-11.6.1-24.5.2-38.4.4-39.7.5-79.4 1.4-116.5 2.8-78 3-133.5 7.7-161.7 15.2A139.35 139.35 0 0 0 82.4 304C76.3 326.6 72 356.7 69 392.8c-2.2 26.2-3.6 54-4.4 81.9-.3 9.7-.4 18.8-.5 26.9 0 2.9-.1 5.4-.1 7.6v5.6c0 2.2 0 4.7.1 7.6.1 8.1.3 17.2.5 26.9.8 27.9 2.2 55.7 4.4 81.9 3 36.1 7.4 66.2 13.4 88.8 12.8 47.9 50.4 85.7 98.3 98.5 28.2 7.6 83.7 12.3 161.7 15.2 37.1 1.4 76.8 2.3 116.5 2.8 13.9.2 26.8.3 38.4.4h29.4c11.6-.1 24.5-.2 38.4-.4 39.7-.5 79.4-1.4 116.5-2.8 78-3 133.5-7.7 161.7-15.2 47.9-12.8 85.5-50.5 98.3-98.5 6.1-22.6 10.4-52.7 13.4-88.8 2.2-26.2 3.6-54 4.4-81.9.3-9.7.4-18.8.5-26.9 0-2.9.1-5.4.1-7.6v-5.6zm-72 5.2c0 2.1 0 4.4-.1 7.1-.1 7.8-.3 16.4-.5 25.7-.7 26.6-2.1 53.2-4.2 77.9-2.7 32.2-6.5 58.6-11.2 76.3-6.2 23.1-24.4 41.4-47.4 47.5-21 5.6-73.9 10.1-145.8 12.8-36.4 1.4-75.6 2.3-114.7 2.8-13.7.2-26.4.3-37.8.3h-28.6l-37.8-.3c-39.1-.5-78.2-1.4-114.7-2.8-71.9-2.8-124.9-7.2-145.8-12.8-23-6.2-41.2-24.4-47.4-47.5-4.7-17.7-8.5-44.1-11.2-76.3-2.1-24.7-3.4-51.3-4.2-77.9-.3-9.3-.4-18-.5-25.7 0-2.7-.1-5.1-.1-7.1v-4.8c0-2.1 0-4.4.1-7.1.1-7.8.3-16.4.5-25.7.7-26.6 2.1-53.2 4.2-77.9 2.7-32.2 6.5-58.6 11.2-76.3 6.2-23.1 24.4-41.4 47.4-47.5 21-5.6 73.9-10.1 145.8-12.8 36.4-1.4 75.6-2.3 114.7-2.8 13.7-.2 26.4-.3 37.8-.3h28.6l37.8.3c39.1.5 78.2 1.4 114.7 2.8 71.9 2.8 124.9 7.2 145.8 12.8 23 6.2 41.2 24.4 47.4 47.5 4.7 17.7 8.5 44.1 11.2 76.3 2.1 24.7 3.4 51.3 4.2 77.9.3 9.3.4 18 .5 25.7 0 2.7.1 5.1.1 7.1v4.8zM423 646l232-135-232-133z'));
- exports.AlibabaOutline = getIcon('alibaba', outline, getNode(newViewBox, 'M602.9 669.8c-37.2 2.6-33.6-17.3-11.5-46.2 50.4-67.2 143.7-158.5 147.9-225.2 5.8-86.6-81.3-113.4-171-113.4-62.4 1.6-127 18.9-171 34.6-151.6 53.5-246.6 137.5-306.9 232-62.4 93.4-43 183.2 91.8 185.8 101.8-4.2 170.5-32.5 239.7-68.2.5 0-192.5 55.1-263.9 14.7-7.9-4.2-15.7-10-17.8-26.2 0-33.1 54.6-67.7 86.6-78.7v-56.7c64.5 22.6 140.6 16.3 205.7-32 2.1 5.8 4.2 13.1 3.7 21h11c2.6-22.6-12.6-44.6-37.8-46.2 7.3 5.8 12.6 10.5 15.2 14.7l-1 1-.5.5c-83.9 58.8-165.3 31.5-173.1 29.9l46.7-45.7-13.1-33.1c92.9-32.5 169.5-56.2 296.9-78.7l-28.5-23 14.7-8.9c75.5 21 126.4 36.7 123.8 76.6-1 6.8-3.7 14.7-7.9 23.1C660.1 466.1 594 538 567.2 569c-17.3 20.5-34.6 39.4-46.7 58.3-13.6 19.4-20.5 37.3-21 53.5 2.6 131.8 391.4-61.9 468-112.9-111.7 47.8-232.9 93.5-364.6 101.9zm85-302.9c2.8 5.2 4.1 11.6 4.1 19.1-.1-6.8-1.4-13.3-4.1-19.1z'));
- exports.AlignCenterOutline = getIcon('align-center', outline, getNode(newViewBox, 'M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.AlignLeftOutline = getIcon('align-left', outline, getNode(newViewBox, 'M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.AlignRightOutline = getIcon('align-right', outline, getNode(newViewBox, 'M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.AlipayOutline = getIcon('alipay', outline, getNode(newViewBox, 'M789 610.3c-38.7-12.9-90.7-32.7-148.5-53.6 34.8-60.3 62.5-129 80.7-203.6H530.5v-68.6h233.6v-38.3H530.5V132h-95.4c-16.7 0-16.7 16.5-16.7 16.5v97.8H182.2v38.3h236.3v68.6H223.4v38.3h378.4a667.18 667.18 0 0 1-54.5 132.9c-122.8-40.4-253.8-73.2-336.1-53-52.6 13-86.5 36.1-106.5 60.3-91.4 111-25.9 279.6 167.2 279.6C386 811.2 496 747.6 581.2 643 708.3 704 960 808.7 960 808.7V659.4s-31.6-2.5-171-49.1zM253.9 746.6c-150.5 0-195-118.3-120.6-183.1 24.8-21.9 70.2-32.6 94.4-35 89.4-8.8 172.2 25.2 269.9 72.8-68.8 89.5-156.3 145.3-243.7 145.3z'));
- exports.AliyunOutline = getIcon('aliyun', outline, getNode(newViewBox, 'M959.2 383.9c-.3-82.1-66.9-148.6-149.1-148.6H575.9l21.6 85.2 201 43.7a42.58 42.58 0 0 1 32.9 39.7c.1.5.1 216.1 0 216.6a42.58 42.58 0 0 1-32.9 39.7l-201 43.7-21.6 85.3h234.2c82.1 0 148.8-66.5 149.1-148.6V383.9zM225.5 660.4a42.58 42.58 0 0 1-32.9-39.7c-.1-.6-.1-216.1 0-216.6.8-19.4 14.6-35.5 32.9-39.7l201-43.7 21.6-85.2H213.8c-82.1 0-148.8 66.4-149.1 148.6V641c.3 82.1 67 148.6 149.1 148.6H448l-21.6-85.3-200.9-43.9zm200.9-158.8h171v21.3h-171z'));
- exports.AmazonOutline = getIcon('amazon', outline, getNode(newViewBox, 'M825 768.9c-3.3-.9-7.3-.4-11.9 1.3-61.6 28.2-121.5 48.3-179.7 60.2C507.7 856 385.2 842.6 266 790.3c-33.1-14.6-79.1-39.2-138-74a9.36 9.36 0 0 0-5.3-2c-2-.1-3.7.1-5.3.9-1.6.8-2.8 1.8-3.7 3.1-.9 1.3-1.1 3.1-.4 5.4.6 2.2 2.1 4.7 4.6 7.4 10.4 12.2 23.3 25.2 38.6 39s35.6 29.4 60.9 46.8c25.3 17.4 51.8 32.9 79.3 46.4 27.6 13.5 59.6 24.9 96.1 34.1s73 13.8 109.4 13.8c36.2 0 71.4-3.7 105.5-10.9 34.2-7.3 63-15.9 86.5-25.9 23.4-9.9 45-21 64.8-33 19.8-12 34.4-22.2 43.9-30.3 9.5-8.2 16.3-14.6 20.2-19.4 4.6-5.7 6.9-10.6 6.9-14.9.1-4.5-1.7-7.1-5-7.9zM527.4 348.1c-15.2 1.3-33.5 4.1-55 8.3-21.5 4.1-41.4 9.3-59.8 15.4s-37.2 14.6-56.3 25.4c-19.2 10.8-35.5 23.2-49 37s-24.5 31.1-33.1 52c-8.6 20.8-12.9 43.7-12.9 68.7 0 27.1 4.7 51.2 14.3 72.5 9.5 21.3 22.2 38 38.2 50.4 15.9 12.4 34 22.1 54 29.2 20 7.1 41.2 10.3 63.2 9.4 22-.9 43.5-4.3 64.4-10.3 20.8-5.9 40.4-15.4 58.6-28.3 18.2-12.9 33.1-28.2 44.8-45.7 4.3 6.6 8.1 11.5 11.5 14.7l8.7 8.9c5.8 5.9 14.7 14.6 26.7 26.1 11.9 11.5 24.1 22.7 36.3 33.7l104.4-99.9-6-4.9c-4.3-3.3-9.4-8-15.2-14.3-5.8-6.2-11.6-13.1-17.2-20.5-5.7-7.4-10.6-16.1-14.7-25.9-4.1-9.8-6.2-19.3-6.2-28.5V258.7c0-10.1-1.9-21-5.7-32.8-3.9-11.7-10.7-24.5-20.7-38.3-10-13.8-22.4-26.2-37.2-37-14.9-10.8-34.7-20-59.6-27.4-24.8-7.4-52.6-11.1-83.2-11.1-31.3 0-60.4 3.7-87.6 10.9-27.1 7.3-50.3 17-69.7 29.2-19.3 12.2-35.9 26.3-49.7 42.4-13.8 16.1-24.1 32.9-30.8 50.4-6.7 17.5-10.1 35.2-10.1 53.1L408 310c5.5-16.4 12.9-30.6 22-42.8 9.2-12.2 17.9-21 25.8-26.5 8-5.5 16.6-9.9 25.7-13.2 9.2-3.3 15.4-5 18.6-5.4 3.2-.3 5.7-.4 7.6-.4 26.7 0 45.2 7.9 55.6 23.6 6.5 9.5 9.7 23.9 9.7 43.3v56.6c-15.2.6-30.4 1.6-45.6 2.9zM573.1 500c0 16.6-2.2 31.7-6.5 45-9.2 29.1-26.7 47.4-52.4 54.8-22.4 6.6-43.7 3.3-63.9-9.8-21.5-14-32.2-33.8-32.2-59.3 0-19.9 5-36.9 15-51.1 10-14.1 23.3-24.7 40-31.7s33-12 49-14.9c15.9-3 33-4.8 51-5.4V500zm335.2 218.9c-4.3-5.4-15.9-8.9-34.9-10.7-19-1.8-35.5-1.7-49.7.4-15.3 1.8-31.1 6.2-47.3 13.4-16.3 7.1-23.4 13.1-21.6 17.8l.7 1.3.9.7 1.4.2h4.6c.8 0 1.8-.1 3.2-.2 1.4-.1 2.7-.3 3.9-.4 1.2-.1 2.9-.3 5.1-.4 2.1-.1 4.1-.4 6-.7.3 0 3.7-.3 10.3-.9 6.6-.6 11.4-1 14.3-1.3 2.9-.3 7.8-.6 14.5-.9 6.7-.3 12.1-.3 16.1 0 4 .3 8.5.7 13.6 1.1 5.1.4 9.2 1.3 12.4 2.7 3.2 1.3 5.6 3 7.1 5.1 5.2 6.6 4.2 21.2-3 43.9s-14 40.8-20.4 54.2c-2.8 5.7-2.8 9.2 0 10.7s6.7.1 11.9-4c15.6-12.2 28.6-30.6 39.1-55.3 6.1-14.6 10.5-29.8 13.1-45.7 2.4-15.9 2-26.2-1.3-31z'));
- exports.AntCloudOutline = getIcon('ant-cloud', outline, getNode(newViewBox, 'M378.9 738c-3.1 0-6.1-.5-8.8-1.5l4.4 30.7h26.3l-15.5-29.9c-2.1.5-4.2.7-6.4.7zm421-291.2c-12.6 0-24.8 1.5-36.5 4.2-21.4-38.4-62.3-64.3-109.3-64.3-6.9 0-13.6.6-20.2 1.6-35.4-77.4-113.4-131.1-203.9-131.1-112.3 0-205.3 82.6-221.6 190.4C127.3 455.5 64 523.8 64 607c0 88.4 71.6 160.1 160 160.2h50l13.2-27.6c-26.2-8.3-43.3-29-39.1-48.8 4.6-21.6 32.8-33.9 63.1-27.5 22.9 4.9 40.4 19.1 45.5 35.1a26.1 26.1 0 0 1 22.1-12.4h.2c-.8-3.2-1.2-6.5-1.2-9.9 0-20.1 14.8-36.7 34.1-39.6v-25.4c0-4.4 3.6-8 8-8s8 3.6 8 8v26.3c4.6 1.2 8.8 3.2 12.6 5.8l19.5-21.4c3-3.3 8-3.5 11.3-.5 3.3 3 3.5 8 .5 11.3l-20 22-.2.2a40 40 0 0 1-46.9 59.2c-.4 5.6-2.6 10.7-6 14.8l20 38.4H804v-.1c86.5-2.2 156-73 156-160.1 0-88.5-71.7-160.2-160.1-160.2zM338.2 737.2l-4.3 30h24.4l-5.9-41.5c-3.5 4.6-8.3 8.5-14.2 11.5zM797.5 305a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-65.7 61.3a24 24 0 1 0 48 0 24 24 0 1 0-48 0zM303.4 742.9l-11.6 24.3h26l3.5-24.7c-5.7.8-11.7 1-17.9.4z'));
- exports.ApartmentOutline = getIcon('apartment', outline, getNode(newViewBox, 'M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z'));
- exports.AntDesignOutline = getIcon('ant-design', outline, getNode(newViewBox, 'M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 0 0 0 76.4L474.6 944a54.14 54.14 0 0 0 76.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 0 0-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 1 0 212.6 0 106.3 106.2 0 1 0-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 0 0 0 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 0 0 0 68.6 48.7 48.7 0 0 0 68.7 0l121.8-121.7a53.93 53.93 0 0 0-.1-76.4z'));
- exports.AreaChartOutline = getIcon('area-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-616-64h536c4.4 0 8-3.6 8-8V284c0-7.2-8.7-10.7-13.7-5.7L592 488.6l-125.4-124a8.03 8.03 0 0 0-11.3 0l-189 189.6a7.87 7.87 0 0 0-2.3 5.6V720c0 4.4 3.6 8 8 8z'));
- exports.ArrowLeftOutline = getIcon('arrow-left', outline, getNode(newViewBox, 'M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 0 0 0 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
- exports.ArrowDownOutline = getIcon('arrow-down', outline, getNode(newViewBox, 'M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z'));
- exports.ArrowUpOutline = getIcon('arrow-up', outline, getNode(newViewBox, 'M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z'));
- exports.ArrowsAltOutline = getIcon('arrows-alt', outline, getNode(newViewBox, 'M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 0 0 0 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0 0 13.5-4.7L863.9 169a7.9 7.9 0 0 0-8.9-8.9zM416.6 562.3a8.03 8.03 0 0 0-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 0 0-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z'));
- exports.ArrowRightOutline = getIcon('arrow-right', outline, getNode(newViewBox, 'M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 0 0 0-48.4z'));
- exports.AuditOutline = getIcon('audit', outline, getNode(newViewBox, 'M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z'));
- exports.BarChartOutline = getIcon('bar-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z'));
- exports.BarcodeOutline = getIcon('barcode', outline, getNode(newViewBox, 'M120 160H72c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm833 0h-48c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zM200 736h112c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm321 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm126 0h178c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H647c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-255 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-79 64H201c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm257 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm256 0H648c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h178c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-385 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
- exports.BarsOutline = getIcon('bars', outline, getNode(normalViewBox, 'M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
- exports.BgColorsOutline = getIcon('bg-colors', outline, getNode(newViewBox, 'M766.4 744.3c43.7 0 79.4-36.2 79.4-80.5 0-53.5-79.4-140.8-79.4-140.8S687 610.3 687 663.8c0 44.3 35.7 80.5 79.4 80.5zm-377.1-44.1c7.1 7.1 18.6 7.1 25.6 0l256.1-256c7.1-7.1 7.1-18.6 0-25.6l-256-256c-.6-.6-1.3-1.2-2-1.7l-78.2-78.2a9.11 9.11 0 0 0-12.8 0l-48 48a9.11 9.11 0 0 0 0 12.8l67.2 67.2-207.8 207.9c-7.1 7.1-7.1 18.6 0 25.6l255.9 256zm12.9-448.6l178.9 178.9H223.4l178.8-178.9zM904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8z'));
- exports.BehanceOutline = getIcon('behance', outline, getNode(newViewBox, 'M634 294.3h199.5v48.4H634zM434.1 485.8c44.1-21.1 67.2-53.2 67.2-102.8 0-98.1-73-121.9-157.3-121.9H112v492.4h238.5c89.4 0 173.3-43 173.3-143 0-61.8-29.2-107.5-89.7-124.7zM220.2 345.1h101.5c39.1 0 74.2 10.9 74.2 56.3 0 41.8-27.3 58.6-66 58.6H220.2V345.1zm115.5 324.8H220.1V534.3H338c47.6 0 77.7 19.9 77.7 70.3 0 49.6-35.9 65.3-80 65.3zm575.8-89.5c0-105.5-61.7-193.4-173.3-193.4-108.5 0-182.3 81.7-182.3 188.8 0 111 69.9 187.2 182.3 187.2 85.1 0 140.2-38.3 166.7-120h-86.3c-9.4 30.5-47.6 46.5-77.3 46.5-57.4 0-87.4-33.6-87.4-90.7h256.9c.3-5.9.7-12.1.7-18.4zM653.9 537c3.1-46.9 34.4-76.2 81.2-76.2 49.2 0 73.8 28.9 78.1 76.2H653.9z'));
- exports.BlockOutline = getIcon('block', outline, getNode(newViewBox, 'M856 376H648V168c0-8.8-7.2-16-16-16H168c-8.8 0-16 7.2-16 16v464c0 8.8 7.2 16 16 16h208v208c0 8.8 7.2 16 16 16h464c8.8 0 16-7.2 16-16V392c0-8.8-7.2-16-16-16zm-480 16v188H220V220h360v156H392c-8.8 0-16 7.2-16 16zm204 52v136H444V444h136zm224 360H444V648h188c8.8 0 16-7.2 16-16V444h156v360z'));
- exports.BoldOutline = getIcon('bold', outline, getNode(newViewBox, 'M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z'));
- exports.BorderBottomOutline = getIcon('border-bottom', outline, getNode(newViewBox, 'M872 808H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-720-94h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-498h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm166 166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm222-72h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388 426h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
- exports.BorderLeftOutline = getIcon('border-left', outline, getNode(newViewBox, 'M208 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM540 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.BorderOuterOutline = getIcon('border-outer', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM484 366h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM302 548h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm364 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-182 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 182h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
- exports.BorderInnerOutline = getIcon('border-inner', outline, getNode(newViewBox, 'M872 476H548V144h-72v332H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v332h72V548h324c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-664h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM650 216h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-592h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-166 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-426h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 260h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.BorderRightOutline = getIcon('border-right', outline, getNode(newViewBox, 'M872 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.BorderHorizontalOutline = getIcon('border-horizontal', outline, getNode(newViewBox, 'M540 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm664 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.BorderTopOutline = getIcon('border-top', outline, getNode(newViewBox, 'M872 144H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332-498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.BorderVerticleOutline = getIcon('border-verticle', outline, getNode(newViewBox, 'M872 476H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-664h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM650 216h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-592h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-166 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM152 382h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM208 642h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.BorderOutline = getIcon('border', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
- exports.BranchesOutline = getIcon('branches', outline, getNode(newViewBox, 'M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0 0 34.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm96 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm408-491a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
- exports.CheckOutline = getIcon('check', outline, getNode(newViewBox, 'M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z'));
- exports.CiOutline = getIcon('ci', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm218-572.1h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z'));
- exports.CloseOutline = getIcon('close', outline, getNode(newViewBox, 'M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z'));
- exports.CloudDownloadOutline = getIcon('cloud-download', outline, getNode(newViewBox, 'M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z', 'M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z'));
- exports.CloudServerOutline = getIcon('cloud-server', outline, getNode(newViewBox, 'M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z', 'M424 748a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm0-178a32 32 0 1 0 64 0 32 32 0 1 0-64 0z', 'M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z'));
- exports.CloudSyncOutline = getIcon('cloud-sync', outline, getNode(newViewBox, 'M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z', 'M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 0 0 3 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 0 0-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z'));
- exports.CloudUploadOutline = getIcon('cloud-upload', outline, getNode(newViewBox, 'M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z', 'M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z'));
- exports.ClusterOutline = getIcon('cluster', outline, getNode(newViewBox, 'M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
- exports.CodepenOutline = getIcon('codepen', outline, getNode(newViewBox, 'M911.7 385.3l-.3-1.5c-.2-1-.3-1.9-.6-2.9-.2-.6-.4-1.1-.5-1.7-.3-.8-.5-1.7-.9-2.5-.2-.6-.5-1.1-.8-1.7-.4-.8-.8-1.5-1.2-2.3-.3-.5-.6-1.1-1-1.6-.8-1.2-1.7-2.4-2.6-3.6-.5-.6-1.1-1.3-1.7-1.9-.4-.5-.9-.9-1.4-1.3-.6-.6-1.3-1.1-1.9-1.6-.5-.4-1-.8-1.6-1.2-.2-.1-.4-.3-.6-.4L531.1 117.8a34.3 34.3 0 0 0-38.1 0L127.3 361.3c-.2.1-.4.3-.6.4-.5.4-1 .8-1.6 1.2-.7.5-1.3 1.1-1.9 1.6-.5.4-.9.9-1.4 1.3-.6.6-1.2 1.2-1.7 1.9-1 1.1-1.8 2.3-2.6 3.6-.3.5-.7 1-1 1.6-.4.7-.8 1.5-1.2 2.3-.3.5-.5 1.1-.8 1.7-.3.8-.6 1.7-.9 2.5-.2.6-.4 1.1-.5 1.7-.2.9-.4 1.9-.6 2.9l-.3 1.5c-.2 1.5-.3 3-.3 4.5v243.5c0 1.5.1 3 .3 4.5l.3 1.5.6 2.9c.2.6.3 1.1.5 1.7.3.9.6 1.7.9 2.5.2.6.5 1.1.8 1.7.4.8.7 1.5 1.2 2.3.3.5.6 1.1 1 1.6.5.7.9 1.4 1.5 2.1l1.2 1.5c.5.6 1.1 1.3 1.7 1.9.4.5.9.9 1.4 1.3.6.6 1.3 1.1 1.9 1.6.5.4 1 .8 1.6 1.2.2.1.4.3.6.4L493 905.7c5.6 3.8 12.3 5.8 19.1 5.8 6.6 0 13.3-1.9 19.1-5.8l365.6-243.5c.2-.1.4-.3.6-.4.5-.4 1-.8 1.6-1.2.7-.5 1.3-1.1 1.9-1.6.5-.4.9-.9 1.4-1.3.6-.6 1.2-1.2 1.7-1.9l1.2-1.5 1.5-2.1c.3-.5.7-1 1-1.6.4-.8.8-1.5 1.2-2.3.3-.5.5-1.1.8-1.7.3-.8.6-1.7.9-2.5.2-.5.4-1.1.5-1.7.3-.9.4-1.9.6-2.9l.3-1.5c.2-1.5.3-3 .3-4.5V389.8c-.3-1.5-.4-3-.6-4.5zM546.4 210.5l269.4 179.4-120.3 80.4-149-99.6V210.5zm-68.8 0v160.2l-149 99.6-120.3-80.4 269.3-179.4zM180.7 454.1l86 57.5-86 57.5v-115zm296.9 358.5L208.3 633.2l120.3-80.4 149 99.6v160.2zM512 592.8l-121.6-81.2L512 430.3l121.6 81.2L512 592.8zm34.4 219.8V652.4l149-99.6 120.3 80.4-269.3 179.4zM843.3 569l-86-57.5 86-57.5v115z'));
- exports.CodeSandboxOutline = getIcon('code-sandbox', outline, getNode(newViewBox, 'M709.6 210l.4-.2h.2L512 96 313.9 209.8h-.2l.7.3L151.5 304v416L512 928l360.5-208V304l-162.9-94zM482.7 843.6L339.6 761V621.4L210 547.8V372.9l272.7 157.3v313.4zM238.2 321.5l134.7-77.8 138.9 79.7 139.1-79.9 135.2 78-273.9 158-274-158zM814 548.3l-128.8 73.1v139.1l-143.9 83V530.4L814 373.1v175.2z'));
- exports.ColumHeightOutline = getIcon('colum-height', outline, getNode(newViewBox, 'M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 0 0-11.3 0L403.6 366.3a7.23 7.23 0 0 0 5.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z'));
- exports.ColumnWidthOutline = getIcon('column-width', outline, getNode(newViewBox, 'M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 0 0-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z'));
- exports.ColumnHeightOutline = getIcon('column-height', outline, getNode(newViewBox, 'M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 0 0-11.3 0L403.6 366.3a7.23 7.23 0 0 0 5.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z'));
- exports.CoffeeOutline = getIcon('coffee', outline, getNode(normalViewBox, 'M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z'));
- exports.CopyrightOutline = getIcon('copyright', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z'));
- exports.DashOutline = getIcon('dash', outline, getNode(newViewBox, 'M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z'));
- exports.DeploymentUnitOutline = getIcon('deployment-unit', outline, getNode(newViewBox, 'M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 0 1-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0 1 65.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z'));
- exports.DesktopOutline = getIcon('desktop', outline, getNode(newViewBox, 'M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z'));
- exports.DingdingOutline = getIcon('dingding', outline, getNode(newViewBox, 'M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z'));
- exports.DisconnectOutline = getIcon('disconnect', outline, getNode(newViewBox, 'M832.6 191.4c-84.6-84.6-221.5-84.6-306 0l-96.9 96.9 51 51 96.9-96.9c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204l-96.9 96.9 51.1 51.1 96.9-96.9c84.4-84.6 84.4-221.5-.1-306.1zM446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l96.9-96.9-51.1-51.1-96.9 96.9c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l96.9-96.9-51-51-96.8 97zM260.3 209.4a8.03 8.03 0 0 0-11.3 0L209.4 249a8.03 8.03 0 0 0 0 11.3l554.4 554.4c3.1 3.1 8.2 3.1 11.3 0l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3L260.3 209.4z'));
- exports.DollarOutline = getIcon('dollar', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z'));
- exports.DoubleRightOutline = getIcon('double-right', outline, getNode(newViewBox, 'M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 0 0 188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 0 0 492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z'));
- exports.DotChartOutline = getIcon('dot-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm118-224a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm158 228a96 96 0 1 0 192 0 96 96 0 1 0-192 0zm148-314a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
- exports.DoubleLeftOutline = getIcon('double-left', outline, getNode(newViewBox, 'M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z'));
- exports.DownloadOutline = getIcon('download', outline, getNode(newViewBox, 'M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z'));
- exports.DribbbleOutline = getIcon('dribbble', outline, getNode(newViewBox, 'M512 96C282.6 96 96 282.6 96 512s186.6 416 416 416 416-186.6 416-416S741.4 96 512 96zm275.1 191.8c49.5 60.5 79.5 137.5 80.2 221.4-11.7-2.5-129.2-26.3-247.4-11.4-2.5-6.1-5-12.2-7.6-18.3-7.4-17.3-15.3-34.6-23.6-51.5C720 374.3 779.6 298 787.1 287.8zM512 157.2c90.3 0 172.8 33.9 235.5 89.5-6.4 9.1-59.9 81-186.2 128.4-58.2-107-122.7-194.8-132.6-208 27.3-6.6 55.2-9.9 83.3-9.9zM360.9 191c9.4 12.8 72.9 100.9 131.7 205.5C326.4 440.6 180 440 164.1 439.8c23.1-110.3 97.4-201.9 196.8-248.8zM156.7 512.5c0-3.6.1-7.3.2-10.9 15.5.3 187.7 2.5 365.2-50.6 10.2 19.9 19.9 40.1 28.8 60.3-4.7 1.3-9.4 2.7-14 4.2C353.6 574.9 256.1 736.4 248 750.1c-56.7-63-91.3-146.3-91.3-237.6zM512 867.8c-82.2 0-157.9-28-218.1-75 6.4-13.1 78.3-152 278.7-221.9l2.3-.8c49.9 129.6 70.5 238.3 75.8 269.5A350.46 350.46 0 0 1 512 867.8zm198.5-60.7c-3.6-21.6-22.5-125.6-69-253.3C752.9 536 850.7 565.2 862.8 569c-15.8 98.8-72.5 184.2-152.3 238.1z'));
- exports.DropboxOutline = getIcon('dropbox', outline, getNode(newViewBox, 'M64 556.9l264.2 173.5L512.5 577 246.8 412.7zm896-290.3zm0 0L696.8 95 512.5 248.5l265.2 164.2L512.5 577l184.3 153.4L960 558.8 777.7 412.7zM513 609.8L328.2 763.3l-79.4-51.5v57.8L513 928l263.7-158.4v-57.8l-78.9 51.5zM328.2 95L64 265.1l182.8 147.6 265.7-164.2zM64 556.9z'));
- exports.EllipsisOutline = getIcon('ellipsis', outline, getNode(newViewBox, 'M176 511a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
- exports.EnterOutline = getIcon('enter', outline, getNode(newViewBox, 'M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z'));
- exports.EuroOutline = getIcon('euro', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm117.7-588.6c-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H344c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H344c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H439.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H447.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 0 0 9.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8z'));
- exports.ExceptionOutline = getIcon('exception', outline, getNode(newViewBox, 'M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM640 812a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm12-64h40c4.4 0 8-3.6 8-8V628c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.ExclamationOutline = getIcon('exclamation', outline, getNode(newViewBox, 'M448 804a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm32-168h64c4.4 0 8-3.6 8-8V164c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z'));
- exports.ExportOutline = getIcon('export', outline, getNode(newViewBox, 'M888.3 757.4h-53.8c-4.2 0-7.7 3.5-7.7 7.7v61.8H197.1V197.1h629.8v61.8c0 4.2 3.5 7.7 7.7 7.7h53.8c4.2 0 7.7-3.4 7.7-7.7V158.7c0-17-13.7-30.7-30.7-30.7H158.7c-17 0-30.7 13.7-30.7 30.7v706.6c0 17 13.7 30.7 30.7 30.7h706.6c17 0 30.7-13.7 30.7-30.7V765.1c0-4.3-3.5-7.7-7.7-7.7zm18.6-251.7L765 393.7c-5.3-4.2-13-.4-13 6.3v76H438c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z'));
- exports.FallOutline = getIcon('fall', outline, getNode(newViewBox, 'M925.9 804l-24-199.2c-.8-6.6-8.9-9.4-13.6-4.7L829 659.5 557.7 388.3c-6.3-6.2-16.4-6.2-22.6 0L433.3 490 156.6 213.3a8.03 8.03 0 0 0-11.3 0l-45 45.2a8.03 8.03 0 0 0 0 11.3L422 591.7c6.2 6.3 16.4 6.3 22.6 0L546.4 490l226.1 226-59.3 59.3a8.01 8.01 0 0 0 4.7 13.6l199.2 24c5.1.7 9.5-3.7 8.8-8.9z'));
- exports.FileDoneOutline = getIcon('file-done', outline, getNode(newViewBox, 'M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 0 0-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.FileSyncOutline = getIcon('file-sync', outline, getNode(newViewBox, 'M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm192 200v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8zm-48 396H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm104.1-115.6c1.8-34.5 16.2-66.8 40.8-91.4 26.2-26.2 62-41 99.1-41 37.4 0 72.6 14.6 99.1 41 3.2 3.2 6.3 6.6 9.2 10.1L769.2 673a8 8 0 0 0 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l.6-95.4a8 8 0 0 0-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7-.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6zM880 744h-48.1c-4.3 0-7.8 3.3-8 7.6-1.8 34.5-16.2 66.8-40.8 91.4-26.2 26.2-62 41-99.1 41-37.4 0-72.6-14.6-99.1-41-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9a8 8 0 0 0-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-.6 95.4a8 8 0 0 0 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7.2-4.5-3.5-8.3-8-8.3z'));
- exports.FileProtectOutline = getIcon('file-protect', outline, getNode(newViewBox, 'M644.7 669.2a7.92 7.92 0 0 0-6.5-3.3H594c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.8-5.3 0-12.7-6.5-12.7h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-22.9-31.9zM688 306v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 458H208V148h560v296c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h312c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm402.6-320.8l-192-66.7c-.9-.3-1.7-.4-2.6-.4s-1.8.1-2.6.4l-192 66.7a7.96 7.96 0 0 0-5.4 7.5v251.1c0 2.5 1.1 4.8 3.1 6.3l192 150.2c1.4 1.1 3.2 1.7 4.9 1.7s3.5-.6 4.9-1.7l192-150.2c1.9-1.5 3.1-3.8 3.1-6.3V538.7c0-3.4-2.2-6.4-5.4-7.5zM826 763.7L688 871.6 550 763.7V577l138-48 138 48v186.7z'));
- exports.FileSearchOutline = getIcon('file-search', outline, getNode(newViewBox, 'M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 0 0 0-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z'));
- exports.FileJpgOutline = getIcon('file-jpg', outline, getNode(normalViewBox, 'M874.6 301.8L596.8 21.3c-4.5-4.5-9.4-8.3-14.7-11.5-1.4-.8-2.8-1.6-4.3-2.3-.9-.5-1.9-.9-2.8-1.3-9-4-18.9-6.2-29-6.2H201c-39.8 0-73 32.2-73 72v880c0 39.8 33.2 72 73 72h623c39.8 0 71-32.2 71-72V352.5c0-19-7-37.2-20.4-50.7zM583 110.4L783.8 312H583V110.4zM823 952H200V72h311v240c0 39.8 33.2 72 73 72h239v568zM350 696.5c0 24.2-7.5 31.4-21.9 31.4-9 0-18.4-5.8-24.8-18.5L272.9 732c13.4 22.9 32.3 34.2 61.3 34.2 41.6 0 60.8-29.9 60.8-66.2V577h-45v119.5zM501.3 577H437v186h44v-62h21.6c39.1 0 73.1-19.6 73.1-63.6 0-45.8-33.5-60.4-74.4-60.4zm-.8 89H481v-53h18.2c21.5 0 33.4 6.2 33.4 24.9 0 18.1-10.5 28.1-32.1 28.1zm182.5-9v36h30v30.1c-4 2.9-11 4.7-17.7 4.7-34.3 0-50.7-21.4-50.7-58.2 0-36.1 19.7-57.4 47.1-57.4 15.3 0 25 6.2 34 14.4l23.7-28.3c-12.7-12.8-32.1-24.2-59.2-24.2-49.6 0-91.1 35.3-91.1 97 0 62.7 40 95.1 91.5 95.1 25.9 0 49.2-10.2 61.5-22.6V657H683z'));
- exports.FontColorsOutline = getIcon('font-colors', outline, getNode(newViewBox, 'M904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-650.3-80h85c4.2 0 8-2.7 9.3-6.8l53.7-166h219.2l53.2 166c1.3 4 5 6.8 9.3 6.8h89.1c1.1 0 2.2-.2 3.2-.5a9.7 9.7 0 0 0 6-12.4L573.6 118.6a9.9 9.9 0 0 0-9.2-6.6H462.1c-4.2 0-7.9 2.6-9.2 6.6L244.5 723.1c-.4 1-.5 2.1-.5 3.2-.1 5.3 4.3 9.7 9.7 9.7zm255.9-516.1h4.1l83.8 263.8H424.9l84.7-263.8z'));
- exports.FontSizeOutline = getIcon('font-size', outline, getNode(newViewBox, 'M920 416H616c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-56h60v320h-46c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h164c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-46V480h60v56c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V424c0-4.4-3.6-8-8-8zM656 296V168c0-4.4-3.6-8-8-8H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8z'));
- exports.ForkOutline = getIcon('fork', outline, getNode(newViewBox, 'M752 100c-61.8 0-112 50.2-112 112 0 47.7 29.9 88.5 72 104.6v27.6L512 601.4 312 344.2v-27.6c42.1-16.1 72-56.9 72-104.6 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 50.6 33.8 93.5 80 107.3v34.4c0 9.7 3.3 19.3 9.3 27L476 672.3v33.6c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-33.6l226.7-291.6c6-7.7 9.3-17.3 9.3-27v-34.4c46.2-13.8 80-56.7 80-107.3 0-61.8-50.2-112-112-112zM224 212a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm336 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm192-552a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
- exports.FormOutline = getIcon('form', outline, getNode(newViewBox, 'M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z', 'M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 0 0-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z'));
- exports.FullscreenExitOutline = getIcon('fullscreen-exit', outline, getNode(newViewBox, 'M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z'));
- exports.FullscreenOutline = getIcon('fullscreen', outline, getNode(newViewBox, 'M290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z'));
- exports.GatewayOutline = getIcon('gateway', outline, getNode(newViewBox, 'M928 392c8.8 0 16-7.2 16-16V192c0-8.8-7.2-16-16-16H744c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h56v240H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16V648c0-8.8-7.2-16-16-16h-56V392h56zM792 240h88v88h-88v-88zm-648 88v-88h88v88h-88zm88 456h-88v-88h88v88zm648-88v88h-88v-88h88zm-80-64h-56c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16h-56V392h56c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h56v240z'));
- exports.DownOutline = getIcon('down', outline, getNode(newViewBox, 'M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z'));
- exports.DragOutline = getIcon('drag', outline, getNode(newViewBox, 'M909.3 506.3L781.7 405.6a7.23 7.23 0 0 0-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 0 0-11.3 0L405.6 242.3a7.23 7.23 0 0 0 5.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 0 0 .1-11.4z'));
- exports.GlobalOutline = getIcon('global', outline, getNode(newViewBox, 'M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0 0 10-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 0 0 3.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 0 0-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 0 1 887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 0 1-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 0 1 115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 0 1 540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 0 0 540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 0 1-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 0 0-81.5 55.9A373.86 373.86 0 0 1 137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 0 1-107.6 69.2z'));
- exports.GooglePlusOutline = getIcon('google-plus', outline, getNode(newViewBox, 'M879.5 470.4c-.3-27-.4-54.2-.5-81.3h-80.8c-.3 27-.5 54.1-.7 81.3-27.2.1-54.2.3-81.2.6v80.9c27 .3 54.2.5 81.2.8.3 27 .3 54.1.5 81.1h80.9c.1-27 .3-54.1.5-81.3 27.2-.3 54.2-.4 81.2-.7v-80.9c-26.9-.2-54.1-.2-81.1-.5zm-530 .4c-.1 32.3 0 64.7.1 97 54.2 1.8 108.5 1 162.7 1.8-23.9 120.3-187.4 159.3-273.9 80.7-89-68.9-84.8-220 7.7-284 64.7-51.6 156.6-38.9 221.3 5.8 25.4-23.5 49.2-48.7 72.1-74.7-53.8-42.9-119.8-73.5-190-70.3-146.6-4.9-281.3 123.5-283.7 270.2-9.4 119.9 69.4 237.4 180.6 279.8 110.8 42.7 252.9 13.6 323.7-86 46.7-62.9 56.8-143.9 51.3-220-90.7-.7-181.3-.6-271.9-.3z'));
- exports.GoogleOutline = getIcon('google', outline, getNode(newViewBox, 'M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z'));
- exports.HeatMapOutline = getIcon('heat-map', outline, getNode(newViewBox, 'M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-790.4-23.9L512 231.9 858.7 832H165.3zm319-474.1l-228 394c-12.3 21.3 3.1 48 27.7 48h455.8c24.7 0 40.1-26.7 27.7-48L539.7 358c-6.2-10.7-17-16-27.7-16-10.8 0-21.6 5.3-27.7 16zm214 386H325.7L512 422l186.3 322zm-214-194.1l-57 98.4C415 669.5 430.4 696 455 696h114c24.6 0 39.9-26.5 27.7-47.7l-57-98.4c-6.1-10.6-16.9-15.9-27.7-15.9s-21.5 5.3-27.7 15.9zm57.1 98.4h-58.7l29.4-50.7 29.3 50.7z'));
- exports.GoldOutline = getIcon('gold', outline, getNode(newViewBox, 'M342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8zm91.2-196h159.5l20.7 128h-201l20.8-128zm2.5 282.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM196.5 748l20.7-128h159.5l20.7 128H196.5zm709.4 58.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zM626.5 748l20.7-128h159.5l20.7 128H626.5z'));
- exports.HistoryOutline = getIcon('history', outline, getNode(newViewBox, 'M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 0 0 3 14.1zm167.7 301.1l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 0 1-112.5 75.9 352.18 352.18 0 0 1-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 0 1-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 0 1 171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 0 1 112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 0 1 775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z'));
- exports.IeOutline = getIcon('ie', outline, getNode(newViewBox, 'M852.6 367.6c16.3-36.9 32.1-90.7 32.1-131.8 0-109.1-119.5-147.6-314.5-57.9-161.4-10.8-316.8 110.5-355.6 279.7 46.3-52.3 117.4-123.4 183-151.7C316.1 378.3 246.7 470 194 565.6c-31.1 56.9-66 148.8-66 217.5 0 147.9 139.3 129.8 270.4 63 47.1 23.1 99.8 23.4 152.5 23.4 145.7 0 276.4-81.4 325.2-219H694.9c-78.8 132.9-295.2 79.5-295.2-71.2h493.2c9.6-65.4-2.5-143.6-40.3-211.7zM224.8 648.3c26.6 76.7 80.6 143.8 150.4 185-133.1 73.4-259.9 43.6-150.4-185zm174-163.3c3-82.7 75.4-142.3 156-142.3 80.1 0 153 59.6 156 142.3h-312zm276.8-281.4c32.1-15.4 72.8-33 108.8-33 47.1 0 81.4 32.6 81.4 80.6 0 30-11.1 73.5-21.9 101.8-39.3-63.5-98.9-122.4-168.3-149.4z'));
- exports.InboxOutline = getIcon('inbox', outline, getNode(normalViewBox, 'M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0 0 60.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z'));
- exports.ImportOutline = getIcon('import', outline, getNode(newViewBox, 'M888.3 757.4h-53.8c-4.2 0-7.7 3.5-7.7 7.7v61.8H197.1V197.1h629.8v61.8c0 4.2 3.5 7.7 7.7 7.7h53.8c4.2 0 7.7-3.4 7.7-7.7V158.7c0-17-13.7-30.7-30.7-30.7H158.7c-17 0-30.7 13.7-30.7 30.7v706.6c0 17 13.7 30.7 30.7 30.7h706.6c17 0 30.7-13.7 30.7-30.7V765.1c0-4.3-3.5-7.7-7.7-7.7zM902 476H588v-76c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-76h314c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.InfoOutline = getIcon('info', outline, getNode(newViewBox, 'M448 224a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96 168h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z'));
- exports.ItalicOutline = getIcon('italic', outline, getNode(newViewBox, 'M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z'));
- exports.IssuesCloseOutline = getIcon('issues-close', outline, getNode(newViewBox, 'M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72-112c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48zm400-188h-59.3c-2.6 0-5 1.2-6.5 3.3L763.7 538.1l-49.9-68.8a7.92 7.92 0 0 0-6.5-3.3H648c-6.5 0-10.3 7.4-6.5 12.7l109.2 150.7a16.1 16.1 0 0 0 26 0l165.8-228.7c3.8-5.3 0-12.7-6.5-12.7zm-44 306h-64.2c-5.5 0-10.6 2.9-13.6 7.5a352.2 352.2 0 0 1-49.8 62.2A355.92 355.92 0 0 1 651.1 840a355 355 0 0 1-138.7 27.9c-48.1 0-94.8-9.4-138.7-27.9a355.92 355.92 0 0 1-113.3-76.3A353.06 353.06 0 0 1 184 650.5c-18.6-43.8-28-90.5-28-138.5s9.4-94.7 28-138.5c17.9-42.4 43.6-80.5 76.4-113.2 32.8-32.7 70.9-58.4 113.3-76.3a355 355 0 0 1 138.7-27.9c48.1 0 94.8 9.4 138.7 27.9 42.4 17.9 80.5 43.6 113.3 76.3 19 19 35.6 39.8 49.8 62.2 2.9 4.7 8.1 7.5 13.6 7.5H892c6 0 9.8-6.3 7.2-11.6C828.8 178.5 684.7 82 517.7 80 278.9 77.2 80.5 272.5 80 511.2 79.5 750.1 273.3 944 512.4 944c169.2 0 315.6-97 386.7-238.4A8 8 0 0 0 892 694z'));
- exports.KeyOutline = getIcon('key', outline, getNode(newViewBox, 'M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 0 0-11.4 0l-39.8 39.8a8.15 8.15 0 0 0 0 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 0 0-11.4 0l-39.8 39.8a8.15 8.15 0 0 0 0 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 0 0 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 0 0 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z'));
- exports.LaptopOutline = getIcon('laptop', outline, getNode(newViewBox, 'M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z'));
- exports.LeftOutline = getIcon('left', outline, getNode(newViewBox, 'M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z'));
- exports.LinkOutline = getIcon('link', outline, getNode(newViewBox, 'M574 665.4a8.03 8.03 0 0 0-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 0 0-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 0 0 0 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 0 0 0 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 0 0-11.3 0L372.3 598.7a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z'));
- exports.LineChartOutline = getIcon('line-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3l39.5 39.7z'));
- exports.LineHeightOutline = getIcon('line-height', outline, getNode(newViewBox, 'M648 160H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm272.8 546H856V318h64.8c6 0 9.4-7 5.7-11.7L825.7 178.7a7.14 7.14 0 0 0-11.3 0L713.6 306.3a7.23 7.23 0 0 0 5.7 11.7H784v388h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5a7.2 7.2 0 0 0-5.6-11.7z'));
- exports.LineOutline = getIcon('line', outline, getNode(newViewBox, 'M904 476H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.Loading3QuartersOutline = getIcon('loading-3-quarters', outline, getNode(normalViewBox, 'M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874c-47-47-84-101.7-109.8-162.7C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3 22.2 52.4 53.9 99.5 94.3 139.9 40.4 40.4 87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952c59.4 0 117-11.6 171.3-34.6 52.4-22.2 99.5-53.9 139.9-94.3 40.4-40.4 72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512c0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874c-47 47-101.8 83.9-162.7 109.7-63.1 26.8-130.2 40.3-199.3 40.3z'));
- exports.LoadingOutline = getIcon('loading', outline, getNode(normalViewBox, 'M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z'));
- exports.LoginOutline = getIcon('login', outline, getNode(newViewBox, 'M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 0 1 520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 0 1 270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 0 1 0 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z'));
- exports.LogoutOutline = getIcon('logout', outline, getNode(newViewBox, 'M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 0 1-112.7 75.9A352.8 352.8 0 0 1 512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 0 1-112.7-75.9 353.28 353.28 0 0 1-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z'));
- exports.ManOutline = getIcon('man', outline, getNode(newViewBox, 'M874 120H622c-3.3 0-6 2.7-6 6v56c0 3.3 2.7 6 6 6h160.4L583.1 387.3c-50-38.5-111-59.3-175.1-59.3-76.9 0-149.3 30-203.6 84.4S120 539.1 120 616s30 149.3 84.4 203.6C258.7 874 331.1 904 408 904s149.3-30 203.6-84.4C666 765.3 696 692.9 696 616c0-64.1-20.8-124.9-59.2-174.9L836 241.9V402c0 3.3 2.7 6 6 6h56c3.3 0 6-2.7 6-6V150c0-16.5-13.5-30-30-30zM408 828c-116.9 0-212-95.1-212-212s95.1-212 212-212 212 95.1 212 212-95.1 212-212 212z'));
- exports.MediumOutline = getIcon('medium', outline, getNode(newViewBox, 'M834.7 279.8l61.3-58.9V208H683.7L532.4 586.4 360.3 208H137.7v12.9l71.6 86.6c7 6.4 10.6 15.8 9.7 25.2V673c2.2 12.3-1.7 24.8-10.3 33.7L128 805v12.7h228.6v-12.9l-80.6-98a39.99 39.99 0 0 1-11.1-33.7V378.7l200.7 439.2h23.3l172.6-439.2v349.9c0 9.2 0 11.1-6 17.2l-62.1 60.3V819h301.2v-12.9l-59.9-58.9c-5.2-4-7.9-10.7-6.8-17.2V297a18.1 18.1 0 0 1 6.8-17.2z'));
- exports.MediumWorkmarkOutline = getIcon('medium-workmark', outline, getNode(normalViewBox, 'M517.2 590.55c0 3.55 0 4.36 2.4 6.55l13.43 13.25v.57h-59.57v-25.47a41.44 41.44 0 0 1-39.5 27.65c-30.61 0-52.84-24.25-52.84-68.87 0-41.8 23.99-69.69 57.65-69.69a35.15 35.15 0 0 1 34.61 21.67v-56.19a6.99 6.99 0 0 0-2.71-6.79l-12.8-12.45v-.56l59.33-7.04v177.37zm-43.74-8.09v-83.83a22.2 22.2 0 0 0-17.74-8.4c-14.48 0-28.47 13.25-28.47 52.62 0 36.86 12.07 49.88 27.1 49.88a23.91 23.91 0 0 0 19.11-10.27zm83.23 28.46V497.74a7.65 7.65 0 0 0-2.4-6.79l-13.19-13.74v-.57h59.56v114.8c0 3.55 0 4.36 2.4 6.54l13.12 12.45v.57l-59.49-.08zm-2.16-175.67c0-13.4 10.74-24.25 23.99-24.25 13.25 0 23.98 10.86 23.98 24.25 0 13.4-10.73 24.25-23.98 24.25s-23.99-10.85-23.99-24.25zm206.83 155.06c0 3.55 0 4.6 2.4 6.79l13.43 13.25v.57h-59.88V581.9a43.4 43.4 0 0 1-41.01 31.2c-26.55 0-40.78-19.56-40.78-56.59 0-17.86 0-37.43.56-59.41a6.91 6.91 0 0 0-2.4-6.55L620.5 477.2v-.57h59.09v73.81c0 24.25 3.51 40.42 18.54 40.42a23.96 23.96 0 0 0 19.35-12.2v-80.85a7.65 7.65 0 0 0-2.4-6.79l-13.27-13.82v-.57h59.56V590.3zm202.76 20.6c0-4.36.8-59.97.8-72.75 0-24.25-3.76-40.98-20.63-40.98a26.7 26.7 0 0 0-21.19 11.64 99.68 99.68 0 0 1 2.4 23.04c0 16.81-.56 38.23-.8 59.66a6.91 6.91 0 0 0 2.4 6.55l13.43 12.45v.56h-60.12c0-4.04.8-59.98.8-72.76 0-24.65-3.76-40.98-20.39-40.98-8.2.3-15.68 4.8-19.83 11.96v82.46c0 3.56 0 4.37 2.4 6.55l13.11 12.45v.56h-59.48V498.15a7.65 7.65 0 0 0-2.4-6.8l-13.19-14.14v-.57H841v28.78c5.53-19 23.13-31.76 42.7-30.96 19.82 0 33.26 11.16 38.93 32.34a46.41 46.41 0 0 1 44.77-32.34c26.55 0 41.58 19.8 41.58 57.23 0 17.87-.56 38.24-.8 59.66a6.5 6.5 0 0 0 2.72 6.55l13.11 12.45v.57h-59.88zM215.87 593.3l17.66 17.05v.57h-89.62v-.57l17.99-17.05a6.91 6.91 0 0 0 2.4-6.55V477.69c0-4.6 0-10.83.8-16.16L104.66 613.1h-.72l-62.6-139.45c-1.37-3.47-1.77-3.72-2.65-6.06v91.43a32.08 32.08 0 0 0 2.96 17.87l25.19 33.46v.57H0v-.57l25.18-33.55a32.16 32.16 0 0 0 2.96-17.78V457.97A19.71 19.71 0 0 0 24 444.15L6.16 420.78v-.56h63.96l53.56 118.1 47.17-118.1h62.6v.56l-17.58 19.8a6.99 6.99 0 0 0-2.72 6.8v139.37a6.5 6.5 0 0 0 2.72 6.55zm70.11-54.65v.56c0 34.6 17.67 48.5 38.38 48.5a43.5 43.5 0 0 0 40.77-24.97h.56c-7.2 34.2-28.14 50.36-59.48 50.36-33.82 0-65.72-20.61-65.72-68.39 0-50.2 31.98-70.25 67.32-70.25 28.46 0 58.76 13.58 58.76 57.24v6.95h-80.59zm0-6.95h39.42v-7.04c0-35.57-7.28-45.03-18.23-45.03-13.27 0-21.35 14.15-21.35 52.07h.16z'));
- exports.MenuUnfoldOutline = getIcon('menu-unfold', outline, getNode(newViewBox, 'M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z'));
- exports.MenuFoldOutline = getIcon('menu-fold', outline, getNode(newViewBox, 'M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 0 0 0 13.8z'));
- exports.MenuOutline = getIcon('menu', outline, getNode(newViewBox, 'M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z'));
- exports.MinusOutline = getIcon('minus', outline, getNode(newViewBox, 'M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
- exports.MonitorOutline = getIcon('monitor', outline, getNode(newViewBox, 'M692.8 412.7l.2-.2-34.6-44.3a7.97 7.97 0 0 0-11.2-1.4l-50.4 39.3-70.5-90.1a7.97 7.97 0 0 0-11.2-1.4l-37.9 29.7a7.97 7.97 0 0 0-1.4 11.2l70.5 90.2-.2.1 34.6 44.3c2.7 3.5 7.7 4.1 11.2 1.4l50.4-39.3 64.1 82c2.7 3.5 7.7 4.1 11.2 1.4l37.9-29.6c3.5-2.7 4.1-7.7 1.4-11.2l-64.1-82.1zM608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 0 0 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z'));
- exports.MoreOutline = getIcon('more', outline, getNode(newViewBox, 'M456 231a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 280a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 280a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
- exports.OrderedListOutline = getIcon('ordered-list', outline, getNode(newViewBox, 'M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 0 0-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 0 0 2.1-5.4V432c0-2.2-1.8-4-4-4z'));
- exports.NumberOutline = getIcon('number', outline, getNode(newViewBox, 'M872 394c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H400V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v236H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h228v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h164c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V394h164zM628 630H400V394h228v236z'));
- exports.PauseOutline = getIcon('pause', outline, getNode(newViewBox, 'M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z'));
- exports.PercentageOutline = getIcon('percentage', outline, getNode(newViewBox, 'M855.7 210.8l-42.4-42.4a8.03 8.03 0 0 0-11.3 0L168.3 801.9a8.03 8.03 0 0 0 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z'));
- exports.PaperClipOutline = getIcon('paper-clip', outline, getNode(newViewBox, 'M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0 0 12.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0 0 12.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 0 0 174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z'));
- exports.PicCenterOutline = getIcon('pic-center', outline, getNode(newViewBox, 'M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM848 660c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H176c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h672zM232 436h560v152H232V436z'));
- exports.PicLeftOutline = getIcon('pic-left', outline, getNode(newViewBox, 'M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM608 660c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM152 436h400v152H152V436zm552 210c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H712c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H712c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
- exports.PlusOutline = getIcon('plus', outline, getNode(newViewBox, 'M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z', 'M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z'));
- exports.PicRightOutline = getIcon('pic-right', outline, getNode(newViewBox, 'M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-24 500c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H416c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM472 436h400v152H472V436zM80 646c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
- exports.PoundOutline = getIcon('pound', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm138-209.8H469.8v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.9-5.3-41H607c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8H495c-7.2-22.6-13.4-45.7-13.4-70.5 0-43.5 34-70.2 87.3-70.2 21.5 0 42.5 4.1 60.4 10.5 5.2 1.9 10.6-2 10.6-7.6v-39.5c0-3.3-2.1-6.3-5.2-7.5-18.8-7.2-43.8-12.7-70.3-12.7-92.9 0-151.5 44.5-151.5 120.3 0 26.3 6.9 52 14.6 77.1H374c-4.4 0-8 3.6-8 8v30c0 4.4 3.6 8 8 8h67.1c3.4 14.7 5.9 29.4 5.9 44.2 0 45.2-28.8 83.3-72.8 94.2-3.6.9-6.1 4.1-6.1 7.8V722c0 4.4 3.6 8 8 8H650c4.4 0 8-3.6 8-8v-39.8c0-4.4-3.6-8-8-8z'));
- exports.PoweroffOutline = getIcon('poweroff', outline, getNode(newViewBox, 'M705.6 124.9a8 8 0 0 0-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0 1 62.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0 1 27.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 0 1-76.3 113.3 353.06 353.06 0 0 1-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 0 1-113.2-76.4A355.92 355.92 0 0 1 184 650.4a355 355 0 0 1-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z'));
- exports.PullRequestOutline = getIcon('pull-request', outline, getNode(newViewBox, 'M788 705.9V192c0-8.8-7.2-16-16-16H602v-68.8c0-6-7-9.4-11.7-5.7L462.7 202.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V240h114v465.9c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c.1-49.2-31.7-91-75.9-106.1zM752 860a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zM384 212c0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1V318.1c44.2-15.1 76-56.9 76-106.1zm-160 0a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm96 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0z'));
- exports.QqOutline = getIcon('qq', outline, getNode(newViewBox, 'M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z'));
- exports.QuestionOutline = getIcon('question', outline, getNode(newViewBox, 'M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2-27.2 31.7-65.6 54.4-108.1 64-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 0 0-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9 58.4-13.2 111.4-44.7 149.3-88.7 19.1-22.3 34-47.1 44.3-74 10.7-27.9 16.1-57.2 16.1-87 0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z'));
- exports.RadarChartOutline = getIcon('radar-chart', outline, getNode(newViewBox, 'M926.8 397.1l-396-288a31.81 31.81 0 0 0-37.6 0l-396 288a31.99 31.99 0 0 0-11.6 35.8l151.3 466a32 32 0 0 0 30.4 22.1h489.5c13.9 0 26.1-8.9 30.4-22.1l151.3-466c4.2-13.2-.5-27.6-11.7-35.8zM838.6 417l-98.5 32-200-144.7V199.9L838.6 417zM466 567.2l-89.1 122.3-55.2-169.2L466 567.2zm-116.3-96.8L484 373.3v140.8l-134.3-43.7zM512 599.2l93.9 128.9H418.1L512 599.2zm28.1-225.9l134.2 97.1L540.1 514V373.3zM558 567.2l144.3-46.9-55.2 169.2L558 567.2zm-74-367.3v104.4L283.9 449l-98.5-32L484 199.9zM169.3 470.8l86.5 28.1 80.4 246.4-53.8 73.9-113.1-348.4zM327.1 853l50.3-69h269.3l50.3 69H327.1zm414.5-33.8l-53.8-73.9 80.4-246.4 86.5-28.1-113.1 348.4z'));
- exports.QrcodeOutline = getIcon('qrcode', outline, getNode(newViewBox, 'M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
- exports.RadiusBottomleftOutline = getIcon('radius-bottomleft', outline, getNode(newViewBox, 'M712 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm2-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM136 374h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-174h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm752 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-230 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 624H358c-87.3 0-158-70.7-158-158V484c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v182c0 127 103 230 230 230h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.RadiusBottomrightOutline = getIcon('radius-bottomright', outline, getNode(newViewBox, 'M368 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-58-624h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm578 102h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm292 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm174 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 276h-56c-4.4 0-8 3.6-8 8v182c0 87.3-70.7 158-158 158H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c127 0 230-103 230-230V484c0-4.4-3.6-8-8-8z'));
- exports.RadiusUpleftOutline = getIcon('radius-upleft', outline, getNode(newViewBox, 'M656 200h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm58 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 650h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm696-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174-696H358c-127 0-230 103-230 230v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-87.3 70.7-158 158-158h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.RadiusUprightOutline = getIcon('radius-upright', outline, getNode(newViewBox, 'M368 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-2 696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm522-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-48-696H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c87.3 0 158 70.7 158 158v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-127-103-230-230-230z'));
- exports.RadiusSettingOutline = getIcon('radius-setting', outline, getNode(newViewBox, 'M396 140h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-44 684h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm524-204h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 344h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm320 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm160 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm140-284c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V370c0-127-103-230-230-230H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h170c87.3 0 158 70.7 158 158v170zM236 96H92c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V104c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2zM920 780H776c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V788c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2z'));
- exports.RedditOutline = getIcon('reddit', outline, getNode(newViewBox, 'M288 568a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm338.7 119.7c-23.1 18.2-68.9 37.8-114.7 37.8s-91.6-19.6-114.7-37.8c-14.4-11.3-35.3-8.9-46.7 5.5s-8.9 35.3 5.5 46.7C396.3 771.6 457.5 792 512 792s115.7-20.4 155.9-52.1a33.25 33.25 0 1 0-41.2-52.2zM960 456c0-61.9-50.1-112-112-112-42.1 0-78.7 23.2-97.9 57.6-57.6-31.5-127.7-51.8-204.1-56.5L612.9 195l127.9 36.9c11.5 32.6 42.6 56.1 79.2 56.1 46.4 0 84-37.6 84-84s-37.6-84-84-84c-32 0-59.8 17.9-74 44.2L603.5 123a33.2 33.2 0 0 0-39.6 18.4l-90.8 203.9c-74.5 5.2-142.9 25.4-199.2 56.2A111.94 111.94 0 0 0 176 344c-61.9 0-112 50.1-112 112 0 45.8 27.5 85.1 66.8 102.5-7.1 21-10.8 43-10.8 65.5 0 154.6 175.5 280 392 280s392-125.4 392-280c0-22.6-3.8-44.5-10.8-65.5C932.5 541.1 960 501.8 960 456zM820 172.5a31.5 31.5 0 1 1 0 63 31.5 31.5 0 0 1 0-63zM120 456c0-30.9 25.1-56 56-56a56 56 0 0 1 50.6 32.1c-29.3 22.2-53.5 47.8-71.5 75.9a56.23 56.23 0 0 1-35.1-52zm392 381.5c-179.8 0-325.5-95.6-325.5-213.5S332.2 410.5 512 410.5 837.5 506.1 837.5 624 691.8 837.5 512 837.5zM868.8 508c-17.9-28.1-42.2-53.7-71.5-75.9 9-18.9 28.3-32.1 50.6-32.1 30.9 0 56 25.1 56 56 .1 23.5-14.5 43.7-35.1 52zM624 568a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
- exports.RedoOutline = getIcon('redo', outline, getNode(newViewBox, 'M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 0 0-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z'));
- exports.ReloadOutline = getIcon('reload', outline, getNode(newViewBox, 'M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 0 1 655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 0 1 279 755.2a342.16 342.16 0 0 1-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 0 1 109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z'));
- exports.RetweetOutline = getIcon('retweet', outline, getNode(normalViewBox, 'M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0 0 11.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 0 0-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 0 0-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z'));
- exports.RightOutline = getIcon('right', outline, getNode(newViewBox, 'M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z'));
- exports.RiseOutline = getIcon('rise', outline, getNode(newViewBox, 'M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 0 0 0 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0 0 13.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z'));
- exports.RollbackOutline = getIcon('rollback', outline, getNode(newViewBox, 'M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 0 0 0 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z'));
- exports.SafetyOutline = getIcon('safety', outline, getNode(normalViewBox, 'M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z', 'M378.4 475.1a35.91 35.91 0 0 0-50.9 0 35.91 35.91 0 0 0 0 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0 0 48.1 0L730.6 434a33.98 33.98 0 0 0 0-48.1l-2.8-2.8a33.98 33.98 0 0 0-48.1 0L483 579.7 378.4 475.1z'));
- exports.RobotOutline = getIcon('robot', outline, getNode(newViewBox, 'M300 328a60 60 0 1 0 120 0 60 60 0 1 0-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 1 0 120 0 60 60 0 1 0-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
- exports.SearchOutline = getIcon('search', outline, getNode(newViewBox, 'M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z'));
- exports.ScanOutline = getIcon('scan', outline, getNode(newViewBox, 'M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.ScissorOutline = getIcon('scissor', outline, getNode(newViewBox, 'M567.1 512l318.5-319.3c5-5 1.5-13.7-5.6-13.7h-90.5c-2.1 0-4.2.8-5.6 2.3l-273.3 274-90.2-90.5c12.5-22.1 19.7-47.6 19.7-74.8 0-83.9-68.1-152-152-152s-152 68.1-152 152 68.1 152 152 152c27.7 0 53.6-7.4 75.9-20.3l90 90.3-90.1 90.3A151.04 151.04 0 0 0 288 582c-83.9 0-152 68.1-152 152s68.1 152 152 152 152-68.1 152-152c0-27.2-7.2-52.7-19.7-74.8l90.2-90.5 273.3 274c1.5 1.5 3.5 2.3 5.6 2.3H880c7.1 0 10.7-8.6 5.6-13.7L567.1 512zM288 370c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm0 444c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z'));
- exports.SelectOutline = getIcon('select', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 0 0-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z'));
- exports.ShakeOutline = getIcon('shake', outline, getNode(newViewBox, 'M324 666a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm616.7-309.6L667.6 83.2C655.2 70.9 638.7 64 621.1 64s-34.1 6.8-46.5 19.2L83.3 574.5a65.85 65.85 0 0 0 0 93.1l273.2 273.2c12.3 12.3 28.9 19.2 46.5 19.2s34.1-6.8 46.5-19.2l491.3-491.3c25.6-25.7 25.6-67.5-.1-93.1zM403 880.1L143.9 621l477.2-477.2 259 259.2L403 880.1zM152.8 373.7a7.9 7.9 0 0 0 11.2 0L373.7 164a7.9 7.9 0 0 0 0-11.2l-38.4-38.4a7.9 7.9 0 0 0-11.2 0L114.3 323.9a7.9 7.9 0 0 0 0 11.2l38.5 38.6zm718.6 276.6a7.9 7.9 0 0 0-11.2 0L650.3 860.1a7.9 7.9 0 0 0 0 11.2l38.4 38.4a7.9 7.9 0 0 0 11.2 0L909.7 700a7.9 7.9 0 0 0 0-11.2l-38.3-38.5z'));
- exports.ShareAltOutline = getIcon('share-alt', outline, getNode(newViewBox, 'M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 0 0 0-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z'));
- exports.ShoppingCartOutline = getIcon('shopping-cart', outline, getNode(normalViewBox, 'M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 0 0-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 1 0 0 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 0 0-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 0 0-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 0 0-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 0 0-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 0 1-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 0 1-31.6 31.6z'));
- exports.ShrinkOutline = getIcon('shrink', outline, getNode(newViewBox, 'M881.7 187.4l-45.1-45.1a8.03 8.03 0 0 0-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 0 0-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 0 0 0 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0 0 13.5-4.7L447.9 585a7.9 7.9 0 0 0-8.9-8.9z'));
- exports.SlackOutline = getIcon('slack', outline, getNode(newViewBox, 'M409.4 128c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5h76.7v-76.8c0-42.3-34.3-76.7-76.7-76.8zm0 204.8H204.7c-42.4 0-76.7 34.4-76.7 76.8s34.4 76.8 76.7 76.8h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.8-76.6-76.8zM614 486.4c42.4 0 76.8-34.4 76.7-76.8V204.8c0-42.4-34.3-76.8-76.7-76.8-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.5 34.3 76.8 76.7 76.8zm281.4-76.8c0-42.4-34.4-76.8-76.7-76.8S742 367.2 742 409.6v76.8h76.7c42.3 0 76.7-34.4 76.7-76.8zm-76.8 128H614c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM614 742.4h-76.7v76.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM409.4 537.6c-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8V614.4c0-20.3-8.1-39.9-22.4-54.3a76.92 76.92 0 0 0-54.3-22.5zM128 614.4c0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5c42.4 0 76.8-34.4 76.7-76.8v-76.8h-76.7c-42.3 0-76.7 34.4-76.7 76.8z'));
- exports.SmallDashOutline = getIcon('small-dash', outline, getNode(newViewBox, 'M112 476h72v72h-72zm182 0h72v72h-72zm364 0h72v72h-72zm182 0h72v72h-72zm-364 0h72v72h-72z'));
- exports.SolutionOutline = getIcon('solution', outline, getNode(newViewBox, 'M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z'));
- exports.SketchOutline = getIcon('sketch', outline, getNode(newViewBox, 'M925.6 405.1l-203-253.7a6.5 6.5 0 0 0-5-2.4H306.4c-1.9 0-3.8.9-5 2.4l-203 253.7a6.5 6.5 0 0 0 .2 8.3l408.6 459.5c1.2 1.4 3 2.1 4.8 2.1 1.8 0 3.5-.8 4.8-2.1l408.6-459.5a6.5 6.5 0 0 0 .2-8.3zM645.2 206.4l34.4 133.9-132.5-133.9h98.1zm8.2 178.5H370.6L512 242l141.4 142.9zM378.8 206.4h98.1L344.3 340.3l34.5-133.9zm-53.4 7l-44.1 171.5h-93.1l137.2-171.5zM194.6 434.9H289l125.8 247.7-220.2-247.7zM512 763.4L345.1 434.9h333.7L512 763.4zm97.1-80.8L735 434.9h94.4L609.1 682.6zm133.6-297.7l-44.1-171.5 137.2 171.5h-93.1z'));
- exports.SortDescendingOutline = getIcon('sort-descending', outline, getNode(newViewBox, 'M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM310.3 167.1a8 8 0 0 0-12.6 0L185.7 309c-4.2 5.3-.4 13 6.3 13h76v530c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V322h76c6.7 0 10.5-7.8 6.3-13l-112-141.9z'));
- exports.SortAscendingOutline = getIcon('sort-ascending', outline, getNode(newViewBox, 'M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0 0 12.6 0l112-141.9c4.1-5.2.4-13-6.3-13z'));
- exports.StockOutline = getIcon('stock', outline, getNode(newViewBox, 'M904 747H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM165.7 621.8l39.7 39.5c3.1 3.1 8.2 3.1 11.3 0l234.7-233.9 97.6 97.3a32.11 32.11 0 0 0 45.2 0l264.2-263.2c3.1-3.1 3.1-8.2 0-11.3l-39.7-39.6a8.03 8.03 0 0 0-11.3 0l-235.7 235-97.7-97.3a32.11 32.11 0 0 0-45.2 0L165.7 610.5a7.94 7.94 0 0 0 0 11.3z'));
- exports.SwapLeftOutline = getIcon('swap-left', outline, getNode(normalViewBox, 'M872 572H266.8l144.3-183c4.1-5.2.4-13-6.3-13H340c-9.8 0-19.1 4.5-25.1 12.2l-164 208c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
- exports.SwapRightOutline = getIcon('swap-right', outline, getNode(normalViewBox, 'M873.1 596.2l-164-208A32 32 0 0 0 684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z'));
- exports.StrikethroughOutline = getIcon('strikethrough', outline, getNode(newViewBox, 'M952 474H569.9c-10-2-20.5-4-31.6-6-15.9-2.9-22.2-4.1-30.8-5.8-51.3-10-82.2-20-106.8-34.2-35.1-20.5-52.2-48.3-52.2-85.1 0-37 15.2-67.7 44-89 28.4-21 68.8-32.1 116.8-32.1 54.8 0 97.1 14.4 125.8 42.8 14.6 14.4 25.3 32.1 31.8 52.6 1.3 4.1 2.8 10 4.3 17.8.9 4.8 5.2 8.2 9.9 8.2h72.8c5.6 0 10.1-4.6 10.1-10.1v-1c-.7-6.8-1.3-12.1-2-16-7.3-43.5-28-81.7-59.7-110.3-44.4-40.5-109.7-61.8-188.7-61.8-72.3 0-137.4 18.1-183.3 50.9-25.6 18.4-45.4 41.2-58.6 67.7-13.5 27.1-20.3 58.4-20.3 92.9 0 29.5 5.7 54.5 17.3 76.5 8.3 15.7 19.6 29.5 34.1 42H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h433.2c2.1.4 3.9.8 5.9 1.2 30.9 6.2 49.5 10.4 66.6 15.2 23 6.5 40.6 13.3 55.2 21.5 35.8 20.2 53.3 49.2 53.3 89 0 35.3-15.5 66.8-43.6 88.8-30.5 23.9-75.6 36.4-130.5 36.4-43.7 0-80.7-8.5-110.2-25-29.1-16.3-49.1-39.8-59.7-69.5-.8-2.2-1.7-5.2-2.7-9-1.2-4.4-5.3-7.5-9.7-7.5h-79.7c-5.6 0-10.1 4.6-10.1 10.1v1c.2 2.3.4 4.2.6 5.7 6.5 48.8 30.3 88.8 70.7 118.8 47.1 34.8 113.4 53.2 191.8 53.2 84.2 0 154.8-19.8 204.2-57.3 25-18.9 44.2-42.2 57.1-69 13-27.1 19.7-57.9 19.7-91.5 0-31.8-5.8-58.4-17.8-81.4-5.8-11.2-13.1-21.5-21.8-30.8H952c4.4 0 8-3.6 8-8v-60a8 8 0 0 0-8-7.9z'));
- exports.SwapOutline = getIcon('swap', outline, getNode(newViewBox, 'M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
- exports.SyncOutline = getIcon('sync', outline, getNode(newViewBox, 'M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z'));
- exports.TableOutline = getIcon('table', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z'));
- exports.TeamOutline = getIcon('team', outline, getNode(newViewBox, 'M824.2 699.9a301.55 301.55 0 0 0-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 0 1 612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 0 0 8-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 0 1 612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z'));
- exports.TaobaoOutline = getIcon('taobao', outline, getNode(newViewBox, 'M168.5 273.7a68.7 68.7 0 1 0 137.4 0 68.7 68.7 0 1 0-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z'));
- exports.ToTopOutline = getIcon('to-top', outline, getNode(newViewBox, 'M885 780H165c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM400 325.7h73.9V664c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V325.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 171a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13z'));
- exports.TrademarkOutline = getIcon('trademark', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm87.5-334.7c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.5-131.1-144.2-131.1H378c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.5c4.4 0 8-3.6 8-8V561.2h88.7l74.6 159.2c1.3 2.8 4.1 4.6 7.2 4.6h62a7.9 7.9 0 0 0 7.1-11.5l-80.6-164.2zM522 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.5 0 46.9-29.8 72.5-82.8 72.5z'));
- exports.TransactionOutline = getIcon('transaction', outline, getNode(newViewBox, 'M668.6 320c0-4.4-3.6-8-8-8h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.5-1.1.9-2.4.9-3.7zM157.9 504.2a352.7 352.7 0 0 1 103.5-242.4c32.5-32.5 70.3-58.1 112.4-75.9 43.6-18.4 89.9-27.8 137.6-27.8 47.8 0 94.1 9.3 137.6 27.8 42.1 17.8 79.9 43.4 112.4 75.9 10 10 19.3 20.5 27.9 31.4l-50 39.1a8 8 0 0 0 3 14.1l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3l-47.8 37.4C770.7 146.3 648.6 82 511.5 82 277 82 86.3 270.1 82 503.8a8 8 0 0 0 8 8.2h60c4.3 0 7.8-3.5 7.9-7.8zM934 512h-60c-4.3 0-7.9 3.5-8 7.8a352.7 352.7 0 0 1-103.5 242.4 352.57 352.57 0 0 1-112.4 75.9c-43.6 18.4-89.9 27.8-137.6 27.8s-94.1-9.3-137.6-27.8a352.57 352.57 0 0 1-112.4-75.9c-10-10-19.3-20.5-27.9-31.4l49.9-39.1a8 8 0 0 0-3-14.1l-156.8-38.3c-5-1.2-9.9 2.6-9.9 7.7l-.8 161.7c0 6.7 7.7 10.5 12.9 6.3l47.8-37.4C253.3 877.7 375.4 942 512.5 942 747 942 937.7 753.9 942 520.2a8 8 0 0 0-8-8.2z'));
- exports.TwitterOutline = getIcon('twitter', outline, getNode(newViewBox, 'M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0 0 75-94 336.64 336.64 0 0 1-108.2 41.2A170.1 170.1 0 0 0 672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 0 0-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 0 1-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 0 1-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z'));
- exports.UnderlineOutline = getIcon('underline', outline, getNode(newViewBox, 'M824 804H200c-4.4 0-8 3.4-8 7.6v60.8c0 4.2 3.6 7.6 8 7.6h624c4.4 0 8-3.4 8-7.6v-60.8c0-4.2-3.6-7.6-8-7.6zm-312-76c69.4 0 134.6-27.1 183.8-76.2C745 602.7 772 537.4 772 468V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 97-79 176-176 176s-176-79-176-176V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 69.4 27.1 134.6 76.2 183.8C377.3 701 442.6 728 512 728z'));
- exports.UndoOutline = getIcon('undo', outline, getNode(newViewBox, 'M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 0 0-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 0 0-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z'));
- exports.UnorderedListOutline = getIcon('unordered-list', outline, getNode(newViewBox, 'M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
- exports.UpOutline = getIcon('up', outline, getNode(newViewBox, 'M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 0 0 140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z'));
- exports.UploadOutline = getIcon('upload', outline, getNode(newViewBox, 'M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z'));
- exports.UserAddOutline = getIcon('user-add', outline, getNode(newViewBox, 'M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 0 0-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 0 0-80.4 119.5A373.6 373.6 0 0 0 137 888.8a8 8 0 0 0 8 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 0 0 8.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 0 1 340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 0 1 683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.UsergroupAddOutline = getIcon('usergroup-add', outline, getNode(newViewBox, 'M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z'));
- exports.UserOutline = getIcon('user', outline, getNode(newViewBox, 'M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z'));
- exports.UserDeleteOutline = getIcon('user-delete', outline, getNode(newViewBox, 'M678.3 655.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 0 0-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 518 759.6 444.7 759.6 362c0-137-110.8-248-247.5-248S264.7 225 264.7 362c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 0 0-80.4 119.5A373.6 373.6 0 0 0 137 901.8a8 8 0 0 0 8 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 641.2 432.2 610 512.2 610c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 0 0 8.1.3zM512.2 534c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 0 1 340.5 362c0-45.9 17.9-89.1 50.3-121.6S466.3 190 512.2 190s88.9 17.9 121.4 50.4A171.2 171.2 0 0 1 683.9 362c0 45.9-17.9 89.1-50.3 121.6C601.1 516.1 558 534 512.2 534zM880 772H640c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
- exports.UsergroupDeleteOutline = getIcon('usergroup-delete', outline, getNode(newViewBox, 'M888 784H664c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7zM824 484c0-109.4-87.9-198.3-196.9-200C516.3 282.3 424 373.2 424 484c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C357 754.6 326 826.8 324 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 707.7 563 684 624 684c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 598.7 658.2 612 624 612s-66.3-13.3-90.5-37.5a127.26 127.26 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z'));
- exports.VerticalAlignBottomOutline = getIcon('vertical-align-bottom', outline, getNode(newViewBox, 'M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z'));
- exports.VerticalAlignMiddleOutline = getIcon('vertical-align-middle', outline, getNode(newViewBox, 'M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 0 0-11.3 0L405.6 752.3a7.23 7.23 0 0 0 5.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z'));
- exports.VerticalAlignTopOutline = getIcon('vertical-align-top', outline, getNode(newViewBox, 'M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z'));
- exports.VerticalRightOutline = getIcon('vertical-right', outline, getNode(newViewBox, 'M326 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm444 72.4V164c0-6.8-7.9-10.5-13.1-6.1L335 512l421.9 354.1c5.2 4.4 13.1.7 13.1-6.1v-72.4c0-9.4-4.2-18.4-11.4-24.5L459.4 512l299.2-251.1c7.2-6.1 11.4-15.1 11.4-24.5z'));
- exports.VerticalLeftOutline = getIcon('vertical-left', outline, getNode(newViewBox, 'M762 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm-508 0v72.4c0 9.5 4.2 18.4 11.4 24.5L564.6 512 265.4 763.1c-7.2 6.1-11.4 15-11.4 24.5V860c0 6.8 7.9 10.5 13.1 6.1L689 512 267.1 157.9A7.95 7.95 0 0 0 254 164z'));
- exports.WifiOutline = getIcon('wifi', outline, getNode(newViewBox, 'M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 0 0-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 0 0-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 0 0-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 1 0 128 0 64 64 0 1 0-128 0z'));
- exports.ZhihuOutline = getIcon('zhihu', outline, getNode(newViewBox, 'M564.7 230.1V803h60l25.2 71.4L756.3 803h131.5V230.1H564.7zm247.7 497h-59.9l-75.1 50.4-17.8-50.4h-18V308.3h170.7v418.8zM526.1 486.9H393.3c2.1-44.9 4.3-104.3 6.6-172.9h130.9l-.1-8.1c0-.6-.2-14.7-2.3-29.1-2.1-15-6.6-34.9-21-34.9H287.8c4.4-20.6 15.7-69.7 29.4-93.8l6.4-11.2-12.9-.7c-.8 0-19.6-.9-41.4 10.6-35.7 19-51.7 56.4-58.7 84.4-18.4 73.1-44.6 123.9-55.7 145.6-3.3 6.4-5.3 10.2-6.2 12.8-1.8 4.9-.8 9.8 2.8 13 10.5 9.5 38.2-2.9 38.5-3 .6-.3 1.3-.6 2.2-1 13.9-6.3 55.1-25 69.8-84.5h56.7c.7 32.2 3.1 138.4 2.9 172.9h-141l-2.1 1.5c-23.1 16.9-30.5 63.2-30.8 65.2l-1.4 9.2h167c-12.3 78.3-26.5 113.4-34 127.4-3.7 7-7.3 14-10.7 20.8-21.3 42.2-43.4 85.8-126.3 153.6-3.6 2.8-7 8-4.8 13.7 2.4 6.3 9.3 9.1 24.6 9.1 5.4 0 11.8-.3 19.4-1 49.9-4.4 100.8-18 135.1-87.6 17-35.1 31.7-71.7 43.9-108.9L497 850l5-12c.8-1.9 19-46.3 5.1-95.9l-.5-1.8-108.1-123-22 16.6c6.4-26.1 10.6-49.9 12.5-71.1h158.7v-8c0-40.1-18.5-63.9-19.2-64.9l-2.4-3z'));
- exports.WeiboOutline = getIcon('weibo', outline, getNode(newViewBox, 'M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109a111.39 111.39 0 0 0-106-34.3 28.45 28.45 0 0 0-21.9 33.8 28.39 28.39 0 0 0 33.8 21.8c18.4-3.9 38.3 1.8 51.9 16.7a54.2 54.2 0 0 1 11.3 53.3 28.45 28.45 0 0 0 18.2 36zm99.8-206c-56.7-62.9-140.4-86.9-217.7-70.5a32.98 32.98 0 0 0-25.4 39.3 33.12 33.12 0 0 0 39.3 25.5c55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z'));
- exports.WomanOutline = getIcon('woman', outline, getNode(newViewBox, 'M712.8 548.8c53.6-53.6 83.2-125 83.2-200.8 0-75.9-29.5-147.2-83.2-200.8C659.2 93.6 587.8 64 512 64s-147.2 29.5-200.8 83.2C257.6 200.9 228 272.1 228 348c0 63.8 20.9 124.4 59.4 173.9 7.3 9.4 15.2 18.3 23.7 26.9 8.5 8.5 17.5 16.4 26.8 23.7 39.6 30.8 86.3 50.4 136.1 57V736H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h114v140c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V812h114c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H550V629.5c61.5-8.2 118.2-36.1 162.8-80.7zM512 556c-55.6 0-107.7-21.6-147.1-60.9C325.6 455.8 304 403.6 304 348s21.6-107.7 60.9-147.1C404.2 161.5 456.4 140 512 140s107.7 21.6 147.1 60.9C698.4 240.2 720 292.4 720 348s-21.6 107.7-60.9 147.1C619.7 534.4 567.6 556 512 556z'));
- exports.ZoomInOutline = getIcon('zoom-in', outline, getNode(newViewBox, 'M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z'));
- exports.AccountBookTwoTone = getIcon('account-book', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v584h656V256H712v48zm-65.6 121.8l-89.3 164.1h49.1c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4v33.7h65.4c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4V752c0 4.4-3.6 8-8 8h-41.3c-4.4 0-8-3.6-8-8v-53.8h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8h65.1v-33.7h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8H467l-89.3-164c-2.1-3.9-.7-8.8 3.2-10.9 1.1-.7 2.5-1 3.8-1h46a8 8 0 0 1 7.1 4.4l73.4 145.4h2.8l73.4-145.4c1.3-2.7 4.1-4.4 7.1-4.4h45c4.5 0 8 3.6 7.9 8 0 1.3-.4 2.6-1 3.8z'
- ], [
- primaryColor,
- 'M639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 0 0-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z'
- ], [
- primaryColor,
- 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584z'
- ]);
- });
- exports.ZoomOutOutline = getIcon('zoom-out', outline, getNode(newViewBox, 'M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z'));
- exports.AlertTwoTone = getIcon('alert', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M340 585c0-5.5 4.5-10 10-10h44c5.5 0 10 4.5 10 10v171h355V563c0-136.4-110.6-247-247-247S265 426.6 265 563v193h75V585z'
- ], [
- primaryColor,
- 'M216.9 310.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 0 0-11.3 0l-39.6 39.6a8.03 8.03 0 0 0 0 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-67.9 67.9a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8zm348 712H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zm-639-96c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563z'
- ]);
- });
- exports.ApiTwoTone = getIcon('api', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M148.2 674.6zm106.7-92.3c-25 25-38.7 58.1-38.7 93.4s13.8 68.5 38.7 93.4c25 25 58.1 38.7 93.4 38.7 35.3 0 68.5-13.8 93.4-38.7l59.4-59.4-186.8-186.8-59.4 59.4zm420.8-366.1c-35.3 0-68.5 13.8-93.4 38.7l-59.4 59.4 186.8 186.8 59.4-59.4c24.9-25 38.7-58.1 38.7-93.4s-13.8-68.5-38.7-93.4c-25-25-58.1-38.7-93.4-38.7z'
- ], [
- primaryColor,
- 'M578.9 546.7a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2a199.45 199.45 0 0 0-58.6 140.4c-.2 39.5 11.2 79.1 34.3 113.1l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7-24.9-24.9-38.7-58.1-38.7-93.4s13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4zm476-620.3l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7s68.4 13.7 93.4 38.7c24.9 24.9 38.7 58.1 38.7 93.4s-13.8 68.4-38.7 93.4z'
- ]);
- });
- exports.AppstoreTwoTone = getIcon('appstore', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm52-668H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z'
- ], [
- secondaryColor,
- 'M212 212h200v200H212zm400 0h200v200H612zM212 612h200v200H212zm400 0h200v200H612z'
- ]);
- });
- exports.BankTwoTone = getIcon('bank', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M240.9 393.9h542.2L512 196.7z'], [
- primaryColor,
- 'M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM381 836H264V462h117v374zm189 0H453V462h117v374zm190 0H642V462h118v374zM240.9 393.9L512 196.7l271.1 197.2H240.9z'
- ]);
- });
- exports.AudioTwoTone = getIcon('audio', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512 552c54.3 0 98-43.2 98-96V232c0-52.8-43.7-96-98-96s-98 43.2-98 96v224c0 52.8 43.7 96 98 96z'
- ], [
- primaryColor,
- 'M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z'
- ], [
- primaryColor,
- 'M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-98-392c0-52.8 43.7-96 98-96s98 43.2 98 96v224c0 52.8-43.7 96-98 96s-98-43.2-98-96V232z'
- ]);
- });
- exports.BellTwoTone = getIcon('bell', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512 220c-55.6 0-107.8 21.6-147.1 60.9S304 372.4 304 428v340h416V428c0-55.6-21.6-107.8-60.9-147.1S567.6 220 512 220zm280 208c0-141.1-104.3-257.8-240-277.2v.1c135.7 19.4 240 136 240 277.1zM472 150.9v-.1C336.3 170.2 232 286.9 232 428c0-141.1 104.3-257.7 240-277.1z'
- ], [
- primaryColor,
- 'M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zm208-120H304V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340z'
- ]);
- });
- exports.BookTwoTone = getIcon('book', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zM232 888V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0 0 22.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752H232z'
- ], [secondaryColor, 'M668 345.9V136h-96v211.4l49.5-35.4z'], [
- secondaryColor,
- 'M727.9 136v296.5c0 8.8-7.2 16-16 16-3.4 0-6.7-1.1-9.4-3.1L621.1 386l-83.8 59.9a15.9 15.9 0 0 1-22.3-3.7c-2-2.7-3-6-3-9.3V136H232v752h559.9V136h-64z'
- ]);
- });
- exports.BoxPlotTwoTone = getIcon('box-plot', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M296 368h88v288h-88zm152 0h280v288H448z'], [
- primaryColor,
- 'M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H232c-4.4 0-8 3.6-8 8v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h560c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zM384 656h-88V368h88v288zm344 0H448V368h280v288z'
- ]);
- });
- exports.BugTwoTone = getIcon('bug', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M308 412v268c0 36.78 9.68 71.96 27.8 102.9a205.39 205.39 0 0 0 73.3 73.3A202.68 202.68 0 0 0 512 884c36.78 0 71.96-9.68 102.9-27.8a205.39 205.39 0 0 0 73.3-73.3A202.68 202.68 0 0 0 716 680V412H308zm484 172v96c0 6.5-.22 12.95-.66 19.35C859.94 728.64 908 796.7 908 876a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-44.24-23.94-82.89-59.57-103.7a278.63 278.63 0 0 1-22.66 49.02 281.39 281.39 0 0 1-100.45 100.45C611.84 946.07 563.55 960 512 960s-99.84-13.93-141.32-38.23a281.39 281.39 0 0 1-100.45-100.45 278.63 278.63 0 0 1-22.66-49.02A119.95 119.95 0 0 0 188 876a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-79.3 48.07-147.36 116.66-176.65A284.12 284.12 0 0 1 232 680v-96H84a8 8 0 0 1-8-8v-56a8 8 0 0 1 8-8h148V412c-76.77 0-139-62.23-139-139a8 8 0 0 1 8-8h60a8 8 0 0 1 8 8 63 63 0 0 0 63 63h560a63 63 0 0 0 63-63 8 8 0 0 1 8-8h60a8 8 0 0 1 8 8c0 76.77-62.23 139-139 139v100h148a8 8 0 0 1 8 8v56a8 8 0 0 1-8 8H792zM368 272a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-40.04 8.78-76.75 25.9-108.07a184.57 184.57 0 0 1 74.03-74.03C427.25 72.78 463.96 64 504 64h16c40.04 0 76.75 8.78 108.07 25.9a184.57 184.57 0 0 1 74.03 74.03C719.22 195.25 728 231.96 728 272a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-28.33-5.94-53.15-17.08-73.53a112.56 112.56 0 0 0-45.39-45.4C573.15 141.95 548.33 136 520 136h-16c-28.33 0-53.15 5.94-73.53 17.08a112.56 112.56 0 0 0-45.4 45.39C373.95 218.85 368 243.67 368 272z'
- ], [
- secondaryColor,
- 'M308 412v268c0 36.78 9.68 71.96 27.8 102.9a205.39 205.39 0 0 0 73.3 73.3A202.68 202.68 0 0 0 512 884c36.78 0 71.96-9.68 102.9-27.8a205.39 205.39 0 0 0 73.3-73.3A202.68 202.68 0 0 0 716 680V412H308z'
- ]);
- });
- exports.BulbTwoTone = getIcon('bulb', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512 136c-141.4 0-256 114.6-256 256 0 92.5 49.4 176.3 128.1 221.8l35.9 20.8V752h184V634.6l35.9-20.8C718.6 568.3 768 484.5 768 392c0-141.4-114.6-256-256-256z'
- ], [
- primaryColor,
- 'M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z'
- ]);
- });
- exports.CalculatorTwoTone = getIcon('calculator', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm256.2-75h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 0 1-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zM576 335c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zm0 265c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zm0 104c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zM248 335c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48z'
- ], [
- primaryColor,
- 'M383.5 675l61.3-74.8c4.3-5.2.7-13.1-5.9-13.1h-50.8c-2.3 0-4.4 1-5.9 2.9l-34 41.6-34-41.6a7.69 7.69 0 0 0-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.4-1 5.9-2.9l35.5-43.5 35.5 43.5c1.4 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 6-13.2L383.5 675zM251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 369h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0-104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0-265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4z'
- ]);
- });
- exports.BuildTwoTone = getIcon('build', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M144 546h200v200H144zm268-268h200v200H412z'], [
- primaryColor,
- 'M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zM344 746H144V546h200v200zm268 0H412V546h200v200zm0-268H412V278h200v200zm268 0H680V278h200v200z'
- ]);
- });
- exports.CalendarTwoTone = getIcon('calendar', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z'
- ], [
- primaryColor,
- 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z'
- ]);
- });
- exports.CameraTwoTone = getIcon('camera', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M864 320H677.2l-17.1-47.8-22.9-64.2H386.7l-22.9 64.2-17.1 47.8H160c-4.4 0-8 3.6-8 8v456c0 4.4 3.6 8 8 8h704c4.4 0 8-3.6 8-8V328c0-4.4-3.6-8-8-8zM512 704c-88.4 0-160-71.6-160-160s71.6-160 160-160 160 71.6 160 160-71.6 160-160 160z'
- ], [
- primaryColor,
- 'M512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z'
- ], [
- primaryColor,
- 'M864 248H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456z'
- ]);
- });
- exports.CarTwoTone = getIcon('car', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M199.6 474L184 517v237h656V517l-15.6-43H199.6zM264 621c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm388 75c0 4.4-3.6 8-8 8H380c-4.4 0-8-3.6-8-8v-84c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v36h168v-36c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v84zm108-75c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'
- ], [primaryColor, 'M720 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'], [
- primaryColor,
- 'M959 413.4L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM840 754H184V517l15.6-43h624.8l15.6 43v237z'
- ], [
- primaryColor,
- 'M224 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm420 23h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8z'
- ]);
- });
- exports.CarryOutTwoTone = getIcon('carry-out', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584z'
- ], [
- secondaryColor,
- 'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v584h656V256H712v48zm-17.5 128.8L481.9 725.5a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.9-6.6 13-6.6H688c6.5 0 10.3 7.4 6.5 12.8z'
- ], [
- primaryColor,
- 'M688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z'
- ]);
- });
- exports.CheckCircleTwoTone = getIcon('check-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z'
- ], [
- primaryColor,
- 'M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z'
- ]);
- });
- exports.CheckSquareTwoTone = getIcon('check-square', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm130-367.8h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H688c6.5 0 10.3 7.4 6.5 12.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L307.5 484.9c-3.8-5.3 0-12.7 6.5-12.7z'
- ], [
- primaryColor,
- 'M432.2 657.7a31.8 31.8 0 0 0 51.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7h-46.9c-10.3 0-19.9 5-25.9 13.3L458 584.3l-71.2-98.8c-6-8.4-15.7-13.3-25.9-13.3H314c-6.5 0-10.3 7.4-6.5 12.7l124.7 172.8z'
- ]);
- });
- exports.ClockCircleTwoTone = getIcon('clock-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm176.5 509.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z'
- ], [
- primaryColor,
- 'M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.6-3.6 1.8-8.6-1.8-11.1z'
- ]);
- });
- exports.CloseCircleTwoTone = getIcon('close-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 0 1-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z'
- ], [
- primaryColor,
- 'M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z'
- ]);
- });
- exports.CloudTwoTone = getIcon('cloud', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M791.9 492l-37.8-10-13.8-36.5c-8.6-22.7-20.6-44.1-35.7-63.4a245.73 245.73 0 0 0-52.4-49.9c-41.1-28.9-89.5-44.2-140-44.2s-98.9 15.3-140 44.2a245.6 245.6 0 0 0-52.4 49.9 240.47 240.47 0 0 0-35.7 63.4l-13.9 36.6-37.9 9.9a125.7 125.7 0 0 0-66.1 43.7A123.1 123.1 0 0 0 140 612c0 33.1 12.9 64.3 36.3 87.7 23.4 23.4 54.5 36.3 87.6 36.3h496.2c33.1 0 64.2-12.9 87.6-36.3A123.3 123.3 0 0 0 884 612c0-56.2-37.8-105.5-92.1-120z'
- ], [
- primaryColor,
- 'M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 0 1-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 0 1 140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0 1 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z'
- ]);
- });
- exports.CloseSquareTwoTone = getIcon('close-square', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm163.9-473.9A7.95 7.95 0 0 1 354 353h58.9c4.7 0 9.2 2.1 12.3 5.7L512 462.2l86.8-103.5c3-3.6 7.5-5.7 12.3-5.7H670c6.8 0 10.5 7.9 6.1 13.1L553.8 512l122.3 145.9c4.4 5.2.7 13.1-6.1 13.1h-58.9c-4.7 0-9.2-2.1-12.3-5.7L512 561.8l-86.8 103.5c-3 3.6-7.5 5.7-12.3 5.7H354c-6.8 0-10.5-7.9-6.1-13.1L470.2 512 347.9 366.1z'
- ], [
- primaryColor,
- 'M354 671h58.9c4.8 0 9.3-2.1 12.3-5.7L512 561.8l86.8 103.5c3.1 3.6 7.6 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.3-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.8 0-9.3 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3.1-3.6-7.6-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 0 0 354 671z'
- ]);
- });
- exports.CodeTwoTone = getIcon('code', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm339.5-223h185c4.1 0 7.5 3.6 7.5 8v48c0 4.4-3.4 8-7.5 8h-185c-4.1 0-7.5-3.6-7.5-8v-48c0-4.4 3.4-8 7.5-8zM308 610.3c0-2.3 1.1-4.6 2.9-6.1L420.7 512l-109.8-92.2a7.63 7.63 0 0 1-2.9-6.1V351c0-6.8 7.9-10.5 13.1-6.1l192 160.9c3.9 3.2 3.9 9.1 0 12.3l-192 161c-5.2 4.4-13.1.7-13.1-6.1v-62.7z'
- ], [
- primaryColor,
- 'M321.1 679.1l192-161c3.9-3.2 3.9-9.1 0-12.3l-192-160.9A7.95 7.95 0 0 0 308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 0 0-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48z'
- ]);
- });
- exports.CompassTwoTone = getIcon('compass', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM327.6 701.7c-2 .9-4.4 0-5.3-2.1-.4-1-.4-2.2 0-3.2L421 470.9 553.1 603l-225.5 98.7zm375.1-375.1L604 552.1 471.9 420l225.5-98.7c2-.9 4.4 0 5.3 2.1.4 1 .4 2.1 0 3.2z'
- ], [
- primaryColor,
- 'M322.3 696.4c-.4 1-.4 2.2 0 3.2.9 2.1 3.3 3 5.3 2.1L553.1 603 421 470.9l-98.7 225.5zm375.1-375.1L471.9 420 604 552.1l98.7-225.5c.4-1.1.4-2.2 0-3.2-.9-2.1-3.3-3-5.3-2.1z'
- ], [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ]);
- });
- exports.ContactsTwoTone = getIcon('contacts', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M460.3 526a51.7 52 0 1 0 103.4 0 51.7 52 0 1 0-103.4 0z'
- ], [
- secondaryColor,
- 'M768 352c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H548v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H328v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H136v496h752V296H768v56zM661 736h-43.8c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 39.9-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5h-43.9a8 8 0 0 1-8-8.4c2.8-53.3 31.9-99.6 74.6-126.1-18.1-20-29.1-46.4-29.1-75.5 0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.6-29.1 75.5 42.7 26.4 71.9 72.8 74.7 126.1a8 8 0 0 1-8 8.4z'
- ], [
- primaryColor,
- 'M594.3 601.5a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1 8 8 0 0 0 8 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52z'
- ], [
- primaryColor,
- 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z'
- ]);
- });
- exports.ContainerTwoTone = getIcon('container', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M635 771.7c-34.5 28.6-78.2 44.3-123 44.3s-88.5-15.8-123-44.3a194.02 194.02 0 0 1-59.1-84.7H232v201h560V687h-97.9c-11.6 32.8-32 62.3-59.1 84.7z'
- ], [
- primaryColor,
- 'M320 501h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
- ], [
- primaryColor,
- 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v201zm0-264H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v488z'
- ], [
- primaryColor,
- 'M320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
- ]);
- });
- exports.ControlTwoTone = getIcon('control', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M616 440a36 36 0 1 0 72 0 36 36 0 1 0-72 0zM340.4 601.5l1.5 2.4c0 .1.1.1.1.2l.9 1.2c.1.1.2.2.2.3 1 1.3 2 2.5 3.2 3.6l.2.2c.4.4.8.8 1.2 1.1.8.8 1.7 1.5 2.6 2.1h.1l1.2.9c.1.1.3.2.4.3 1.2.8 2.5 1.6 3.9 2.2.2.1.5.2.7.4.4.2.7.3 1.1.5.3.1.7.3 1 .4.5.2 1 .4 1.5.5.4.1.9.3 1.3.4l.9.3 1.4.3c.2.1.5.1.7.2.7.1 1.4.3 2.1.4.2 0 .4 0 .6.1.6.1 1.1.1 1.7.2.2 0 .4 0 .7.1.8 0 1.5.1 2.3.1s1.5 0 2.3-.1c.2 0 .4 0 .7-.1.6 0 1.2-.1 1.7-.2.2 0 .4 0 .6-.1.7-.1 1.4-.2 2.1-.4.2-.1.5-.1.7-.2l1.4-.3.9-.3c.4-.1.9-.3 1.3-.4.5-.2 1-.4 1.5-.5.3-.1.7-.3 1-.4.4-.2.7-.3 1.1-.5.2-.1.5-.2.7-.4 1.3-.7 2.6-1.4 3.9-2.2.1-.1.3-.2.4-.3l1.2-.9h.1c.9-.7 1.8-1.4 2.6-2.1.4-.4.8-.7 1.2-1.1l.2-.2c1.1-1.1 2.2-2.4 3.2-3.6.1-.1.2-.2.2-.3l.9-1.2c0-.1.1-.1.1-.2l1.5-2.4c.1-.2.2-.3.3-.5 2.7-5.1 4.3-10.9 4.3-17s-1.6-12-4.3-17c-.1-.2-.2-.4-.3-.5l-1.5-2.4c0-.1-.1-.1-.1-.2l-.9-1.2c-.1-.1-.2-.2-.2-.3-1-1.3-2-2.5-3.2-3.6l-.2-.2c-.4-.4-.8-.8-1.2-1.1-.8-.8-1.7-1.5-2.6-2.1h-.1l-1.2-.9c-.1-.1-.3-.2-.4-.3-1.2-.8-2.5-1.6-3.9-2.2-.2-.1-.5-.2-.7-.4-.4-.2-.7-.3-1.1-.5-.3-.1-.7-.3-1-.4-.5-.2-1-.4-1.5-.5-.4-.1-.9-.3-1.3-.4l-.9-.3-1.4-.3c-.2-.1-.5-.1-.7-.2-.7-.1-1.4-.3-2.1-.4-.2 0-.4 0-.6-.1-.6-.1-1.1-.1-1.7-.2-.2 0-.4 0-.7-.1-.8 0-1.5-.1-2.3-.1s-1.5 0-2.3.1c-.2 0-.4 0-.7.1-.6 0-1.2.1-1.7.2-.2 0-.4 0-.6.1-.7.1-1.4.2-2.1.4-.2.1-.5.1-.7.2l-1.4.3-.9.3c-.4.1-.9.3-1.3.4-.5.2-1 .4-1.5.5-.3.1-.7.3-1 .4-.4.2-.7.3-1.1.5-.2.1-.5.2-.7.4-1.3.7-2.6 1.4-3.9 2.2-.1.1-.3.2-.4.3l-1.2.9h-.1c-.9.7-1.8 1.4-2.6 2.1-.4.4-.8.7-1.2 1.1l-.2.2a54.8 54.8 0 0 0-3.2 3.6c-.1.1-.2.2-.2.3l-.9 1.2c0 .1-.1.1-.1.2l-1.5 2.4c-.1.2-.2.3-.3.5-2.7 5.1-4.3 10.9-4.3 17s1.6 12 4.3 17c.1.2.2.3.3.5z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm436.4-499.1c-.2 0-.3.1-.4.1v-77c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v77c-.2 0-.3-.1-.4-.1 42 13.4 72.4 52.7 72.4 99.1 0 46.4-30.4 85.7-72.4 99.1.2 0 .3-.1.4-.1v221c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V539c.2 0 .3.1.4.1-42-13.4-72.4-52.7-72.4-99.1 0-46.4 30.4-85.7 72.4-99.1zM340 485V264c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v221c41.7 13.6 72 52.8 72 99s-30.3 85.5-72 99v77c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-77c-41.7-13.6-72-52.8-72-99s30.3-85.5 72-99z'
- ], [
- primaryColor,
- 'M340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c41.7-13.5 72-52.8 72-99s-30.3-85.4-72-99V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c-41.7 13.5-72 52.8-72 99s30.3 85.4 72 99zm.1-116c.1-.2.2-.3.3-.5l1.5-2.4c0-.1.1-.1.1-.2l.9-1.2c0-.1.1-.2.2-.3 1-1.2 2.1-2.5 3.2-3.6l.2-.2c.4-.4.8-.7 1.2-1.1.8-.7 1.7-1.4 2.6-2.1h.1l1.2-.9c.1-.1.3-.2.4-.3 1.3-.8 2.6-1.5 3.9-2.2.2-.2.5-.3.7-.4.4-.2.7-.3 1.1-.5.3-.1.7-.3 1-.4.5-.1 1-.3 1.5-.5.4-.1.9-.3 1.3-.4l.9-.3 1.4-.3c.2-.1.5-.1.7-.2.7-.2 1.4-.3 2.1-.4.2-.1.4-.1.6-.1.5-.1 1.1-.2 1.7-.2.3-.1.5-.1.7-.1.8-.1 1.5-.1 2.3-.1s1.5.1 2.3.1c.3.1.5.1.7.1.6.1 1.1.1 1.7.2.2.1.4.1.6.1.7.1 1.4.3 2.1.4.2.1.5.1.7.2l1.4.3.9.3c.4.1.9.3 1.3.4.5.1 1 .3 1.5.5.3.1.7.3 1 .4.4.2.7.3 1.1.5.2.2.5.3.7.4 1.4.6 2.7 1.4 3.9 2.2.1.1.3.2.4.3l1.2.9h.1c.9.6 1.8 1.3 2.6 2.1.4.3.8.7 1.2 1.1l.2.2c1.2 1.1 2.2 2.3 3.2 3.6 0 .1.1.2.2.3l.9 1.2c0 .1.1.1.1.2l1.5 2.4A36.03 36.03 0 0 1 408 584c0 6.1-1.6 11.9-4.3 17-.1.2-.2.3-.3.5l-1.5 2.4c0 .1-.1.1-.1.2l-.9 1.2c0 .1-.1.2-.2.3-1 1.2-2.1 2.5-3.2 3.6l-.2.2c-.4.4-.8.7-1.2 1.1-.8.7-1.7 1.4-2.6 2.1h-.1l-1.2.9c-.1.1-.3.2-.4.3-1.3.8-2.6 1.5-3.9 2.2-.2.2-.5.3-.7.4-.4.2-.7.3-1.1.5-.3.1-.7.3-1 .4-.5.1-1 .3-1.5.5-.4.1-.9.3-1.3.4l-.9.3-1.4.3c-.2.1-.5.1-.7.2-.7.2-1.4.3-2.1.4-.2.1-.4.1-.6.1-.5.1-1.1.2-1.7.2-.3.1-.5.1-.7.1-.8.1-1.5.1-2.3.1s-1.5-.1-2.3-.1c-.3-.1-.5-.1-.7-.1-.6-.1-1.1-.1-1.7-.2-.2-.1-.4-.1-.6-.1-.7-.1-1.4-.3-2.1-.4-.2-.1-.5-.1-.7-.2l-1.4-.3-.9-.3c-.4-.1-.9-.3-1.3-.4-.5-.1-1-.3-1.5-.5-.3-.1-.7-.3-1-.4-.4-.2-.7-.3-1.1-.5-.2-.2-.5-.3-.7-.4-1.4-.6-2.7-1.4-3.9-2.2-.1-.1-.3-.2-.4-.3l-1.2-.9h-.1c-.9-.6-1.8-1.3-2.6-2.1-.4-.3-.8-.7-1.2-1.1l-.2-.2c-1.2-1.1-2.2-2.3-3.2-3.6 0-.1-.1-.2-.2-.3l-.9-1.2c0-.1-.1-.1-.1-.2l-1.5-2.4c-.1-.2-.2-.3-.3-.5-2.7-5-4.3-10.9-4.3-17s1.6-11.9 4.3-17zm280.3-27.9c-.1 0-.2-.1-.4-.1v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-.1 0-.2.1-.4.1 42-13.4 72.4-52.7 72.4-99.1 0-46.4-30.4-85.7-72.4-99.1.1 0 .2.1.4.1v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c.1 0 .2-.1.4-.1-42 13.4-72.4 52.7-72.4 99.1 0 46.4 30.4 85.7 72.4 99.1zM652 404c19.9 0 36 16.1 36 36s-16.1 36-36 36-36-16.1-36-36 16.1-36 36-36z'
- ]);
- });
- exports.CopyTwoTone = getIcon('copy', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M232 706h142c22.1 0 40 17.9 40 40v142h250V264H232v442z'], [
- primaryColor,
- 'M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32z'
- ], [
- primaryColor,
- 'M704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z'
- ]);
- });
- exports.CreditCardTwoTone = getIcon('credit-card', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M136 792h752V440H136v352zm507-144c0-4.4 3.6-8 8-8h165c4.4 0 8 3.6 8 8v72c0 4.4-3.6 8-8 8H651c-4.4 0-8-3.6-8-8v-72zM136 232h752v120H136z'
- ], [
- primaryColor,
- 'M651 728h165c4.4 0 8-3.6 8-8v-72c0-4.4-3.6-8-8-8H651c-4.4 0-8 3.6-8 8v72c0 4.4 3.6 8 8 8z'
- ], [
- primaryColor,
- 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V440h752v352zm0-440H136V232h752v120z'
- ]);
- });
- exports.CrownTwoTone = getIcon('crown', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M911.9 283.9v.5L835.5 865c-1 8-7.9 14-15.9 14H204.5c-8.1 0-14.9-6.1-16-14l-76.4-580.6v-.6 1.6L188.5 866c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.1-.5.1-1 0-1.5z'
- ], [
- secondaryColor,
- 'M773.6 810.6l53.9-409.4-139.8 86.1L512 252.9 336.3 487.3l-139.8-86.1 53.8 409.4h523.3zm-374.2-189c0-62.1 50.5-112.6 112.6-112.6s112.6 50.5 112.6 112.6v1c0 62.1-50.5 112.6-112.6 112.6s-112.6-50.5-112.6-112.6v-1z'
- ], [
- primaryColor,
- 'M512 734.2c61.9 0 112.3-50.2 112.6-112.1v-.5c0-62.1-50.5-112.6-112.6-112.6s-112.6 50.5-112.6 112.6v.5c.3 61.9 50.7 112.1 112.6 112.1zm0-160.9c26.6 0 48.2 21.6 48.2 48.3 0 26.6-21.6 48.3-48.2 48.3s-48.2-21.6-48.2-48.3c0-26.6 21.6-48.3 48.2-48.3z'
- ], [
- primaryColor,
- 'M188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6v-.5c.3-6.4-6.7-10.8-12.3-7.4L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.5-3.4-12.6.9-12.2 7.3v.6L188.5 865zm147.8-377.7L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4H250.3l-53.8-409.4 139.8 86.1z'
- ]);
- });
- exports.CustomerServiceTwoTone = getIcon('customer-service', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M696 632h128v192H696zm-496 0h128v192H200z'], [
- primaryColor,
- 'M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z'
- ]);
- });
- exports.DashboardTwoTone = getIcon('dashboard', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512 188c-99.3 0-192.7 38.7-263 109-70.3 70.2-109 163.6-109 263 0 105.6 44.5 205.5 122.6 276h498.8A371.12 371.12 0 0 0 884 560c0-99.3-38.7-192.7-109-263-70.2-70.3-163.6-109-263-109zm-30 44c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.4l-31.1 31.1a8.03 8.03 0 0 1-11.3 0l-56.6-56.6a8.03 8.03 0 0 1 0-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.5l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 0 1-79.2 0 55.95 55.95 0 0 1 0-79.2 55.87 55.87 0 0 1 54.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.2 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 0 1 0-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 0 1-11.3 0zM846 538v44c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8z'
- ], [
- primaryColor,
- 'M623.5 421.5a8.03 8.03 0 0 0-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 0 0 0 79.2 55.95 55.95 0 0 0 79.2 0 55.87 55.87 0 0 0 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8z'
- ], [
- primaryColor,
- 'M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 0 1 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276z'
- ], [
- primaryColor,
- 'M762.7 340.8l-31.1-31.1a8.03 8.03 0 0 0-11.3 0l-56.6 56.6a8.03 8.03 0 0 0 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zM750 538v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zM304.1 309.7a8.03 8.03 0 0 0-11.3 0l-31.1 31.1a8.03 8.03 0 0 0 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z'
- ]);
- });
- exports.DeleteTwoTone = getIcon('delete', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M292.7 840h438.6l24.2-512h-487z'], [
- primaryColor,
- 'M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z'
- ]);
- });
- exports.DiffTwoTone = getIcon('diff', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M232 264v624h432V413.8L514.2 264H232zm336 489c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-262v42c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7z'
- ], [
- primaryColor,
- 'M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z'
- ], [
- primaryColor,
- 'M553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888z'
- ], [
- primaryColor,
- 'M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7z'
- ]);
- });
- exports.DatabaseTwoTone = getIcon('database', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M232 616h560V408H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 888h560V680H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 344h560V136H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
- ], [
- primaryColor,
- 'M304 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-544a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
- ], [
- primaryColor,
- 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V680h560v208zm0-272H232V408h560v208zm0-272H232V136h560v208z'
- ]);
- });
- exports.DislikeTwoTone = getIcon('dislike', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M273 100.1v428h.3l-.3-428zM820.4 525l-21.9-19 14-25.5a56.2 56.2 0 0 0 6.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 0 0 6.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 0 0 6.9-27.3c0-22.4-13.2-42.6-33.6-51.8H345v345.2c18.6 67.2 46.4 168 83.5 302.5a44.28 44.28 0 0 0 42.2 32.3c7.5.1 15-2.2 21.1-6.7 9.9-7.4 15.2-18.6 14.6-30.5l-9.6-198.4h314.4C829 605.5 840 587.1 840 568c0-16.5-7.1-32.2-19.6-43z'
- ], [
- primaryColor,
- 'M112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32zm773.9 358.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H273l.3 428 85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zm-74.7 126.1H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 0 1-42.2-32.3c-37.1-134.4-64.9-235.2-83.5-302.5V172h399.4a56.85 56.85 0 0 1 33.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0 1 19.6 43c0 19.1-11 37.5-28.8 48.4z'
- ]);
- });
- exports.DownCircleTwoTone = getIcon('down-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm184.4 277.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 4.9 25.9 13.2L512 563.6l105.2-145.4c6-8.3 15.7-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.4 12.7z'
- ], [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- primaryColor,
- 'M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z'
- ]);
- });
- exports.DownSquareTwoTone = getIcon('down-square', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm150-440h46.9c10.3 0 19.9 4.9 25.9 13.2L512 558.6l105.2-145.4c6-8.3 15.7-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.4 12.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7z'
- ], [
- primaryColor,
- 'M505.5 658.7c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 558.6 406.8 413.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246z'
- ]);
- });
- exports.EnvironmentTwoTone = getIcon('environment', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M724.4 224.9C667.7 169.5 592.3 139 512 139s-155.7 30.5-212.4 85.8C243.1 280 212 353.2 212 431.1c0 241.3 234.1 407.2 300 449.1 65.9-41.9 300-207.8 300-449.1 0-77.9-31.1-151.1-87.6-206.2zM512 615c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'
- ], [
- primaryColor,
- 'M512 263c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8S624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z'
- ], [
- primaryColor,
- 'M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1z'
- ]);
- });
- exports.EditTwoTone = getIcon('edit', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z'], [
- primaryColor,
- 'M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z'
- ]);
- });
- exports.ExclamationCircleTwoTone = getIcon('exclamation-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-32 156c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
- ], [
- primaryColor,
- 'M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8zm-24 112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
- ]);
- });
- exports.ExperimentTwoTone = getIcon('experiment', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M551.9 513c19.6 0 35.9-14.2 39.3-32.8A40.02 40.02 0 0 1 552 512a40 40 0 0 1-40-39.4v.5c0 22 17.9 39.9 39.9 39.9zM752 687.8l-.3-.3c-29-17.5-62.3-26.8-97-26.8-44.9 0-87.2 15.7-121 43.8a256.27 256.27 0 0 1-164.9 59.9c-41.2 0-81-9.8-116.7-28L210.5 844h603l-59.9-155.2-1.6-1z'
- ], [
- primaryColor,
- 'M879 824.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 0 1-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.6-107.6.1-.2c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1l.6 1.6L813.5 844h-603z'
- ], [
- primaryColor,
- 'M552 512c19.3 0 35.4-13.6 39.2-31.8.6-2.7.8-5.4.8-8.2 0-22.1-17.9-40-40-40s-40 17.9-40 40v.6a40 40 0 0 0 40 39.4z'
- ]);
- });
- exports.EyeInvisibleTwoTone = getIcon('eye-invisible', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M254.89 758.85l125.57-125.57a176 176 0 0 1 248.82-248.82L757 256.72Q651.69 186.07 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q69.27 145.91 173.09 221.05zM942.2 486.2Q889.46 375.11 816.7 305L672.48 449.27a176.09 176.09 0 0 1-227.22 227.21L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z'
- ], [
- primaryColor,
- 'M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zM878.63 165.56L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z'
- ], [
- primaryColor,
- 'M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z'
- ]);
- });
- exports.EyeTwoTone = getIcon('eye', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M81.8 537.8a60.3 60.3 0 0 1 0-51.5C176.6 286.5 319.8 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c-192.1 0-335.4-100.5-430.2-300.2z'
- ], [
- secondaryColor,
- 'M512 258c-161.3 0-279.4 81.8-362.7 254C232.6 684.2 350.7 766 512 766c161.4 0 279.5-81.8 362.7-254C791.4 339.8 673.3 258 512 258zm-4 430c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'
- ], [
- primaryColor,
- 'M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258s279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z'
- ], [
- primaryColor,
- 'M508 336c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z'
- ]);
- });
- exports.FileAddTwoTone = getIcon('file-add', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm126 236v48c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V644H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V472c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8z'
- ], [
- primaryColor,
- 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
- ], [
- primaryColor,
- 'M544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z'
- ]);
- });
- exports.FileExclamationTwoTone = getIcon('file-exclamation', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-54 96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V448zm32 336c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'
- ], [
- primaryColor,
- 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
- ], [
- primaryColor,
- 'M488 640h48c4.4 0 8-3.6 8-8V448c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm-16 104a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
- ]);
- });
- exports.FileImageTwoTone = getIcon('file-image', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-134 50c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328.1c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0 1 12.6 0l41.1 52.4 77.8-99.2a8.1 8.1 0 0 1 12.7 0l136.5 174c4.1 5.2.4 12.9-6.3 12.9z'
- ], [
- primaryColor,
- 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
- ], [
- primaryColor,
- 'M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 0 0-12.6 0l-99.8 127.2a7.98 7.98 0 0 0 6.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 0 0-12.7 0zM360 442a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
- ]);
- });
- exports.FileExcelTwoTone = getIcon('file-excel', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm51.6 120h35.7a12.04 12.04 0 0 1 10.1 18.5L546.1 623l84 130.4c3.6 5.6 2 13-3.6 16.6-2 1.2-4.2 1.9-6.5 1.9h-37.5c-4.1 0-8-2.1-10.2-5.7L510 664.8l-62.7 101.5c-2.2 3.5-6 5.7-10.2 5.7h-34.5a12.04 12.04 0 0 1-10.2-18.4l83.4-132.8-82.3-130.4c-3.6-5.7-1.9-13.1 3.7-16.6 1.9-1.3 4.1-1.9 6.4-1.9H442c4.2 0 8.1 2.2 10.3 5.8l61.8 102.4 61.2-102.3c2.2-3.6 6.1-5.8 10.3-5.8z'
- ], [
- primaryColor,
- 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
- ], [
- primaryColor,
- 'M514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0 0 10.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 0 0-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z'
- ]);
- });
- exports.FileMarkdownTwoTone = getIcon('file-markdown', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm72.3 122H641c6.6 0 12 5.4 12 12v272c0 6.6-5.4 12-12 12h-27.2c-6.6 0-12-5.4-12-12V581.7L535 732.3c-2 4.3-6.3 7.1-11 7.1h-24.1a12 12 0 0 1-11-7.1l-66.8-150.2V758c0 6.6-5.4 12-12 12H383c-6.6 0-12-5.4-12-12V486c0-6.6 5.4-12 12-12h35c4.8 0 9.1 2.8 11 7.2l83.2 191 83.1-191c1.9-4.4 6.2-7.2 11-7.2z'
- ], [
- primaryColor,
- 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
- ], [
- primaryColor,
- 'M429 481.2c-1.9-4.4-6.2-7.2-11-7.2h-35c-6.6 0-12 5.4-12 12v272c0 6.6 5.4 12 12 12h27.1c6.6 0 12-5.4 12-12V582.1l66.8 150.2a12 12 0 0 0 11 7.1H524c4.7 0 9-2.8 11-7.1l66.8-150.6V758c0 6.6 5.4 12 12 12H641c6.6 0 12-5.4 12-12V486c0-6.6-5.4-12-12-12h-34.7c-4.8 0-9.1 2.8-11 7.2l-83.1 191-83.2-191z'
- ]);
- });
- exports.FilePdfTwoTone = getIcon('file-pdf', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M509.2 490.8c-.7-1.3-1.4-1.9-2.2-2-2.9 3.3-2.2 31.5 2.7 51.4 4-13.6 4.7-40.5-.5-49.4zm-1.6 120.5c-7.7 20-18.8 47.3-32.1 71.4 4-1.6 8.1-3.3 12.3-5 17.6-7.2 37.3-15.3 58.9-20.2-14.9-11.8-28.4-27.7-39.1-46.2z'
- ], [
- secondaryColor,
- 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm55 287.6c16.1-1.9 30.6-2.8 44.3-2.3 12.8.4 23.6 2 32 5.1.2.1.3.1.5.2.4.2.8.3 1.2.5.5.2 1.1.4 1.6.7.1.1.3.1.4.2 4.1 1.8 7.5 4 10.1 6.6 9.1 9.1 11.8 26.1 6.2 39.6-3.2 7.7-11.7 20.5-33.3 20.5-21.8 0-53.9-9.7-82.1-24.8-25.5 4.3-53.7 13.9-80.9 23.1-5.8 2-11.8 4-17.6 5.9-38 65.2-66.5 79.4-84.1 79.4-4.2 0-7.8-.9-10.8-2-6.9-2.6-12.8-8-16.5-15-.9-1.7-1.6-3.4-2.2-5.2-1.6-4.8-2.1-9.6-1.3-13.6l.6-2.7c.1-.2.1-.4.2-.6.2-.7.4-1.4.7-2.1 0-.1.1-.2.1-.3 4.1-11.9 13.6-23.4 27.7-34.6 12.3-9.8 27.1-18.7 45.9-28.4 15.9-28 37.6-75.1 51.2-107.4-10.8-41.8-16.7-74.6-10.1-98.6.9-3.3 2.5-6.4 4.6-9.1.2-.2.3-.4.5-.6.1-.1.1-.2.2-.2 6.3-7.5 16.9-11.9 28.1-11.5 16.6.7 29.7 11.5 33 30.1 1.7 8 2.2 16.5 1.9 25.7v.7c0 .5 0 1-.1 1.5-.7 13.3-3 26.6-7.3 44.7-.4 1.6-.8 3.2-1.2 5.2l-1 4.1-.1.3c.1.2.1.3.2.5l1.8 4.5c.1.3.3.7.4 1 .7 1.6 1.4 3.3 2.1 4.8v.1c8.7 18.8 19.7 33.4 33.9 45.1 4.3 3.5 8.9 6.7 13.9 9.8 1.8-.5 3.5-.7 5.3-.9z'
- ], [
- secondaryColor,
- 'M391.5 761c5.7-4.4 16.2-14.5 30.1-34.7-10.3 9.4-23.4 22.4-30.1 34.7zm270.9-83l.2-.3h.2c.6-.4.5-.7.4-.9-.1-.1-4.5-9.3-45.1-7.4 35.3 13.9 43.5 9.1 44.3 8.6z'
- ], [
- primaryColor,
- 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
- ], [
- primaryColor,
- 'M535.9 585.3c-.8-1.7-1.5-3.3-2.2-4.9-.1-.3-.3-.7-.4-1l-1.8-4.5c-.1-.2-.1-.3-.2-.5l.1-.3.2-1.1c4-16.3 8.6-35.3 9.4-54.4v-.7c.3-8.6-.2-17.2-2-25.6-3.8-21.3-19.5-29.6-32.9-30.2-11.3-.5-21.8 4-28.1 11.4-.1.1-.1.2-.2.2-.2.2-.4.4-.5.6-2.1 2.7-3.7 5.8-4.6 9.1-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.4-51.2 107.4v.1c-27.7 14.3-64.1 35.8-73.6 62.9 0 .1-.1.2-.1.3-.2.7-.5 1.4-.7 2.1-.1.2-.1.4-.2.6-.2.9-.5 1.8-.6 2.7-.9 4-.4 8.8 1.3 13.6.6 1.8 1.3 3.5 2.2 5.2 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-2.6-2.6-6-4.8-10.1-6.6-.1-.1-.3-.1-.4-.2-.5-.2-1.1-.4-1.6-.7-.4-.2-.8-.3-1.2-.5-.2-.1-.3-.1-.5-.2-16.2-5.8-41.7-6.7-76.3-2.8l-5.3.6c-5-3-9.6-6.3-13.9-9.8-14.2-11.3-25.1-25.8-33.8-44.7zM391.5 761c6.7-12.3 19.8-25.3 30.1-34.7-13.9 20.2-24.4 30.3-30.1 34.7zM507 488.8c.8.1 1.5.7 2.2 2 5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4zm-19.2 188.9c-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4 10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2zm175.4-.9c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4z'
- ]);
- });
- exports.FilePptTwoTone = getIcon('file-ppt', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M464.5 516.2v108.4h38.9c44.7 0 71.2-10.9 71.2-54.3 0-34.4-20.1-54.1-53.9-54.1h-56.2z'
- ], [
- secondaryColor,
- 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm90 218.4c0 55.2-36.8 94.1-96.2 94.1h-63.3V760c0 4.4-3.6 8-8 8H424c-4.4 0-8-3.6-8-8V484c0-4.4 3.6-8 8-8v.1h104c59.7 0 96 39.8 96 94.3z'
- ], [
- primaryColor,
- 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
- ], [
- primaryColor,
- 'M424 476.1c-4.4-.1-8 3.5-8 7.9v276c0 4.4 3.6 8 8 8h32.5c4.4 0 8-3.6 8-8v-95.5h63.3c59.4 0 96.2-38.9 96.2-94.1 0-54.5-36.3-94.3-96-94.3H424zm150.6 94.2c0 43.4-26.5 54.3-71.2 54.3h-38.9V516.2h56.2c33.8 0 53.9 19.7 53.9 54.1z'
- ]);
- });
- exports.FileTextTwoTone = getIcon('file-text', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-22 322c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm200-184v48c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8z'
- ], [
- primaryColor,
- 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
- ], [
- primaryColor,
- 'M312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8zm192 128H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
- ]);
- });
- exports.FileUnknownTwoTone = getIcon('file-unknown', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-22 424c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm110-228.4c.7 44.9-29.7 84.5-74.3 98.9-5.7 1.8-9.7 7.3-9.7 13.3V672c0 5.5-4.5 10-10 10h-32c-5.5 0-10-4.5-10-10v-32c.2-19.8 15.4-37.3 34.7-40.1C549 596.2 570 574.3 570 549c0-28.1-25.8-51.5-58-51.5s-58 23.4-58 51.6c0 5.2-4.4 9.4-9.8 9.4h-32.4c-5.4 0-9.8-4.1-9.8-9.5 0-57.4 50.1-103.7 111.5-103 59.3.8 107.7 46.1 108.5 101.6z'
- ], [
- primaryColor,
- 'M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
- ], [
- primaryColor,
- 'M480 744a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm-78-195c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103z'
- ]);
- });
- exports.FileZipTwoTone = getIcon('file-zip', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M344 630h32v2h-32z'], [
- secondaryColor,
- 'M534 352V136H360v64h64v64h-64v64h64v64h-64v64h64v64h-64v62h64v160H296V520h64v-64h-64v-64h64v-64h-64v-64h64v-64h-64v-64h-64v752h560V394H576a42 42 0 0 1-42-42z'
- ], [
- primaryColor,
- 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h64v64h64v-64h174v216a42 42 0 0 0 42 42h216v494z'
- ], [
- primaryColor,
- 'M296 392h64v64h-64zm0-128h64v64h-64zm0 318v160h128V582h-64v-62h-64v62zm48 50v-2h32v64h-32v-62zm16-432h64v64h-64zm0 256h64v64h-64zm0-128h64v64h-64z'
- ]);
- });
- exports.FileWordTwoTone = getIcon('file-word', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0 1 11.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0 1 11.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z'
- ], [
- primaryColor,
- 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
- ], [
- primaryColor,
- 'M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 0 0-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 0 0-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z'
- ]);
- });
- exports.FileTwoTone = getIcon('file', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42z'], [
- primaryColor,
- 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
- ]);
- });
- exports.FilterTwoTone = getIcon('filter', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M420.6 798h182.9V642H420.6zM411 561.4l9.5 16.6h183l9.5-16.6L811.3 226H212.7z'
- ], [
- primaryColor,
- 'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.5 798H420.6V642h182.9v156zm9.5-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z'
- ]);
- });
- exports.FireTwoTone = getIcon('fire', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M737 438.6c-9.6 15.5-21.1 30.7-34.4 45.6a73.1 73.1 0 0 1-51 24.4 73.36 73.36 0 0 1-53.4-18.8 74.01 74.01 0 0 1-24.4-59.8c3-47.4-12.4-103.1-45.8-165.7-16.9-31.4-37.1-58.2-61.2-80.4a240 240 0 0 1-12.1 46.5 354.26 354.26 0 0 1-58.2 101 349.6 349.6 0 0 1-58.6 56.8c-34 26.1-62 60-80.8 97.9a275.96 275.96 0 0 0-29.1 124c0 74.9 29.5 145.3 83 198.4 53.7 53.2 125 82.4 201 82.4s147.3-29.2 201-82.4c53.5-53 83-123.5 83-198.4 0-39.2-8.1-77.3-24-113.1-9.3-21-21-40.5-35-58.4z'
- ], [
- primaryColor,
- 'M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0 0 58.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0 0 12.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0 0 24.4 59.8 73.36 73.36 0 0 0 53.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z'
- ]);
- });
- exports.FolderAddTwoTone = getIcon('folder-add', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M372.5 256H184v512h656V370.4H492.1L372.5 256zM540 443.1V528h84.5c4.1 0 7.5 3.1 7.5 7v42c0 3.8-3.4 7-7.5 7H540v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V584h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H484v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1z'
- ], [
- primaryColor,
- 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'
- ], [
- primaryColor,
- 'M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1z'
- ]);
- });
- exports.FlagTwoTone = getIcon('flag', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M184 232h368v336H184z'], [secondaryColor, 'M624 632c0 4.4-3.6 8-8 8H504v73h336V377H624v255z'], [
- primaryColor,
- 'M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z'
- ]);
- });
- exports.FolderTwoTone = getIcon('folder', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'
- ], [secondaryColor, 'M372.5 256H184v512h656V370.4H492.1z']);
- });
- exports.FolderOpenTwoTone = getIcon('folder-open', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M159 768h612.3l103.4-256H262.3z'], [
- primaryColor,
- 'M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z'
- ]);
- });
- exports.FrownTwoTone = getIcon('frown', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm376 272h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 636.1 562.5 597 512 597s-92.1 39.1-95.8 88.6c-.3 4.2-3.9 7.4-8.1 7.4H360a8 8 0 0 1-8-8.4c4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6a8 8 0 0 1-8 8.4zm24-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
- ], [
- primaryColor,
- 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm224 112c-85.5 0-155.6 67.3-160 151.6a8 8 0 0 0 8 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4 3.7-49.5 45.3-88.6 95.8-88.6s92 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 0 0 8-8.4C667.6 600.3 597.5 533 512 533zm128-112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
- ]);
- });
- exports.FundTwoTone = getIcon('fund', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560z'
- ], [
- secondaryColor,
- 'M136 792h752V232H136v560zm56.4-130.5l214.9-215c3.1-3.1 8.2-3.1 11.3 0L533 561l254.5-254.6c3.1-3.1 8.2-3.1 11.3 0l36.8 36.8c3.1 3.1 3.1 8.2 0 11.3l-297 297.2a8.03 8.03 0 0 1-11.3 0L412.9 537.2 240.4 709.7a8.03 8.03 0 0 1-11.3 0l-36.7-36.9a8.03 8.03 0 0 1 0-11.3z'
- ], [
- primaryColor,
- 'M229.1 709.7c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 0 0-11.3 0L533 561 418.6 446.5a8.03 8.03 0 0 0-11.3 0l-214.9 215a8.03 8.03 0 0 0 0 11.3l36.7 36.9z'
- ]);
- });
- exports.FunnelPlotTwoTone = getIcon('funnel-plot', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M420.6 798h182.9V650H420.6zM297.7 374h428.6l85-148H212.7zm113.2 197.4l8.4 14.6h185.3l8.4-14.6L689.6 438H334.4z'
- ], [
- primaryColor,
- 'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.5 798H420.6V650h182.9v148zm9.5-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z'
- ]);
- });
- exports.GiftTwoTone = getIcon('gift', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M546 378h298v104H546zM228 550h250v308H228zm-48-172h298v104H180zm366 172h250v308H546z'
- ], [
- primaryColor,
- 'M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zM478 858H228V550h250v308zm0-376H180V378h298v104zm0-176h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70 70 31.4 70 70v70zm68-70c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm250 622H546V550h250v308zm48-376H546V378h298v104z'
- ]);
- });
- exports.HddTwoTone = getIcon('hdd', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M232 888h560V680H232v208zm448-140c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 616h560V408H232v208zm72-128c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H312c-4.4 0-8-3.6-8-8v-48zm-72-144h560V136H232v208zm72-128c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H312c-4.4 0-8-3.6-8-8v-48z'
- ], [
- primaryColor,
- 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V680h560v208zm0-272H232V408h560v208zm0-272H232V136h560v208z'
- ], [
- primaryColor,
- 'M312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-272h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 516a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
- ]);
- });
- exports.HeartTwoTone = getIcon('heart', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z'
- ], [
- secondaryColor,
- 'M679.7 201c-73.1 0-136.5 40.8-167.7 100.4C480.8 241.8 417.4 201 344.3 201c-104 0-188.3 82.6-188.3 184.5 0 201.2 356 429.3 356 429.3s356-228.1 356-429.3C868 283.6 783.7 201 679.7 201z'
- ]);
- });
- exports.HighlightTwoTone = getIcon('highlight', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M229.6 796.3h160.2l54.3-54.1-80.1-78.9zm220.7-397.1l262.8 258.9 147.3-145-262.8-259zm-77.1 166.1l171.4 168.9 68.6-67.6-171.4-168.9z'
- ], [
- primaryColor,
- 'M957.6 507.5L603.2 158.3a7.9 7.9 0 0 0-11.2 0L353.3 393.5a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8v55.2c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6L539 830a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.3H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.3l68.6-67.6 171.4 168.9-68.6 67.6zm168.5-76.1L450.3 399.2l147.3-145.1 262.8 259-147.3 145z'
- ]);
- });
- exports.HomeTwoTone = getIcon('home', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512.1 172.6l-370 369.7h96V868H392V640c0-22.1 17.9-40 40-40h160c22.1 0 40 17.9 40 40v228h153.9V542.3H882L535.2 195.7l-23.1-23.1zm434.5 422.9c-6 6-13.1 10.8-20.8 13.9 7.7-3.2 14.8-7.9 20.8-13.9zm-887-34.7c5 30.3 31.4 53.5 63.1 53.5h.9c-31.9 0-58.9-23-64-53.5zm-.9-10.5v-1.9 1.9zm.1-2.6c.1-3.1.5-6.1 1-9.1-.6 2.9-.9 6-1 9.1z'
- ], [
- primaryColor,
- 'M951 510c0-.1-.1-.1-.1-.2l-1.8-2.1c-.1-.1-.2-.3-.4-.4-.7-.8-1.5-1.6-2.2-2.4L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.6 63.6 0 0 0-16 26.6l-.6 2.1-.3 1.1-.3 1.2c-.2.7-.3 1.4-.4 2.1 0 .1 0 .3-.1.4-.6 3-.9 6-1 9.1v3.3c0 .5 0 1 .1 1.5 0 .5 0 .9.1 1.4 0 .5.1 1 .1 1.5 0 .6.1 1.2.2 1.8 0 .3.1.6.1.9l.3 2.5v.1c5.1 30.5 32.2 53.5 64 53.5h42.5V940h691.7V614.3h43.4c8.6 0 16.9-1.7 24.5-4.9s14.7-7.9 20.8-13.9a63.6 63.6 0 0 0 18.7-45.3c0-14.7-5-28.8-14.3-40.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z'
- ]);
- });
- exports.HourglassTwoTone = getIcon('hourglass', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512 548c-42.2 0-81.9 16.4-111.7 46.3A156.63 156.63 0 0 0 354 706v134h316V706c0-42.2-16.4-81.9-46.3-111.7A156.63 156.63 0 0 0 512 548zM354 318c0 42.2 16.4 81.9 46.3 111.7C430.1 459.6 469.8 476 512 476s81.9-16.4 111.7-46.3C653.6 399.9 670 360.2 670 318V184H354v134z'
- ], [
- primaryColor,
- 'M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194zm-72 388v134H354V706c0-42.2 16.4-81.9 46.3-111.7C430.1 564.4 469.8 548 512 548s81.9 16.4 111.7 46.3C653.6 624.1 670 663.8 670 706zm0-388c0 42.2-16.4 81.9-46.3 111.7C593.9 459.6 554.2 476 512 476s-81.9-16.4-111.7-46.3A156.63 156.63 0 0 1 354 318V184h316v134z'
- ]);
- });
- exports.Html5TwoTone = getIcon('html5', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2z'
- ], [
- secondaryColor,
- 'M209.9 155.4l56.7 641.2 245.2 69.6 244.1-69.6 57.8-641.2H209.9zm530.4 117.9l-4.8 47.2-1.7 19.5H381.7l8.2 94.2H511v-.2h214.7l-3.2 24.3-21.2 242.2-1.7 16.3-187.7 51.7v.4h-1.7l-188.6-52-11.3-144.7h91l6.5 73.2 102.4 27.7h.8v-.2l102.4-27.7 11.4-118.5H511.9v.1H305.4l-22.7-253.5L281 249h461l-1.7 24.3z'
- ], [
- primaryColor,
- 'M281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z'
- ]);
- });
- exports.IdcardTwoTone = getIcon('idcard', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560z'
- ], [
- secondaryColor,
- 'M136 792h752V232H136v560zm472-372c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm0 144c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48c0 4.4-3.2 8-7.1 8H615.1c-3.9 0-7.1-3.6-7.1-8v-48zM216.2 664.6c2.8-53.3 31.9-99.6 74.6-126.1-18.1-20-29.1-46.4-29.1-75.5 0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.6-29.1 75.5 42.6 26.4 71.8 72.8 74.6 126.1a8 8 0 0 1-8 8.4h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224c-4.6 0-8.2-3.8-7.8-8.4z'
- ], [
- secondaryColor,
- 'M321.3 463a51.7 52 0 1 0 103.4 0 51.7 52 0 1 0-103.4 0z'
- ], [
- primaryColor,
- 'M610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z'
- ]);
- });
- exports.InfoCircleTwoTone = getIcon('info-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm32 588c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
- ], [
- primaryColor,
- 'M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z'
- ]);
- });
- exports.InsuranceTwoTone = getIcon('insurance', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
- ], [secondaryColor, 'M521.9 358.8h97.9v41.6h-97.9z'], [
- secondaryColor,
- 'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM413.3 656h-.2c0 4.4-3.6 8-8 8h-37.3c-4.4 0-8-3.6-8-8V471.4c-7.7 9.2-15.4 17.9-23.1 26a6.04 6.04 0 0 1-10.2-2.4l-13.2-43.5c-.6-2-.2-4.1 1.2-5.6 37-43.4 64.7-95.1 82.2-153.6 1.1-3.5 5-5.3 8.4-3.7l38.6 18.3c2.7 1.3 4.1 4.4 3.2 7.2a429.2 429.2 0 0 1-33.6 79V656zm257.9-340v127.2c0 4.4-3.6 8-8 8h-66.7v18.6h98.8c4.4 0 8 3.6 8 8v35.6c0 4.4-3.6 8-8 8h-59c18.1 29.1 41.8 54.3 72.3 76.9 2.6 2.1 3.2 5.9 1.2 8.5l-26.3 35.3a5.92 5.92 0 0 1-8.9.7c-30.6-29.3-56.8-65.2-78.1-106.9V656c0 4.4-3.6 8-8 8h-36.2c-4.4 0-8-3.6-8-8V536c-22 44.7-49 80.8-80.6 107.6a6.38 6.38 0 0 1-4.8 1.4c-1.7-.3-3.2-1.3-4.1-2.8L432 605.7a6 6 0 0 1 1.6-8.1c28.6-20.3 51.9-45.2 71-76h-55.1c-4.4 0-8-3.6-8-8V478c0-4.4 3.6-8 8-8h94.9v-18.6h-65.9c-4.4 0-8-3.6-8-8V316c0-4.4 3.6-8 8-8h184.7c4.4 0 8 3.6 8 8z'
- ], [
- primaryColor,
- 'M443.7 306.9l-38.6-18.3c-3.4-1.6-7.3.2-8.4 3.7-17.5 58.5-45.2 110.2-82.2 153.6a5.7 5.7 0 0 0-1.2 5.6l13.2 43.5c1.4 4.5 7 5.8 10.2 2.4 7.7-8.1 15.4-16.8 23.1-26V656c0 4.4 3.6 8 8 8h37.3c4.4 0 8-3.6 8-8h.2V393.1a429.2 429.2 0 0 0 33.6-79c.9-2.8-.5-5.9-3.2-7.2zm26.8 9.1v127.4c0 4.4 3.6 8 8 8h65.9V470h-94.9c-4.4 0-8 3.6-8 8v35.6c0 4.4 3.6 8 8 8h55.1c-19.1 30.8-42.4 55.7-71 76a6 6 0 0 0-1.6 8.1l22.8 36.5c.9 1.5 2.4 2.5 4.1 2.8 1.7.3 3.5-.2 4.8-1.4 31.6-26.8 58.6-62.9 80.6-107.6v120c0 4.4 3.6 8 8 8h36.2c4.4 0 8-3.6 8-8V535.9c21.3 41.7 47.5 77.6 78.1 106.9 2.6 2.5 6.7 2.2 8.9-.7l26.3-35.3c2-2.6 1.4-6.4-1.2-8.5-30.5-22.6-54.2-47.8-72.3-76.9h59c4.4 0 8-3.6 8-8v-35.6c0-4.4-3.6-8-8-8h-98.8v-18.6h66.7c4.4 0 8-3.6 8-8V316c0-4.4-3.6-8-8-8H478.5c-4.4 0-8 3.6-8 8zm51.4 42.8h97.9v41.6h-97.9v-41.6z'
- ]);
- });
- exports.InteractionTwoTone = getIcon('interaction', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm114-401.9c0-55.3 44.6-100.1 99.7-100.1h205.8v-53.4c0-5.6 6.5-8.8 10.9-5.3L723.5 365c3.5 2.7 3.5 8 0 10.7l-109.1 85.7c-4.4 3.5-10.9.4-10.9-5.3v-53.4H397.8c-19.6 0-35.5 15.9-35.5 35.6v78.9c0 3.8-3.1 6.8-6.8 6.8h-50.7c-3.8 0-6.8-3-6.8-7v-78.9zm2.6 210.3l109.1-85.7c4.4-3.5 10.9-.4 10.9 5.3v53.4h205.6c19.6 0 35.5-15.9 35.5-35.6v-78.9c0-3.8 3.1-6.8 6.8-6.8h50.7c3.8 0 6.8 3.1 6.8 6.8v78.9c0 55.3-44.6 100.1-99.7 100.1H420.6v53.4c0 5.6-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.5z'
- ], [
- primaryColor,
- 'M304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'
- ]);
- });
- exports.InterationTwoTone = getIcon('interation', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm114-401.9c0-55.3 44.6-100.1 99.7-100.1h205.8v-53.4c0-5.6 6.5-8.8 10.9-5.3L723.5 365c3.5 2.7 3.5 8 0 10.7l-109.1 85.7c-4.4 3.5-10.9.4-10.9-5.3v-53.4H397.8c-19.6 0-35.5 15.9-35.5 35.6v78.9c0 3.8-3.1 6.8-6.8 6.8h-50.7c-3.8 0-6.8-3-6.8-7v-78.9zm2.6 210.3l109.1-85.7c4.4-3.5 10.9-.4 10.9 5.3v53.4h205.6c19.6 0 35.5-15.9 35.5-35.6v-78.9c0-3.8 3.1-6.8 6.8-6.8h50.7c3.8 0 6.8 3.1 6.8 6.8v78.9c0 55.3-44.6 100.1-99.7 100.1H420.6v53.4c0 5.6-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.5z'
- ], [
- primaryColor,
- 'M304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'
- ]);
- });
- exports.LayoutTwoTone = getIcon('layout', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M384 185h456v136H384zm-200 0h136v656H184zm696-73H144c-17.7 0-32 14.3-32 32v1c0-17.7 14.3-32 32-32h736c17.7 0 32 14.3 32 32v-1c0-17.7-14.3-32-32-32zM384 385h456v456H384z'
- ], [
- primaryColor,
- 'M880 113H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V145c0-17.7-14.3-32-32-32zM320 841H184V185h136v656zm520 0H384V385h456v456zm0-520H384V185h456v136z'
- ]);
- });
- exports.LeftCircleTwoTone = getIcon('left-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm104 240.9c0 10.3-4.9 19.9-13.2 25.9L457.4 512l145.4 105.1c8.3 6 13.2 15.7 13.2 25.9v46.9c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178c5.3-3.8 12.7 0 12.7 6.5v46.9z'
- ], [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- primaryColor,
- 'M603.3 327.5l-246 178a7.95 7.95 0 0 0 0 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z'
- ]);
- });
- exports.LeftSquareTwoTone = getIcon('left-square', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm181.3-334.5l246-178c5.3-3.8 12.7 0 12.7 6.5v46.9c0 10.3-4.9 19.9-13.2 25.9L465.4 512l145.4 105.2c8.3 6 13.2 15.7 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.4l-246-178a7.95 7.95 0 0 1 0-12.9z'
- ], [
- primaryColor,
- 'M365.3 518.4l246 178c5.3 3.9 12.7.1 12.7-6.4v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a7.95 7.95 0 0 0 0 12.9z'
- ]);
- });
- exports.LikeTwoTone = getIcon('like', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M273 495.9v428l.3-428zm538.2-88.3H496.8l9.6-198.4c.6-11.9-4.7-23.1-14.6-30.5-6.1-4.5-13.6-6.8-21.1-6.7-19.6.1-36.9 13.4-42.2 32.3-37.1 134.4-64.9 235.2-83.5 302.5V852h399.4a56.85 56.85 0 0 0 33.6-51.8c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0 0 19.6-43c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0 0 19.6-43c0-9.7-2.3-18.9-6.9-27.3l-14-25.5 21.9-19a56.76 56.76 0 0 0 19.6-43c0-19.1-11-37.5-28.8-48.4z'
- ], [
- primaryColor,
- 'M112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32zm773.9 5.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.5-65.5-111a67.67 67.67 0 0 0-34.3-9.3H572.3l6-122.9c1.5-29.7-9-57.9-29.5-79.4a106.4 106.4 0 0 0-77.9-33.4c-52 0-98 35-111.8 85.1l-85.8 310.8-.3 428h472.1c9.3 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37zM820.4 499l-21.9 19 14 25.5a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H345V506.8c18.6-67.2 46.4-168 83.5-302.5a44.28 44.28 0 0 1 42.2-32.3c7.5-.1 15 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.1 32.2-19.6 43z'
- ]);
- });
- exports.LockTwoTone = getIcon('lock', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z'
- ], [
- secondaryColor,
- 'M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z'
- ], [
- primaryColor,
- 'M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'
- ]);
- });
- exports.MailTwoTone = getIcon('mail', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M477.5 536.3L135.9 270.7l-27.5-21.4 27.6 21.5V792h752V270.8L546.2 536.3a55.99 55.99 0 0 1-68.7 0z'
- ], [secondaryColor, 'M876.3 198.8l39.3 50.5-27.6 21.5 27.7-21.5-39.3-50.5z'], [
- primaryColor,
- 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-94.5 72.1L512 482 190.5 232.1h643zm54.5 38.7V792H136V270.8l-27.6-21.5 27.5 21.4 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5h.1l39.3 50.5-27.7 21.5z'
- ]);
- });
- exports.MedicineBoxTwoTone = getIcon('medicine-box', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M244.3 328L184 513.4V840h656V513.4L779.7 328H244.3zM660 628c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V636H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V464c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8v48z'
- ], [
- primaryColor,
- 'M652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
- ], [
- primaryColor,
- 'M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840z'
- ]);
- });
- exports.MehTwoTone = getIcon('meh', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm384 200c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v48zm16-152a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
- ], [
- primaryColor,
- 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm376 144H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-24-144a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
- ]);
- });
- exports.MessageTwoTone = getIcon('message', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M775.3 248.9a369.62 369.62 0 0 0-119-80A370.2 370.2 0 0 0 512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 0 0-80-119zM312 560a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zm200 0a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zm200 0a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
- ], [
- primaryColor,
- 'M664 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-400 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
- ], [
- primaryColor,
- 'M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 0 0-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 0 0-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 0 0 112 714v152a46 46 0 0 0 46 46h152.1A449.4 449.4 0 0 0 510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 0 0 142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z'
- ], [primaryColor, 'M464 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0z']);
- });
- exports.MinusCircleTwoTone = getIcon('minus-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm192 396c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z'
- ], [
- primaryColor,
- 'M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
- ]);
- });
- exports.MinusSquareTwoTone = getIcon('minus-square', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm136-352c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48z'
- ], [
- primaryColor,
- 'M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
- ]);
- });
- exports.MobileTwoTone = getIcon('mobile', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M744 64H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H288V136h448v752z'
- ], [
- secondaryColor,
- 'M288 888h448V136H288v752zm224-142c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
- ], [primaryColor, 'M472 786a40 40 0 1 0 80 0 40 40 0 1 0-80 0z']);
- });
- exports.PauseCircleTwoTone = getIcon('pause-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-80 524c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z'
- ], [
- primaryColor,
- 'M424 352h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z'
- ]);
- });
- exports.MoneyCollectTwoTone = getIcon('money-collect', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M256 744.4l256 93.1 256-93.1V184H256v560.4zM359.7 313c1.2-.7 2.5-1 3.8-1h55.7a8 8 0 0 1 7.1 4.4L511 485.2h3.3L599 316.4c1.3-2.7 4.1-4.4 7.1-4.4h54.5c4.4 0 8 3.6 8.1 7.9 0 1.3-.4 2.6-1 3.8L564 515.3h57.6c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3v39h76.3c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3V704c0 4.4-3.6 8-8 8h-49.9c-4.4 0-8-3.6-8-8v-63.4h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h76v-39h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h57L356.5 323.8c-2.1-3.8-.7-8.7 3.2-10.8z'
- ], [
- primaryColor,
- 'M911.5 700.7a8 8 0 0 0-10.3-4.8L840 718.2V180c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V763c0 3.3 2.1 6.3 5.3 7.5L501 910.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zM768 744.4l-256 93.1-256-93.1V184h512v560.4z'
- ], [
- primaryColor,
- 'M460.4 515.4h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.6-1.2 1-2.5 1-3.8-.1-4.3-3.7-7.9-8.1-7.9h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6z'
- ]);
- });
- exports.NotificationTwoTone = getIcon('notification', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M229.6 678.1c-3.7 11.6-5.6 23.9-5.6 36.4 0-12.5 2-24.8 5.7-36.4h-.1zm76.3-260.2H184v188.2h121.9l12.9 5.2L840 820.7V203.3L318.8 412.7z'
- ], [
- primaryColor,
- 'M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z'
- ]);
- });
- exports.PhoneTwoTone = getIcon('phone', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M721.7 184.9L610.9 295.8l120.8 120.7-8 21.6A481.29 481.29 0 0 1 438 723.9l-21.6 8-.9-.9-119.8-120-110.8 110.9 104.5 104.5c10.8 10.7 26 15.7 40.8 13.2 117.9-19.5 235.4-82.9 330.9-178.4s158.9-213.1 178.4-331c2.5-14.8-2.5-30-13.3-40.8L721.7 184.9z'
- ], [
- primaryColor,
- 'M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 0 1-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 0 0-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 0 0 285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z'
- ]);
- });
- exports.PictureTwoTone = getIcon('picture', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z'
- ], [
- secondaryColor,
- 'M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z'
- ], [
- secondaryColor,
- 'M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 1 1 0 176 88 88 0 0 1 0-176z'
- ], [secondaryColor, 'M276 368a28 28 0 1 0 56 0 28 28 0 1 0-56 0z'], [
- primaryColor,
- 'M304 456a88 88 0 1 0 0-176 88 88 0 0 0 0 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z'
- ]);
- });
- exports.PlayCircleTwoTone = getIcon('play-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm164.1 378.2L457.7 677.1a8.02 8.02 0 0 1-12.7-6.5V353a8 8 0 0 1 12.7-6.5l218.4 158.8a7.9 7.9 0 0 1 0 12.9z'
- ], [
- primaryColor,
- 'M676.1 505.3L457.7 346.5A8 8 0 0 0 445 353v317.6a8.02 8.02 0 0 0 12.7 6.5l218.4-158.9a7.9 7.9 0 0 0 0-12.9z'
- ]);
- });
- exports.PlaySquareTwoTone = getIcon('play-square', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm240-484.7c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 0 1 0 17.6L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3z'
- ], [
- primaryColor,
- 'M442.3 677.6l199.4-156.8a11.2 11.2 0 0 0 0-17.6L442.3 346.5c-7.4-5.9-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.6 18.3 8.8z'
- ]);
- });
- exports.PieChartTwoTone = getIcon('pie-chart', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M316.2 920.5c-47.6-20.1-90.4-49-127.1-85.7a398.19 398.19 0 0 1-85.7-127.1A397.12 397.12 0 0 1 72 552.2v.2a398.57 398.57 0 0 0 117 282.5c36.7 36.7 79.4 65.5 127 85.6A396.64 396.64 0 0 0 471.6 952c27 0 53.6-2.7 79.7-7.9-25.9 5.2-52.4 7.8-79.3 7.8-54 .1-106.4-10.5-155.8-31.4zM560 472c-4.4 0-8-3.6-8-8V79.9c0-1.3.3-2.5.9-3.6-.9 1.3-1.5 2.9-1.5 4.6v383.7c0 4.4 3.6 8 8 8l383.6-1c1.6 0 3.1-.5 4.4-1.3-1 .5-2.2.7-3.4.7l-384 1z'
- ], [
- secondaryColor,
- 'M619.8 147.6v256.6l256.4-.7c-13-62.5-44.3-120.5-90-166.1a332.24 332.24 0 0 0-166.4-89.8z'
- ], [
- secondaryColor,
- 'M438 221.7c-75.9 7.6-146.2 40.9-200.8 95.5C174.5 379.9 140 463.3 140 552s34.5 172.1 97.2 234.8c62.3 62.3 145.1 96.8 233.2 97.2 88.2.4 172.7-34.1 235.3-96.2C761 733 794.6 662.3 802.3 586H438V221.7z'
- ], [
- primaryColor,
- 'M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 0 0-282.8 117.1 398.19 398.19 0 0 0-85.7 127.1A397.61 397.61 0 0 0 72 552v.2c0 53.9 10.6 106.2 31.4 155.5 20.1 47.6 49 90.4 85.7 127.1 36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 0 0 472 952c26.9 0 53.4-2.6 79.3-7.8 26.1-5.3 51.7-13.1 76.4-23.6 47.6-20.1 90.4-49 127.1-85.7 36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 0 0 872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 0 1 470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552s34.5-172.1 97.2-234.8c54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8z'
- ], [
- primaryColor,
- 'M952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 0 0 589 74.6L560.7 72c-3.4-.3-6.4 1.5-7.8 4.3a8.7 8.7 0 0 0-.9 3.6V464c0 4.4 3.6 8 8 8l384-1c1.2 0 2.3-.3 3.4-.7a8.1 8.1 0 0 0 4.6-7.9zm-332.2-58.2V147.6a332.24 332.24 0 0 1 166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z'
- ]);
- });
- exports.PlusCircleTwoTone = getIcon('plus-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm192 396c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z'
- ], [
- primaryColor,
- 'M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
- ]);
- });
- exports.PlusSquareTwoTone = getIcon('plus-square', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm136-352c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48z'
- ], [
- primaryColor,
- 'M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
- ]);
- });
- exports.PoundCircleTwoTone = getIcon('pound-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm146 582.1c0 4.4-3.6 8-8 8H376.2c-4.4 0-8-3.6-8-8v-38.5c0-3.7 2.5-6.9 6.1-7.8 44-10.9 72.8-49 72.8-94.2 0-14.7-2.5-29.4-5.9-44.2H374c-4.4 0-8-3.6-8-8v-30c0-4.4 3.6-8 8-8h53.7c-7.8-25.1-14.6-50.7-14.6-77.1 0-75.8 58.6-120.3 151.5-120.3 26.5 0 51.4 5.5 70.3 12.7 3.1 1.2 5.2 4.2 5.2 7.5v39.5a8 8 0 0 1-10.6 7.6c-17.9-6.4-39-10.5-60.4-10.5-53.3 0-87.3 26.6-87.3 70.2 0 24.7 6.2 47.9 13.4 70.5h112c4.4 0 8 3.6 8 8v30c0 4.4-3.6 8-8 8h-98.6c3.1 13.2 5.3 26.9 5.3 41 0 40.7-16.5 73.9-43.9 91.1v4.7h180c4.4 0 8 3.6 8 8v39.8z'
- ], [
- primaryColor,
- 'M650 674.3H470v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.8-5.3-41h98.6c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8h-112c-7.2-22.6-13.4-45.8-13.4-70.5 0-43.6 34-70.2 87.3-70.2 21.4 0 42.5 4.1 60.4 10.5a8 8 0 0 0 10.6-7.6v-39.5c0-3.3-2.1-6.3-5.2-7.5-18.9-7.2-43.8-12.7-70.3-12.7-92.9 0-151.5 44.5-151.5 120.3 0 26.4 6.8 52 14.6 77.1H374c-4.4 0-8 3.6-8 8v30c0 4.4 3.6 8 8 8h67.2c3.4 14.8 5.9 29.5 5.9 44.2 0 45.2-28.8 83.3-72.8 94.2-3.6.9-6.1 4.1-6.1 7.8v38.5c0 4.4 3.6 8 8 8H650c4.4 0 8-3.6 8-8v-39.8c0-4.4-3.6-8-8-8z'
- ]);
- });
- exports.PrinterTwoTone = getIcon('printer', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M360 180h304v152H360zm492 220H172c-6.6 0-12 5.4-12 12v292h132V500h440v204h132V412c0-6.6-5.4-12-12-12zm-24 84c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z'
- ], [
- primaryColor,
- 'M852 332H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z'
- ], [
- primaryColor,
- 'M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8z'
- ]);
- });
- exports.ProfileTwoTone = getIcon('profile', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm300-496c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zM380 328c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
- ], [
- primaryColor,
- 'M340 656a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm152 320h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
- ]);
- });
- exports.ProjectTwoTone = getIcon('project', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm472-560c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v256c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280zm-192 0c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280zm-192 0c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v464c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280z'
- ], [
- primaryColor,
- 'M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8z'
- ]);
- });
- exports.PushpinTwoTone = getIcon('pushpin', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M474.8 357.7l-24.5 24.5-34.4-3.8c-9.6-1.1-19.3-1.6-28.9-1.6-29 0-57.5 4.7-84.7 14.1-14 4.8-27.4 10.8-40.3 17.9l353.1 353.3a259.92 259.92 0 0 0 30.4-153.9l-3.8-34.4 24.5-24.5L800 415.5 608.5 224 474.8 357.7z'
- ], [
- primaryColor,
- 'M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 0 0-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 0 1-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z'
- ]);
- });
- exports.PropertySafetyTwoTone = getIcon('property-safety', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
- ], [
- secondaryColor,
- 'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM593.9 318h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V658c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8H418c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7H418c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3L585 323.5a10 10 0 0 1 8.9-5.5z'
- ], [
- primaryColor,
- 'M438.9 323.5a9.88 9.88 0 0 0-8.9-5.5h-46c-1.7 0-3.3.4-4.8 1.2-4.9 2.7-6.6 8.8-4 13.6l88 161.1H418c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1v29.7H418c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1V658c0 5.5 4.5 10 10 10h41.3c5.5 0 10-4.5 10-10v-51.8h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-63.4v-29.7h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-45.7l87.7-161.1c.8-1.5 1.2-3.1 1.1-4.8 0-5.5-4.5-10-10-10h-45a10 10 0 0 0-8.9 5.5l-73.2 144.3-72.9-144.3z'
- ]);
- });
- exports.QuestionCircleTwoTone = getIcon('question-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm0 632c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z'
- ], [
- primaryColor,
- 'M472 732a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm151.6-415.3C593.6 290.5 554 276 512 276s-81.6 14.4-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.2 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0 1 30.9-44.8c59-22.7 97.1-74.7 97.1-132.5 0-39.3-17.2-76-48.4-103.3z'
- ]);
- });
- exports.ReconciliationTwoTone = getIcon('reconciliation', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M740 344H404V240H304v160h176c17.7 0 32 14.3 32 32v360h328V240H740v104zM584 448c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56zm92 301c-50.8 0-92-41.2-92-92s41.2-92 92-92 92 41.2 92 92-41.2 92-92 92zm92-341v96c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8z'
- ], [secondaryColor, 'M642 657a34 34 0 1 0 68 0 34 34 0 1 0-68 0z'], [
- primaryColor,
- 'M592 512h48c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm112-104v96c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-96c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z'
- ], [
- primaryColor,
- 'M880 168H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zm-412 64h72v-56h64v56h72v48H468v-48zm-20 616H176V616h272v232zm0-296H176v-88h272v88zm392 240H512V432c0-17.7-14.3-32-32-32H304V240h100v104h336V240h100v552z'
- ], [
- primaryColor,
- 'M676 565c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34z'
- ]);
- });
- exports.RedEnvelopeTwoTone = getIcon('red-envelope', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V193.1l260.3 204.1c11.6 9.1 27.9 9.1 39.5 0L792 193.1V888zm0-751.3h-31.7L512 331.3 263.7 136.7H232v-.7h560v.7z'
- ], [
- secondaryColor,
- 'M492.3 397.2L232 193.1V888h560V193.1L531.8 397.2a31.99 31.99 0 0 1-39.5 0zm99.4 60.9h47.8a8.45 8.45 0 0 1 7.4 12.4l-87.2 161h45.9c4.6 0 8.4 3.8 8.4 8.4V665c0 4.6-3.8 8.4-8.4 8.4h-63.3V702h63.3c4.6 0 8.4 3.8 8.4 8.4v25c.2 4.7-3.5 8.5-8.2 8.5h-63.3v49.9c0 4.6-3.8 8.4-8.4 8.4h-43.7c-4.6 0-8.4-3.8-8.4-8.4v-49.9h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h63v-28.6h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h45.4L377 470.4a8.4 8.4 0 0 1 3.4-11.4c1.3-.6 2.6-1 3.9-1h48.8c3.2 0 6.1 1.8 7.5 4.6l71.7 142 71.9-141.9a8.6 8.6 0 0 1 7.5-4.6z'
- ], [secondaryColor, 'M232 136.7h31.7L512 331.3l248.3-194.6H792v-.7H232z'], [
- primaryColor,
- 'M440.6 462.6a8.38 8.38 0 0 0-7.5-4.6h-48.8c-1.3 0-2.6.4-3.9 1a8.4 8.4 0 0 0-3.4 11.4l87.4 161.1H419c-4.6 0-8.4 3.8-8.4 8.4V665c0 4.6 3.8 8.4 8.4 8.4h63V702h-63c-4.6 0-8.4 3.8-8.4 8.4v25.1c0 4.6 3.8 8.4 8.4 8.4h63v49.9c0 4.6 3.8 8.4 8.4 8.4h43.7c4.6 0 8.4-3.8 8.4-8.4v-49.9h63.3c4.7 0 8.4-3.8 8.2-8.5v-25c0-4.6-3.8-8.4-8.4-8.4h-63.3v-28.6h63.3c4.6 0 8.4-3.8 8.4-8.4v-25.1c0-4.6-3.8-8.4-8.4-8.4h-45.9l87.2-161a8.45 8.45 0 0 0-7.4-12.4h-47.8c-3.1 0-6 1.8-7.5 4.6l-71.9 141.9-71.7-142z'
- ]);
- });
- exports.RestTwoTone = getIcon('rest', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M326.4 844h363.2l44.3-520H282l44.4 520zM508 416c79.5 0 144 64.5 144 144s-64.5 144-144 144-144-64.5-144-144 64.5-144 144-144z'
- ], [
- primaryColor,
- 'M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z'
- ], [
- primaryColor,
- 'M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z'
- ]);
- });
- exports.RightCircleTwoTone = getIcon('right-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm154.7 378.4l-246 178c-5.3 3.8-12.7 0-12.7-6.5V643c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.7 0 12.9z'
- ], [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- primaryColor,
- 'M666.7 505.5l-246-178c-5.3-3.8-12.7 0-12.7 6.5v46.9c0 10.3 4.9 19.9 13.2 25.9L566.6 512 421.2 617.1c-8.3 6-13.2 15.7-13.2 25.9v46.9c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.7 0-12.9z'
- ]);
- });
- exports.RocketTwoTone = getIcon('rocket', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M261.7 621.4c-9.4 14.6-17 30.3-22.5 46.6H324V558.7c-24.8 16.2-46 37.5-62.3 62.7zM700 558.7V668h84.8c-5.5-16.3-13.1-32-22.5-46.6a211.6 211.6 0 0 0-62.3-62.7zm-64-239.9l-124-147-124 147V668h248V318.8zM512 448a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
- ], [
- primaryColor,
- 'M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8L864 736zm-540-68h-84.8c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668zm64-184.9V318.8l124-147 124 147V668H388V483.1zm240.1 301.1c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5s-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM700 668V558.7a211.6 211.6 0 0 1 62.3 62.7c9.4 14.6 17 30.3 22.5 46.6H700z'
- ], [primaryColor, 'M464 400a48 48 0 1 0 96 0 48 48 0 1 0-96 0z']);
- });
- exports.RightSquareTwoTone = getIcon('right-square', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm216-196.9c0-10.2 4.9-19.9 13.2-25.9L558.6 512 413.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.7 0 12.9l-246 178c-5.3 3.9-12.7.1-12.7-6.4v-46.9z'
- ], [
- primaryColor,
- 'M412.7 696.4l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5v46.9c0 10.3 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.7-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.4z'
- ]);
- });
- exports.SafetyCertificateTwoTone = getIcon('safety-certificate', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
- ], [
- secondaryColor,
- 'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM632.8 328H688c6.5 0 10.3 7.4 6.5 12.7L481.9 633.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89.1 150.9-207.8c3-4.1 7.9-6.6 13-6.6z'
- ], [
- primaryColor,
- 'M404.2 453.3c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z'
- ]);
- });
- exports.SaveTwoTone = getIcon('save', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z'
- ], [
- primaryColor,
- 'M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z'
- ], [
- primaryColor,
- 'M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 0 0-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z'
- ]);
- });
- exports.ScheduleTwoTone = getIcon('schedule', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M768 352c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H548v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H328v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H136v496h752V296H768v56zM424 688c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-136c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm374.4-91.2l-165 228.7a15.9 15.9 0 0 1-25.8 0L493.5 531.3c-3.8-5.3 0-12.7 6.5-12.7h54.9c5.1 0 9.9 2.4 12.9 6.6l52.8 73.1 103.6-143.7c3-4.1 7.8-6.6 12.8-6.5h54.9c6.5 0 10.3 7.4 6.5 12.7z'
- ], [
- primaryColor,
- 'M724.2 454.6L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0 0 25.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5zM416 496H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
- ], [
- primaryColor,
- 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z'
- ], [
- primaryColor,
- 'M416 632H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
- ]);
- });
- exports.SecurityScanTwoTone = getIcon('security-scan', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
- ], [
- secondaryColor,
- 'M460.7 451.1a80.1 80.1 0 1 0 160.2 0 80.1 80.1 0 1 0-160.2 0z'
- ], [
- secondaryColor,
- 'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zm428.7 122.5c56.3 56.3 56.3 147.5 0 203.8-48.5 48.5-123 55.2-178.6 20.1l-77.5 77.5a8.03 8.03 0 0 1-11.3 0l-34-34a8.03 8.03 0 0 1 0-11.3l77.5-77.5c-35.1-55.7-28.4-130.1 20.1-178.6 56.3-56.3 147.5-56.3 203.8 0z'
- ], [
- primaryColor,
- 'M418.8 527.8l-77.5 77.5a8.03 8.03 0 0 0 0 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.6 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 122.9-20.1 178.6zm65.4-133.3a80.1 80.1 0 0 1 113.3 0 80.1 80.1 0 0 1 0 113.3c-31.3 31.3-82 31.3-113.3 0s-31.3-82 0-113.3z'
- ]);
- });
- exports.SettingTwoTone = getIcon('setting', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M859.3 569.7l.2.1c3.1-18.9 4.6-38.2 4.6-57.3 0-17.1-1.3-34.3-3.7-51.1 2.4 16.7 3.6 33.6 3.6 50.5 0 19.4-1.6 38.8-4.7 57.8zM99 398.1c-.5-.4-.9-.8-1.4-1.3.7.7 1.4 1.4 2.2 2.1l65.5 55.9v-.1L99 398.1zm536.6-216h.1l-15.5-83.8c-.2-1-.4-1.9-.7-2.8.1.5.3 1.1.4 1.6l15.7 85zm54 546.5l31.4-25.8 92.8 32.9c17-22.9 31.3-47.5 42.6-73.6l-74.7-63.9 6.6-40.1c2.5-15.1 3.8-30.6 3.8-46.1s-1.3-31-3.8-46.1l-6.5-39.9 74.7-63.9c-11.4-26-25.6-50.7-42.6-73.6l-92.8 32.9-31.4-25.8c-23.9-19.6-50.6-35-79.3-45.8l-38.1-14.3-17.9-97a377.5 377.5 0 0 0-85 0l-17.9 97.2-37.9 14.3c-28.5 10.8-55 26.2-78.7 45.7l-31.4 25.9-93.4-33.2c-17 22.9-31.3 47.5-42.6 73.6l75.5 64.5-6.5 40c-2.5 14.9-3.7 30.2-3.7 45.5 0 15.2 1.3 30.6 3.7 45.5l6.5 40-75.5 64.5c11.4 26 25.6 50.7 42.6 73.6l93.4-33.2 31.4 25.9c23.7 19.5 50.2 34.9 78.7 45.7l37.8 14.5 17.9 97.2c28.2 3.2 56.9 3.2 85 0l17.9-97 38.1-14.3c28.8-10.8 55.4-26.2 79.3-45.8zm-177.1-50.3c-30.5 0-59.2-7.8-84.3-21.5C373.3 627 336 568.9 336 502c0-97.2 78.8-176 176-176 66.9 0 125 37.3 154.8 92.2 13.7 25 21.5 53.7 21.5 84.3 0 97.1-78.7 175.8-175.8 175.8zM207.2 812.8c-5.5 1.9-11.2 2.3-16.6 1.2 5.7 1.2 11.7 1 17.5-1l81.4-29c-.1-.1-.3-.2-.4-.3l-81.9 29.1zm717.6-414.7l-65.5 56c0 .2.1.5.1.7l65.4-55.9c7.1-6.1 11.1-14.9 11.2-24-.3 8.8-4.3 17.3-11.2 23.2z'
- ], [
- secondaryColor,
- 'M935.8 646.6c.5 4.7 0 9.5-1.7 14.1l-.9 2.6a446.02 446.02 0 0 1-79.7 137.9l-1.8 2.1a32 32 0 0 1-35.1 9.5l-81.3-28.9a350 350 0 0 1-99.7 57.6l-15.7 85a32.05 32.05 0 0 1-25.8 25.7l-2.7.5a445.2 445.2 0 0 1-79.2 7.1h.3c26.7 0 53.4-2.4 79.4-7.1l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c1.6-4.7 2.1-9.7 1.5-14.5z'
- ], [
- primaryColor,
- 'M688 502c0-30.3-7.7-58.9-21.2-83.8C637 363.3 578.9 326 512 326c-97.2 0-176 78.8-176 176 0 66.9 37.3 125 92.2 154.8 24.9 13.5 53.4 21.2 83.8 21.2 97.2 0 176-78.8 176-176zm-288 0c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502z'
- ], [
- primaryColor,
- 'M594.1 952.2a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c1.7-4.6 2.2-9.4 1.7-14.1-.9-7.9-4.7-15.4-11-20.9l-65.3-55.9-.2-.1c3.1-19 4.7-38.4 4.7-57.8 0-16.9-1.2-33.9-3.6-50.5-.3-2.2-.7-4.4-1-6.6 0-.2-.1-.5-.1-.7l65.5-56c6.9-5.9 10.9-14.4 11.2-23.2.1-4-.5-8.1-1.9-12l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.4-44-99.6-57.6h-.1l-15.7-85c-.1-.5-.2-1.1-.4-1.6a32.08 32.08 0 0 0-25.4-24.1l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6a32.09 32.09 0 0 0 7.9 33.9c.5.4.9.9 1.4 1.3l66.3 56.6v.1c-3.1 18.8-4.6 37.9-4.6 57 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1c4.9 5.7 11.4 9.4 18.5 10.7 5.4 1 11.1.7 16.6-1.2l81.9-29.1c.1.1.3.2.4.3 29.7 24.3 62.8 43.6 98.6 57.1l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5c26.1 4.7 52.8 7.1 79.5 7.1h.3c26.6 0 53.3-2.4 79.2-7.1l2.7-.5zm-39.8-66.5a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97z'
- ]);
- });
- exports.ShopTwoTone = getIcon('shop', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M839.5 344h-655c-.3 0-.5.2-.5.5v91.2c0 59.8 49 108.3 109.3 108.3 40.7 0 76.2-22 95.1-54.7 2.9-5.1 8.4-8.3 14.3-8.3s11.3 3.2 14.3 8.3c18.8 32.7 54.3 54.7 95 54.7 40.8 0 76.4-22.1 95.1-54.9 2.9-5 8.2-8.1 13.9-8.1h.6c5.8 0 11 3.1 13.9 8.1 18.8 32.8 54.4 54.9 95.2 54.9C791 544 840 495.5 840 435.7v-91.2c0-.3-.2-.5-.5-.5z'
- ], [
- primaryColor,
- 'M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234.4 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c3-1.3 6-2.6 9-4v242.2zM840 435.7c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 0 1 512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 0 1-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z'
- ]);
- });
- exports.ShoppingTwoTone = getIcon('shopping', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M696 472c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-88H400v88c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-88h-96v456h560V384h-96v88z'
- ], [
- primaryColor,
- 'M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z'
- ]);
- });
- exports.SkinTwoTone = getIcon('skin', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512 318c-79.2 0-148.5-48.8-176.7-120H182v196h119v432h422V394h119V198H688.7c-28.2 71.2-97.5 120-176.7 120z'
- ], [
- primaryColor,
- 'M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z'
- ]);
- });
- exports.SlidersTwoTone = getIcon('sliders', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M180 292h80v440h-80zm369 180h-74a3 3 0 0 0-3 3v74a3 3 0 0 0 3 3h74a3 3 0 0 0 3-3v-74a3 3 0 0 0-3-3zm215-108h80v296h-80z'
- ], [
- primaryColor,
- 'M904 296h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 0 1-3 3h-74a3 3 0 0 1-3-3v-74a3 3 0 0 1 3-3h74a3 3 0 0 1 3 3v74zM320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440z'
- ]);
- });
- exports.SmileTwoTone = getIcon('smile', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 0 1 8-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 0 1 8 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
- ], [
- primaryColor,
- 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm376 112h-48.1c-4.2 0-7.8 3.2-8.1 7.4-3.7 49.5-45.3 88.6-95.8 88.6s-92-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4zm-24-112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
- ]);
- });
- exports.SnippetsTwoTone = getIcon('snippets', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M450 510V336H232v552h432V550H490c-22.1 0-40-17.9-40-40z'
- ], [
- primaryColor,
- 'M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z'
- ]);
- });
- exports.SoundTwoTone = getIcon('sound', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M275.4 424H146v176h129.4l18 11.7L586 803V221L293.3 412.3z'
- ], [
- primaryColor,
- 'M892.1 737.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM934 476H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344zM625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582z'
- ]);
- });
- exports.StarTwoTone = getIcon('star', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z'
- ], [
- primaryColor,
- 'M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0 0 46.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z'
- ]);
- });
- exports.StopTwoTone = getIcon('stop', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm288.5 682.8L277.7 224C258 240 240 258 224 277.7l522.8 522.8C682.8 852.7 601 884 512 884c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372c89 0 170.8-31.3 234.8-83.5L224 277.7c16-19.7 34-37.7 53.7-53.7l522.8 522.8C852.7 682.8 884 601 884 512c0-205.4-166.6-372-372-372z'
- ]);
- });
- exports.SwitcherTwoTone = getIcon('switcher', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [secondaryColor, 'M184 840h528V312H184v528zm116-290h296v64H300v-64z'], [
- primaryColor,
- 'M880 112H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32z'
- ], [
- primaryColor,
- 'M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528z'
- ], [primaryColor, 'M300 550h296v64H300z']);
- });
- exports.TabletTwoTone = getIcon('tablet', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H232V136h560v752z'
- ], [
- secondaryColor,
- 'M232 888h560V136H232v752zm280-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
- ], [primaryColor, 'M472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z']);
- });
- exports.TagTwoTone = getIcon('tag', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M589 164.6L189.3 564.3l270.4 270.4L859.4 435 836 188l-247-23.4zM680 432c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88z'
- ], [
- primaryColor,
- 'M680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z'
- ], [
- primaryColor,
- 'M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8a9.9 9.9 0 0 0 7.1 2.9c2.7 0 5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7z'
- ]);
- });
- exports.TagsTwoTone = getIcon('tags', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M477.5 694l311.9-311.8-19-224.6-224.6-19-311.9 311.9L477.5 694zm116-415.5a47.81 47.81 0 0 1 33.9-33.9c16.6-4.4 34.2.3 46.4 12.4a47.93 47.93 0 0 1 12.4 46.4 47.81 47.81 0 0 1-33.9 33.9c-16.6 4.4-34.2-.3-46.4-12.4a48.3 48.3 0 0 1-12.4-46.4z'
- ], [
- secondaryColor,
- 'M476.6 792.6c-1.7-.2-3.4-1-4.7-2.3L137.7 456.1a8.03 8.03 0 0 1 0-11.3L515.9 66.6c1.2-1.3 2.9-2.1 4.7-2.3h-.4c-2.3-.2-4.7.6-6.3 2.3L135.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c1.8 1.9 4.3 2.6 6.7 2.3z'
- ], [
- primaryColor,
- 'M889.7 539.8l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3zM652.3 337.3a47.81 47.81 0 0 0 33.9-33.9c4.4-16.6-.3-34.2-12.4-46.4a47.93 47.93 0 0 0-46.4-12.4 47.81 47.81 0 0 0-33.9 33.9c-4.4 16.6.3 34.2 12.4 46.4a48.3 48.3 0 0 0 46.4 12.4z'
- ], [
- primaryColor,
- 'M137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c1.3 1.3 2.9 2.1 4.7 2.3 2.4.3 4.8-.5 6.6-2.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3h-1.6c-1.8.2-3.4 1-4.7 2.3L137.7 444.8zm408.1-306.2l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9z'
- ]);
- });
- exports.ToolTwoTone = getIcon('tool', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M706.8 488.7a32.05 32.05 0 0 1-45.3 0L537 364.2a32.05 32.05 0 0 1 0-45.3l132.9-132.8a184.2 184.2 0 0 0-144 53.5c-58.1 58.1-69.3 145.3-33.6 214.6L439.5 507c-.1 0-.1-.1-.1-.1L209.3 737l79.2 79.2 274-274.1.1.1 8.8-8.8c69.3 35.7 156.5 24.5 214.6-33.6 39.2-39.1 57.3-92.1 53.6-143.9L706.8 488.7z'
- ], [
- primaryColor,
- 'M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 0 1 144-53.5L537 318.9a32.05 32.05 0 0 0 0 45.3l124.5 124.5a32.05 32.05 0 0 0 45.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z'
- ]);
- });
- exports.TrademarkCircleTwoTone = getIcon('trademark-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm170.7 584.2c-1.1.5-2.3.8-3.5.8h-62c-3.1 0-5.9-1.8-7.2-4.6l-74.6-159.2h-88.7V717c0 4.4-3.6 8-8 8H384c-4.4 0-8-3.6-8-8V307c0-4.4 3.6-8 8-8h155.6c98.8 0 144.2 59.9 144.2 131.1 0 70.2-43.6 106.4-78.4 119.2l80.8 164.2c2.1 3.9.4 8.7-3.5 10.7z'
- ], [
- secondaryColor,
- 'M529.9 357h-83.4v148H528c53 0 82.8-25.6 82.8-72.4 0-50.3-32.9-75.6-80.9-75.6z'
- ], [
- primaryColor,
- 'M605.4 549.3c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.4-131.1-144.2-131.1H384c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.7c4.4 0 8-3.6 8-8V561.2h88.7L610 720.4c1.3 2.8 4.1 4.6 7.2 4.6h62c1.2 0 2.4-.3 3.5-.8 3.9-2 5.6-6.8 3.5-10.7l-80.8-164.2zM528 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.6 0 46.8-29.8 72.4-82.8 72.4z'
- ]);
- });
- exports.UnlockTwoTone = getIcon('unlock', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z'
- ], [
- primaryColor,
- 'M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'
- ], [
- primaryColor,
- 'M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304z'
- ]);
- });
- exports.TrophyTwoTone = getIcon('trophy', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M320 480c0 49.1 19.1 95.3 53.9 130.1 34.7 34.8 81 53.9 130.1 53.9h16c49.1 0 95.3-19.1 130.1-53.9 34.8-34.7 53.9-81 53.9-130.1V184H320v296zM184 352c0 41 26.9 75.8 64 87.6-37.1-11.9-64-46.7-64-87.6zm364 382.5C665 721.8 758.4 630.2 773.8 514 758.3 630.2 665 721.7 548 734.5zM250.2 514C265.6 630.2 359 721.8 476 734.5 359 721.7 265.7 630.2 250.2 514z'
- ], [
- primaryColor,
- 'M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM248 439.6a91.99 91.99 0 0 1-64-87.6V232h64v207.6zM704 480c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z'
- ]);
- });
- exports.UpCircleTwoTone = getIcon('up-circle', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm178 479h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 460.4 406.8 605.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z'
- ], [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- primaryColor,
- 'M518.4 360.3a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7h46.9c10.3 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.7 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.4-12.7l-178-246z'
- ]);
- });
- exports.ThunderboltTwoTone = getIcon('thunderbolt', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M695.4 164.1H470.8L281.2 491.5h157.4l-60.3 241 319.8-305.1h-211z'
- ], [
- primaryColor,
- 'M848.1 359.3H627.8L825.9 109c4.1-5.3.4-13-6.3-13H436.1c-2.8 0-5.5 1.5-6.9 4L170.1 547.5c-3.1 5.3.7 12 6.9 12h174.4L262 917.1c-1.9 7.8 7.5 13.3 13.3 7.7L853.6 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.3 732.5l60.3-241H281.2l189.6-327.4h224.6L487.1 427.4h211L378.3 732.5z'
- ]);
- });
- exports.UpSquareTwoTone = getIcon('up-square', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
- ], [
- secondaryColor,
- 'M184 840h656V184H184v656zm143.5-228.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 465.4 406.8 610.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7z'
- ], [
- primaryColor,
- 'M334 624h46.9c10.3 0 19.9-4.9 25.9-13.2L512 465.4l105.2 145.4c6 8.3 15.7 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.4-12.7l-178-246a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7z'
- ]);
- });
- exports.UsbTwoTone = getIcon('usb', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M759.9 504H264.1c-26.5 0-48.1 19.7-48.1 44v292h592V548c0-24.3-21.6-44-48.1-44z'
- ], [
- primaryColor,
- 'M456 248h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm160 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
- ], [
- primaryColor,
- 'M760 432V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zM336 184h352v248H336V184zm472 656H216V548c0-24.3 21.6-44 48.1-44h495.8c26.5 0 48.1 19.7 48.1 44v292z'
- ]);
- });
- exports.VideoCameraTwoTone = getIcon('video-camera', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M136 792h576V232H136v560zm64-488c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48z'
- ], [
- primaryColor,
- 'M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226z'
- ], [
- primaryColor,
- 'M208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
- ]);
- });
- exports.WalletTwoTone = getIcon('wallet', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0-192H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200H184V184h656v200z'
- ], [
- secondaryColor,
- 'M528 576h312V448H528v128zm92-104c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
- ], [primaryColor, 'M580 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'], [
- secondaryColor,
- 'M184 840h656V640H496c-17.7 0-32-14.3-32-32V416c0-17.7 14.3-32 32-32h344V184H184v656z'
- ]);
- });
- exports.WarningTwoTone = getIcon('warning', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z'
- ], [
- secondaryColor,
- 'M172.2 828.1h679.6L512 239.9 172.2 828.1zM560 720a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm-16-304v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8z'
- ], [
- primaryColor,
- 'M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z'
- ]);
- });
- exports.CiTwoTone = getIcon('ci', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-63.5 522.8c49.3 0 82.8-29.4 87-72.4.4-4.1 3.8-7.3 8-7.3h52.7c2.4 0 4.4 2 4.4 4.4 0 77.4-64.3 132.5-152.3 132.5C345.4 720 286 651.4 286 537.4v-49C286 373.5 345.4 304 448.3 304c88.3 0 152.3 56.9 152.3 138.1 0 2.4-2 4.4-4.4 4.4h-52.6c-4.2 0-7.6-3.2-8-7.4-3.9-46.1-37.5-77.6-87-77.6-61.1 0-95.6 45.4-95.7 126.8v49.3c0 80.3 34.5 125.2 95.6 125.2zM738 704.1c0 4.4-3.6 8-8 8h-50.4c-4.4 0-8-3.6-8-8V319.9c0-4.4 3.6-8 8-8H730c4.4 0 8 3.6 8 8v384.2z'
- ], [
- primaryColor,
- 'M730 311.9h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z'
- ]);
- });
- exports.CopyrightTwoTone = getIcon('copyright', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm5.5 533c52.9 0 88.8-31.7 93-77.8.4-4.1 3.8-7.3 8-7.3h56.8c2.6 0 4.7 2.1 4.7 4.7 0 82.6-68.7 141.4-162.7 141.4C407.4 734 344 660.8 344 539.1v-52.3C344 364.2 407.4 290 517.3 290c94.3 0 162.7 60.7 162.7 147.4 0 2.6-2.1 4.7-4.7 4.7h-56.7c-4.2 0-7.7-3.2-8-7.4-4-49.6-40-83.4-93-83.4-65.2 0-102.1 48.5-102.2 135.5v52.6c0 85.7 36.8 133.6 102.1 133.6z'
- ], [
- primaryColor,
- 'M517.6 351.3c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z'
- ]);
- });
- exports.DollarTwoTone = getIcon('dollar', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M426.6 410.3c0 25.4 15.7 45.1 49.5 57.3 4.7 1.9 9.4 3.4 15 5v-124c-37 4.7-64.5 25.4-64.5 61.7zm116.5 135.2c-2.9-.6-5.7-1.3-8.8-2.2V677c42.6-3.8 72-27.3 72-66.4 0-30.7-15.9-50.7-63.2-65.1z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm22.4 589.2l.2 31.7c0 4.5-3.6 8.1-8 8.1h-28.4c-4.4 0-8-3.6-8-8v-31.4c-89-6.5-130.7-57.1-135.2-112.1-.4-4.7 3.3-8.7 8-8.7h46.2c3.9 0 7.3 2.8 7.9 6.6 5.1 31.8 29.9 55.4 74.1 61.3V534l-24.7-6.3c-52.3-12.5-102.1-45.1-102.1-112.7 0-73 55.4-112.1 126.2-119v-33c0-4.4 3.6-8 8-8h28.1c4.4 0 8 3.6 8 8v32.7c68.5 6.9 119.8 46.9 125.9 109.2a8.1 8.1 0 0 1-8 8.8h-44.9c-4 0-7.4-2.9-7.9-6.9-4-29.2-27.5-53-65.5-58.2v134.3l25.4 5.9c64.8 16 108.9 47 109 116.4 0 75.2-56 117.1-134.3 124z'
- ], [
- primaryColor,
- 'M559.7 488.8l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z'
- ]);
- });
- exports.EuroTwoTone = getIcon('euro', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
- ], [
- secondaryColor,
- 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm117.1 581.1c0 3.8-2.7 7-6.4 7.8-15.9 3.4-34.4 5.1-55.3 5.1-109.8 0-183-58.8-200.2-158H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h26.1v-36.9c0-4.4 0-8.7.3-12.8H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h31.8C388.5 345.7 460.7 290 567.4 290c20.9 0 39.4 1.9 55.3 5.4 3.7.8 6.3 4 6.3 7.8V346a8 8 0 0 1-9.6 7.8c-14.6-2.9-31.8-4.4-51.7-4.4-65.3 0-110.4 33.5-127.6 90.4h128.3c4.4 0 8 3.6 8 8V475c0 4.4-3.6 8-8 8H432.5c-.3 4.4-.3 9.1-.3 13.8v36h136.4c4.4 0 8 3.6 8 8V568c0 4.4-3.6 8-8 8H438c15.3 62 61.3 98.6 129.8 98.6 19.9 0 37.1-1.3 51.8-4.1 4.9-1 9.5 2.8 9.5 7.8v42.8z'
- ], [
- primaryColor,
- 'M619.6 670.5c-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H432.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H440.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 0 0 9.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H337c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H337c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8z'
- ]);
- });
- exports.GoldTwoTone = getIcon('gold', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- primaryColor,
- 'M435.7 558.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM196.5 748l20.7-128h159.5l20.7 128H196.5zm709.4 58.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zM626.5 748l20.7-128h159.5l20.7 128H626.5zM342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8zm91.2-196h159.5l20.7 128h-201l20.8-128z'
- ], [
- secondaryColor,
- 'M592.7 276H433.2l-20.8 128h201zM217.2 620l-20.7 128h200.9l-20.7-128zm430 0l-20.7 128h200.9l-20.7-128z'
- ]);
- });
- exports.CanlendarTwoTone = getIcon('canlendar', twotone, function (primaryColor, secondaryColor) {
- return getNode(newViewBox, [
- secondaryColor,
- 'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z'
- ], [
- primaryColor,
- 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z'
- ]);
- });
- /***/ }),
- /***/ "./node_modules/add-dom-event-listener/lib/EventBaseObject.js":
- /*!********************************************************************!*\
- !*** ./node_modules/add-dom-event-listener/lib/EventBaseObject.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * @ignore
- * base event object for custom and dom event.
- * @author yiminghe@gmail.com
- */
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- function returnFalse() {
- return false;
- }
- function returnTrue() {
- return true;
- }
- function EventBaseObject() {
- this.timeStamp = Date.now();
- this.target = undefined;
- this.currentTarget = undefined;
- }
- EventBaseObject.prototype = {
- isEventObject: 1,
- constructor: EventBaseObject,
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse,
- preventDefault: function preventDefault() {
- this.isDefaultPrevented = returnTrue;
- },
- stopPropagation: function stopPropagation() {
- this.isPropagationStopped = returnTrue;
- },
- stopImmediatePropagation: function stopImmediatePropagation() {
- this.isImmediatePropagationStopped = returnTrue;
- // fixed 1.2
- // call stopPropagation implicitly
- this.stopPropagation();
- },
- halt: function halt(immediate) {
- if (immediate) {
- this.stopImmediatePropagation();
- } else {
- this.stopPropagation();
- }
- this.preventDefault();
- }
- };
- exports["default"] = EventBaseObject;
- module.exports = exports["default"];
- /***/ }),
- /***/ "./node_modules/add-dom-event-listener/lib/EventObject.js":
- /*!****************************************************************!*\
- !*** ./node_modules/add-dom-event-listener/lib/EventObject.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * @ignore
- * event object for dom
- * @author yiminghe@gmail.com
- */
- Object.defineProperty(exports, '__esModule', {
- value: true
- });
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
- var _EventBaseObject = __webpack_require__(/*! ./EventBaseObject */ "./node_modules/add-dom-event-listener/lib/EventBaseObject.js");
- var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject);
- var _objectAssign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
- var _objectAssign2 = _interopRequireDefault(_objectAssign);
- var TRUE = true;
- var FALSE = false;
- var commonProps = ['altKey', 'bubbles', 'cancelable', 'ctrlKey', 'currentTarget', 'eventPhase', 'metaKey', 'shiftKey', 'target', 'timeStamp', 'view', 'type'];
- function isNullOrUndefined(w) {
- return w === null || w === undefined;
- }
- var eventNormalizers = [{
- reg: /^key/,
- props: ['char', 'charCode', 'key', 'keyCode', 'which'],
- fix: function fix(event, nativeEvent) {
- if (isNullOrUndefined(event.which)) {
- event.which = !isNullOrUndefined(nativeEvent.charCode) ? nativeEvent.charCode : nativeEvent.keyCode;
- }
- // add metaKey to non-Mac browsers (use ctrl for PC 's and Meta for Macs)
- if (event.metaKey === undefined) {
- event.metaKey = event.ctrlKey;
- }
- }
- }, {
- reg: /^touch/,
- props: ['touches', 'changedTouches', 'targetTouches']
- }, {
- reg: /^hashchange$/,
- props: ['newURL', 'oldURL']
- }, {
- reg: /^gesturechange$/i,
- props: ['rotation', 'scale']
- }, {
- reg: /^(mousewheel|DOMMouseScroll)$/,
- props: [],
- fix: function fix(event, nativeEvent) {
- var deltaX = undefined;
- var deltaY = undefined;
- var delta = undefined;
- var wheelDelta = nativeEvent.wheelDelta;
- var axis = nativeEvent.axis;
- var wheelDeltaY = nativeEvent.wheelDeltaY;
- var wheelDeltaX = nativeEvent.wheelDeltaX;
- var detail = nativeEvent.detail;
- // ie/webkit
- if (wheelDelta) {
- delta = wheelDelta / 120;
- }
- // gecko
- if (detail) {
- // press control e.detail == 1 else e.detail == 3
- delta = 0 - (detail % 3 === 0 ? detail / 3 : detail);
- }
- // Gecko
- if (axis !== undefined) {
- if (axis === event.HORIZONTAL_AXIS) {
- deltaY = 0;
- deltaX = 0 - delta;
- } else if (axis === event.VERTICAL_AXIS) {
- deltaX = 0;
- deltaY = delta;
- }
- }
- // Webkit
- if (wheelDeltaY !== undefined) {
- deltaY = wheelDeltaY / 120;
- }
- if (wheelDeltaX !== undefined) {
- deltaX = -1 * wheelDeltaX / 120;
- }
- // 默认 deltaY (ie)
- if (!deltaX && !deltaY) {
- deltaY = delta;
- }
- if (deltaX !== undefined) {
- /**
- * deltaX of mousewheel event
- * @property deltaX
- * @member Event.DomEvent.Object
- */
- event.deltaX = deltaX;
- }
- if (deltaY !== undefined) {
- /**
- * deltaY of mousewheel event
- * @property deltaY
- * @member Event.DomEvent.Object
- */
- event.deltaY = deltaY;
- }
- if (delta !== undefined) {
- /**
- * delta of mousewheel event
- * @property delta
- * @member Event.DomEvent.Object
- */
- event.delta = delta;
- }
- }
- }, {
- reg: /^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,
- props: ['buttons', 'clientX', 'clientY', 'button', 'offsetX', 'relatedTarget', 'which', 'fromElement', 'toElement', 'offsetY', 'pageX', 'pageY', 'screenX', 'screenY'],
- fix: function fix(event, nativeEvent) {
- var eventDoc = undefined;
- var doc = undefined;
- var body = undefined;
- var target = event.target;
- var button = nativeEvent.button;
- // Calculate pageX/Y if missing and clientX/Y available
- if (target && isNullOrUndefined(event.pageX) && !isNullOrUndefined(nativeEvent.clientX)) {
- eventDoc = target.ownerDocument || document;
- doc = eventDoc.documentElement;
- body = eventDoc.body;
- event.pageX = nativeEvent.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
- event.pageY = nativeEvent.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
- }
- // which for click: 1 === left; 2 === middle; 3 === right
- // do not use button
- if (!event.which && button !== undefined) {
- if (button & 1) {
- event.which = 1;
- } else if (button & 2) {
- event.which = 3;
- } else if (button & 4) {
- event.which = 2;
- } else {
- event.which = 0;
- }
- }
- // add relatedTarget, if necessary
- if (!event.relatedTarget && event.fromElement) {
- event.relatedTarget = event.fromElement === target ? event.toElement : event.fromElement;
- }
- return event;
- }
- }];
- function retTrue() {
- return TRUE;
- }
- function retFalse() {
- return FALSE;
- }
- function DomEventObject(nativeEvent) {
- var type = nativeEvent.type;
- var isNative = typeof nativeEvent.stopPropagation === 'function' || typeof nativeEvent.cancelBubble === 'boolean';
- _EventBaseObject2['default'].call(this);
- this.nativeEvent = nativeEvent;
- // in case dom event has been mark as default prevented by lower dom node
- var isDefaultPrevented = retFalse;
- if ('defaultPrevented' in nativeEvent) {
- isDefaultPrevented = nativeEvent.defaultPrevented ? retTrue : retFalse;
- } else if ('getPreventDefault' in nativeEvent) {
- // https://bugzilla.mozilla.org/show_bug.cgi?id=691151
- isDefaultPrevented = nativeEvent.getPreventDefault() ? retTrue : retFalse;
- } else if ('returnValue' in nativeEvent) {
- isDefaultPrevented = nativeEvent.returnValue === FALSE ? retTrue : retFalse;
- }
- this.isDefaultPrevented = isDefaultPrevented;
- var fixFns = [];
- var fixFn = undefined;
- var l = undefined;
- var prop = undefined;
- var props = commonProps.concat();
- eventNormalizers.forEach(function (normalizer) {
- if (type.match(normalizer.reg)) {
- props = props.concat(normalizer.props);
- if (normalizer.fix) {
- fixFns.push(normalizer.fix);
- }
- }
- });
- l = props.length;
- // clone properties of the original event object
- while (l) {
- prop = props[--l];
- this[prop] = nativeEvent[prop];
- }
- // fix target property, if necessary
- if (!this.target && isNative) {
- this.target = nativeEvent.srcElement || document; // srcElement might not be defined either
- }
- // check if target is a text node (safari)
- if (this.target && this.target.nodeType === 3) {
- this.target = this.target.parentNode;
- }
- l = fixFns.length;
- while (l) {
- fixFn = fixFns[--l];
- fixFn(this, nativeEvent);
- }
- this.timeStamp = nativeEvent.timeStamp || Date.now();
- }
- var EventBaseObjectProto = _EventBaseObject2['default'].prototype;
- (0, _objectAssign2['default'])(DomEventObject.prototype, EventBaseObjectProto, {
- constructor: DomEventObject,
- preventDefault: function preventDefault() {
- var e = this.nativeEvent;
- // if preventDefault exists run it on the original event
- if (e.preventDefault) {
- e.preventDefault();
- } else {
- // otherwise set the returnValue property of the original event to FALSE (IE)
- e.returnValue = FALSE;
- }
- EventBaseObjectProto.preventDefault.call(this);
- },
- stopPropagation: function stopPropagation() {
- var e = this.nativeEvent;
- // if stopPropagation exists run it on the original event
- if (e.stopPropagation) {
- e.stopPropagation();
- } else {
- // otherwise set the cancelBubble property of the original event to TRUE (IE)
- e.cancelBubble = TRUE;
- }
- EventBaseObjectProto.stopPropagation.call(this);
- }
- });
- exports['default'] = DomEventObject;
- module.exports = exports['default'];
- /***/ }),
- /***/ "./node_modules/add-dom-event-listener/lib/index.js":
- /*!**********************************************************!*\
- !*** ./node_modules/add-dom-event-listener/lib/index.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, '__esModule', {
- value: true
- });
- exports['default'] = addEventListener;
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
- var _EventObject = __webpack_require__(/*! ./EventObject */ "./node_modules/add-dom-event-listener/lib/EventObject.js");
- var _EventObject2 = _interopRequireDefault(_EventObject);
- function addEventListener(target, eventType, callback, option) {
- function wrapCallback(e) {
- var ne = new _EventObject2['default'](e);
- callback.call(target, ne);
- }
- if (target.addEventListener) {
- var _ret = (function () {
- var useCapture = false;
- if (typeof option === 'object') {
- useCapture = option.capture || false;
- } else if (typeof option === 'boolean') {
- useCapture = option;
- }
- target.addEventListener(eventType, wrapCallback, option || false);
- return {
- v: {
- remove: function remove() {
- target.removeEventListener(eventType, wrapCallback, useCapture);
- }
- }
- };
- })();
- if (typeof _ret === 'object') return _ret.v;
- } else if (target.attachEvent) {
- target.attachEvent('on' + eventType, wrapCallback);
- return {
- remove: function remove() {
- target.detachEvent('on' + eventType, wrapCallback);
- }
- };
- }
- }
- module.exports = exports['default'];
- /***/ }),
- /***/ "./node_modules/array-tree-filter/lib/index.js":
- /*!*****************************************************!*\
- !*** ./node_modules/array-tree-filter/lib/index.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- (function (global, factory) {
- true ? module.exports = factory() :
- undefined;
- }(this, (function () { 'use strict';
- function arrayTreeFilter(data, filterFn, options) {
- options = options || {};
- options.childrenKeyName = options.childrenKeyName || "children";
- var children = data || [];
- var result = [];
- var level = 0;
- do {
- var foundItem = children.filter(function (item) {
- return filterFn(item, level);
- })[0];
- if (!foundItem) {
- break;
- }
- result.push(foundItem);
- children = foundItem[options.childrenKeyName] || [];
- level += 1;
- } while (children.length > 0);
- return result;
- }
- return arrayTreeFilter;
- })));
- /***/ }),
- /***/ "./node_modules/async-validator/dist-web/index.js":
- /*!********************************************************!*\
- !*** ./node_modules/async-validator/dist-web/index.js ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* WEBPACK VAR INJECTION */(function(process) {function _extends() {
- _extends = Object.assign || function (target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target[key] = source[key];
- }
- }
- }
- return target;
- };
- return _extends.apply(this, arguments);
- }
- function _inheritsLoose(subClass, superClass) {
- subClass.prototype = Object.create(superClass.prototype);
- subClass.prototype.constructor = subClass;
- subClass.__proto__ = superClass;
- }
- function _getPrototypeOf(o) {
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
- return o.__proto__ || Object.getPrototypeOf(o);
- };
- return _getPrototypeOf(o);
- }
- function _setPrototypeOf(o, p) {
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
- o.__proto__ = p;
- return o;
- };
- return _setPrototypeOf(o, p);
- }
- function _isNativeReflectConstruct() {
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
- if (Reflect.construct.sham) return false;
- if (typeof Proxy === "function") return true;
- try {
- Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
- return true;
- } catch (e) {
- return false;
- }
- }
- function _construct(Parent, args, Class) {
- if (_isNativeReflectConstruct()) {
- _construct = Reflect.construct;
- } else {
- _construct = function _construct(Parent, args, Class) {
- var a = [null];
- a.push.apply(a, args);
- var Constructor = Function.bind.apply(Parent, a);
- var instance = new Constructor();
- if (Class) _setPrototypeOf(instance, Class.prototype);
- return instance;
- };
- }
- return _construct.apply(null, arguments);
- }
- function _isNativeFunction(fn) {
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
- }
- function _wrapNativeSuper(Class) {
- var _cache = typeof Map === "function" ? new Map() : undefined;
- _wrapNativeSuper = function _wrapNativeSuper(Class) {
- if (Class === null || !_isNativeFunction(Class)) return Class;
- if (typeof Class !== "function") {
- throw new TypeError("Super expression must either be null or a function");
- }
- if (typeof _cache !== "undefined") {
- if (_cache.has(Class)) return _cache.get(Class);
- _cache.set(Class, Wrapper);
- }
- function Wrapper() {
- return _construct(Class, arguments, _getPrototypeOf(this).constructor);
- }
- Wrapper.prototype = Object.create(Class.prototype, {
- constructor: {
- value: Wrapper,
- enumerable: false,
- writable: true,
- configurable: true
- }
- });
- return _setPrototypeOf(Wrapper, Class);
- };
- return _wrapNativeSuper(Class);
- }
- /* eslint no-console:0 */
- var formatRegExp = /%[sdj%]/g;
- var warning = function warning() {}; // don't print warning message when in production env or node runtime
- if (typeof process !== 'undefined' && process.env && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
- warning = function warning(type, errors) {
- if (typeof console !== 'undefined' && console.warn) {
- if (errors.every(function (e) {
- return typeof e === 'string';
- })) {
- console.warn(type, errors);
- }
- }
- };
- }
- function convertFieldsError(errors) {
- if (!errors || !errors.length) return null;
- var fields = {};
- errors.forEach(function (error) {
- var field = error.field;
- fields[field] = fields[field] || [];
- fields[field].push(error);
- });
- return fields;
- }
- function format() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- var i = 1;
- var f = args[0];
- var len = args.length;
- if (typeof f === 'function') {
- return f.apply(null, args.slice(1));
- }
- if (typeof f === 'string') {
- var str = String(f).replace(formatRegExp, function (x) {
- if (x === '%%') {
- return '%';
- }
- if (i >= len) {
- return x;
- }
- switch (x) {
- case '%s':
- return String(args[i++]);
- case '%d':
- return Number(args[i++]);
- case '%j':
- try {
- return JSON.stringify(args[i++]);
- } catch (_) {
- return '[Circular]';
- }
- break;
- default:
- return x;
- }
- });
- return str;
- }
- return f;
- }
- function isNativeStringType(type) {
- return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'date' || type === 'pattern';
- }
- function isEmptyValue(value, type) {
- if (value === undefined || value === null) {
- return true;
- }
- if (type === 'array' && Array.isArray(value) && !value.length) {
- return true;
- }
- if (isNativeStringType(type) && typeof value === 'string' && !value) {
- return true;
- }
- return false;
- }
- function asyncParallelArray(arr, func, callback) {
- var results = [];
- var total = 0;
- var arrLength = arr.length;
- function count(errors) {
- results.push.apply(results, errors);
- total++;
- if (total === arrLength) {
- callback(results);
- }
- }
- arr.forEach(function (a) {
- func(a, count);
- });
- }
- function asyncSerialArray(arr, func, callback) {
- var index = 0;
- var arrLength = arr.length;
- function next(errors) {
- if (errors && errors.length) {
- callback(errors);
- return;
- }
- var original = index;
- index = index + 1;
- if (original < arrLength) {
- func(arr[original], next);
- } else {
- callback([]);
- }
- }
- next([]);
- }
- function flattenObjArr(objArr) {
- var ret = [];
- Object.keys(objArr).forEach(function (k) {
- ret.push.apply(ret, objArr[k]);
- });
- return ret;
- }
- var AsyncValidationError = /*#__PURE__*/function (_Error) {
- _inheritsLoose(AsyncValidationError, _Error);
- function AsyncValidationError(errors, fields) {
- var _this;
- _this = _Error.call(this, 'Async Validation Error') || this;
- _this.errors = errors;
- _this.fields = fields;
- return _this;
- }
- return AsyncValidationError;
- }( /*#__PURE__*/_wrapNativeSuper(Error));
- function asyncMap(objArr, option, func, callback) {
- if (option.first) {
- var _pending = new Promise(function (resolve, reject) {
- var next = function next(errors) {
- callback(errors);
- return errors.length ? reject(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve();
- };
- var flattenArr = flattenObjArr(objArr);
- asyncSerialArray(flattenArr, func, next);
- });
- _pending["catch"](function (e) {
- return e;
- });
- return _pending;
- }
- var firstFields = option.firstFields || [];
- if (firstFields === true) {
- firstFields = Object.keys(objArr);
- }
- var objArrKeys = Object.keys(objArr);
- var objArrLength = objArrKeys.length;
- var total = 0;
- var results = [];
- var pending = new Promise(function (resolve, reject) {
- var next = function next(errors) {
- results.push.apply(results, errors);
- total++;
- if (total === objArrLength) {
- callback(results);
- return results.length ? reject(new AsyncValidationError(results, convertFieldsError(results))) : resolve();
- }
- };
- if (!objArrKeys.length) {
- callback(results);
- resolve();
- }
- objArrKeys.forEach(function (key) {
- var arr = objArr[key];
- if (firstFields.indexOf(key) !== -1) {
- asyncSerialArray(arr, func, next);
- } else {
- asyncParallelArray(arr, func, next);
- }
- });
- });
- pending["catch"](function (e) {
- return e;
- });
- return pending;
- }
- function complementError(rule) {
- return function (oe) {
- if (oe && oe.message) {
- oe.field = oe.field || rule.fullField;
- return oe;
- }
- return {
- message: typeof oe === 'function' ? oe() : oe,
- field: oe.field || rule.fullField
- };
- };
- }
- function deepMerge(target, source) {
- if (source) {
- for (var s in source) {
- if (source.hasOwnProperty(s)) {
- var value = source[s];
- if (typeof value === 'object' && typeof target[s] === 'object') {
- target[s] = _extends(_extends({}, target[s]), value);
- } else {
- target[s] = value;
- }
- }
- }
- }
- return target;
- }
- /**
- * Rule for validating required fields.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function required(rule, value, source, errors, options, type) {
- if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
- errors.push(format(options.messages.required, rule.fullField));
- }
- }
- /**
- * Rule for validating whitespace.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function whitespace(rule, value, source, errors, options) {
- if (/^\s+$/.test(value) || value === '') {
- errors.push(format(options.messages.whitespace, rule.fullField));
- }
- }
- /* eslint max-len:0 */
- var pattern = {
- // http://emailregex.com/
- email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
- url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
- hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
- };
- var types = {
- integer: function integer(value) {
- return types.number(value) && parseInt(value, 10) === value;
- },
- "float": function float(value) {
- return types.number(value) && !types.integer(value);
- },
- array: function array(value) {
- return Array.isArray(value);
- },
- regexp: function regexp(value) {
- if (value instanceof RegExp) {
- return true;
- }
- try {
- return !!new RegExp(value);
- } catch (e) {
- return false;
- }
- },
- date: function date(value) {
- return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function' && !isNaN(value.getTime());
- },
- number: function number(value) {
- if (isNaN(value)) {
- return false;
- }
- return typeof value === 'number';
- },
- object: function object(value) {
- return typeof value === 'object' && !types.array(value);
- },
- method: function method(value) {
- return typeof value === 'function';
- },
- email: function email(value) {
- return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
- },
- url: function url(value) {
- return typeof value === 'string' && !!value.match(pattern.url);
- },
- hex: function hex(value) {
- return typeof value === 'string' && !!value.match(pattern.hex);
- }
- };
- /**
- * Rule for validating the type of a value.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function type(rule, value, source, errors, options) {
- if (rule.required && value === undefined) {
- required(rule, value, source, errors, options);
- return;
- }
- var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
- var ruleType = rule.type;
- if (custom.indexOf(ruleType) > -1) {
- if (!types[ruleType](value)) {
- errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
- } // straight typeof check
- } else if (ruleType && typeof value !== rule.type) {
- errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
- }
- }
- /**
- * Rule for validating minimum and maximum allowed values.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function range(rule, value, source, errors, options) {
- var len = typeof rule.len === 'number';
- var min = typeof rule.min === 'number';
- var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
- var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
- var val = value;
- var key = null;
- var num = typeof value === 'number';
- var str = typeof value === 'string';
- var arr = Array.isArray(value);
- if (num) {
- key = 'number';
- } else if (str) {
- key = 'string';
- } else if (arr) {
- key = 'array';
- } // if the value is not of a supported type for range validation
- // the validation rule rule should use the
- // type property to also test for a particular type
- if (!key) {
- return false;
- }
- if (arr) {
- val = value.length;
- }
- if (str) {
- // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
- val = value.replace(spRegexp, '_').length;
- }
- if (len) {
- if (val !== rule.len) {
- errors.push(format(options.messages[key].len, rule.fullField, rule.len));
- }
- } else if (min && !max && val < rule.min) {
- errors.push(format(options.messages[key].min, rule.fullField, rule.min));
- } else if (max && !min && val > rule.max) {
- errors.push(format(options.messages[key].max, rule.fullField, rule.max));
- } else if (min && max && (val < rule.min || val > rule.max)) {
- errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
- }
- }
- var ENUM = 'enum';
- /**
- * Rule for validating a value exists in an enumerable list.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function enumerable(rule, value, source, errors, options) {
- rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
- if (rule[ENUM].indexOf(value) === -1) {
- errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
- }
- }
- /**
- * Rule for validating a regular expression pattern.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function pattern$1(rule, value, source, errors, options) {
- if (rule.pattern) {
- if (rule.pattern instanceof RegExp) {
- // if a RegExp instance is passed, reset `lastIndex` in case its `global`
- // flag is accidentally set to `true`, which in a validation scenario
- // is not necessary and the result might be misleading
- rule.pattern.lastIndex = 0;
- if (!rule.pattern.test(value)) {
- errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
- }
- } else if (typeof rule.pattern === 'string') {
- var _pattern = new RegExp(rule.pattern);
- if (!_pattern.test(value)) {
- errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
- }
- }
- }
- }
- var rules = {
- required: required,
- whitespace: whitespace,
- type: type,
- range: range,
- "enum": enumerable,
- pattern: pattern$1
- };
- /**
- * Performs validation for string types.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function string(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, 'string') && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, 'string');
- if (!isEmptyValue(value, 'string')) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- rules.pattern(rule, value, source, errors, options);
- if (rule.whitespace === true) {
- rules.whitespace(rule, value, source, errors, options);
- }
- }
- }
- callback(errors);
- }
- /**
- * Validates a function.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function method(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates a number.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function number(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (value === '') {
- value = undefined;
- }
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates a boolean.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function _boolean(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates the regular expression type.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function regexp(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value)) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates a number is an integer.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function integer(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates a number is a floating point number.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function floatFn(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates an array.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function array(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if ((value === undefined || value === null) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, 'array');
- if (value !== undefined && value !== null) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates an object.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function object(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- var ENUM$1 = 'enum';
- /**
- * Validates an enumerable list.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function enumerable$1(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules[ENUM$1](rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates a regular expression pattern.
- *
- * Performs validation when a rule only contains
- * a pattern property but is not declared as a string type.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function pattern$2(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, 'string') && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value, 'string')) {
- rules.pattern(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- function date(rule, value, callback, source, options) {
- // console.log('integer rule called %j', rule);
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); // console.log('validate on %s value', value);
- if (validate) {
- if (isEmptyValue(value, 'date') && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value, 'date')) {
- var dateObject;
- if (value instanceof Date) {
- dateObject = value;
- } else {
- dateObject = new Date(value);
- }
- rules.type(rule, dateObject, source, errors, options);
- if (dateObject) {
- rules.range(rule, dateObject.getTime(), source, errors, options);
- }
- }
- }
- callback(errors);
- }
- function required$1(rule, value, callback, source, options) {
- var errors = [];
- var type = Array.isArray(value) ? 'array' : typeof value;
- rules.required(rule, value, source, errors, options, type);
- callback(errors);
- }
- function type$1(rule, value, callback, source, options) {
- var ruleType = rule.type;
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, ruleType) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, ruleType);
- if (!isEmptyValue(value, ruleType)) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Performs validation for any type.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function any(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- }
- callback(errors);
- }
- var validators = {
- string: string,
- method: method,
- number: number,
- "boolean": _boolean,
- regexp: regexp,
- integer: integer,
- "float": floatFn,
- array: array,
- object: object,
- "enum": enumerable$1,
- pattern: pattern$2,
- date: date,
- url: type$1,
- hex: type$1,
- email: type$1,
- required: required$1,
- any: any
- };
- function newMessages() {
- return {
- "default": 'Validation error on field %s',
- required: '%s is required',
- "enum": '%s must be one of %s',
- whitespace: '%s cannot be empty',
- date: {
- format: '%s date %s is invalid for format %s',
- parse: '%s date could not be parsed, %s is invalid ',
- invalid: '%s date %s is invalid'
- },
- types: {
- string: '%s is not a %s',
- method: '%s is not a %s (function)',
- array: '%s is not an %s',
- object: '%s is not an %s',
- number: '%s is not a %s',
- date: '%s is not a %s',
- "boolean": '%s is not a %s',
- integer: '%s is not an %s',
- "float": '%s is not a %s',
- regexp: '%s is not a valid %s',
- email: '%s is not a valid %s',
- url: '%s is not a valid %s',
- hex: '%s is not a valid %s'
- },
- string: {
- len: '%s must be exactly %s characters',
- min: '%s must be at least %s characters',
- max: '%s cannot be longer than %s characters',
- range: '%s must be between %s and %s characters'
- },
- number: {
- len: '%s must equal %s',
- min: '%s cannot be less than %s',
- max: '%s cannot be greater than %s',
- range: '%s must be between %s and %s'
- },
- array: {
- len: '%s must be exactly %s in length',
- min: '%s cannot be less than %s in length',
- max: '%s cannot be greater than %s in length',
- range: '%s must be between %s and %s in length'
- },
- pattern: {
- mismatch: '%s value %s does not match pattern %s'
- },
- clone: function clone() {
- var cloned = JSON.parse(JSON.stringify(this));
- cloned.clone = this.clone;
- return cloned;
- }
- };
- }
- var messages = newMessages();
- /**
- * Encapsulates a validation schema.
- *
- * @param descriptor An object declaring validation rules
- * for this schema.
- */
- function Schema(descriptor) {
- this.rules = null;
- this._messages = messages;
- this.define(descriptor);
- }
- Schema.prototype = {
- messages: function messages(_messages) {
- if (_messages) {
- this._messages = deepMerge(newMessages(), _messages);
- }
- return this._messages;
- },
- define: function define(rules) {
- if (!rules) {
- throw new Error('Cannot configure a schema with no rules');
- }
- if (typeof rules !== 'object' || Array.isArray(rules)) {
- throw new Error('Rules must be an object');
- }
- this.rules = {};
- var z;
- var item;
- for (z in rules) {
- if (rules.hasOwnProperty(z)) {
- item = rules[z];
- this.rules[z] = Array.isArray(item) ? item : [item];
- }
- }
- },
- validate: function validate(source_, o, oc) {
- var _this = this;
- if (o === void 0) {
- o = {};
- }
- if (oc === void 0) {
- oc = function oc() {};
- }
- var source = source_;
- var options = o;
- var callback = oc;
- if (typeof options === 'function') {
- callback = options;
- options = {};
- }
- if (!this.rules || Object.keys(this.rules).length === 0) {
- if (callback) {
- callback();
- }
- return Promise.resolve();
- }
- function complete(results) {
- var i;
- var errors = [];
- var fields = {};
- function add(e) {
- if (Array.isArray(e)) {
- var _errors;
- errors = (_errors = errors).concat.apply(_errors, e);
- } else {
- errors.push(e);
- }
- }
- for (i = 0; i < results.length; i++) {
- add(results[i]);
- }
- if (!errors.length) {
- errors = null;
- fields = null;
- } else {
- fields = convertFieldsError(errors);
- }
- callback(errors, fields);
- }
- if (options.messages) {
- var messages$1 = this.messages();
- if (messages$1 === messages) {
- messages$1 = newMessages();
- }
- deepMerge(messages$1, options.messages);
- options.messages = messages$1;
- } else {
- options.messages = this.messages();
- }
- var arr;
- var value;
- var series = {};
- var keys = options.keys || Object.keys(this.rules);
- keys.forEach(function (z) {
- arr = _this.rules[z];
- value = source[z];
- arr.forEach(function (r) {
- var rule = r;
- if (typeof rule.transform === 'function') {
- if (source === source_) {
- source = _extends({}, source);
- }
- value = source[z] = rule.transform(value);
- }
- if (typeof rule === 'function') {
- rule = {
- validator: rule
- };
- } else {
- rule = _extends({}, rule);
- }
- rule.validator = _this.getValidationMethod(rule);
- rule.field = z;
- rule.fullField = rule.fullField || z;
- rule.type = _this.getType(rule);
- if (!rule.validator) {
- return;
- }
- series[z] = series[z] || [];
- series[z].push({
- rule: rule,
- value: value,
- source: source,
- field: z
- });
- });
- });
- var errorFields = {};
- return asyncMap(series, options, function (data, doIt) {
- var rule = data.rule;
- var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField === 'object');
- deep = deep && (rule.required || !rule.required && data.value);
- rule.field = data.field;
- function addFullfield(key, schema) {
- return _extends(_extends({}, schema), {}, {
- fullField: rule.fullField + "." + key
- });
- }
- function cb(e) {
- if (e === void 0) {
- e = [];
- }
- var errors = e;
- if (!Array.isArray(errors)) {
- errors = [errors];
- }
- if (!options.suppressWarning && errors.length) {
- Schema.warning('async-validator:', errors);
- }
- if (errors.length && rule.message !== undefined) {
- errors = [].concat(rule.message);
- }
- errors = errors.map(complementError(rule));
- if (options.first && errors.length) {
- errorFields[rule.field] = 1;
- return doIt(errors);
- }
- if (!deep) {
- doIt(errors);
- } else {
- // if rule is required but the target object
- // does not exist fail at the rule level and don't
- // go deeper
- if (rule.required && !data.value) {
- if (rule.message !== undefined) {
- errors = [].concat(rule.message).map(complementError(rule));
- } else if (options.error) {
- errors = [options.error(rule, format(options.messages.required, rule.field))];
- }
- return doIt(errors);
- }
- var fieldsSchema = {};
- if (rule.defaultField) {
- for (var k in data.value) {
- if (data.value.hasOwnProperty(k)) {
- fieldsSchema[k] = rule.defaultField;
- }
- }
- }
- fieldsSchema = _extends(_extends({}, fieldsSchema), data.rule.fields);
- for (var f in fieldsSchema) {
- if (fieldsSchema.hasOwnProperty(f)) {
- var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
- fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
- }
- }
- var schema = new Schema(fieldsSchema);
- schema.messages(options.messages);
- if (data.rule.options) {
- data.rule.options.messages = options.messages;
- data.rule.options.error = options.error;
- }
- schema.validate(data.value, data.rule.options || options, function (errs) {
- var finalErrors = [];
- if (errors && errors.length) {
- finalErrors.push.apply(finalErrors, errors);
- }
- if (errs && errs.length) {
- finalErrors.push.apply(finalErrors, errs);
- }
- doIt(finalErrors.length ? finalErrors : null);
- });
- }
- }
- var res;
- if (rule.asyncValidator) {
- res = rule.asyncValidator(rule, data.value, cb, data.source, options);
- } else if (rule.validator) {
- res = rule.validator(rule, data.value, cb, data.source, options);
- if (res === true) {
- cb();
- } else if (res === false) {
- cb(rule.message || rule.field + " fails");
- } else if (res instanceof Array) {
- cb(res);
- } else if (res instanceof Error) {
- cb(res.message);
- }
- }
- if (res && res.then) {
- res.then(function () {
- return cb();
- }, function (e) {
- return cb(e);
- });
- }
- }, function (results) {
- complete(results);
- });
- },
- getType: function getType(rule) {
- if (rule.type === undefined && rule.pattern instanceof RegExp) {
- rule.type = 'pattern';
- }
- if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
- throw new Error(format('Unknown rule type %s', rule.type));
- }
- return rule.type || 'string';
- },
- getValidationMethod: function getValidationMethod(rule) {
- if (typeof rule.validator === 'function') {
- return rule.validator;
- }
- var keys = Object.keys(rule);
- var messageIndex = keys.indexOf('message');
- if (messageIndex !== -1) {
- keys.splice(messageIndex, 1);
- }
- if (keys.length === 1 && keys[0] === 'required') {
- return validators.required;
- }
- return validators[this.getType(rule)] || false;
- }
- };
- Schema.register = function register(type, validator) {
- if (typeof validator !== 'function') {
- throw new Error('Cannot register a validator by type, validator is not a function');
- }
- validators[type] = validator;
- };
- Schema.warning = warning;
- Schema.messages = messages;
- Schema.validators = validators;
- /* harmony default export */ __webpack_exports__["default"] = (Schema);
- //# sourceMappingURL=index.js.map
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))
- /***/ }),
- /***/ "./node_modules/babel-helper-vue-jsx-merge-props/index.js":
- /*!****************************************************************!*\
- !*** ./node_modules/babel-helper-vue-jsx-merge-props/index.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/
- module.exports = function mergeJSXProps (objs) {
- return objs.reduce(function (a, b) {
- var aa, bb, key, nestedKey, temp
- for (key in b) {
- aa = a[key]
- bb = b[key]
- if (aa && nestRE.test(key)) {
- // normalize class
- if (key === 'class') {
- if (typeof aa === 'string') {
- temp = aa
- a[key] = aa = {}
- aa[temp] = true
- }
- if (typeof bb === 'string') {
- temp = bb
- b[key] = bb = {}
- bb[temp] = true
- }
- }
- if (key === 'on' || key === 'nativeOn' || key === 'hook') {
- // merge functions
- for (nestedKey in bb) {
- aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey])
- }
- } else if (Array.isArray(aa)) {
- a[key] = aa.concat(bb)
- } else if (Array.isArray(bb)) {
- a[key] = [aa].concat(bb)
- } else {
- for (nestedKey in bb) {
- aa[nestedKey] = bb[nestedKey]
- }
- }
- } else {
- a[key] = b[key]
- }
- }
- return a
- }, {})
- }
- function mergeFn (a, b) {
- return function () {
- a && a.apply(this, arguments)
- b && b.apply(this, arguments)
- }
- }
- /***/ }),
- /***/ "./node_modules/babel-runtime/core-js/array/from.js":
- /*!**********************************************************!*\
- !*** ./node_modules/babel-runtime/core-js/array/from.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(/*! core-js/library/fn/array/from */ "./node_modules/core-js/library/fn/array/from.js"), __esModule: true };
- /***/ }),
- /***/ "./node_modules/babel-runtime/core-js/get-iterator.js":
- /*!************************************************************!*\
- !*** ./node_modules/babel-runtime/core-js/get-iterator.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(/*! core-js/library/fn/get-iterator */ "./node_modules/core-js/library/fn/get-iterator.js"), __esModule: true };
- /***/ }),
- /***/ "./node_modules/babel-runtime/core-js/is-iterable.js":
- /*!***********************************************************!*\
- !*** ./node_modules/babel-runtime/core-js/is-iterable.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(/*! core-js/library/fn/is-iterable */ "./node_modules/core-js/library/fn/is-iterable.js"), __esModule: true };
- /***/ }),
- /***/ "./node_modules/babel-runtime/core-js/object/assign.js":
- /*!*************************************************************!*\
- !*** ./node_modules/babel-runtime/core-js/object/assign.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/assign */ "./node_modules/core-js/library/fn/object/assign.js"), __esModule: true };
- /***/ }),
- /***/ "./node_modules/babel-runtime/core-js/object/define-property.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/babel-runtime/core-js/object/define-property.js ***!
- \**********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/define-property */ "./node_modules/core-js/library/fn/object/define-property.js"), __esModule: true };
- /***/ }),
- /***/ "./node_modules/babel-runtime/core-js/symbol.js":
- /*!******************************************************!*\
- !*** ./node_modules/babel-runtime/core-js/symbol.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol */ "./node_modules/core-js/library/fn/symbol/index.js"), __esModule: true };
- /***/ }),
- /***/ "./node_modules/babel-runtime/core-js/symbol/iterator.js":
- /*!***************************************************************!*\
- !*** ./node_modules/babel-runtime/core-js/symbol/iterator.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol/iterator */ "./node_modules/core-js/library/fn/symbol/iterator.js"), __esModule: true };
- /***/ }),
- /***/ "./node_modules/babel-runtime/helpers/classCallCheck.js":
- /*!**************************************************************!*\
- !*** ./node_modules/babel-runtime/helpers/classCallCheck.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.default = function (instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/helpers/createClass.js":
- /*!***********************************************************!*\
- !*** ./node_modules/babel-runtime/helpers/createClass.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _defineProperty = __webpack_require__(/*! ../core-js/object/define-property */ "./node_modules/babel-runtime/core-js/object/define-property.js");
- var _defineProperty2 = _interopRequireDefault(_defineProperty);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- exports.default = function () {
- function defineProperties(target, props) {
- for (var i = 0; i < props.length; i++) {
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
- (0, _defineProperty2.default)(target, descriptor.key, descriptor);
- }
- }
- return function (Constructor, protoProps, staticProps) {
- if (protoProps) defineProperties(Constructor.prototype, protoProps);
- if (staticProps) defineProperties(Constructor, staticProps);
- return Constructor;
- };
- }();
- /***/ }),
- /***/ "./node_modules/babel-runtime/helpers/defineProperty.js":
- /*!**************************************************************!*\
- !*** ./node_modules/babel-runtime/helpers/defineProperty.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _defineProperty = __webpack_require__(/*! ../core-js/object/define-property */ "./node_modules/babel-runtime/core-js/object/define-property.js");
- 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;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/helpers/extends.js":
- /*!*******************************************************!*\
- !*** ./node_modules/babel-runtime/helpers/extends.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _assign = __webpack_require__(/*! ../core-js/object/assign */ "./node_modules/babel-runtime/core-js/object/assign.js");
- var _assign2 = _interopRequireDefault(_assign);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- exports.default = _assign2.default || function (target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target[key] = source[key];
- }
- }
- }
- return target;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/babel-runtime/helpers/objectWithoutProperties.js ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- exports.default = function (obj, keys) {
- var target = {};
- for (var i in obj) {
- if (keys.indexOf(i) >= 0) continue;
- if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
- target[i] = obj[i];
- }
- return target;
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/helpers/slicedToArray.js":
- /*!*************************************************************!*\
- !*** ./node_modules/babel-runtime/helpers/slicedToArray.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _isIterable2 = __webpack_require__(/*! ../core-js/is-iterable */ "./node_modules/babel-runtime/core-js/is-iterable.js");
- var _isIterable3 = _interopRequireDefault(_isIterable2);
- var _getIterator2 = __webpack_require__(/*! ../core-js/get-iterator */ "./node_modules/babel-runtime/core-js/get-iterator.js");
- var _getIterator3 = _interopRequireDefault(_getIterator2);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- exports.default = function () {
- function sliceIterator(arr, i) {
- var _arr = [];
- var _n = true;
- var _d = false;
- var _e = undefined;
- try {
- for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
- _arr.push(_s.value);
- if (i && _arr.length === i) break;
- }
- } catch (err) {
- _d = true;
- _e = err;
- } finally {
- try {
- if (!_n && _i["return"]) _i["return"]();
- } finally {
- if (_d) throw _e;
- }
- }
- return _arr;
- }
- return function (arr, i) {
- if (Array.isArray(arr)) {
- return arr;
- } else if ((0, _isIterable3.default)(Object(arr))) {
- return sliceIterator(arr, i);
- } else {
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
- }
- };
- }();
- /***/ }),
- /***/ "./node_modules/babel-runtime/helpers/toConsumableArray.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/babel-runtime/helpers/toConsumableArray.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _from = __webpack_require__(/*! ../core-js/array/from */ "./node_modules/babel-runtime/core-js/array/from.js");
- 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);
- }
- };
- /***/ }),
- /***/ "./node_modules/babel-runtime/helpers/typeof.js":
- /*!******************************************************!*\
- !*** ./node_modules/babel-runtime/helpers/typeof.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.__esModule = true;
- var _iterator = __webpack_require__(/*! ../core-js/symbol/iterator */ "./node_modules/babel-runtime/core-js/symbol/iterator.js");
- var _iterator2 = _interopRequireDefault(_iterator);
- var _symbol = __webpack_require__(/*! ../core-js/symbol */ "./node_modules/babel-runtime/core-js/symbol.js");
- 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);
- };
- /***/ }),
- /***/ "./node_modules/classnames/index.js":
- /*!******************************************!*\
- !*** ./node_modules/classnames/index.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2018 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
- */
- /* global define */
- (function () {
- 'use strict';
- var hasOwn = {}.hasOwnProperty;
- function classNames() {
- var classes = [];
- for (var i = 0; i < arguments.length; i++) {
- var arg = arguments[i];
- if (!arg) continue;
- var argType = typeof arg;
- if (argType === 'string' || argType === 'number') {
- classes.push(arg);
- } else if (Array.isArray(arg)) {
- if (arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (argType === 'object') {
- if (arg.toString === Object.prototype.toString) {
- for (var key in arg) {
- if (hasOwn.call(arg, key) && arg[key]) {
- classes.push(key);
- }
- }
- } else {
- classes.push(arg.toString());
- }
- }
- }
- return classes.join(' ');
- }
- if ( true && module.exports) {
- classNames.default = classNames;
- module.exports = classNames;
- } else if (true) {
- // register as 'classnames', consistent with npm package name
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
- return classNames;
- }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- } else {}
- }());
- /***/ }),
- /***/ "./node_modules/component-classes/index.js":
- /*!*************************************************!*\
- !*** ./node_modules/component-classes/index.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /**
- * Module dependencies.
- */
- try {
- var index = __webpack_require__(/*! indexof */ "./node_modules/component-indexof/index.js");
- } catch (err) {
- var index = __webpack_require__(/*! component-indexof */ "./node_modules/component-indexof/index.js");
- }
- /**
- * Whitespace regexp.
- */
- var re = /\s+/;
- /**
- * toString reference.
- */
- var toString = Object.prototype.toString;
- /**
- * Wrap `el` in a `ClassList`.
- *
- * @param {Element} el
- * @return {ClassList}
- * @api public
- */
- module.exports = function(el){
- return new ClassList(el);
- };
- /**
- * Initialize a new ClassList for `el`.
- *
- * @param {Element} el
- * @api private
- */
- function ClassList(el) {
- if (!el || !el.nodeType) {
- throw new Error('A DOM element reference is required');
- }
- this.el = el;
- this.list = el.classList;
- }
- /**
- * Add class `name` if not already present.
- *
- * @param {String} name
- * @return {ClassList}
- * @api public
- */
- ClassList.prototype.add = function(name){
- // classList
- if (this.list) {
- this.list.add(name);
- return this;
- }
- // fallback
- var arr = this.array();
- var i = index(arr, name);
- if (!~i) arr.push(name);
- this.el.className = arr.join(' ');
- return this;
- };
- /**
- * Remove class `name` when present, or
- * pass a regular expression to remove
- * any which match.
- *
- * @param {String|RegExp} name
- * @return {ClassList}
- * @api public
- */
- ClassList.prototype.remove = function(name){
- if ('[object RegExp]' == toString.call(name)) {
- return this.removeMatching(name);
- }
- // classList
- if (this.list) {
- this.list.remove(name);
- return this;
- }
- // fallback
- var arr = this.array();
- var i = index(arr, name);
- if (~i) arr.splice(i, 1);
- this.el.className = arr.join(' ');
- return this;
- };
- /**
- * Remove all classes matching `re`.
- *
- * @param {RegExp} re
- * @return {ClassList}
- * @api private
- */
- ClassList.prototype.removeMatching = function(re){
- var arr = this.array();
- for (var i = 0; i < arr.length; i++) {
- if (re.test(arr[i])) {
- this.remove(arr[i]);
- }
- }
- return this;
- };
- /**
- * Toggle class `name`, can force state via `force`.
- *
- * For browsers that support classList, but do not support `force` yet,
- * the mistake will be detected and corrected.
- *
- * @param {String} name
- * @param {Boolean} force
- * @return {ClassList}
- * @api public
- */
- ClassList.prototype.toggle = function(name, force){
- // classList
- if (this.list) {
- if ("undefined" !== typeof force) {
- if (force !== this.list.toggle(name, force)) {
- this.list.toggle(name); // toggle again to correct
- }
- } else {
- this.list.toggle(name);
- }
- return this;
- }
- // fallback
- if ("undefined" !== typeof force) {
- if (!force) {
- this.remove(name);
- } else {
- this.add(name);
- }
- } else {
- if (this.has(name)) {
- this.remove(name);
- } else {
- this.add(name);
- }
- }
- return this;
- };
- /**
- * Return an array of classes.
- *
- * @return {Array}
- * @api public
- */
- ClassList.prototype.array = function(){
- var className = this.el.getAttribute('class') || '';
- var str = className.replace(/^\s+|\s+$/g, '');
- var arr = str.split(re);
- if ('' === arr[0]) arr.shift();
- return arr;
- };
- /**
- * Check if class `name` is present.
- *
- * @param {String} name
- * @return {ClassList}
- * @api public
- */
- ClassList.prototype.has =
- ClassList.prototype.contains = function(name){
- return this.list
- ? this.list.contains(name)
- : !! ~index(this.array(), name);
- };
- /***/ }),
- /***/ "./node_modules/component-indexof/index.js":
- /*!*************************************************!*\
- !*** ./node_modules/component-indexof/index.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function(arr, obj){
- if (arr.indexOf) return arr.indexOf(obj);
- for (var i = 0; i < arr.length; ++i) {
- if (arr[i] === obj) return i;
- }
- return -1;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/fn/array/from.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/library/fn/array/from.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
- __webpack_require__(/*! ../../modules/es6.array.from */ "./node_modules/core-js/library/modules/es6.array.from.js");
- module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Array.from;
- /***/ }),
- /***/ "./node_modules/core-js/library/fn/get-iterator.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/library/fn/get-iterator.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ../modules/web.dom.iterable */ "./node_modules/core-js/library/modules/web.dom.iterable.js");
- __webpack_require__(/*! ../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
- module.exports = __webpack_require__(/*! ../modules/core.get-iterator */ "./node_modules/core-js/library/modules/core.get-iterator.js");
- /***/ }),
- /***/ "./node_modules/core-js/library/fn/is-iterable.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/library/fn/is-iterable.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ../modules/web.dom.iterable */ "./node_modules/core-js/library/modules/web.dom.iterable.js");
- __webpack_require__(/*! ../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
- module.exports = __webpack_require__(/*! ../modules/core.is-iterable */ "./node_modules/core-js/library/modules/core.is-iterable.js");
- /***/ }),
- /***/ "./node_modules/core-js/library/fn/object/assign.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/library/fn/object/assign.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ../../modules/es6.object.assign */ "./node_modules/core-js/library/modules/es6.object.assign.js");
- module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object.assign;
- /***/ }),
- /***/ "./node_modules/core-js/library/fn/object/define-property.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/core-js/library/fn/object/define-property.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ../../modules/es6.object.define-property */ "./node_modules/core-js/library/modules/es6.object.define-property.js");
- var $Object = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object;
- module.exports = function defineProperty(it, key, desc) {
- return $Object.defineProperty(it, key, desc);
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/fn/symbol/index.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/library/fn/symbol/index.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ../../modules/es6.symbol */ "./node_modules/core-js/library/modules/es6.symbol.js");
- __webpack_require__(/*! ../../modules/es6.object.to-string */ "./node_modules/core-js/library/modules/es6.object.to-string.js");
- __webpack_require__(/*! ../../modules/es7.symbol.async-iterator */ "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js");
- __webpack_require__(/*! ../../modules/es7.symbol.observable */ "./node_modules/core-js/library/modules/es7.symbol.observable.js");
- module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Symbol;
- /***/ }),
- /***/ "./node_modules/core-js/library/fn/symbol/iterator.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/fn/symbol/iterator.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
- __webpack_require__(/*! ../../modules/web.dom.iterable */ "./node_modules/core-js/library/modules/web.dom.iterable.js");
- module.exports = __webpack_require__(/*! ../../modules/_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js").f('iterator');
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_a-function.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_a-function.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_add-to-unscopables.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_add-to-unscopables.js ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function () { /* empty */ };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_an-object.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_an-object.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
- module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_array-includes.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_array-includes.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // false -> Array#indexOf
- // true -> Array#includes
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
- var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/core-js/library/modules/_to-length.js");
- var toAbsoluteIndex = __webpack_require__(/*! ./_to-absolute-index */ "./node_modules/core-js/library/modules/_to-absolute-index.js");
- 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;
- };
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_classof.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/library/modules/_classof.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // getting tag from 19.1.3.6 Object.prototype.toString()
- var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
- var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('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;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_cof.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/library/modules/_cof.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var toString = {}.toString;
- module.exports = function (it) {
- return toString.call(it).slice(8, -1);
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_core.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/library/modules/_core.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var core = module.exports = { version: '2.6.12' };
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_create-property.js":
- /*!******************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_create-property.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
- var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
- module.exports = function (object, index, value) {
- if (index in object) $defineProperty.f(object, index, createDesc(0, value));
- else object[index] = value;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_ctx.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/library/modules/_ctx.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // optional / simple context binding
- var aFunction = __webpack_require__(/*! ./_a-function */ "./node_modules/core-js/library/modules/_a-function.js");
- 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);
- };
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_defined.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/library/modules/_defined.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (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;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_descriptors.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_descriptors.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_dom-create.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_dom-create.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
- var document = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").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) : {};
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_enum-bug-keys.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_enum-bug-keys.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // IE 8- don't enum bug keys
- module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
- ).split(',');
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_enum-keys.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_enum-keys.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // all enumerable object keys, includes symbols
- var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
- var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
- var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
- 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;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_export.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/library/modules/_export.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
- var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
- var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/core-js/library/modules/_ctx.js");
- var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
- var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
- 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;
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_fails.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/library/modules/_fails.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_global.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/library/modules/_global.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (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
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_has.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/library/modules/_has.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_hide.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/library/modules/_hide.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
- var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
- module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_html.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/library/modules/_html.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var document = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").document;
- module.exports = document && document.documentElement;
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_ie8-dom-define.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_ie8-dom-define.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = !__webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") && !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
- return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "./node_modules/core-js/library/modules/_dom-create.js")('div'), 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_iobject.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/library/modules/_iobject.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
- // eslint-disable-next-line no-prototype-builtins
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_is-array-iter.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_is-array-iter.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // check on default Array iterator
- var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
- var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
- var ArrayProto = Array.prototype;
- module.exports = function (it) {
- return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_is-array.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/library/modules/_is-array.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 7.2.2 IsArray(argument)
- var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
- module.exports = Array.isArray || function isArray(arg) {
- return cof(arg) == 'Array';
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_is-object.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_is-object.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_iter-call.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_iter-call.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // call something on iterator step with safe closing on error
- var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
- 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;
- }
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_iter-create.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_iter-create.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var create = __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js");
- var descriptor = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
- var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
- var IteratorPrototype = {};
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
- __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js")(IteratorPrototype, __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator'), function () { return this; });
- module.exports = function (Constructor, NAME, next) {
- Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
- setToStringTag(Constructor, NAME + ' Iterator');
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_iter-define.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_iter-define.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js");
- var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
- var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/core-js/library/modules/_redefine.js");
- var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
- var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
- var $iterCreate = __webpack_require__(/*! ./_iter-create */ "./node_modules/core-js/library/modules/_iter-create.js");
- var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
- var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "./node_modules/core-js/library/modules/_object-gpo.js");
- var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('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;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_iter-detect.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_iter-detect.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('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;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_iter-step.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_iter-step.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (done, value) {
- return { value: value, done: !!done };
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_iterators.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_iterators.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = {};
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_library.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/library/modules/_library.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = true;
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_meta.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/library/modules/_meta.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var META = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js")('meta');
- var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
- var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
- var setDesc = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
- var id = 0;
- var isExtensible = Object.isExtensible || function () {
- return true;
- };
- var FREEZE = !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(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
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-assign.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-assign.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // 19.1.2.1 Object.assign(target, source, ...)
- var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js");
- var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
- var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
- var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
- var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
- var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/core-js/library/modules/_iobject.js");
- var $assign = Object.assign;
- // should work with symbols and should have deterministic property order (V8 bug)
- module.exports = !$assign || __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(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) {
- key = keys[j++];
- if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
- }
- } return T;
- } : $assign;
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-create.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-create.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
- var dPs = __webpack_require__(/*! ./_object-dps */ "./node_modules/core-js/library/modules/_object-dps.js");
- var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js");
- var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('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__(/*! ./_dom-create */ "./node_modules/core-js/library/modules/_dom-create.js")('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- __webpack_require__(/*! ./_html */ "./node_modules/core-js/library/modules/_html.js").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);
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-dp.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-dp.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
- var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/core-js/library/modules/_ie8-dom-define.js");
- var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
- var dP = Object.defineProperty;
- exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? 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;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-dps.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-dps.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
- var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
- var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
- module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? 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;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-gopd.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-gopd.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
- var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
- var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
- var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
- var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/core-js/library/modules/_ie8-dom-define.js");
- var gOPD = Object.getOwnPropertyDescriptor;
- exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? 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]);
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-gopn-ext.js":
- /*!******************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-gopn-ext.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
- var gOPN = __webpack_require__(/*! ./_object-gopn */ "./node_modules/core-js/library/modules/_object-gopn.js").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));
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-gopn.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-gopn.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/core-js/library/modules/_object-keys-internal.js");
- var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js").concat('length', 'prototype');
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return $keys(O, hiddenKeys);
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-gops.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-gops.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- exports.f = Object.getOwnPropertySymbols;
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-gpo.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-gpo.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
- var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
- var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
- var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('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;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-keys-internal.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-keys-internal.js ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
- var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ "./node_modules/core-js/library/modules/_array-includes.js")(false);
- var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('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;
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-keys.js":
- /*!**************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-keys.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/core-js/library/modules/_object-keys-internal.js");
- var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js");
- module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_object-pie.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_object-pie.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- exports.f = {}.propertyIsEnumerable;
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_property-desc.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_property-desc.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_redefine.js":
- /*!***********************************************************!*\
- !*** ./node_modules/core-js/library/modules/_redefine.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_set-to-string-tag.js":
- /*!********************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_set-to-string-tag.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var def = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
- var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
- var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');
- module.exports = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_shared-key.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_shared-key.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var shared = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js")('keys');
- var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
- module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_shared.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/library/modules/_shared.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
- var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
- 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__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js") ? 'pure' : 'global',
- copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
- });
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_string-at.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_string-at.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
- var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
- // 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;
- };
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_to-absolute-index.js":
- /*!********************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_to-absolute-index.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
- 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);
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_to-integer.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_to-integer.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (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);
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_to-iobject.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_to-iobject.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/core-js/library/modules/_iobject.js");
- var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
- module.exports = function (it) {
- return IObject(defined(it));
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_to-length.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_to-length.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.15 ToLength
- var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
- var min = Math.min;
- module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_to-object.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_to-object.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.13 ToObject(argument)
- var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
- module.exports = function (it) {
- return Object(defined(it));
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_to-primitive.js":
- /*!***************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_to-primitive.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.1 ToPrimitive(input [, PreferredType])
- var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
- // 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");
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_uid.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/library/modules/_uid.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var id = 0;
- var px = Math.random();
- module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_wks-define.js":
- /*!*************************************************************!*\
- !*** ./node_modules/core-js/library/modules/_wks-define.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
- var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
- var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js");
- var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js");
- var defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").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) });
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_wks-ext.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/library/modules/_wks-ext.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- exports.f = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js");
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/_wks.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/library/modules/_wks.js ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var store = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js")('wks');
- var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
- var Symbol = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").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;
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/core.get-iterator-method.js":
- /*!**************************************************************************!*\
- !*** ./node_modules/core-js/library/modules/core.get-iterator-method.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var classof = __webpack_require__(/*! ./_classof */ "./node_modules/core-js/library/modules/_classof.js");
- var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
- var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
- module.exports = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js").getIteratorMethod = function (it) {
- if (it != undefined) return it[ITERATOR]
- || it['@@iterator']
- || Iterators[classof(it)];
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/core.get-iterator.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/core-js/library/modules/core.get-iterator.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
- var get = __webpack_require__(/*! ./core.get-iterator-method */ "./node_modules/core-js/library/modules/core.get-iterator-method.js");
- module.exports = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js").getIterator = function (it) {
- var iterFn = get(it);
- if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
- return anObject(iterFn.call(it));
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/core.is-iterable.js":
- /*!******************************************************************!*\
- !*** ./node_modules/core-js/library/modules/core.is-iterable.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var classof = __webpack_require__(/*! ./_classof */ "./node_modules/core-js/library/modules/_classof.js");
- var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
- var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
- module.exports = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js").isIterable = function (it) {
- var O = Object(it);
- return O[ITERATOR] !== undefined
- || '@@iterator' in O
- // eslint-disable-next-line no-prototype-builtins
- || Iterators.hasOwnProperty(classof(O));
- };
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/es6.array.from.js":
- /*!****************************************************************!*\
- !*** ./node_modules/core-js/library/modules/es6.array.from.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/core-js/library/modules/_ctx.js");
- var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
- var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
- var call = __webpack_require__(/*! ./_iter-call */ "./node_modules/core-js/library/modules/_iter-call.js");
- var isArrayIter = __webpack_require__(/*! ./_is-array-iter */ "./node_modules/core-js/library/modules/_is-array-iter.js");
- var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/core-js/library/modules/_to-length.js");
- var createProperty = __webpack_require__(/*! ./_create-property */ "./node_modules/core-js/library/modules/_create-property.js");
- var getIterFn = __webpack_require__(/*! ./core.get-iterator-method */ "./node_modules/core-js/library/modules/core.get-iterator-method.js");
- $export($export.S + $export.F * !__webpack_require__(/*! ./_iter-detect */ "./node_modules/core-js/library/modules/_iter-detect.js")(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;
- }
- });
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/es6.array.iterator.js":
- /*!********************************************************************!*\
- !*** ./node_modules/core-js/library/modules/es6.array.iterator.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var addToUnscopables = __webpack_require__(/*! ./_add-to-unscopables */ "./node_modules/core-js/library/modules/_add-to-unscopables.js");
- var step = __webpack_require__(/*! ./_iter-step */ "./node_modules/core-js/library/modules/_iter-step.js");
- var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
- // 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__(/*! ./_iter-define */ "./node_modules/core-js/library/modules/_iter-define.js")(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');
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/es6.object.assign.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/core-js/library/modules/es6.object.assign.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.3.1 Object.assign(target, source)
- var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
- $export($export.S + $export.F, 'Object', { assign: __webpack_require__(/*! ./_object-assign */ "./node_modules/core-js/library/modules/_object-assign.js") });
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/es6.object.define-property.js":
- /*!****************************************************************************!*\
- !*** ./node_modules/core-js/library/modules/es6.object.define-property.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
- // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
- $export($export.S + $export.F * !__webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js"), 'Object', { defineProperty: __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f });
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/es6.object.to-string.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/core-js/library/modules/es6.object.to-string.js ***!
- \**********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/es6.string.iterator.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/core-js/library/modules/es6.string.iterator.js ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var $at = __webpack_require__(/*! ./_string-at */ "./node_modules/core-js/library/modules/_string-at.js")(true);
- // 21.1.3.27 String.prototype[@@iterator]()
- __webpack_require__(/*! ./_iter-define */ "./node_modules/core-js/library/modules/_iter-define.js")(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 };
- });
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/es6.symbol.js":
- /*!************************************************************!*\
- !*** ./node_modules/core-js/library/modules/es6.symbol.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // ECMAScript 6 symbols shim
- var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
- var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
- var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js");
- var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
- var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/core-js/library/modules/_redefine.js");
- var META = __webpack_require__(/*! ./_meta */ "./node_modules/core-js/library/modules/_meta.js").KEY;
- var $fails = __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js");
- var shared = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js");
- var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
- var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
- var wks = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js");
- var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js");
- var wksDefine = __webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js");
- var enumKeys = __webpack_require__(/*! ./_enum-keys */ "./node_modules/core-js/library/modules/_enum-keys.js");
- var isArray = __webpack_require__(/*! ./_is-array */ "./node_modules/core-js/library/modules/_is-array.js");
- var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
- var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
- var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
- var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
- var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
- var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
- var _create = __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js");
- var gOPNExt = __webpack_require__(/*! ./_object-gopn-ext */ "./node_modules/core-js/library/modules/_object-gopn-ext.js");
- var $GOPD = __webpack_require__(/*! ./_object-gopd */ "./node_modules/core-js/library/modules/_object-gopd.js");
- var $GOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
- var $DP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
- var $keys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
- 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' && !!$GOPS.f;
- 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__(/*! ./_object-gopn */ "./node_modules/core-js/library/modules/_object-gopn.js").f = gOPNExt.f = $getOwnPropertyNames;
- __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js").f = $propertyIsEnumerable;
- $GOPS.f = $getOwnPropertySymbols;
- if (DESCRIPTORS && !__webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js")) {
- 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
- });
- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
- // https://bugs.chromium.org/p/v8/issues/detail?id=3443
- var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
- $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
- return $GOPS.f(toObject(it));
- }
- });
- // 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__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js")($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);
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js":
- /*!***************************************************************************!*\
- !*** ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js")('asyncIterator');
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/es7.symbol.observable.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/core-js/library/modules/es7.symbol.observable.js ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js")('observable');
- /***/ }),
- /***/ "./node_modules/core-js/library/modules/web.dom.iterable.js":
- /*!******************************************************************!*\
- !*** ./node_modules/core-js/library/modules/web.dom.iterable.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(/*! ./es6.array.iterator */ "./node_modules/core-js/library/modules/es6.array.iterator.js");
- var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
- var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
- var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
- var TO_STRING_TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('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;
- }
- /***/ }),
- /***/ "./node_modules/dom-align/dist-web/index.js":
- /*!**************************************************!*\
- !*** ./node_modules/dom-align/dist-web/index.js ***!
- \**************************************************/
- /*! exports provided: default, alignElement, alignPoint */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignElement", function() { return alignElement; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignPoint", function() { return alignPoint; });
- function _typeof(obj) {
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
- _typeof = function (obj) {
- return typeof obj;
- };
- } else {
- _typeof = function (obj) {
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
- };
- }
- return _typeof(obj);
- }
- function _defineProperty(obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
- return obj;
- }
- function ownKeys(object, enumerableOnly) {
- var keys = Object.keys(object);
- if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object);
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
- });
- keys.push.apply(keys, symbols);
- }
- return keys;
- }
- function _objectSpread2(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
- if (i % 2) {
- ownKeys(source, true).forEach(function (key) {
- _defineProperty(target, key, source[key]);
- });
- } else if (Object.getOwnPropertyDescriptors) {
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
- } else {
- ownKeys(source).forEach(function (key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
- });
- }
- }
- return target;
- }
- var vendorPrefix;
- var jsCssMap = {
- Webkit: '-webkit-',
- Moz: '-moz-',
- // IE did it wrong again ...
- ms: '-ms-',
- O: '-o-'
- };
- function getVendorPrefix() {
- if (vendorPrefix !== undefined) {
- return vendorPrefix;
- }
- vendorPrefix = '';
- var style = document.createElement('p').style;
- var testProp = 'Transform';
- for (var key in jsCssMap) {
- if (key + testProp in style) {
- vendorPrefix = key;
- }
- }
- return vendorPrefix;
- }
- function getTransitionName() {
- return getVendorPrefix() ? "".concat(getVendorPrefix(), "TransitionProperty") : 'transitionProperty';
- }
- function getTransformName() {
- return getVendorPrefix() ? "".concat(getVendorPrefix(), "Transform") : 'transform';
- }
- function setTransitionProperty(node, value) {
- var name = getTransitionName();
- if (name) {
- node.style[name] = value;
- if (name !== 'transitionProperty') {
- node.style.transitionProperty = value;
- }
- }
- }
- function setTransform(node, value) {
- var name = getTransformName();
- if (name) {
- node.style[name] = value;
- if (name !== 'transform') {
- node.style.transform = value;
- }
- }
- }
- function getTransitionProperty(node) {
- return node.style.transitionProperty || node.style[getTransitionName()];
- }
- function getTransformXY(node) {
- var style = window.getComputedStyle(node, null);
- var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());
- if (transform && transform !== 'none') {
- var matrix = transform.replace(/[^0-9\-.,]/g, '').split(',');
- return {
- x: parseFloat(matrix[12] || matrix[4], 0),
- y: parseFloat(matrix[13] || matrix[5], 0)
- };
- }
- return {
- x: 0,
- y: 0
- };
- }
- var matrix2d = /matrix\((.*)\)/;
- var matrix3d = /matrix3d\((.*)\)/;
- function setTransformXY(node, xy) {
- var style = window.getComputedStyle(node, null);
- var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());
- if (transform && transform !== 'none') {
- var arr;
- var match2d = transform.match(matrix2d);
- if (match2d) {
- match2d = match2d[1];
- arr = match2d.split(',').map(function (item) {
- return parseFloat(item, 10);
- });
- arr[4] = xy.x;
- arr[5] = xy.y;
- setTransform(node, "matrix(".concat(arr.join(','), ")"));
- } else {
- var match3d = transform.match(matrix3d)[1];
- arr = match3d.split(',').map(function (item) {
- return parseFloat(item, 10);
- });
- arr[12] = xy.x;
- arr[13] = xy.y;
- setTransform(node, "matrix3d(".concat(arr.join(','), ")"));
- }
- } else {
- setTransform(node, "translateX(".concat(xy.x, "px) translateY(").concat(xy.y, "px) translateZ(0)"));
- }
- }
- var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
- var getComputedStyleX; // https://stackoverflow.com/a/3485654/3040605
- function forceRelayout(elem) {
- var originalStyle = elem.style.display;
- elem.style.display = 'none';
- elem.offsetHeight; // eslint-disable-line
- elem.style.display = originalStyle;
- }
- function css(el, name, v) {
- var value = v;
- if (_typeof(name) === 'object') {
- for (var i in name) {
- if (name.hasOwnProperty(i)) {
- css(el, i, name[i]);
- }
- }
- return undefined;
- }
- if (typeof value !== 'undefined') {
- if (typeof value === 'number') {
- value = "".concat(value, "px");
- }
- el.style[name] = value;
- return undefined;
- }
- return getComputedStyleX(el, name);
- }
- function getClientPosition(elem) {
- var box;
- var x;
- var y;
- var doc = elem.ownerDocument;
- var body = doc.body;
- var docElem = doc && doc.documentElement; // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
- box = elem.getBoundingClientRect(); // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop
- // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
- // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
- x = box.left;
- y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left
- // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
- // IE6 standards mode, this border can be overridden by setting the
- // document element's border to zero -- thus, we cannot rely on the
- // offset always being 2 pixels.
- // In quirks mode, the offset can be determined by querying the body's
- // clientLeft/clientTop, but in standards mode, it is found by querying
- // the document element's clientLeft/clientTop. Since we already called
- // getClientBoundingRect we have already forced a reflow, so it is not
- // too expensive just to query them all.
- // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
- // 窗口边框标准是设 documentElement ,quirks 时设置 body
- // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
- // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置
- // 标准 ie 下 docElem.clientTop 就是 border-top
- // ie7 html 即窗口边框改变不了。永远为 2
- // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0
- x -= docElem.clientLeft || body.clientLeft || 0;
- y -= docElem.clientTop || body.clientTop || 0;
- return {
- left: x,
- top: y
- };
- }
- function getScroll(w, top) {
- var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
- var method = "scroll".concat(top ? 'Top' : 'Left');
- if (typeof ret !== 'number') {
- var d = w.document; // ie6,7,8 standard mode
- ret = d.documentElement[method];
- if (typeof ret !== 'number') {
- // quirks mode
- ret = d.body[method];
- }
- }
- return ret;
- }
- function getScrollLeft(w) {
- return getScroll(w);
- }
- function getScrollTop(w) {
- return getScroll(w, true);
- }
- function getOffset(el) {
- var pos = getClientPosition(el);
- var doc = el.ownerDocument;
- var w = doc.defaultView || doc.parentWindow;
- pos.left += getScrollLeft(w);
- pos.top += getScrollTop(w);
- return pos;
- }
- /**
- * A crude way of determining if an object is a window
- * @member util
- */
- function isWindow(obj) {
- // must use == for ie8
- /* eslint eqeqeq:0 */
- return obj !== null && obj !== undefined && obj == obj.window;
- }
- function getDocument(node) {
- if (isWindow(node)) {
- return node.document;
- }
- if (node.nodeType === 9) {
- return node;
- }
- return node.ownerDocument;
- }
- function _getComputedStyle(elem, name, cs) {
- var computedStyle = cs;
- var val = '';
- var d = getDocument(elem);
- computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null); // https://github.com/kissyteam/kissy/issues/61
- if (computedStyle) {
- val = computedStyle.getPropertyValue(name) || computedStyle[name];
- }
- return val;
- }
- var _RE_NUM_NO_PX = new RegExp("^(".concat(RE_NUM, ")(?!px)[a-z%]+$"), 'i');
- var RE_POS = /^(top|right|bottom|left)$/;
- var CURRENT_STYLE = 'currentStyle';
- var RUNTIME_STYLE = 'runtimeStyle';
- var LEFT = 'left';
- var PX = 'px';
- function _getComputedStyleIE(elem, name) {
- // currentStyle maybe null
- // http://msdn.microsoft.com/en-us/library/ms535231.aspx
- var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
- // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
- // 在 ie 下不对,需要直接用 offset 方式
- // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
- // From the awesome hack by Dean Edwards
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
- // If we're not dealing with a regular pixel number
- // but a number that has a weird ending, we need to convert it to pixels
- // exclude left right for relativity
- if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
- // Remember the original values
- var style = elem.style;
- var left = style[LEFT];
- var rsLeft = elem[RUNTIME_STYLE][LEFT]; // prevent flashing of content
- elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; // Put in the new values to get a computed value out
- style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
- ret = style.pixelLeft + PX; // Revert the changed values
- style[LEFT] = left;
- elem[RUNTIME_STYLE][LEFT] = rsLeft;
- }
- return ret === '' ? 'auto' : ret;
- }
- if (typeof window !== 'undefined') {
- getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
- }
- function getOffsetDirection(dir, option) {
- if (dir === 'left') {
- return option.useCssRight ? 'right' : dir;
- }
- return option.useCssBottom ? 'bottom' : dir;
- }
- function oppositeOffsetDirection(dir) {
- if (dir === 'left') {
- return 'right';
- } else if (dir === 'right') {
- return 'left';
- } else if (dir === 'top') {
- return 'bottom';
- } else if (dir === 'bottom') {
- return 'top';
- }
- } // 设置 elem 相对 elem.ownerDocument 的坐标
- function setLeftTop(elem, offset, option) {
- // set position first, in-case top/left are set even on static elem
- if (css(elem, 'position') === 'static') {
- elem.style.position = 'relative';
- }
- var presetH = -999;
- var presetV = -999;
- var horizontalProperty = getOffsetDirection('left', option);
- var verticalProperty = getOffsetDirection('top', option);
- var oppositeHorizontalProperty = oppositeOffsetDirection(horizontalProperty);
- var oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty);
- if (horizontalProperty !== 'left') {
- presetH = 999;
- }
- if (verticalProperty !== 'top') {
- presetV = 999;
- }
- var originalTransition = '';
- var originalOffset = getOffset(elem);
- if ('left' in offset || 'top' in offset) {
- originalTransition = getTransitionProperty(elem) || '';
- setTransitionProperty(elem, 'none');
- }
- if ('left' in offset) {
- elem.style[oppositeHorizontalProperty] = '';
- elem.style[horizontalProperty] = "".concat(presetH, "px");
- }
- if ('top' in offset) {
- elem.style[oppositeVerticalProperty] = '';
- elem.style[verticalProperty] = "".concat(presetV, "px");
- } // force relayout
- forceRelayout(elem);
- var old = getOffset(elem);
- var originalStyle = {};
- for (var key in offset) {
- if (offset.hasOwnProperty(key)) {
- var dir = getOffsetDirection(key, option);
- var preset = key === 'left' ? presetH : presetV;
- var off = originalOffset[key] - old[key];
- if (dir === key) {
- originalStyle[dir] = preset + off;
- } else {
- originalStyle[dir] = preset - off;
- }
- }
- }
- css(elem, originalStyle); // force relayout
- forceRelayout(elem);
- if ('left' in offset || 'top' in offset) {
- setTransitionProperty(elem, originalTransition);
- }
- var ret = {};
- for (var _key in offset) {
- if (offset.hasOwnProperty(_key)) {
- var _dir = getOffsetDirection(_key, option);
- var _off = offset[_key] - originalOffset[_key];
- if (_key === _dir) {
- ret[_dir] = originalStyle[_dir] + _off;
- } else {
- ret[_dir] = originalStyle[_dir] - _off;
- }
- }
- }
- css(elem, ret);
- }
- function setTransform$1(elem, offset) {
- var originalOffset = getOffset(elem);
- var originalXY = getTransformXY(elem);
- var resultXY = {
- x: originalXY.x,
- y: originalXY.y
- };
- if ('left' in offset) {
- resultXY.x = originalXY.x + offset.left - originalOffset.left;
- }
- if ('top' in offset) {
- resultXY.y = originalXY.y + offset.top - originalOffset.top;
- }
- setTransformXY(elem, resultXY);
- }
- function setOffset(elem, offset, option) {
- if (option.ignoreShake) {
- var oriOffset = getOffset(elem);
- var oLeft = oriOffset.left.toFixed(0);
- var oTop = oriOffset.top.toFixed(0);
- var tLeft = offset.left.toFixed(0);
- var tTop = offset.top.toFixed(0);
- if (oLeft === tLeft && oTop === tTop) {
- return;
- }
- }
- if (option.useCssRight || option.useCssBottom) {
- setLeftTop(elem, offset, option);
- } else if (option.useCssTransform && getTransformName() in document.body.style) {
- setTransform$1(elem, offset);
- } else {
- setLeftTop(elem, offset, option);
- }
- }
- function each(arr, fn) {
- for (var i = 0; i < arr.length; i++) {
- fn(arr[i]);
- }
- }
- function isBorderBoxFn(elem) {
- return getComputedStyleX(elem, 'boxSizing') === 'border-box';
- }
- var BOX_MODELS = ['margin', 'border', 'padding'];
- var CONTENT_INDEX = -1;
- var PADDING_INDEX = 2;
- var BORDER_INDEX = 1;
- var MARGIN_INDEX = 0;
- function swap(elem, options, callback) {
- var old = {};
- var style = elem.style;
- var name; // Remember the old values, and insert the new ones
- for (name in options) {
- if (options.hasOwnProperty(name)) {
- old[name] = style[name];
- style[name] = options[name];
- }
- }
- callback.call(elem); // Revert the old values
- for (name in options) {
- if (options.hasOwnProperty(name)) {
- style[name] = old[name];
- }
- }
- }
- function getPBMWidth(elem, props, which) {
- var value = 0;
- var prop;
- var j;
- var i;
- for (j = 0; j < props.length; j++) {
- prop = props[j];
- if (prop) {
- for (i = 0; i < which.length; i++) {
- var cssProp = void 0;
- if (prop === 'border') {
- cssProp = "".concat(prop).concat(which[i], "Width");
- } else {
- cssProp = prop + which[i];
- }
- value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
- }
- }
- }
- return value;
- }
- var domUtils = {
- getParent: function getParent(element) {
- var parent = element;
- do {
- if (parent.nodeType === 11 && parent.host) {
- parent = parent.host;
- } else {
- parent = parent.parentNode;
- }
- } while (parent && parent.nodeType !== 1 && parent.nodeType !== 9);
- return parent;
- }
- };
- each(['Width', 'Height'], function (name) {
- domUtils["doc".concat(name)] = function (refWin) {
- var d = refWin.document;
- return Math.max( // firefox chrome documentElement.scrollHeight< body.scrollHeight
- // ie standard mode : documentElement.scrollHeight> body.scrollHeight
- d.documentElement["scroll".concat(name)], // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
- d.body["scroll".concat(name)], domUtils["viewport".concat(name)](d));
- };
- domUtils["viewport".concat(name)] = function (win) {
- // pc browser includes scrollbar in window.innerWidth
- var prop = "client".concat(name);
- var doc = win.document;
- var body = doc.body;
- var documentElement = doc.documentElement;
- var documentElementProp = documentElement[prop]; // 标准模式取 documentElement
- // backcompat 取 body
- return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
- };
- });
- /*
- 得到元素的大小信息
- @param elem
- @param name
- @param {String} [extra] 'padding' : (css width) + padding
- 'border' : (css width) + padding + border
- 'margin' : (css width) + padding + border + margin
- */
- function getWH(elem, name, ex) {
- var extra = ex;
- if (isWindow(elem)) {
- return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
- } else if (elem.nodeType === 9) {
- return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
- }
- var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
- var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height;
- var computedStyle = getComputedStyleX(elem);
- var isBorderBox = isBorderBoxFn(elem);
- var cssBoxValue = 0;
- if (borderBoxValue === null || borderBoxValue === undefined || borderBoxValue <= 0) {
- borderBoxValue = undefined; // Fall back to computed then un computed css if necessary
- cssBoxValue = getComputedStyleX(elem, name);
- if (cssBoxValue === null || cssBoxValue === undefined || Number(cssBoxValue) < 0) {
- cssBoxValue = elem.style[name] || 0;
- } // Normalize '', auto, and prepare for extra
- cssBoxValue = parseFloat(cssBoxValue) || 0;
- }
- if (extra === undefined) {
- extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
- }
- var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;
- var val = borderBoxValue || cssBoxValue;
- if (extra === CONTENT_INDEX) {
- if (borderBoxValueOrIsBorderBox) {
- return val - getPBMWidth(elem, ['border', 'padding'], which);
- }
- return cssBoxValue;
- } else if (borderBoxValueOrIsBorderBox) {
- if (extra === BORDER_INDEX) {
- return val;
- }
- return val + (extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which) : getPBMWidth(elem, ['margin'], which));
- }
- return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which);
- }
- var cssShow = {
- position: 'absolute',
- visibility: 'hidden',
- display: 'block'
- }; // fix #119 : https://github.com/kissyteam/kissy/issues/119
- function getWHIgnoreDisplay() {
- for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
- args[_key2] = arguments[_key2];
- }
- var val;
- var elem = args[0]; // in case elem is window
- // elem.offsetWidth === undefined
- if (elem.offsetWidth !== 0) {
- val = getWH.apply(undefined, args);
- } else {
- swap(elem, cssShow, function () {
- val = getWH.apply(undefined, args);
- });
- }
- return val;
- }
- each(['width', 'height'], function (name) {
- var first = name.charAt(0).toUpperCase() + name.slice(1);
- domUtils["outer".concat(first)] = function (el, includeMargin) {
- return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
- };
- var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
- domUtils[name] = function (elem, v) {
- var val = v;
- if (val !== undefined) {
- if (elem) {
- var computedStyle = getComputedStyleX(elem);
- var isBorderBox = isBorderBoxFn(elem);
- if (isBorderBox) {
- val += getPBMWidth(elem, ['padding', 'border'], which);
- }
- return css(elem, name, val);
- }
- return undefined;
- }
- return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
- };
- });
- function mix(to, from) {
- for (var i in from) {
- if (from.hasOwnProperty(i)) {
- to[i] = from[i];
- }
- }
- return to;
- }
- var utils = {
- getWindow: function getWindow(node) {
- if (node && node.document && node.setTimeout) {
- return node;
- }
- var doc = node.ownerDocument || node;
- return doc.defaultView || doc.parentWindow;
- },
- getDocument: getDocument,
- offset: function offset(el, value, option) {
- if (typeof value !== 'undefined') {
- setOffset(el, value, option || {});
- } else {
- return getOffset(el);
- }
- },
- isWindow: isWindow,
- each: each,
- css: css,
- clone: function clone(obj) {
- var i;
- var ret = {};
- for (i in obj) {
- if (obj.hasOwnProperty(i)) {
- ret[i] = obj[i];
- }
- }
- var overflow = obj.overflow;
- if (overflow) {
- for (i in obj) {
- if (obj.hasOwnProperty(i)) {
- ret.overflow[i] = obj.overflow[i];
- }
- }
- }
- return ret;
- },
- mix: mix,
- getWindowScrollLeft: function getWindowScrollLeft(w) {
- return getScrollLeft(w);
- },
- getWindowScrollTop: function getWindowScrollTop(w) {
- return getScrollTop(w);
- },
- merge: function merge() {
- var ret = {};
- for (var i = 0; i < arguments.length; i++) {
- utils.mix(ret, i < 0 || arguments.length <= i ? undefined : arguments[i]);
- }
- return ret;
- },
- viewportWidth: 0,
- viewportHeight: 0
- };
- mix(utils, domUtils);
- /**
- * 得到会导致元素显示不全的祖先元素
- */
- var getParent = utils.getParent;
- function getOffsetParent(element) {
- if (utils.isWindow(element) || element.nodeType === 9) {
- return null;
- } // ie 这个也不是完全可行
- /*
- <div style="width: 50px;height: 100px;overflow: hidden">
- <div style="width: 50px;height: 100px;position: relative;" id="d6">
- 元素 6 高 100px 宽 50px<br/>
- </div>
- </div>
- */
- // element.offsetParent does the right thing in ie7 and below. Return parent with layout!
- // In other browsers it only includes elements with position absolute, relative or
- // fixed, not elements with overflow set to auto or scroll.
- // if (UA.ie && ieMode < 8) {
- // return element.offsetParent;
- // }
- // 统一的 offsetParent 方法
- var doc = utils.getDocument(element);
- var body = doc.body;
- var parent;
- var positionStyle = utils.css(element, 'position');
- var skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute';
- if (!skipStatic) {
- return element.nodeName.toLowerCase() === 'html' ? null : getParent(element);
- }
- for (parent = getParent(element); parent && parent !== body && parent.nodeType !== 9; parent = getParent(parent)) {
- positionStyle = utils.css(parent, 'position');
- if (positionStyle !== 'static') {
- return parent;
- }
- }
- return null;
- }
- var getParent$1 = utils.getParent;
- function isAncestorFixed(element) {
- if (utils.isWindow(element) || element.nodeType === 9) {
- return false;
- }
- var doc = utils.getDocument(element);
- var body = doc.body;
- var parent = null;
- for (parent = getParent$1(element); parent && parent !== body; parent = getParent$1(parent)) {
- var positionStyle = utils.css(parent, 'position');
- if (positionStyle === 'fixed') {
- return true;
- }
- }
- return false;
- }
- /**
- * 获得元素的显示部分的区域
- */
- function getVisibleRectForElement(element, alwaysByViewport) {
- var visibleRect = {
- left: 0,
- right: Infinity,
- top: 0,
- bottom: Infinity
- };
- var el = getOffsetParent(element);
- var doc = utils.getDocument(element);
- var win = doc.defaultView || doc.parentWindow;
- var body = doc.body;
- var documentElement = doc.documentElement; // Determine the size of the visible rect by climbing the dom accounting for
- // all scrollable containers.
- while (el) {
- // clientWidth is zero for inline block elements in ie.
- if ((navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire
- // viewport. In some browsers, el.offsetParent may be
- // document.documentElement, so check for that too.
- el !== body && el !== documentElement && utils.css(el, 'overflow') !== 'visible') {
- var pos = utils.offset(el); // add border
- pos.left += el.clientLeft;
- pos.top += el.clientTop;
- visibleRect.top = Math.max(visibleRect.top, pos.top);
- visibleRect.right = Math.min(visibleRect.right, // consider area without scrollBar
- pos.left + el.clientWidth);
- visibleRect.bottom = Math.min(visibleRect.bottom, pos.top + el.clientHeight);
- visibleRect.left = Math.max(visibleRect.left, pos.left);
- } else if (el === body || el === documentElement) {
- break;
- }
- el = getOffsetParent(el);
- } // Set element position to fixed
- // make sure absolute element itself don't affect it's visible area
- // https://github.com/ant-design/ant-design/issues/7601
- var originalPosition = null;
- if (!utils.isWindow(element) && element.nodeType !== 9) {
- originalPosition = element.style.position;
- var position = utils.css(element, 'position');
- if (position === 'absolute') {
- element.style.position = 'fixed';
- }
- }
- var scrollX = utils.getWindowScrollLeft(win);
- var scrollY = utils.getWindowScrollTop(win);
- var viewportWidth = utils.viewportWidth(win);
- var viewportHeight = utils.viewportHeight(win);
- var documentWidth = documentElement.scrollWidth;
- var documentHeight = documentElement.scrollHeight; // scrollXXX on html is sync with body which means overflow: hidden on body gets wrong scrollXXX.
- // We should cut this ourself.
- var bodyStyle = window.getComputedStyle(body);
- if (bodyStyle.overflowX === 'hidden') {
- documentWidth = win.innerWidth;
- }
- if (bodyStyle.overflowY === 'hidden') {
- documentHeight = win.innerHeight;
- } // Reset element position after calculate the visible area
- if (element.style) {
- element.style.position = originalPosition;
- }
- if (alwaysByViewport || isAncestorFixed(element)) {
- // Clip by viewport's size.
- visibleRect.left = Math.max(visibleRect.left, scrollX);
- visibleRect.top = Math.max(visibleRect.top, scrollY);
- visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth);
- visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight);
- } else {
- // Clip by document's size.
- var maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth);
- visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth);
- var maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight);
- visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight);
- }
- return visibleRect.top >= 0 && visibleRect.left >= 0 && visibleRect.bottom > visibleRect.top && visibleRect.right > visibleRect.left ? visibleRect : null;
- }
- function adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) {
- var pos = utils.clone(elFuturePos);
- var size = {
- width: elRegion.width,
- height: elRegion.height
- };
- if (overflow.adjustX && pos.left < visibleRect.left) {
- pos.left = visibleRect.left;
- } // Left edge inside and right edge outside viewport, try to resize it.
- if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) {
- size.width -= pos.left + size.width - visibleRect.right;
- } // Right edge outside viewport, try to move it.
- if (overflow.adjustX && pos.left + size.width > visibleRect.right) {
- // 保证左边界和可视区域左边界对齐
- pos.left = Math.max(visibleRect.right - size.width, visibleRect.left);
- } // Top edge outside viewport, try to move it.
- if (overflow.adjustY && pos.top < visibleRect.top) {
- pos.top = visibleRect.top;
- } // Top edge inside and bottom edge outside viewport, try to resize it.
- if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) {
- size.height -= pos.top + size.height - visibleRect.bottom;
- } // Bottom edge outside viewport, try to move it.
- if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) {
- // 保证上边界和可视区域上边界对齐
- pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top);
- }
- return utils.mix(pos, size);
- }
- function getRegion(node) {
- var offset;
- var w;
- var h;
- if (!utils.isWindow(node) && node.nodeType !== 9) {
- offset = utils.offset(node);
- w = utils.outerWidth(node);
- h = utils.outerHeight(node);
- } else {
- var win = utils.getWindow(node);
- offset = {
- left: utils.getWindowScrollLeft(win),
- top: utils.getWindowScrollTop(win)
- };
- w = utils.viewportWidth(win);
- h = utils.viewportHeight(win);
- }
- offset.width = w;
- offset.height = h;
- return offset;
- }
- /**
- * 获取 node 上的 align 对齐点 相对于页面的坐标
- */
- function getAlignOffset(region, align) {
- var V = align.charAt(0);
- var H = align.charAt(1);
- var w = region.width;
- var h = region.height;
- var x = region.left;
- var y = region.top;
- if (V === 'c') {
- y += h / 2;
- } else if (V === 'b') {
- y += h;
- }
- if (H === 'c') {
- x += w / 2;
- } else if (H === 'r') {
- x += w;
- }
- return {
- left: x,
- top: y
- };
- }
- function getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) {
- var p1 = getAlignOffset(refNodeRegion, points[1]);
- var p2 = getAlignOffset(elRegion, points[0]);
- var diff = [p2.left - p1.left, p2.top - p1.top];
- return {
- left: Math.round(elRegion.left - diff[0] + offset[0] - targetOffset[0]),
- top: Math.round(elRegion.top - diff[1] + offset[1] - targetOffset[1])
- };
- }
- /**
- * align dom node flexibly
- * @author yiminghe@gmail.com
- */
- function isFailX(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right;
- }
- function isFailY(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.top < visibleRect.top || elFuturePos.top + elRegion.height > visibleRect.bottom;
- }
- function isCompleteFailX(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.left > visibleRect.right || elFuturePos.left + elRegion.width < visibleRect.left;
- }
- function isCompleteFailY(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.top > visibleRect.bottom || elFuturePos.top + elRegion.height < visibleRect.top;
- }
- function flip(points, reg, map) {
- var ret = [];
- utils.each(points, function (p) {
- ret.push(p.replace(reg, function (m) {
- return map[m];
- }));
- });
- return ret;
- }
- function flipOffset(offset, index) {
- offset[index] = -offset[index];
- return offset;
- }
- function convertOffset(str, offsetLen) {
- var n;
- if (/%$/.test(str)) {
- n = parseInt(str.substring(0, str.length - 1), 10) / 100 * offsetLen;
- } else {
- n = parseInt(str, 10);
- }
- return n || 0;
- }
- function normalizeOffset(offset, el) {
- offset[0] = convertOffset(offset[0], el.width);
- offset[1] = convertOffset(offset[1], el.height);
- }
- /**
- * @param el
- * @param tgtRegion 参照节点所占的区域: { left, top, width, height }
- * @param align
- */
- function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
- var points = align.points;
- var offset = align.offset || [0, 0];
- var targetOffset = align.targetOffset || [0, 0];
- var overflow = align.overflow;
- var source = align.source || el;
- offset = [].concat(offset);
- targetOffset = [].concat(targetOffset);
- overflow = overflow || {};
- var newOverflowCfg = {};
- var fail = 0;
- var alwaysByViewport = !!(overflow && overflow.alwaysByViewport); // 当前节点可以被放置的显示区域
- var visibleRect = getVisibleRectForElement(source, alwaysByViewport); // 当前节点所占的区域, left/top/width/height
- var elRegion = getRegion(source); // 将 offset 转换成数值,支持百分比
- normalizeOffset(offset, elRegion);
- normalizeOffset(targetOffset, tgtRegion); // 当前节点将要被放置的位置
- var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset); // 当前节点将要所处的区域
- var newElRegion = utils.merge(elRegion, elFuturePos); // 如果可视区域不能完全放置当前节点时允许调整
- if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTgtRegionVisible) {
- if (overflow.adjustX) {
- // 如果横向不能放下
- if (isFailX(elFuturePos, elRegion, visibleRect)) {
- // 对齐位置反下
- var newPoints = flip(points, /[lr]/gi, {
- l: 'r',
- r: 'l'
- }); // 偏移量也反下
- var newOffset = flipOffset(offset, 0);
- var newTargetOffset = flipOffset(targetOffset, 0);
- var newElFuturePos = getElFuturePos(elRegion, tgtRegion, newPoints, newOffset, newTargetOffset);
- if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) {
- fail = 1;
- points = newPoints;
- offset = newOffset;
- targetOffset = newTargetOffset;
- }
- }
- }
- if (overflow.adjustY) {
- // 如果纵向不能放下
- if (isFailY(elFuturePos, elRegion, visibleRect)) {
- // 对齐位置反下
- var _newPoints = flip(points, /[tb]/gi, {
- t: 'b',
- b: 't'
- }); // 偏移量也反下
- var _newOffset = flipOffset(offset, 1);
- var _newTargetOffset = flipOffset(targetOffset, 1);
- var _newElFuturePos = getElFuturePos(elRegion, tgtRegion, _newPoints, _newOffset, _newTargetOffset);
- if (!isCompleteFailY(_newElFuturePos, elRegion, visibleRect)) {
- fail = 1;
- points = _newPoints;
- offset = _newOffset;
- targetOffset = _newTargetOffset;
- }
- }
- } // 如果失败,重新计算当前节点将要被放置的位置
- if (fail) {
- elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset);
- utils.mix(newElRegion, elFuturePos);
- }
- var isStillFailX = isFailX(elFuturePos, elRegion, visibleRect);
- var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect); // 检查反下后的位置是否可以放下了,如果仍然放不下:
- // 1. 复原修改过的定位参数
- if (isStillFailX || isStillFailY) {
- var _newPoints2 = points; // 重置对应部分的翻转逻辑
- if (isStillFailX) {
- _newPoints2 = flip(points, /[lr]/gi, {
- l: 'r',
- r: 'l'
- });
- }
- if (isStillFailY) {
- _newPoints2 = flip(points, /[tb]/gi, {
- t: 'b',
- b: 't'
- });
- }
- points = _newPoints2;
- offset = align.offset || [0, 0];
- targetOffset = align.targetOffset || [0, 0];
- } // 2. 只有指定了可以调整当前方向才调整
- newOverflowCfg.adjustX = overflow.adjustX && isStillFailX;
- newOverflowCfg.adjustY = overflow.adjustY && isStillFailY; // 确实要调整,甚至可能会调整高度宽度
- if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) {
- newElRegion = adjustForViewport(elFuturePos, elRegion, visibleRect, newOverflowCfg);
- }
- } // need judge to in case set fixed with in css on height auto element
- if (newElRegion.width !== elRegion.width) {
- utils.css(source, 'width', utils.width(source) + newElRegion.width - elRegion.width);
- }
- if (newElRegion.height !== elRegion.height) {
- utils.css(source, 'height', utils.height(source) + newElRegion.height - elRegion.height);
- } // https://github.com/kissyteam/kissy/issues/190
- // 相对于屏幕位置没变,而 left/top 变了
- // 例如 <div 'relative'><el absolute></div>
- utils.offset(source, {
- left: newElRegion.left,
- top: newElRegion.top
- }, {
- useCssRight: align.useCssRight,
- useCssBottom: align.useCssBottom,
- useCssTransform: align.useCssTransform,
- ignoreShake: align.ignoreShake
- });
- return {
- points: points,
- offset: offset,
- targetOffset: targetOffset,
- overflow: newOverflowCfg
- };
- }
- /**
- * 2012-04-26 yiminghe@gmail.com
- * - 优化智能对齐算法
- * - 慎用 resizeXX
- *
- * 2011-07-13 yiminghe@gmail.com note:
- * - 增加智能对齐,以及大小调整选项
- **/
- function isOutOfVisibleRect(target, alwaysByViewport) {
- var visibleRect = getVisibleRectForElement(target, alwaysByViewport);
- var targetRegion = getRegion(target);
- return !visibleRect || targetRegion.left + targetRegion.width <= visibleRect.left || targetRegion.top + targetRegion.height <= visibleRect.top || targetRegion.left >= visibleRect.right || targetRegion.top >= visibleRect.bottom;
- }
- function alignElement(el, refNode, align) {
- var target = align.target || refNode;
- var refNodeRegion = getRegion(target);
- var isTargetNotOutOfVisible = !isOutOfVisibleRect(target, align.overflow && align.overflow.alwaysByViewport);
- return doAlign(el, refNodeRegion, align, isTargetNotOutOfVisible);
- }
- alignElement.__getOffsetParent = getOffsetParent;
- alignElement.__getVisibleRectForElement = getVisibleRectForElement;
- /**
- * `tgtPoint`: { pageX, pageY } or { clientX, clientY }.
- * If client position provided, will internal convert to page position.
- */
- function alignPoint(el, tgtPoint, align) {
- var pageX;
- var pageY;
- var doc = utils.getDocument(el);
- var win = doc.defaultView || doc.parentWindow;
- var scrollX = utils.getWindowScrollLeft(win);
- var scrollY = utils.getWindowScrollTop(win);
- var viewportWidth = utils.viewportWidth(win);
- var viewportHeight = utils.viewportHeight(win);
- if ('pageX' in tgtPoint) {
- pageX = tgtPoint.pageX;
- } else {
- pageX = scrollX + tgtPoint.clientX;
- }
- if ('pageY' in tgtPoint) {
- pageY = tgtPoint.pageY;
- } else {
- pageY = scrollY + tgtPoint.clientY;
- }
- var tgtRegion = {
- left: pageX,
- top: pageY,
- width: 0,
- height: 0
- };
- var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight; // Provide default target point
- var points = [align.points[0], 'cc'];
- return doAlign(el, tgtRegion, _objectSpread2({}, align, {
- points: points
- }), pointInView);
- }
- /* harmony default export */ __webpack_exports__["default"] = (alignElement);
- //# sourceMappingURL=index.js.map
- /***/ }),
- /***/ "./node_modules/dom-closest/index.js":
- /*!*******************************************!*\
- !*** ./node_modules/dom-closest/index.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /**
- * Module dependencies
- */
- var matches = __webpack_require__(/*! dom-matches */ "./node_modules/dom-matches/index.js");
- /**
- * @param element {Element}
- * @param selector {String}
- * @param context {Element}
- * @return {Element}
- */
- module.exports = function (element, selector, context) {
- context = context || document;
- // guard against orphans
- element = { parentNode: element };
- while ((element = element.parentNode) && element !== context) {
- if (matches(element, selector)) {
- return element;
- }
- }
- };
- /***/ }),
- /***/ "./node_modules/dom-matches/index.js":
- /*!*******************************************!*\
- !*** ./node_modules/dom-matches/index.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * Determine if a DOM element matches a CSS selector
- *
- * @param {Element} elem
- * @param {String} selector
- * @return {Boolean}
- * @api public
- */
- function matches(elem, selector) {
- // Vendor-specific implementations of `Element.prototype.matches()`.
- var proto = window.Element.prototype;
- var nativeMatches = proto.matches ||
- proto.mozMatchesSelector ||
- proto.msMatchesSelector ||
- proto.oMatchesSelector ||
- proto.webkitMatchesSelector;
- if (!elem || elem.nodeType !== 1) {
- return false;
- }
- var parentElem = elem.parentNode;
- // use native 'matches'
- if (nativeMatches) {
- return nativeMatches.call(elem, selector);
- }
- // native support for `matches` is missing and a fallback is required
- var nodes = parentElem.querySelectorAll(selector);
- var len = nodes.length;
- for (var i = 0; i < len; i++) {
- if (nodes[i] === elem) {
- return true;
- }
- }
- return false;
- }
- /**
- * Expose `matches`
- */
- module.exports = matches;
- /***/ }),
- /***/ "./node_modules/dom-scroll-into-view/dist-web/index.js":
- /*!*************************************************************!*\
- !*** ./node_modules/dom-scroll-into-view/dist-web/index.js ***!
- \*************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- function _typeof(obj) {
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
- _typeof = function (obj) {
- return typeof obj;
- };
- } else {
- _typeof = function (obj) {
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
- };
- }
- return _typeof(obj);
- }
- function _defineProperty(obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
- return obj;
- }
- function ownKeys(object, enumerableOnly) {
- var keys = Object.keys(object);
- if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object);
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
- });
- keys.push.apply(keys, symbols);
- }
- return keys;
- }
- function _objectSpread2(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
- if (i % 2) {
- ownKeys(source, true).forEach(function (key) {
- _defineProperty(target, key, source[key]);
- });
- } else if (Object.getOwnPropertyDescriptors) {
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
- } else {
- ownKeys(source).forEach(function (key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
- });
- }
- }
- return target;
- }
- var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
- function getClientPosition(elem) {
- var box;
- var x;
- var y;
- var doc = elem.ownerDocument;
- var body = doc.body;
- var docElem = doc && doc.documentElement; // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
- box = elem.getBoundingClientRect(); // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop
- // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
- // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
- x = box.left;
- y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left
- // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
- // IE6 standards mode, this border can be overridden by setting the
- // document element's border to zero -- thus, we cannot rely on the
- // offset always being 2 pixels.
- // In quirks mode, the offset can be determined by querying the body's
- // clientLeft/clientTop, but in standards mode, it is found by querying
- // the document element's clientLeft/clientTop. Since we already called
- // getClientBoundingRect we have already forced a reflow, so it is not
- // too expensive just to query them all.
- // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
- // 窗口边框标准是设 documentElement ,quirks 时设置 body
- // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
- // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置
- // 标准 ie 下 docElem.clientTop 就是 border-top
- // ie7 html 即窗口边框改变不了。永远为 2
- // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0
- x -= docElem.clientLeft || body.clientLeft || 0;
- y -= docElem.clientTop || body.clientTop || 0;
- return {
- left: x,
- top: y
- };
- }
- function getScroll(w, top) {
- var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
- var method = "scroll".concat(top ? 'Top' : 'Left');
- if (typeof ret !== 'number') {
- var d = w.document; // ie6,7,8 standard mode
- ret = d.documentElement[method];
- if (typeof ret !== 'number') {
- // quirks mode
- ret = d.body[method];
- }
- }
- return ret;
- }
- function getScrollLeft(w) {
- return getScroll(w);
- }
- function getScrollTop(w) {
- return getScroll(w, true);
- }
- function getOffset(el) {
- var pos = getClientPosition(el);
- var doc = el.ownerDocument;
- var w = doc.defaultView || doc.parentWindow;
- pos.left += getScrollLeft(w);
- pos.top += getScrollTop(w);
- return pos;
- }
- function _getComputedStyle(elem, name, computedStyle_) {
- var val = '';
- var d = elem.ownerDocument;
- var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null); // https://github.com/kissyteam/kissy/issues/61
- if (computedStyle) {
- val = computedStyle.getPropertyValue(name) || computedStyle[name];
- }
- return val;
- }
- var _RE_NUM_NO_PX = new RegExp("^(".concat(RE_NUM, ")(?!px)[a-z%]+$"), 'i');
- var RE_POS = /^(top|right|bottom|left)$/;
- var CURRENT_STYLE = 'currentStyle';
- var RUNTIME_STYLE = 'runtimeStyle';
- var LEFT = 'left';
- var PX = 'px';
- function _getComputedStyleIE(elem, name) {
- // currentStyle maybe null
- // http://msdn.microsoft.com/en-us/library/ms535231.aspx
- var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
- // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
- // 在 ie 下不对,需要直接用 offset 方式
- // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
- // From the awesome hack by Dean Edwards
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
- // If we're not dealing with a regular pixel number
- // but a number that has a weird ending, we need to convert it to pixels
- // exclude left right for relativity
- if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
- // Remember the original values
- var style = elem.style;
- var left = style[LEFT];
- var rsLeft = elem[RUNTIME_STYLE][LEFT]; // prevent flashing of content
- elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; // Put in the new values to get a computed value out
- style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
- ret = style.pixelLeft + PX; // Revert the changed values
- style[LEFT] = left;
- elem[RUNTIME_STYLE][LEFT] = rsLeft;
- }
- return ret === '' ? 'auto' : ret;
- }
- var getComputedStyleX;
- if (typeof window !== 'undefined') {
- getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
- }
- function each(arr, fn) {
- for (var i = 0; i < arr.length; i++) {
- fn(arr[i]);
- }
- }
- function isBorderBoxFn(elem) {
- return getComputedStyleX(elem, 'boxSizing') === 'border-box';
- }
- var BOX_MODELS = ['margin', 'border', 'padding'];
- var CONTENT_INDEX = -1;
- var PADDING_INDEX = 2;
- var BORDER_INDEX = 1;
- var MARGIN_INDEX = 0;
- function swap(elem, options, callback) {
- var old = {};
- var style = elem.style;
- var name; // Remember the old values, and insert the new ones
- for (name in options) {
- if (options.hasOwnProperty(name)) {
- old[name] = style[name];
- style[name] = options[name];
- }
- }
- callback.call(elem); // Revert the old values
- for (name in options) {
- if (options.hasOwnProperty(name)) {
- style[name] = old[name];
- }
- }
- }
- function getPBMWidth(elem, props, which) {
- var value = 0;
- var prop;
- var j;
- var i;
- for (j = 0; j < props.length; j++) {
- prop = props[j];
- if (prop) {
- for (i = 0; i < which.length; i++) {
- var cssProp = void 0;
- if (prop === 'border') {
- cssProp = "".concat(prop + which[i], "Width");
- } else {
- cssProp = prop + which[i];
- }
- value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
- }
- }
- }
- return value;
- }
- /**
- * A crude way of determining if an object is a window
- * @member util
- */
- function isWindow(obj) {
- // must use == for ie8
- /* eslint eqeqeq:0 */
- return obj != null && obj == obj.window;
- }
- var domUtils = {};
- each(['Width', 'Height'], function (name) {
- domUtils["doc".concat(name)] = function (refWin) {
- var d = refWin.document;
- return Math.max( // firefox chrome documentElement.scrollHeight< body.scrollHeight
- // ie standard mode : documentElement.scrollHeight> body.scrollHeight
- d.documentElement["scroll".concat(name)], // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
- d.body["scroll".concat(name)], domUtils["viewport".concat(name)](d));
- };
- domUtils["viewport".concat(name)] = function (win) {
- // pc browser includes scrollbar in window.innerWidth
- var prop = "client".concat(name);
- var doc = win.document;
- var body = doc.body;
- var documentElement = doc.documentElement;
- var documentElementProp = documentElement[prop]; // 标准模式取 documentElement
- // backcompat 取 body
- return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
- };
- });
- /*
- 得到元素的大小信息
- @param elem
- @param name
- @param {String} [extra] 'padding' : (css width) + padding
- 'border' : (css width) + padding + border
- 'margin' : (css width) + padding + border + margin
- */
- function getWH(elem, name, extra) {
- if (isWindow(elem)) {
- return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
- } else if (elem.nodeType === 9) {
- return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
- }
- var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
- var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight;
- var computedStyle = getComputedStyleX(elem);
- var isBorderBox = isBorderBoxFn(elem);
- var cssBoxValue = 0;
- if (borderBoxValue == null || borderBoxValue <= 0) {
- borderBoxValue = undefined; // Fall back to computed then un computed css if necessary
- cssBoxValue = getComputedStyleX(elem, name);
- if (cssBoxValue == null || Number(cssBoxValue) < 0) {
- cssBoxValue = elem.style[name] || 0;
- } // Normalize '', auto, and prepare for extra
- cssBoxValue = parseFloat(cssBoxValue) || 0;
- }
- if (extra === undefined) {
- extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
- }
- var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;
- var val = borderBoxValue || cssBoxValue;
- if (extra === CONTENT_INDEX) {
- if (borderBoxValueOrIsBorderBox) {
- return val - getPBMWidth(elem, ['border', 'padding'], which);
- }
- return cssBoxValue;
- }
- if (borderBoxValueOrIsBorderBox) {
- var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which) : getPBMWidth(elem, ['margin'], which);
- return val + (extra === BORDER_INDEX ? 0 : padding);
- }
- return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which);
- }
- var cssShow = {
- position: 'absolute',
- visibility: 'hidden',
- display: 'block'
- }; // fix #119 : https://github.com/kissyteam/kissy/issues/119
- function getWHIgnoreDisplay(elem) {
- var val;
- var args = arguments; // in case elem is window
- // elem.offsetWidth === undefined
- if (elem.offsetWidth !== 0) {
- val = getWH.apply(undefined, args);
- } else {
- swap(elem, cssShow, function () {
- val = getWH.apply(undefined, args);
- });
- }
- return val;
- }
- function css(el, name, v) {
- var value = v;
- if (_typeof(name) === 'object') {
- for (var i in name) {
- if (name.hasOwnProperty(i)) {
- css(el, i, name[i]);
- }
- }
- return undefined;
- }
- if (typeof value !== 'undefined') {
- if (typeof value === 'number') {
- value += 'px';
- }
- el.style[name] = value;
- return undefined;
- }
- return getComputedStyleX(el, name);
- }
- each(['width', 'height'], function (name) {
- var first = name.charAt(0).toUpperCase() + name.slice(1);
- domUtils["outer".concat(first)] = function (el, includeMargin) {
- return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
- };
- var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
- domUtils[name] = function (elem, val) {
- if (val !== undefined) {
- if (elem) {
- var computedStyle = getComputedStyleX(elem);
- var isBorderBox = isBorderBoxFn(elem);
- if (isBorderBox) {
- val += getPBMWidth(elem, ['padding', 'border'], which);
- }
- return css(elem, name, val);
- }
- return undefined;
- }
- return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
- };
- }); // 设置 elem 相对 elem.ownerDocument 的坐标
- function setOffset(elem, offset) {
- // set position first, in-case top/left are set even on static elem
- if (css(elem, 'position') === 'static') {
- elem.style.position = 'relative';
- }
- var old = getOffset(elem);
- var ret = {};
- var current;
- var key;
- for (key in offset) {
- if (offset.hasOwnProperty(key)) {
- current = parseFloat(css(elem, key)) || 0;
- ret[key] = current + offset[key] - old[key];
- }
- }
- css(elem, ret);
- }
- var util = _objectSpread2({
- getWindow: function getWindow(node) {
- var doc = node.ownerDocument || node;
- return doc.defaultView || doc.parentWindow;
- },
- offset: function offset(el, value) {
- if (typeof value !== 'undefined') {
- setOffset(el, value);
- } else {
- return getOffset(el);
- }
- },
- isWindow: isWindow,
- each: each,
- css: css,
- clone: function clone(obj) {
- var ret = {};
- for (var i in obj) {
- if (obj.hasOwnProperty(i)) {
- ret[i] = obj[i];
- }
- }
- var overflow = obj.overflow;
- if (overflow) {
- for (var _i in obj) {
- if (obj.hasOwnProperty(_i)) {
- ret.overflow[_i] = obj.overflow[_i];
- }
- }
- }
- return ret;
- },
- scrollLeft: function scrollLeft(w, v) {
- if (isWindow(w)) {
- if (v === undefined) {
- return getScrollLeft(w);
- }
- window.scrollTo(v, getScrollTop(w));
- } else {
- if (v === undefined) {
- return w.scrollLeft;
- }
- w.scrollLeft = v;
- }
- },
- scrollTop: function scrollTop(w, v) {
- if (isWindow(w)) {
- if (v === undefined) {
- return getScrollTop(w);
- }
- window.scrollTo(getScrollLeft(w), v);
- } else {
- if (v === undefined) {
- return w.scrollTop;
- }
- w.scrollTop = v;
- }
- },
- viewportWidth: 0,
- viewportHeight: 0
- }, domUtils);
- function scrollIntoView(elem, container, config) {
- config = config || {}; // document 归一化到 window
- if (container.nodeType === 9) {
- container = util.getWindow(container);
- }
- var allowHorizontalScroll = config.allowHorizontalScroll;
- var onlyScrollIfNeeded = config.onlyScrollIfNeeded;
- var alignWithTop = config.alignWithTop;
- var alignWithLeft = config.alignWithLeft;
- var offsetTop = config.offsetTop || 0;
- var offsetLeft = config.offsetLeft || 0;
- var offsetBottom = config.offsetBottom || 0;
- var offsetRight = config.offsetRight || 0;
- allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll;
- var isWin = util.isWindow(container);
- var elemOffset = util.offset(elem);
- var eh = util.outerHeight(elem);
- var ew = util.outerWidth(elem);
- var containerOffset;
- var ch;
- var cw;
- var containerScroll;
- var diffTop;
- var diffBottom;
- var win;
- var winScroll;
- var ww;
- var wh;
- if (isWin) {
- win = container;
- wh = util.height(win);
- ww = util.width(win);
- winScroll = {
- left: util.scrollLeft(win),
- top: util.scrollTop(win)
- }; // elem 相对 container 可视视窗的距离
- diffTop = {
- left: elemOffset.left - winScroll.left - offsetLeft,
- top: elemOffset.top - winScroll.top - offsetTop
- };
- diffBottom = {
- left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight,
- top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom
- };
- containerScroll = winScroll;
- } else {
- containerOffset = util.offset(container);
- ch = container.clientHeight;
- cw = container.clientWidth;
- containerScroll = {
- left: container.scrollLeft,
- top: container.scrollTop
- }; // elem 相对 container 可视视窗的距离
- // 注意边框, offset 是边框到根节点
- diffTop = {
- left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft,
- top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop
- };
- diffBottom = {
- left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight,
- top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom
- };
- }
- if (diffTop.top < 0 || diffBottom.top > 0) {
- // 强制向上
- if (alignWithTop === true) {
- util.scrollTop(container, containerScroll.top + diffTop.top);
- } else if (alignWithTop === false) {
- util.scrollTop(container, containerScroll.top + diffBottom.top);
- } else {
- // 自动调整
- if (diffTop.top < 0) {
- util.scrollTop(container, containerScroll.top + diffTop.top);
- } else {
- util.scrollTop(container, containerScroll.top + diffBottom.top);
- }
- }
- } else {
- if (!onlyScrollIfNeeded) {
- alignWithTop = alignWithTop === undefined ? true : !!alignWithTop;
- if (alignWithTop) {
- util.scrollTop(container, containerScroll.top + diffTop.top);
- } else {
- util.scrollTop(container, containerScroll.top + diffBottom.top);
- }
- }
- }
- if (allowHorizontalScroll) {
- if (diffTop.left < 0 || diffBottom.left > 0) {
- // 强制向上
- if (alignWithLeft === true) {
- util.scrollLeft(container, containerScroll.left + diffTop.left);
- } else if (alignWithLeft === false) {
- util.scrollLeft(container, containerScroll.left + diffBottom.left);
- } else {
- // 自动调整
- if (diffTop.left < 0) {
- util.scrollLeft(container, containerScroll.left + diffTop.left);
- } else {
- util.scrollLeft(container, containerScroll.left + diffBottom.left);
- }
- }
- } else {
- if (!onlyScrollIfNeeded) {
- alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft;
- if (alignWithLeft) {
- util.scrollLeft(container, containerScroll.left + diffTop.left);
- } else {
- util.scrollLeft(container, containerScroll.left + diffBottom.left);
- }
- }
- }
- }
- }
- /* harmony default export */ __webpack_exports__["default"] = (scrollIntoView);
- //# sourceMappingURL=index.js.map
- /***/ }),
- /***/ "./node_modules/enquire.js/src/MediaQuery.js":
- /*!***************************************************!*\
- !*** ./node_modules/enquire.js/src/MediaQuery.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var QueryHandler = __webpack_require__(/*! ./QueryHandler */ "./node_modules/enquire.js/src/QueryHandler.js");
- var each = __webpack_require__(/*! ./Util */ "./node_modules/enquire.js/src/Util.js").each;
- /**
- * Represents a single media query, manages it's state and registered handlers for this query
- *
- * @constructor
- * @param {string} query the media query string
- * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design
- */
- function MediaQuery(query, isUnconditional) {
- this.query = query;
- this.isUnconditional = isUnconditional;
- this.handlers = [];
- this.mql = window.matchMedia(query);
- var self = this;
- this.listener = function(mql) {
- // Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly
- self.mql = mql.currentTarget || mql;
- self.assess();
- };
- this.mql.addListener(this.listener);
- }
- MediaQuery.prototype = {
- constuctor : MediaQuery,
- /**
- * add a handler for this query, triggering if already active
- *
- * @param {object} handler
- * @param {function} handler.match callback for when query is activated
- * @param {function} [handler.unmatch] callback for when query is deactivated
- * @param {function} [handler.setup] callback for immediate execution when a query handler is registered
- * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?
- */
- addHandler : function(handler) {
- var qh = new QueryHandler(handler);
- this.handlers.push(qh);
- this.matches() && qh.on();
- },
- /**
- * removes the given handler from the collection, and calls it's destroy methods
- *
- * @param {object || function} handler the handler to remove
- */
- removeHandler : function(handler) {
- var handlers = this.handlers;
- each(handlers, function(h, i) {
- if(h.equals(handler)) {
- h.destroy();
- return !handlers.splice(i,1); //remove from array and exit each early
- }
- });
- },
- /**
- * Determine whether the media query should be considered a match
- *
- * @return {Boolean} true if media query can be considered a match, false otherwise
- */
- matches : function() {
- return this.mql.matches || this.isUnconditional;
- },
- /**
- * Clears all handlers and unbinds events
- */
- clear : function() {
- each(this.handlers, function(handler) {
- handler.destroy();
- });
- this.mql.removeListener(this.listener);
- this.handlers.length = 0; //clear array
- },
- /*
- * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match
- */
- assess : function() {
- var action = this.matches() ? 'on' : 'off';
- each(this.handlers, function(handler) {
- handler[action]();
- });
- }
- };
- module.exports = MediaQuery;
- /***/ }),
- /***/ "./node_modules/enquire.js/src/MediaQueryDispatch.js":
- /*!***********************************************************!*\
- !*** ./node_modules/enquire.js/src/MediaQueryDispatch.js ***!
- \***********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var MediaQuery = __webpack_require__(/*! ./MediaQuery */ "./node_modules/enquire.js/src/MediaQuery.js");
- var Util = __webpack_require__(/*! ./Util */ "./node_modules/enquire.js/src/Util.js");
- var each = Util.each;
- var isFunction = Util.isFunction;
- var isArray = Util.isArray;
- /**
- * Allows for registration of query handlers.
- * Manages the query handler's state and is responsible for wiring up browser events
- *
- * @constructor
- */
- function MediaQueryDispatch () {
- if(!window.matchMedia) {
- throw new Error('matchMedia not present, legacy browsers require a polyfill');
- }
- this.queries = {};
- this.browserIsIncapable = !window.matchMedia('only all').matches;
- }
- MediaQueryDispatch.prototype = {
- constructor : MediaQueryDispatch,
- /**
- * Registers a handler for the given media query
- *
- * @param {string} q the media query
- * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers
- * @param {function} options.match fired when query matched
- * @param {function} [options.unmatch] fired when a query is no longer matched
- * @param {function} [options.setup] fired when handler first triggered
- * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched
- * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers
- */
- register : function(q, options, shouldDegrade) {
- var queries = this.queries,
- isUnconditional = shouldDegrade && this.browserIsIncapable;
- if(!queries[q]) {
- queries[q] = new MediaQuery(q, isUnconditional);
- }
- //normalise to object in an array
- if(isFunction(options)) {
- options = { match : options };
- }
- if(!isArray(options)) {
- options = [options];
- }
- each(options, function(handler) {
- if (isFunction(handler)) {
- handler = { match : handler };
- }
- queries[q].addHandler(handler);
- });
- return this;
- },
- /**
- * unregisters a query and all it's handlers, or a specific handler for a query
- *
- * @param {string} q the media query to target
- * @param {object || function} [handler] specific handler to unregister
- */
- unregister : function(q, handler) {
- var query = this.queries[q];
- if(query) {
- if(handler) {
- query.removeHandler(handler);
- }
- else {
- query.clear();
- delete this.queries[q];
- }
- }
- return this;
- }
- };
- module.exports = MediaQueryDispatch;
- /***/ }),
- /***/ "./node_modules/enquire.js/src/QueryHandler.js":
- /*!*****************************************************!*\
- !*** ./node_modules/enquire.js/src/QueryHandler.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Delegate to handle a media query being matched and unmatched.
- *
- * @param {object} options
- * @param {function} options.match callback for when the media query is matched
- * @param {function} [options.unmatch] callback for when the media query is unmatched
- * @param {function} [options.setup] one-time callback triggered the first time a query is matched
- * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?
- * @constructor
- */
- function QueryHandler(options) {
- this.options = options;
- !options.deferSetup && this.setup();
- }
- QueryHandler.prototype = {
- constructor : QueryHandler,
- /**
- * coordinates setup of the handler
- *
- * @function
- */
- setup : function() {
- if(this.options.setup) {
- this.options.setup();
- }
- this.initialised = true;
- },
- /**
- * coordinates setup and triggering of the handler
- *
- * @function
- */
- on : function() {
- !this.initialised && this.setup();
- this.options.match && this.options.match();
- },
- /**
- * coordinates the unmatch event for the handler
- *
- * @function
- */
- off : function() {
- this.options.unmatch && this.options.unmatch();
- },
- /**
- * called when a handler is to be destroyed.
- * delegates to the destroy or unmatch callbacks, depending on availability.
- *
- * @function
- */
- destroy : function() {
- this.options.destroy ? this.options.destroy() : this.off();
- },
- /**
- * determines equality by reference.
- * if object is supplied compare options, if function, compare match callback
- *
- * @function
- * @param {object || function} [target] the target for comparison
- */
- equals : function(target) {
- return this.options === target || this.options.match === target;
- }
- };
- module.exports = QueryHandler;
- /***/ }),
- /***/ "./node_modules/enquire.js/src/Util.js":
- /*!*********************************************!*\
- !*** ./node_modules/enquire.js/src/Util.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Helper function for iterating over a collection
- *
- * @param collection
- * @param fn
- */
- function each(collection, fn) {
- var i = 0,
- length = collection.length,
- cont;
- for(i; i < length; i++) {
- cont = fn(collection[i], i);
- if(cont === false) {
- break; //allow early exit
- }
- }
- }
- /**
- * Helper function for determining whether target object is an array
- *
- * @param target the object under test
- * @return {Boolean} true if array, false otherwise
- */
- function isArray(target) {
- return Object.prototype.toString.apply(target) === '[object Array]';
- }
- /**
- * Helper function for determining whether target object is a function
- *
- * @param target the object under test
- * @return {Boolean} true if function, false otherwise
- */
- function isFunction(target) {
- return typeof target === 'function';
- }
- module.exports = {
- isFunction : isFunction,
- isArray : isArray,
- each : each
- };
- /***/ }),
- /***/ "./node_modules/enquire.js/src/index.js":
- /*!**********************************************!*\
- !*** ./node_modules/enquire.js/src/index.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var MediaQueryDispatch = __webpack_require__(/*! ./MediaQueryDispatch */ "./node_modules/enquire.js/src/MediaQueryDispatch.js");
- module.exports = new MediaQueryDispatch();
- /***/ }),
- /***/ "./node_modules/is-mobile/index.js":
- /*!*****************************************!*\
- !*** ./node_modules/is-mobile/index.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- module.exports = isMobile
- module.exports.isMobile = isMobile
- module.exports.default = isMobile
- var mobileRE = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i
- var tabletRE = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i
- function isMobile (opts) {
- if (!opts) opts = {}
- var ua = opts.ua
- if (!ua && typeof navigator !== 'undefined') ua = navigator.userAgent
- if (ua && ua.headers && typeof ua.headers['user-agent'] === 'string') {
- ua = ua.headers['user-agent']
- }
- if (typeof ua !== 'string') return false
- var result = opts.tablet ? tabletRE.test(ua) : mobileRE.test(ua)
- if (
- !result &&
- opts.tablet &&
- opts.featureDetect &&
- navigator &&
- navigator.maxTouchPoints > 1 &&
- ua.indexOf('Macintosh') !== -1 &&
- ua.indexOf('Safari') !== -1
- ) {
- result = true
- }
- return result
- }
- /***/ }),
- /***/ "./node_modules/json2mq/index.js":
- /*!***************************************!*\
- !*** ./node_modules/json2mq/index.js ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var camel2hyphen = __webpack_require__(/*! string-convert/camel2hyphen */ "./node_modules/string-convert/camel2hyphen.js");
- var isDimension = function (feature) {
- var re = /[height|width]$/;
- return re.test(feature);
- };
- var obj2mq = function (obj) {
- var mq = '';
- var features = Object.keys(obj);
- features.forEach(function (feature, index) {
- var value = obj[feature];
- feature = camel2hyphen(feature);
- // Add px to dimension features
- if (isDimension(feature) && typeof value === 'number') {
- value = value + 'px';
- }
- if (value === true) {
- mq += feature;
- } else if (value === false) {
- mq += 'not ' + feature;
- } else {
- mq += '(' + feature + ': ' + value + ')';
- }
- if (index < features.length-1) {
- mq += ' and '
- }
- });
- return mq;
- };
- var json2mq = function (query) {
- var mq = '';
- if (typeof query === 'string') {
- return query;
- }
- // Handling array of media queries
- if (query instanceof Array) {
- query.forEach(function (q, index) {
- mq += obj2mq(q);
- if (index < query.length-1) {
- mq += ', '
- }
- });
- return mq;
- }
- // Handling single media query
- return obj2mq(query);
- };
- module.exports = json2mq;
- /***/ }),
- /***/ "./node_modules/lodash/_DataView.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_DataView.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
- root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
- /* Built-in method references that are verified to be native. */
- var DataView = getNative(root, 'DataView');
- module.exports = DataView;
- /***/ }),
- /***/ "./node_modules/lodash/_Hash.js":
- /*!**************************************!*\
- !*** ./node_modules/lodash/_Hash.js ***!
- \**************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var hashClear = __webpack_require__(/*! ./_hashClear */ "./node_modules/lodash/_hashClear.js"),
- hashDelete = __webpack_require__(/*! ./_hashDelete */ "./node_modules/lodash/_hashDelete.js"),
- hashGet = __webpack_require__(/*! ./_hashGet */ "./node_modules/lodash/_hashGet.js"),
- hashHas = __webpack_require__(/*! ./_hashHas */ "./node_modules/lodash/_hashHas.js"),
- hashSet = __webpack_require__(/*! ./_hashSet */ "./node_modules/lodash/_hashSet.js");
- /**
- * Creates a hash object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function Hash(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
- // Add methods to `Hash`.
- Hash.prototype.clear = hashClear;
- Hash.prototype['delete'] = hashDelete;
- Hash.prototype.get = hashGet;
- Hash.prototype.has = hashHas;
- Hash.prototype.set = hashSet;
- module.exports = Hash;
- /***/ }),
- /***/ "./node_modules/lodash/_ListCache.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_ListCache.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "./node_modules/lodash/_listCacheClear.js"),
- listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "./node_modules/lodash/_listCacheDelete.js"),
- listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "./node_modules/lodash/_listCacheGet.js"),
- listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "./node_modules/lodash/_listCacheHas.js"),
- listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "./node_modules/lodash/_listCacheSet.js");
- /**
- * Creates an list cache object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function ListCache(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
- // Add methods to `ListCache`.
- ListCache.prototype.clear = listCacheClear;
- ListCache.prototype['delete'] = listCacheDelete;
- ListCache.prototype.get = listCacheGet;
- ListCache.prototype.has = listCacheHas;
- ListCache.prototype.set = listCacheSet;
- module.exports = ListCache;
- /***/ }),
- /***/ "./node_modules/lodash/_Map.js":
- /*!*************************************!*\
- !*** ./node_modules/lodash/_Map.js ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
- root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
- /* Built-in method references that are verified to be native. */
- var Map = getNative(root, 'Map');
- module.exports = Map;
- /***/ }),
- /***/ "./node_modules/lodash/_MapCache.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_MapCache.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "./node_modules/lodash/_mapCacheClear.js"),
- mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "./node_modules/lodash/_mapCacheDelete.js"),
- mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "./node_modules/lodash/_mapCacheGet.js"),
- mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "./node_modules/lodash/_mapCacheHas.js"),
- mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "./node_modules/lodash/_mapCacheSet.js");
- /**
- * Creates a map cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function MapCache(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
- // Add methods to `MapCache`.
- MapCache.prototype.clear = mapCacheClear;
- MapCache.prototype['delete'] = mapCacheDelete;
- MapCache.prototype.get = mapCacheGet;
- MapCache.prototype.has = mapCacheHas;
- MapCache.prototype.set = mapCacheSet;
- module.exports = MapCache;
- /***/ }),
- /***/ "./node_modules/lodash/_Promise.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_Promise.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
- root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
- /* Built-in method references that are verified to be native. */
- var Promise = getNative(root, 'Promise');
- module.exports = Promise;
- /***/ }),
- /***/ "./node_modules/lodash/_Set.js":
- /*!*************************************!*\
- !*** ./node_modules/lodash/_Set.js ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
- root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
- /* Built-in method references that are verified to be native. */
- var Set = getNative(root, 'Set');
- module.exports = Set;
- /***/ }),
- /***/ "./node_modules/lodash/_SetCache.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_SetCache.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"),
- setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "./node_modules/lodash/_setCacheAdd.js"),
- setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "./node_modules/lodash/_setCacheHas.js");
- /**
- *
- * Creates an array cache object to store unique values.
- *
- * @private
- * @constructor
- * @param {Array} [values] The values to cache.
- */
- function SetCache(values) {
- var index = -1,
- length = values == null ? 0 : values.length;
- this.__data__ = new MapCache;
- while (++index < length) {
- this.add(values[index]);
- }
- }
- // Add methods to `SetCache`.
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
- SetCache.prototype.has = setCacheHas;
- module.exports = SetCache;
- /***/ }),
- /***/ "./node_modules/lodash/_Stack.js":
- /*!***************************************!*\
- !*** ./node_modules/lodash/_Stack.js ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
- stackClear = __webpack_require__(/*! ./_stackClear */ "./node_modules/lodash/_stackClear.js"),
- stackDelete = __webpack_require__(/*! ./_stackDelete */ "./node_modules/lodash/_stackDelete.js"),
- stackGet = __webpack_require__(/*! ./_stackGet */ "./node_modules/lodash/_stackGet.js"),
- stackHas = __webpack_require__(/*! ./_stackHas */ "./node_modules/lodash/_stackHas.js"),
- stackSet = __webpack_require__(/*! ./_stackSet */ "./node_modules/lodash/_stackSet.js");
- /**
- * Creates a stack cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function Stack(entries) {
- var data = this.__data__ = new ListCache(entries);
- this.size = data.size;
- }
- // Add methods to `Stack`.
- Stack.prototype.clear = stackClear;
- Stack.prototype['delete'] = stackDelete;
- Stack.prototype.get = stackGet;
- Stack.prototype.has = stackHas;
- Stack.prototype.set = stackSet;
- module.exports = Stack;
- /***/ }),
- /***/ "./node_modules/lodash/_Symbol.js":
- /*!****************************************!*\
- !*** ./node_modules/lodash/_Symbol.js ***!
- \****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
- /** Built-in value references. */
- var Symbol = root.Symbol;
- module.exports = Symbol;
- /***/ }),
- /***/ "./node_modules/lodash/_Uint8Array.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_Uint8Array.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
- /** Built-in value references. */
- var Uint8Array = root.Uint8Array;
- module.exports = Uint8Array;
- /***/ }),
- /***/ "./node_modules/lodash/_WeakMap.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_WeakMap.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
- root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
- /* Built-in method references that are verified to be native. */
- var WeakMap = getNative(root, 'WeakMap');
- module.exports = WeakMap;
- /***/ }),
- /***/ "./node_modules/lodash/_apply.js":
- /*!***************************************!*\
- !*** ./node_modules/lodash/_apply.js ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * A faster alternative to `Function#apply`, this function invokes `func`
- * with the `this` binding of `thisArg` and the arguments of `args`.
- *
- * @private
- * @param {Function} func The function to invoke.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} args The arguments to invoke `func` with.
- * @returns {*} Returns the result of `func`.
- */
- function apply(func, thisArg, args) {
- switch (args.length) {
- case 0: return func.call(thisArg);
- case 1: return func.call(thisArg, args[0]);
- case 2: return func.call(thisArg, args[0], args[1]);
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
- }
- return func.apply(thisArg, args);
- }
- module.exports = apply;
- /***/ }),
- /***/ "./node_modules/lodash/_arrayAggregator.js":
- /*!*************************************************!*\
- !*** ./node_modules/lodash/_arrayAggregator.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * A specialized version of `baseAggregator` for arrays.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
- function arrayAggregator(array, setter, iteratee, accumulator) {
- var index = -1,
- length = array == null ? 0 : array.length;
- while (++index < length) {
- var value = array[index];
- setter(accumulator, value, iteratee(value), array);
- }
- return accumulator;
- }
- module.exports = arrayAggregator;
- /***/ }),
- /***/ "./node_modules/lodash/_arrayEach.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_arrayEach.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * A specialized version of `_.forEach` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
- function arrayEach(array, iteratee) {
- var index = -1,
- length = array == null ? 0 : array.length;
- while (++index < length) {
- if (iteratee(array[index], index, array) === false) {
- break;
- }
- }
- return array;
- }
- module.exports = arrayEach;
- /***/ }),
- /***/ "./node_modules/lodash/_arrayFilter.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_arrayFilter.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * A specialized version of `_.filter` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
- function arrayFilter(array, predicate) {
- var index = -1,
- length = array == null ? 0 : array.length,
- resIndex = 0,
- result = [];
- while (++index < length) {
- var value = array[index];
- if (predicate(value, index, array)) {
- result[resIndex++] = value;
- }
- }
- return result;
- }
- module.exports = arrayFilter;
- /***/ }),
- /***/ "./node_modules/lodash/_arrayIncludes.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_arrayIncludes.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "./node_modules/lodash/_baseIndexOf.js");
- /**
- * A specialized version of `_.includes` for arrays without support for
- * specifying an index to search from.
- *
- * @private
- * @param {Array} [array] The array to inspect.
- * @param {*} target The value to search for.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
- function arrayIncludes(array, value) {
- var length = array == null ? 0 : array.length;
- return !!length && baseIndexOf(array, value, 0) > -1;
- }
- module.exports = arrayIncludes;
- /***/ }),
- /***/ "./node_modules/lodash/_arrayIncludesWith.js":
- /*!***************************************************!*\
- !*** ./node_modules/lodash/_arrayIncludesWith.js ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * This function is like `arrayIncludes` except that it accepts a comparator.
- *
- * @private
- * @param {Array} [array] The array to inspect.
- * @param {*} target The value to search for.
- * @param {Function} comparator The comparator invoked per element.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
- function arrayIncludesWith(array, value, comparator) {
- var index = -1,
- length = array == null ? 0 : array.length;
- while (++index < length) {
- if (comparator(value, array[index])) {
- return true;
- }
- }
- return false;
- }
- module.exports = arrayIncludesWith;
- /***/ }),
- /***/ "./node_modules/lodash/_arrayLikeKeys.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_arrayLikeKeys.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"),
- isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
- isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
- isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
- isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
- isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /**
- * Creates an array of the enumerable property names of the array-like `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @param {boolean} inherited Specify returning inherited property names.
- * @returns {Array} Returns the array of property names.
- */
- function arrayLikeKeys(value, inherited) {
- var isArr = isArray(value),
- isArg = !isArr && isArguments(value),
- isBuff = !isArr && !isArg && isBuffer(value),
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
- skipIndexes = isArr || isArg || isBuff || isType,
- result = skipIndexes ? baseTimes(value.length, String) : [],
- length = result.length;
- for (var key in value) {
- if ((inherited || hasOwnProperty.call(value, key)) &&
- !(skipIndexes && (
- // Safari 9 has enumerable `arguments.length` in strict mode.
- key == 'length' ||
- // Node.js 0.10 has enumerable non-index properties on buffers.
- (isBuff && (key == 'offset' || key == 'parent')) ||
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
- // Skip index properties.
- isIndex(key, length)
- ))) {
- result.push(key);
- }
- }
- return result;
- }
- module.exports = arrayLikeKeys;
- /***/ }),
- /***/ "./node_modules/lodash/_arrayMap.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_arrayMap.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * A specialized version of `_.map` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
- function arrayMap(array, iteratee) {
- var index = -1,
- length = array == null ? 0 : array.length,
- result = Array(length);
- while (++index < length) {
- result[index] = iteratee(array[index], index, array);
- }
- return result;
- }
- module.exports = arrayMap;
- /***/ }),
- /***/ "./node_modules/lodash/_arrayPush.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_arrayPush.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Appends the elements of `values` to `array`.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to append.
- * @returns {Array} Returns `array`.
- */
- function arrayPush(array, values) {
- var index = -1,
- length = values.length,
- offset = array.length;
- while (++index < length) {
- array[offset + index] = values[index];
- }
- return array;
- }
- module.exports = arrayPush;
- /***/ }),
- /***/ "./node_modules/lodash/_arraySome.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_arraySome.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * A specialized version of `_.some` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
- function arraySome(array, predicate) {
- var index = -1,
- length = array == null ? 0 : array.length;
- while (++index < length) {
- if (predicate(array[index], index, array)) {
- return true;
- }
- }
- return false;
- }
- module.exports = arraySome;
- /***/ }),
- /***/ "./node_modules/lodash/_asciiSize.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_asciiSize.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js");
- /**
- * Gets the size of an ASCII `string`.
- *
- * @private
- * @param {string} string The string inspect.
- * @returns {number} Returns the string size.
- */
- var asciiSize = baseProperty('length');
- module.exports = asciiSize;
- /***/ }),
- /***/ "./node_modules/lodash/_asciiToArray.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_asciiToArray.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Converts an ASCII `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
- function asciiToArray(string) {
- return string.split('');
- }
- module.exports = asciiToArray;
- /***/ }),
- /***/ "./node_modules/lodash/_assignMergeValue.js":
- /*!**************************************************!*\
- !*** ./node_modules/lodash/_assignMergeValue.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
- eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
- /**
- * This function is like `assignValue` except that it doesn't assign
- * `undefined` values.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function assignMergeValue(object, key, value) {
- if ((value !== undefined && !eq(object[key], value)) ||
- (value === undefined && !(key in object))) {
- baseAssignValue(object, key, value);
- }
- }
- module.exports = assignMergeValue;
- /***/ }),
- /***/ "./node_modules/lodash/_assignValue.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_assignValue.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
- eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function assignValue(object, key, value) {
- var objValue = object[key];
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
- (value === undefined && !(key in object))) {
- baseAssignValue(object, key, value);
- }
- }
- module.exports = assignValue;
- /***/ }),
- /***/ "./node_modules/lodash/_assocIndexOf.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_assocIndexOf.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
- /**
- * Gets the index at which the `key` is found in `array` of key-value pairs.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} key The key to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function assocIndexOf(array, key) {
- var length = array.length;
- while (length--) {
- if (eq(array[length][0], key)) {
- return length;
- }
- }
- return -1;
- }
- module.exports = assocIndexOf;
- /***/ }),
- /***/ "./node_modules/lodash/_baseAggregator.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_baseAggregator.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js");
- /**
- * Aggregates elements of `collection` on `accumulator` with keys transformed
- * by `iteratee` and values set by `setter`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
- function baseAggregator(collection, setter, iteratee, accumulator) {
- baseEach(collection, function(value, key, collection) {
- setter(accumulator, value, iteratee(value), collection);
- });
- return accumulator;
- }
- module.exports = baseAggregator;
- /***/ }),
- /***/ "./node_modules/lodash/_baseAssign.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_baseAssign.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
- keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
- /**
- * The base implementation of `_.assign` without support for multiple sources
- * or `customizer` functions.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @returns {Object} Returns `object`.
- */
- function baseAssign(object, source) {
- return object && copyObject(source, keys(source), object);
- }
- module.exports = baseAssign;
- /***/ }),
- /***/ "./node_modules/lodash/_baseAssignIn.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_baseAssignIn.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
- keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
- /**
- * The base implementation of `_.assignIn` without support for multiple sources
- * or `customizer` functions.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @returns {Object} Returns `object`.
- */
- function baseAssignIn(object, source) {
- return object && copyObject(source, keysIn(source), object);
- }
- module.exports = baseAssignIn;
- /***/ }),
- /***/ "./node_modules/lodash/_baseAssignValue.js":
- /*!*************************************************!*\
- !*** ./node_modules/lodash/_baseAssignValue.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js");
- /**
- * The base implementation of `assignValue` and `assignMergeValue` without
- * value checks.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function baseAssignValue(object, key, value) {
- if (key == '__proto__' && defineProperty) {
- defineProperty(object, key, {
- 'configurable': true,
- 'enumerable': true,
- 'value': value,
- 'writable': true
- });
- } else {
- object[key] = value;
- }
- }
- module.exports = baseAssignValue;
- /***/ }),
- /***/ "./node_modules/lodash/_baseClone.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_baseClone.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
- arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
- assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
- baseAssign = __webpack_require__(/*! ./_baseAssign */ "./node_modules/lodash/_baseAssign.js"),
- baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "./node_modules/lodash/_baseAssignIn.js"),
- cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
- copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
- copySymbols = __webpack_require__(/*! ./_copySymbols */ "./node_modules/lodash/_copySymbols.js"),
- copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "./node_modules/lodash/_copySymbolsIn.js"),
- getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js"),
- getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js"),
- getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
- initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "./node_modules/lodash/_initCloneArray.js"),
- initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "./node_modules/lodash/_initCloneByTag.js"),
- initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
- isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
- isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
- isMap = __webpack_require__(/*! ./isMap */ "./node_modules/lodash/isMap.js"),
- isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
- isSet = __webpack_require__(/*! ./isSet */ "./node_modules/lodash/isSet.js"),
- keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js"),
- keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
- /** Used to compose bitmasks for cloning. */
- var CLONE_DEEP_FLAG = 1,
- CLONE_FLAT_FLAG = 2,
- CLONE_SYMBOLS_FLAG = 4;
- /** `Object#toString` result references. */
- var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- objectTag = '[object Object]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- symbolTag = '[object Symbol]',
- weakMapTag = '[object WeakMap]';
- var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]',
- float32Tag = '[object Float32Array]',
- float64Tag = '[object Float64Array]',
- int8Tag = '[object Int8Array]',
- int16Tag = '[object Int16Array]',
- int32Tag = '[object Int32Array]',
- uint8Tag = '[object Uint8Array]',
- uint8ClampedTag = '[object Uint8ClampedArray]',
- uint16Tag = '[object Uint16Array]',
- uint32Tag = '[object Uint32Array]';
- /** Used to identify `toStringTag` values supported by `_.clone`. */
- var cloneableTags = {};
- cloneableTags[argsTag] = cloneableTags[arrayTag] =
- cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
- cloneableTags[boolTag] = cloneableTags[dateTag] =
- cloneableTags[float32Tag] = cloneableTags[float64Tag] =
- cloneableTags[int8Tag] = cloneableTags[int16Tag] =
- cloneableTags[int32Tag] = cloneableTags[mapTag] =
- cloneableTags[numberTag] = cloneableTags[objectTag] =
- cloneableTags[regexpTag] = cloneableTags[setTag] =
- cloneableTags[stringTag] = cloneableTags[symbolTag] =
- cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
- cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
- cloneableTags[errorTag] = cloneableTags[funcTag] =
- cloneableTags[weakMapTag] = false;
- /**
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
- * traversed objects.
- *
- * @private
- * @param {*} value The value to clone.
- * @param {boolean} bitmask The bitmask flags.
- * 1 - Deep clone
- * 2 - Flatten inherited properties
- * 4 - Clone symbols
- * @param {Function} [customizer] The function to customize cloning.
- * @param {string} [key] The key of `value`.
- * @param {Object} [object] The parent object of `value`.
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
- * @returns {*} Returns the cloned value.
- */
- function baseClone(value, bitmask, customizer, key, object, stack) {
- var result,
- isDeep = bitmask & CLONE_DEEP_FLAG,
- isFlat = bitmask & CLONE_FLAT_FLAG,
- isFull = bitmask & CLONE_SYMBOLS_FLAG;
- if (customizer) {
- result = object ? customizer(value, key, object, stack) : customizer(value);
- }
- if (result !== undefined) {
- return result;
- }
- if (!isObject(value)) {
- return value;
- }
- var isArr = isArray(value);
- if (isArr) {
- result = initCloneArray(value);
- if (!isDeep) {
- return copyArray(value, result);
- }
- } else {
- var tag = getTag(value),
- isFunc = tag == funcTag || tag == genTag;
- if (isBuffer(value)) {
- return cloneBuffer(value, isDeep);
- }
- if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
- result = (isFlat || isFunc) ? {} : initCloneObject(value);
- if (!isDeep) {
- return isFlat
- ? copySymbolsIn(value, baseAssignIn(result, value))
- : copySymbols(value, baseAssign(result, value));
- }
- } else {
- if (!cloneableTags[tag]) {
- return object ? value : {};
- }
- result = initCloneByTag(value, tag, isDeep);
- }
- }
- // Check for circular references and return its corresponding clone.
- stack || (stack = new Stack);
- var stacked = stack.get(value);
- if (stacked) {
- return stacked;
- }
- stack.set(value, result);
- if (isSet(value)) {
- value.forEach(function(subValue) {
- result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
- });
- } else if (isMap(value)) {
- value.forEach(function(subValue, key) {
- result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
- });
- }
- var keysFunc = isFull
- ? (isFlat ? getAllKeysIn : getAllKeys)
- : (isFlat ? keysIn : keys);
- var props = isArr ? undefined : keysFunc(value);
- arrayEach(props || value, function(subValue, key) {
- if (props) {
- key = subValue;
- subValue = value[key];
- }
- // Recursively populate clone (susceptible to call stack limits).
- assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
- });
- return result;
- }
- module.exports = baseClone;
- /***/ }),
- /***/ "./node_modules/lodash/_baseCreate.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_baseCreate.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
- /** Built-in value references. */
- var objectCreate = Object.create;
- /**
- * The base implementation of `_.create` without support for assigning
- * properties to the created object.
- *
- * @private
- * @param {Object} proto The object to inherit from.
- * @returns {Object} Returns the new object.
- */
- var baseCreate = (function() {
- function object() {}
- return function(proto) {
- if (!isObject(proto)) {
- return {};
- }
- if (objectCreate) {
- return objectCreate(proto);
- }
- object.prototype = proto;
- var result = new object;
- object.prototype = undefined;
- return result;
- };
- }());
- module.exports = baseCreate;
- /***/ }),
- /***/ "./node_modules/lodash/_baseEach.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_baseEach.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
- createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js");
- /**
- * The base implementation of `_.forEach` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
- var baseEach = createBaseEach(baseForOwn);
- module.exports = baseEach;
- /***/ }),
- /***/ "./node_modules/lodash/_baseFindIndex.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_baseFindIndex.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} predicate The function invoked per iteration.
- * @param {number} fromIndex The index to search from.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
- var length = array.length,
- index = fromIndex + (fromRight ? 1 : -1);
- while ((fromRight ? index-- : ++index < length)) {
- if (predicate(array[index], index, array)) {
- return index;
- }
- }
- return -1;
- }
- module.exports = baseFindIndex;
- /***/ }),
- /***/ "./node_modules/lodash/_baseFlatten.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_baseFlatten.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
- isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "./node_modules/lodash/_isFlattenable.js");
- /**
- * The base implementation of `_.flatten` with support for restricting flattening.
- *
- * @private
- * @param {Array} array The array to flatten.
- * @param {number} depth The maximum recursion depth.
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
- * @param {Array} [result=[]] The initial result value.
- * @returns {Array} Returns the new flattened array.
- */
- function baseFlatten(array, depth, predicate, isStrict, result) {
- var index = -1,
- length = array.length;
- predicate || (predicate = isFlattenable);
- result || (result = []);
- while (++index < length) {
- var value = array[index];
- if (depth > 0 && predicate(value)) {
- if (depth > 1) {
- // Recursively flatten arrays (susceptible to call stack limits).
- baseFlatten(value, depth - 1, predicate, isStrict, result);
- } else {
- arrayPush(result, value);
- }
- } else if (!isStrict) {
- result[result.length] = value;
- }
- }
- return result;
- }
- module.exports = baseFlatten;
- /***/ }),
- /***/ "./node_modules/lodash/_baseFor.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_baseFor.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js");
- /**
- * The base implementation of `baseForOwn` which iterates over `object`
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
- var baseFor = createBaseFor();
- module.exports = baseFor;
- /***/ }),
- /***/ "./node_modules/lodash/_baseForOwn.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_baseForOwn.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
- keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
- /**
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
- function baseForOwn(object, iteratee) {
- return object && baseFor(object, iteratee, keys);
- }
- module.exports = baseForOwn;
- /***/ }),
- /***/ "./node_modules/lodash/_baseGet.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_baseGet.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
- toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
- /**
- * The base implementation of `_.get` without support for default values.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @returns {*} Returns the resolved value.
- */
- function baseGet(object, path) {
- path = castPath(path, object);
- var index = 0,
- length = path.length;
- while (object != null && index < length) {
- object = object[toKey(path[index++])];
- }
- return (index && index == length) ? object : undefined;
- }
- module.exports = baseGet;
- /***/ }),
- /***/ "./node_modules/lodash/_baseGetAllKeys.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_baseGetAllKeys.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
- isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
- /**
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
- * symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
- var result = keysFunc(object);
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
- }
- module.exports = baseGetAllKeys;
- /***/ }),
- /***/ "./node_modules/lodash/_baseGetTag.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_baseGetTag.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
- getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
- objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");
- /** `Object#toString` result references. */
- var nullTag = '[object Null]',
- undefinedTag = '[object Undefined]';
- /** Built-in value references. */
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
- /**
- * The base implementation of `getTag` without fallbacks for buggy environments.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
- */
- function baseGetTag(value) {
- if (value == null) {
- return value === undefined ? undefinedTag : nullTag;
- }
- return (symToStringTag && symToStringTag in Object(value))
- ? getRawTag(value)
- : objectToString(value);
- }
- module.exports = baseGetTag;
- /***/ }),
- /***/ "./node_modules/lodash/_baseHas.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_baseHas.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /**
- * The base implementation of `_.has` without support for deep paths.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
- function baseHas(object, key) {
- return object != null && hasOwnProperty.call(object, key);
- }
- module.exports = baseHas;
- /***/ }),
- /***/ "./node_modules/lodash/_baseHasIn.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_baseHasIn.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * The base implementation of `_.hasIn` without support for deep paths.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
- function baseHasIn(object, key) {
- return object != null && key in Object(object);
- }
- module.exports = baseHasIn;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIndexOf.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_baseIndexOf.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
- baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "./node_modules/lodash/_baseIsNaN.js"),
- strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "./node_modules/lodash/_strictIndexOf.js");
- /**
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseIndexOf(array, value, fromIndex) {
- return value === value
- ? strictIndexOf(array, value, fromIndex)
- : baseFindIndex(array, baseIsNaN, fromIndex);
- }
- module.exports = baseIndexOf;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIsArguments.js":
- /*!*************************************************!*\
- !*** ./node_modules/lodash/_baseIsArguments.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
- /** `Object#toString` result references. */
- var argsTag = '[object Arguments]';
- /**
- * The base implementation of `_.isArguments`.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
- */
- function baseIsArguments(value) {
- return isObjectLike(value) && baseGetTag(value) == argsTag;
- }
- module.exports = baseIsArguments;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIsEqual.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_baseIsEqual.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "./node_modules/lodash/_baseIsEqualDeep.js"),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
- /**
- * The base implementation of `_.isEqual` which supports partial comparisons
- * and tracks traversed objects.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {boolean} bitmask The bitmask flags.
- * 1 - Unordered comparison
- * 2 - Partial comparison
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- */
- function baseIsEqual(value, other, bitmask, customizer, stack) {
- if (value === other) {
- return true;
- }
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
- return value !== value && other !== other;
- }
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
- }
- module.exports = baseIsEqual;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIsEqualDeep.js":
- /*!*************************************************!*\
- !*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
- equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
- equalByTag = __webpack_require__(/*! ./_equalByTag */ "./node_modules/lodash/_equalByTag.js"),
- equalObjects = __webpack_require__(/*! ./_equalObjects */ "./node_modules/lodash/_equalObjects.js"),
- getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
- isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
- isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
- isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
- /** Used to compose bitmasks for value comparisons. */
- var COMPARE_PARTIAL_FLAG = 1;
- /** `Object#toString` result references. */
- var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- objectTag = '[object Object]';
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /**
- * A specialized version of `baseIsEqual` for arrays and objects which performs
- * deep comparisons and tracks traversed objects enabling objects with circular
- * references to be compared.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
- var objIsArr = isArray(object),
- othIsArr = isArray(other),
- objTag = objIsArr ? arrayTag : getTag(object),
- othTag = othIsArr ? arrayTag : getTag(other);
- objTag = objTag == argsTag ? objectTag : objTag;
- othTag = othTag == argsTag ? objectTag : othTag;
- var objIsObj = objTag == objectTag,
- othIsObj = othTag == objectTag,
- isSameTag = objTag == othTag;
- if (isSameTag && isBuffer(object)) {
- if (!isBuffer(other)) {
- return false;
- }
- objIsArr = true;
- objIsObj = false;
- }
- if (isSameTag && !objIsObj) {
- stack || (stack = new Stack);
- return (objIsArr || isTypedArray(object))
- ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
- : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
- }
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
- if (objIsWrapped || othIsWrapped) {
- var objUnwrapped = objIsWrapped ? object.value() : object,
- othUnwrapped = othIsWrapped ? other.value() : other;
- stack || (stack = new Stack);
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
- }
- }
- if (!isSameTag) {
- return false;
- }
- stack || (stack = new Stack);
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
- }
- module.exports = baseIsEqualDeep;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIsMap.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_baseIsMap.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
- /** `Object#toString` result references. */
- var mapTag = '[object Map]';
- /**
- * The base implementation of `_.isMap` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
- */
- function baseIsMap(value) {
- return isObjectLike(value) && getTag(value) == mapTag;
- }
- module.exports = baseIsMap;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIsMatch.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_baseIsMatch.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
- baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");
- /** Used to compose bitmasks for value comparisons. */
- var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
- /**
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Array} matchData The property names, values, and compare flags to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- */
- function baseIsMatch(object, source, matchData, customizer) {
- var index = matchData.length,
- length = index,
- noCustomizer = !customizer;
- if (object == null) {
- return !length;
- }
- object = Object(object);
- while (index--) {
- var data = matchData[index];
- if ((noCustomizer && data[2])
- ? data[1] !== object[data[0]]
- : !(data[0] in object)
- ) {
- return false;
- }
- }
- while (++index < length) {
- data = matchData[index];
- var key = data[0],
- objValue = object[key],
- srcValue = data[1];
- if (noCustomizer && data[2]) {
- if (objValue === undefined && !(key in object)) {
- return false;
- }
- } else {
- var stack = new Stack;
- if (customizer) {
- var result = customizer(objValue, srcValue, key, object, source, stack);
- }
- if (!(result === undefined
- ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
- : result
- )) {
- return false;
- }
- }
- }
- return true;
- }
- module.exports = baseIsMatch;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIsNaN.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_baseIsNaN.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * The base implementation of `_.isNaN` without support for number objects.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
- */
- function baseIsNaN(value) {
- return value !== value;
- }
- module.exports = baseIsNaN;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIsNative.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_baseIsNative.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
- isMasked = __webpack_require__(/*! ./_isMasked */ "./node_modules/lodash/_isMasked.js"),
- isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
- toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
- /**
- * Used to match `RegExp`
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
- */
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
- /** Used to detect host constructors (Safari). */
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
- /** Used for built-in method references. */
- var funcProto = Function.prototype,
- objectProto = Object.prototype;
- /** Used to resolve the decompiled source of functions. */
- var funcToString = funcProto.toString;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /** Used to detect if a method is native. */
- var reIsNative = RegExp('^' +
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
- );
- /**
- * The base implementation of `_.isNative` without bad shim checks.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function,
- * else `false`.
- */
- function baseIsNative(value) {
- if (!isObject(value) || isMasked(value)) {
- return false;
- }
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
- return pattern.test(toSource(value));
- }
- module.exports = baseIsNative;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIsRegExp.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_baseIsRegExp.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
- /** `Object#toString` result references. */
- var regexpTag = '[object RegExp]';
- /**
- * The base implementation of `_.isRegExp` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
- */
- function baseIsRegExp(value) {
- return isObjectLike(value) && baseGetTag(value) == regexpTag;
- }
- module.exports = baseIsRegExp;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIsSet.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_baseIsSet.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
- /** `Object#toString` result references. */
- var setTag = '[object Set]';
- /**
- * The base implementation of `_.isSet` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
- */
- function baseIsSet(value) {
- return isObjectLike(value) && getTag(value) == setTag;
- }
- module.exports = baseIsSet;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIsTypedArray.js":
- /*!**************************************************!*\
- !*** ./node_modules/lodash/_baseIsTypedArray.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
- isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
- /** `Object#toString` result references. */
- var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- funcTag = '[object Function]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- objectTag = '[object Object]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- weakMapTag = '[object WeakMap]';
- var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]',
- float32Tag = '[object Float32Array]',
- float64Tag = '[object Float64Array]',
- int8Tag = '[object Int8Array]',
- int16Tag = '[object Int16Array]',
- int32Tag = '[object Int32Array]',
- uint8Tag = '[object Uint8Array]',
- uint8ClampedTag = '[object Uint8ClampedArray]',
- uint16Tag = '[object Uint16Array]',
- uint32Tag = '[object Uint32Array]';
- /** Used to identify `toStringTag` values of typed arrays. */
- var typedArrayTags = {};
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
- typedArrayTags[uint32Tag] = true;
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
- typedArrayTags[weakMapTag] = false;
- /**
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
- */
- function baseIsTypedArray(value) {
- return isObjectLike(value) &&
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
- }
- module.exports = baseIsTypedArray;
- /***/ }),
- /***/ "./node_modules/lodash/_baseIteratee.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_baseIteratee.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseMatches = __webpack_require__(/*! ./_baseMatches */ "./node_modules/lodash/_baseMatches.js"),
- baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "./node_modules/lodash/_baseMatchesProperty.js"),
- identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
- isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
- property = __webpack_require__(/*! ./property */ "./node_modules/lodash/property.js");
- /**
- * The base implementation of `_.iteratee`.
- *
- * @private
- * @param {*} [value=_.identity] The value to convert to an iteratee.
- * @returns {Function} Returns the iteratee.
- */
- function baseIteratee(value) {
- // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
- // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
- if (typeof value == 'function') {
- return value;
- }
- if (value == null) {
- return identity;
- }
- if (typeof value == 'object') {
- return isArray(value)
- ? baseMatchesProperty(value[0], value[1])
- : baseMatches(value);
- }
- return property(value);
- }
- module.exports = baseIteratee;
- /***/ }),
- /***/ "./node_modules/lodash/_baseKeys.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_baseKeys.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
- nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "./node_modules/lodash/_nativeKeys.js");
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /**
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function baseKeys(object) {
- if (!isPrototype(object)) {
- return nativeKeys(object);
- }
- var result = [];
- for (var key in Object(object)) {
- if (hasOwnProperty.call(object, key) && key != 'constructor') {
- result.push(key);
- }
- }
- return result;
- }
- module.exports = baseKeys;
- /***/ }),
- /***/ "./node_modules/lodash/_baseKeysIn.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_baseKeysIn.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
- isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
- nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "./node_modules/lodash/_nativeKeysIn.js");
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /**
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function baseKeysIn(object) {
- if (!isObject(object)) {
- return nativeKeysIn(object);
- }
- var isProto = isPrototype(object),
- result = [];
- for (var key in object) {
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
- result.push(key);
- }
- }
- return result;
- }
- module.exports = baseKeysIn;
- /***/ }),
- /***/ "./node_modules/lodash/_baseMatches.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_baseMatches.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "./node_modules/lodash/_baseIsMatch.js"),
- getMatchData = __webpack_require__(/*! ./_getMatchData */ "./node_modules/lodash/_getMatchData.js"),
- matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js");
- /**
- * The base implementation of `_.matches` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- */
- function baseMatches(source) {
- var matchData = getMatchData(source);
- if (matchData.length == 1 && matchData[0][2]) {
- return matchesStrictComparable(matchData[0][0], matchData[0][1]);
- }
- return function(object) {
- return object === source || baseIsMatch(object, source, matchData);
- };
- }
- module.exports = baseMatches;
- /***/ }),
- /***/ "./node_modules/lodash/_baseMatchesProperty.js":
- /*!*****************************************************!*\
- !*** ./node_modules/lodash/_baseMatchesProperty.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js"),
- get = __webpack_require__(/*! ./get */ "./node_modules/lodash/get.js"),
- hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js"),
- isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
- isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
- matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js"),
- toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
- /** Used to compose bitmasks for value comparisons. */
- var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
- /**
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
- *
- * @private
- * @param {string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
- function baseMatchesProperty(path, srcValue) {
- if (isKey(path) && isStrictComparable(srcValue)) {
- return matchesStrictComparable(toKey(path), srcValue);
- }
- return function(object) {
- var objValue = get(object, path);
- return (objValue === undefined && objValue === srcValue)
- ? hasIn(object, path)
- : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
- };
- }
- module.exports = baseMatchesProperty;
- /***/ }),
- /***/ "./node_modules/lodash/_baseMerge.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_baseMerge.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
- assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
- baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
- baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "./node_modules/lodash/_baseMergeDeep.js"),
- isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
- keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js"),
- safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js");
- /**
- * The base implementation of `_.merge` without support for multiple sources.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} [customizer] The function to customize merged values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- */
- function baseMerge(object, source, srcIndex, customizer, stack) {
- if (object === source) {
- return;
- }
- baseFor(source, function(srcValue, key) {
- stack || (stack = new Stack);
- if (isObject(srcValue)) {
- baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
- }
- else {
- var newValue = customizer
- ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
- : undefined;
- if (newValue === undefined) {
- newValue = srcValue;
- }
- assignMergeValue(object, key, newValue);
- }
- }, keysIn);
- }
- module.exports = baseMerge;
- /***/ }),
- /***/ "./node_modules/lodash/_baseMergeDeep.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_baseMergeDeep.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
- cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
- cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js"),
- copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
- initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
- isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
- isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
- isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js"),
- isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
- isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
- isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
- isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js"),
- isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"),
- safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js"),
- toPlainObject = __webpack_require__(/*! ./toPlainObject */ "./node_modules/lodash/toPlainObject.js");
- /**
- * A specialized version of `baseMerge` for arrays and objects which performs
- * deep merges and tracks traversed objects enabling objects with circular
- * references to be merged.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {string} key The key of the value to merge.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} mergeFunc The function to merge values.
- * @param {Function} [customizer] The function to customize assigned values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- */
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
- var objValue = safeGet(object, key),
- srcValue = safeGet(source, key),
- stacked = stack.get(srcValue);
- if (stacked) {
- assignMergeValue(object, key, stacked);
- return;
- }
- var newValue = customizer
- ? customizer(objValue, srcValue, (key + ''), object, source, stack)
- : undefined;
- var isCommon = newValue === undefined;
- if (isCommon) {
- var isArr = isArray(srcValue),
- isBuff = !isArr && isBuffer(srcValue),
- isTyped = !isArr && !isBuff && isTypedArray(srcValue);
- newValue = srcValue;
- if (isArr || isBuff || isTyped) {
- if (isArray(objValue)) {
- newValue = objValue;
- }
- else if (isArrayLikeObject(objValue)) {
- newValue = copyArray(objValue);
- }
- else if (isBuff) {
- isCommon = false;
- newValue = cloneBuffer(srcValue, true);
- }
- else if (isTyped) {
- isCommon = false;
- newValue = cloneTypedArray(srcValue, true);
- }
- else {
- newValue = [];
- }
- }
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
- newValue = objValue;
- if (isArguments(objValue)) {
- newValue = toPlainObject(objValue);
- }
- else if (!isObject(objValue) || isFunction(objValue)) {
- newValue = initCloneObject(srcValue);
- }
- }
- else {
- isCommon = false;
- }
- }
- if (isCommon) {
- // Recursively merge objects and arrays (susceptible to call stack limits).
- stack.set(srcValue, newValue);
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
- stack['delete'](srcValue);
- }
- assignMergeValue(object, key, newValue);
- }
- module.exports = baseMergeDeep;
- /***/ }),
- /***/ "./node_modules/lodash/_basePick.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_basePick.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var basePickBy = __webpack_require__(/*! ./_basePickBy */ "./node_modules/lodash/_basePickBy.js"),
- hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js");
- /**
- * The base implementation of `_.pick` without support for individual
- * property identifiers.
- *
- * @private
- * @param {Object} object The source object.
- * @param {string[]} paths The property paths to pick.
- * @returns {Object} Returns the new object.
- */
- function basePick(object, paths) {
- return basePickBy(object, paths, function(value, path) {
- return hasIn(object, path);
- });
- }
- module.exports = basePick;
- /***/ }),
- /***/ "./node_modules/lodash/_basePickBy.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_basePickBy.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
- baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js"),
- castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js");
- /**
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The source object.
- * @param {string[]} paths The property paths to pick.
- * @param {Function} predicate The function invoked per property.
- * @returns {Object} Returns the new object.
- */
- function basePickBy(object, paths, predicate) {
- var index = -1,
- length = paths.length,
- result = {};
- while (++index < length) {
- var path = paths[index],
- value = baseGet(object, path);
- if (predicate(value, path)) {
- baseSet(result, castPath(path, object), value);
- }
- }
- return result;
- }
- module.exports = basePickBy;
- /***/ }),
- /***/ "./node_modules/lodash/_baseProperty.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_baseProperty.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * The base implementation of `_.property` without support for deep paths.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
- function baseProperty(key) {
- return function(object) {
- return object == null ? undefined : object[key];
- };
- }
- module.exports = baseProperty;
- /***/ }),
- /***/ "./node_modules/lodash/_basePropertyDeep.js":
- /*!**************************************************!*\
- !*** ./node_modules/lodash/_basePropertyDeep.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
- /**
- * A specialized version of `baseProperty` which supports deep paths.
- *
- * @private
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
- function basePropertyDeep(path) {
- return function(object) {
- return baseGet(object, path);
- };
- }
- module.exports = basePropertyDeep;
- /***/ }),
- /***/ "./node_modules/lodash/_baseRepeat.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_baseRepeat.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used as references for various `Number` constants. */
- var MAX_SAFE_INTEGER = 9007199254740991;
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeFloor = Math.floor;
- /**
- * The base implementation of `_.repeat` which doesn't coerce arguments.
- *
- * @private
- * @param {string} string The string to repeat.
- * @param {number} n The number of times to repeat the string.
- * @returns {string} Returns the repeated string.
- */
- function baseRepeat(string, n) {
- var result = '';
- if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
- return result;
- }
- // Leverage the exponentiation by squaring algorithm for a faster repeat.
- // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
- do {
- if (n % 2) {
- result += string;
- }
- n = nativeFloor(n / 2);
- if (n) {
- string += string;
- }
- } while (n);
- return result;
- }
- module.exports = baseRepeat;
- /***/ }),
- /***/ "./node_modules/lodash/_baseRest.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_baseRest.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
- overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
- setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
- /**
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @returns {Function} Returns the new function.
- */
- function baseRest(func, start) {
- return setToString(overRest(func, start, identity), func + '');
- }
- module.exports = baseRest;
- /***/ }),
- /***/ "./node_modules/lodash/_baseSet.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_baseSet.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
- castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
- isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
- isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
- toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
- /**
- * The base implementation of `_.set`.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @param {Function} [customizer] The function to customize path creation.
- * @returns {Object} Returns `object`.
- */
- function baseSet(object, path, value, customizer) {
- if (!isObject(object)) {
- return object;
- }
- path = castPath(path, object);
- var index = -1,
- length = path.length,
- lastIndex = length - 1,
- nested = object;
- while (nested != null && ++index < length) {
- var key = toKey(path[index]),
- newValue = value;
- if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
- return object;
- }
- if (index != lastIndex) {
- var objValue = nested[key];
- newValue = customizer ? customizer(objValue, key, nested) : undefined;
- if (newValue === undefined) {
- newValue = isObject(objValue)
- ? objValue
- : (isIndex(path[index + 1]) ? [] : {});
- }
- }
- assignValue(nested, key, newValue);
- nested = nested[key];
- }
- return object;
- }
- module.exports = baseSet;
- /***/ }),
- /***/ "./node_modules/lodash/_baseSetToString.js":
- /*!*************************************************!*\
- !*** ./node_modules/lodash/_baseSetToString.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var constant = __webpack_require__(/*! ./constant */ "./node_modules/lodash/constant.js"),
- defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js"),
- identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
- /**
- * The base implementation of `setToString` without support for hot loop shorting.
- *
- * @private
- * @param {Function} func The function to modify.
- * @param {Function} string The `toString` result.
- * @returns {Function} Returns `func`.
- */
- var baseSetToString = !defineProperty ? identity : function(func, string) {
- return defineProperty(func, 'toString', {
- 'configurable': true,
- 'enumerable': false,
- 'value': constant(string),
- 'writable': true
- });
- };
- module.exports = baseSetToString;
- /***/ }),
- /***/ "./node_modules/lodash/_baseSlice.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_baseSlice.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * The base implementation of `_.slice` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function baseSlice(array, start, end) {
- var index = -1,
- length = array.length;
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : ((end - start) >>> 0);
- start >>>= 0;
- var result = Array(length);
- while (++index < length) {
- result[index] = array[index + start];
- }
- return result;
- }
- module.exports = baseSlice;
- /***/ }),
- /***/ "./node_modules/lodash/_baseTimes.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_baseTimes.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * The base implementation of `_.times` without support for iteratee shorthands
- * or max array length checks.
- *
- * @private
- * @param {number} n The number of times to invoke `iteratee`.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the array of results.
- */
- function baseTimes(n, iteratee) {
- var index = -1,
- result = Array(n);
- while (++index < n) {
- result[index] = iteratee(index);
- }
- return result;
- }
- module.exports = baseTimes;
- /***/ }),
- /***/ "./node_modules/lodash/_baseToString.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_baseToString.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
- arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
- isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
- isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
- /** Used as references for various `Number` constants. */
- var INFINITY = 1 / 0;
- /** Used to convert symbols to primitives and strings. */
- var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolToString = symbolProto ? symbolProto.toString : undefined;
- /**
- * The base implementation of `_.toString` which doesn't convert nullish
- * values to empty strings.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- */
- function baseToString(value) {
- // Exit early for strings to avoid a performance hit in some environments.
- if (typeof value == 'string') {
- return value;
- }
- if (isArray(value)) {
- // Recursively convert values (susceptible to call stack limits).
- return arrayMap(value, baseToString) + '';
- }
- if (isSymbol(value)) {
- return symbolToString ? symbolToString.call(value) : '';
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
- }
- module.exports = baseToString;
- /***/ }),
- /***/ "./node_modules/lodash/_baseTrim.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_baseTrim.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "./node_modules/lodash/_trimmedEndIndex.js");
- /** Used to match leading whitespace. */
- var reTrimStart = /^\s+/;
- /**
- * The base implementation of `_.trim`.
- *
- * @private
- * @param {string} string The string to trim.
- * @returns {string} Returns the trimmed string.
- */
- function baseTrim(string) {
- return string
- ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
- : string;
- }
- module.exports = baseTrim;
- /***/ }),
- /***/ "./node_modules/lodash/_baseUnary.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_baseUnary.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * The base implementation of `_.unary` without support for storing metadata.
- *
- * @private
- * @param {Function} func The function to cap arguments for.
- * @returns {Function} Returns the new capped function.
- */
- function baseUnary(func) {
- return function(value) {
- return func(value);
- };
- }
- module.exports = baseUnary;
- /***/ }),
- /***/ "./node_modules/lodash/_baseUniq.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_baseUniq.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
- arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "./node_modules/lodash/_arrayIncludes.js"),
- arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "./node_modules/lodash/_arrayIncludesWith.js"),
- cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js"),
- createSet = __webpack_require__(/*! ./_createSet */ "./node_modules/lodash/_createSet.js"),
- setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
- /** Used as the size to enable large array optimizations. */
- var LARGE_ARRAY_SIZE = 200;
- /**
- * The base implementation of `_.uniqBy` without support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- */
- function baseUniq(array, iteratee, comparator) {
- var index = -1,
- includes = arrayIncludes,
- length = array.length,
- isCommon = true,
- result = [],
- seen = result;
- if (comparator) {
- isCommon = false;
- includes = arrayIncludesWith;
- }
- else if (length >= LARGE_ARRAY_SIZE) {
- var set = iteratee ? null : createSet(array);
- if (set) {
- return setToArray(set);
- }
- isCommon = false;
- includes = cacheHas;
- seen = new SetCache;
- }
- else {
- seen = iteratee ? [] : result;
- }
- outer:
- while (++index < length) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
- value = (comparator || value !== 0) ? value : 0;
- if (isCommon && computed === computed) {
- var seenIndex = seen.length;
- while (seenIndex--) {
- if (seen[seenIndex] === computed) {
- continue outer;
- }
- }
- if (iteratee) {
- seen.push(computed);
- }
- result.push(value);
- }
- else if (!includes(seen, computed, comparator)) {
- if (seen !== result) {
- seen.push(computed);
- }
- result.push(value);
- }
- }
- return result;
- }
- module.exports = baseUniq;
- /***/ }),
- /***/ "./node_modules/lodash/_baseUnset.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_baseUnset.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
- last = __webpack_require__(/*! ./last */ "./node_modules/lodash/last.js"),
- parent = __webpack_require__(/*! ./_parent */ "./node_modules/lodash/_parent.js"),
- toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
- /**
- * The base implementation of `_.unset`.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {Array|string} path The property path to unset.
- * @returns {boolean} Returns `true` if the property is deleted, else `false`.
- */
- function baseUnset(object, path) {
- path = castPath(path, object);
- object = parent(object, path);
- return object == null || delete object[toKey(last(path))];
- }
- module.exports = baseUnset;
- /***/ }),
- /***/ "./node_modules/lodash/_cacheHas.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_cacheHas.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Checks if a `cache` value for `key` exists.
- *
- * @private
- * @param {Object} cache The cache to query.
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function cacheHas(cache, key) {
- return cache.has(key);
- }
- module.exports = cacheHas;
- /***/ }),
- /***/ "./node_modules/lodash/_castPath.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_castPath.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
- isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
- stringToPath = __webpack_require__(/*! ./_stringToPath */ "./node_modules/lodash/_stringToPath.js"),
- toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
- /**
- * Casts `value` to a path array if it's not one.
- *
- * @private
- * @param {*} value The value to inspect.
- * @param {Object} [object] The object to query keys on.
- * @returns {Array} Returns the cast property path array.
- */
- function castPath(value, object) {
- if (isArray(value)) {
- return value;
- }
- return isKey(value, object) ? [value] : stringToPath(toString(value));
- }
- module.exports = castPath;
- /***/ }),
- /***/ "./node_modules/lodash/_castSlice.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_castSlice.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseSlice = __webpack_require__(/*! ./_baseSlice */ "./node_modules/lodash/_baseSlice.js");
- /**
- * Casts `array` to a slice if it's needed.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {number} start The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the cast slice.
- */
- function castSlice(array, start, end) {
- var length = array.length;
- end = end === undefined ? length : end;
- return (!start && end >= length) ? array : baseSlice(array, start, end);
- }
- module.exports = castSlice;
- /***/ }),
- /***/ "./node_modules/lodash/_cloneArrayBuffer.js":
- /*!**************************************************!*\
- !*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js");
- /**
- * Creates a clone of `arrayBuffer`.
- *
- * @private
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
- * @returns {ArrayBuffer} Returns the cloned array buffer.
- */
- function cloneArrayBuffer(arrayBuffer) {
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
- return result;
- }
- module.exports = cloneArrayBuffer;
- /***/ }),
- /***/ "./node_modules/lodash/_cloneBuffer.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_cloneBuffer.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
- /** Detect free variable `exports`. */
- var freeExports = true && exports && !exports.nodeType && exports;
- /** Detect free variable `module`. */
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
- /** Detect the popular CommonJS extension `module.exports`. */
- var moduleExports = freeModule && freeModule.exports === freeExports;
- /** Built-in value references. */
- var Buffer = moduleExports ? root.Buffer : undefined,
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
- /**
- * Creates a clone of `buffer`.
- *
- * @private
- * @param {Buffer} buffer The buffer to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Buffer} Returns the cloned buffer.
- */
- function cloneBuffer(buffer, isDeep) {
- if (isDeep) {
- return buffer.slice();
- }
- var length = buffer.length,
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
- buffer.copy(result);
- return result;
- }
- module.exports = cloneBuffer;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
- /***/ }),
- /***/ "./node_modules/lodash/_cloneDataView.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_cloneDataView.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
- /**
- * Creates a clone of `dataView`.
- *
- * @private
- * @param {Object} dataView The data view to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned data view.
- */
- function cloneDataView(dataView, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
- }
- module.exports = cloneDataView;
- /***/ }),
- /***/ "./node_modules/lodash/_cloneRegExp.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_cloneRegExp.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used to match `RegExp` flags from their coerced string values. */
- var reFlags = /\w*$/;
- /**
- * Creates a clone of `regexp`.
- *
- * @private
- * @param {Object} regexp The regexp to clone.
- * @returns {Object} Returns the cloned regexp.
- */
- function cloneRegExp(regexp) {
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
- result.lastIndex = regexp.lastIndex;
- return result;
- }
- module.exports = cloneRegExp;
- /***/ }),
- /***/ "./node_modules/lodash/_cloneSymbol.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_cloneSymbol.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
- /** Used to convert symbols to primitives and strings. */
- var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
- /**
- * Creates a clone of the `symbol` object.
- *
- * @private
- * @param {Object} symbol The symbol object to clone.
- * @returns {Object} Returns the cloned symbol object.
- */
- function cloneSymbol(symbol) {
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
- }
- module.exports = cloneSymbol;
- /***/ }),
- /***/ "./node_modules/lodash/_cloneTypedArray.js":
- /*!*************************************************!*\
- !*** ./node_modules/lodash/_cloneTypedArray.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
- /**
- * Creates a clone of `typedArray`.
- *
- * @private
- * @param {Object} typedArray The typed array to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned typed array.
- */
- function cloneTypedArray(typedArray, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
- }
- module.exports = cloneTypedArray;
- /***/ }),
- /***/ "./node_modules/lodash/_copyArray.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_copyArray.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Copies the values of `source` to `array`.
- *
- * @private
- * @param {Array} source The array to copy values from.
- * @param {Array} [array=[]] The array to copy values to.
- * @returns {Array} Returns `array`.
- */
- function copyArray(source, array) {
- var index = -1,
- length = source.length;
- array || (array = Array(length));
- while (++index < length) {
- array[index] = source[index];
- }
- return array;
- }
- module.exports = copyArray;
- /***/ }),
- /***/ "./node_modules/lodash/_copyObject.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_copyObject.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
- baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js");
- /**
- * Copies properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property identifiers to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @param {Function} [customizer] The function to customize copied values.
- * @returns {Object} Returns `object`.
- */
- function copyObject(source, props, object, customizer) {
- var isNew = !object;
- object || (object = {});
- var index = -1,
- length = props.length;
- while (++index < length) {
- var key = props[index];
- var newValue = customizer
- ? customizer(object[key], source[key], key, object, source)
- : undefined;
- if (newValue === undefined) {
- newValue = source[key];
- }
- if (isNew) {
- baseAssignValue(object, key, newValue);
- } else {
- assignValue(object, key, newValue);
- }
- }
- return object;
- }
- module.exports = copyObject;
- /***/ }),
- /***/ "./node_modules/lodash/_copySymbols.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_copySymbols.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
- getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js");
- /**
- * Copies own symbols of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy symbols from.
- * @param {Object} [object={}] The object to copy symbols to.
- * @returns {Object} Returns `object`.
- */
- function copySymbols(source, object) {
- return copyObject(source, getSymbols(source), object);
- }
- module.exports = copySymbols;
- /***/ }),
- /***/ "./node_modules/lodash/_copySymbolsIn.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_copySymbolsIn.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
- getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js");
- /**
- * Copies own and inherited symbols of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy symbols from.
- * @param {Object} [object={}] The object to copy symbols to.
- * @returns {Object} Returns `object`.
- */
- function copySymbolsIn(source, object) {
- return copyObject(source, getSymbolsIn(source), object);
- }
- module.exports = copySymbolsIn;
- /***/ }),
- /***/ "./node_modules/lodash/_coreJsData.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_coreJsData.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
- /** Used to detect overreaching core-js shims. */
- var coreJsData = root['__core-js_shared__'];
- module.exports = coreJsData;
- /***/ }),
- /***/ "./node_modules/lodash/_createAggregator.js":
- /*!**************************************************!*\
- !*** ./node_modules/lodash/_createAggregator.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayAggregator = __webpack_require__(/*! ./_arrayAggregator */ "./node_modules/lodash/_arrayAggregator.js"),
- baseAggregator = __webpack_require__(/*! ./_baseAggregator */ "./node_modules/lodash/_baseAggregator.js"),
- baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
- isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
- /**
- * Creates a function like `_.groupBy`.
- *
- * @private
- * @param {Function} setter The function to set accumulator values.
- * @param {Function} [initializer] The accumulator object initializer.
- * @returns {Function} Returns the new aggregator function.
- */
- function createAggregator(setter, initializer) {
- return function(collection, iteratee) {
- var func = isArray(collection) ? arrayAggregator : baseAggregator,
- accumulator = initializer ? initializer() : {};
- return func(collection, setter, baseIteratee(iteratee, 2), accumulator);
- };
- }
- module.exports = createAggregator;
- /***/ }),
- /***/ "./node_modules/lodash/_createAssigner.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_createAssigner.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
- isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");
- /**
- * Creates a function like `_.assign`.
- *
- * @private
- * @param {Function} assigner The function to assign values.
- * @returns {Function} Returns the new assigner function.
- */
- function createAssigner(assigner) {
- return baseRest(function(object, sources) {
- var index = -1,
- length = sources.length,
- customizer = length > 1 ? sources[length - 1] : undefined,
- guard = length > 2 ? sources[2] : undefined;
- customizer = (assigner.length > 3 && typeof customizer == 'function')
- ? (length--, customizer)
- : undefined;
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
- customizer = length < 3 ? undefined : customizer;
- length = 1;
- }
- object = Object(object);
- while (++index < length) {
- var source = sources[index];
- if (source) {
- assigner(object, source, index, customizer);
- }
- }
- return object;
- });
- }
- module.exports = createAssigner;
- /***/ }),
- /***/ "./node_modules/lodash/_createBaseEach.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_createBaseEach.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
- /**
- * Creates a `baseEach` or `baseEachRight` function.
- *
- * @private
- * @param {Function} eachFunc The function to iterate over a collection.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseEach(eachFunc, fromRight) {
- return function(collection, iteratee) {
- if (collection == null) {
- return collection;
- }
- if (!isArrayLike(collection)) {
- return eachFunc(collection, iteratee);
- }
- var length = collection.length,
- index = fromRight ? length : -1,
- iterable = Object(collection);
- while ((fromRight ? index-- : ++index < length)) {
- if (iteratee(iterable[index], index, iterable) === false) {
- break;
- }
- }
- return collection;
- };
- }
- module.exports = createBaseEach;
- /***/ }),
- /***/ "./node_modules/lodash/_createBaseFor.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_createBaseFor.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseFor(fromRight) {
- return function(object, iteratee, keysFunc) {
- var index = -1,
- iterable = Object(object),
- props = keysFunc(object),
- length = props.length;
- while (length--) {
- var key = props[fromRight ? length : ++index];
- if (iteratee(iterable[key], key, iterable) === false) {
- break;
- }
- }
- return object;
- };
- }
- module.exports = createBaseFor;
- /***/ }),
- /***/ "./node_modules/lodash/_createFind.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_createFind.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
- isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
- keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
- /**
- * Creates a `_.find` or `_.findLast` function.
- *
- * @private
- * @param {Function} findIndexFunc The function to find the collection index.
- * @returns {Function} Returns the new find function.
- */
- function createFind(findIndexFunc) {
- return function(collection, predicate, fromIndex) {
- var iterable = Object(collection);
- if (!isArrayLike(collection)) {
- var iteratee = baseIteratee(predicate, 3);
- collection = keys(collection);
- predicate = function(key) { return iteratee(iterable[key], key, iterable); };
- }
- var index = findIndexFunc(collection, predicate, fromIndex);
- return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
- };
- }
- module.exports = createFind;
- /***/ }),
- /***/ "./node_modules/lodash/_createPadding.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_createPadding.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseRepeat = __webpack_require__(/*! ./_baseRepeat */ "./node_modules/lodash/_baseRepeat.js"),
- baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js"),
- castSlice = __webpack_require__(/*! ./_castSlice */ "./node_modules/lodash/_castSlice.js"),
- hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
- stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js"),
- stringToArray = __webpack_require__(/*! ./_stringToArray */ "./node_modules/lodash/_stringToArray.js");
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeCeil = Math.ceil;
- /**
- * Creates the padding for `string` based on `length`. The `chars` string
- * is truncated if the number of characters exceeds `length`.
- *
- * @private
- * @param {number} length The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padding for `string`.
- */
- function createPadding(length, chars) {
- chars = chars === undefined ? ' ' : baseToString(chars);
- var charsLength = chars.length;
- if (charsLength < 2) {
- return charsLength ? baseRepeat(chars, length) : chars;
- }
- var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
- return hasUnicode(chars)
- ? castSlice(stringToArray(result), 0, length).join('')
- : result.slice(0, length);
- }
- module.exports = createPadding;
- /***/ }),
- /***/ "./node_modules/lodash/_createSet.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_createSet.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
- noop = __webpack_require__(/*! ./noop */ "./node_modules/lodash/noop.js"),
- setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
- /** Used as references for various `Number` constants. */
- var INFINITY = 1 / 0;
- /**
- * Creates a set object of `values`.
- *
- * @private
- * @param {Array} values The values to add to the set.
- * @returns {Object} Returns the new set.
- */
- var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
- return new Set(values);
- };
- module.exports = createSet;
- /***/ }),
- /***/ "./node_modules/lodash/_customOmitClone.js":
- /*!*************************************************!*\
- !*** ./node_modules/lodash/_customOmitClone.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js");
- /**
- * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
- * objects.
- *
- * @private
- * @param {*} value The value to inspect.
- * @param {string} key The key of the property to inspect.
- * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
- */
- function customOmitClone(value) {
- return isPlainObject(value) ? undefined : value;
- }
- module.exports = customOmitClone;
- /***/ }),
- /***/ "./node_modules/lodash/_defineProperty.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_defineProperty.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
- var defineProperty = (function() {
- try {
- var func = getNative(Object, 'defineProperty');
- func({}, '', {});
- return func;
- } catch (e) {}
- }());
- module.exports = defineProperty;
- /***/ }),
- /***/ "./node_modules/lodash/_equalArrays.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_equalArrays.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
- arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
- cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js");
- /** Used to compose bitmasks for value comparisons. */
- var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
- /**
- * A specialized version of `baseIsEqualDeep` for arrays with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Array} array The array to compare.
- * @param {Array} other The other array to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `array` and `other` objects.
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
- */
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
- arrLength = array.length,
- othLength = other.length;
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
- return false;
- }
- // Check that cyclic values are equal.
- var arrStacked = stack.get(array);
- var othStacked = stack.get(other);
- if (arrStacked && othStacked) {
- return arrStacked == other && othStacked == array;
- }
- var index = -1,
- result = true,
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
- stack.set(array, other);
- stack.set(other, array);
- // Ignore non-index properties.
- while (++index < arrLength) {
- var arrValue = array[index],
- othValue = other[index];
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, arrValue, index, other, array, stack)
- : customizer(arrValue, othValue, index, array, other, stack);
- }
- if (compared !== undefined) {
- if (compared) {
- continue;
- }
- result = false;
- break;
- }
- // Recursively compare arrays (susceptible to call stack limits).
- if (seen) {
- if (!arraySome(other, function(othValue, othIndex) {
- if (!cacheHas(seen, othIndex) &&
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
- return seen.push(othIndex);
- }
- })) {
- result = false;
- break;
- }
- } else if (!(
- arrValue === othValue ||
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
- )) {
- result = false;
- break;
- }
- }
- stack['delete'](array);
- stack['delete'](other);
- return result;
- }
- module.exports = equalArrays;
- /***/ }),
- /***/ "./node_modules/lodash/_equalByTag.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_equalByTag.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
- Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js"),
- eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
- equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
- mapToArray = __webpack_require__(/*! ./_mapToArray */ "./node_modules/lodash/_mapToArray.js"),
- setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
- /** Used to compose bitmasks for value comparisons. */
- var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
- /** `Object#toString` result references. */
- var boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- symbolTag = '[object Symbol]';
- var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]';
- /** Used to convert symbols to primitives and strings. */
- var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
- /**
- * A specialized version of `baseIsEqualDeep` for comparing objects of
- * the same `toStringTag`.
- *
- * **Note:** This function only supports comparing values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {string} tag The `toStringTag` of the objects to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
- switch (tag) {
- case dataViewTag:
- if ((object.byteLength != other.byteLength) ||
- (object.byteOffset != other.byteOffset)) {
- return false;
- }
- object = object.buffer;
- other = other.buffer;
- case arrayBufferTag:
- if ((object.byteLength != other.byteLength) ||
- !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
- return false;
- }
- return true;
- case boolTag:
- case dateTag:
- case numberTag:
- // Coerce booleans to `1` or `0` and dates to milliseconds.
- // Invalid dates are coerced to `NaN`.
- return eq(+object, +other);
- case errorTag:
- return object.name == other.name && object.message == other.message;
- case regexpTag:
- case stringTag:
- // Coerce regexes to strings and treat strings, primitives and objects,
- // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
- // for more details.
- return object == (other + '');
- case mapTag:
- var convert = mapToArray;
- case setTag:
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
- convert || (convert = setToArray);
- if (object.size != other.size && !isPartial) {
- return false;
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(object);
- if (stacked) {
- return stacked == other;
- }
- bitmask |= COMPARE_UNORDERED_FLAG;
- // Recursively compare objects (susceptible to call stack limits).
- stack.set(object, other);
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
- stack['delete'](object);
- return result;
- case symbolTag:
- if (symbolValueOf) {
- return symbolValueOf.call(object) == symbolValueOf.call(other);
- }
- }
- return false;
- }
- module.exports = equalByTag;
- /***/ }),
- /***/ "./node_modules/lodash/_equalObjects.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_equalObjects.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js");
- /** Used to compose bitmasks for value comparisons. */
- var COMPARE_PARTIAL_FLAG = 1;
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /**
- * A specialized version of `baseIsEqualDeep` for objects with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
- objProps = getAllKeys(object),
- objLength = objProps.length,
- othProps = getAllKeys(other),
- othLength = othProps.length;
- if (objLength != othLength && !isPartial) {
- return false;
- }
- var index = objLength;
- while (index--) {
- var key = objProps[index];
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
- return false;
- }
- }
- // Check that cyclic values are equal.
- var objStacked = stack.get(object);
- var othStacked = stack.get(other);
- if (objStacked && othStacked) {
- return objStacked == other && othStacked == object;
- }
- var result = true;
- stack.set(object, other);
- stack.set(other, object);
- var skipCtor = isPartial;
- while (++index < objLength) {
- key = objProps[index];
- var objValue = object[key],
- othValue = other[key];
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, objValue, key, other, object, stack)
- : customizer(objValue, othValue, key, object, other, stack);
- }
- // Recursively compare objects (susceptible to call stack limits).
- if (!(compared === undefined
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
- : compared
- )) {
- result = false;
- break;
- }
- skipCtor || (skipCtor = key == 'constructor');
- }
- if (result && !skipCtor) {
- var objCtor = object.constructor,
- othCtor = other.constructor;
- // Non `Object` object instances with different constructors are not equal.
- if (objCtor != othCtor &&
- ('constructor' in object && 'constructor' in other) &&
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
- result = false;
- }
- }
- stack['delete'](object);
- stack['delete'](other);
- return result;
- }
- module.exports = equalObjects;
- /***/ }),
- /***/ "./node_modules/lodash/_flatRest.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_flatRest.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var flatten = __webpack_require__(/*! ./flatten */ "./node_modules/lodash/flatten.js"),
- overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
- setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
- /**
- * A specialized version of `baseRest` which flattens the rest array.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @returns {Function} Returns the new function.
- */
- function flatRest(func) {
- return setToString(overRest(func, undefined, flatten), func + '');
- }
- module.exports = flatRest;
- /***/ }),
- /***/ "./node_modules/lodash/_freeGlobal.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_freeGlobal.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
- module.exports = freeGlobal;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
- /***/ }),
- /***/ "./node_modules/lodash/_getAllKeys.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_getAllKeys.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
- getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
- keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
- /**
- * Creates an array of own enumerable property names and symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function getAllKeys(object) {
- return baseGetAllKeys(object, keys, getSymbols);
- }
- module.exports = getAllKeys;
- /***/ }),
- /***/ "./node_modules/lodash/_getAllKeysIn.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_getAllKeysIn.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
- getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js"),
- keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
- /**
- * Creates an array of own and inherited enumerable property names and
- * symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function getAllKeysIn(object) {
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
- }
- module.exports = getAllKeysIn;
- /***/ }),
- /***/ "./node_modules/lodash/_getMapData.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_getMapData.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isKeyable = __webpack_require__(/*! ./_isKeyable */ "./node_modules/lodash/_isKeyable.js");
- /**
- * Gets the data for `map`.
- *
- * @private
- * @param {Object} map The map to query.
- * @param {string} key The reference key.
- * @returns {*} Returns the map data.
- */
- function getMapData(map, key) {
- var data = map.__data__;
- return isKeyable(key)
- ? data[typeof key == 'string' ? 'string' : 'hash']
- : data.map;
- }
- module.exports = getMapData;
- /***/ }),
- /***/ "./node_modules/lodash/_getMatchData.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_getMatchData.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
- keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
- /**
- * Gets the property names, values, and compare flags of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the match data of `object`.
- */
- function getMatchData(object) {
- var result = keys(object),
- length = result.length;
- while (length--) {
- var key = result[length],
- value = object[key];
- result[length] = [key, value, isStrictComparable(value)];
- }
- return result;
- }
- module.exports = getMatchData;
- /***/ }),
- /***/ "./node_modules/lodash/_getNative.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_getNative.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "./node_modules/lodash/_baseIsNative.js"),
- getValue = __webpack_require__(/*! ./_getValue */ "./node_modules/lodash/_getValue.js");
- /**
- * Gets the native function at `key` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {string} key The key of the method to get.
- * @returns {*} Returns the function if it's native, else `undefined`.
- */
- function getNative(object, key) {
- var value = getValue(object, key);
- return baseIsNative(value) ? value : undefined;
- }
- module.exports = getNative;
- /***/ }),
- /***/ "./node_modules/lodash/_getPrototype.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_getPrototype.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
- /** Built-in value references. */
- var getPrototype = overArg(Object.getPrototypeOf, Object);
- module.exports = getPrototype;
- /***/ }),
- /***/ "./node_modules/lodash/_getRawTag.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_getRawTag.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
- var nativeObjectToString = objectProto.toString;
- /** Built-in value references. */
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
- /**
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the raw `toStringTag`.
- */
- function getRawTag(value) {
- var isOwn = hasOwnProperty.call(value, symToStringTag),
- tag = value[symToStringTag];
- try {
- value[symToStringTag] = undefined;
- var unmasked = true;
- } catch (e) {}
- var result = nativeObjectToString.call(value);
- if (unmasked) {
- if (isOwn) {
- value[symToStringTag] = tag;
- } else {
- delete value[symToStringTag];
- }
- }
- return result;
- }
- module.exports = getRawTag;
- /***/ }),
- /***/ "./node_modules/lodash/_getSymbols.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_getSymbols.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
- stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Built-in value references. */
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeGetSymbols = Object.getOwnPropertySymbols;
- /**
- * Creates an array of the own enumerable symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
- */
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
- if (object == null) {
- return [];
- }
- object = Object(object);
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
- return propertyIsEnumerable.call(object, symbol);
- });
- };
- module.exports = getSymbols;
- /***/ }),
- /***/ "./node_modules/lodash/_getSymbolsIn.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_getSymbolsIn.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
- getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
- getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
- stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeGetSymbols = Object.getOwnPropertySymbols;
- /**
- * Creates an array of the own and inherited enumerable symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
- */
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
- var result = [];
- while (object) {
- arrayPush(result, getSymbols(object));
- object = getPrototype(object);
- }
- return result;
- };
- module.exports = getSymbolsIn;
- /***/ }),
- /***/ "./node_modules/lodash/_getTag.js":
- /*!****************************************!*\
- !*** ./node_modules/lodash/_getTag.js ***!
- \****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var DataView = __webpack_require__(/*! ./_DataView */ "./node_modules/lodash/_DataView.js"),
- Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
- Promise = __webpack_require__(/*! ./_Promise */ "./node_modules/lodash/_Promise.js"),
- Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
- WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js"),
- baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
- toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
- /** `Object#toString` result references. */
- var mapTag = '[object Map]',
- objectTag = '[object Object]',
- promiseTag = '[object Promise]',
- setTag = '[object Set]',
- weakMapTag = '[object WeakMap]';
- var dataViewTag = '[object DataView]';
- /** Used to detect maps, sets, and weakmaps. */
- var dataViewCtorString = toSource(DataView),
- mapCtorString = toSource(Map),
- promiseCtorString = toSource(Promise),
- setCtorString = toSource(Set),
- weakMapCtorString = toSource(WeakMap);
- /**
- * Gets the `toStringTag` of `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
- */
- var getTag = baseGetTag;
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
- (Map && getTag(new Map) != mapTag) ||
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
- (Set && getTag(new Set) != setTag) ||
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
- getTag = function(value) {
- var result = baseGetTag(value),
- Ctor = result == objectTag ? value.constructor : undefined,
- ctorString = Ctor ? toSource(Ctor) : '';
- if (ctorString) {
- switch (ctorString) {
- case dataViewCtorString: return dataViewTag;
- case mapCtorString: return mapTag;
- case promiseCtorString: return promiseTag;
- case setCtorString: return setTag;
- case weakMapCtorString: return weakMapTag;
- }
- }
- return result;
- };
- }
- module.exports = getTag;
- /***/ }),
- /***/ "./node_modules/lodash/_getValue.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_getValue.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Gets the value at `key` of `object`.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {string} key The key of the property to get.
- * @returns {*} Returns the property value.
- */
- function getValue(object, key) {
- return object == null ? undefined : object[key];
- }
- module.exports = getValue;
- /***/ }),
- /***/ "./node_modules/lodash/_hasPath.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_hasPath.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
- isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
- isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
- isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
- isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
- toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
- /**
- * Checks if `path` exists on `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @param {Function} hasFunc The function to check properties.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- */
- function hasPath(object, path, hasFunc) {
- path = castPath(path, object);
- var index = -1,
- length = path.length,
- result = false;
- while (++index < length) {
- var key = toKey(path[index]);
- if (!(result = object != null && hasFunc(object, key))) {
- break;
- }
- object = object[key];
- }
- if (result || ++index != length) {
- return result;
- }
- length = object == null ? 0 : object.length;
- return !!length && isLength(length) && isIndex(key, length) &&
- (isArray(object) || isArguments(object));
- }
- module.exports = hasPath;
- /***/ }),
- /***/ "./node_modules/lodash/_hasUnicode.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_hasUnicode.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used to compose unicode character classes. */
- var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsVarRange = '\\ufe0e\\ufe0f';
- /** Used to compose unicode capture groups. */
- var rsZWJ = '\\u200d';
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
- var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
- /**
- * Checks if `string` contains Unicode symbols.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
- */
- function hasUnicode(string) {
- return reHasUnicode.test(string);
- }
- module.exports = hasUnicode;
- /***/ }),
- /***/ "./node_modules/lodash/_hashClear.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_hashClear.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
- /**
- * Removes all key-value entries from the hash.
- *
- * @private
- * @name clear
- * @memberOf Hash
- */
- function hashClear() {
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
- this.size = 0;
- }
- module.exports = hashClear;
- /***/ }),
- /***/ "./node_modules/lodash/_hashDelete.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_hashDelete.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Removes `key` and its value from the hash.
- *
- * @private
- * @name delete
- * @memberOf Hash
- * @param {Object} hash The hash to modify.
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function hashDelete(key) {
- var result = this.has(key) && delete this.__data__[key];
- this.size -= result ? 1 : 0;
- return result;
- }
- module.exports = hashDelete;
- /***/ }),
- /***/ "./node_modules/lodash/_hashGet.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_hashGet.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
- /** Used to stand-in for `undefined` hash values. */
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /**
- * Gets the hash value for `key`.
- *
- * @private
- * @name get
- * @memberOf Hash
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function hashGet(key) {
- var data = this.__data__;
- if (nativeCreate) {
- var result = data[key];
- return result === HASH_UNDEFINED ? undefined : result;
- }
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
- }
- module.exports = hashGet;
- /***/ }),
- /***/ "./node_modules/lodash/_hashHas.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_hashHas.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /**
- * Checks if a hash value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Hash
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function hashHas(key) {
- var data = this.__data__;
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
- }
- module.exports = hashHas;
- /***/ }),
- /***/ "./node_modules/lodash/_hashSet.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_hashSet.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
- /** Used to stand-in for `undefined` hash values. */
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
- /**
- * Sets the hash `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Hash
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the hash instance.
- */
- function hashSet(key, value) {
- var data = this.__data__;
- this.size += this.has(key) ? 0 : 1;
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
- return this;
- }
- module.exports = hashSet;
- /***/ }),
- /***/ "./node_modules/lodash/_initCloneArray.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_initCloneArray.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /**
- * Initializes an array clone.
- *
- * @private
- * @param {Array} array The array to clone.
- * @returns {Array} Returns the initialized clone.
- */
- function initCloneArray(array) {
- var length = array.length,
- result = new array.constructor(length);
- // Add properties assigned by `RegExp#exec`.
- if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
- result.index = array.index;
- result.input = array.input;
- }
- return result;
- }
- module.exports = initCloneArray;
- /***/ }),
- /***/ "./node_modules/lodash/_initCloneByTag.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_initCloneByTag.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js"),
- cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "./node_modules/lodash/_cloneDataView.js"),
- cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "./node_modules/lodash/_cloneRegExp.js"),
- cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "./node_modules/lodash/_cloneSymbol.js"),
- cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js");
- /** `Object#toString` result references. */
- var boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- symbolTag = '[object Symbol]';
- var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]',
- float32Tag = '[object Float32Array]',
- float64Tag = '[object Float64Array]',
- int8Tag = '[object Int8Array]',
- int16Tag = '[object Int16Array]',
- int32Tag = '[object Int32Array]',
- uint8Tag = '[object Uint8Array]',
- uint8ClampedTag = '[object Uint8ClampedArray]',
- uint16Tag = '[object Uint16Array]',
- uint32Tag = '[object Uint32Array]';
- /**
- * Initializes an object clone based on its `toStringTag`.
- *
- * **Note:** This function only supports cloning values with tags of
- * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
- *
- * @private
- * @param {Object} object The object to clone.
- * @param {string} tag The `toStringTag` of the object to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the initialized clone.
- */
- function initCloneByTag(object, tag, isDeep) {
- var Ctor = object.constructor;
- switch (tag) {
- case arrayBufferTag:
- return cloneArrayBuffer(object);
- case boolTag:
- case dateTag:
- return new Ctor(+object);
- case dataViewTag:
- return cloneDataView(object, isDeep);
- case float32Tag: case float64Tag:
- case int8Tag: case int16Tag: case int32Tag:
- case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
- return cloneTypedArray(object, isDeep);
- case mapTag:
- return new Ctor;
- case numberTag:
- case stringTag:
- return new Ctor(object);
- case regexpTag:
- return cloneRegExp(object);
- case setTag:
- return new Ctor;
- case symbolTag:
- return cloneSymbol(object);
- }
- }
- module.exports = initCloneByTag;
- /***/ }),
- /***/ "./node_modules/lodash/_initCloneObject.js":
- /*!*************************************************!*\
- !*** ./node_modules/lodash/_initCloneObject.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
- getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
- isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js");
- /**
- * Initializes an object clone.
- *
- * @private
- * @param {Object} object The object to clone.
- * @returns {Object} Returns the initialized clone.
- */
- function initCloneObject(object) {
- return (typeof object.constructor == 'function' && !isPrototype(object))
- ? baseCreate(getPrototype(object))
- : {};
- }
- module.exports = initCloneObject;
- /***/ }),
- /***/ "./node_modules/lodash/_isFlattenable.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_isFlattenable.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
- isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
- isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
- /** Built-in value references. */
- var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
- /**
- * Checks if `value` is a flattenable `arguments` object or array.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
- */
- function isFlattenable(value) {
- return isArray(value) || isArguments(value) ||
- !!(spreadableSymbol && value && value[spreadableSymbol]);
- }
- module.exports = isFlattenable;
- /***/ }),
- /***/ "./node_modules/lodash/_isIndex.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_isIndex.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used as references for various `Number` constants. */
- var MAX_SAFE_INTEGER = 9007199254740991;
- /** Used to detect unsigned integer values. */
- var reIsUint = /^(?:0|[1-9]\d*)$/;
- /**
- * Checks if `value` is a valid array-like index.
- *
- * @private
- * @param {*} value The value to check.
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
- */
- function isIndex(value, length) {
- var type = typeof value;
- length = length == null ? MAX_SAFE_INTEGER : length;
- return !!length &&
- (type == 'number' ||
- (type != 'symbol' && reIsUint.test(value))) &&
- (value > -1 && value % 1 == 0 && value < length);
- }
- module.exports = isIndex;
- /***/ }),
- /***/ "./node_modules/lodash/_isIterateeCall.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_isIterateeCall.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
- isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
- isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
- isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
- /**
- * Checks if the given arguments are from an iteratee call.
- *
- * @private
- * @param {*} value The potential iteratee value argument.
- * @param {*} index The potential iteratee index or key argument.
- * @param {*} object The potential iteratee object argument.
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
- * else `false`.
- */
- function isIterateeCall(value, index, object) {
- if (!isObject(object)) {
- return false;
- }
- var type = typeof index;
- if (type == 'number'
- ? (isArrayLike(object) && isIndex(index, object.length))
- : (type == 'string' && index in object)
- ) {
- return eq(object[index], value);
- }
- return false;
- }
- module.exports = isIterateeCall;
- /***/ }),
- /***/ "./node_modules/lodash/_isKey.js":
- /*!***************************************!*\
- !*** ./node_modules/lodash/_isKey.js ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
- isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
- /** Used to match property names within property paths. */
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- reIsPlainProp = /^\w*$/;
- /**
- * Checks if `value` is a property name and not a property path.
- *
- * @private
- * @param {*} value The value to check.
- * @param {Object} [object] The object to query keys on.
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
- */
- function isKey(value, object) {
- if (isArray(value)) {
- return false;
- }
- var type = typeof value;
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
- value == null || isSymbol(value)) {
- return true;
- }
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
- (object != null && value in Object(object));
- }
- module.exports = isKey;
- /***/ }),
- /***/ "./node_modules/lodash/_isKeyable.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/_isKeyable.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Checks if `value` is suitable for use as unique object key.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
- */
- function isKeyable(value) {
- var type = typeof value;
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
- ? (value !== '__proto__')
- : (value === null);
- }
- module.exports = isKeyable;
- /***/ }),
- /***/ "./node_modules/lodash/_isMasked.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_isMasked.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var coreJsData = __webpack_require__(/*! ./_coreJsData */ "./node_modules/lodash/_coreJsData.js");
- /** Used to detect methods masquerading as native. */
- var maskSrcKey = (function() {
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
- return uid ? ('Symbol(src)_1.' + uid) : '';
- }());
- /**
- * Checks if `func` has its source masked.
- *
- * @private
- * @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
- */
- function isMasked(func) {
- return !!maskSrcKey && (maskSrcKey in func);
- }
- module.exports = isMasked;
- /***/ }),
- /***/ "./node_modules/lodash/_isPrototype.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_isPrototype.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /**
- * Checks if `value` is likely a prototype object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
- */
- function isPrototype(value) {
- var Ctor = value && value.constructor,
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
- return value === proto;
- }
- module.exports = isPrototype;
- /***/ }),
- /***/ "./node_modules/lodash/_isStrictComparable.js":
- /*!****************************************************!*\
- !*** ./node_modules/lodash/_isStrictComparable.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
- /**
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` if suitable for strict
- * equality comparisons, else `false`.
- */
- function isStrictComparable(value) {
- return value === value && !isObject(value);
- }
- module.exports = isStrictComparable;
- /***/ }),
- /***/ "./node_modules/lodash/_listCacheClear.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_listCacheClear.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Removes all key-value entries from the list cache.
- *
- * @private
- * @name clear
- * @memberOf ListCache
- */
- function listCacheClear() {
- this.__data__ = [];
- this.size = 0;
- }
- module.exports = listCacheClear;
- /***/ }),
- /***/ "./node_modules/lodash/_listCacheDelete.js":
- /*!*************************************************!*\
- !*** ./node_modules/lodash/_listCacheDelete.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
- /** Used for built-in method references. */
- var arrayProto = Array.prototype;
- /** Built-in value references. */
- var splice = arrayProto.splice;
- /**
- * Removes `key` and its value from the list cache.
- *
- * @private
- * @name delete
- * @memberOf ListCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function listCacheDelete(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
- if (index < 0) {
- return false;
- }
- var lastIndex = data.length - 1;
- if (index == lastIndex) {
- data.pop();
- } else {
- splice.call(data, index, 1);
- }
- --this.size;
- return true;
- }
- module.exports = listCacheDelete;
- /***/ }),
- /***/ "./node_modules/lodash/_listCacheGet.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_listCacheGet.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
- /**
- * Gets the list cache value for `key`.
- *
- * @private
- * @name get
- * @memberOf ListCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function listCacheGet(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
- return index < 0 ? undefined : data[index][1];
- }
- module.exports = listCacheGet;
- /***/ }),
- /***/ "./node_modules/lodash/_listCacheHas.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_listCacheHas.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
- /**
- * Checks if a list cache value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf ListCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function listCacheHas(key) {
- return assocIndexOf(this.__data__, key) > -1;
- }
- module.exports = listCacheHas;
- /***/ }),
- /***/ "./node_modules/lodash/_listCacheSet.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_listCacheSet.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
- /**
- * Sets the list cache `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf ListCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the list cache instance.
- */
- function listCacheSet(key, value) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
- if (index < 0) {
- ++this.size;
- data.push([key, value]);
- } else {
- data[index][1] = value;
- }
- return this;
- }
- module.exports = listCacheSet;
- /***/ }),
- /***/ "./node_modules/lodash/_mapCacheClear.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_mapCacheClear.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var Hash = __webpack_require__(/*! ./_Hash */ "./node_modules/lodash/_Hash.js"),
- ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
- Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js");
- /**
- * Removes all key-value entries from the map.
- *
- * @private
- * @name clear
- * @memberOf MapCache
- */
- function mapCacheClear() {
- this.size = 0;
- this.__data__ = {
- 'hash': new Hash,
- 'map': new (Map || ListCache),
- 'string': new Hash
- };
- }
- module.exports = mapCacheClear;
- /***/ }),
- /***/ "./node_modules/lodash/_mapCacheDelete.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_mapCacheDelete.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
- /**
- * Removes `key` and its value from the map.
- *
- * @private
- * @name delete
- * @memberOf MapCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function mapCacheDelete(key) {
- var result = getMapData(this, key)['delete'](key);
- this.size -= result ? 1 : 0;
- return result;
- }
- module.exports = mapCacheDelete;
- /***/ }),
- /***/ "./node_modules/lodash/_mapCacheGet.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_mapCacheGet.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
- /**
- * Gets the map value for `key`.
- *
- * @private
- * @name get
- * @memberOf MapCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function mapCacheGet(key) {
- return getMapData(this, key).get(key);
- }
- module.exports = mapCacheGet;
- /***/ }),
- /***/ "./node_modules/lodash/_mapCacheHas.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_mapCacheHas.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
- /**
- * Checks if a map value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf MapCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function mapCacheHas(key) {
- return getMapData(this, key).has(key);
- }
- module.exports = mapCacheHas;
- /***/ }),
- /***/ "./node_modules/lodash/_mapCacheSet.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_mapCacheSet.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
- /**
- * Sets the map `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf MapCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the map cache instance.
- */
- function mapCacheSet(key, value) {
- var data = getMapData(this, key),
- size = data.size;
- data.set(key, value);
- this.size += data.size == size ? 0 : 1;
- return this;
- }
- module.exports = mapCacheSet;
- /***/ }),
- /***/ "./node_modules/lodash/_mapToArray.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_mapToArray.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Converts `map` to its key-value pairs.
- *
- * @private
- * @param {Object} map The map to convert.
- * @returns {Array} Returns the key-value pairs.
- */
- function mapToArray(map) {
- var index = -1,
- result = Array(map.size);
- map.forEach(function(value, key) {
- result[++index] = [key, value];
- });
- return result;
- }
- module.exports = mapToArray;
- /***/ }),
- /***/ "./node_modules/lodash/_matchesStrictComparable.js":
- /*!*********************************************************!*\
- !*** ./node_modules/lodash/_matchesStrictComparable.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * A specialized version of `matchesProperty` for source values suitable
- * for strict equality comparisons, i.e. `===`.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
- function matchesStrictComparable(key, srcValue) {
- return function(object) {
- if (object == null) {
- return false;
- }
- return object[key] === srcValue &&
- (srcValue !== undefined || (key in Object(object)));
- };
- }
- module.exports = matchesStrictComparable;
- /***/ }),
- /***/ "./node_modules/lodash/_memoizeCapped.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_memoizeCapped.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var memoize = __webpack_require__(/*! ./memoize */ "./node_modules/lodash/memoize.js");
- /** Used as the maximum memoize cache size. */
- var MAX_MEMOIZE_SIZE = 500;
- /**
- * A specialized version of `_.memoize` which clears the memoized function's
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
- *
- * @private
- * @param {Function} func The function to have its output memoized.
- * @returns {Function} Returns the new memoized function.
- */
- function memoizeCapped(func) {
- var result = memoize(func, function(key) {
- if (cache.size === MAX_MEMOIZE_SIZE) {
- cache.clear();
- }
- return key;
- });
- var cache = result.cache;
- return result;
- }
- module.exports = memoizeCapped;
- /***/ }),
- /***/ "./node_modules/lodash/_nativeCreate.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_nativeCreate.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
- /* Built-in method references that are verified to be native. */
- var nativeCreate = getNative(Object, 'create');
- module.exports = nativeCreate;
- /***/ }),
- /***/ "./node_modules/lodash/_nativeKeys.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_nativeKeys.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeKeys = overArg(Object.keys, Object);
- module.exports = nativeKeys;
- /***/ }),
- /***/ "./node_modules/lodash/_nativeKeysIn.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_nativeKeysIn.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * This function is like
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
- * except that it includes inherited enumerable properties.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function nativeKeysIn(object) {
- var result = [];
- if (object != null) {
- for (var key in Object(object)) {
- result.push(key);
- }
- }
- return result;
- }
- module.exports = nativeKeysIn;
- /***/ }),
- /***/ "./node_modules/lodash/_nodeUtil.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_nodeUtil.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
- /** Detect free variable `exports`. */
- var freeExports = true && exports && !exports.nodeType && exports;
- /** Detect free variable `module`. */
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
- /** Detect the popular CommonJS extension `module.exports`. */
- var moduleExports = freeModule && freeModule.exports === freeExports;
- /** Detect free variable `process` from Node.js. */
- var freeProcess = moduleExports && freeGlobal.process;
- /** Used to access faster Node.js helpers. */
- var nodeUtil = (function() {
- try {
- // Use `util.types` for Node.js 10+.
- var types = freeModule && freeModule.require && freeModule.require('util').types;
- if (types) {
- return types;
- }
- // Legacy `process.binding('util')` for Node.js < 10.
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
- } catch (e) {}
- }());
- module.exports = nodeUtil;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
- /***/ }),
- /***/ "./node_modules/lodash/_objectToString.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_objectToString.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
- var nativeObjectToString = objectProto.toString;
- /**
- * Converts `value` to a string using `Object.prototype.toString`.
- *
- * @private
- * @param {*} value The value to convert.
- * @returns {string} Returns the converted string.
- */
- function objectToString(value) {
- return nativeObjectToString.call(value);
- }
- module.exports = objectToString;
- /***/ }),
- /***/ "./node_modules/lodash/_overArg.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_overArg.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Creates a unary function that invokes `func` with its argument transformed.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {Function} transform The argument transform.
- * @returns {Function} Returns the new function.
- */
- function overArg(func, transform) {
- return function(arg) {
- return func(transform(arg));
- };
- }
- module.exports = overArg;
- /***/ }),
- /***/ "./node_modules/lodash/_overRest.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_overRest.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var apply = __webpack_require__(/*! ./_apply */ "./node_modules/lodash/_apply.js");
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeMax = Math.max;
- /**
- * A specialized version of `baseRest` which transforms the rest array.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @param {Function} transform The rest array transform.
- * @returns {Function} Returns the new function.
- */
- function overRest(func, start, transform) {
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
- return function() {
- var args = arguments,
- index = -1,
- length = nativeMax(args.length - start, 0),
- array = Array(length);
- while (++index < length) {
- array[index] = args[start + index];
- }
- index = -1;
- var otherArgs = Array(start + 1);
- while (++index < start) {
- otherArgs[index] = args[index];
- }
- otherArgs[start] = transform(array);
- return apply(func, this, otherArgs);
- };
- }
- module.exports = overRest;
- /***/ }),
- /***/ "./node_modules/lodash/_parent.js":
- /*!****************************************!*\
- !*** ./node_modules/lodash/_parent.js ***!
- \****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
- baseSlice = __webpack_require__(/*! ./_baseSlice */ "./node_modules/lodash/_baseSlice.js");
- /**
- * Gets the parent value at `path` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} path The path to get the parent value of.
- * @returns {*} Returns the parent value.
- */
- function parent(object, path) {
- return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
- }
- module.exports = parent;
- /***/ }),
- /***/ "./node_modules/lodash/_root.js":
- /*!**************************************!*\
- !*** ./node_modules/lodash/_root.js ***!
- \**************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
- /** Detect free variable `self`. */
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
- /** Used as a reference to the global object. */
- var root = freeGlobal || freeSelf || Function('return this')();
- module.exports = root;
- /***/ }),
- /***/ "./node_modules/lodash/_safeGet.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/_safeGet.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
- *
- * @private
- * @param {Object} object The object to query.
- * @param {string} key The key of the property to get.
- * @returns {*} Returns the property value.
- */
- function safeGet(object, key) {
- if (key === 'constructor' && typeof object[key] === 'function') {
- return;
- }
- if (key == '__proto__') {
- return;
- }
- return object[key];
- }
- module.exports = safeGet;
- /***/ }),
- /***/ "./node_modules/lodash/_setCacheAdd.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_setCacheAdd.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used to stand-in for `undefined` hash values. */
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
- /**
- * Adds `value` to the array cache.
- *
- * @private
- * @name add
- * @memberOf SetCache
- * @alias push
- * @param {*} value The value to cache.
- * @returns {Object} Returns the cache instance.
- */
- function setCacheAdd(value) {
- this.__data__.set(value, HASH_UNDEFINED);
- return this;
- }
- module.exports = setCacheAdd;
- /***/ }),
- /***/ "./node_modules/lodash/_setCacheHas.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_setCacheHas.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Checks if `value` is in the array cache.
- *
- * @private
- * @name has
- * @memberOf SetCache
- * @param {*} value The value to search for.
- * @returns {number} Returns `true` if `value` is found, else `false`.
- */
- function setCacheHas(value) {
- return this.__data__.has(value);
- }
- module.exports = setCacheHas;
- /***/ }),
- /***/ "./node_modules/lodash/_setToArray.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_setToArray.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Converts `set` to an array of its values.
- *
- * @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the values.
- */
- function setToArray(set) {
- var index = -1,
- result = Array(set.size);
- set.forEach(function(value) {
- result[++index] = value;
- });
- return result;
- }
- module.exports = setToArray;
- /***/ }),
- /***/ "./node_modules/lodash/_setToString.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_setToString.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "./node_modules/lodash/_baseSetToString.js"),
- shortOut = __webpack_require__(/*! ./_shortOut */ "./node_modules/lodash/_shortOut.js");
- /**
- * Sets the `toString` method of `func` to return `string`.
- *
- * @private
- * @param {Function} func The function to modify.
- * @param {Function} string The `toString` result.
- * @returns {Function} Returns `func`.
- */
- var setToString = shortOut(baseSetToString);
- module.exports = setToString;
- /***/ }),
- /***/ "./node_modules/lodash/_shortOut.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_shortOut.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
- var HOT_COUNT = 800,
- HOT_SPAN = 16;
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeNow = Date.now;
- /**
- * Creates a function that'll short out and invoke `identity` instead
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
- * milliseconds.
- *
- * @private
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new shortable function.
- */
- function shortOut(func) {
- var count = 0,
- lastCalled = 0;
- return function() {
- var stamp = nativeNow(),
- remaining = HOT_SPAN - (stamp - lastCalled);
- lastCalled = stamp;
- if (remaining > 0) {
- if (++count >= HOT_COUNT) {
- return arguments[0];
- }
- } else {
- count = 0;
- }
- return func.apply(undefined, arguments);
- };
- }
- module.exports = shortOut;
- /***/ }),
- /***/ "./node_modules/lodash/_stackClear.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_stackClear.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js");
- /**
- * Removes all key-value entries from the stack.
- *
- * @private
- * @name clear
- * @memberOf Stack
- */
- function stackClear() {
- this.__data__ = new ListCache;
- this.size = 0;
- }
- module.exports = stackClear;
- /***/ }),
- /***/ "./node_modules/lodash/_stackDelete.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_stackDelete.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Removes `key` and its value from the stack.
- *
- * @private
- * @name delete
- * @memberOf Stack
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function stackDelete(key) {
- var data = this.__data__,
- result = data['delete'](key);
- this.size = data.size;
- return result;
- }
- module.exports = stackDelete;
- /***/ }),
- /***/ "./node_modules/lodash/_stackGet.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_stackGet.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Gets the stack value for `key`.
- *
- * @private
- * @name get
- * @memberOf Stack
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function stackGet(key) {
- return this.__data__.get(key);
- }
- module.exports = stackGet;
- /***/ }),
- /***/ "./node_modules/lodash/_stackHas.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_stackHas.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Checks if a stack value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Stack
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function stackHas(key) {
- return this.__data__.has(key);
- }
- module.exports = stackHas;
- /***/ }),
- /***/ "./node_modules/lodash/_stackSet.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_stackSet.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
- Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
- MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
- /** Used as the size to enable large array optimizations. */
- var LARGE_ARRAY_SIZE = 200;
- /**
- * Sets the stack `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Stack
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the stack cache instance.
- */
- function stackSet(key, value) {
- var data = this.__data__;
- if (data instanceof ListCache) {
- var pairs = data.__data__;
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
- pairs.push([key, value]);
- this.size = ++data.size;
- return this;
- }
- data = this.__data__ = new MapCache(pairs);
- }
- data.set(key, value);
- this.size = data.size;
- return this;
- }
- module.exports = stackSet;
- /***/ }),
- /***/ "./node_modules/lodash/_strictIndexOf.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_strictIndexOf.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * A specialized version of `_.indexOf` which performs strict equality
- * comparisons of values, i.e. `===`.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function strictIndexOf(array, value, fromIndex) {
- var index = fromIndex - 1,
- length = array.length;
- while (++index < length) {
- if (array[index] === value) {
- return index;
- }
- }
- return -1;
- }
- module.exports = strictIndexOf;
- /***/ }),
- /***/ "./node_modules/lodash/_stringSize.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/_stringSize.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var asciiSize = __webpack_require__(/*! ./_asciiSize */ "./node_modules/lodash/_asciiSize.js"),
- hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
- unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "./node_modules/lodash/_unicodeSize.js");
- /**
- * Gets the number of symbols in `string`.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {number} Returns the string size.
- */
- function stringSize(string) {
- return hasUnicode(string)
- ? unicodeSize(string)
- : asciiSize(string);
- }
- module.exports = stringSize;
- /***/ }),
- /***/ "./node_modules/lodash/_stringToArray.js":
- /*!***********************************************!*\
- !*** ./node_modules/lodash/_stringToArray.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var asciiToArray = __webpack_require__(/*! ./_asciiToArray */ "./node_modules/lodash/_asciiToArray.js"),
- hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
- unicodeToArray = __webpack_require__(/*! ./_unicodeToArray */ "./node_modules/lodash/_unicodeToArray.js");
- /**
- * Converts `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
- function stringToArray(string) {
- return hasUnicode(string)
- ? unicodeToArray(string)
- : asciiToArray(string);
- }
- module.exports = stringToArray;
- /***/ }),
- /***/ "./node_modules/lodash/_stringToPath.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/_stringToPath.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "./node_modules/lodash/_memoizeCapped.js");
- /** Used to match property names within property paths. */
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
- /** Used to match backslashes in property paths. */
- var reEscapeChar = /\\(\\)?/g;
- /**
- * Converts `string` to a property path array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the property path array.
- */
- var stringToPath = memoizeCapped(function(string) {
- var result = [];
- if (string.charCodeAt(0) === 46 /* . */) {
- result.push('');
- }
- string.replace(rePropName, function(match, number, quote, subString) {
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
- });
- return result;
- });
- module.exports = stringToPath;
- /***/ }),
- /***/ "./node_modules/lodash/_toKey.js":
- /*!***************************************!*\
- !*** ./node_modules/lodash/_toKey.js ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
- /** Used as references for various `Number` constants. */
- var INFINITY = 1 / 0;
- /**
- * Converts `value` to a string key if it's not a string or symbol.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {string|symbol} Returns the key.
- */
- function toKey(value) {
- if (typeof value == 'string' || isSymbol(value)) {
- return value;
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
- }
- module.exports = toKey;
- /***/ }),
- /***/ "./node_modules/lodash/_toSource.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/_toSource.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used for built-in method references. */
- var funcProto = Function.prototype;
- /** Used to resolve the decompiled source of functions. */
- var funcToString = funcProto.toString;
- /**
- * Converts `func` to its source code.
- *
- * @private
- * @param {Function} func The function to convert.
- * @returns {string} Returns the source code.
- */
- function toSource(func) {
- if (func != null) {
- try {
- return funcToString.call(func);
- } catch (e) {}
- try {
- return (func + '');
- } catch (e) {}
- }
- return '';
- }
- module.exports = toSource;
- /***/ }),
- /***/ "./node_modules/lodash/_trimmedEndIndex.js":
- /*!*************************************************!*\
- !*** ./node_modules/lodash/_trimmedEndIndex.js ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used to match a single whitespace character. */
- var reWhitespace = /\s/;
- /**
- * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
- * character of `string`.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {number} Returns the index of the last non-whitespace character.
- */
- function trimmedEndIndex(string) {
- var index = string.length;
- while (index-- && reWhitespace.test(string.charAt(index))) {}
- return index;
- }
- module.exports = trimmedEndIndex;
- /***/ }),
- /***/ "./node_modules/lodash/_unicodeSize.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/_unicodeSize.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used to compose unicode character classes. */
- var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsVarRange = '\\ufe0e\\ufe0f';
- /** Used to compose unicode capture groups. */
- var rsAstral = '[' + rsAstralRange + ']',
- rsCombo = '[' + rsComboRange + ']',
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
- rsNonAstral = '[^' + rsAstralRange + ']',
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- rsZWJ = '\\u200d';
- /** Used to compose unicode regexes. */
- var reOptMod = rsModifier + '?',
- rsOptVar = '[' + rsVarRange + ']?',
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
- /**
- * Gets the size of a Unicode `string`.
- *
- * @private
- * @param {string} string The string inspect.
- * @returns {number} Returns the string size.
- */
- function unicodeSize(string) {
- var result = reUnicode.lastIndex = 0;
- while (reUnicode.test(string)) {
- ++result;
- }
- return result;
- }
- module.exports = unicodeSize;
- /***/ }),
- /***/ "./node_modules/lodash/_unicodeToArray.js":
- /*!************************************************!*\
- !*** ./node_modules/lodash/_unicodeToArray.js ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used to compose unicode character classes. */
- var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsVarRange = '\\ufe0e\\ufe0f';
- /** Used to compose unicode capture groups. */
- var rsAstral = '[' + rsAstralRange + ']',
- rsCombo = '[' + rsComboRange + ']',
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
- rsNonAstral = '[^' + rsAstralRange + ']',
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- rsZWJ = '\\u200d';
- /** Used to compose unicode regexes. */
- var reOptMod = rsModifier + '?',
- rsOptVar = '[' + rsVarRange + ']?',
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
- /**
- * Converts a Unicode `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
- function unicodeToArray(string) {
- return string.match(reUnicode) || [];
- }
- module.exports = unicodeToArray;
- /***/ }),
- /***/ "./node_modules/lodash/cloneDeep.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/cloneDeep.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");
- /** Used to compose bitmasks for cloning. */
- var CLONE_DEEP_FLAG = 1,
- CLONE_SYMBOLS_FLAG = 4;
- /**
- * This method is like `_.clone` except that it recursively clones `value`.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Lang
- * @param {*} value The value to recursively clone.
- * @returns {*} Returns the deep cloned value.
- * @see _.clone
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var deep = _.cloneDeep(objects);
- * console.log(deep[0] === objects[0]);
- * // => false
- */
- function cloneDeep(value) {
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
- }
- module.exports = cloneDeep;
- /***/ }),
- /***/ "./node_modules/lodash/constant.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/constant.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Creates a function that returns `value`.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Util
- * @param {*} value The value to return from the new function.
- * @returns {Function} Returns the new constant function.
- * @example
- *
- * var objects = _.times(2, _.constant({ 'a': 1 }));
- *
- * console.log(objects);
- * // => [{ 'a': 1 }, { 'a': 1 }]
- *
- * console.log(objects[0] === objects[1]);
- * // => true
- */
- function constant(value) {
- return function() {
- return value;
- };
- }
- module.exports = constant;
- /***/ }),
- /***/ "./node_modules/lodash/debounce.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/debounce.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
- now = __webpack_require__(/*! ./now */ "./node_modules/lodash/now.js"),
- toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");
- /** Error message constants. */
- var FUNC_ERROR_TEXT = 'Expected a function';
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeMax = Math.max,
- nativeMin = Math.min;
- /**
- * Creates a debounced function that delays invoking `func` until after `wait`
- * milliseconds have elapsed since the last time the debounced function was
- * invoked. The debounced function comes with a `cancel` method to cancel
- * delayed `func` invocations and a `flush` method to immediately invoke them.
- * Provide `options` to indicate whether `func` should be invoked on the
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
- * with the last arguments provided to the debounced function. Subsequent
- * calls to the debounced function return the result of the last `func`
- * invocation.
- *
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
- * invoked on the trailing edge of the timeout only if the debounced function
- * is invoked more than once during the `wait` timeout.
- *
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
- *
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
- * for details over the differences between `_.debounce` and `_.throttle`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to debounce.
- * @param {number} [wait=0] The number of milliseconds to delay.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.leading=false]
- * Specify invoking on the leading edge of the timeout.
- * @param {number} [options.maxWait]
- * The maximum time `func` is allowed to be delayed before it's invoked.
- * @param {boolean} [options.trailing=true]
- * Specify invoking on the trailing edge of the timeout.
- * @returns {Function} Returns the new debounced function.
- * @example
- *
- * // Avoid costly calculations while the window size is in flux.
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
- *
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
- * 'leading': true,
- * 'trailing': false
- * }));
- *
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
- * var source = new EventSource('/stream');
- * jQuery(source).on('message', debounced);
- *
- * // Cancel the trailing debounced invocation.
- * jQuery(window).on('popstate', debounced.cancel);
- */
- function debounce(func, wait, options) {
- var lastArgs,
- lastThis,
- maxWait,
- result,
- timerId,
- lastCallTime,
- lastInvokeTime = 0,
- leading = false,
- maxing = false,
- trailing = true;
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- wait = toNumber(wait) || 0;
- if (isObject(options)) {
- leading = !!options.leading;
- maxing = 'maxWait' in options;
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
- trailing = 'trailing' in options ? !!options.trailing : trailing;
- }
- function invokeFunc(time) {
- var args = lastArgs,
- thisArg = lastThis;
- lastArgs = lastThis = undefined;
- lastInvokeTime = time;
- result = func.apply(thisArg, args);
- return result;
- }
- function leadingEdge(time) {
- // Reset any `maxWait` timer.
- lastInvokeTime = time;
- // Start the timer for the trailing edge.
- timerId = setTimeout(timerExpired, wait);
- // Invoke the leading edge.
- return leading ? invokeFunc(time) : result;
- }
- function remainingWait(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime,
- timeWaiting = wait - timeSinceLastCall;
- return maxing
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
- : timeWaiting;
- }
- function shouldInvoke(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime;
- // Either this is the first call, activity has stopped and we're at the
- // trailing edge, the system time has gone backwards and we're treating
- // it as the trailing edge, or we've hit the `maxWait` limit.
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
- }
- function timerExpired() {
- var time = now();
- if (shouldInvoke(time)) {
- return trailingEdge(time);
- }
- // Restart the timer.
- timerId = setTimeout(timerExpired, remainingWait(time));
- }
- function trailingEdge(time) {
- timerId = undefined;
- // Only invoke if we have `lastArgs` which means `func` has been
- // debounced at least once.
- if (trailing && lastArgs) {
- return invokeFunc(time);
- }
- lastArgs = lastThis = undefined;
- return result;
- }
- function cancel() {
- if (timerId !== undefined) {
- clearTimeout(timerId);
- }
- lastInvokeTime = 0;
- lastArgs = lastCallTime = lastThis = timerId = undefined;
- }
- function flush() {
- return timerId === undefined ? result : trailingEdge(now());
- }
- function debounced() {
- var time = now(),
- isInvoking = shouldInvoke(time);
- lastArgs = arguments;
- lastThis = this;
- lastCallTime = time;
- if (isInvoking) {
- if (timerId === undefined) {
- return leadingEdge(lastCallTime);
- }
- if (maxing) {
- // Handle invocations in a tight loop.
- clearTimeout(timerId);
- timerId = setTimeout(timerExpired, wait);
- return invokeFunc(lastCallTime);
- }
- }
- if (timerId === undefined) {
- timerId = setTimeout(timerExpired, wait);
- }
- return result;
- }
- debounced.cancel = cancel;
- debounced.flush = flush;
- return debounced;
- }
- module.exports = debounce;
- /***/ }),
- /***/ "./node_modules/lodash/eq.js":
- /*!***********************************!*\
- !*** ./node_modules/lodash/eq.js ***!
- \***********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Performs a
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * comparison between two values to determine if they are equivalent.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'a': 1 };
- * var other = { 'a': 1 };
- *
- * _.eq(object, object);
- * // => true
- *
- * _.eq(object, other);
- * // => false
- *
- * _.eq('a', 'a');
- * // => true
- *
- * _.eq('a', Object('a'));
- * // => false
- *
- * _.eq(NaN, NaN);
- * // => true
- */
- function eq(value, other) {
- return value === other || (value !== value && other !== other);
- }
- module.exports = eq;
- /***/ }),
- /***/ "./node_modules/lodash/find.js":
- /*!*************************************!*\
- !*** ./node_modules/lodash/find.js ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var createFind = __webpack_require__(/*! ./_createFind */ "./node_modules/lodash/_createFind.js"),
- findIndex = __webpack_require__(/*! ./findIndex */ "./node_modules/lodash/findIndex.js");
- /**
- * Iterates over elements of `collection`, returning the first element
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {*} Returns the matched element, else `undefined`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false },
- * { 'user': 'pebbles', 'age': 1, 'active': true }
- * ];
- *
- * _.find(users, function(o) { return o.age < 40; });
- * // => object for 'barney'
- *
- * // The `_.matches` iteratee shorthand.
- * _.find(users, { 'age': 1, 'active': true });
- * // => object for 'pebbles'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.find(users, ['active', false]);
- * // => object for 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.find(users, 'active');
- * // => object for 'barney'
- */
- var find = createFind(findIndex);
- module.exports = find;
- /***/ }),
- /***/ "./node_modules/lodash/findIndex.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/findIndex.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
- baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
- toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js");
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeMax = Math.max;
- /**
- * This method is like `_.find` except that it returns the index of the first
- * element `predicate` returns truthy for instead of the element itself.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the found element, else `-1`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.findIndex(users, function(o) { return o.user == 'barney'; });
- * // => 0
- *
- * // The `_.matches` iteratee shorthand.
- * _.findIndex(users, { 'user': 'fred', 'active': false });
- * // => 1
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findIndex(users, ['active', false]);
- * // => 0
- *
- * // The `_.property` iteratee shorthand.
- * _.findIndex(users, 'active');
- * // => 2
- */
- function findIndex(array, predicate, fromIndex) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
- if (index < 0) {
- index = nativeMax(length + index, 0);
- }
- return baseFindIndex(array, baseIteratee(predicate, 3), index);
- }
- module.exports = findIndex;
- /***/ }),
- /***/ "./node_modules/lodash/flatten.js":
- /*!****************************************!*\
- !*** ./node_modules/lodash/flatten.js ***!
- \****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js");
- /**
- * Flattens `array` a single level deep.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flatten([1, [2, [3, [4]], 5]]);
- * // => [1, 2, [3, [4]], 5]
- */
- function flatten(array) {
- var length = array == null ? 0 : array.length;
- return length ? baseFlatten(array, 1) : [];
- }
- module.exports = flatten;
- /***/ }),
- /***/ "./node_modules/lodash/get.js":
- /*!************************************!*\
- !*** ./node_modules/lodash/get.js ***!
- \************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
- /**
- * Gets the value at `path` of `object`. If the resolved value is
- * `undefined`, the `defaultValue` is returned in its place.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.get(object, 'a[0].b.c');
- * // => 3
- *
- * _.get(object, ['a', '0', 'b', 'c']);
- * // => 3
- *
- * _.get(object, 'a.b.c', 'default');
- * // => 'default'
- */
- function get(object, path, defaultValue) {
- var result = object == null ? undefined : baseGet(object, path);
- return result === undefined ? defaultValue : result;
- }
- module.exports = get;
- /***/ }),
- /***/ "./node_modules/lodash/has.js":
- /*!************************************!*\
- !*** ./node_modules/lodash/has.js ***!
- \************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseHas = __webpack_require__(/*! ./_baseHas */ "./node_modules/lodash/_baseHas.js"),
- hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
- /**
- * Checks if `path` is a direct property of `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = { 'a': { 'b': 2 } };
- * var other = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.has(object, 'a');
- * // => true
- *
- * _.has(object, 'a.b');
- * // => true
- *
- * _.has(object, ['a', 'b']);
- * // => true
- *
- * _.has(other, 'a');
- * // => false
- */
- function has(object, path) {
- return object != null && hasPath(object, path, baseHas);
- }
- module.exports = has;
- /***/ }),
- /***/ "./node_modules/lodash/hasIn.js":
- /*!**************************************!*\
- !*** ./node_modules/lodash/hasIn.js ***!
- \**************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "./node_modules/lodash/_baseHasIn.js"),
- hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
- /**
- * Checks if `path` is a direct or inherited property of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.hasIn(object, 'a');
- * // => true
- *
- * _.hasIn(object, 'a.b');
- * // => true
- *
- * _.hasIn(object, ['a', 'b']);
- * // => true
- *
- * _.hasIn(object, 'b');
- * // => false
- */
- function hasIn(object, path) {
- return object != null && hasPath(object, path, baseHasIn);
- }
- module.exports = hasIn;
- /***/ }),
- /***/ "./node_modules/lodash/identity.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/identity.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * This method returns the first argument it receives.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {*} value Any value.
- * @returns {*} Returns `value`.
- * @example
- *
- * var object = { 'a': 1 };
- *
- * console.log(_.identity(object) === object);
- * // => true
- */
- function identity(value) {
- return value;
- }
- module.exports = identity;
- /***/ }),
- /***/ "./node_modules/lodash/isArguments.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/isArguments.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "./node_modules/lodash/_baseIsArguments.js"),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /** Built-in value references. */
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
- /**
- * Checks if `value` is likely an `arguments` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
- * else `false`.
- * @example
- *
- * _.isArguments(function() { return arguments; }());
- * // => true
- *
- * _.isArguments([1, 2, 3]);
- * // => false
- */
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
- !propertyIsEnumerable.call(value, 'callee');
- };
- module.exports = isArguments;
- /***/ }),
- /***/ "./node_modules/lodash/isArray.js":
- /*!****************************************!*\
- !*** ./node_modules/lodash/isArray.js ***!
- \****************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Checks if `value` is classified as an `Array` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
- * @example
- *
- * _.isArray([1, 2, 3]);
- * // => true
- *
- * _.isArray(document.body.children);
- * // => false
- *
- * _.isArray('abc');
- * // => false
- *
- * _.isArray(_.noop);
- * // => false
- */
- var isArray = Array.isArray;
- module.exports = isArray;
- /***/ }),
- /***/ "./node_modules/lodash/isArrayLike.js":
- /*!********************************************!*\
- !*** ./node_modules/lodash/isArrayLike.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
- isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js");
- /**
- * Checks if `value` is array-like. A value is considered array-like if it's
- * not a function and has a `value.length` that's an integer greater than or
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
- * @example
- *
- * _.isArrayLike([1, 2, 3]);
- * // => true
- *
- * _.isArrayLike(document.body.children);
- * // => true
- *
- * _.isArrayLike('abc');
- * // => true
- *
- * _.isArrayLike(_.noop);
- * // => false
- */
- function isArrayLike(value) {
- return value != null && isLength(value.length) && !isFunction(value);
- }
- module.exports = isArrayLike;
- /***/ }),
- /***/ "./node_modules/lodash/isArrayLikeObject.js":
- /*!**************************************************!*\
- !*** ./node_modules/lodash/isArrayLikeObject.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
- /**
- * This method is like `_.isArrayLike` except that it also checks if `value`
- * is an object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object,
- * else `false`.
- * @example
- *
- * _.isArrayLikeObject([1, 2, 3]);
- * // => true
- *
- * _.isArrayLikeObject(document.body.children);
- * // => true
- *
- * _.isArrayLikeObject('abc');
- * // => false
- *
- * _.isArrayLikeObject(_.noop);
- * // => false
- */
- function isArrayLikeObject(value) {
- return isObjectLike(value) && isArrayLike(value);
- }
- module.exports = isArrayLikeObject;
- /***/ }),
- /***/ "./node_modules/lodash/isBuffer.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/isBuffer.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"),
- stubFalse = __webpack_require__(/*! ./stubFalse */ "./node_modules/lodash/stubFalse.js");
- /** Detect free variable `exports`. */
- var freeExports = true && exports && !exports.nodeType && exports;
- /** Detect free variable `module`. */
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
- /** Detect the popular CommonJS extension `module.exports`. */
- var moduleExports = freeModule && freeModule.exports === freeExports;
- /** Built-in value references. */
- var Buffer = moduleExports ? root.Buffer : undefined;
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
- /**
- * Checks if `value` is a buffer.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
- * @example
- *
- * _.isBuffer(new Buffer(2));
- * // => true
- *
- * _.isBuffer(new Uint8Array(2));
- * // => false
- */
- var isBuffer = nativeIsBuffer || stubFalse;
- module.exports = isBuffer;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
- /***/ }),
- /***/ "./node_modules/lodash/isFunction.js":
- /*!*******************************************!*\
- !*** ./node_modules/lodash/isFunction.js ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
- isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
- /** `Object#toString` result references. */
- var asyncTag = '[object AsyncFunction]',
- funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- proxyTag = '[object Proxy]';
- /**
- * Checks if `value` is classified as a `Function` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
- * @example
- *
- * _.isFunction(_);
- * // => true
- *
- * _.isFunction(/abc/);
- * // => false
- */
- function isFunction(value) {
- if (!isObject(value)) {
- return false;
- }
- // The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
- var tag = baseGetTag(value);
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
- }
- module.exports = isFunction;
- /***/ }),
- /***/ "./node_modules/lodash/isLength.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/isLength.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /** Used as references for various `Number` constants. */
- var MAX_SAFE_INTEGER = 9007199254740991;
- /**
- * Checks if `value` is a valid array-like length.
- *
- * **Note:** This method is loosely based on
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
- * @example
- *
- * _.isLength(3);
- * // => true
- *
- * _.isLength(Number.MIN_VALUE);
- * // => false
- *
- * _.isLength(Infinity);
- * // => false
- *
- * _.isLength('3');
- * // => false
- */
- function isLength(value) {
- return typeof value == 'number' &&
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
- }
- module.exports = isLength;
- /***/ }),
- /***/ "./node_modules/lodash/isMap.js":
- /*!**************************************!*\
- !*** ./node_modules/lodash/isMap.js ***!
- \**************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "./node_modules/lodash/_baseIsMap.js"),
- baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
- nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
- /* Node.js helper references. */
- var nodeIsMap = nodeUtil && nodeUtil.isMap;
- /**
- * Checks if `value` is classified as a `Map` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
- * @example
- *
- * _.isMap(new Map);
- * // => true
- *
- * _.isMap(new WeakMap);
- * // => false
- */
- var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
- module.exports = isMap;
- /***/ }),
- /***/ "./node_modules/lodash/isNil.js":
- /*!**************************************!*\
- !*** ./node_modules/lodash/isNil.js ***!
- \**************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Checks if `value` is `null` or `undefined`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
- * @example
- *
- * _.isNil(null);
- * // => true
- *
- * _.isNil(void 0);
- * // => true
- *
- * _.isNil(NaN);
- * // => false
- */
- function isNil(value) {
- return value == null;
- }
- module.exports = isNil;
- /***/ }),
- /***/ "./node_modules/lodash/isObject.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/isObject.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Checks if `value` is the
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
- * @example
- *
- * _.isObject({});
- * // => true
- *
- * _.isObject([1, 2, 3]);
- * // => true
- *
- * _.isObject(_.noop);
- * // => true
- *
- * _.isObject(null);
- * // => false
- */
- function isObject(value) {
- var type = typeof value;
- return value != null && (type == 'object' || type == 'function');
- }
- module.exports = isObject;
- /***/ }),
- /***/ "./node_modules/lodash/isObjectLike.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/isObjectLike.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Checks if `value` is object-like. A value is object-like if it's not `null`
- * and has a `typeof` result of "object".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
- * @example
- *
- * _.isObjectLike({});
- * // => true
- *
- * _.isObjectLike([1, 2, 3]);
- * // => true
- *
- * _.isObjectLike(_.noop);
- * // => false
- *
- * _.isObjectLike(null);
- * // => false
- */
- function isObjectLike(value) {
- return value != null && typeof value == 'object';
- }
- module.exports = isObjectLike;
- /***/ }),
- /***/ "./node_modules/lodash/isPlainObject.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/isPlainObject.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
- getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
- /** `Object#toString` result references. */
- var objectTag = '[object Object]';
- /** Used for built-in method references. */
- var funcProto = Function.prototype,
- objectProto = Object.prototype;
- /** Used to resolve the decompiled source of functions. */
- var funcToString = funcProto.toString;
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
- /** Used to infer the `Object` constructor. */
- var objectCtorString = funcToString.call(Object);
- /**
- * Checks if `value` is a plain object, that is, an object created by the
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
- *
- * @static
- * @memberOf _
- * @since 0.8.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * }
- *
- * _.isPlainObject(new Foo);
- * // => false
- *
- * _.isPlainObject([1, 2, 3]);
- * // => false
- *
- * _.isPlainObject({ 'x': 0, 'y': 0 });
- * // => true
- *
- * _.isPlainObject(Object.create(null));
- * // => true
- */
- function isPlainObject(value) {
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
- return false;
- }
- var proto = getPrototype(value);
- if (proto === null) {
- return true;
- }
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
- return typeof Ctor == 'function' && Ctor instanceof Ctor &&
- funcToString.call(Ctor) == objectCtorString;
- }
- module.exports = isPlainObject;
- /***/ }),
- /***/ "./node_modules/lodash/isRegExp.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/isRegExp.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIsRegExp = __webpack_require__(/*! ./_baseIsRegExp */ "./node_modules/lodash/_baseIsRegExp.js"),
- baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
- nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
- /* Node.js helper references. */
- var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
- /**
- * Checks if `value` is classified as a `RegExp` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
- * @example
- *
- * _.isRegExp(/abc/);
- * // => true
- *
- * _.isRegExp('/abc/');
- * // => false
- */
- var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
- module.exports = isRegExp;
- /***/ }),
- /***/ "./node_modules/lodash/isSet.js":
- /*!**************************************!*\
- !*** ./node_modules/lodash/isSet.js ***!
- \**************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "./node_modules/lodash/_baseIsSet.js"),
- baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
- nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
- /* Node.js helper references. */
- var nodeIsSet = nodeUtil && nodeUtil.isSet;
- /**
- * Checks if `value` is classified as a `Set` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
- * @example
- *
- * _.isSet(new Set);
- * // => true
- *
- * _.isSet(new WeakSet);
- * // => false
- */
- var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
- module.exports = isSet;
- /***/ }),
- /***/ "./node_modules/lodash/isSymbol.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/isSymbol.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
- isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
- /** `Object#toString` result references. */
- var symbolTag = '[object Symbol]';
- /**
- * Checks if `value` is classified as a `Symbol` primitive or object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
- * @example
- *
- * _.isSymbol(Symbol.iterator);
- * // => true
- *
- * _.isSymbol('abc');
- * // => false
- */
- function isSymbol(value) {
- return typeof value == 'symbol' ||
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
- }
- module.exports = isSymbol;
- /***/ }),
- /***/ "./node_modules/lodash/isTypedArray.js":
- /*!*********************************************!*\
- !*** ./node_modules/lodash/isTypedArray.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "./node_modules/lodash/_baseIsTypedArray.js"),
- baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
- nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
- /* Node.js helper references. */
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
- /**
- * Checks if `value` is classified as a typed array.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
- * @example
- *
- * _.isTypedArray(new Uint8Array);
- * // => true
- *
- * _.isTypedArray([]);
- * // => false
- */
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
- module.exports = isTypedArray;
- /***/ }),
- /***/ "./node_modules/lodash/keys.js":
- /*!*************************************!*\
- !*** ./node_modules/lodash/keys.js ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
- baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
- isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
- /**
- * Creates an array of the own enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects. See the
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
- * for more details.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keys(new Foo);
- * // => ['a', 'b'] (iteration order is not guaranteed)
- *
- * _.keys('hi');
- * // => ['0', '1']
- */
- function keys(object) {
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
- }
- module.exports = keys;
- /***/ }),
- /***/ "./node_modules/lodash/keysIn.js":
- /*!***************************************!*\
- !*** ./node_modules/lodash/keysIn.js ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
- baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "./node_modules/lodash/_baseKeysIn.js"),
- isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
- /**
- * Creates an array of the own and inherited enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keysIn(new Foo);
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
- */
- function keysIn(object) {
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
- }
- module.exports = keysIn;
- /***/ }),
- /***/ "./node_modules/lodash/last.js":
- /*!*************************************!*\
- !*** ./node_modules/lodash/last.js ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * Gets the last element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the last element of `array`.
- * @example
- *
- * _.last([1, 2, 3]);
- * // => 3
- */
- function last(array) {
- var length = array == null ? 0 : array.length;
- return length ? array[length - 1] : undefined;
- }
- module.exports = last;
- /***/ }),
- /***/ "./node_modules/lodash/memoize.js":
- /*!****************************************!*\
- !*** ./node_modules/lodash/memoize.js ***!
- \****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
- /** Error message constants. */
- var FUNC_ERROR_TEXT = 'Expected a function';
- /**
- * Creates a function that memoizes the result of `func`. If `resolver` is
- * provided, it determines the cache key for storing the result based on the
- * arguments provided to the memoized function. By default, the first argument
- * provided to the memoized function is used as the map cache key. The `func`
- * is invoked with the `this` binding of the memoized function.
- *
- * **Note:** The cache is exposed as the `cache` property on the memoized
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
- * constructor with one whose instances implement the
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to have its output memoized.
- * @param {Function} [resolver] The function to resolve the cache key.
- * @returns {Function} Returns the new memoized function.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- * var other = { 'c': 3, 'd': 4 };
- *
- * var values = _.memoize(_.values);
- * values(object);
- * // => [1, 2]
- *
- * values(other);
- * // => [3, 4]
- *
- * object.a = 2;
- * values(object);
- * // => [1, 2]
- *
- * // Modify the result cache.
- * values.cache.set(object, ['a', 'b']);
- * values(object);
- * // => ['a', 'b']
- *
- * // Replace `_.memoize.Cache`.
- * _.memoize.Cache = WeakMap;
- */
- function memoize(func, resolver) {
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var memoized = function() {
- var args = arguments,
- key = resolver ? resolver.apply(this, args) : args[0],
- cache = memoized.cache;
- if (cache.has(key)) {
- return cache.get(key);
- }
- var result = func.apply(this, args);
- memoized.cache = cache.set(key, result) || cache;
- return result;
- };
- memoized.cache = new (memoize.Cache || MapCache);
- return memoized;
- }
- // Expose `MapCache`.
- memoize.Cache = MapCache;
- module.exports = memoize;
- /***/ }),
- /***/ "./node_modules/lodash/merge.js":
- /*!**************************************!*\
- !*** ./node_modules/lodash/merge.js ***!
- \**************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseMerge = __webpack_require__(/*! ./_baseMerge */ "./node_modules/lodash/_baseMerge.js"),
- createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js");
- /**
- * This method is like `_.assign` except that it recursively merges own and
- * inherited enumerable string keyed properties of source objects into the
- * destination object. Source properties that resolve to `undefined` are
- * skipped if a destination value exists. Array and plain object properties
- * are merged recursively. Other objects and value types are overridden by
- * assignment. Source objects are applied from left to right. Subsequent
- * sources overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = {
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
- * };
- *
- * var other = {
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
- * };
- *
- * _.merge(object, other);
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
- */
- var merge = createAssigner(function(object, source, srcIndex) {
- baseMerge(object, source, srcIndex);
- });
- module.exports = merge;
- /***/ }),
- /***/ "./node_modules/lodash/noop.js":
- /*!*************************************!*\
- !*** ./node_modules/lodash/noop.js ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * This method returns `undefined`.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Util
- * @example
- *
- * _.times(2, _.noop);
- * // => [undefined, undefined]
- */
- function noop() {
- // No operation performed.
- }
- module.exports = noop;
- /***/ }),
- /***/ "./node_modules/lodash/now.js":
- /*!************************************!*\
- !*** ./node_modules/lodash/now.js ***!
- \************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
- /**
- * Gets the timestamp of the number of milliseconds that have elapsed since
- * the Unix epoch (1 January 1970 00:00:00 UTC).
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Date
- * @returns {number} Returns the timestamp.
- * @example
- *
- * _.defer(function(stamp) {
- * console.log(_.now() - stamp);
- * }, _.now());
- * // => Logs the number of milliseconds it took for the deferred invocation.
- */
- var now = function() {
- return root.Date.now();
- };
- module.exports = now;
- /***/ }),
- /***/ "./node_modules/lodash/omit.js":
- /*!*************************************!*\
- !*** ./node_modules/lodash/omit.js ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
- baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js"),
- baseUnset = __webpack_require__(/*! ./_baseUnset */ "./node_modules/lodash/_baseUnset.js"),
- castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
- copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
- customOmitClone = __webpack_require__(/*! ./_customOmitClone */ "./node_modules/lodash/_customOmitClone.js"),
- flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js"),
- getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js");
- /** Used to compose bitmasks for cloning. */
- var CLONE_DEEP_FLAG = 1,
- CLONE_FLAT_FLAG = 2,
- CLONE_SYMBOLS_FLAG = 4;
- /**
- * The opposite of `_.pick`; this method creates an object composed of the
- * own and inherited enumerable property paths of `object` that are not omitted.
- *
- * **Note:** This method is considerably slower than `_.pick`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [paths] The property paths to omit.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.omit(object, ['a', 'c']);
- * // => { 'b': '2' }
- */
- var omit = flatRest(function(object, paths) {
- var result = {};
- if (object == null) {
- return result;
- }
- var isDeep = false;
- paths = arrayMap(paths, function(path) {
- path = castPath(path, object);
- isDeep || (isDeep = path.length > 1);
- return path;
- });
- copyObject(object, getAllKeysIn(object), result);
- if (isDeep) {
- result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
- }
- var length = paths.length;
- while (length--) {
- baseUnset(result, paths[length]);
- }
- return result;
- });
- module.exports = omit;
- /***/ }),
- /***/ "./node_modules/lodash/padEnd.js":
- /*!***************************************!*\
- !*** ./node_modules/lodash/padEnd.js ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var createPadding = __webpack_require__(/*! ./_createPadding */ "./node_modules/lodash/_createPadding.js"),
- stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js"),
- toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js"),
- toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
- /**
- * Pads `string` on the right side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padEnd('abc', 6);
- * // => 'abc '
- *
- * _.padEnd('abc', 6, '_-');
- * // => 'abc_-_'
- *
- * _.padEnd('abc', 3);
- * // => 'abc'
- */
- function padEnd(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (string + createPadding(length - strLength, chars))
- : string;
- }
- module.exports = padEnd;
- /***/ }),
- /***/ "./node_modules/lodash/padStart.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/padStart.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var createPadding = __webpack_require__(/*! ./_createPadding */ "./node_modules/lodash/_createPadding.js"),
- stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js"),
- toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js"),
- toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
- /**
- * Pads `string` on the left side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padStart('abc', 6);
- * // => ' abc'
- *
- * _.padStart('abc', 6, '_-');
- * // => '_-_abc'
- *
- * _.padStart('abc', 3);
- * // => 'abc'
- */
- function padStart(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (createPadding(length - strLength, chars) + string)
- : string;
- }
- module.exports = padStart;
- /***/ }),
- /***/ "./node_modules/lodash/partition.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/partition.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var createAggregator = __webpack_require__(/*! ./_createAggregator */ "./node_modules/lodash/_createAggregator.js");
- /**
- * Creates an array of elements split into two groups, the first of which
- * contains elements `predicate` returns truthy for, the second of which
- * contains elements `predicate` returns falsey for. The predicate is
- * invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the array of grouped elements.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': true },
- * { 'user': 'pebbles', 'age': 1, 'active': false }
- * ];
- *
- * _.partition(users, function(o) { return o.active; });
- * // => objects for [['fred'], ['barney', 'pebbles']]
- *
- * // The `_.matches` iteratee shorthand.
- * _.partition(users, { 'age': 1, 'active': false });
- * // => objects for [['pebbles'], ['barney', 'fred']]
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.partition(users, ['active', false]);
- * // => objects for [['barney', 'pebbles'], ['fred']]
- *
- * // The `_.property` iteratee shorthand.
- * _.partition(users, 'active');
- * // => objects for [['fred'], ['barney', 'pebbles']]
- */
- var partition = createAggregator(function(result, value, key) {
- result[key ? 0 : 1].push(value);
- }, function() { return [[], []]; });
- module.exports = partition;
- /***/ }),
- /***/ "./node_modules/lodash/pick.js":
- /*!*************************************!*\
- !*** ./node_modules/lodash/pick.js ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var basePick = __webpack_require__(/*! ./_basePick */ "./node_modules/lodash/_basePick.js"),
- flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js");
- /**
- * Creates an object composed of the picked `object` properties.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [paths] The property paths to pick.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pick(object, ['a', 'c']);
- * // => { 'a': 1, 'c': 3 }
- */
- var pick = flatRest(function(object, paths) {
- return object == null ? {} : basePick(object, paths);
- });
- module.exports = pick;
- /***/ }),
- /***/ "./node_modules/lodash/property.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/property.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js"),
- basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "./node_modules/lodash/_basePropertyDeep.js"),
- isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
- toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
- /**
- * Creates a function that returns the value at `path` of a given object.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Util
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- * @example
- *
- * var objects = [
- * { 'a': { 'b': 2 } },
- * { 'a': { 'b': 1 } }
- * ];
- *
- * _.map(objects, _.property('a.b'));
- * // => [2, 1]
- *
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
- * // => [1, 2]
- */
- function property(path) {
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
- }
- module.exports = property;
- /***/ }),
- /***/ "./node_modules/lodash/set.js":
- /*!************************************!*\
- !*** ./node_modules/lodash/set.js ***!
- \************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js");
- /**
- * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
- * it's created. Arrays are created for missing index properties while objects
- * are created for all other missing properties. Use `_.setWith` to customize
- * `path` creation.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.set(object, 'a[0].b.c', 4);
- * console.log(object.a[0].b.c);
- * // => 4
- *
- * _.set(object, ['x', '0', 'y', 'z'], 5);
- * console.log(object.x[0].y.z);
- * // => 5
- */
- function set(object, path, value) {
- return object == null ? object : baseSet(object, path, value);
- }
- module.exports = set;
- /***/ }),
- /***/ "./node_modules/lodash/stubArray.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/stubArray.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * This method returns a new empty array.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {Array} Returns the new empty array.
- * @example
- *
- * var arrays = _.times(2, _.stubArray);
- *
- * console.log(arrays);
- * // => [[], []]
- *
- * console.log(arrays[0] === arrays[1]);
- * // => false
- */
- function stubArray() {
- return [];
- }
- module.exports = stubArray;
- /***/ }),
- /***/ "./node_modules/lodash/stubFalse.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/stubFalse.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /**
- * This method returns `false`.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {boolean} Returns `false`.
- * @example
- *
- * _.times(2, _.stubFalse);
- * // => [false, false]
- */
- function stubFalse() {
- return false;
- }
- module.exports = stubFalse;
- /***/ }),
- /***/ "./node_modules/lodash/throttle.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/throttle.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var debounce = __webpack_require__(/*! ./debounce */ "./node_modules/lodash/debounce.js"),
- isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
- /** Error message constants. */
- var FUNC_ERROR_TEXT = 'Expected a function';
- /**
- * Creates a throttled function that only invokes `func` at most once per
- * every `wait` milliseconds. The throttled function comes with a `cancel`
- * method to cancel delayed `func` invocations and a `flush` method to
- * immediately invoke them. Provide `options` to indicate whether `func`
- * should be invoked on the leading and/or trailing edge of the `wait`
- * timeout. The `func` is invoked with the last arguments provided to the
- * throttled function. Subsequent calls to the throttled function return the
- * result of the last `func` invocation.
- *
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
- * invoked on the trailing edge of the timeout only if the throttled function
- * is invoked more than once during the `wait` timeout.
- *
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
- *
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
- * for details over the differences between `_.throttle` and `_.debounce`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to throttle.
- * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.leading=true]
- * Specify invoking on the leading edge of the timeout.
- * @param {boolean} [options.trailing=true]
- * Specify invoking on the trailing edge of the timeout.
- * @returns {Function} Returns the new throttled function.
- * @example
- *
- * // Avoid excessively updating the position while scrolling.
- * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
- *
- * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
- * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
- * jQuery(element).on('click', throttled);
- *
- * // Cancel the trailing throttled invocation.
- * jQuery(window).on('popstate', throttled.cancel);
- */
- function throttle(func, wait, options) {
- var leading = true,
- trailing = true;
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- if (isObject(options)) {
- leading = 'leading' in options ? !!options.leading : leading;
- trailing = 'trailing' in options ? !!options.trailing : trailing;
- }
- return debounce(func, wait, {
- 'leading': leading,
- 'maxWait': wait,
- 'trailing': trailing
- });
- }
- module.exports = throttle;
- /***/ }),
- /***/ "./node_modules/lodash/toFinite.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/toFinite.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");
- /** Used as references for various `Number` constants. */
- var INFINITY = 1 / 0,
- MAX_INTEGER = 1.7976931348623157e+308;
- /**
- * Converts `value` to a finite number.
- *
- * @static
- * @memberOf _
- * @since 4.12.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted number.
- * @example
- *
- * _.toFinite(3.2);
- * // => 3.2
- *
- * _.toFinite(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toFinite(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toFinite('3.2');
- * // => 3.2
- */
- function toFinite(value) {
- if (!value) {
- return value === 0 ? value : 0;
- }
- value = toNumber(value);
- if (value === INFINITY || value === -INFINITY) {
- var sign = (value < 0 ? -1 : 1);
- return sign * MAX_INTEGER;
- }
- return value === value ? value : 0;
- }
- module.exports = toFinite;
- /***/ }),
- /***/ "./node_modules/lodash/toInteger.js":
- /*!******************************************!*\
- !*** ./node_modules/lodash/toInteger.js ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");
- /**
- * Converts `value` to an integer.
- *
- * **Note:** This method is loosely based on
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toInteger(3.2);
- * // => 3
- *
- * _.toInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toInteger(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toInteger('3.2');
- * // => 3
- */
- function toInteger(value) {
- var result = toFinite(value),
- remainder = result % 1;
- return result === result ? (remainder ? result - remainder : result) : 0;
- }
- module.exports = toInteger;
- /***/ }),
- /***/ "./node_modules/lodash/toNumber.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/toNumber.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseTrim = __webpack_require__(/*! ./_baseTrim */ "./node_modules/lodash/_baseTrim.js"),
- isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
- isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
- /** Used as references for various `Number` constants. */
- var NAN = 0 / 0;
- /** Used to detect bad signed hexadecimal string values. */
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
- /** Used to detect binary string values. */
- var reIsBinary = /^0b[01]+$/i;
- /** Used to detect octal string values. */
- var reIsOctal = /^0o[0-7]+$/i;
- /** Built-in method references without a dependency on `root`. */
- var freeParseInt = parseInt;
- /**
- * Converts `value` to a number.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- * @example
- *
- * _.toNumber(3.2);
- * // => 3.2
- *
- * _.toNumber(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toNumber(Infinity);
- * // => Infinity
- *
- * _.toNumber('3.2');
- * // => 3.2
- */
- function toNumber(value) {
- if (typeof value == 'number') {
- return value;
- }
- if (isSymbol(value)) {
- return NAN;
- }
- if (isObject(value)) {
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
- value = isObject(other) ? (other + '') : other;
- }
- if (typeof value != 'string') {
- return value === 0 ? value : +value;
- }
- value = baseTrim(value);
- var isBinary = reIsBinary.test(value);
- return (isBinary || reIsOctal.test(value))
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
- : (reIsBadHex.test(value) ? NAN : +value);
- }
- module.exports = toNumber;
- /***/ }),
- /***/ "./node_modules/lodash/toPlainObject.js":
- /*!**********************************************!*\
- !*** ./node_modules/lodash/toPlainObject.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
- keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
- /**
- * Converts `value` to a plain object flattening inherited enumerable string
- * keyed properties of `value` to own properties of the plain object.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Object} Returns the converted plain object.
- * @example
- *
- * function Foo() {
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.assign({ 'a': 1 }, new Foo);
- * // => { 'a': 1, 'b': 2 }
- *
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
- * // => { 'a': 1, 'b': 2, 'c': 3 }
- */
- function toPlainObject(value) {
- return copyObject(value, keysIn(value));
- }
- module.exports = toPlainObject;
- /***/ }),
- /***/ "./node_modules/lodash/toString.js":
- /*!*****************************************!*\
- !*** ./node_modules/lodash/toString.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js");
- /**
- * Converts `value` to a string. An empty string is returned for `null`
- * and `undefined` values. The sign of `-0` is preserved.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.toString(null);
- * // => ''
- *
- * _.toString(-0);
- * // => '-0'
- *
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
- */
- function toString(value) {
- return value == null ? '' : baseToString(value);
- }
- module.exports = toString;
- /***/ }),
- /***/ "./node_modules/lodash/uniqBy.js":
- /*!***************************************!*\
- !*** ./node_modules/lodash/uniqBy.js ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
- baseUniq = __webpack_require__(/*! ./_baseUniq */ "./node_modules/lodash/_baseUniq.js");
- /**
- * This method is like `_.uniq` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * uniqueness is computed. The order of result values is determined by the
- * order they occur in the array. The iteratee is invoked with one argument:
- * (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
- * // => [2.1, 1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }, { 'x': 2 }]
- */
- function uniqBy(array, iteratee) {
- return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : [];
- }
- module.exports = uniqBy;
- /***/ }),
- /***/ "./node_modules/mutationobserver-shim/dist/mutationobserver.min.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/mutationobserver-shim/dist/mutationobserver.min.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // mutationobserver-shim v0.3.3 (github.com/megawac/MutationObserver.js)
- // Authors: Graeme Yeates (github.com/megawac)
- /*
- Shim for MutationObserver interface
- Author: Graeme Yeates (github.com/megawac)
- Repository: https://github.com/megawac/MutationObserver.js
- License: WTFPL V2, 2004 (wtfpl.net).
- Though credit and staring the repo will make me feel pretty, you can modify and redistribute as you please.
- Attempts to follow spec (https://www.w3.org/TR/dom/#mutation-observers) as closely as possible for native javascript
- See https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/MutationObserver.cpp for current webkit source c++ implementation
- */
- window.MutationObserver||(window.MutationObserver=function(y){function z(a){this.i=[];this.m=a}function K(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,z._period)})()}function r(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==y&&a[c]!==y&&(b[c]=a[c]);return b}function L(a,b){var c=E(a,b);return function(d){var f=d.length;b.a&&3===a.nodeType&&
- a.nodeValue!==c.a&&d.push(new r({type:"characterData",target:a,oldValue:c.a}));b.b&&c.b&&C(d,a,c.b,b.f);if(b.c||b.g)var m=M(d,a,c,b);if(m||d.length!==f)c=E(a,b)}}function N(a,b){return b.value}function O(a,b){return"style"!==b.name?b.value:a.style.cssText}function C(a,b,c,d){for(var f={},m=b.attributes,k,g,p=m.length;p--;)k=m[p],g=k.name,d&&d[g]===y||(F(b,k)!==c[g]&&a.push(r({type:"attributes",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(r({target:b,
- type:"attributes",attributeName:g,oldValue:c[g]}))}function M(a,b,c,d){function f(g,p,t,q,x){var A=g.length-1;x=-~((A-x)/2);for(var h,l,e;e=g.pop();)h=t[e.j],l=q[e.l],d.c&&x&&Math.abs(e.j-e.l)>=A&&(a.push(r({type:"childList",target:p,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),x--),d.b&&l.b&&C(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(r({type:"characterData",target:h,oldValue:l.a})),d.g&&m(h,l)}function m(g,p){for(var t=g.childNodes,
- q=p.c,x=t.length,A=q?q.length:0,h,l,e,n,v,B=0,w=0,u=0;w<x||u<A;)n=t[w],v=(e=q[u])&&e.node,n===v?(d.b&&e.b&&C(a,n,e.b,d.f),d.a&&e.a!==y&&n.nodeValue!==e.a&&a.push(r({type:"characterData",target:n,oldValue:e.a})),l&&f(l,g,t,q,B),d.g&&(n.childNodes.length||e.c&&e.c.length)&&m(n,e),w++,u++):(k=!0,h||(h={},l=[]),n&&(h[e=G(n)]||(h[e]=!0,-1===(e=H(q,n,u,"node"))?d.c&&(a.push(r({type:"childList",target:g,addedNodes:[n],nextSibling:n.nextSibling,previousSibling:n.previousSibling})),B++):l.push({j:w,l:e})),
- w++),v&&v!==t[w]&&(h[e=G(v)]||(h[e]=!0,-1===(e=H(t,v,w))?d.c&&(a.push(r({type:"childList",target:p.node,removedNodes:[v],nextSibling:q[u+1],previousSibling:q[u-1]})),B--):l.push({j:e,l:u})),u++));l&&f(l,g,t,q,B)}var k;m(b,c);return k}function E(a,b){var c=!0;return function m(f){var k={node:f};!b.a||3!==f.nodeType&&8!==f.nodeType?(b.b&&c&&1===f.nodeType&&(k.b=I(f.attributes,function(g,p){if(!b.f||b.f[p.name])g[p.name]=F(f,p);return g},{})),c&&(b.c||b.a||b.b&&b.g)&&(k.c=P(f.childNodes,m)),c=b.g):k.a=
- f.nodeValue;return k}(a)}function G(a){try{return a.id||(a.mo_id=a.mo_id||J++)}catch(b){try{return a.nodeValue}catch(c){return J++}}}function P(a,b){for(var c=[],d=0;d<a.length;d++)c[d]=b(a[d],d,a);return c}function I(a,b,c){for(var d=0;d<a.length;d++)c=b(c,a[d],d,a);return c}function H(a,b,c,d){for(;c<a.length;c++)if((d?a[c][d]:a[c])===b)return c;return-1}z._period=30;z.prototype={observe:function(a,b){for(var c={b:!!(b.attributes||b.attributeFilter||b.attributeOldValue),c:!!b.childList,g:!!b.subtree,
- a:!(!b.characterData&&!b.characterDataOldValue)},d=this.i,f=0;f<d.length;f++)d[f].s===a&&d.splice(f,1);b.attributeFilter&&(c.f=I(b.attributeFilter,function(m,k){m[k]=!0;return m},{}));d.push({s:a,o:L(a,c)});this.h||K(this)},takeRecords:function(){for(var a=[],b=this.i,c=0;c<b.length;c++)b[c].o(a);return a},disconnect:function(){this.i=[];clearTimeout(this.h);this.h=null}};var D=document.createElement("i");D.style.top=0;var F=(D="null"!=D.attributes.style.value)?N:O,J=1;return z}(void 0));
- //# sourceMappingURL=mutationobserver.map
- /***/ }),
- /***/ "./node_modules/object-assign/index.js":
- /*!*********************************************!*\
- !*** ./node_modules/object-assign/index.js ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /*
- object-assign
- (c) Sindre Sorhus
- @license MIT
- */
- /* eslint-disable no-unused-vars */
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
- function toObject(val) {
- if (val === null || val === undefined) {
- throw new TypeError('Object.assign cannot be called with null or undefined');
- }
- return Object(val);
- }
- function shouldUseNative() {
- try {
- if (!Object.assign) {
- return false;
- }
- // Detect buggy property enumeration order in older V8 versions.
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
- test1[5] = 'de';
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
- return false;
- }
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test2 = {};
- for (var i = 0; i < 10; i++) {
- test2['_' + String.fromCharCode(i)] = i;
- }
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
- return test2[n];
- });
- if (order2.join('') !== '0123456789') {
- return false;
- }
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test3 = {};
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
- test3[letter] = letter;
- });
- if (Object.keys(Object.assign({}, test3)).join('') !==
- 'abcdefghijklmnopqrst') {
- return false;
- }
- return true;
- } catch (err) {
- // We don't expect any of the above to throw, but better to be safe.
- return false;
- }
- }
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
- var from;
- var to = toObject(target);
- var symbols;
- for (var s = 1; s < arguments.length; s++) {
- from = Object(arguments[s]);
- for (var key in from) {
- if (hasOwnProperty.call(from, key)) {
- to[key] = from[key];
- }
- }
- if (getOwnPropertySymbols) {
- symbols = getOwnPropertySymbols(from);
- for (var i = 0; i < symbols.length; i++) {
- if (propIsEnumerable.call(from, symbols[i])) {
- to[symbols[i]] = from[symbols[i]];
- }
- }
- }
- }
- return to;
- };
- /***/ }),
- /***/ "./node_modules/omit.js/es/index.js":
- /*!******************************************!*\
- !*** ./node_modules/omit.js/es/index.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
- /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- function omit(obj, fields) {
- var shallowCopy = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, obj);
- for (var i = 0; i < fields.length; i++) {
- var key = fields[i];
- delete shallowCopy[key];
- }
- return shallowCopy;
- }
- /* harmony default export */ __webpack_exports__["default"] = (omit);
- /***/ }),
- /***/ "./node_modules/performance-now/lib/performance-now.js":
- /*!*************************************************************!*\
- !*** ./node_modules/performance-now/lib/performance-now.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
- (function() {
- var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
- if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
- module.exports = function() {
- return performance.now();
- };
- } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
- module.exports = function() {
- return (getNanoSeconds() - nodeLoadTime) / 1e6;
- };
- hrtime = process.hrtime;
- getNanoSeconds = function() {
- var hr;
- hr = hrtime();
- return hr[0] * 1e9 + hr[1];
- };
- moduleLoadTime = getNanoSeconds();
- upTime = process.uptime() * 1e9;
- nodeLoadTime = moduleLoadTime - upTime;
- } else if (Date.now) {
- module.exports = function() {
- return Date.now() - loadTime;
- };
- loadTime = Date.now();
- } else {
- module.exports = function() {
- return new Date().getTime() - loadTime;
- };
- loadTime = new Date().getTime();
- }
- }).call(this);
- //# sourceMappingURL=performance-now.js.map
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))
- /***/ }),
- /***/ "./node_modules/process/browser.js":
- /*!*****************************************!*\
- !*** ./node_modules/process/browser.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // shim for using process in browser
- var process = module.exports = {};
- // cached from whatever global is present so that test runners that stub it
- // don't break things. But we need to wrap it in a try catch in case it is
- // wrapped in strict mode code which doesn't define any globals. It's inside a
- // function because try/catches deoptimize in certain engines.
- var cachedSetTimeout;
- var cachedClearTimeout;
- function defaultSetTimout() {
- throw new Error('setTimeout has not been defined');
- }
- function defaultClearTimeout () {
- throw new Error('clearTimeout has not been defined');
- }
- (function () {
- try {
- if (typeof setTimeout === 'function') {
- cachedSetTimeout = setTimeout;
- } else {
- cachedSetTimeout = defaultSetTimout;
- }
- } catch (e) {
- cachedSetTimeout = defaultSetTimout;
- }
- try {
- if (typeof clearTimeout === 'function') {
- cachedClearTimeout = clearTimeout;
- } else {
- cachedClearTimeout = defaultClearTimeout;
- }
- } catch (e) {
- cachedClearTimeout = defaultClearTimeout;
- }
- } ())
- function runTimeout(fun) {
- if (cachedSetTimeout === setTimeout) {
- //normal enviroments in sane situations
- return setTimeout(fun, 0);
- }
- // if setTimeout wasn't available but was latter defined
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
- cachedSetTimeout = setTimeout;
- return setTimeout(fun, 0);
- }
- try {
- // when when somebody has screwed with setTimeout but no I.E. maddness
- return cachedSetTimeout(fun, 0);
- } catch(e){
- try {
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
- return cachedSetTimeout.call(null, fun, 0);
- } catch(e){
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
- return cachedSetTimeout.call(this, fun, 0);
- }
- }
- }
- function runClearTimeout(marker) {
- if (cachedClearTimeout === clearTimeout) {
- //normal enviroments in sane situations
- return clearTimeout(marker);
- }
- // if clearTimeout wasn't available but was latter defined
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
- cachedClearTimeout = clearTimeout;
- return clearTimeout(marker);
- }
- try {
- // when when somebody has screwed with setTimeout but no I.E. maddness
- return cachedClearTimeout(marker);
- } catch (e){
- try {
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
- return cachedClearTimeout.call(null, marker);
- } catch (e){
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
- return cachedClearTimeout.call(this, marker);
- }
- }
- }
- var queue = [];
- var draining = false;
- var currentQueue;
- var queueIndex = -1;
- function cleanUpNextTick() {
- if (!draining || !currentQueue) {
- return;
- }
- draining = false;
- if (currentQueue.length) {
- queue = currentQueue.concat(queue);
- } else {
- queueIndex = -1;
- }
- if (queue.length) {
- drainQueue();
- }
- }
- function drainQueue() {
- if (draining) {
- return;
- }
- var timeout = runTimeout(cleanUpNextTick);
- draining = true;
- var len = queue.length;
- while(len) {
- currentQueue = queue;
- queue = [];
- while (++queueIndex < len) {
- if (currentQueue) {
- currentQueue[queueIndex].run();
- }
- }
- queueIndex = -1;
- len = queue.length;
- }
- currentQueue = null;
- draining = false;
- runClearTimeout(timeout);
- }
- process.nextTick = function (fun) {
- var args = new Array(arguments.length - 1);
- if (arguments.length > 1) {
- for (var i = 1; i < arguments.length; i++) {
- args[i - 1] = arguments[i];
- }
- }
- queue.push(new Item(fun, args));
- if (queue.length === 1 && !draining) {
- runTimeout(drainQueue);
- }
- };
- // v8 likes predictible objects
- function Item(fun, array) {
- this.fun = fun;
- this.array = array;
- }
- Item.prototype.run = function () {
- this.fun.apply(null, this.array);
- };
- process.title = 'browser';
- process.browser = true;
- process.env = {};
- process.argv = [];
- process.version = ''; // empty string to avoid regexp issues
- process.versions = {};
- function noop() {}
- process.on = noop;
- process.addListener = noop;
- process.once = noop;
- process.off = noop;
- process.removeListener = noop;
- process.removeAllListeners = noop;
- process.emit = noop;
- process.prependListener = noop;
- process.prependOnceListener = noop;
- process.listeners = function (name) { return [] }
- process.binding = function (name) {
- throw new Error('process.binding is not supported');
- };
- process.cwd = function () { return '/' };
- process.chdir = function (dir) {
- throw new Error('process.chdir is not supported');
- };
- process.umask = function() { return 0; };
- /***/ }),
- /***/ "./node_modules/raf/index.js":
- /*!***********************************!*\
- !*** ./node_modules/raf/index.js ***!
- \***********************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(/*! performance-now */ "./node_modules/performance-now/lib/performance-now.js")
- , root = typeof window === 'undefined' ? global : window
- , vendors = ['moz', 'webkit']
- , suffix = 'AnimationFrame'
- , raf = root['request' + suffix]
- , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]
- for(var i = 0; !raf && i < vendors.length; i++) {
- raf = root[vendors[i] + 'Request' + suffix]
- caf = root[vendors[i] + 'Cancel' + suffix]
- || root[vendors[i] + 'CancelRequest' + suffix]
- }
- // Some versions of FF have rAF but not cAF
- if(!raf || !caf) {
- var last = 0
- , id = 0
- , queue = []
- , frameDuration = 1000 / 60
- raf = function(callback) {
- if(queue.length === 0) {
- var _now = now()
- , next = Math.max(0, frameDuration - (_now - last))
- last = next + _now
- setTimeout(function() {
- var cp = queue.slice(0)
- // Clear queue here to prevent
- // callbacks from appending listeners
- // to the current frame's queue
- queue.length = 0
- for(var i = 0; i < cp.length; i++) {
- if(!cp[i].cancelled) {
- try{
- cp[i].callback(last)
- } catch(e) {
- setTimeout(function() { throw e }, 0)
- }
- }
- }
- }, Math.round(next))
- }
- queue.push({
- handle: ++id,
- callback: callback,
- cancelled: false
- })
- return id
- }
- caf = function(handle) {
- for(var i = 0; i < queue.length; i++) {
- if(queue[i].handle === handle) {
- queue[i].cancelled = true
- }
- }
- }
- }
- module.exports = function(fn) {
- // Wrap in a new function to prevent
- // `cancel` potentially being assigned
- // to the native rAF function
- return raf.call(root, fn)
- }
- module.exports.cancel = function() {
- caf.apply(root, arguments)
- }
- module.exports.polyfill = function(object) {
- if (!object) {
- object = root;
- }
- object.requestAnimationFrame = raf
- object.cancelAnimationFrame = caf
- }
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
- /***/ }),
- /***/ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js ***!
- \*************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* WEBPACK VAR INJECTION */(function(global) {/**
- * A collection of shims that provide minimal functionality of the ES6 collections.
- *
- * These implementations are not meant to be used outside of the ResizeObserver
- * modules as they cover only a limited range of use cases.
- */
- /* eslint-disable require-jsdoc, valid-jsdoc */
- var MapShim = (function () {
- if (typeof Map !== 'undefined') {
- return Map;
- }
- /**
- * Returns index in provided array that matches the specified key.
- *
- * @param {Array<Array>} arr
- * @param {*} key
- * @returns {number}
- */
- function getIndex(arr, key) {
- var result = -1;
- arr.some(function (entry, index) {
- if (entry[0] === key) {
- result = index;
- return true;
- }
- return false;
- });
- return result;
- }
- return /** @class */ (function () {
- function class_1() {
- this.__entries__ = [];
- }
- Object.defineProperty(class_1.prototype, "size", {
- /**
- * @returns {boolean}
- */
- get: function () {
- return this.__entries__.length;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {*} key
- * @returns {*}
- */
- class_1.prototype.get = function (key) {
- var index = getIndex(this.__entries__, key);
- var entry = this.__entries__[index];
- return entry && entry[1];
- };
- /**
- * @param {*} key
- * @param {*} value
- * @returns {void}
- */
- class_1.prototype.set = function (key, value) {
- var index = getIndex(this.__entries__, key);
- if (~index) {
- this.__entries__[index][1] = value;
- }
- else {
- this.__entries__.push([key, value]);
- }
- };
- /**
- * @param {*} key
- * @returns {void}
- */
- class_1.prototype.delete = function (key) {
- var entries = this.__entries__;
- var index = getIndex(entries, key);
- if (~index) {
- entries.splice(index, 1);
- }
- };
- /**
- * @param {*} key
- * @returns {void}
- */
- class_1.prototype.has = function (key) {
- return !!~getIndex(this.__entries__, key);
- };
- /**
- * @returns {void}
- */
- class_1.prototype.clear = function () {
- this.__entries__.splice(0);
- };
- /**
- * @param {Function} callback
- * @param {*} [ctx=null]
- * @returns {void}
- */
- class_1.prototype.forEach = function (callback, ctx) {
- if (ctx === void 0) { ctx = null; }
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
- var entry = _a[_i];
- callback.call(ctx, entry[1], entry[0]);
- }
- };
- return class_1;
- }());
- })();
- /**
- * Detects whether window and document objects are available in current environment.
- */
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
- // Returns global object of a current environment.
- var global$1 = (function () {
- if (typeof global !== 'undefined' && global.Math === Math) {
- return global;
- }
- if (typeof self !== 'undefined' && self.Math === Math) {
- return self;
- }
- if (typeof window !== 'undefined' && window.Math === Math) {
- return window;
- }
- // eslint-disable-next-line no-new-func
- return Function('return this')();
- })();
- /**
- * A shim for the requestAnimationFrame which falls back to the setTimeout if
- * first one is not supported.
- *
- * @returns {number} Requests' identifier.
- */
- var requestAnimationFrame$1 = (function () {
- if (typeof requestAnimationFrame === 'function') {
- // It's required to use a bounded function because IE sometimes throws
- // an "Invalid calling object" error if rAF is invoked without the global
- // object on the left hand side.
- return requestAnimationFrame.bind(global$1);
- }
- return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
- })();
- // Defines minimum timeout before adding a trailing call.
- var trailingTimeout = 2;
- /**
- * Creates a wrapper function which ensures that provided callback will be
- * invoked only once during the specified delay period.
- *
- * @param {Function} callback - Function to be invoked after the delay period.
- * @param {number} delay - Delay after which to invoke callback.
- * @returns {Function}
- */
- function throttle (callback, delay) {
- var leadingCall = false, trailingCall = false, lastCallTime = 0;
- /**
- * Invokes the original callback function and schedules new invocation if
- * the "proxy" was called during current request.
- *
- * @returns {void}
- */
- function resolvePending() {
- if (leadingCall) {
- leadingCall = false;
- callback();
- }
- if (trailingCall) {
- proxy();
- }
- }
- /**
- * Callback invoked after the specified delay. It will further postpone
- * invocation of the original function delegating it to the
- * requestAnimationFrame.
- *
- * @returns {void}
- */
- function timeoutCallback() {
- requestAnimationFrame$1(resolvePending);
- }
- /**
- * Schedules invocation of the original function.
- *
- * @returns {void}
- */
- function proxy() {
- var timeStamp = Date.now();
- if (leadingCall) {
- // Reject immediately following calls.
- if (timeStamp - lastCallTime < trailingTimeout) {
- return;
- }
- // Schedule new call to be in invoked when the pending one is resolved.
- // This is important for "transitions" which never actually start
- // immediately so there is a chance that we might miss one if change
- // happens amids the pending invocation.
- trailingCall = true;
- }
- else {
- leadingCall = true;
- trailingCall = false;
- setTimeout(timeoutCallback, delay);
- }
- lastCallTime = timeStamp;
- }
- return proxy;
- }
- // Minimum delay before invoking the update of observers.
- var REFRESH_DELAY = 20;
- // A list of substrings of CSS properties used to find transition events that
- // might affect dimensions of observed elements.
- var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
- // Check if MutationObserver is available.
- var mutationObserverSupported = typeof MutationObserver !== 'undefined';
- /**
- * Singleton controller class which handles updates of ResizeObserver instances.
- */
- var ResizeObserverController = /** @class */ (function () {
- /**
- * Creates a new instance of ResizeObserverController.
- *
- * @private
- */
- function ResizeObserverController() {
- /**
- * Indicates whether DOM listeners have been added.
- *
- * @private {boolean}
- */
- this.connected_ = false;
- /**
- * Tells that controller has subscribed for Mutation Events.
- *
- * @private {boolean}
- */
- this.mutationEventsAdded_ = false;
- /**
- * Keeps reference to the instance of MutationObserver.
- *
- * @private {MutationObserver}
- */
- this.mutationsObserver_ = null;
- /**
- * A list of connected observers.
- *
- * @private {Array<ResizeObserverSPI>}
- */
- this.observers_ = [];
- this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
- this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
- }
- /**
- * Adds observer to observers list.
- *
- * @param {ResizeObserverSPI} observer - Observer to be added.
- * @returns {void}
- */
- ResizeObserverController.prototype.addObserver = function (observer) {
- if (!~this.observers_.indexOf(observer)) {
- this.observers_.push(observer);
- }
- // Add listeners if they haven't been added yet.
- if (!this.connected_) {
- this.connect_();
- }
- };
- /**
- * Removes observer from observers list.
- *
- * @param {ResizeObserverSPI} observer - Observer to be removed.
- * @returns {void}
- */
- ResizeObserverController.prototype.removeObserver = function (observer) {
- var observers = this.observers_;
- var index = observers.indexOf(observer);
- // Remove observer if it's present in registry.
- if (~index) {
- observers.splice(index, 1);
- }
- // Remove listeners if controller has no connected observers.
- if (!observers.length && this.connected_) {
- this.disconnect_();
- }
- };
- /**
- * Invokes the update of observers. It will continue running updates insofar
- * it detects changes.
- *
- * @returns {void}
- */
- ResizeObserverController.prototype.refresh = function () {
- var changesDetected = this.updateObservers_();
- // Continue running updates if changes have been detected as there might
- // be future ones caused by CSS transitions.
- if (changesDetected) {
- this.refresh();
- }
- };
- /**
- * Updates every observer from observers list and notifies them of queued
- * entries.
- *
- * @private
- * @returns {boolean} Returns "true" if any observer has detected changes in
- * dimensions of it's elements.
- */
- ResizeObserverController.prototype.updateObservers_ = function () {
- // Collect observers that have active observations.
- var activeObservers = this.observers_.filter(function (observer) {
- return observer.gatherActive(), observer.hasActive();
- });
- // Deliver notifications in a separate cycle in order to avoid any
- // collisions between observers, e.g. when multiple instances of
- // ResizeObserver are tracking the same element and the callback of one
- // of them changes content dimensions of the observed target. Sometimes
- // this may result in notifications being blocked for the rest of observers.
- activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
- return activeObservers.length > 0;
- };
- /**
- * Initializes DOM listeners.
- *
- * @private
- * @returns {void}
- */
- ResizeObserverController.prototype.connect_ = function () {
- // Do nothing if running in a non-browser environment or if listeners
- // have been already added.
- if (!isBrowser || this.connected_) {
- return;
- }
- // Subscription to the "Transitionend" event is used as a workaround for
- // delayed transitions. This way it's possible to capture at least the
- // final state of an element.
- document.addEventListener('transitionend', this.onTransitionEnd_);
- window.addEventListener('resize', this.refresh);
- if (mutationObserverSupported) {
- this.mutationsObserver_ = new MutationObserver(this.refresh);
- this.mutationsObserver_.observe(document, {
- attributes: true,
- childList: true,
- characterData: true,
- subtree: true
- });
- }
- else {
- document.addEventListener('DOMSubtreeModified', this.refresh);
- this.mutationEventsAdded_ = true;
- }
- this.connected_ = true;
- };
- /**
- * Removes DOM listeners.
- *
- * @private
- * @returns {void}
- */
- ResizeObserverController.prototype.disconnect_ = function () {
- // Do nothing if running in a non-browser environment or if listeners
- // have been already removed.
- if (!isBrowser || !this.connected_) {
- return;
- }
- document.removeEventListener('transitionend', this.onTransitionEnd_);
- window.removeEventListener('resize', this.refresh);
- if (this.mutationsObserver_) {
- this.mutationsObserver_.disconnect();
- }
- if (this.mutationEventsAdded_) {
- document.removeEventListener('DOMSubtreeModified', this.refresh);
- }
- this.mutationsObserver_ = null;
- this.mutationEventsAdded_ = false;
- this.connected_ = false;
- };
- /**
- * "Transitionend" event handler.
- *
- * @private
- * @param {TransitionEvent} event
- * @returns {void}
- */
- ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
- var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
- // Detect whether transition may affect dimensions of an element.
- var isReflowProperty = transitionKeys.some(function (key) {
- return !!~propertyName.indexOf(key);
- });
- if (isReflowProperty) {
- this.refresh();
- }
- };
- /**
- * Returns instance of the ResizeObserverController.
- *
- * @returns {ResizeObserverController}
- */
- ResizeObserverController.getInstance = function () {
- if (!this.instance_) {
- this.instance_ = new ResizeObserverController();
- }
- return this.instance_;
- };
- /**
- * Holds reference to the controller's instance.
- *
- * @private {ResizeObserverController}
- */
- ResizeObserverController.instance_ = null;
- return ResizeObserverController;
- }());
- /**
- * Defines non-writable/enumerable properties of the provided target object.
- *
- * @param {Object} target - Object for which to define properties.
- * @param {Object} props - Properties to be defined.
- * @returns {Object} Target object.
- */
- var defineConfigurable = (function (target, props) {
- for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
- var key = _a[_i];
- Object.defineProperty(target, key, {
- value: props[key],
- enumerable: false,
- writable: false,
- configurable: true
- });
- }
- return target;
- });
- /**
- * Returns the global object associated with provided element.
- *
- * @param {Object} target
- * @returns {Object}
- */
- var getWindowOf = (function (target) {
- // Assume that the element is an instance of Node, which means that it
- // has the "ownerDocument" property from which we can retrieve a
- // corresponding global object.
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
- // Return the local global object if it's not possible extract one from
- // provided element.
- return ownerGlobal || global$1;
- });
- // Placeholder of an empty content rectangle.
- var emptyRect = createRectInit(0, 0, 0, 0);
- /**
- * Converts provided string to a number.
- *
- * @param {number|string} value
- * @returns {number}
- */
- function toFloat(value) {
- return parseFloat(value) || 0;
- }
- /**
- * Extracts borders size from provided styles.
- *
- * @param {CSSStyleDeclaration} styles
- * @param {...string} positions - Borders positions (top, right, ...)
- * @returns {number}
- */
- function getBordersSize(styles) {
- var positions = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- positions[_i - 1] = arguments[_i];
- }
- return positions.reduce(function (size, position) {
- var value = styles['border-' + position + '-width'];
- return size + toFloat(value);
- }, 0);
- }
- /**
- * Extracts paddings sizes from provided styles.
- *
- * @param {CSSStyleDeclaration} styles
- * @returns {Object} Paddings box.
- */
- function getPaddings(styles) {
- var positions = ['top', 'right', 'bottom', 'left'];
- var paddings = {};
- for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
- var position = positions_1[_i];
- var value = styles['padding-' + position];
- paddings[position] = toFloat(value);
- }
- return paddings;
- }
- /**
- * Calculates content rectangle of provided SVG element.
- *
- * @param {SVGGraphicsElement} target - Element content rectangle of which needs
- * to be calculated.
- * @returns {DOMRectInit}
- */
- function getSVGContentRect(target) {
- var bbox = target.getBBox();
- return createRectInit(0, 0, bbox.width, bbox.height);
- }
- /**
- * Calculates content rectangle of provided HTMLElement.
- *
- * @param {HTMLElement} target - Element for which to calculate the content rectangle.
- * @returns {DOMRectInit}
- */
- function getHTMLElementContentRect(target) {
- // Client width & height properties can't be
- // used exclusively as they provide rounded values.
- var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
- // By this condition we can catch all non-replaced inline, hidden and
- // detached elements. Though elements with width & height properties less
- // than 0.5 will be discarded as well.
- //
- // Without it we would need to implement separate methods for each of
- // those cases and it's not possible to perform a precise and performance
- // effective test for hidden elements. E.g. even jQuery's ':visible' filter
- // gives wrong results for elements with width & height less than 0.5.
- if (!clientWidth && !clientHeight) {
- return emptyRect;
- }
- var styles = getWindowOf(target).getComputedStyle(target);
- var paddings = getPaddings(styles);
- var horizPad = paddings.left + paddings.right;
- var vertPad = paddings.top + paddings.bottom;
- // Computed styles of width & height are being used because they are the
- // only dimensions available to JS that contain non-rounded values. It could
- // be possible to utilize the getBoundingClientRect if only it's data wasn't
- // affected by CSS transformations let alone paddings, borders and scroll bars.
- var width = toFloat(styles.width), height = toFloat(styles.height);
- // Width & height include paddings and borders when the 'border-box' box
- // model is applied (except for IE).
- if (styles.boxSizing === 'border-box') {
- // Following conditions are required to handle Internet Explorer which
- // doesn't include paddings and borders to computed CSS dimensions.
- //
- // We can say that if CSS dimensions + paddings are equal to the "client"
- // properties then it's either IE, and thus we don't need to subtract
- // anything, or an element merely doesn't have paddings/borders styles.
- if (Math.round(width + horizPad) !== clientWidth) {
- width -= getBordersSize(styles, 'left', 'right') + horizPad;
- }
- if (Math.round(height + vertPad) !== clientHeight) {
- height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
- }
- }
- // Following steps can't be applied to the document's root element as its
- // client[Width/Height] properties represent viewport area of the window.
- // Besides, it's as well not necessary as the <html> itself neither has
- // rendered scroll bars nor it can be clipped.
- if (!isDocumentElement(target)) {
- // In some browsers (only in Firefox, actually) CSS width & height
- // include scroll bars size which can be removed at this step as scroll
- // bars are the only difference between rounded dimensions + paddings
- // and "client" properties, though that is not always true in Chrome.
- var vertScrollbar = Math.round(width + horizPad) - clientWidth;
- var horizScrollbar = Math.round(height + vertPad) - clientHeight;
- // Chrome has a rather weird rounding of "client" properties.
- // E.g. for an element with content width of 314.2px it sometimes gives
- // the client width of 315px and for the width of 314.7px it may give
- // 314px. And it doesn't happen all the time. So just ignore this delta
- // as a non-relevant.
- if (Math.abs(vertScrollbar) !== 1) {
- width -= vertScrollbar;
- }
- if (Math.abs(horizScrollbar) !== 1) {
- height -= horizScrollbar;
- }
- }
- return createRectInit(paddings.left, paddings.top, width, height);
- }
- /**
- * Checks whether provided element is an instance of the SVGGraphicsElement.
- *
- * @param {Element} target - Element to be checked.
- * @returns {boolean}
- */
- var isSVGGraphicsElement = (function () {
- // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
- // interface.
- if (typeof SVGGraphicsElement !== 'undefined') {
- return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
- }
- // If it's so, then check that element is at least an instance of the
- // SVGElement and that it has the "getBBox" method.
- // eslint-disable-next-line no-extra-parens
- return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
- typeof target.getBBox === 'function'); };
- })();
- /**
- * Checks whether provided element is a document element (<html>).
- *
- * @param {Element} target - Element to be checked.
- * @returns {boolean}
- */
- function isDocumentElement(target) {
- return target === getWindowOf(target).document.documentElement;
- }
- /**
- * Calculates an appropriate content rectangle for provided html or svg element.
- *
- * @param {Element} target - Element content rectangle of which needs to be calculated.
- * @returns {DOMRectInit}
- */
- function getContentRect(target) {
- if (!isBrowser) {
- return emptyRect;
- }
- if (isSVGGraphicsElement(target)) {
- return getSVGContentRect(target);
- }
- return getHTMLElementContentRect(target);
- }
- /**
- * Creates rectangle with an interface of the DOMRectReadOnly.
- * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
- *
- * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
- * @returns {DOMRectReadOnly}
- */
- function createReadOnlyRect(_a) {
- var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
- // If DOMRectReadOnly is available use it as a prototype for the rectangle.
- var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
- var rect = Object.create(Constr.prototype);
- // Rectangle's properties are not writable and non-enumerable.
- defineConfigurable(rect, {
- x: x, y: y, width: width, height: height,
- top: y,
- right: x + width,
- bottom: height + y,
- left: x
- });
- return rect;
- }
- /**
- * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
- * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
- *
- * @param {number} x - X coordinate.
- * @param {number} y - Y coordinate.
- * @param {number} width - Rectangle's width.
- * @param {number} height - Rectangle's height.
- * @returns {DOMRectInit}
- */
- function createRectInit(x, y, width, height) {
- return { x: x, y: y, width: width, height: height };
- }
- /**
- * Class that is responsible for computations of the content rectangle of
- * provided DOM element and for keeping track of it's changes.
- */
- var ResizeObservation = /** @class */ (function () {
- /**
- * Creates an instance of ResizeObservation.
- *
- * @param {Element} target - Element to be observed.
- */
- function ResizeObservation(target) {
- /**
- * Broadcasted width of content rectangle.
- *
- * @type {number}
- */
- this.broadcastWidth = 0;
- /**
- * Broadcasted height of content rectangle.
- *
- * @type {number}
- */
- this.broadcastHeight = 0;
- /**
- * Reference to the last observed content rectangle.
- *
- * @private {DOMRectInit}
- */
- this.contentRect_ = createRectInit(0, 0, 0, 0);
- this.target = target;
- }
- /**
- * Updates content rectangle and tells whether it's width or height properties
- * have changed since the last broadcast.
- *
- * @returns {boolean}
- */
- ResizeObservation.prototype.isActive = function () {
- var rect = getContentRect(this.target);
- this.contentRect_ = rect;
- return (rect.width !== this.broadcastWidth ||
- rect.height !== this.broadcastHeight);
- };
- /**
- * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
- * from the corresponding properties of the last observed content rectangle.
- *
- * @returns {DOMRectInit} Last observed content rectangle.
- */
- ResizeObservation.prototype.broadcastRect = function () {
- var rect = this.contentRect_;
- this.broadcastWidth = rect.width;
- this.broadcastHeight = rect.height;
- return rect;
- };
- return ResizeObservation;
- }());
- var ResizeObserverEntry = /** @class */ (function () {
- /**
- * Creates an instance of ResizeObserverEntry.
- *
- * @param {Element} target - Element that is being observed.
- * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
- */
- function ResizeObserverEntry(target, rectInit) {
- var contentRect = createReadOnlyRect(rectInit);
- // According to the specification following properties are not writable
- // and are also not enumerable in the native implementation.
- //
- // Property accessors are not being used as they'd require to define a
- // private WeakMap storage which may cause memory leaks in browsers that
- // don't support this type of collections.
- defineConfigurable(this, { target: target, contentRect: contentRect });
- }
- return ResizeObserverEntry;
- }());
- var ResizeObserverSPI = /** @class */ (function () {
- /**
- * Creates a new instance of ResizeObserver.
- *
- * @param {ResizeObserverCallback} callback - Callback function that is invoked
- * when one of the observed elements changes it's content dimensions.
- * @param {ResizeObserverController} controller - Controller instance which
- * is responsible for the updates of observer.
- * @param {ResizeObserver} callbackCtx - Reference to the public
- * ResizeObserver instance which will be passed to callback function.
- */
- function ResizeObserverSPI(callback, controller, callbackCtx) {
- /**
- * Collection of resize observations that have detected changes in dimensions
- * of elements.
- *
- * @private {Array<ResizeObservation>}
- */
- this.activeObservations_ = [];
- /**
- * Registry of the ResizeObservation instances.
- *
- * @private {Map<Element, ResizeObservation>}
- */
- this.observations_ = new MapShim();
- if (typeof callback !== 'function') {
- throw new TypeError('The callback provided as parameter 1 is not a function.');
- }
- this.callback_ = callback;
- this.controller_ = controller;
- this.callbackCtx_ = callbackCtx;
- }
- /**
- * Starts observing provided element.
- *
- * @param {Element} target - Element to be observed.
- * @returns {void}
- */
- ResizeObserverSPI.prototype.observe = function (target) {
- if (!arguments.length) {
- throw new TypeError('1 argument required, but only 0 present.');
- }
- // Do nothing if current environment doesn't have the Element interface.
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
- return;
- }
- if (!(target instanceof getWindowOf(target).Element)) {
- throw new TypeError('parameter 1 is not of type "Element".');
- }
- var observations = this.observations_;
- // Do nothing if element is already being observed.
- if (observations.has(target)) {
- return;
- }
- observations.set(target, new ResizeObservation(target));
- this.controller_.addObserver(this);
- // Force the update of observations.
- this.controller_.refresh();
- };
- /**
- * Stops observing provided element.
- *
- * @param {Element} target - Element to stop observing.
- * @returns {void}
- */
- ResizeObserverSPI.prototype.unobserve = function (target) {
- if (!arguments.length) {
- throw new TypeError('1 argument required, but only 0 present.');
- }
- // Do nothing if current environment doesn't have the Element interface.
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
- return;
- }
- if (!(target instanceof getWindowOf(target).Element)) {
- throw new TypeError('parameter 1 is not of type "Element".');
- }
- var observations = this.observations_;
- // Do nothing if element is not being observed.
- if (!observations.has(target)) {
- return;
- }
- observations.delete(target);
- if (!observations.size) {
- this.controller_.removeObserver(this);
- }
- };
- /**
- * Stops observing all elements.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.disconnect = function () {
- this.clearActive();
- this.observations_.clear();
- this.controller_.removeObserver(this);
- };
- /**
- * Collects observation instances the associated element of which has changed
- * it's content rectangle.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.gatherActive = function () {
- var _this = this;
- this.clearActive();
- this.observations_.forEach(function (observation) {
- if (observation.isActive()) {
- _this.activeObservations_.push(observation);
- }
- });
- };
- /**
- * Invokes initial callback function with a list of ResizeObserverEntry
- * instances collected from active resize observations.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.broadcastActive = function () {
- // Do nothing if observer doesn't have active observations.
- if (!this.hasActive()) {
- return;
- }
- var ctx = this.callbackCtx_;
- // Create ResizeObserverEntry instance for every active observation.
- var entries = this.activeObservations_.map(function (observation) {
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
- });
- this.callback_.call(ctx, entries, ctx);
- this.clearActive();
- };
- /**
- * Clears the collection of active observations.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.clearActive = function () {
- this.activeObservations_.splice(0);
- };
- /**
- * Tells whether observer has active observations.
- *
- * @returns {boolean}
- */
- ResizeObserverSPI.prototype.hasActive = function () {
- return this.activeObservations_.length > 0;
- };
- return ResizeObserverSPI;
- }());
- // Registry of internal observers. If WeakMap is not available use current shim
- // for the Map collection as it has all required methods and because WeakMap
- // can't be fully polyfilled anyway.
- var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
- /**
- * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
- * exposing only those methods and properties that are defined in the spec.
- */
- var ResizeObserver = /** @class */ (function () {
- /**
- * Creates a new instance of ResizeObserver.
- *
- * @param {ResizeObserverCallback} callback - Callback that is invoked when
- * dimensions of the observed elements change.
- */
- function ResizeObserver(callback) {
- if (!(this instanceof ResizeObserver)) {
- throw new TypeError('Cannot call a class as a function.');
- }
- if (!arguments.length) {
- throw new TypeError('1 argument required, but only 0 present.');
- }
- var controller = ResizeObserverController.getInstance();
- var observer = new ResizeObserverSPI(callback, controller, this);
- observers.set(this, observer);
- }
- return ResizeObserver;
- }());
- // Expose public methods of ResizeObserver.
- [
- 'observe',
- 'unobserve',
- 'disconnect'
- ].forEach(function (method) {
- ResizeObserver.prototype[method] = function () {
- var _a;
- return (_a = observers.get(this))[method].apply(_a, arguments);
- };
- });
- var index = (function () {
- // Export existing implementation if available.
- if (typeof global$1.ResizeObserver !== 'undefined') {
- return global$1.ResizeObserver;
- }
- return ResizeObserver;
- })();
- /* harmony default export */ __webpack_exports__["default"] = (index);
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
- /***/ }),
- /***/ "./node_modules/shallow-equal/arrays/index.js":
- /*!****************************************************!*\
- !*** ./node_modules/shallow-equal/arrays/index.js ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- function shallowEqualArrays(arrA, arrB) {
- if (arrA === arrB) {
- return true;
- }
- if (!arrA || !arrB) {
- return false;
- }
- var len = arrA.length;
- if (arrB.length !== len) {
- return false;
- }
- for (var i = 0; i < len; i++) {
- if (arrA[i] !== arrB[i]) {
- return false;
- }
- }
- return true;
- }
- module.exports = shallowEqualArrays;
- /***/ }),
- /***/ "./node_modules/shallowequal/index.js":
- /*!********************************************!*\
- !*** ./node_modules/shallowequal/index.js ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- //
- module.exports = function shallowEqual(objA, objB, compare, compareContext) {
- var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
- if (ret !== void 0) {
- return !!ret;
- }
- if (objA === objB) {
- return true;
- }
- if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
- return false;
- }
- var keysA = Object.keys(objA);
- var keysB = Object.keys(objB);
- if (keysA.length !== keysB.length) {
- return false;
- }
- var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
- // Test for A's keys different from B.
- for (var idx = 0; idx < keysA.length; idx++) {
- var key = keysA[idx];
- if (!bHasOwnProperty(key)) {
- return false;
- }
- var valueA = objA[key];
- var valueB = objB[key];
- ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
- if (ret === false || (ret === void 0 && valueA !== valueB)) {
- return false;
- }
- }
- return true;
- };
- /***/ }),
- /***/ "./node_modules/string-convert/camel2hyphen.js":
- /*!*****************************************************!*\
- !*** ./node_modules/string-convert/camel2hyphen.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var camel2hyphen = function (str) {
- return str
- .replace(/[A-Z]/g, function (match) {
- return '-' + match.toLowerCase();
- })
- .toLowerCase();
- };
- module.exports = camel2hyphen;
- /***/ }),
- /***/ "./node_modules/tinycolor2/tinycolor.js":
- /*!**********************************************!*\
- !*** ./node_modules/tinycolor2/tinycolor.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2
- // https://github.com/bgrins/TinyColor
- // Brian Grinstead, MIT License
- (function(Math) {
- var trimLeft = /^\s+/,
- trimRight = /\s+$/,
- tinyCounter = 0,
- mathRound = Math.round,
- mathMin = Math.min,
- mathMax = Math.max,
- mathRandom = Math.random;
- function tinycolor (color, opts) {
- color = (color) ? color : '';
- opts = opts || { };
- // If input is already a tinycolor, return itself
- if (color instanceof tinycolor) {
- return color;
- }
- // If we are called as a function, call using new instead
- if (!(this instanceof tinycolor)) {
- return new tinycolor(color, opts);
- }
- var rgb = inputToRGB(color);
- this._originalInput = color,
- this._r = rgb.r,
- this._g = rgb.g,
- this._b = rgb.b,
- this._a = rgb.a,
- this._roundA = mathRound(100*this._a) / 100,
- this._format = opts.format || rgb.format;
- this._gradientType = opts.gradientType;
- // Don't let the range of [0,255] come back in [0,1].
- // Potentially lose a little bit of precision here, but will fix issues where
- // .5 gets interpreted as half of the total, instead of half of 1
- // If it was supposed to be 128, this was already taken care of by `inputToRgb`
- if (this._r < 1) { this._r = mathRound(this._r); }
- if (this._g < 1) { this._g = mathRound(this._g); }
- if (this._b < 1) { this._b = mathRound(this._b); }
- this._ok = rgb.ok;
- this._tc_id = tinyCounter++;
- }
- tinycolor.prototype = {
- isDark: function() {
- return this.getBrightness() < 128;
- },
- isLight: function() {
- return !this.isDark();
- },
- isValid: function() {
- return this._ok;
- },
- getOriginalInput: function() {
- return this._originalInput;
- },
- getFormat: function() {
- return this._format;
- },
- getAlpha: function() {
- return this._a;
- },
- getBrightness: function() {
- //http://www.w3.org/TR/AERT#color-contrast
- var rgb = this.toRgb();
- return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
- },
- getLuminance: function() {
- //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
- var rgb = this.toRgb();
- var RsRGB, GsRGB, BsRGB, R, G, B;
- RsRGB = rgb.r/255;
- GsRGB = rgb.g/255;
- BsRGB = rgb.b/255;
- if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);}
- if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);}
- if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);}
- return (0.2126 * R) + (0.7152 * G) + (0.0722 * B);
- },
- setAlpha: function(value) {
- this._a = boundAlpha(value);
- this._roundA = mathRound(100*this._a) / 100;
- return this;
- },
- toHsv: function() {
- var hsv = rgbToHsv(this._r, this._g, this._b);
- return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };
- },
- toHsvString: function() {
- var hsv = rgbToHsv(this._r, this._g, this._b);
- var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100);
- return (this._a == 1) ?
- "hsv(" + h + ", " + s + "%, " + v + "%)" :
- "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")";
- },
- toHsl: function() {
- var hsl = rgbToHsl(this._r, this._g, this._b);
- return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };
- },
- toHslString: function() {
- var hsl = rgbToHsl(this._r, this._g, this._b);
- var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100);
- return (this._a == 1) ?
- "hsl(" + h + ", " + s + "%, " + l + "%)" :
- "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")";
- },
- toHex: function(allow3Char) {
- return rgbToHex(this._r, this._g, this._b, allow3Char);
- },
- toHexString: function(allow3Char) {
- return '#' + this.toHex(allow3Char);
- },
- toHex8: function(allow4Char) {
- return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
- },
- toHex8String: function(allow4Char) {
- return '#' + this.toHex8(allow4Char);
- },
- toRgb: function() {
- return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a };
- },
- toRgbString: function() {
- return (this._a == 1) ?
- "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" :
- "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")";
- },
- toPercentageRgb: function() {
- return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a };
- },
- toPercentageRgbString: function() {
- return (this._a == 1) ?
- "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" :
- "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")";
- },
- toName: function() {
- if (this._a === 0) {
- return "transparent";
- }
- if (this._a < 1) {
- return false;
- }
- return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;
- },
- toFilter: function(secondColor) {
- var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a);
- var secondHex8String = hex8String;
- var gradientType = this._gradientType ? "GradientType = 1, " : "";
- if (secondColor) {
- var s = tinycolor(secondColor);
- secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a);
- }
- return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")";
- },
- toString: function(format) {
- var formatSet = !!format;
- format = format || this._format;
- var formattedString = false;
- var hasAlpha = this._a < 1 && this._a >= 0;
- var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");
- if (needsAlphaFormat) {
- // Special case for "transparent", all other non-alpha formats
- // will return rgba when there is transparency.
- if (format === "name" && this._a === 0) {
- return this.toName();
- }
- return this.toRgbString();
- }
- if (format === "rgb") {
- formattedString = this.toRgbString();
- }
- if (format === "prgb") {
- formattedString = this.toPercentageRgbString();
- }
- if (format === "hex" || format === "hex6") {
- formattedString = this.toHexString();
- }
- if (format === "hex3") {
- formattedString = this.toHexString(true);
- }
- if (format === "hex4") {
- formattedString = this.toHex8String(true);
- }
- if (format === "hex8") {
- formattedString = this.toHex8String();
- }
- if (format === "name") {
- formattedString = this.toName();
- }
- if (format === "hsl") {
- formattedString = this.toHslString();
- }
- if (format === "hsv") {
- formattedString = this.toHsvString();
- }
- return formattedString || this.toHexString();
- },
- clone: function() {
- return tinycolor(this.toString());
- },
- _applyModification: function(fn, args) {
- var color = fn.apply(null, [this].concat([].slice.call(args)));
- this._r = color._r;
- this._g = color._g;
- this._b = color._b;
- this.setAlpha(color._a);
- return this;
- },
- lighten: function() {
- return this._applyModification(lighten, arguments);
- },
- brighten: function() {
- return this._applyModification(brighten, arguments);
- },
- darken: function() {
- return this._applyModification(darken, arguments);
- },
- desaturate: function() {
- return this._applyModification(desaturate, arguments);
- },
- saturate: function() {
- return this._applyModification(saturate, arguments);
- },
- greyscale: function() {
- return this._applyModification(greyscale, arguments);
- },
- spin: function() {
- return this._applyModification(spin, arguments);
- },
- _applyCombination: function(fn, args) {
- return fn.apply(null, [this].concat([].slice.call(args)));
- },
- analogous: function() {
- return this._applyCombination(analogous, arguments);
- },
- complement: function() {
- return this._applyCombination(complement, arguments);
- },
- monochromatic: function() {
- return this._applyCombination(monochromatic, arguments);
- },
- splitcomplement: function() {
- return this._applyCombination(splitcomplement, arguments);
- },
- triad: function() {
- return this._applyCombination(triad, arguments);
- },
- tetrad: function() {
- return this._applyCombination(tetrad, arguments);
- }
- };
- // If input is an object, force 1 into "1.0" to handle ratios properly
- // String input requires "1.0" as input, so 1 will be treated as 1
- tinycolor.fromRatio = function(color, opts) {
- if (typeof color == "object") {
- var newColor = {};
- for (var i in color) {
- if (color.hasOwnProperty(i)) {
- if (i === "a") {
- newColor[i] = color[i];
- }
- else {
- newColor[i] = convertToPercentage(color[i]);
- }
- }
- }
- color = newColor;
- }
- return tinycolor(color, opts);
- };
- // Given a string or object, convert that input to RGB
- // Possible string inputs:
- //
- // "red"
- // "#f00" or "f00"
- // "#ff0000" or "ff0000"
- // "#ff000000" or "ff000000"
- // "rgb 255 0 0" or "rgb (255, 0, 0)"
- // "rgb 1.0 0 0" or "rgb (1, 0, 0)"
- // "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
- // "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
- // "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
- // "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
- // "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
- //
- function inputToRGB(color) {
- var rgb = { r: 0, g: 0, b: 0 };
- var a = 1;
- var s = null;
- var v = null;
- var l = null;
- var ok = false;
- var format = false;
- if (typeof color == "string") {
- color = stringInputToObject(color);
- }
- if (typeof color == "object") {
- if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
- rgb = rgbToRgb(color.r, color.g, color.b);
- ok = true;
- format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
- }
- else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
- s = convertToPercentage(color.s);
- v = convertToPercentage(color.v);
- rgb = hsvToRgb(color.h, s, v);
- ok = true;
- format = "hsv";
- }
- else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
- s = convertToPercentage(color.s);
- l = convertToPercentage(color.l);
- rgb = hslToRgb(color.h, s, l);
- ok = true;
- format = "hsl";
- }
- if (color.hasOwnProperty("a")) {
- a = color.a;
- }
- }
- a = boundAlpha(a);
- return {
- ok: ok,
- format: color.format || format,
- r: mathMin(255, mathMax(rgb.r, 0)),
- g: mathMin(255, mathMax(rgb.g, 0)),
- b: mathMin(255, mathMax(rgb.b, 0)),
- a: a
- };
- }
- // Conversion Functions
- // --------------------
- // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
- // <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
- // `rgbToRgb`
- // Handle bounds / percentage checking to conform to CSS color spec
- // <http://www.w3.org/TR/css3-color/>
- // *Assumes:* r, g, b in [0, 255] or [0, 1]
- // *Returns:* { r, g, b } in [0, 255]
- function rgbToRgb(r, g, b){
- return {
- r: bound01(r, 255) * 255,
- g: bound01(g, 255) * 255,
- b: bound01(b, 255) * 255
- };
- }
- // `rgbToHsl`
- // Converts an RGB color value to HSL.
- // *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
- // *Returns:* { h, s, l } in [0,1]
- function rgbToHsl(r, g, b) {
- r = bound01(r, 255);
- g = bound01(g, 255);
- b = bound01(b, 255);
- var max = mathMax(r, g, b), min = mathMin(r, g, b);
- var h, s, l = (max + min) / 2;
- if(max == min) {
- h = s = 0; // achromatic
- }
- else {
- var d = max - min;
- s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
- switch(max) {
- case r: h = (g - b) / d + (g < b ? 6 : 0); break;
- case g: h = (b - r) / d + 2; break;
- case b: h = (r - g) / d + 4; break;
- }
- h /= 6;
- }
- return { h: h, s: s, l: l };
- }
- // `hslToRgb`
- // Converts an HSL color value to RGB.
- // *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
- // *Returns:* { r, g, b } in the set [0, 255]
- function hslToRgb(h, s, l) {
- var r, g, b;
- h = bound01(h, 360);
- s = bound01(s, 100);
- l = bound01(l, 100);
- function hue2rgb(p, q, t) {
- if(t < 0) t += 1;
- if(t > 1) t -= 1;
- if(t < 1/6) return p + (q - p) * 6 * t;
- if(t < 1/2) return q;
- if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;
- return p;
- }
- if(s === 0) {
- r = g = b = l; // achromatic
- }
- else {
- var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
- var p = 2 * l - q;
- r = hue2rgb(p, q, h + 1/3);
- g = hue2rgb(p, q, h);
- b = hue2rgb(p, q, h - 1/3);
- }
- return { r: r * 255, g: g * 255, b: b * 255 };
- }
- // `rgbToHsv`
- // Converts an RGB color value to HSV
- // *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
- // *Returns:* { h, s, v } in [0,1]
- function rgbToHsv(r, g, b) {
- r = bound01(r, 255);
- g = bound01(g, 255);
- b = bound01(b, 255);
- var max = mathMax(r, g, b), min = mathMin(r, g, b);
- var h, s, v = max;
- var d = max - min;
- s = max === 0 ? 0 : d / max;
- if(max == min) {
- h = 0; // achromatic
- }
- else {
- switch(max) {
- case r: h = (g - b) / d + (g < b ? 6 : 0); break;
- case g: h = (b - r) / d + 2; break;
- case b: h = (r - g) / d + 4; break;
- }
- h /= 6;
- }
- return { h: h, s: s, v: v };
- }
- // `hsvToRgb`
- // Converts an HSV color value to RGB.
- // *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
- // *Returns:* { r, g, b } in the set [0, 255]
- function hsvToRgb(h, s, v) {
- h = bound01(h, 360) * 6;
- s = bound01(s, 100);
- v = bound01(v, 100);
- var i = Math.floor(h),
- f = h - i,
- p = v * (1 - s),
- q = v * (1 - f * s),
- t = v * (1 - (1 - f) * s),
- mod = i % 6,
- r = [v, q, p, p, t, v][mod],
- g = [t, v, v, q, p, p][mod],
- b = [p, p, t, v, v, q][mod];
- return { r: r * 255, g: g * 255, b: b * 255 };
- }
- // `rgbToHex`
- // Converts an RGB color to hex
- // Assumes r, g, and b are contained in the set [0, 255]
- // Returns a 3 or 6 character hex
- function rgbToHex(r, g, b, allow3Char) {
- var hex = [
- pad2(mathRound(r).toString(16)),
- pad2(mathRound(g).toString(16)),
- pad2(mathRound(b).toString(16))
- ];
- // Return a 3 character hex if possible
- if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {
- return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
- }
- return hex.join("");
- }
- // `rgbaToHex`
- // Converts an RGBA color plus alpha transparency to hex
- // Assumes r, g, b are contained in the set [0, 255] and
- // a in [0, 1]. Returns a 4 or 8 character rgba hex
- function rgbaToHex(r, g, b, a, allow4Char) {
- var hex = [
- pad2(mathRound(r).toString(16)),
- pad2(mathRound(g).toString(16)),
- pad2(mathRound(b).toString(16)),
- pad2(convertDecimalToHex(a))
- ];
- // Return a 4 character hex if possible
- if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {
- return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
- }
- return hex.join("");
- }
- // `rgbaToArgbHex`
- // Converts an RGBA color to an ARGB Hex8 string
- // Rarely used, but required for "toFilter()"
- function rgbaToArgbHex(r, g, b, a) {
- var hex = [
- pad2(convertDecimalToHex(a)),
- pad2(mathRound(r).toString(16)),
- pad2(mathRound(g).toString(16)),
- pad2(mathRound(b).toString(16))
- ];
- return hex.join("");
- }
- // `equals`
- // Can be called with any tinycolor input
- tinycolor.equals = function (color1, color2) {
- if (!color1 || !color2) { return false; }
- return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();
- };
- tinycolor.random = function() {
- return tinycolor.fromRatio({
- r: mathRandom(),
- g: mathRandom(),
- b: mathRandom()
- });
- };
- // Modification Functions
- // ----------------------
- // Thanks to less.js for some of the basics here
- // <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>
- function desaturate(color, amount) {
- amount = (amount === 0) ? 0 : (amount || 10);
- var hsl = tinycolor(color).toHsl();
- hsl.s -= amount / 100;
- hsl.s = clamp01(hsl.s);
- return tinycolor(hsl);
- }
- function saturate(color, amount) {
- amount = (amount === 0) ? 0 : (amount || 10);
- var hsl = tinycolor(color).toHsl();
- hsl.s += amount / 100;
- hsl.s = clamp01(hsl.s);
- return tinycolor(hsl);
- }
- function greyscale(color) {
- return tinycolor(color).desaturate(100);
- }
- function lighten (color, amount) {
- amount = (amount === 0) ? 0 : (amount || 10);
- var hsl = tinycolor(color).toHsl();
- hsl.l += amount / 100;
- hsl.l = clamp01(hsl.l);
- return tinycolor(hsl);
- }
- function brighten(color, amount) {
- amount = (amount === 0) ? 0 : (amount || 10);
- var rgb = tinycolor(color).toRgb();
- rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100))));
- rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100))));
- rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100))));
- return tinycolor(rgb);
- }
- function darken (color, amount) {
- amount = (amount === 0) ? 0 : (amount || 10);
- var hsl = tinycolor(color).toHsl();
- hsl.l -= amount / 100;
- hsl.l = clamp01(hsl.l);
- return tinycolor(hsl);
- }
- // Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
- // Values outside of this range will be wrapped into this range.
- function spin(color, amount) {
- var hsl = tinycolor(color).toHsl();
- var hue = (hsl.h + amount) % 360;
- hsl.h = hue < 0 ? 360 + hue : hue;
- return tinycolor(hsl);
- }
- // Combination Functions
- // ---------------------
- // Thanks to jQuery xColor for some of the ideas behind these
- // <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>
- function complement(color) {
- var hsl = tinycolor(color).toHsl();
- hsl.h = (hsl.h + 180) % 360;
- return tinycolor(hsl);
- }
- function triad(color) {
- var hsl = tinycolor(color).toHsl();
- var h = hsl.h;
- return [
- tinycolor(color),
- tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }),
- tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l })
- ];
- }
- function tetrad(color) {
- var hsl = tinycolor(color).toHsl();
- var h = hsl.h;
- return [
- tinycolor(color),
- tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }),
- tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }),
- tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l })
- ];
- }
- function splitcomplement(color) {
- var hsl = tinycolor(color).toHsl();
- var h = hsl.h;
- return [
- tinycolor(color),
- tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}),
- tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l})
- ];
- }
- function analogous(color, results, slices) {
- results = results || 6;
- slices = slices || 30;
- var hsl = tinycolor(color).toHsl();
- var part = 360 / slices;
- var ret = [tinycolor(color)];
- for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) {
- hsl.h = (hsl.h + part) % 360;
- ret.push(tinycolor(hsl));
- }
- return ret;
- }
- function monochromatic(color, results) {
- results = results || 6;
- var hsv = tinycolor(color).toHsv();
- var h = hsv.h, s = hsv.s, v = hsv.v;
- var ret = [];
- var modification = 1 / results;
- while (results--) {
- ret.push(tinycolor({ h: h, s: s, v: v}));
- v = (v + modification) % 1;
- }
- return ret;
- }
- // Utility Functions
- // ---------------------
- tinycolor.mix = function(color1, color2, amount) {
- amount = (amount === 0) ? 0 : (amount || 50);
- var rgb1 = tinycolor(color1).toRgb();
- var rgb2 = tinycolor(color2).toRgb();
- var p = amount / 100;
- var rgba = {
- r: ((rgb2.r - rgb1.r) * p) + rgb1.r,
- g: ((rgb2.g - rgb1.g) * p) + rgb1.g,
- b: ((rgb2.b - rgb1.b) * p) + rgb1.b,
- a: ((rgb2.a - rgb1.a) * p) + rgb1.a
- };
- return tinycolor(rgba);
- };
- // Readability Functions
- // ---------------------
- // <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)
- // `contrast`
- // Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
- tinycolor.readability = function(color1, color2) {
- var c1 = tinycolor(color1);
- var c2 = tinycolor(color2);
- return (Math.max(c1.getLuminance(),c2.getLuminance())+0.05) / (Math.min(c1.getLuminance(),c2.getLuminance())+0.05);
- };
- // `isReadable`
- // Ensure that foreground and background color combinations meet WCAG2 guidelines.
- // The third argument is an optional Object.
- // the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
- // the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
- // If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
- // *Example*
- // tinycolor.isReadable("#000", "#111") => false
- // tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false
- tinycolor.isReadable = function(color1, color2, wcag2) {
- var readability = tinycolor.readability(color1, color2);
- var wcag2Parms, out;
- out = false;
- wcag2Parms = validateWCAG2Parms(wcag2);
- switch (wcag2Parms.level + wcag2Parms.size) {
- case "AAsmall":
- case "AAAlarge":
- out = readability >= 4.5;
- break;
- case "AAlarge":
- out = readability >= 3;
- break;
- case "AAAsmall":
- out = readability >= 7;
- break;
- }
- return out;
- };
- // `mostReadable`
- // Given a base color and a list of possible foreground or background
- // colors for that base, returns the most readable color.
- // Optionally returns Black or White if the most readable color is unreadable.
- // *Example*
- // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"
- // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff"
- // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"
- // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"
- tinycolor.mostReadable = function(baseColor, colorList, args) {
- var bestColor = null;
- var bestScore = 0;
- var readability;
- var includeFallbackColors, level, size ;
- args = args || {};
- includeFallbackColors = args.includeFallbackColors ;
- level = args.level;
- size = args.size;
- for (var i= 0; i < colorList.length ; i++) {
- readability = tinycolor.readability(baseColor, colorList[i]);
- if (readability > bestScore) {
- bestScore = readability;
- bestColor = tinycolor(colorList[i]);
- }
- }
- if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) {
- return bestColor;
- }
- else {
- args.includeFallbackColors=false;
- return tinycolor.mostReadable(baseColor,["#fff", "#000"],args);
- }
- };
- // Big List of Colors
- // ------------------
- // <http://www.w3.org/TR/css3-color/#svg-color>
- var names = tinycolor.names = {
- aliceblue: "f0f8ff",
- antiquewhite: "faebd7",
- aqua: "0ff",
- aquamarine: "7fffd4",
- azure: "f0ffff",
- beige: "f5f5dc",
- bisque: "ffe4c4",
- black: "000",
- blanchedalmond: "ffebcd",
- blue: "00f",
- blueviolet: "8a2be2",
- brown: "a52a2a",
- burlywood: "deb887",
- burntsienna: "ea7e5d",
- cadetblue: "5f9ea0",
- chartreuse: "7fff00",
- chocolate: "d2691e",
- coral: "ff7f50",
- cornflowerblue: "6495ed",
- cornsilk: "fff8dc",
- crimson: "dc143c",
- cyan: "0ff",
- darkblue: "00008b",
- darkcyan: "008b8b",
- darkgoldenrod: "b8860b",
- darkgray: "a9a9a9",
- darkgreen: "006400",
- darkgrey: "a9a9a9",
- darkkhaki: "bdb76b",
- darkmagenta: "8b008b",
- darkolivegreen: "556b2f",
- darkorange: "ff8c00",
- darkorchid: "9932cc",
- darkred: "8b0000",
- darksalmon: "e9967a",
- darkseagreen: "8fbc8f",
- darkslateblue: "483d8b",
- darkslategray: "2f4f4f",
- darkslategrey: "2f4f4f",
- darkturquoise: "00ced1",
- darkviolet: "9400d3",
- deeppink: "ff1493",
- deepskyblue: "00bfff",
- dimgray: "696969",
- dimgrey: "696969",
- dodgerblue: "1e90ff",
- firebrick: "b22222",
- floralwhite: "fffaf0",
- forestgreen: "228b22",
- fuchsia: "f0f",
- gainsboro: "dcdcdc",
- ghostwhite: "f8f8ff",
- gold: "ffd700",
- goldenrod: "daa520",
- gray: "808080",
- green: "008000",
- greenyellow: "adff2f",
- grey: "808080",
- honeydew: "f0fff0",
- hotpink: "ff69b4",
- indianred: "cd5c5c",
- indigo: "4b0082",
- ivory: "fffff0",
- khaki: "f0e68c",
- lavender: "e6e6fa",
- lavenderblush: "fff0f5",
- lawngreen: "7cfc00",
- lemonchiffon: "fffacd",
- lightblue: "add8e6",
- lightcoral: "f08080",
- lightcyan: "e0ffff",
- lightgoldenrodyellow: "fafad2",
- lightgray: "d3d3d3",
- lightgreen: "90ee90",
- lightgrey: "d3d3d3",
- lightpink: "ffb6c1",
- lightsalmon: "ffa07a",
- lightseagreen: "20b2aa",
- lightskyblue: "87cefa",
- lightslategray: "789",
- lightslategrey: "789",
- lightsteelblue: "b0c4de",
- lightyellow: "ffffe0",
- lime: "0f0",
- limegreen: "32cd32",
- linen: "faf0e6",
- magenta: "f0f",
- maroon: "800000",
- mediumaquamarine: "66cdaa",
- mediumblue: "0000cd",
- mediumorchid: "ba55d3",
- mediumpurple: "9370db",
- mediumseagreen: "3cb371",
- mediumslateblue: "7b68ee",
- mediumspringgreen: "00fa9a",
- mediumturquoise: "48d1cc",
- mediumvioletred: "c71585",
- midnightblue: "191970",
- mintcream: "f5fffa",
- mistyrose: "ffe4e1",
- moccasin: "ffe4b5",
- navajowhite: "ffdead",
- navy: "000080",
- oldlace: "fdf5e6",
- olive: "808000",
- olivedrab: "6b8e23",
- orange: "ffa500",
- orangered: "ff4500",
- orchid: "da70d6",
- palegoldenrod: "eee8aa",
- palegreen: "98fb98",
- paleturquoise: "afeeee",
- palevioletred: "db7093",
- papayawhip: "ffefd5",
- peachpuff: "ffdab9",
- peru: "cd853f",
- pink: "ffc0cb",
- plum: "dda0dd",
- powderblue: "b0e0e6",
- purple: "800080",
- rebeccapurple: "663399",
- red: "f00",
- rosybrown: "bc8f8f",
- royalblue: "4169e1",
- saddlebrown: "8b4513",
- salmon: "fa8072",
- sandybrown: "f4a460",
- seagreen: "2e8b57",
- seashell: "fff5ee",
- sienna: "a0522d",
- silver: "c0c0c0",
- skyblue: "87ceeb",
- slateblue: "6a5acd",
- slategray: "708090",
- slategrey: "708090",
- snow: "fffafa",
- springgreen: "00ff7f",
- steelblue: "4682b4",
- tan: "d2b48c",
- teal: "008080",
- thistle: "d8bfd8",
- tomato: "ff6347",
- turquoise: "40e0d0",
- violet: "ee82ee",
- wheat: "f5deb3",
- white: "fff",
- whitesmoke: "f5f5f5",
- yellow: "ff0",
- yellowgreen: "9acd32"
- };
- // Make it easy to access colors via `hexNames[hex]`
- var hexNames = tinycolor.hexNames = flip(names);
- // Utilities
- // ---------
- // `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`
- function flip(o) {
- var flipped = { };
- for (var i in o) {
- if (o.hasOwnProperty(i)) {
- flipped[o[i]] = i;
- }
- }
- return flipped;
- }
- // Return a valid alpha value [0,1] with all invalid values being set to 1
- function boundAlpha(a) {
- a = parseFloat(a);
- if (isNaN(a) || a < 0 || a > 1) {
- a = 1;
- }
- return a;
- }
- // Take input from [0, n] and return it as [0, 1]
- function bound01(n, max) {
- if (isOnePointZero(n)) { n = "100%"; }
- var processPercent = isPercentage(n);
- n = mathMin(max, mathMax(0, parseFloat(n)));
- // Automatically convert percentage into number
- if (processPercent) {
- n = parseInt(n * max, 10) / 100;
- }
- // Handle floating point rounding errors
- if ((Math.abs(n - max) < 0.000001)) {
- return 1;
- }
- // Convert into [0, 1] range if it isn't already
- return (n % max) / parseFloat(max);
- }
- // Force a number between 0 and 1
- function clamp01(val) {
- return mathMin(1, mathMax(0, val));
- }
- // Parse a base-16 hex value into a base-10 integer
- function parseIntFromHex(val) {
- return parseInt(val, 16);
- }
- // Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
- // <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
- function isOnePointZero(n) {
- return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1;
- }
- // Check to see if string passed in is a percentage
- function isPercentage(n) {
- return typeof n === "string" && n.indexOf('%') != -1;
- }
- // Force a hex value to have 2 characters
- function pad2(c) {
- return c.length == 1 ? '0' + c : '' + c;
- }
- // Replace a decimal with it's percentage value
- function convertToPercentage(n) {
- if (n <= 1) {
- n = (n * 100) + "%";
- }
- return n;
- }
- // Converts a decimal to a hex value
- function convertDecimalToHex(d) {
- return Math.round(parseFloat(d) * 255).toString(16);
- }
- // Converts a hex value to a decimal
- function convertHexToDecimal(h) {
- return (parseIntFromHex(h) / 255);
- }
- var matchers = (function() {
- // <http://www.w3.org/TR/css3-values/#integers>
- var CSS_INTEGER = "[-\\+]?\\d+%?";
- // <http://www.w3.org/TR/css3-values/#number-value>
- var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
- // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
- // Actual matching.
- // Parentheses and commas are optional, but not required.
- // Whitespace can take the place of commas or opening paren
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
- return {
- CSS_UNIT: new RegExp(CSS_UNIT),
- rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
- rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
- hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
- hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
- hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
- hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
- hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
- hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
- hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
- hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
- };
- })();
- // `isValidCSSUnit`
- // Take in a single string / number and check to see if it looks like a CSS unit
- // (see `matchers` above for definition).
- function isValidCSSUnit(color) {
- return !!matchers.CSS_UNIT.exec(color);
- }
- // `stringInputToObject`
- // Permissive string parsing. Take in a number of formats, and output an object
- // based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
- function stringInputToObject(color) {
- color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();
- var named = false;
- if (names[color]) {
- color = names[color];
- named = true;
- }
- else if (color == 'transparent') {
- return { r: 0, g: 0, b: 0, a: 0, format: "name" };
- }
- // Try to match string input using regular expressions.
- // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
- // Just return an object and let the conversion functions handle that.
- // This way the result will be the same whether the tinycolor is initialized with string or object.
- var match;
- if ((match = matchers.rgb.exec(color))) {
- return { r: match[1], g: match[2], b: match[3] };
- }
- if ((match = matchers.rgba.exec(color))) {
- return { r: match[1], g: match[2], b: match[3], a: match[4] };
- }
- if ((match = matchers.hsl.exec(color))) {
- return { h: match[1], s: match[2], l: match[3] };
- }
- if ((match = matchers.hsla.exec(color))) {
- return { h: match[1], s: match[2], l: match[3], a: match[4] };
- }
- if ((match = matchers.hsv.exec(color))) {
- return { h: match[1], s: match[2], v: match[3] };
- }
- if ((match = matchers.hsva.exec(color))) {
- return { h: match[1], s: match[2], v: match[3], a: match[4] };
- }
- if ((match = matchers.hex8.exec(color))) {
- return {
- r: parseIntFromHex(match[1]),
- g: parseIntFromHex(match[2]),
- b: parseIntFromHex(match[3]),
- a: convertHexToDecimal(match[4]),
- format: named ? "name" : "hex8"
- };
- }
- if ((match = matchers.hex6.exec(color))) {
- return {
- r: parseIntFromHex(match[1]),
- g: parseIntFromHex(match[2]),
- b: parseIntFromHex(match[3]),
- format: named ? "name" : "hex"
- };
- }
- if ((match = matchers.hex4.exec(color))) {
- return {
- r: parseIntFromHex(match[1] + '' + match[1]),
- g: parseIntFromHex(match[2] + '' + match[2]),
- b: parseIntFromHex(match[3] + '' + match[3]),
- a: convertHexToDecimal(match[4] + '' + match[4]),
- format: named ? "name" : "hex8"
- };
- }
- if ((match = matchers.hex3.exec(color))) {
- return {
- r: parseIntFromHex(match[1] + '' + match[1]),
- g: parseIntFromHex(match[2] + '' + match[2]),
- b: parseIntFromHex(match[3] + '' + match[3]),
- format: named ? "name" : "hex"
- };
- }
- return false;
- }
- function validateWCAG2Parms(parms) {
- // return valid WCAG2 parms for isReadable.
- // If input parms are invalid, return {"level":"AA", "size":"small"}
- var level, size;
- parms = parms || {"level":"AA", "size":"small"};
- level = (parms.level || "AA").toUpperCase();
- size = (parms.size || "small").toLowerCase();
- if (level !== "AA" && level !== "AAA") {
- level = "AA";
- }
- if (size !== "small" && size !== "large") {
- size = "small";
- }
- return {"level":level, "size":size};
- }
- // Node: Export function
- if ( true && module.exports) {
- module.exports = tinycolor;
- }
- // AMD/requirejs: Define the module
- else if (true) {
- !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- }
- // Browser: Expose to window
- else {}
- })(Math);
- /***/ }),
- /***/ "./node_modules/vue-ref/index.js":
- /*!***************************************!*\
- !*** ./node_modules/vue-ref/index.js ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = {
- install: function install(Vue) {
- var options =
- arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var directiveName = options.name || "ref";
- Vue.directive(directiveName, {
- bind: function bind(el, binding, vnode) {
- Vue.nextTick(function() {
- binding.value(vnode.componentInstance || el, vnode.key);
- });
- binding.value(vnode.componentInstance || el, vnode.key);
- },
- update: function update(el, binding, vnode, oldVnode) {
- if (oldVnode.data && oldVnode.data.directives) {
- var oldBinding = oldVnode.data.directives.find(function(directive) {
- var name = directive.name;
- return name === directiveName;
- });
- if (oldBinding && oldBinding.value !== binding.value) {
- oldBinding && oldBinding.value(null, oldVnode.key);
- binding.value(vnode.componentInstance || el, vnode.key);
- return;
- }
- }
- // Should not have this situation
- if (
- vnode.componentInstance !== oldVnode.componentInstance ||
- vnode.elm !== oldVnode.elm
- ) {
- binding.value(vnode.componentInstance || el, vnode.key);
- }
- },
- unbind: function unbind(el, binding, vnode) {
- binding.value(null, vnode.key);
- }
- });
- }
- };
- /***/ }),
- /***/ "./node_modules/warning/warning.js":
- /*!*****************************************!*\
- !*** ./node_modules/warning/warning.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * Copyright (c) 2014-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
- /**
- * Similar to invariant but only logs a warning if the condition is not met.
- * This can be used to log issues in development environments in critical
- * paths. Removing the logging code for production environments will keep the
- * same logic and follow the same code paths.
- */
- var __DEV__ = "development" !== 'production';
- var warning = function() {};
- if (__DEV__) {
- var printWarning = function printWarning(format, args) {
- var len = arguments.length;
- args = new Array(len > 1 ? len - 1 : 0);
- for (var key = 1; key < len; key++) {
- args[key - 1] = arguments[key];
- }
- var argIndex = 0;
- var message = 'Warning: ' +
- format.replace(/%s/g, function() {
- return args[argIndex++];
- });
- if (typeof console !== 'undefined') {
- console.error(message);
- }
- try {
- // --- Welcome to debugging React ---
- // This error was thrown as a convenience so that you can use this stack
- // to find the callsite that caused this warning to fire.
- throw new Error(message);
- } catch (x) {}
- }
- warning = function(condition, format, args) {
- var len = arguments.length;
- args = new Array(len > 2 ? len - 2 : 0);
- for (var key = 2; key < len; key++) {
- args[key - 2] = arguments[key];
- }
- if (format === undefined) {
- throw new Error(
- '`warning(condition, format, ...args)` requires a warning ' +
- 'message argument'
- );
- }
- if (!condition) {
- printWarning.apply(null, [format].concat(args));
- }
- };
- }
- module.exports = warning;
- /***/ }),
- /***/ "./node_modules/webpack/buildin/global.js":
- /*!***********************************!*\
- !*** (webpack)/buildin/global.js ***!
- \***********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var g;
- // This works in non-strict mode
- g = (function() {
- return this;
- })();
- try {
- // This works if eval is allowed (see CSP)
- g = g || new Function("return this")();
- } catch (e) {
- // This works if the window reference is available
- if (typeof window === "object") g = window;
- }
- // g can still be undefined, but nothing to do about it...
- // We return undefined, instead of nothing here, so it's
- // easier to handle this case. if(!global) { ...}
- module.exports = g;
- /***/ }),
- /***/ "./node_modules/webpack/buildin/module.js":
- /*!***********************************!*\
- !*** (webpack)/buildin/module.js ***!
- \***********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = function(module) {
- if (!module.webpackPolyfill) {
- module.deprecate = function() {};
- module.paths = [];
- // module.parent = undefined by default
- if (!module.children) module.children = [];
- Object.defineProperty(module, "loaded", {
- enumerable: true,
- get: function() {
- return module.l;
- }
- });
- Object.defineProperty(module, "id", {
- enumerable: true,
- get: function() {
- return module.i;
- }
- });
- module.webpackPolyfill = 1;
- }
- return module;
- };
- /***/ }),
- /***/ "./package.json":
- /*!**********************!*\
- !*** ./package.json ***!
- \**********************/
- /*! exports provided: name, version, title, description, keywords, main, module, typings, files, scripts, repository, license, bugs, homepage, peerDependencies, devDependencies, dependencies, sideEffects, default */
- /***/ (function(module) {
- module.exports = JSON.parse("{\"name\":\"ant-design-vue\",\"version\":\"1.7.5\",\"title\":\"Ant Design Vue\",\"description\":\"An enterprise-class UI design language and Vue-based implementation\",\"keywords\":[\"ant\",\"design\",\"antd\",\"vue\",\"vueComponent\",\"component\",\"components\",\"ui\",\"framework\",\"frontend\"],\"main\":\"lib/index.js\",\"module\":\"es/index.js\",\"typings\":\"types/index.d.ts\",\"files\":[\"dist\",\"lib\",\"es\",\"types\",\"scripts\"],\"scripts\":{\"dev\":\"webpack-dev-server\",\"start\":\"cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js\",\"test\":\"cross-env NODE_ENV=test jest --config .jest.js\",\"compile\":\"node antd-tools/cli/run.js compile\",\"pub\":\"node antd-tools/cli/run.js pub\",\"pub-with-ci\":\"node antd-tools/cli/run.js pub-with-ci\",\"prepublish\":\"node antd-tools/cli/run.js guard\",\"pre-publish\":\"node ./scripts/prepub\",\"prettier\":\"prettier -c --write '**/*'\",\"pretty-quick\":\"pretty-quick\",\"dist\":\"node antd-tools/cli/run.js dist\",\"lint\":\"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./components\",\"lint:site\":\"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./antdv-demo\",\"lint:docs\":\"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue,.md ./antdv-demo/docs/**/demo/**\",\"lint:style\":\"stylelint \\\"{site,components}/**/*.less\\\" --syntax less\",\"codecov\":\"codecov\",\"postinstall\":\"node scripts/postinstall || echo \\\"ignore\\\"\"},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/vueComponent/ant-design-vue.git\"},\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/vueComponent/ant-design-vue/issues\"},\"homepage\":\"https://www.antdv.com/\",\"peerDependencies\":{\"vue\":\"^2.6.0\",\"vue-template-compiler\":\"^2.6.0\"},\"devDependencies\":{\"@commitlint/cli\":\"^8.0.0\",\"@commitlint/config-conventional\":\"^8.0.0\",\"@octokit/rest\":\"^16.0.0\",\"@vue/cli-plugin-eslint\":\"^4.0.0\",\"@vue/server-test-utils\":\"1.0.0-beta.16\",\"@vue/test-utils\":\"1.0.0-beta.16\",\"acorn\":\"^7.0.0\",\"autoprefixer\":\"^9.6.0\",\"axios\":\"^0.19.0\",\"babel-cli\":\"^6.26.0\",\"babel-core\":\"^6.26.0\",\"babel-eslint\":\"^10.0.1\",\"babel-helper-vue-jsx-merge-props\":\"^2.0.3\",\"babel-jest\":\"^23.6.0\",\"babel-loader\":\"^7.1.2\",\"babel-plugin-import\":\"^1.1.1\",\"babel-plugin-inline-import-data-uri\":\"^1.0.1\",\"babel-plugin-istanbul\":\"^6.0.0\",\"babel-plugin-syntax-dynamic-import\":\"^6.18.0\",\"babel-plugin-syntax-jsx\":\"^6.18.0\",\"babel-plugin-transform-class-properties\":\"^6.24.1\",\"babel-plugin-transform-decorators\":\"^6.24.1\",\"babel-plugin-transform-decorators-legacy\":\"^1.3.4\",\"babel-plugin-transform-es3-member-expression-literals\":\"^6.22.0\",\"babel-plugin-transform-es3-property-literals\":\"^6.22.0\",\"babel-plugin-transform-object-assign\":\"^6.22.0\",\"babel-plugin-transform-object-rest-spread\":\"^6.26.0\",\"babel-plugin-transform-runtime\":\"~6.23.0\",\"babel-plugin-transform-vue-jsx\":\"^3.7.0\",\"babel-polyfill\":\"^6.26.0\",\"babel-preset-env\":\"^1.6.1\",\"case-sensitive-paths-webpack-plugin\":\"^2.1.2\",\"chalk\":\"^3.0.0\",\"cheerio\":\"^1.0.0-rc.2\",\"codecov\":\"^3.0.0\",\"colorful\":\"^2.1.0\",\"commander\":\"^4.0.0\",\"compare-versions\":\"^3.3.0\",\"cross-env\":\"^7.0.0\",\"css-loader\":\"^3.0.0\",\"deep-assign\":\"^2.0.0\",\"enquire-js\":\"^0.2.1\",\"eslint\":\"^6.8.0\",\"eslint-config-prettier\":\"^6.10.1\",\"eslint-plugin-html\":\"^6.0.0\",\"eslint-plugin-markdown\":\"^2.0.0-alpha.0\",\"eslint-plugin-vue\":\"^6.2.2\",\"fetch-jsonp\":\"^1.1.3\",\"fs-extra\":\"^8.0.0\",\"glob\":\"^7.1.2\",\"gulp\":\"^4.0.1\",\"gulp-babel\":\"^7.0.0\",\"gulp-strip-code\":\"^0.1.4\",\"html-webpack-plugin\":\"^3.2.0\",\"husky\":\"^4.0.0\",\"istanbul-instrumenter-loader\":\"^3.0.0\",\"jest\":\"^24.0.0\",\"jest-serializer-vue\":\"^2.0.0\",\"jest-transform-stub\":\"^2.0.0\",\"js-base64\":\"^3.0.0\",\"json-templater\":\"^1.2.0\",\"jsonp\":\"^0.2.1\",\"less\":\"^3.9.0\",\"less-loader\":\"^6.0.0\",\"less-plugin-npm-import\":\"^2.1.0\",\"lint-staged\":\"^10.0.0\",\"marked\":\"0.3.18\",\"merge2\":\"^1.2.1\",\"mini-css-extract-plugin\":\"^0.10.0\",\"minimist\":\"^1.2.0\",\"mkdirp\":\"^0.5.1\",\"mockdate\":\"^2.0.2\",\"nprogress\":\"^0.2.0\",\"optimize-css-assets-webpack-plugin\":\"^5.0.1\",\"postcss\":\"^7.0.6\",\"postcss-loader\":\"^3.0.0\",\"prettier\":\"^1.18.2\",\"pretty-quick\":\"^2.0.0\",\"querystring\":\"^0.2.0\",\"raw-loader\":\"^4.0.0\",\"reqwest\":\"^2.0.5\",\"rimraf\":\"^3.0.0\",\"rucksack-css\":\"^1.0.2\",\"selenium-server\":\"^3.0.1\",\"semver\":\"^7.0.0\",\"style-loader\":\"^1.0.0\",\"stylelint\":\"^13.0.0\",\"stylelint-config-prettier\":\"^8.0.0\",\"stylelint-config-standard\":\"^19.0.0\",\"terser-webpack-plugin\":\"^3.0.3\",\"through2\":\"^3.0.0\",\"url-loader\":\"^3.0.0\",\"vue\":\"^2.6.11\",\"vue-antd-md-loader\":\"^1.1.0\",\"vue-clipboard2\":\"0.3.1\",\"vue-draggable-resizable\":\"^2.1.0\",\"vue-eslint-parser\":\"^7.0.0\",\"vue-i18n\":\"^8.3.2\",\"vue-infinite-scroll\":\"^2.0.2\",\"vue-jest\":\"^2.5.0\",\"vue-loader\":\"^15.6.2\",\"vue-router\":\"^3.0.1\",\"vue-server-renderer\":\"^2.6.11\",\"vue-template-compiler\":\"^2.6.11\",\"vue-virtual-scroller\":\"^1.0.0\",\"vuex\":\"^3.1.0\",\"webpack\":\"^4.28.4\",\"webpack-cli\":\"^3.2.1\",\"webpack-dev-server\":\"^3.1.14\",\"webpack-merge\":\"^4.1.1\",\"webpackbar\":\"^4.0.0\",\"xhr-mock\":\"^2.5.1\"},\"dependencies\":{\"@ant-design/icons\":\"^2.1.1\",\"@ant-design/icons-vue\":\"^2.0.0\",\"@simonwep/pickr\":\"~1.7.0\",\"add-dom-event-listener\":\"^1.0.2\",\"array-tree-filter\":\"^2.1.0\",\"async-validator\":\"^3.0.3\",\"babel-helper-vue-jsx-merge-props\":\"^2.0.3\",\"babel-runtime\":\"6.x\",\"classnames\":\"^2.2.5\",\"component-classes\":\"^1.2.6\",\"dom-align\":\"^1.10.4\",\"dom-closest\":\"^0.2.0\",\"dom-scroll-into-view\":\"^2.0.0\",\"enquire.js\":\"^2.1.6\",\"intersperse\":\"^1.0.0\",\"is-mobile\":\"^2.2.1\",\"is-negative-zero\":\"^2.0.0\",\"ismobilejs\":\"^1.0.0\",\"json2mq\":\"^0.2.0\",\"lodash\":\"^4.17.5\",\"moment\":\"^2.21.0\",\"mutationobserver-shim\":\"^0.3.2\",\"node-emoji\":\"^1.10.0\",\"omit.js\":\"^1.0.0\",\"raf\":\"^3.4.0\",\"resize-observer-polyfill\":\"^1.5.1\",\"shallow-equal\":\"^1.0.0\",\"shallowequal\":\"^1.0.2\",\"vue-ref\":\"^2.0.0\",\"warning\":\"^4.0.0\"},\"sideEffects\":[\"site/*\",\"components/style.js\",\"components/**/style/*\",\"*.vue\",\"*.md\",\"dist/*\",\"es/**/style/*\",\"lib/**/style/*\",\"*.less\"]}");
- /***/ }),
- /***/ 0:
- /*!*********************!*\
- !*** multi ./index ***!
- \*********************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(/*! ./index */"./index.js");
- /***/ }),
- /***/ "moment":
- /*!******************************************************************************************!*\
- !*** external {"root":"moment","commonjs2":"moment","commonjs":"moment","amd":"moment"} ***!
- \******************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = __WEBPACK_EXTERNAL_MODULE_moment__;
- /***/ }),
- /***/ "vue":
- /*!******************************************************************************!*\
- !*** external {"root":"Vue","commonjs2":"vue","commonjs":"vue","amd":"vue"} ***!
- \******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = __WEBPACK_EXTERNAL_MODULE_vue__;
- /***/ })
- /******/ });
- });
- //# sourceMappingURL=antd.js.map
|