1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973 |
- (function webpackUniversalModuleDefinition(root, factory) {
- if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory(require("vue"));
- else if(typeof define === 'function' && define.amd)
- define(["vue"], factory);
- else if(typeof exports === 'object')
- exports["Vuetify"] = factory(require("vue"));
- else
- root["Vuetify"] = factory(root["Vue"]);
- })(typeof self !== 'undefined' ? self : this, function(__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 = "/dist/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts");
- /******/ })
- /************************************************************************/
- /******/ ({
-
- /***/ "./src/components/VAlert/VAlert.ts":
- /*!*****************************************!*\
- !*** ./src/components/VAlert/VAlert.ts ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_alerts_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_alerts.styl */ "./src/stylus/components/_alerts.styl");
- /* harmony import */ var _stylus_components_alerts_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_alerts_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _mixins_transitionable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/transitionable */ "./src/mixins/transitionable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- // Styles
-
- // Components
-
- // Mixins
-
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_transitionable__WEBPACK_IMPORTED_MODULE_4__["default"]).extend({
- name: 'v-alert',
- props: {
- dismissible: Boolean,
- icon: String,
- outline: Boolean,
- type: {
- type: String,
- validator: function validator(val) {
- return ['info', 'error', 'success', 'warning'].includes(val);
- }
- }
- },
- computed: {
- computedColor: function computedColor() {
- return this.type && !this.color ? this.type : this.color || 'error';
- },
- computedIcon: function computedIcon() {
- if (this.icon || !this.type) return this.icon;
- switch (this.type) {
- case 'info':
- return '$vuetify.icons.info';
- case 'error':
- return '$vuetify.icons.error';
- case 'success':
- return '$vuetify.icons.success';
- case 'warning':
- return '$vuetify.icons.warning';
- }
- }
- },
- methods: {
- genIcon: function genIcon() {
- if (!this.computedIcon) return null;
- return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], {
- 'class': 'v-alert__icon'
- }, this.computedIcon);
- },
- genDismissible: function genDismissible() {
- var _this = this;
- if (!this.dismissible) return null;
- return this.$createElement('a', {
- 'class': 'v-alert__dismissible',
- on: { click: function click() {
- _this.isActive = false;
- } }
- }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], {
- props: {
- right: true
- }
- }, '$vuetify.icons.cancel')]);
- }
- },
- render: function render(h) {
- var children = [this.genIcon(), h('div', this.$slots.default), this.genDismissible()];
- var setColor = this.outline ? this.setTextColor : this.setBackgroundColor;
- var alert = h('div', setColor(this.computedColor, {
- staticClass: 'v-alert',
- 'class': {
- 'v-alert--outline': this.outline
- },
- directives: [{
- name: 'show',
- value: this.isActive
- }],
- on: this.$listeners
- }), children);
- if (!this.transition) return alert;
- return h('transition', {
- props: {
- name: this.transition,
- origin: this.origin,
- mode: this.mode
- }
- }, [alert]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VAlert/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VAlert/index.ts ***!
- \****************************************/
- /*! exports provided: VAlert, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VAlert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VAlert */ "./src/components/VAlert/VAlert.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VAlert", function() { return _VAlert__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VAlert__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VApp/VApp.js":
- /*!*************************************!*\
- !*** ./src/components/VApp/VApp.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_app_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_app.styl */ "./src/stylus/components/_app.styl");
- /* harmony import */ var _stylus_components_app_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_app_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_app_theme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mixins/app-theme */ "./src/components/VApp/mixins/app-theme.js");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _directives_resize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../directives/resize */ "./src/directives/resize.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
- // Component level mixins
-
-
- // Directives
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-app',
- directives: {
- Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_3__["default"]
- },
- mixins: [_mixins_app_theme__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- id: {
- type: String,
- default: 'app'
- },
- dark: Boolean
- },
- computed: {
- classes: function classes() {
- return __assign({ 'application--is-rtl': this.$vuetify.rtl }, this.themeClasses);
- }
- },
- watch: {
- dark: function dark() {
- this.$vuetify.dark = this.dark;
- }
- },
- mounted: function mounted() {
- this.$vuetify.dark = this.dark;
- },
- render: function render(h) {
- var data = {
- staticClass: 'application',
- 'class': this.classes,
- attrs: { 'data-app': true },
- domProps: { id: this.id }
- };
- var wrapper = h('div', { staticClass: 'application--wrap' }, this.$slots.default);
- return h('div', data, [wrapper]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VApp/index.js":
- /*!**************************************!*\
- !*** ./src/components/VApp/index.js ***!
- \**************************************/
- /*! exports provided: VApp, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VApp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VApp */ "./src/components/VApp/VApp.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VApp", function() { return _VApp__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VApp__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VApp/mixins/app-theme.js":
- /*!*************************************************!*\
- !*** ./src/components/VApp/mixins/app-theme.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_theme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/theme */ "./src/util/theme.ts");
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- data: function data() {
- return {
- style: null
- };
- },
- computed: {
- parsedTheme: function parsedTheme() {
- return _util_theme__WEBPACK_IMPORTED_MODULE_0__["parse"](this.$vuetify.theme);
- },
- /** @return string */
- generatedStyles: function generatedStyles() {
- var theme = this.parsedTheme;
- var css;
- if (this.$vuetify.options.themeCache != null) {
- css = this.$vuetify.options.themeCache.get(theme);
- if (css != null) return css;
- }
- css = _util_theme__WEBPACK_IMPORTED_MODULE_0__["genStyles"](theme, this.$vuetify.options.customProperties);
- if (this.$vuetify.options.minifyTheme != null) {
- css = this.$vuetify.options.minifyTheme(css);
- }
- if (this.$vuetify.options.themeCache != null) {
- this.$vuetify.options.themeCache.set(theme, css);
- }
- return css;
- },
- vueMeta: function vueMeta() {
- if (this.$vuetify.theme === false) return {};
- var options = {
- cssText: this.generatedStyles,
- id: 'vuetify-theme-stylesheet',
- type: 'text/css'
- };
- if (this.$vuetify.options.cspNonce) {
- options.nonce = this.$vuetify.options.cspNonce;
- }
- return {
- style: [options]
- };
- }
- },
- // Regular vue-meta
- metaInfo: function metaInfo() {
- return this.vueMeta;
- },
- // Nuxt
- head: function head() {
- return this.vueMeta;
- },
- watch: {
- generatedStyles: function generatedStyles() {
- !this.meta && this.applyTheme();
- }
- },
- created: function created() {
- if (this.$vuetify.theme === false) return;
- if (this.$meta) {
- // Vue-meta
- // Handled by metaInfo()/nuxt()
- } else if (typeof document === 'undefined' && this.$ssrContext) {
- // SSR
- var nonce = this.$vuetify.options.cspNonce ? " nonce=\"" + this.$vuetify.options.cspNonce + "\"" : '';
- this.$ssrContext.head = this.$ssrContext.head || '';
- this.$ssrContext.head += "<style type=\"text/css\" id=\"vuetify-theme-stylesheet\"" + nonce + ">" + this.generatedStyles + "</style>";
- } else if (typeof document !== 'undefined') {
- // Client-side
- this.genStyle();
- this.applyTheme();
- }
- },
- methods: {
- applyTheme: function applyTheme() {
- if (this.style) this.style.innerHTML = this.generatedStyles;
- },
- genStyle: function genStyle() {
- var style = document.getElementById('vuetify-theme-stylesheet');
- if (!style) {
- style = document.createElement('style');
- style.type = 'text/css';
- style.id = 'vuetify-theme-stylesheet';
- if (this.$vuetify.options.cspNonce) {
- style.setAttribute('nonce', this.$vuetify.options.cspNonce);
- }
- document.head.appendChild(style);
- }
- this.style = style;
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VAutocomplete/VAutocomplete.js":
- /*!*******************************************************!*\
- !*** ./src/components/VAutocomplete/VAutocomplete.js ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_autocompletes_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_autocompletes.styl */ "./src/stylus/components/_autocompletes.styl");
- /* harmony import */ var _stylus_components_autocompletes_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_autocompletes_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VSelect/VSelect */ "./src/components/VSelect/VSelect.js");
- /* harmony import */ var _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VTextField/VTextField */ "./src/components/VTextField/VTextField.js");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Extensions
-
-
- // Utils
-
- var defaultMenuProps = __assign({}, _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["defaultMenuProps"], { offsetY: true, offsetOverflow: true, transition: false });
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
- name: 'v-autocomplete',
- props: {
- allowOverflow: {
- type: Boolean,
- default: true
- },
- browserAutocomplete: {
- type: String,
- default: 'off'
- },
- filter: {
- type: Function,
- default: function _default(item, queryText, itemText) {
- return itemText.toLocaleLowerCase().indexOf(queryText.toLocaleLowerCase()) > -1;
- }
- },
- hideNoData: Boolean,
- noFilter: Boolean,
- searchInput: {
- default: undefined
- },
- menuProps: {
- type: _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.props.menuProps.type,
- default: function _default() {
- return defaultMenuProps;
- }
- },
- autoSelectFirst: {
- type: Boolean,
- default: false
- }
- },
- data: function data(vm) {
- return {
- attrsInput: null,
- lazySearch: vm.searchInput
- };
- },
- computed: {
- classes: function classes() {
- return Object.assign({}, _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), {
- 'v-autocomplete': true,
- 'v-autocomplete--is-selecting-index': this.selectedIndex > -1
- });
- },
- computedItems: function computedItems() {
- return this.filteredItems;
- },
- selectedValues: function selectedValues() {
- var _this = this;
- return this.selectedItems.map(function (item) {
- return _this.getValue(item);
- });
- },
- hasDisplayedItems: function hasDisplayedItems() {
- var _this = this;
- return this.hideSelected ? this.filteredItems.some(function (item) {
- return !_this.hasItem(item);
- }) : this.filteredItems.length > 0;
- },
- /**
- * The range of the current input text
- *
- * @return {Number}
- */
- currentRange: function currentRange() {
- if (this.selectedItem == null) return 0;
- return this.getText(this.selectedItem).toString().length;
- },
- filteredItems: function filteredItems() {
- var _this = this;
- if (!this.isSearching || this.noFilter || this.internalSearch == null) return this.allItems;
- return this.allItems.filter(function (item) {
- return _this.filter(item, _this.internalSearch.toString(), _this.getText(item).toString());
- });
- },
- internalSearch: {
- get: function get() {
- return this.lazySearch;
- },
- set: function set(val) {
- this.lazySearch = val;
- this.$emit('update:searchInput', val);
- }
- },
- isAnyValueAllowed: function isAnyValueAllowed() {
- return false;
- },
- isDirty: function isDirty() {
- return this.searchIsDirty || this.selectedItems.length > 0;
- },
- isSearching: function isSearching() {
- if (this.multiple) return this.searchIsDirty;
- return this.searchIsDirty && this.internalSearch !== this.getText(this.selectedItem);
- },
- menuCanShow: function menuCanShow() {
- if (!this.isFocused) return false;
- return this.hasDisplayedItems || !this.hideNoData;
- },
- $_menuProps: function $_menuProps() {
- var props = _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.$_menuProps.call(this);
- props.contentClass = ("v-autocomplete__content " + (props.contentClass || '')).trim();
- return __assign({}, defaultMenuProps, props);
- },
- searchIsDirty: function searchIsDirty() {
- return this.internalSearch != null && this.internalSearch !== '';
- },
- selectedItem: function selectedItem() {
- var _this = this;
- if (this.multiple) return null;
- return this.selectedItems.find(function (i) {
- return _this.valueComparator(_this.getValue(i), _this.getValue(_this.internalValue));
- });
- },
- listData: function listData() {
- var data = _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.listData.call(this);
- Object.assign(data.props, {
- items: this.virtualizedItems,
- noFilter: this.noFilter || !this.isSearching || !this.filteredItems.length,
- searchInput: this.internalSearch
- });
- return data;
- }
- },
- watch: {
- filteredItems: function filteredItems(val) {
- this.onFilteredItemsChanged(val);
- },
- internalValue: function internalValue() {
- this.setSearch();
- },
- isFocused: function isFocused(val) {
- if (val) {
- this.$refs.input && this.$refs.input.select();
- } else {
- this.updateSelf();
- }
- },
- isMenuActive: function isMenuActive(val) {
- if (val || !this.hasSlot) return;
- this.lazySearch = null;
- },
- items: function items(val, oldVal) {
- // If we are focused, the menu
- // is not active, hide no data is enabled,
- // and items change
- // User is probably async loading
- // items, try to activate the menu
- if (!(oldVal && oldVal.length) && this.hideNoData && this.isFocused && !this.isMenuActive && val.length) this.activateMenu();
- },
- searchInput: function searchInput(val) {
- this.lazySearch = val;
- },
- internalSearch: function internalSearch(val) {
- this.onInternalSearchChanged(val);
- },
- itemText: function itemText() {
- this.updateSelf();
- }
- },
- created: function created() {
- this.setSearch();
- },
- methods: {
- onFilteredItemsChanged: function onFilteredItemsChanged(val) {
- var _this = this;
- this.setMenuIndex(-1);
- this.$nextTick(function () {
- _this.setMenuIndex(val.length > 0 && (val.length === 1 || _this.autoSelectFirst) ? 0 : -1);
- });
- },
- onInternalSearchChanged: function onInternalSearchChanged(val) {
- this.updateMenuDimensions();
- },
- updateMenuDimensions: function updateMenuDimensions() {
- if (this.isMenuActive && this.$refs.menu) {
- this.$refs.menu.updateDimensions();
- }
- },
- changeSelectedIndex: function changeSelectedIndex(keyCode) {
- // Do not allow changing of selectedIndex
- // when search is dirty
- if (this.searchIsDirty) return;
- if (![_util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].backspace, _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].left, _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].right, _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].delete].includes(keyCode)) return;
- var indexes = this.selectedItems.length - 1;
- if (keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].left) {
- this.selectedIndex = this.selectedIndex === -1 ? indexes : this.selectedIndex - 1;
- } else if (keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].right) {
- this.selectedIndex = this.selectedIndex >= indexes ? -1 : this.selectedIndex + 1;
- } else if (this.selectedIndex === -1) {
- this.selectedIndex = indexes;
- return;
- }
- var currentItem = this.selectedItems[this.selectedIndex];
- if ([_util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].backspace, _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].delete].includes(keyCode) && !this.getDisabled(currentItem)) {
- var newIndex = this.selectedIndex === indexes ? this.selectedIndex - 1 : this.selectedItems[this.selectedIndex + 1] ? this.selectedIndex : -1;
- if (newIndex === -1) {
- this.setValue(this.multiple ? [] : undefined);
- } else {
- this.selectItem(currentItem);
- }
- this.selectedIndex = newIndex;
- }
- },
- clearableCallback: function clearableCallback() {
- this.internalSearch = undefined;
- _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.clearableCallback.call(this);
- },
- genInput: function genInput() {
- var input = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genInput.call(this);
- input.data.attrs.role = 'combobox';
- input.data.domProps.value = this.internalSearch;
- return input;
- },
- genSelections: function genSelections() {
- return this.hasSlot || this.multiple ? _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genSelections.call(this) : [];
- },
- onClick: function onClick() {
- if (this.isDisabled) return;
- this.selectedIndex > -1 ? this.selectedIndex = -1 : this.onFocus();
- this.activateMenu();
- },
- onEnterDown: function onEnterDown() {
- // Avoid invoking this method
- // will cause updateSelf to
- // be called emptying search
- },
- onInput: function onInput(e) {
- if (this.selectedIndex > -1) return;
- // If typing and menu is not currently active
- if (e.target.value) {
- this.activateMenu();
- if (!this.isAnyValueAllowed) this.setMenuIndex(0);
- }
- this.mask && this.resetSelections(e.target);
- this.internalSearch = e.target.value;
- this.badInput = e.target.validity && e.target.validity.badInput;
- },
- onKeyDown: function onKeyDown(e) {
- var keyCode = e.keyCode;
- _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onKeyDown.call(this, e);
- // The ordering is important here
- // allows new value to be updated
- // and then moves the index to the
- // proper location
- this.changeSelectedIndex(keyCode);
- },
- onTabDown: function onTabDown(e) {
- _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onTabDown.call(this, e);
- this.updateSelf();
- },
- setSelectedItems: function setSelectedItems() {
- _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.setSelectedItems.call(this);
- // #4273 Don't replace if searching
- // #4403 Don't replace if focused
- if (!this.isFocused) this.setSearch();
- },
- setSearch: function setSearch() {
- var _this = this;
- // Wait for nextTick so selectedItem
- // has had time to update
- this.$nextTick(function () {
- _this.internalSearch = _this.multiple && _this.internalSearch && _this.isMenuActive ? _this.internalSearch : !_this.selectedItems.length || _this.multiple || _this.hasSlot ? null : _this.getText(_this.selectedItem);
- });
- },
- updateSelf: function updateSelf() {
- this.updateAutocomplete();
- },
- updateAutocomplete: function updateAutocomplete() {
- if (!this.searchIsDirty && !this.internalValue) return;
- if (!this.valueComparator(this.internalSearch, this.getValue(this.internalValue))) {
- this.setSearch();
- }
- },
- hasItem: function hasItem(item) {
- return this.selectedValues.indexOf(this.getValue(item)) > -1;
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VAutocomplete/index.js":
- /*!***********************************************!*\
- !*** ./src/components/VAutocomplete/index.js ***!
- \***********************************************/
- /*! exports provided: VAutocomplete, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VAutocomplete__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VAutocomplete */ "./src/components/VAutocomplete/VAutocomplete.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VAutocomplete", function() { return _VAutocomplete__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VAutocomplete__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VAvatar/VAvatar.ts":
- /*!*******************************************!*\
- !*** ./src/components/VAvatar/VAvatar.ts ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_avatars_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_avatars.styl */ "./src/stylus/components/_avatars.styl");
- /* harmony import */ var _stylus_components_avatars_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_avatars_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
- // Mixins
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
- name: 'v-avatar',
- functional: true,
- props: {
- // TODO: inherit these
- color: String,
- size: {
- type: [Number, String],
- default: 48
- },
- tile: Boolean
- },
- render: function render(h, _a) {
- var data = _a.data,
- props = _a.props,
- children = _a.children;
- data.staticClass = ("v-avatar " + (data.staticClass || '')).trim();
- if (props.tile) data.staticClass += ' v-avatar--tile';
- var size = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["convertToUnit"])(props.size);
- data.style = __assign({ height: size, width: size }, data.style);
- return h('div', _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.setBackgroundColor(props.color, data), children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VAvatar/index.ts":
- /*!*****************************************!*\
- !*** ./src/components/VAvatar/index.ts ***!
- \*****************************************/
- /*! exports provided: VAvatar, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VAvatar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VAvatar */ "./src/components/VAvatar/VAvatar.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VAvatar", function() { return _VAvatar__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VAvatar__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VBadge/VBadge.ts":
- /*!*****************************************!*\
- !*** ./src/components/VBadge/VBadge.ts ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_badges_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_badges.styl */ "./src/stylus/components/_badges.styl");
- /* harmony import */ var _stylus_components_badges_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_badges_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _mixins_positionable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/positionable */ "./src/mixins/positionable.ts");
- /* harmony import */ var _mixins_transitionable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/transitionable */ "./src/mixins/transitionable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- // Styles
-
- // Mixins
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_mixins_positionable__WEBPACK_IMPORTED_MODULE_3__["factory"])(['left', 'bottom']), _mixins_transitionable__WEBPACK_IMPORTED_MODULE_4__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-badge',
- props: {
- color: {
- type: String,
- default: 'primary'
- },
- overlap: Boolean,
- transition: {
- type: String,
- default: 'fab-transition'
- },
- value: {
- default: true
- }
- },
- computed: {
- classes: function classes() {
- return {
- 'v-badge--bottom': this.bottom,
- 'v-badge--left': this.left,
- 'v-badge--overlap': this.overlap
- };
- }
- },
- render: function render(h) {
- var badge = this.$slots.badge && [h('span', this.setBackgroundColor(this.color, {
- staticClass: 'v-badge__badge',
- attrs: this.$attrs,
- directives: [{
- name: 'show',
- value: this.isActive
- }]
- }), this.$slots.badge)];
- return h('span', {
- staticClass: 'v-badge',
- 'class': this.classes
- }, [this.$slots.default, h('transition', {
- props: {
- name: this.transition,
- origin: this.origin,
- mode: this.mode
- }
- }, badge)]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VBadge/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VBadge/index.ts ***!
- \****************************************/
- /*! exports provided: VBadge, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VBadge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VBadge */ "./src/components/VBadge/VBadge.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBadge", function() { return _VBadge__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VBadge__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VBottomNav/VBottomNav.ts":
- /*!*************************************************!*\
- !*** ./src/components/VBottomNav/VBottomNav.ts ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_bottom_navs_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_bottom-navs.styl */ "./src/stylus/components/_bottom-navs.styl");
- /* harmony import */ var _stylus_components_bottom_navs_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_bottom_navs_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/applicationable */ "./src/mixins/applicationable.ts");
- /* harmony import */ var _mixins_button_group__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/button-group */ "./src/mixins/button-group.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- // Styles
-
- // Mixins
-
-
-
-
- // Util
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__["default"])('bottom', ['height', 'value']), _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-bottom-nav',
- props: {
- active: [Number, String],
- mandatory: Boolean,
- height: {
- default: 56,
- type: [Number, String],
- validator: function validator(v) {
- return !isNaN(parseInt(v));
- }
- },
- shift: Boolean,
- value: null
- },
- computed: {
- classes: function classes() {
- return {
- 'v-bottom-nav--absolute': this.absolute,
- 'v-bottom-nav--fixed': !this.absolute && (this.app || this.fixed),
- 'v-bottom-nav--shift': this.shift,
- 'v-bottom-nav--active': this.value
- };
- },
- computedHeight: function computedHeight() {
- return parseInt(this.height);
- }
- },
- methods: {
- updateApplication: function updateApplication() {
- return !this.value ? 0 : this.computedHeight;
- },
- updateValue: function updateValue(val) {
- this.$emit('update:active', val);
- }
- },
- render: function render(h) {
- return h(_mixins_button_group__WEBPACK_IMPORTED_MODULE_2__["default"], this.setBackgroundColor(this.color, {
- staticClass: 'v-bottom-nav',
- class: this.classes,
- style: {
- height: parseInt(this.computedHeight) + "px"
- },
- props: {
- mandatory: Boolean(this.mandatory || this.active !== undefined),
- value: this.active
- },
- on: { change: this.updateValue }
- }), this.$slots.default);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VBottomNav/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VBottomNav/index.ts ***!
- \********************************************/
- /*! exports provided: VBottomNav, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VBottomNav__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VBottomNav */ "./src/components/VBottomNav/VBottomNav.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBottomNav", function() { return _VBottomNav__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VBottomNav__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VBottomSheet/VBottomSheet.js":
- /*!*****************************************************!*\
- !*** ./src/components/VBottomSheet/VBottomSheet.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_bottom_sheets_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_bottom-sheets.styl */ "./src/stylus/components/_bottom-sheets.styl");
- /* harmony import */ var _stylus_components_bottom_sheets_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_bottom_sheets_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VDialog_VDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VDialog/VDialog */ "./src/components/VDialog/VDialog.js");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-bottom-sheet',
- props: {
- disabled: Boolean,
- fullWidth: Boolean,
- hideOverlay: Boolean,
- inset: Boolean,
- lazy: Boolean,
- maxWidth: {
- type: [String, Number],
- default: 'auto'
- },
- persistent: Boolean,
- value: null
- },
- render: function render(h) {
- var activator = h('template', {
- slot: 'activator'
- }, this.$slots.activator);
- var contentClass = ['v-bottom-sheet', this.inset ? 'v-bottom-sheet--inset' : ''].join(' ');
- return h(_VDialog_VDialog__WEBPACK_IMPORTED_MODULE_1__["default"], {
- attrs: __assign({}, this.$props),
- on: __assign({}, this.$listeners),
- props: {
- contentClass: contentClass,
- noClickAnimation: true,
- transition: 'bottom-sheet-transition',
- value: this.value
- }
- }, [activator, this.$slots.default]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VBottomSheet/index.js":
- /*!**********************************************!*\
- !*** ./src/components/VBottomSheet/index.js ***!
- \**********************************************/
- /*! exports provided: VBottomSheet, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VBottomSheet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VBottomSheet */ "./src/components/VBottomSheet/VBottomSheet.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBottomSheet", function() { return _VBottomSheet__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VBottomSheet__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VBreadcrumbs/VBreadcrumbs.ts":
- /*!*****************************************************!*\
- !*** ./src/components/VBreadcrumbs/VBreadcrumbs.ts ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_breadcrumbs_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_breadcrumbs.styl */ "./src/stylus/components/_breadcrumbs.styl");
- /* harmony import */ var _stylus_components_breadcrumbs_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_breadcrumbs_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! . */ "./src/components/VBreadcrumbs/index.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Components
-
- // Mixins
-
- // Utils
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-breadcrumbs',
- props: {
- divider: {
- type: String,
- default: '/'
- },
- items: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- large: Boolean,
- justifyCenter: Boolean,
- justifyEnd: Boolean
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-breadcrumbs--large': this.large, 'justify-center': this.justifyCenter, 'justify-end': this.justifyEnd }, this.themeClasses);
- }
- },
- mounted: function mounted() {
- if (this.justifyCenter) Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["deprecate"])('justify-center', 'class="justify-center"', this);
- if (this.justifyEnd) Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["deprecate"])('justify-end', 'class="justify-end"', this);
- if (this.$slots.default) Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["deprecate"])('default slot', ':items and scoped slot "item"', this);
- },
- methods: {
- /* @deprecated */
- genChildren /* istanbul ignore next */: function genChildren() {
- if (!this.$slots.default) return undefined;
- var children = [];
- var createDividers = false;
- for (var i = 0; i < this.$slots.default.length; i++) {
- var elm = this.$slots.default[i];
- if (!elm.componentOptions || elm.componentOptions.Ctor.options.name !== 'v-breadcrumbs-item') {
- children.push(elm);
- } else {
- if (createDividers) {
- children.push(this.genDivider());
- }
- children.push(elm);
- createDividers = true;
- }
- }
- return children;
- },
- genDivider: function genDivider() {
- return this.$createElement(___WEBPACK_IMPORTED_MODULE_1__["VBreadcrumbsDivider"], this.$slots.divider ? this.$slots.divider : this.divider);
- },
- genItems: function genItems() {
- var items = [];
- var hasSlot = !!this.$scopedSlots.item;
- var keys = [];
- for (var i = 0; i < this.items.length; i++) {
- var item = this.items[i];
- keys.push(item.text);
- if (hasSlot) items.push(this.$scopedSlots.item({ item: item }));else items.push(this.$createElement(___WEBPACK_IMPORTED_MODULE_1__["VBreadcrumbsItem"], { key: keys.join('.'), props: item }, [item.text]));
- if (i < this.items.length - 1) items.push(this.genDivider());
- }
- return items;
- }
- },
- render: function render(h) {
- var children = this.$slots.default ? this.genChildren() : this.genItems();
- return h('ul', {
- staticClass: 'v-breadcrumbs',
- 'class': this.classes
- }, children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VBreadcrumbs/VBreadcrumbsItem.ts":
- /*!*********************************************************!*\
- !*** ./src/components/VBreadcrumbs/VBreadcrumbsItem.ts ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_routable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mixins/routable */ "./src/mixins/routable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_mixins_routable__WEBPACK_IMPORTED_MODULE_0__["default"]).extend({
- name: 'v-breadcrumbs-item',
- props: {
- // In a breadcrumb, the currently
- // active item should be dimmed
- activeClass: {
- type: String,
- default: 'v-breadcrumbs__item--disabled'
- }
- },
- computed: {
- classes: function classes() {
- var _a;
- return _a = {
- 'v-breadcrumbs__item': true
- }, _a[this.activeClass] = this.disabled, _a;
- }
- },
- render: function render(h) {
- var _a = this.generateRouteLink(this.classes),
- tag = _a.tag,
- data = _a.data;
- return h('li', [h(tag, data, this.$slots.default)]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VBreadcrumbs/index.ts":
- /*!**********************************************!*\
- !*** ./src/components/VBreadcrumbs/index.ts ***!
- \**********************************************/
- /*! exports provided: VBreadcrumbs, VBreadcrumbsItem, VBreadcrumbsDivider, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VBreadcrumbsDivider", function() { return VBreadcrumbsDivider; });
- /* harmony import */ var _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VBreadcrumbs */ "./src/components/VBreadcrumbs/VBreadcrumbs.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBreadcrumbs", function() { return _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VBreadcrumbsItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VBreadcrumbsItem */ "./src/components/VBreadcrumbs/VBreadcrumbsItem.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBreadcrumbsItem", function() { return _VBreadcrumbsItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
-
-
-
- var VBreadcrumbsDivider = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["createSimpleFunctional"])('v-breadcrumbs__divider', 'li');
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VBreadcrumbs: _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_0__["default"],
- VBreadcrumbsItem: _VBreadcrumbsItem__WEBPACK_IMPORTED_MODULE_1__["default"],
- VBreadcrumbsDivider: VBreadcrumbsDivider
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VBtn/VBtn.ts":
- /*!*************************************!*\
- !*** ./src/components/VBtn/VBtn.ts ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_buttons_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_buttons.styl */ "./src/stylus/components/_buttons.styl");
- /* harmony import */ var _stylus_components_buttons_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_buttons_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _VProgressCircular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VProgressCircular */ "./src/components/VProgressCircular/index.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_groupable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/groupable */ "./src/mixins/groupable.ts");
- /* harmony import */ var _mixins_positionable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/positionable */ "./src/mixins/positionable.ts");
- /* harmony import */ var _mixins_routable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../mixins/routable */ "./src/mixins/routable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
-
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
-
- // Components
-
- // Mixins
-
-
-
-
-
-
- // Utilities
-
- var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_routable__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_positionable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_7__["default"], Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_4__["factory"])('btnToggle'), Object(_mixins_toggleable__WEBPACK_IMPORTED_MODULE_8__["factory"])('inputValue')
- /* @vue/component */
- );
- /* harmony default export */ __webpack_exports__["default"] = (baseMixins.extend().extend({
- name: 'v-btn',
- props: {
- activeClass: {
- type: String,
- default: 'v-btn--active'
- },
- block: Boolean,
- depressed: Boolean,
- fab: Boolean,
- flat: Boolean,
- icon: Boolean,
- large: Boolean,
- loading: Boolean,
- outline: Boolean,
- ripple: {
- type: [Boolean, Object],
- default: null
- },
- round: Boolean,
- small: Boolean,
- tag: {
- type: String,
- default: 'button'
- },
- type: {
- type: String,
- default: 'button'
- },
- value: null
- },
- computed: {
- classes: function classes() {
- var _a;
- return __assign((_a = { 'v-btn': true }, _a[this.activeClass] = this.isActive, _a['v-btn--absolute'] = this.absolute, _a['v-btn--block'] = this.block, _a['v-btn--bottom'] = this.bottom, _a['v-btn--disabled'] = this.disabled, _a['v-btn--flat'] = this.flat, _a['v-btn--floating'] = this.fab, _a['v-btn--fixed'] = this.fixed, _a['v-btn--icon'] = this.icon, _a['v-btn--large'] = this.large, _a['v-btn--left'] = this.left, _a['v-btn--loader'] = this.loading, _a['v-btn--outline'] = this.outline, _a['v-btn--depressed'] = this.depressed && !this.flat || this.outline, _a['v-btn--right'] = this.right, _a['v-btn--round'] = this.round, _a['v-btn--router'] = this.to, _a['v-btn--small'] = this.small, _a['v-btn--top'] = this.top, _a), this.themeClasses);
- },
- computedRipple: function computedRipple() {
- var defaultRipple = this.icon || this.fab ? { circle: true } : true;
- if (this.disabled) return false;else return this.ripple !== null ? this.ripple : defaultRipple;
- }
- },
- watch: {
- '$route': 'onRouteChange'
- },
- methods: {
- // Prevent focus to match md spec
- click: function click(e) {
- !this.fab && e.detail && this.$el.blur();
- this.$emit('click', e);
- this.btnToggle && this.toggle();
- },
- genContent: function genContent() {
- return this.$createElement('div', { 'class': 'v-btn__content' }, this.$slots.default);
- },
- genLoader: function genLoader() {
- return this.$createElement('span', {
- class: 'v-btn__loading'
- }, this.$slots.loader || [this.$createElement(_VProgressCircular__WEBPACK_IMPORTED_MODULE_2__["default"], {
- props: {
- indeterminate: true,
- size: 23,
- width: 2
- }
- })]);
- },
- onRouteChange: function onRouteChange() {
- var _this = this;
- if (!this.to || !this.$refs.link) return;
- var path = "_vnode.data.class." + this.activeClass;
- this.$nextTick(function () {
- if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["getObjectValueByPath"])(_this.$refs.link, path)) {
- _this.toggle();
- }
- });
- }
- },
- render: function render(h) {
- var setColor = !this.outline && !this.flat && !this.disabled ? this.setBackgroundColor : this.setTextColor;
- var _a = this.generateRouteLink(this.classes),
- tag = _a.tag,
- data = _a.data;
- var children = [this.genContent(), this.loading && this.genLoader()];
- if (tag === 'button') data.attrs.type = this.type;
- data.attrs.value = ['string', 'number'].includes(_typeof(this.value)) ? this.value : JSON.stringify(this.value);
- if (this.btnToggle) {
- data.ref = 'link';
- }
- return h(tag, setColor(this.color, data), children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VBtn/index.ts":
- /*!**************************************!*\
- !*** ./src/components/VBtn/index.ts ***!
- \**************************************/
- /*! exports provided: VBtn, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VBtn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VBtn */ "./src/components/VBtn/VBtn.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBtn", function() { return _VBtn__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VBtn__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VBtnToggle/VBtnToggle.ts":
- /*!*************************************************!*\
- !*** ./src/components/VBtnToggle/VBtnToggle.ts ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_button_toggle_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_button-toggle.styl */ "./src/stylus/components/_button-toggle.styl");
- /* harmony import */ var _stylus_components_button_toggle_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_button_toggle_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_button_group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/button-group */ "./src/mixins/button-group.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Mixins
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_mixins_button_group__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
- name: 'v-btn-toggle',
- props: {
- activeClass: {
- type: String,
- default: 'v-btn--active'
- }
- },
- computed: {
- classes: function classes() {
- return __assign({}, _mixins_button_group__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this), { 'v-btn-toggle': true, 'v-btn-toggle--only-child': this.selectedItems.length === 1, 'v-btn-toggle--selected': this.selectedItems.length > 0 });
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VBtnToggle/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VBtnToggle/index.ts ***!
- \********************************************/
- /*! exports provided: VBtnToggle, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VBtnToggle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VBtnToggle */ "./src/components/VBtnToggle/VBtnToggle.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBtnToggle", function() { return _VBtnToggle__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VBtnToggle__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VCalendar/VCalendar.ts":
- /*!***********************************************!*\
- !*** ./src/components/VCalendar/VCalendar.ts ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_calendar_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mixins/calendar-base */ "./src/components/VCalendar/mixins/calendar-base.ts");
- /* harmony import */ var _util_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util/props */ "./src/components/VCalendar/util/props.ts");
- /* harmony import */ var _util_timestamp__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util/timestamp */ "./src/components/VCalendar/util/timestamp.ts");
- /* harmony import */ var _VCalendarMonthly__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VCalendarMonthly */ "./src/components/VCalendar/VCalendarMonthly.ts");
- /* harmony import */ var _VCalendarDaily__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VCalendarDaily */ "./src/components/VCalendar/VCalendarDaily.ts");
- /* harmony import */ var _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VCalendarWeekly */ "./src/components/VCalendar/VCalendarWeekly.ts");
- // Styles
- // import '../../stylus/components/_calendar-daily.styl'
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Mixins
-
- // Util
-
-
- // Calendars
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_mixins_calendar_base__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
- name: 'v-calendar',
- props: __assign({}, _util_props__WEBPACK_IMPORTED_MODULE_1__["default"].calendar, _util_props__WEBPACK_IMPORTED_MODULE_1__["default"].weeks, _util_props__WEBPACK_IMPORTED_MODULE_1__["default"].intervals),
- data: function data() {
- return {
- lastStart: null,
- lastEnd: null
- };
- },
- computed: {
- parsedValue: function parsedValue() {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["parseTimestamp"])(this.value) || this.parsedStart || this.times.today;
- },
- renderProps: function renderProps() {
- var around = this.parsedValue;
- var component = 'div';
- var maxDays = this.maxDays;
- var start = around;
- var end = around;
- switch (this.type) {
- case 'month':
- component = _VCalendarMonthly__WEBPACK_IMPORTED_MODULE_3__["default"];
- start = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["getStartOfMonth"])(around);
- end = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["getEndOfMonth"])(around);
- break;
- case 'week':
- component = _VCalendarDaily__WEBPACK_IMPORTED_MODULE_4__["default"];
- start = this.getStartOfWeek(around);
- end = this.getEndOfWeek(around);
- maxDays = 7;
- break;
- case 'day':
- component = _VCalendarDaily__WEBPACK_IMPORTED_MODULE_4__["default"];
- maxDays = 1;
- break;
- case '4day':
- component = _VCalendarDaily__WEBPACK_IMPORTED_MODULE_4__["default"];
- end = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["relativeDays"])(Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["copyTimestamp"])(end), _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["nextDay"], 4);
- Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["updateFormatted"])(end);
- maxDays = 4;
- break;
- case 'custom-weekly':
- component = _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_5__["default"];
- start = this.parsedStart || around;
- end = this.parsedEnd;
- break;
- case 'custom-daily':
- component = _VCalendarDaily__WEBPACK_IMPORTED_MODULE_4__["default"];
- start = this.parsedStart || around;
- end = this.parsedEnd;
- break;
- }
- return { component: component, start: start, end: end, maxDays: maxDays };
- }
- },
- watch: {
- renderProps: 'checkChange'
- },
- methods: {
- checkChange: function checkChange() {
- var _a = this.renderProps,
- start = _a.start,
- end = _a.end;
- if (start !== this.lastStart || end !== this.lastEnd) {
- this.lastStart = start;
- this.lastEnd = end;
- this.$emit('change', { start: start, end: end });
- }
- },
- move: function move(amount) {
- if (amount === void 0) {
- amount = 1;
- }
- var moved = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["copyTimestamp"])(this.parsedValue);
- var forward = amount > 0;
- var mover = forward ? _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["nextDay"] : _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["prevDay"];
- var limit = forward ? _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["DAYS_IN_MONTH_MAX"] : _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["DAY_MIN"];
- var times = forward ? amount : -amount;
- while (--times >= 0) {
- switch (this.type) {
- case 'month':
- moved.day = limit;
- mover(moved);
- break;
- case 'week':
- Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["relativeDays"])(moved, mover, _util_timestamp__WEBPACK_IMPORTED_MODULE_2__["DAYS_IN_WEEK"]);
- break;
- case 'day':
- mover(moved);
- break;
- case '4day':
- Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["relativeDays"])(moved, mover, 4);
- break;
- }
- }
- Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["updateWeekday"])(moved);
- Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["updateFormatted"])(moved);
- Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["updateRelative"])(moved, this.times.now);
- this.$emit('input', moved.date);
- this.$emit('moved', moved);
- },
- next: function next(amount) {
- if (amount === void 0) {
- amount = 1;
- }
- this.move(amount);
- },
- prev: function prev(amount) {
- if (amount === void 0) {
- amount = 1;
- }
- this.move(-amount);
- },
- timeToY: function timeToY(time, clamp) {
- if (clamp === void 0) {
- clamp = true;
- }
- var c = this.$children[0];
- if (c && c.timeToY) {
- return c.timeToY(time, clamp);
- } else {
- return false;
- }
- },
- minutesToPixels: function minutesToPixels(minutes) {
- var c = this.$children[0];
- if (c && c.minutesToPixels) {
- return c.minutesToPixels(minutes);
- } else {
- return -1;
- }
- },
- scrollToTime: function scrollToTime(time) {
- var c = this.$children[0];
- if (c && c.scrollToTime) {
- return c.scrollToTime(time);
- } else {
- return false;
- }
- }
- },
- render: function render(h) {
- var _this = this;
- var _a = this.renderProps,
- start = _a.start,
- end = _a.end,
- maxDays = _a.maxDays,
- component = _a.component;
- return h(component, {
- staticClass: 'v-calendar',
- props: __assign({}, this.$props, { start: start.date, end: end.date, maxDays: maxDays }),
- on: __assign({}, this.$listeners, { 'click:date': function clickDate(day) {
- if (_this.$listeners['input']) {
- _this.$emit('input', day.date);
- }
- if (_this.$listeners['click:date']) {
- _this.$emit('click:date', day);
- }
- } }),
- scopedSlots: this.$scopedSlots
- });
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCalendar/VCalendarDaily.ts":
- /*!****************************************************!*\
- !*** ./src/components/VCalendar/VCalendarDaily.ts ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_calendar_daily_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_calendar-daily.styl */ "./src/stylus/components/_calendar-daily.styl");
- /* harmony import */ var _stylus_components_calendar_daily_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_calendar_daily_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _directives_resize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../directives/resize */ "./src/directives/resize.ts");
- /* harmony import */ var _mixins_calendar_with_intervals__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mixins/calendar-with-intervals */ "./src/components/VCalendar/mixins/calendar-with-intervals.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
- // Styles
-
- // Directives
-
- // Mixins
-
- // Util
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_mixins_calendar_with_intervals__WEBPACK_IMPORTED_MODULE_2__["default"].extend({
- name: 'v-calendar-daily',
- directives: { Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_1__["default"] },
- data: function data() {
- return {
- scrollPush: 0
- };
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-calendar-daily': true }, this.themeClasses);
- }
- },
- mounted: function mounted() {
- this.init();
- },
- methods: {
- init: function init() {
- this.$nextTick(this.onResize);
- },
- onResize: function onResize() {
- this.scrollPush = this.getScrollPush();
- },
- getScrollPush: function getScrollPush() {
- var area = this.$refs.scrollArea;
- var pane = this.$refs.pane;
- return area && pane ? area.offsetWidth - pane.offsetWidth : 0;
- },
- genHead: function genHead() {
- return this.$createElement('div', {
- staticClass: 'v-calendar-daily__head',
- style: {
- marginRight: this.scrollPush + 'px'
- }
- }, __spread([this.genHeadIntervals()], this.genHeadDays()));
- },
- genHeadIntervals: function genHeadIntervals() {
- return this.$createElement('div', {
- staticClass: 'v-calendar-daily__intervals-head'
- });
- },
- genHeadDays: function genHeadDays() {
- return this.days.map(this.genHeadDay);
- },
- genHeadDay: function genHeadDay(day) {
- var _this = this;
- var slot = this.$scopedSlots.dayHeader;
- return this.$createElement('div', {
- key: day.date,
- staticClass: 'v-calendar-daily_head-day',
- class: this.getRelativeClasses(day),
- on: this.getDefaultMouseEventHandlers(':day', function (_e) {
- return _this.getSlotScope(day);
- })
- }, [this.genHeadWeekday(day), this.genHeadDayLabel(day), slot ? slot(day) : '']);
- },
- genHeadWeekday: function genHeadWeekday(day) {
- var color = day.present ? this.color : undefined;
- return this.$createElement('div', this.setTextColor(color, {
- staticClass: 'v-calendar-daily_head-weekday'
- }), this.weekdayFormatter(day, this.shortWeekdays));
- },
- genHeadDayLabel: function genHeadDayLabel(day) {
- var color = day.present ? this.color : undefined;
- return this.$createElement('div', this.setTextColor(color, {
- staticClass: 'v-calendar-daily_head-day-label',
- on: this.getMouseEventHandlers({
- 'click:date': { event: 'click', stop: true },
- 'contextmenu:date': { event: 'contextmenu', stop: true, prevent: true, result: false }
- }, function (_e) {
- return day;
- })
- }), this.dayFormatter(day, false));
- },
- genBody: function genBody() {
- return this.$createElement('div', {
- staticClass: 'v-calendar-daily__body'
- }, [this.genScrollArea()]);
- },
- genScrollArea: function genScrollArea() {
- return this.$createElement('div', {
- ref: 'scrollArea',
- staticClass: 'v-calendar-daily__scroll-area'
- }, [this.genPane()]);
- },
- genPane: function genPane() {
- return this.$createElement('div', {
- ref: 'pane',
- staticClass: 'v-calendar-daily__pane',
- style: {
- height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.bodyHeight)
- }
- }, [this.genDayContainer()]);
- },
- genDayContainer: function genDayContainer() {
- return this.$createElement('div', {
- staticClass: 'v-calendar-daily__day-container'
- }, __spread([this.genBodyIntervals()], this.genDays()));
- },
- genDays: function genDays() {
- return this.days.map(this.genDay);
- },
- genDay: function genDay(day, index) {
- var _this = this;
- var slot = this.$scopedSlots.dayBody;
- var scope = this.getSlotScope(day);
- return this.$createElement('div', {
- key: day.date,
- staticClass: 'v-calendar-daily__day',
- class: this.getRelativeClasses(day),
- on: this.getDefaultMouseEventHandlers(':time', function (e) {
- return _this.getSlotScope(_this.getTimestampAtEvent(e, day));
- })
- }, __spread(this.genDayIntervals(index), [slot ? slot(scope) : '']));
- },
- genDayIntervals: function genDayIntervals(index) {
- return this.intervals[index].map(this.genDayInterval);
- },
- genDayInterval: function genDayInterval(interval) {
- var height = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.intervalHeight);
- var styler = this.intervalStyle || this.intervalStyleDefault;
- var slot = this.$scopedSlots.interval;
- var scope = this.getSlotScope(interval);
- var data = {
- key: interval.time,
- staticClass: 'v-calendar-daily__day-interval',
- style: __assign({ height: height }, styler(interval))
- };
- var children = slot ? slot(scope) : undefined;
- return this.$createElement('div', data, children);
- },
- genBodyIntervals: function genBodyIntervals() {
- var _this = this;
- var data = {
- staticClass: 'v-calendar-daily__intervals-body',
- on: this.getDefaultMouseEventHandlers(':interval', function (e) {
- return _this.getTimestampAtEvent(e, _this.parsedStart);
- })
- };
- return this.$createElement('div', data, this.genIntervalLabels());
- },
- genIntervalLabels: function genIntervalLabels() {
- return this.intervals[0].map(this.genIntervalLabel);
- },
- genIntervalLabel: function genIntervalLabel(interval) {
- var height = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(this.intervalHeight);
- var short = this.shortIntervals;
- var shower = this.showIntervalLabel || this.showIntervalLabelDefault;
- var show = shower(interval);
- var label = show ? this.intervalFormatter(interval, short) : undefined;
- return this.$createElement('div', {
- key: interval.time,
- staticClass: 'v-calendar-daily__interval',
- style: {
- height: height
- }
- }, [this.$createElement('div', {
- staticClass: 'v-calendar-daily__interval-text'
- }, label)]);
- }
- },
- render: function render(h) {
- return h('div', {
- class: this.classes,
- nativeOn: {
- dragstart: function dragstart(e) {
- e.preventDefault();
- }
- },
- directives: [{
- modifiers: { quiet: true },
- name: 'resize',
- value: this.onResize
- }]
- }, [!this.hideHeader ? this.genHead() : '', this.genBody()]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCalendar/VCalendarMonthly.ts":
- /*!******************************************************!*\
- !*** ./src/components/VCalendar/VCalendarMonthly.ts ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_calendar_weekly_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_calendar-weekly.styl */ "./src/stylus/components/_calendar-weekly.styl");
- /* harmony import */ var _stylus_components_calendar_weekly_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_calendar_weekly_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VCalendarWeekly */ "./src/components/VCalendar/VCalendarWeekly.ts");
- /* harmony import */ var _util_timestamp__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util/timestamp */ "./src/components/VCalendar/util/timestamp.ts");
- // Styles
-
- // Mixins
-
- // Util
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VCalendarWeekly__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
- name: 'v-calendar-monthly',
- computed: {
- staticClass: function staticClass() {
- return 'v-calendar-monthly v-calendar-weekly';
- },
- parsedStart: function parsedStart() {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["getStartOfMonth"])(Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["parseTimestamp"])(this.start));
- },
- parsedEnd: function parsedEnd() {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["getEndOfMonth"])(Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["parseTimestamp"])(this.end));
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCalendar/VCalendarWeekly.ts":
- /*!*****************************************************!*\
- !*** ./src/components/VCalendar/VCalendarWeekly.ts ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_calendar_weekly_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_calendar-weekly.styl */ "./src/stylus/components/_calendar-weekly.styl");
- /* harmony import */ var _stylus_components_calendar_weekly_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_calendar_weekly_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_calendar_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mixins/calendar-base */ "./src/components/VCalendar/mixins/calendar-base.ts");
- /* harmony import */ var _util_props__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util/props */ "./src/components/VCalendar/util/props.ts");
- /* harmony import */ var _util_timestamp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util/timestamp */ "./src/components/VCalendar/util/timestamp.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
- // Styles
-
- // Mixins
-
- // Util
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_mixins_calendar_base__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
- name: 'v-calendar-weekly',
- props: _util_props__WEBPACK_IMPORTED_MODULE_2__["default"].weeks,
- computed: {
- staticClass: function staticClass() {
- return 'v-calendar-weekly';
- },
- classes: function classes() {
- return this.themeClasses;
- },
- parsedMinWeeks: function parsedMinWeeks() {
- return parseInt(this.minWeeks);
- },
- days: function days() {
- var minDays = this.parsedMinWeeks * this.weekdays.length;
- var start = this.getStartOfWeek(this.parsedStart);
- var end = this.getEndOfWeek(this.parsedEnd);
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_3__["createDayList"])(start, end, this.times.today, this.weekdaySkips, Number.MAX_SAFE_INTEGER, minDays);
- },
- todayWeek: function todayWeek() {
- var today = this.times.today;
- var start = this.getStartOfWeek(today);
- var end = this.getEndOfWeek(today);
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_3__["createDayList"])(start, end, today, this.weekdaySkips, this.weekdays.length, this.weekdays.length);
- },
- monthFormatter: function monthFormatter() {
- if (this.monthFormat) {
- return this.monthFormat;
- }
- var longOptions = { timeZone: 'UTC', month: 'long' };
- var shortOptions = { timeZone: 'UTC', month: 'short' };
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_3__["createNativeLocaleFormatter"])(this.locale, function (_tms, short) {
- return short ? shortOptions : longOptions;
- });
- }
- },
- methods: {
- isOutside: function isOutside(day) {
- var dayIdentifier = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_3__["getDayIdentifier"])(day);
- return dayIdentifier < Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_3__["getDayIdentifier"])(this.parsedStart) || dayIdentifier > Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_3__["getDayIdentifier"])(this.parsedEnd);
- },
- genHead: function genHead() {
- return this.$createElement('div', {
- staticClass: 'v-calendar-weekly__head'
- }, this.genHeadDays());
- },
- genHeadDays: function genHeadDays() {
- return this.todayWeek.map(this.genHeadDay);
- },
- genHeadDay: function genHeadDay(day, index) {
- var outside = this.isOutside(this.days[index]);
- var color = day.present ? this.color : undefined;
- return this.$createElement('div', this.setTextColor(color, {
- key: day.date,
- staticClass: 'v-calendar-weekly__head-weekday',
- class: this.getRelativeClasses(day, outside)
- }), this.weekdayFormatter(day, this.shortWeekdays));
- },
- genWeeks: function genWeeks() {
- var days = this.days;
- var weekDays = this.weekdays.length;
- var weeks = [];
- for (var i = 0; i < days.length; i += weekDays) {
- weeks.push(this.genWeek(days.slice(i, i + weekDays)));
- }
- return weeks;
- },
- genWeek: function genWeek(week) {
- return this.$createElement('div', {
- key: week[0].date,
- staticClass: 'v-calendar-weekly__week'
- }, week.map(this.genDay));
- },
- genDay: function genDay(day) {
- var outside = this.isOutside(day);
- var slot = this.$scopedSlots.day;
- var slotData = __assign({ outside: outside }, day);
- var hasMonth = day.day === 1 && this.showMonthOnFirst;
- return this.$createElement('div', {
- key: day.date,
- staticClass: 'v-calendar-weekly__day',
- class: this.getRelativeClasses(day, outside),
- on: this.getDefaultMouseEventHandlers(':day', function (_e) {
- return day;
- })
- }, [this.genDayLabel(day), hasMonth ? this.genDayMonth(day) : '', slot ? slot(slotData) : '']);
- },
- genDayLabel: function genDayLabel(day) {
- var color = day.present ? this.color : undefined;
- var slot = this.$scopedSlots.dayLabel;
- return this.$createElement('div', this.setTextColor(color, {
- staticClass: 'v-calendar-weekly__day-label',
- on: this.getMouseEventHandlers({
- 'click:date': { event: 'click', stop: true },
- 'contextmenu:date': { event: 'contextmenu', stop: true, prevent: true, result: false }
- }, function (_e) {
- return day;
- })
- }), slot ? slot(day) : this.dayFormatter(day, false));
- },
- genDayMonth: function genDayMonth(day) {
- var color = day.present ? this.color : undefined;
- var slot = this.$scopedSlots.dayMonth;
- return this.$createElement('div', this.setTextColor(color, {
- staticClass: 'v-calendar-weekly__day-month'
- }), slot ? slot(day) : this.monthFormatter(day, this.shortMonths));
- }
- },
- render: function render(h) {
- return h('div', {
- staticClass: this.staticClass,
- class: this.classes,
- nativeOn: {
- dragstart: function dragstart(e) {
- e.preventDefault();
- }
- }
- }, __spread([!this.hideHeader ? this.genHead() : ''], this.genWeeks()));
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCalendar/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VCalendar/index.ts ***!
- \*******************************************/
- /*! exports provided: VCalendar, VCalendarDaily, VCalendarWeekly, VCalendarMonthly, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VCalendar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VCalendar */ "./src/components/VCalendar/VCalendar.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCalendar", function() { return _VCalendar__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VCalendarDaily__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VCalendarDaily */ "./src/components/VCalendar/VCalendarDaily.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCalendarDaily", function() { return _VCalendarDaily__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VCalendarWeekly */ "./src/components/VCalendar/VCalendarWeekly.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCalendarWeekly", function() { return _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
- /* harmony import */ var _VCalendarMonthly__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VCalendarMonthly */ "./src/components/VCalendar/VCalendarMonthly.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCalendarMonthly", function() { return _VCalendarMonthly__WEBPACK_IMPORTED_MODULE_3__["default"]; });
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VCalendar: _VCalendar__WEBPACK_IMPORTED_MODULE_0__["default"],
- VCalendarDaily: _VCalendarDaily__WEBPACK_IMPORTED_MODULE_1__["default"],
- VCalendarWeekly: _VCalendarWeekly__WEBPACK_IMPORTED_MODULE_2__["default"],
- VCalendarMonthly: _VCalendarMonthly__WEBPACK_IMPORTED_MODULE_3__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VCalendar/mixins/calendar-base.ts":
- /*!**********************************************************!*\
- !*** ./src/components/VCalendar/mixins/calendar-base.ts ***!
- \**********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _times__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./times */ "./src/components/VCalendar/mixins/times.ts");
- /* harmony import */ var _mouse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mouse */ "./src/components/VCalendar/mixins/mouse.ts");
- /* harmony import */ var _util_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/props */ "./src/components/VCalendar/util/props.ts");
- /* harmony import */ var _util_timestamp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/timestamp */ "./src/components/VCalendar/util/timestamp.ts");
- // Mixins
-
-
-
-
-
- // Util
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_0__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["default"], _times__WEBPACK_IMPORTED_MODULE_3__["default"], _mouse__WEBPACK_IMPORTED_MODULE_4__["default"]).extend({
- name: 'calendar-base',
- props: _util_props__WEBPACK_IMPORTED_MODULE_5__["default"].base,
- computed: {
- weekdaySkips: function weekdaySkips() {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_6__["getWeekdaySkips"])(this.weekdays);
- },
- parsedStart: function parsedStart() {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_6__["parseTimestamp"])(this.start);
- },
- parsedEnd: function parsedEnd() {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_6__["parseTimestamp"])(this.end);
- },
- days: function days() {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_6__["createDayList"])(this.parsedStart, this.parsedEnd, this.times.today, this.weekdaySkips);
- },
- dayFormatter: function dayFormatter() {
- if (this.dayFormat) {
- return this.dayFormat;
- }
- var options = { timeZone: 'UTC', day: 'numeric' };
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_6__["createNativeLocaleFormatter"])(this.locale, function (_tms, _short) {
- return options;
- });
- },
- weekdayFormatter: function weekdayFormatter() {
- if (this.weekdayFormat) {
- return this.weekdayFormat;
- }
- var longOptions = { timeZone: 'UTC', weekday: 'long' };
- var shortOptions = { timeZone: 'UTC', weekday: 'short' };
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_6__["createNativeLocaleFormatter"])(this.locale, function (_tms, short) {
- return short ? shortOptions : longOptions;
- });
- }
- },
- methods: {
- getRelativeClasses: function getRelativeClasses(timestamp, outside) {
- if (outside === void 0) {
- outside = false;
- }
- return {
- 'v-present': timestamp.present,
- 'v-past': timestamp.past,
- 'v-future': timestamp.future,
- 'v-outside': outside
- };
- },
- getStartOfWeek: function getStartOfWeek(timestamp) {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_6__["getStartOfWeek"])(timestamp, this.weekdays, this.times.today);
- },
- getEndOfWeek: function getEndOfWeek(timestamp) {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_6__["getEndOfWeek"])(timestamp, this.weekdays, this.times.today);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCalendar/mixins/calendar-with-intervals.ts":
- /*!********************************************************************!*\
- !*** ./src/components/VCalendar/mixins/calendar-with-intervals.ts ***!
- \********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _calendar_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./calendar-base */ "./src/components/VCalendar/mixins/calendar-base.ts");
- /* harmony import */ var _util_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/props */ "./src/components/VCalendar/util/props.ts");
- /* harmony import */ var _util_timestamp__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/timestamp */ "./src/components/VCalendar/util/timestamp.ts");
- // Mixins
-
- // Util
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_calendar_base__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
- name: 'calendar-with-intervals',
- props: _util_props__WEBPACK_IMPORTED_MODULE_1__["default"].intervals,
- computed: {
- parsedFirstInterval: function parsedFirstInterval() {
- return parseInt(this.firstInterval);
- },
- parsedIntervalMinutes: function parsedIntervalMinutes() {
- return parseInt(this.intervalMinutes);
- },
- parsedIntervalCount: function parsedIntervalCount() {
- return parseInt(this.intervalCount);
- },
- parsedIntervalHeight: function parsedIntervalHeight() {
- return parseFloat(this.intervalHeight);
- },
- firstMinute: function firstMinute() {
- return this.parsedFirstInterval * this.parsedIntervalMinutes;
- },
- bodyHeight: function bodyHeight() {
- return this.parsedIntervalCount * this.parsedIntervalHeight;
- },
- days: function days() {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["createDayList"])(this.parsedStart, this.parsedEnd, this.times.today, this.weekdaySkips, this.maxDays);
- },
- intervals: function intervals() {
- var days = this.days;
- var first = this.parsedFirstInterval;
- var minutes = this.parsedIntervalMinutes;
- var count = this.parsedIntervalCount;
- var now = this.times.now;
- return days.map(function (d) {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["createIntervalList"])(d, first, minutes, count, now);
- });
- },
- intervalFormatter: function intervalFormatter() {
- if (this.intervalFormat) {
- return this.intervalFormat;
- }
- var longOptions = { timeZone: 'UTC', hour12: true, hour: '2-digit', minute: '2-digit' };
- var shortOptions = { timeZone: 'UTC', hour12: true, hour: 'numeric', minute: '2-digit' };
- var shortHourOptions = { timeZone: 'UTC', hour12: true, hour: 'numeric' };
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["createNativeLocaleFormatter"])(this.locale, function (tms, short) {
- return short ? tms.minute === 0 ? shortHourOptions : shortOptions : longOptions;
- });
- }
- },
- methods: {
- showIntervalLabelDefault: function showIntervalLabelDefault(interval) {
- var first = this.intervals[0][0];
- var isFirst = first.hour === interval.hour && first.minute === interval.minute;
- return !isFirst && interval.minute === 0;
- },
- intervalStyleDefault: function intervalStyleDefault(_interval) {
- return undefined;
- },
- getTimestampAtEvent: function getTimestampAtEvent(e, day) {
- var timestamp = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["copyTimestamp"])(day);
- var bounds = e.currentTarget.getBoundingClientRect();
- var baseMinutes = this.firstMinute;
- var touchEvent = e;
- var mouseEvent = e;
- var touches = touchEvent.changedTouches || touchEvent.touches;
- var clientY = touches && touches[0] ? touches[0].clientY : mouseEvent.clientY;
- var addIntervals = (clientY - bounds.top) / this.parsedIntervalHeight;
- var addMinutes = Math.floor(addIntervals * this.parsedIntervalMinutes);
- var minutes = baseMinutes + addMinutes;
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["updateMinutes"])(timestamp, minutes, this.times.now);
- },
- getSlotScope: function getSlotScope(timestamp) {
- var scope = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["copyTimestamp"])(timestamp);
- scope.timeToY = this.timeToY;
- scope.minutesToPixels = this.minutesToPixels;
- return scope;
- },
- scrollToTime: function scrollToTime(time) {
- var y = this.timeToY(time);
- var pane = this.$refs.scrollArea;
- if (y === false || !pane) {
- return false;
- }
- pane.scrollTop = y;
- return true;
- },
- minutesToPixels: function minutesToPixels(minutes) {
- return minutes / this.parsedIntervalMinutes * this.parsedIntervalHeight;
- },
- timeToY: function timeToY(time, clamp) {
- if (clamp === void 0) {
- clamp = true;
- }
- var minutes = Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_2__["parseTime"])(time);
- if (minutes === false) {
- return false;
- }
- var min = this.firstMinute;
- var gap = this.parsedIntervalCount * this.parsedIntervalMinutes;
- var delta = (minutes - min) / gap;
- var y = delta * this.bodyHeight;
- if (clamp) {
- if (y < 0) {
- y = 0;
- }
- if (y > this.bodyHeight) {
- y = this.bodyHeight;
- }
- }
- return y;
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCalendar/mixins/mouse.ts":
- /*!**************************************************!*\
- !*** ./src/components/VCalendar/mixins/mouse.ts ***!
- \**************************************************/
- /*! 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 default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'mouse',
- methods: {
- getDefaultMouseEventHandlers: function getDefaultMouseEventHandlers(suffix, getEvent) {
- var _a;
- return this.getMouseEventHandlers((_a = {}, _a['click' + suffix] = { event: 'click' }, _a['contextmenu' + suffix] = { event: 'contextmenu', prevent: true, result: false }, _a['mousedown' + suffix] = { event: 'mousedown' }, _a['mousemove' + suffix] = { event: 'mousemove' }, _a['mouseup' + suffix] = { event: 'mouseup' }, _a['mouseenter' + suffix] = { event: 'mouseenter' }, _a['mouseleave' + suffix] = { event: 'mouseleave' }, _a['touchstart' + suffix] = { event: 'touchstart' }, _a['touchmove' + suffix] = { event: 'touchmove' }, _a['touchend' + suffix] = { event: 'touchend' }, _a), getEvent);
- },
- getMouseEventHandlers: function getMouseEventHandlers(events, getEvent) {
- var _this = this;
- var on = {};
- var _loop_1 = function _loop_1(event) {
- var eventOptions = events[event];
- if (!this_1.$listeners[event]) return "continue";
- // TODO somehow pull in modifiers
- var prefix = eventOptions.passive ? '&' : (eventOptions.once ? '~' : '') + (eventOptions.capture ? '!' : '');
- var key = prefix + eventOptions.event;
- var handler = function handler(e) {
- var mouseEvent = e;
- if (eventOptions.button === undefined || mouseEvent.buttons > 0 && mouseEvent.button === eventOptions.button) {
- if (eventOptions.prevent) {
- e.preventDefault();
- }
- if (eventOptions.stop) {
- e.stopPropagation();
- }
- _this.$emit(event, getEvent(e));
- }
- return eventOptions.result;
- };
- if (key in on) {
- if (Array.isArray(on[key])) {
- on[key].push(handler);
- } else {
- on[key] = [on[key], handler];
- }
- } else {
- on[key] = handler;
- }
- };
- var this_1 = this;
- for (var event in events) {
- _loop_1(event);
- }
- return on;
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCalendar/mixins/times.ts":
- /*!**************************************************!*\
- !*** ./src/components/VCalendar/mixins/times.ts ***!
- \**************************************************/
- /*! 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 _util_timestamp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/timestamp */ "./src/components/VCalendar/util/timestamp.ts");
-
-
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'times',
- props: {
- now: {
- type: String,
- validator: _util_timestamp__WEBPACK_IMPORTED_MODULE_1__["validateTimestamp"]
- }
- },
- data: function data() {
- return {
- times: {
- now: Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_1__["parseTimestamp"])('0000-00-00 00:00'),
- today: Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_1__["parseTimestamp"])('0000-00-00')
- }
- };
- },
- computed: {
- parsedNow: function parsedNow() {
- return this.now ? Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_1__["parseTimestamp"])(this.now) : null;
- }
- },
- watch: {
- parsedNow: 'updateTimes'
- },
- created: function created() {
- this.updateTimes();
- this.setPresent();
- },
- methods: {
- setPresent: function setPresent() {
- this.times.now.present = this.times.today.present = true;
- this.times.now.past = this.times.today.past = false;
- this.times.now.future = this.times.today.future = false;
- },
- updateTimes: function updateTimes() {
- var now = this.parsedNow || this.getNow();
- this.updateDay(now, this.times.now);
- this.updateTime(now, this.times.now);
- this.updateDay(now, this.times.today);
- },
- getNow: function getNow() {
- return Object(_util_timestamp__WEBPACK_IMPORTED_MODULE_1__["parseDate"])(new Date());
- },
- updateDay: function updateDay(now, target) {
- if (now.date !== target.date) {
- target.year = now.year;
- target.month = now.month;
- target.day = now.day;
- target.weekday = now.weekday;
- target.date = now.date;
- }
- },
- updateTime: function updateTime(now, target) {
- if (now.time !== target.time) {
- target.hour = now.hour;
- target.minute = now.minute;
- target.time = now.time;
- }
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCalendar/util/props.ts":
- /*!************************************************!*\
- !*** ./src/components/VCalendar/util/props.ts ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _timestamp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timestamp */ "./src/components/VCalendar/util/timestamp.ts");
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- base: {
- start: {
- type: String,
- validate: _timestamp__WEBPACK_IMPORTED_MODULE_0__["validateTimestamp"],
- default: function _default() {
- return Object(_timestamp__WEBPACK_IMPORTED_MODULE_0__["parseDate"])(new Date()).date;
- }
- },
- end: {
- type: String,
- validate: _timestamp__WEBPACK_IMPORTED_MODULE_0__["validateTimestamp"],
- default: '0000-00-00'
- },
- weekdays: {
- type: Array,
- default: function _default() {
- return [0, 1, 2, 3, 4, 5, 6];
- }
- },
- hideHeader: {
- type: Boolean,
- default: false
- },
- shortWeekdays: {
- type: Boolean,
- default: true
- },
- weekdayFormat: {
- type: Function,
- default: null
- },
- dayFormat: {
- type: Function,
- default: null
- },
- locale: {
- type: String,
- default: 'en-us'
- }
- },
- intervals: {
- maxDays: {
- type: Number,
- default: 7
- },
- shortIntervals: {
- type: Boolean,
- default: true
- },
- intervalHeight: {
- type: [Number, String],
- default: 40,
- validate: validateNumber
- },
- intervalMinutes: {
- type: [Number, String],
- default: 60,
- validate: validateNumber
- },
- firstInterval: {
- type: [Number, String],
- default: 0,
- validate: validateNumber
- },
- intervalCount: {
- type: [Number, String],
- default: 24,
- validate: validateNumber
- },
- intervalFormat: {
- type: Function,
- default: null
- },
- intervalStyle: {
- type: Function,
- default: null
- },
- showIntervalLabel: {
- type: Function,
- default: null
- }
- },
- weeks: {
- minWeeks: {
- validate: validateNumber,
- default: 1
- },
- shortMonths: {
- type: Boolean,
- default: true
- },
- showMonthOnFirst: {
- type: Boolean,
- default: true
- },
- monthFormat: {
- type: Function,
- default: null
- }
- },
- calendar: {
- type: {
- type: String,
- default: 'month'
- },
- value: {
- type: String,
- validate: _timestamp__WEBPACK_IMPORTED_MODULE_0__["validateTimestamp"]
- }
- }
- });
- function validateNumber(input) {
- return isFinite(parseInt(input));
- }
-
- /***/ }),
-
- /***/ "./src/components/VCalendar/util/timestamp.ts":
- /*!****************************************************!*\
- !*** ./src/components/VCalendar/util/timestamp.ts ***!
- \****************************************************/
- /*! exports provided: PARSE_REGEX, PARSE_TIME, DAYS_IN_MONTH, DAYS_IN_MONTH_LEAP, DAYS_IN_MONTH_MIN, DAYS_IN_MONTH_MAX, MONTH_MAX, MONTH_MIN, DAY_MIN, DAYS_IN_WEEK, MINUTES_IN_HOUR, HOURS_IN_DAY, FIRST_HOUR, getStartOfWeek, getEndOfWeek, getStartOfMonth, getEndOfMonth, parseTime, validateTimestamp, parseTimestamp, parseDate, getDayIdentifier, getTimeIdentifier, updateRelative, updateMinutes, updateWeekday, updateFormatted, getWeekday, isLeapYear, daysInMonth, copyTimestamp, padNumber, getDate, getTime, nextMinutes, nextDay, prevDay, relativeDays, findWeekday, getWeekdaySkips, createDayList, createIntervalList, createNativeLocaleFormatter */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PARSE_REGEX", function() { return PARSE_REGEX; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PARSE_TIME", function() { return PARSE_TIME; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DAYS_IN_MONTH", function() { return DAYS_IN_MONTH; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DAYS_IN_MONTH_LEAP", function() { return DAYS_IN_MONTH_LEAP; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DAYS_IN_MONTH_MIN", function() { return DAYS_IN_MONTH_MIN; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DAYS_IN_MONTH_MAX", function() { return DAYS_IN_MONTH_MAX; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MONTH_MAX", function() { return MONTH_MAX; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MONTH_MIN", function() { return MONTH_MIN; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DAY_MIN", function() { return DAY_MIN; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DAYS_IN_WEEK", function() { return DAYS_IN_WEEK; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MINUTES_IN_HOUR", function() { return MINUTES_IN_HOUR; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOURS_IN_DAY", function() { return HOURS_IN_DAY; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIRST_HOUR", function() { return FIRST_HOUR; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStartOfWeek", function() { return getStartOfWeek; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEndOfWeek", function() { return getEndOfWeek; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStartOfMonth", function() { return getStartOfMonth; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEndOfMonth", function() { return getEndOfMonth; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseTime", function() { return parseTime; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateTimestamp", function() { return validateTimestamp; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseTimestamp", function() { return parseTimestamp; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDate", function() { return parseDate; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDayIdentifier", function() { return getDayIdentifier; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTimeIdentifier", function() { return getTimeIdentifier; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateRelative", function() { return updateRelative; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateMinutes", function() { return updateMinutes; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateWeekday", function() { return updateWeekday; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateFormatted", function() { return updateFormatted; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWeekday", function() { return getWeekday; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isLeapYear", function() { return isLeapYear; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "daysInMonth", function() { return daysInMonth; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copyTimestamp", function() { return copyTimestamp; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "padNumber", function() { return padNumber; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDate", function() { return getDate; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTime", function() { return getTime; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nextMinutes", function() { return nextMinutes; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nextDay", function() { return nextDay; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prevDay", function() { return prevDay; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "relativeDays", function() { return relativeDays; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findWeekday", function() { return findWeekday; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWeekdaySkips", function() { return getWeekdaySkips; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createDayList", function() { return createDayList; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createIntervalList", function() { return createIntervalList; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createNativeLocaleFormatter", function() { return createNativeLocaleFormatter; });
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
-
- var PARSE_REGEX = /^(\d{4})-(\d{1,2})(-(\d{1,2}))?([^\d]+(\d{1,2}))?(:(\d{1,2}))?(:(\d{1,2}))?$/;
- var PARSE_TIME = /(\d\d?)(:(\d\d?)|)(:(\d\d?)|)/;
- var DAYS_IN_MONTH = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
- var DAYS_IN_MONTH_LEAP = [0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
- var DAYS_IN_MONTH_MIN = 28;
- var DAYS_IN_MONTH_MAX = 31;
- var MONTH_MAX = 12;
- var MONTH_MIN = 1;
- var DAY_MIN = 1;
- var DAYS_IN_WEEK = 7;
- var MINUTES_IN_HOUR = 60;
- var HOURS_IN_DAY = 24;
- var FIRST_HOUR = 0;
- function getStartOfWeek(timestamp, weekdays, today) {
- var start = copyTimestamp(timestamp);
- findWeekday(start, weekdays[0], prevDay);
- updateFormatted(start);
- if (today) {
- updateRelative(start, today, start.hasTime);
- }
- return start;
- }
- function getEndOfWeek(timestamp, weekdays, today) {
- var end = copyTimestamp(timestamp);
- findWeekday(end, weekdays[weekdays.length - 1]);
- updateFormatted(end);
- if (today) {
- updateRelative(end, today, end.hasTime);
- }
- return end;
- }
- function getStartOfMonth(timestamp) {
- var start = copyTimestamp(timestamp);
- start.day = DAY_MIN;
- updateWeekday(start);
- updateFormatted(start);
- return start;
- }
- function getEndOfMonth(timestamp) {
- var end = copyTimestamp(timestamp);
- end.day = daysInMonth(end.year, end.month);
- updateWeekday(end);
- updateFormatted(end);
- return end;
- }
- function parseTime(input) {
- if (typeof input === 'number') {
- // when a number is given, it's minutes since 12:00am
- return input;
- } else if (typeof input === 'string') {
- // when a string is given, it's a hh:mm:ss format where seconds are optional
- var parts = PARSE_TIME.exec(input);
- if (!parts) {
- return false;
- }
- return parseInt(parts[1]) * 60 + parseInt(parts[3] || 0);
- } else if ((typeof input === 'undefined' ? 'undefined' : _typeof(input)) === 'object') {
- // when an object is given, it must have hour and minute
- if (typeof input.hour !== 'number' || typeof input.minute !== 'number') {
- return false;
- }
- return input.hour * 60 + input.minute;
- } else {
- // unsupported type
- return false;
- }
- }
- function validateTimestamp(input) {
- return !!PARSE_REGEX.exec(input);
- }
- function parseTimestamp(input, now) {
- // YYYY-MM-DD hh:mm:ss
- var parts = PARSE_REGEX.exec(input);
- if (!parts) return null;
- var timestamp = {
- date: input,
- time: '',
- year: parseInt(parts[1]),
- month: parseInt(parts[2]),
- day: parseInt(parts[4]) || 1,
- hour: parseInt(parts[6]) || 0,
- minute: parseInt(parts[8]) || 0,
- weekday: 0,
- hasDay: !!parts[4],
- hasTime: !!(parts[6] && parts[8]),
- past: false,
- present: false,
- future: false
- };
- updateWeekday(timestamp);
- updateFormatted(timestamp);
- if (now) {
- updateRelative(timestamp, now, timestamp.hasTime);
- }
- return timestamp;
- }
- function parseDate(date) {
- return updateFormatted({
- date: '',
- time: '',
- year: date.getFullYear(),
- month: date.getMonth() + 1,
- day: date.getDate(),
- weekday: date.getDay(),
- hour: date.getHours(),
- minute: date.getMinutes(),
- hasDay: true,
- hasTime: true,
- past: false,
- present: true,
- future: false
- });
- }
- function getDayIdentifier(timestamp) {
- return timestamp.year * 10000 + timestamp.month * 100 + timestamp.day;
- }
- function getTimeIdentifier(timestamp) {
- return timestamp.hour * 100 + timestamp.minute;
- }
- function updateRelative(timestamp, now, time) {
- if (time === void 0) {
- time = false;
- }
- var a = getDayIdentifier(now);
- var b = getDayIdentifier(timestamp);
- var present = a === b;
- if (timestamp.hasTime && time && present) {
- a = getTimeIdentifier(now);
- b = getTimeIdentifier(timestamp);
- present = a === b;
- }
- timestamp.past = b < a;
- timestamp.present = present;
- timestamp.future = b > a;
- return timestamp;
- }
- function updateMinutes(timestamp, minutes, now) {
- timestamp.hasTime = true;
- timestamp.hour = Math.floor(minutes / MINUTES_IN_HOUR);
- timestamp.minute = minutes % MINUTES_IN_HOUR;
- timestamp.time = getTime(timestamp);
- if (now) {
- updateRelative(timestamp, now, true);
- }
- return timestamp;
- }
- function updateWeekday(timestamp) {
- timestamp.weekday = getWeekday(timestamp);
- return timestamp;
- }
- function updateFormatted(timestamp) {
- timestamp.time = getTime(timestamp);
- timestamp.date = getDate(timestamp);
- return timestamp;
- }
- function getWeekday(timestamp) {
- if (timestamp.hasDay) {
- var _ = Math.floor;
- var k = timestamp.day;
- var m = (timestamp.month + 9) % MONTH_MAX + 1;
- var C = _(timestamp.year / 100);
- var Y = timestamp.year % 100 - (timestamp.month <= 2 ? 1 : 0);
- return ((k + _(2.6 * m - 0.2) - 2 * C + Y + _(Y / 4) + _(C / 4)) % 7 + 7) % 7;
- }
- return timestamp.weekday;
- }
- function isLeapYear(year) {
- return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
- }
- function daysInMonth(year, month) {
- return isLeapYear(year) ? DAYS_IN_MONTH_LEAP[month] : DAYS_IN_MONTH[month];
- }
- function copyTimestamp(timestamp) {
- var date = timestamp.date,
- time = timestamp.time,
- year = timestamp.year,
- month = timestamp.month,
- day = timestamp.day,
- weekday = timestamp.weekday,
- hour = timestamp.hour,
- minute = timestamp.minute,
- hasDay = timestamp.hasDay,
- hasTime = timestamp.hasTime,
- past = timestamp.past,
- present = timestamp.present,
- future = timestamp.future;
- return { date: date, time: time, year: year, month: month, day: day, weekday: weekday, hour: hour, minute: minute, hasDay: hasDay, hasTime: hasTime, past: past, present: present, future: future };
- }
- function padNumber(x, length) {
- var padded = String(x);
- while (padded.length < length) {
- padded = '0' + padded;
- }
- return padded;
- }
- function getDate(timestamp) {
- var str = padNumber(timestamp.year, 4) + "-" + padNumber(timestamp.month, 2);
- if (timestamp.hasDay) str += "-" + padNumber(timestamp.day, 2);
- return str;
- }
- function getTime(timestamp) {
- if (!timestamp.hasTime) {
- return '';
- }
- return padNumber(timestamp.hour, 2) + ":" + padNumber(timestamp.minute, 2);
- }
- function nextMinutes(timestamp, minutes) {
- timestamp.minute += minutes;
- while (timestamp.minute > MINUTES_IN_HOUR) {
- timestamp.minute -= MINUTES_IN_HOUR;
- timestamp.hour++;
- if (timestamp.hour >= HOURS_IN_DAY) {
- nextDay(timestamp);
- timestamp.hour = FIRST_HOUR;
- }
- }
- return timestamp;
- }
- function nextDay(timestamp) {
- timestamp.day++;
- timestamp.weekday = (timestamp.weekday + 1) % DAYS_IN_WEEK;
- if (timestamp.day > DAYS_IN_MONTH_MIN && timestamp.day > daysInMonth(timestamp.year, timestamp.month)) {
- timestamp.day = DAY_MIN;
- timestamp.month++;
- if (timestamp.month > MONTH_MAX) {
- timestamp.month = MONTH_MIN;
- timestamp.year++;
- }
- }
- return timestamp;
- }
- function prevDay(timestamp) {
- timestamp.day--;
- timestamp.weekday = (timestamp.weekday + 6) % DAYS_IN_WEEK;
- if (timestamp.day < DAY_MIN) {
- timestamp.month--;
- if (timestamp.month < MONTH_MIN) {
- timestamp.year--;
- timestamp.month = MONTH_MAX;
- }
- timestamp.day = daysInMonth(timestamp.year, timestamp.month);
- }
- return timestamp;
- }
- function relativeDays(timestamp, mover, days) {
- if (mover === void 0) {
- mover = nextDay;
- }
- if (days === void 0) {
- days = 1;
- }
- while (--days >= 0) {
- mover(timestamp);
- }return timestamp;
- }
- function findWeekday(timestamp, weekday, mover, maxDays) {
- if (mover === void 0) {
- mover = nextDay;
- }
- if (maxDays === void 0) {
- maxDays = 6;
- }
- while (timestamp.weekday !== weekday && --maxDays >= 0) {
- mover(timestamp);
- }return timestamp;
- }
- function getWeekdaySkips(weekdays) {
- var skips = [1, 1, 1, 1, 1, 1, 1];
- var filled = [0, 0, 0, 0, 0, 0, 0];
- for (var i = 0; i < weekdays.length; i++) {
- filled[weekdays[i]] = 1;
- }
- for (var k = 0; k < DAYS_IN_WEEK; k++) {
- var skip = 1;
- for (var j = 1; j < DAYS_IN_WEEK; j++) {
- var next = (k + j) % DAYS_IN_WEEK;
- if (filled[next]) {
- break;
- }
- skip++;
- }
- skips[k] = filled[k] * skip;
- }
- return skips;
- }
- function createDayList(start, end, now, weekdaySkips, max, min) {
- if (max === void 0) {
- max = 42;
- }
- if (min === void 0) {
- min = 0;
- }
- var stop = getDayIdentifier(end);
- var days = [];
- var current = copyTimestamp(start);
- var currentIdentifier = 0;
- var stopped = currentIdentifier === stop;
- if (stop < getDayIdentifier(start)) {
- return days;
- }
- while ((!stopped || days.length < min) && days.length < max) {
- currentIdentifier = getDayIdentifier(current);
- stopped = stopped || currentIdentifier === stop;
- if (weekdaySkips[current.weekday] === 0) {
- current = nextDay(current);
- continue;
- }
- var day = copyTimestamp(current);
- updateFormatted(day);
- updateRelative(day, now);
- days.push(day);
- current = relativeDays(current, nextDay, weekdaySkips[current.weekday]);
- }
- return days;
- }
- function createIntervalList(timestamp, first, minutes, count, now) {
- var intervals = [];
- for (var i = 0; i < count; i++) {
- var mins = (first + i) * minutes;
- var int = copyTimestamp(timestamp);
- intervals.push(updateMinutes(int, mins, now));
- }
- return intervals;
- }
- function createNativeLocaleFormatter(locale, getOptions) {
- var emptyFormatter = function emptyFormatter(_t, _s) {
- return '';
- };
- if (typeof Intl === 'undefined' || typeof Intl.DateTimeFormat === 'undefined') {
- return emptyFormatter;
- }
- return function (timestamp, short) {
- try {
- var intlFormatter = new Intl.DateTimeFormat(locale || undefined, getOptions(timestamp, short));
- var time = padNumber(timestamp.hour, 2) + ":" + padNumber(timestamp.minute, 2);
- var date = timestamp.date;
- return intlFormatter.format(new Date(date + "T" + time + ":00+00:00"));
- } catch (e) {
- return '';
- }
- };
- }
-
- /***/ }),
-
- /***/ "./src/components/VCard/VCard.ts":
- /*!***************************************!*\
- !*** ./src/components/VCard/VCard.ts ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_cards_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_cards.styl */ "./src/stylus/components/_cards.styl");
- /* harmony import */ var _stylus_components_cards_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_cards_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VSheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VSheet */ "./src/components/VSheet/index.ts");
- /* harmony import */ var _mixins_routable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/routable */ "./src/mixins/routable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Extensions
-
- // Mixins
-
- // Helpers
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_routable__WEBPACK_IMPORTED_MODULE_2__["default"], _VSheet__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
- name: 'v-card',
- props: {
- flat: Boolean,
- hover: Boolean,
- img: String,
- raised: Boolean
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-card': true, 'v-card--flat': this.flat, 'v-card--hover': this.hover }, _VSheet__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this));
- },
- styles: function styles() {
- var style = __assign({}, _VSheet__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.styles.call(this));
- if (this.img) {
- style.background = "url(\"" + this.img + "\") center center / cover no-repeat";
- }
- return style;
- }
- },
- render: function render(h) {
- var _a = this.generateRouteLink(this.classes),
- tag = _a.tag,
- data = _a.data;
- data.style = this.styles;
- return h(tag, this.setBackgroundColor(this.color, data), this.$slots.default);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCard/VCardMedia.ts":
- /*!********************************************!*\
- !*** ./src/components/VCard/VCardMedia.ts ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VImg_VImg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../VImg/VImg */ "./src/components/VImg/VImg.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- // Components
-
- // Utils
-
- /* istanbul ignore next */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VImg_VImg__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
- name: 'v-card-media',
- mounted: function mounted() {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_1__["deprecate"])('v-card-media', this.src ? 'v-img' : 'v-responsive', this);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCard/VCardTitle.ts":
- /*!********************************************!*\
- !*** ./src/components/VCard/VCardTitle.ts ***!
- \********************************************/
- /*! 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__);
- // Types
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'v-card-title',
- functional: true,
- props: {
- primaryTitle: Boolean
- },
- render: function render(h, _a) {
- var data = _a.data,
- props = _a.props,
- children = _a.children;
- data.staticClass = ("v-card__title " + (data.staticClass || '')).trim();
- if (props.primaryTitle) data.staticClass += ' v-card__title--primary';
- return h('div', data, children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCard/index.ts":
- /*!***************************************!*\
- !*** ./src/components/VCard/index.ts ***!
- \***************************************/
- /*! exports provided: VCard, VCardMedia, VCardTitle, VCardActions, VCardText, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VCardActions", function() { return VCardActions; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VCardText", function() { return VCardText; });
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _VCard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VCard */ "./src/components/VCard/VCard.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCard", function() { return _VCard__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _VCardMedia__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VCardMedia */ "./src/components/VCard/VCardMedia.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCardMedia", function() { return _VCardMedia__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
- /* harmony import */ var _VCardTitle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VCardTitle */ "./src/components/VCard/VCardTitle.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCardTitle", function() { return _VCardTitle__WEBPACK_IMPORTED_MODULE_3__["default"]; });
-
-
-
-
-
- var VCardActions = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-card__actions');
- var VCardText = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-card__text');
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VCard: _VCard__WEBPACK_IMPORTED_MODULE_1__["default"],
- VCardMedia: _VCardMedia__WEBPACK_IMPORTED_MODULE_2__["default"],
- VCardTitle: _VCardTitle__WEBPACK_IMPORTED_MODULE_3__["default"],
- VCardActions: VCardActions,
- VCardText: VCardText
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VCarousel/VCarousel.ts":
- /*!***********************************************!*\
- !*** ./src/components/VCarousel/VCarousel.ts ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_carousel_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_carousel.styl */ "./src/stylus/components/_carousel.styl");
- /* harmony import */ var _stylus_components_carousel_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_carousel_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VWindow/VWindow */ "./src/components/VWindow/VWindow.ts");
- /* harmony import */ var _VBtn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VBtn */ "./src/components/VBtn/index.ts");
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _mixins_button_group__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/button-group */ "./src/mixins/button-group.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- // Styles
-
- // Extensions
-
- // Components
-
-
- // Mixins
- // TODO: Move this into core components v2.0
-
- // Utilities
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VWindow_VWindow__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
- name: 'v-carousel',
- props: {
- cycle: {
- type: Boolean,
- default: true
- },
- delimiterIcon: {
- type: String,
- default: '$vuetify.icons.delimiter'
- },
- height: {
- type: [Number, String],
- default: 500
- },
- hideControls: Boolean,
- hideDelimiters: Boolean,
- interval: {
- type: [Number, String],
- default: 6000,
- validator: function validator(value) {
- return value > 0;
- }
- },
- mandatory: {
- type: Boolean,
- default: true
- },
- nextIcon: {
- type: [Boolean, String],
- default: '$vuetify.icons.next'
- },
- prevIcon: {
- type: [Boolean, String],
- default: '$vuetify.icons.prev'
- }
- },
- data: function data() {
- return {
- changedByDelimiters: false,
- internalHeight: this.height,
- slideTimeout: undefined
- };
- },
- computed: {
- isDark: function isDark() {
- return this.dark || !this.light;
- }
- },
- watch: {
- internalValue: function internalValue(val) {
- this.restartTimeout();
- /* @deprecate */
- /* istanbul ignore else */
- if (!this.$listeners['input']) return;
- this.$emit('input', val);
- },
- interval: 'restartTimeout',
- height: function height(val, oldVal) {
- if (val === oldVal || !val) return;
- this.internalHeight = val;
- },
- cycle: function cycle(val) {
- if (val) {
- this.restartTimeout();
- } else {
- clearTimeout(this.slideTimeout);
- this.slideTimeout = undefined;
- }
- }
- },
- mounted: function mounted() {
- /* @deprecate */
- /* istanbul ignore next */
- if (this.$listeners['input']) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_6__["deprecate"])('@input', '@change', this);
- }
- this.startTimeout();
- },
- methods: {
- genDelimiters: function genDelimiters() {
- return this.$createElement('div', {
- staticClass: 'v-carousel__controls'
- }, [this.genItems()]);
- },
- genIcon: function genIcon(direction, icon, fn) {
- var _this = this;
- return this.$createElement('div', {
- staticClass: "v-carousel__" + direction
- }, [this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_2__["default"], {
- props: {
- icon: true
- },
- attrs: {
- 'aria-label': this.$vuetify.t("$vuetify.carousel." + direction)
- },
- on: {
- click: function click() {
- _this.changedByDelimiters = true;
- fn();
- }
- }
- }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
- props: { 'size': '46px' }
- }, icon)])]);
- },
- genIcons: function genIcons() {
- var icons = [];
- var prevIcon = this.$vuetify.rtl ? this.nextIcon : this.prevIcon;
- if (prevIcon && typeof prevIcon === 'string') {
- icons.push(this.genIcon('prev', prevIcon, this.prev));
- }
- var nextIcon = this.$vuetify.rtl ? this.prevIcon : this.nextIcon;
- if (nextIcon && typeof nextIcon === 'string') {
- icons.push(this.genIcon('next', nextIcon, this.next));
- }
- return icons;
- },
- genItems: function genItems() {
- var _this = this;
- var length = this.items.length;
- var children = [];
- for (var i = 0; i < length; i++) {
- var child = this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_2__["default"], {
- class: {
- 'v-carousel__controls__item': true
- },
- props: {
- icon: true,
- small: true,
- value: this.getValue(this.items[i], i)
- }
- }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
- props: { size: 18 }
- }, this.delimiterIcon)]);
- children.push(child);
- }
- return this.$createElement(_mixins_button_group__WEBPACK_IMPORTED_MODULE_4__["default"], {
- props: {
- value: this.internalValue
- },
- on: {
- change: function change(val) {
- _this.internalValue = val;
- }
- }
- }, children);
- },
- restartTimeout: function restartTimeout() {
- this.slideTimeout && clearTimeout(this.slideTimeout);
- this.slideTimeout = undefined;
- var raf = requestAnimationFrame || setTimeout;
- raf(this.startTimeout);
- },
- startTimeout: function startTimeout() {
- if (!this.cycle) return;
- this.slideTimeout = window.setTimeout(this.next, +this.interval > 0 ? +this.interval : 6000);
- },
- updateReverse: function updateReverse(val, oldVal) {
- if (this.changedByDelimiters) {
- this.changedByDelimiters = false;
- return;
- }
- _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.updateReverse.call(this, val, oldVal);
- }
- },
- render: function render(h) {
- var children = [];
- var data = {
- staticClass: 'v-window v-carousel',
- style: {
- height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["convertToUnit"])(this.height)
- },
- directives: []
- };
- if (!this.touchless) {
- data.directives.push({
- name: 'touch',
- value: {
- left: this.next,
- right: this.prev
- }
- });
- }
- if (!this.hideControls) {
- children.push(this.genIcons());
- }
- if (!this.hideDelimiters) {
- children.push(this.genDelimiters());
- }
- return h('div', data, [this.genContainer(), children]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCarousel/VCarouselItem.ts":
- /*!***************************************************!*\
- !*** ./src/components/VCarousel/VCarouselItem.ts ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VWindow_VWindowItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../VWindow/VWindowItem */ "./src/components/VWindow/VWindowItem.ts");
- /* harmony import */ var _VImg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VImg */ "./src/components/VImg/index.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Extensions
-
- // Components
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VWindow_VWindowItem__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
- name: 'v-carousel-item',
- inheritAttrs: false,
- methods: {
- genDefaultSlot: function genDefaultSlot() {
- return [this.$createElement(_VImg__WEBPACK_IMPORTED_MODULE_1__["VImg"], {
- staticClass: 'v-carousel__item',
- props: __assign({}, this.$attrs, { height: this.windowGroup.internalHeight }),
- on: this.$listeners
- }, this.$slots.default)];
- },
- onBeforeEnter: function onBeforeEnter() {},
- onEnter: function onEnter() {},
- onAfterEnter: function onAfterEnter() {},
- onBeforeLeave: function onBeforeLeave() {},
- onEnterCancelled: function onEnterCancelled() {}
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCarousel/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VCarousel/index.ts ***!
- \*******************************************/
- /*! exports provided: VCarousel, VCarouselItem, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VCarousel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VCarousel */ "./src/components/VCarousel/VCarousel.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCarousel", function() { return _VCarousel__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VCarouselItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VCarouselItem */ "./src/components/VCarousel/VCarouselItem.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCarouselItem", function() { return _VCarouselItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VCarousel: _VCarousel__WEBPACK_IMPORTED_MODULE_0__["default"],
- VCarouselItem: _VCarouselItem__WEBPACK_IMPORTED_MODULE_1__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VCheckbox/VCheckbox.js":
- /*!***********************************************!*\
- !*** ./src/components/VCheckbox/VCheckbox.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_selection_controls_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_selection-controls.styl */ "./src/stylus/components/_selection-controls.styl");
- /* harmony import */ var _stylus_components_selection_controls_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_selection_controls_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _mixins_selectable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/selectable */ "./src/mixins/selectable.js");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Components
-
- // import { VFadeTransition } from '../transitions'
- // Mixins
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-checkbox',
- mixins: [_mixins_selectable__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- indeterminate: Boolean,
- indeterminateIcon: {
- type: String,
- default: '$vuetify.icons.checkboxIndeterminate'
- },
- onIcon: {
- type: String,
- default: '$vuetify.icons.checkboxOn'
- },
- offIcon: {
- type: String,
- default: '$vuetify.icons.checkboxOff'
- }
- },
- data: function data(vm) {
- return {
- inputIndeterminate: vm.indeterminate
- };
- },
- computed: {
- classes: function classes() {
- return {
- 'v-input--selection-controls': true,
- 'v-input--checkbox': true
- };
- },
- computedIcon: function computedIcon() {
- if (this.inputIndeterminate) {
- return this.indeterminateIcon;
- } else if (this.isActive) {
- return this.onIcon;
- } else {
- return this.offIcon;
- }
- }
- },
- watch: {
- indeterminate: function indeterminate(val) {
- this.inputIndeterminate = val;
- }
- },
- methods: {
- genCheckbox: function genCheckbox() {
- return this.$createElement('div', {
- staticClass: 'v-input--selection-controls__input'
- }, [this.genInput('checkbox', __assign({}, this.$attrs, { 'aria-checked': this.inputIndeterminate ? 'mixed' : this.isActive.toString() })), this.genRipple(this.setTextColor(this.computedColor)), this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], this.setTextColor(this.computedColor, {
- props: {
- dark: this.dark,
- light: this.light
- }
- }), this.computedIcon)]);
- },
- genDefaultSlot: function genDefaultSlot() {
- return [this.genCheckbox(), this.genLabel()];
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VCheckbox/index.js":
- /*!*******************************************!*\
- !*** ./src/components/VCheckbox/index.js ***!
- \*******************************************/
- /*! exports provided: VCheckbox, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VCheckbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VCheckbox */ "./src/components/VCheckbox/VCheckbox.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCheckbox", function() { return _VCheckbox__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VCheckbox__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VChip/VChip.ts":
- /*!***************************************!*\
- !*** ./src/components/VChip/VChip.ts ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_chips_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_chips.styl */ "./src/stylus/components/_chips.styl");
- /* harmony import */ var _stylus_components_chips_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_chips_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
-
- // Components
-
- // Mixins
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_5__["default"]).extend({
- name: 'v-chip',
- props: {
- close: Boolean,
- disabled: Boolean,
- label: Boolean,
- outline: Boolean,
- // Used for selects/tagging
- selected: Boolean,
- small: Boolean,
- textColor: String,
- value: {
- type: Boolean,
- default: true
- }
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-chip--disabled': this.disabled, 'v-chip--selected': this.selected && !this.disabled, 'v-chip--label': this.label, 'v-chip--outline': this.outline, 'v-chip--small': this.small, 'v-chip--removable': this.close }, this.themeClasses);
- }
- },
- methods: {
- genClose: function genClose(h) {
- var _this = this;
- var data = {
- staticClass: 'v-chip__close',
- on: {
- click: function click(e) {
- e.stopPropagation();
- _this.$emit('input', false);
- }
- }
- };
- return h('div', data, [h(_VIcon__WEBPACK_IMPORTED_MODULE_2__["default"], '$vuetify.icons.delete')]);
- },
- genContent: function genContent(h) {
- return h('span', {
- staticClass: 'v-chip__content'
- }, [this.$slots.default, this.close && this.genClose(h)]);
- }
- },
- render: function render(h) {
- var data = this.setBackgroundColor(this.color, {
- staticClass: 'v-chip',
- 'class': this.classes,
- attrs: { tabindex: this.disabled ? -1 : 0 },
- directives: [{
- name: 'show',
- value: this.isActive
- }],
- on: this.$listeners
- });
- var color = this.textColor || this.outline && this.color;
- return h('span', this.setTextColor(color, data), [this.genContent(h)]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VChip/index.ts":
- /*!***************************************!*\
- !*** ./src/components/VChip/index.ts ***!
- \***************************************/
- /*! exports provided: VChip, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VChip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VChip */ "./src/components/VChip/VChip.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VChip", function() { return _VChip__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VChip__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VCombobox/VCombobox.js":
- /*!***********************************************!*\
- !*** ./src/components/VCombobox/VCombobox.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_autocompletes_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_autocompletes.styl */ "./src/stylus/components/_autocompletes.styl");
- /* harmony import */ var _stylus_components_autocompletes_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_autocompletes_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VSelect/VSelect */ "./src/components/VSelect/VSelect.js");
- /* harmony import */ var _VAutocomplete_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VAutocomplete/VAutocomplete */ "./src/components/VAutocomplete/VAutocomplete.js");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- // Styles
-
- // Extensions
-
-
- // Utils
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-combobox',
- extends: _VAutocomplete_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"],
- props: {
- delimiters: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- returnObject: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- editingIndex: -1
- };
- },
- computed: {
- counterValue: function counterValue() {
- return this.multiple ? this.selectedItems.length : (this.internalSearch || '').toString().length;
- },
- hasSlot: function hasSlot() {
- return _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.hasSlot.call(this) || this.multiple;
- },
- isAnyValueAllowed: function isAnyValueAllowed() {
- return true;
- },
- menuCanShow: function menuCanShow() {
- if (!this.isFocused) return false;
- return this.hasDisplayedItems || !!this.$slots['no-data'] && !this.hideNoData;
- }
- },
- methods: {
- onFilteredItemsChanged: function onFilteredItemsChanged() {
- // nop
- },
- onInternalSearchChanged: function onInternalSearchChanged(val) {
- if (val && this.multiple && this.delimiters.length) {
- var delimiter = this.delimiters.find(function (d) {
- return val.endsWith(d);
- });
- if (delimiter != null) {
- this.internalSearch = val.slice(0, val.length - delimiter.length);
- this.updateTags();
- }
- }
- this.updateMenuDimensions();
- },
- genChipSelection: function genChipSelection(item, index) {
- var _this = this;
- var chip = _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genChipSelection.call(this, item, index);
- // Allow user to update an existing value
- if (this.multiple) {
- chip.componentOptions.listeners.dblclick = function () {
- _this.editingIndex = index;
- _this.internalSearch = _this.getText(item);
- _this.selectedIndex = -1;
- };
- }
- return chip;
- },
- onChipInput: function onChipInput(item) {
- _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onChipInput.call(this, item);
- this.editingIndex = -1;
- },
- // Requires a manual definition
- // to overwrite removal in v-autocomplete
- onEnterDown: function onEnterDown(e) {
- e.preventDefault();
- _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onEnterDown.call(this);
- // If has menu index, let v-select-list handle
- if (this.getMenuIndex() > -1) return;
- this.updateSelf();
- },
- onKeyDown: function onKeyDown(e) {
- var keyCode = e.keyCode;
- _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onKeyDown.call(this, e);
- // If user is at selection index of 0
- // create a new tag
- if (this.multiple && keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].left && this.$refs.input.selectionStart === 0) {
- this.updateSelf();
- }
- // The ordering is important here
- // allows new value to be updated
- // and then moves the index to the
- // proper location
- this.changeSelectedIndex(keyCode);
- },
- onTabDown: function onTabDown(e) {
- // When adding tags, if searching and
- // there is not a filtered options,
- // add the value to the tags list
- if (this.multiple && this.internalSearch && this.getMenuIndex() === -1) {
- e.preventDefault();
- e.stopPropagation();
- return this.updateTags();
- }
- _VAutocomplete_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.onTabDown.call(this, e);
- },
- selectItem: function selectItem(item) {
- // Currently only supports items:<string[]>
- if (this.editingIndex > -1) {
- this.updateEditing();
- } else {
- _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.selectItem.call(this, item);
- }
- },
- setSelectedItems: function setSelectedItems() {
- if (this.internalValue == null || this.internalValue === '') {
- this.selectedItems = [];
- } else {
- this.selectedItems = this.multiple ? this.internalValue : [this.internalValue];
- }
- },
- setValue: function setValue(value) {
- if (value === void 0) {
- value = this.internalSearch;
- }
- _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.setValue.call(this, value);
- },
- updateEditing: function updateEditing() {
- var value = this.internalValue.slice();
- value[this.editingIndex] = this.internalSearch;
- this.setValue(value);
- this.editingIndex = -1;
- },
- updateCombobox: function updateCombobox() {
- var isUsingSlot = Boolean(this.$scopedSlots.selection) || this.hasChips;
- // If search is not dirty and is
- // using slot, do nothing
- if (isUsingSlot && !this.searchIsDirty) return;
- // The internal search is not matching
- // the internal value, update the input
- if (this.internalSearch !== this.getText(this.internalValue)) this.setValue();
- // Reset search if using slot
- // to avoid a double input
- if (isUsingSlot) this.internalSearch = undefined;
- },
- updateSelf: function updateSelf() {
- this.multiple ? this.updateTags() : this.updateCombobox();
- },
- updateTags: function updateTags() {
- var menuIndex = this.getMenuIndex();
- // If the user is not searching
- // and no menu item is selected
- // do nothing
- if (menuIndex < 0 && !this.searchIsDirty) return;
- if (this.editingIndex > -1) {
- return this.updateEditing();
- }
- var index = this.selectedItems.indexOf(this.internalSearch);
- // If it already exists, do nothing
- // this might need to change to bring
- // the duplicated item to the last entered
- if (index > -1) {
- var internalValue = this.internalValue.slice();
- internalValue.splice(index, 1);
- this.setValue(internalValue);
- }
- // If menu index is greater than 1
- // the selection is handled elsewhere
- // TODO: find out where
- if (menuIndex > -1) return this.internalSearch = null;
- this.selectItem(this.internalSearch);
- this.internalSearch = null;
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VCombobox/index.js":
- /*!*******************************************!*\
- !*** ./src/components/VCombobox/index.js ***!
- \*******************************************/
- /*! exports provided: VCombobox, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VCombobox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VCombobox */ "./src/components/VCombobox/VCombobox.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCombobox", function() { return _VCombobox__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VCombobox__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VCounter/VCounter.ts":
- /*!*********************************************!*\
- !*** ./src/components/VCounter/VCounter.ts ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_counters_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_counters.styl */ "./src/stylus/components/_counters.styl");
- /* harmony import */ var _stylus_components_counters_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_counters_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Mixins
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
- name: 'v-counter',
- functional: true,
- props: {
- value: {
- type: [Number, String],
- default: ''
- },
- max: [Number, String]
- },
- render: function render(h, ctx) {
- var props = ctx.props;
- var max = parseInt(props.max, 10);
- var value = parseInt(props.value, 10);
- var content = max ? value + " / " + max : String(props.value);
- var isGreater = max && value > max;
- return h('div', {
- staticClass: 'v-counter',
- class: __assign({ 'error--text': isGreater }, Object(_mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["functionalThemeClasses"])(ctx))
- }, content);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VCounter/index.ts":
- /*!******************************************!*\
- !*** ./src/components/VCounter/index.ts ***!
- \******************************************/
- /*! exports provided: VCounter, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VCounter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VCounter */ "./src/components/VCounter/VCounter.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCounter", function() { return _VCounter__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VCounter__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VDataIterator/VDataIterator.js":
- /*!*******************************************************!*\
- !*** ./src/components/VDataIterator/VDataIterator.js ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_data_iterator_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_data-iterator.styl */ "./src/stylus/components/_data-iterator.styl");
- /* harmony import */ var _stylus_components_data_iterator_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_data_iterator_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_data_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/data-iterable */ "./src/mixins/data-iterable.js");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-data-iterator',
- mixins: [_mixins_data_iterable__WEBPACK_IMPORTED_MODULE_1__["default"]],
- inheritAttrs: false,
- props: {
- contentTag: {
- type: String,
- default: 'div'
- },
- contentProps: {
- type: Object,
- required: false
- },
- contentClass: {
- type: String,
- required: false
- }
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-data-iterator': true, 'v-data-iterator--select-all': this.selectAll !== false }, this.themeClasses);
- }
- },
- created: function created() {
- this.initPagination();
- },
- methods: {
- genContent: function genContent() {
- var children = this.genItems();
- var data = {
- 'class': this.contentClass,
- attrs: this.$attrs,
- on: this.$listeners,
- props: this.contentProps
- };
- return this.$createElement(this.contentTag, data, children);
- },
- genEmptyItems: function genEmptyItems(content) {
- return [this.$createElement('div', {
- 'class': 'text-xs-center',
- style: 'width: 100%'
- }, content)];
- },
- genFilteredItems: function genFilteredItems() {
- if (!this.$scopedSlots.item) {
- return null;
- }
- var items = [];
- for (var index = 0, len = this.filteredItems.length; index < len; ++index) {
- var item = this.filteredItems[index];
- var props = this.createProps(item, index);
- items.push(this.$scopedSlots.item(props));
- }
- return items;
- },
- genFooter: function genFooter() {
- var children = [];
- if (this.$slots.footer) {
- children.push(this.$slots.footer);
- }
- if (!this.hideActions) {
- children.push(this.genActions());
- }
- if (!children.length) return null;
- return this.$createElement('div', children);
- },
- genHeader: function genHeader() {
- var children = [];
- if (this.$slots.header) {
- children.push(this.$slots.header);
- }
- if (!children.length) return null;
- return this.$createElement('div', children);
- }
- },
- render: function render(h) {
- return h('div', {
- 'class': this.classes
- }, [this.genHeader(), this.genContent(), this.genFooter()]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VDataIterator/index.js":
- /*!***********************************************!*\
- !*** ./src/components/VDataIterator/index.js ***!
- \***********************************************/
- /*! exports provided: VDataIterator, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VDataIterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VDataIterator */ "./src/components/VDataIterator/VDataIterator.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDataIterator", function() { return _VDataIterator__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VDataIterator__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VDataTable/VDataTable.js":
- /*!*************************************************!*\
- !*** ./src/components/VDataTable/VDataTable.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_tables_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_tables.styl */ "./src/stylus/components/_tables.styl");
- /* harmony import */ var _stylus_components_tables_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_tables_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _stylus_components_data_table_styl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../stylus/components/_data-table.styl */ "./src/stylus/components/_data-table.styl");
- /* harmony import */ var _stylus_components_data_table_styl__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_data_table_styl__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _mixins_data_iterable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/data-iterable */ "./src/mixins/data-iterable.js");
- /* harmony import */ var _mixins_head__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./mixins/head */ "./src/components/VDataTable/mixins/head.js");
- /* harmony import */ var _mixins_body__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mixins/body */ "./src/components/VDataTable/mixins/body.js");
- /* harmony import */ var _mixins_foot__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mixins/foot */ "./src/components/VDataTable/mixins/foot.js");
- /* harmony import */ var _mixins_progress__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mixins/progress */ "./src/components/VDataTable/mixins/progress.js");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
-
-
-
-
-
-
-
- // Importing does not work properly
- var VTableOverflow = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["createSimpleFunctional"])('v-table__overflow');
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-data-table',
- mixins: [_mixins_data_iterable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_head__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_body__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_foot__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_progress__WEBPACK_IMPORTED_MODULE_6__["default"]],
- props: {
- headers: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- headersLength: {
- type: Number
- },
- headerText: {
- type: String,
- default: 'text'
- },
- headerKey: {
- type: String,
- default: null
- },
- hideHeaders: Boolean,
- rowsPerPageText: {
- type: String,
- default: '$vuetify.dataTable.rowsPerPageText'
- },
- customFilter: {
- type: Function,
- default: function _default(items, search, filter, headers) {
- search = search.toString().toLowerCase();
- if (search.trim() === '') return items;
- var props = headers.map(function (h) {
- return h.value;
- });
- return items.filter(function (item) {
- return props.some(function (prop) {
- return filter(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["getObjectValueByPath"])(item, prop, item[prop]), search);
- });
- });
- }
- }
- },
- data: function data() {
- return {
- actionsClasses: 'v-datatable__actions',
- actionsRangeControlsClasses: 'v-datatable__actions__range-controls',
- actionsSelectClasses: 'v-datatable__actions__select',
- actionsPaginationClasses: 'v-datatable__actions__pagination'
- };
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-datatable v-table': true, 'v-datatable--select-all': this.selectAll !== false }, this.themeClasses);
- },
- filteredItems: function filteredItems() {
- return this.filteredItemsImpl(this.headers);
- },
- headerColumns: function headerColumns() {
- return this.headersLength || this.headers.length + (this.selectAll !== false);
- }
- },
- created: function created() {
- var firstSortable = this.headers.find(function (h) {
- return !('sortable' in h) || h.sortable;
- });
- this.defaultPagination.sortBy = !this.disableInitialSort && firstSortable ? firstSortable.value : null;
- this.initPagination();
- },
- methods: {
- hasTag: function hasTag(elements, tag) {
- return Array.isArray(elements) && elements.find(function (e) {
- return e.tag === tag;
- });
- },
- genTR: function genTR(children, data) {
- if (data === void 0) {
- data = {};
- }
- return this.$createElement('tr', data, children);
- }
- },
- render: function render(h) {
- var tableOverflow = h(VTableOverflow, {}, [h('table', {
- 'class': this.classes
- }, [this.genTHead(), this.genTBody(), this.genTFoot()])]);
- return h('div', [tableOverflow, this.genActionsFooter()]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VDataTable/VEditDialog.js":
- /*!**************************************************!*\
- !*** ./src/components/VDataTable/VEditDialog.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_small_dialog_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_small-dialog.styl */ "./src/stylus/components/_small-dialog.styl");
- /* harmony import */ var _stylus_components_small_dialog_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_small_dialog_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_returnable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/returnable */ "./src/mixins/returnable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _VBtn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../VBtn */ "./src/components/VBtn/index.ts");
- /* harmony import */ var _VMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../VMenu */ "./src/components/VMenu/index.js");
-
- // Mixins
-
-
- // Utils
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-edit-dialog',
- mixins: [_mixins_returnable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- cancelText: {
- default: 'Cancel'
- },
- large: Boolean,
- lazy: Boolean,
- persistent: Boolean,
- saveText: {
- default: 'Save'
- },
- transition: {
- type: String,
- default: 'slide-x-reverse-transition'
- }
- },
- data: function data() {
- return {
- isActive: false
- };
- },
- watch: {
- isActive: function isActive(val) {
- if (val) {
- this.$emit('open');
- setTimeout(this.focus, 50); // Give DOM time to paint
- } else {
- this.$emit('close');
- }
- }
- },
- methods: {
- cancel: function cancel() {
- this.isActive = false;
- this.$emit('cancel');
- },
- focus: function focus() {
- var input = this.$refs.content.querySelector('input');
- input && input.focus();
- },
- genButton: function genButton(fn, text) {
- return this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_4__["default"], {
- props: {
- flat: true,
- color: 'primary',
- light: true
- },
- on: { click: fn }
- }, text);
- },
- genActions: function genActions() {
- var _this = this;
- return this.$createElement('div', {
- 'class': 'v-small-dialog__actions'
- }, [this.genButton(this.cancel, this.cancelText), this.genButton(function () {
- _this.save(_this.returnValue);
- _this.$emit('save');
- }, this.saveText)]);
- },
- genContent: function genContent() {
- var _this = this;
- return this.$createElement('div', {
- on: {
- keydown: function keydown(e) {
- var input = _this.$refs.content.querySelector('input');
- e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].esc && _this.cancel();
- if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_3__["keyCodes"].enter && input) {
- _this.save(input.value);
- _this.$emit('save');
- }
- }
- },
- ref: 'content'
- }, [this.$slots.input]);
- }
- },
- render: function render(h) {
- var _this = this;
- return h(_VMenu__WEBPACK_IMPORTED_MODULE_5__["default"], {
- staticClass: 'v-small-dialog',
- class: this.themeClasses,
- props: {
- contentClass: 'v-small-dialog__content',
- transition: this.transition,
- origin: 'top right',
- right: true,
- value: this.isActive,
- closeOnClick: !this.persistent,
- closeOnContentClick: false,
- lazy: this.lazy,
- light: this.light,
- dark: this.dark
- },
- on: {
- input: function input(val) {
- return _this.isActive = val;
- }
- }
- }, [h('a', {
- slot: 'activator'
- }, this.$slots.default), this.genContent(), this.large ? this.genActions() : null]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VDataTable/index.js":
- /*!********************************************!*\
- !*** ./src/components/VDataTable/index.js ***!
- \********************************************/
- /*! exports provided: VDataTable, VEditDialog, VTableOverflow, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VTableOverflow", function() { return VTableOverflow; });
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _VDataTable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VDataTable */ "./src/components/VDataTable/VDataTable.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDataTable", function() { return _VDataTable__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _VEditDialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VEditDialog */ "./src/components/VDataTable/VEditDialog.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VEditDialog", function() { return _VEditDialog__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
-
-
-
- var VTableOverflow = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-table__overflow');
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VDataTable: _VDataTable__WEBPACK_IMPORTED_MODULE_1__["default"],
- VEditDialog: _VEditDialog__WEBPACK_IMPORTED_MODULE_2__["default"],
- VTableOverflow: VTableOverflow
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VDataTable/mixins/body.js":
- /*!**************************************************!*\
- !*** ./src/components/VDataTable/mixins/body.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _transitions_expand_transition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../transitions/expand-transition */ "./src/components/transitions/expand-transition.js");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../util/helpers */ "./src/util/helpers.ts");
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- methods: {
- genTBody: function genTBody() {
- var children = this.genItems();
- return this.$createElement('tbody', children);
- },
- genExpandedRow: function genExpandedRow(props) {
- var children = [];
- if (this.isExpanded(props.item)) {
- var expand = this.$createElement('div', {
- class: 'v-datatable__expand-content',
- key: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getObjectValueByPath"])(props.item, this.itemKey)
- }, [this.$scopedSlots.expand(props)]);
- children.push(expand);
- }
- var transition = this.$createElement('transition-group', {
- class: 'v-datatable__expand-col',
- attrs: { colspan: this.headerColumns },
- props: {
- tag: 'td'
- },
- on: Object(_transitions_expand_transition__WEBPACK_IMPORTED_MODULE_0__["default"])('v-datatable__expand-col--expanded')
- }, children);
- return this.genTR([transition], { class: 'v-datatable__expand-row' });
- },
- genFilteredItems: function genFilteredItems() {
- if (!this.$scopedSlots.items) {
- return null;
- }
- var rows = [];
- for (var index = 0, len = this.filteredItems.length; index < len; ++index) {
- var item = this.filteredItems[index];
- var props = this.createProps(item, index);
- var row = this.$scopedSlots.items(props);
- rows.push(this.hasTag(row, 'td') ? this.genTR(row, {
- key: this.itemKey ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getObjectValueByPath"])(props.item, this.itemKey) : index,
- attrs: { active: this.isSelected(item) }
- }) : row);
- if (this.$scopedSlots.expand) {
- var expandRow = this.genExpandedRow(props);
- rows.push(expandRow);
- }
- }
- return rows;
- },
- genEmptyItems: function genEmptyItems(content) {
- if (this.hasTag(content, 'tr')) {
- return content;
- } else if (this.hasTag(content, 'td')) {
- return this.genTR(content);
- } else {
- return this.genTR([this.$createElement('td', {
- class: {
- 'text-xs-center': typeof content === 'string'
- },
- attrs: { colspan: this.headerColumns }
- }, content)]);
- }
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VDataTable/mixins/foot.js":
- /*!**************************************************!*\
- !*** ./src/components/VDataTable/mixins/foot.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- methods: {
- genTFoot: function genTFoot() {
- if (!this.$slots.footer) {
- return null;
- }
- var footer = this.$slots.footer;
- var row = this.hasTag(footer, 'td') ? this.genTR(footer) : footer;
- return this.$createElement('tfoot', [row]);
- },
- genActionsFooter: function genActionsFooter() {
- if (this.hideActions) {
- return null;
- }
- return this.$createElement('div', {
- 'class': this.classes
- }, this.genActions());
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VDataTable/mixins/head.js":
- /*!**************************************************!*\
- !*** ./src/components/VDataTable/mixins/head.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/console */ "./src/util/console.ts");
- /* harmony import */ var _VCheckbox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../VCheckbox */ "./src/components/VCheckbox/index.js");
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../VIcon */ "./src/components/VIcon/index.ts");
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- sortIcon: {
- type: String,
- default: '$vuetify.icons.sort'
- }
- },
- methods: {
- genTHead: function genTHead() {
- var _this = this;
- if (this.hideHeaders) return; // Exit Early since no headers are needed.
- var children = [];
- if (this.$scopedSlots.headers) {
- var row = this.$scopedSlots.headers({
- headers: this.headers,
- indeterminate: this.indeterminate,
- all: this.everyItem
- });
- children = [this.hasTag(row, 'th') ? this.genTR(row) : row, this.genTProgress()];
- } else {
- var row = this.headers.map(function (o, i) {
- return _this.genHeader(o, _this.headerKey ? o[_this.headerKey] : i);
- });
- var checkbox = this.$createElement(_VCheckbox__WEBPACK_IMPORTED_MODULE_1__["default"], {
- props: {
- dark: this.dark,
- light: this.light,
- color: this.selectAll === true ? '' : this.selectAll,
- hideDetails: true,
- inputValue: this.everyItem,
- indeterminate: this.indeterminate
- },
- on: { change: this.toggle }
- });
- this.hasSelectAll && row.unshift(this.$createElement('th', [checkbox]));
- children = [this.genTR(row), this.genTProgress()];
- }
- return this.$createElement('thead', [children]);
- },
- genHeader: function genHeader(header, key) {
- var array = [this.$scopedSlots.headerCell ? this.$scopedSlots.headerCell({ header: header }) : header[this.headerText]];
- return this.$createElement.apply(this, __spread(['th'], this.genHeaderData(header, array, key)));
- },
- genHeaderData: function genHeaderData(header, children, key) {
- var classes = ['column'];
- var data = {
- key: key,
- attrs: {
- role: 'columnheader',
- scope: 'col',
- width: header.width || null,
- 'aria-label': header[this.headerText] || '',
- 'aria-sort': 'none'
- }
- };
- if (header.sortable == null || header.sortable) {
- this.genHeaderSortingData(header, children, data, classes);
- } else {
- data.attrs['aria-label'] += ': Not sorted.'; // TODO: Localization
- }
- classes.push("text-xs-" + (header.align || 'left'));
- if (Array.isArray(header.class)) {
- classes.push.apply(classes, __spread(header.class));
- } else if (header.class) {
- classes.push(header.class);
- }
- data.class = classes;
- return [data, children];
- },
- genHeaderSortingData: function genHeaderSortingData(header, children, data, classes) {
- var _this = this;
- if (!('value' in header)) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_0__["consoleWarn"])('Headers must have a value property that corresponds to a value in the v-model array', this);
- }
- data.attrs.tabIndex = 0;
- data.on = {
- click: function click() {
- _this.expanded = {};
- _this.sort(header.value);
- },
- keydown: function keydown(e) {
- // check for space
- if (e.keyCode === 32) {
- e.preventDefault();
- _this.sort(header.value);
- }
- }
- };
- classes.push('sortable');
- var icon = this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_2__["default"], {
- props: {
- small: true
- }
- }, this.sortIcon);
- if (!header.align || header.align === 'left') {
- children.push(icon);
- } else {
- children.unshift(icon);
- }
- var pagination = this.computedPagination;
- var beingSorted = pagination.sortBy === header.value;
- if (beingSorted) {
- classes.push('active');
- if (pagination.descending) {
- classes.push('desc');
- data.attrs['aria-sort'] = 'descending';
- data.attrs['aria-label'] += ': Sorted descending. Activate to remove sorting.'; // TODO: Localization
- } else {
- classes.push('asc');
- data.attrs['aria-sort'] = 'ascending';
- data.attrs['aria-label'] += ': Sorted ascending. Activate to sort descending.'; // TODO: Localization
- }
- } else {
- data.attrs['aria-label'] += ': Not sorted. Activate to sort ascending.'; // TODO: Localization
- }
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VDataTable/mixins/progress.js":
- /*!******************************************************!*\
- !*** ./src/components/VDataTable/mixins/progress.js ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- methods: {
- genTProgress: function genTProgress() {
- var col = this.$createElement('th', {
- staticClass: 'column',
- attrs: {
- colspan: this.headerColumns
- }
- }, [this.genProgress()]);
- return this.genTR([col], {
- staticClass: 'v-datatable__progress'
- });
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/VDatePicker.ts":
- /*!***************************************************!*\
- !*** ./src/components/VDatePicker/VDatePicker.ts ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VDatePickerTitle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VDatePickerTitle */ "./src/components/VDatePicker/VDatePickerTitle.ts");
- /* harmony import */ var _VDatePickerHeader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VDatePickerHeader */ "./src/components/VDatePicker/VDatePickerHeader.ts");
- /* harmony import */ var _VDatePickerDateTable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VDatePickerDateTable */ "./src/components/VDatePicker/VDatePickerDateTable.ts");
- /* harmony import */ var _VDatePickerMonthTable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VDatePickerMonthTable */ "./src/components/VDatePicker/VDatePickerMonthTable.ts");
- /* harmony import */ var _VDatePickerYears__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VDatePickerYears */ "./src/components/VDatePicker/VDatePickerYears.ts");
- /* harmony import */ var _mixins_picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/picker */ "./src/mixins/picker.ts");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./util */ "./src/components/VDatePicker/util/index.ts");
- /* harmony import */ var _util_isDateAllowed__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util/isDateAllowed */ "./src/components/VDatePicker/util/isDateAllowed.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- /* harmony import */ var _VCalendar_util_timestamp__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../VCalendar/util/timestamp */ "./src/components/VCalendar/util/timestamp.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- // Components
-
-
-
-
-
- // Mixins
-
- // Utils
-
-
-
-
-
- // Adds leading zero to month/day if necessary, returns 'YYYY' if type = 'year',
- // 'YYYY-MM' if 'month' and 'YYYY-MM-DD' if 'date'
- function sanitizeDateString(dateString, type) {
- var _a = __read(dateString.split('-'), 3),
- year = _a[0],
- _b = _a[1],
- month = _b === void 0 ? 1 : _b,
- _c = _a[2],
- date = _c === void 0 ? 1 : _c;
- return (year + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])(month) + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])(date)).substr(0, { date: 10, month: 7, year: 4 }[type]);
- }
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_10__["default"])(_mixins_picker__WEBPACK_IMPORTED_MODULE_5__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-date-picker',
- props: {
- allowedDates: Function,
- // Function formatting the day in date picker table
- dayFormat: Function,
- disabled: Boolean,
- events: {
- type: [Array, Function, Object],
- default: function _default() {
- return null;
- }
- },
- eventColor: {
- type: [Array, Function, Object, String],
- default: function _default() {
- return 'warning';
- }
- },
- firstDayOfWeek: {
- type: [String, Number],
- default: 0
- },
- // Function formatting the tableDate in the day/month table header
- headerDateFormat: Function,
- locale: {
- type: String,
- default: 'en-us'
- },
- max: String,
- min: String,
- // Function formatting month in the months table
- monthFormat: Function,
- multiple: Boolean,
- nextIcon: {
- type: String,
- default: '$vuetify.icons.next'
- },
- pickerDate: String,
- prevIcon: {
- type: String,
- default: '$vuetify.icons.prev'
- },
- reactive: Boolean,
- readonly: Boolean,
- scrollable: Boolean,
- showCurrent: {
- type: [Boolean, String],
- default: true
- },
- showWeek: Boolean,
- // Function formatting currently selected date in the picker title
- titleDateFormat: Function,
- type: {
- type: String,
- default: 'date',
- validator: function validator(type) {
- return ['date', 'month'].includes(type);
- } // TODO: year
- },
- value: [Array, String],
- weekdayFormat: Function,
- // Function formatting the year in table header and pickup title
- yearFormat: Function,
- yearIcon: String
- },
- data: function data() {
- var _this = this;
- var now = new Date();
- return {
- activePicker: this.type.toUpperCase(),
- inputDay: null,
- inputMonth: null,
- inputYear: null,
- isReversing: false,
- now: now,
- // tableDate is a string in 'YYYY' / 'YYYY-M' format (leading zero for month is not required)
- tableDate: function () {
- if (_this.pickerDate) {
- return _this.pickerDate;
- }
- var date = (_this.multiple ? _this.value[_this.value.length - 1] : _this.value) || now.getFullYear() + "-" + (now.getMonth() + 1);
- return sanitizeDateString(date, _this.type === 'date' ? 'month' : 'year');
- }()
- };
- },
- computed: {
- lastValue: function lastValue() {
- return this.multiple ? this.value[this.value.length - 1] : this.value;
- },
- selectedMonths: function selectedMonths() {
- if (!this.value || !this.value.length || this.type === 'month') {
- return this.value;
- } else if (this.multiple) {
- return this.value.map(function (val) {
- return val.substr(0, 7);
- });
- } else {
- return this.value.substr(0, 7);
- }
- },
- current: function current() {
- if (this.showCurrent === true) {
- return sanitizeDateString(this.now.getFullYear() + "-" + (this.now.getMonth() + 1) + "-" + this.now.getDate(), this.type);
- }
- return this.showCurrent || null;
- },
- inputDate: function inputDate() {
- return this.type === 'date' ? this.inputYear + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])(this.inputMonth + 1) + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])(this.inputDay) : this.inputYear + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])(this.inputMonth + 1);
- },
- tableMonth: function tableMonth() {
- return Number((this.pickerDate || this.tableDate).split('-')[1]) - 1;
- },
- tableYear: function tableYear() {
- return Number((this.pickerDate || this.tableDate).split('-')[0]);
- },
- minMonth: function minMonth() {
- return this.min ? sanitizeDateString(this.min, 'month') : null;
- },
- maxMonth: function maxMonth() {
- return this.max ? sanitizeDateString(this.max, 'month') : null;
- },
- minYear: function minYear() {
- return this.min ? sanitizeDateString(this.min, 'year') : null;
- },
- maxYear: function maxYear() {
- return this.max ? sanitizeDateString(this.max, 'year') : null;
- },
- formatters: function formatters() {
- return {
- year: this.yearFormat || Object(_util__WEBPACK_IMPORTED_MODULE_6__["createNativeLocaleFormatter"])(this.locale, { year: 'numeric', timeZone: 'UTC' }, { length: 4 }),
- titleDate: this.titleDateFormat || (this.multiple ? this.defaultTitleMultipleDateFormatter : this.defaultTitleDateFormatter)
- };
- },
- defaultTitleMultipleDateFormatter: function defaultTitleMultipleDateFormatter() {
- var _this = this;
- if (this.value.length < 2) {
- return function (dates) {
- return dates.length ? _this.defaultTitleDateFormatter(dates[0]) : '0 selected';
- };
- }
- return function (dates) {
- return dates.length + " selected";
- };
- },
- defaultTitleDateFormatter: function defaultTitleDateFormatter() {
- var titleFormats = {
- year: { year: 'numeric', timeZone: 'UTC' },
- month: { month: 'long', timeZone: 'UTC' },
- date: { weekday: 'short', month: 'short', day: 'numeric', timeZone: 'UTC' }
- };
- var titleDateFormatter = Object(_util__WEBPACK_IMPORTED_MODULE_6__["createNativeLocaleFormatter"])(this.locale, titleFormats[this.type], {
- start: 0,
- length: { date: 10, month: 7, year: 4 }[this.type]
- });
- var landscapeFormatter = function landscapeFormatter(date) {
- return titleDateFormatter(date).replace(/([^\d\s])([\d])/g, function (match, nonDigit, digit) {
- return nonDigit + " " + digit;
- }).replace(', ', ',<br>');
- };
- return this.landscape ? landscapeFormatter : titleDateFormatter;
- }
- },
- watch: {
- tableDate: function tableDate(val, prev) {
- // Make a ISO 8601 strings from val and prev for comparision, otherwise it will incorrectly
- // compare for example '2000-9' and '2000-10'
- var sanitizeType = this.type === 'month' ? 'year' : 'month';
- this.isReversing = sanitizeDateString(val, sanitizeType) < sanitizeDateString(prev, sanitizeType);
- this.$emit('update:pickerDate', val);
- },
- pickerDate: function pickerDate(val) {
- if (val) {
- this.tableDate = val;
- } else if (this.lastValue && this.type === 'date') {
- this.tableDate = sanitizeDateString(this.lastValue, 'month');
- } else if (this.lastValue && this.type === 'month') {
- this.tableDate = sanitizeDateString(this.lastValue, 'year');
- }
- },
- value: function value(newValue, oldValue) {
- this.checkMultipleProp();
- this.setInputDate();
- if (!this.multiple && this.value && !this.pickerDate) {
- this.tableDate = sanitizeDateString(this.inputDate, this.type === 'month' ? 'year' : 'month');
- } else if (this.multiple && this.value.length && !oldValue.length && !this.pickerDate) {
- this.tableDate = sanitizeDateString(this.inputDate, this.type === 'month' ? 'year' : 'month');
- }
- },
- type: function type(_type) {
- this.activePicker = _type.toUpperCase();
- if (this.value && this.value.length) {
- var output = (this.multiple ? this.value : [this.value]).map(function (val) {
- return sanitizeDateString(val, _type);
- }).filter(this.isDateAllowed);
- this.$emit('input', this.multiple ? output : output[0]);
- }
- }
- },
- created: function created() {
- this.checkMultipleProp();
- if (this.pickerDate !== this.tableDate) {
- this.$emit('update:pickerDate', this.tableDate);
- }
- this.setInputDate();
- },
- methods: {
- emitInput: function emitInput(newInput) {
- var output = this.multiple ? this.value.indexOf(newInput) === -1 ? this.value.concat([newInput]) : this.value.filter(function (x) {
- return x !== newInput;
- }) : newInput;
- this.$emit('input', output);
- this.multiple || this.$emit('change', newInput);
- },
- checkMultipleProp: function checkMultipleProp() {
- if (this.value == null) return;
- var valueType = this.value.constructor.name;
- var expected = this.multiple ? 'Array' : 'String';
- if (valueType !== expected) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_8__["consoleWarn"])("Value must be " + (this.multiple ? 'an' : 'a') + " " + expected + ", got " + valueType, this);
- }
- },
- isDateAllowed: function isDateAllowed(value) {
- return Object(_util_isDateAllowed__WEBPACK_IMPORTED_MODULE_7__["default"])(value, this.min, this.max, this.allowedDates);
- },
- yearClick: function yearClick(value) {
- this.inputYear = value;
- if (this.type === 'month') {
- this.tableDate = "" + value;
- } else {
- this.tableDate = value + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])((this.tableMonth || 0) + 1);
- }
- this.activePicker = 'MONTH';
- if (this.reactive && !this.readonly && !this.multiple && this.isDateAllowed(this.inputDate)) {
- this.$emit('input', this.inputDate);
- }
- },
- monthClick: function monthClick(value) {
- this.inputYear = parseInt(value.split('-')[0], 10);
- this.inputMonth = parseInt(value.split('-')[1], 10) - 1;
- if (this.type === 'date') {
- if (this.inputDay) {
- this.inputDay = Math.min(this.inputDay, Object(_VCalendar_util_timestamp__WEBPACK_IMPORTED_MODULE_9__["daysInMonth"])(this.inputYear, this.inputMonth + 1));
- }
- this.tableDate = value;
- this.activePicker = 'DATE';
- if (this.reactive && !this.readonly && !this.multiple && this.isDateAllowed(this.inputDate)) {
- this.$emit('input', this.inputDate);
- }
- } else {
- this.emitInput(this.inputDate);
- }
- },
- dateClick: function dateClick(value) {
- this.inputYear = parseInt(value.split('-')[0], 10);
- this.inputMonth = parseInt(value.split('-')[1], 10) - 1;
- this.inputDay = parseInt(value.split('-')[2], 10);
- this.emitInput(this.inputDate);
- },
- genPickerTitle: function genPickerTitle() {
- var _this = this;
- return this.$createElement(_VDatePickerTitle__WEBPACK_IMPORTED_MODULE_0__["default"], {
- props: {
- date: this.value ? this.formatters.titleDate(this.value) : '',
- disabled: this.disabled,
- readonly: this.readonly,
- selectingYear: this.activePicker === 'YEAR',
- year: this.formatters.year(this.value ? "" + this.inputYear : this.tableDate),
- yearIcon: this.yearIcon,
- value: this.multiple ? this.value[0] : this.value
- },
- slot: 'title',
- on: {
- 'update:selectingYear': function updateSelectingYear(value) {
- return _this.activePicker = value ? 'YEAR' : _this.type.toUpperCase();
- }
- }
- });
- },
- genTableHeader: function genTableHeader() {
- var _this = this;
- return this.$createElement(_VDatePickerHeader__WEBPACK_IMPORTED_MODULE_1__["default"], {
- props: {
- nextIcon: this.nextIcon,
- color: this.color,
- dark: this.dark,
- disabled: this.disabled,
- format: this.headerDateFormat,
- light: this.light,
- locale: this.locale,
- min: this.activePicker === 'DATE' ? this.minMonth : this.minYear,
- max: this.activePicker === 'DATE' ? this.maxMonth : this.maxYear,
- prevIcon: this.prevIcon,
- readonly: this.readonly,
- value: this.activePicker === 'DATE' ? Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])(this.tableYear, 4) + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])(this.tableMonth + 1) : "" + Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])(this.tableYear, 4)
- },
- on: {
- toggle: function toggle() {
- return _this.activePicker = _this.activePicker === 'DATE' ? 'MONTH' : 'YEAR';
- },
- input: function input(value) {
- return _this.tableDate = value;
- }
- }
- });
- },
- genDateTable: function genDateTable() {
- var _this = this;
- return this.$createElement(_VDatePickerDateTable__WEBPACK_IMPORTED_MODULE_2__["default"], {
- props: {
- allowedDates: this.allowedDates,
- color: this.color,
- current: this.current,
- dark: this.dark,
- disabled: this.disabled,
- events: this.events,
- eventColor: this.eventColor,
- firstDayOfWeek: this.firstDayOfWeek,
- format: this.dayFormat,
- light: this.light,
- locale: this.locale,
- min: this.min,
- max: this.max,
- readonly: this.readonly,
- scrollable: this.scrollable,
- showWeek: this.showWeek,
- tableDate: Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])(this.tableYear, 4) + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])(this.tableMonth + 1),
- value: this.value,
- weekdayFormat: this.weekdayFormat
- },
- ref: 'table',
- on: {
- input: this.dateClick,
- tableDate: function tableDate(value) {
- return _this.tableDate = value;
- },
- 'click:date': function clickDate(value) {
- return _this.$emit('click:date', value);
- },
- 'dblclick:date': function dblclickDate(value) {
- return _this.$emit('dblclick:date', value);
- }
- }
- });
- },
- genMonthTable: function genMonthTable() {
- var _this = this;
- return this.$createElement(_VDatePickerMonthTable__WEBPACK_IMPORTED_MODULE_3__["default"], {
- props: {
- allowedDates: this.type === 'month' ? this.allowedDates : null,
- color: this.color,
- current: this.current ? sanitizeDateString(this.current, 'month') : null,
- dark: this.dark,
- disabled: this.disabled,
- events: this.type === 'month' ? this.events : null,
- eventColor: this.type === 'month' ? this.eventColor : null,
- format: this.monthFormat,
- light: this.light,
- locale: this.locale,
- min: this.minMonth,
- max: this.maxMonth,
- readonly: this.readonly && this.type === 'month',
- scrollable: this.scrollable,
- value: this.selectedMonths,
- tableDate: "" + Object(_util__WEBPACK_IMPORTED_MODULE_6__["pad"])(this.tableYear, 4)
- },
- ref: 'table',
- on: {
- input: this.monthClick,
- tableDate: function tableDate(value) {
- return _this.tableDate = value;
- },
- 'click:month': function clickMonth(value) {
- return _this.$emit('click:month', value);
- },
- 'dblclick:month': function dblclickMonth(value) {
- return _this.$emit('dblclick:month', value);
- }
- }
- });
- },
- genYears: function genYears() {
- return this.$createElement(_VDatePickerYears__WEBPACK_IMPORTED_MODULE_4__["default"], {
- props: {
- color: this.color,
- format: this.yearFormat,
- locale: this.locale,
- min: this.minYear,
- max: this.maxYear,
- value: this.tableYear
- },
- on: {
- input: this.yearClick
- }
- });
- },
- genPickerBody: function genPickerBody() {
- var children = this.activePicker === 'YEAR' ? [this.genYears()] : [this.genTableHeader(), this.activePicker === 'DATE' ? this.genDateTable() : this.genMonthTable()];
- return this.$createElement('div', {
- key: this.activePicker
- }, children);
- },
- setInputDate: function setInputDate() {
- if (this.lastValue) {
- var array = this.lastValue.split('-');
- this.inputYear = parseInt(array[0], 10);
- this.inputMonth = parseInt(array[1], 10) - 1;
- if (this.type === 'date') {
- this.inputDay = parseInt(array[2], 10);
- }
- } else {
- this.inputYear = this.inputYear || this.now.getFullYear();
- this.inputMonth = this.inputMonth == null ? this.inputMonth : this.now.getMonth();
- this.inputDay = this.inputDay || this.now.getDate();
- }
- }
- },
- render: function render() {
- return this.genPicker('v-picker--date');
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/VDatePickerDateTable.ts":
- /*!************************************************************!*\
- !*** ./src/components/VDatePicker/VDatePickerDateTable.ts ***!
- \************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_date_picker_table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mixins/date-picker-table */ "./src/components/VDatePicker/mixins/date-picker-table.ts");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util */ "./src/components/VDatePicker/util/index.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- // Mixins
-
- // Utils
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_date_picker_table__WEBPACK_IMPORTED_MODULE_0__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-date-picker-date-table',
- props: {
- firstDayOfWeek: {
- type: [String, Number],
- default: 0
- },
- showWeek: Boolean,
- weekdayFormat: Function
- },
- computed: {
- formatter: function formatter() {
- return this.format || Object(_util__WEBPACK_IMPORTED_MODULE_1__["createNativeLocaleFormatter"])(this.locale, { day: 'numeric', timeZone: 'UTC' }, { start: 8, length: 2 });
- },
- weekdayFormatter: function weekdayFormatter() {
- return this.weekdayFormat || Object(_util__WEBPACK_IMPORTED_MODULE_1__["createNativeLocaleFormatter"])(this.locale, { weekday: 'narrow', timeZone: 'UTC' });
- },
- weekDays: function weekDays() {
- var _this = this;
- var first = parseInt(this.firstDayOfWeek, 10);
- return this.weekdayFormatter ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["createRange"])(7).map(function (i) {
- return _this.weekdayFormatter("2017-01-" + (first + i + 15));
- }) // 2017-01-15 is Sunday
- : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["createRange"])(7).map(function (i) {
- return ['S', 'M', 'T', 'W', 'T', 'F', 'S'][(i + first) % 7];
- });
- }
- },
- methods: {
- calculateTableDate: function calculateTableDate(delta) {
- return Object(_util__WEBPACK_IMPORTED_MODULE_1__["monthChange"])(this.tableDate, Math.sign(delta || 1));
- },
- genTHead: function genTHead() {
- var _this = this;
- var days = this.weekDays.map(function (day) {
- return _this.$createElement('th', day);
- });
- this.showWeek && days.unshift(this.$createElement('th'));
- return this.$createElement('thead', this.genTR(days));
- },
- // Returns number of the days from the firstDayOfWeek to the first day of the current month
- weekDaysBeforeFirstDayOfTheMonth: function weekDaysBeforeFirstDayOfTheMonth() {
- var firstDayOfTheMonth = new Date(this.displayedYear + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_1__["pad"])(this.displayedMonth + 1) + "-01T00:00:00+00:00");
- var weekDay = firstDayOfTheMonth.getUTCDay();
- return (weekDay - parseInt(this.firstDayOfWeek) + 7) % 7;
- },
- getWeekNumber: function getWeekNumber() {
- var dayOfYear = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334][this.displayedMonth];
- if (this.displayedMonth > 1 && (this.displayedYear % 4 === 0 && this.displayedYear % 100 !== 0 || this.displayedYear % 400 === 0)) {
- dayOfYear++;
- }
- var offset = (this.displayedYear + (this.displayedYear - 1 >> 2) - Math.floor((this.displayedYear - 1) / 100) + Math.floor((this.displayedYear - 1) / 400) - Number(this.firstDayOfWeek)) % 7; // https://en.wikipedia.org/wiki/Zeller%27s_congruence
- return Math.floor((dayOfYear + offset) / 7) + 1;
- },
- genWeekNumber: function genWeekNumber(weekNumber) {
- return this.$createElement('td', [this.$createElement('small', {
- staticClass: 'v-date-picker-table--date__week'
- }, String(weekNumber).padStart(2, '0'))]);
- },
- genTBody: function genTBody() {
- var children = [];
- var daysInMonth = new Date(this.displayedYear, this.displayedMonth + 1, 0).getDate();
- var rows = [];
- var day = this.weekDaysBeforeFirstDayOfTheMonth();
- var weekNumber = this.getWeekNumber();
- this.showWeek && rows.push(this.genWeekNumber(weekNumber++));
- while (day--) {
- rows.push(this.$createElement('td'));
- }for (day = 1; day <= daysInMonth; day++) {
- var date = this.displayedYear + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_1__["pad"])(this.displayedMonth + 1) + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_1__["pad"])(day);
- rows.push(this.$createElement('td', [this.genButton(date, true, 'date', this.formatter)]));
- if (rows.length % (this.showWeek ? 8 : 7) === 0) {
- children.push(this.genTR(rows));
- rows = [];
- day < daysInMonth && this.showWeek && rows.push(this.genWeekNumber(weekNumber++));
- }
- }
- if (rows.length) {
- children.push(this.genTR(rows));
- }
- return this.$createElement('tbody', children);
- },
- genTR: function genTR(children) {
- return [this.$createElement('tr', children)];
- }
- },
- render: function render() {
- return this.genTable('v-date-picker-table v-date-picker-table--date', [this.genTHead(), this.genTBody()], this.calculateTableDate);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/VDatePickerHeader.ts":
- /*!*********************************************************!*\
- !*** ./src/components/VDatePicker/VDatePickerHeader.ts ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_date_picker_header_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_date-picker-header.styl */ "./src/stylus/components/_date-picker-header.styl");
- /* harmony import */ var _stylus_components_date_picker_header_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_date_picker_header_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VBtn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VBtn */ "./src/components/VBtn/index.ts");
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./src/components/VDatePicker/util/index.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
-
- // Components
-
-
- // Mixins
-
-
- // Utils
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_6__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-date-picker-header',
- props: {
- disabled: Boolean,
- format: Function,
- locale: {
- type: String,
- default: 'en-us'
- },
- min: String,
- max: String,
- nextIcon: {
- type: String,
- default: '$vuetify.icons.next'
- },
- prevIcon: {
- type: String,
- default: '$vuetify.icons.prev'
- },
- readonly: Boolean,
- value: {
- type: [Number, String],
- required: true
- }
- },
- data: function data() {
- return {
- isReversing: false
- };
- },
- computed: {
- formatter: function formatter() {
- if (this.format) {
- return this.format;
- } else if (String(this.value).split('-')[1]) {
- return Object(_util__WEBPACK_IMPORTED_MODULE_5__["createNativeLocaleFormatter"])(this.locale, { month: 'long', year: 'numeric', timeZone: 'UTC' }, { length: 7 });
- } else {
- return Object(_util__WEBPACK_IMPORTED_MODULE_5__["createNativeLocaleFormatter"])(this.locale, { year: 'numeric', timeZone: 'UTC' }, { length: 4 });
- }
- }
- },
- watch: {
- value: function value(newVal, oldVal) {
- this.isReversing = newVal < oldVal;
- }
- },
- methods: {
- genBtn: function genBtn(change) {
- var _this = this;
- var disabled = this.disabled || change < 0 && this.min && this.calculateChange(change) < this.min || change > 0 && this.max && this.calculateChange(change) > this.max;
- return this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_1__["default"], {
- props: {
- dark: this.dark,
- disabled: disabled,
- icon: true,
- light: this.light
- },
- nativeOn: {
- click: function click(e) {
- e.stopPropagation();
- _this.$emit('input', _this.calculateChange(change));
- }
- }
- }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_2__["default"], change < 0 === !this.$vuetify.rtl ? this.prevIcon : this.nextIcon)]);
- },
- calculateChange: function calculateChange(sign) {
- var _a = __read(String(this.value).split('-').map(Number), 2),
- year = _a[0],
- month = _a[1];
- if (month == null) {
- return "" + (year + sign);
- } else {
- return Object(_util__WEBPACK_IMPORTED_MODULE_5__["monthChange"])(String(this.value), sign);
- }
- },
- genHeader: function genHeader() {
- var _this = this;
- var color = !this.disabled && (this.color || 'accent');
- var header = this.$createElement('div', this.setTextColor(color, {
- key: String(this.value)
- }), [this.$createElement('button', {
- attrs: {
- type: 'button'
- },
- on: {
- click: function click() {
- return _this.$emit('toggle');
- }
- }
- }, [this.$slots.default || this.formatter(String(this.value))])]);
- var transition = this.$createElement('transition', {
- props: {
- name: this.isReversing === !this.$vuetify.rtl ? 'tab-reverse-transition' : 'tab-transition'
- }
- }, [header]);
- return this.$createElement('div', {
- staticClass: 'v-date-picker-header__value',
- class: {
- 'v-date-picker-header__value--disabled': this.disabled
- }
- }, [transition]);
- }
- },
- render: function render() {
- return this.$createElement('div', {
- staticClass: 'v-date-picker-header',
- class: __assign({ 'v-date-picker-header--disabled': this.disabled }, this.themeClasses)
- }, [this.genBtn(-1), this.genHeader(), this.genBtn(+1)]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/VDatePickerMonthTable.ts":
- /*!*************************************************************!*\
- !*** ./src/components/VDatePicker/VDatePickerMonthTable.ts ***!
- \*************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_date_picker_table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mixins/date-picker-table */ "./src/components/VDatePicker/mixins/date-picker-table.ts");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util */ "./src/components/VDatePicker/util/index.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- // Mixins
-
- // Utils
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_date_picker_table__WEBPACK_IMPORTED_MODULE_0__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-date-picker-month-table',
- computed: {
- formatter: function formatter() {
- return this.format || Object(_util__WEBPACK_IMPORTED_MODULE_1__["createNativeLocaleFormatter"])(this.locale, { month: 'short', timeZone: 'UTC' }, { start: 5, length: 2 });
- }
- },
- methods: {
- calculateTableDate: function calculateTableDate(delta) {
- return "" + (parseInt(this.tableDate, 10) + Math.sign(delta || 1));
- },
- genTBody: function genTBody() {
- var _this = this;
- var children = [];
- var cols = Array(3).fill(null);
- var rows = 12 / cols.length;
- var _loop_1 = function _loop_1(row) {
- var tds = cols.map(function (_, col) {
- var month = row * cols.length + col;
- var date = _this.displayedYear + "-" + Object(_util__WEBPACK_IMPORTED_MODULE_1__["pad"])(month + 1);
- return _this.$createElement('td', {
- key: month
- }, [_this.genButton(date, false, 'month', _this.formatter)]);
- });
- children.push(this_1.$createElement('tr', {
- key: row
- }, tds));
- };
- var this_1 = this;
- for (var row = 0; row < rows; row++) {
- _loop_1(row);
- }
- return this.$createElement('tbody', children);
- }
- },
- render: function render() {
- return this.genTable('v-date-picker-table v-date-picker-table--month', [this.genTBody()], this.calculateTableDate);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/VDatePickerTitle.ts":
- /*!********************************************************!*\
- !*** ./src/components/VDatePicker/VDatePickerTitle.ts ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_date_picker_title_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_date-picker-title.styl */ "./src/stylus/components/_date-picker-title.styl");
- /* harmony import */ var _stylus_components_date_picker_title_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_date_picker_title_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _mixins_picker_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/picker-button */ "./src/mixins/picker-button.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
-
- // Components
-
- // Mixins
-
- // Utils
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_picker_button__WEBPACK_IMPORTED_MODULE_2__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-date-picker-title',
- props: {
- date: {
- type: String,
- default: ''
- },
- disabled: Boolean,
- readonly: Boolean,
- selectingYear: Boolean,
- value: {
- type: String
- },
- year: {
- type: [Number, String],
- default: ''
- },
- yearIcon: {
- type: String
- }
- },
- data: function data() {
- return {
- isReversing: false
- };
- },
- computed: {
- computedTransition: function computedTransition() {
- return this.isReversing ? 'picker-reverse-transition' : 'picker-transition';
- }
- },
- watch: {
- value: function value(val, prev) {
- this.isReversing = val < prev;
- }
- },
- methods: {
- genYearIcon: function genYearIcon() {
- return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], {
- props: {
- dark: true
- }
- }, this.yearIcon);
- },
- getYearBtn: function getYearBtn() {
- return this.genPickerButton('selectingYear', true, [String(this.year), this.yearIcon ? this.genYearIcon() : null], false, 'v-date-picker-title__year');
- },
- genTitleText: function genTitleText() {
- return this.$createElement('transition', {
- props: {
- name: this.computedTransition
- }
- }, [this.$createElement('div', {
- domProps: { innerHTML: this.date || ' ' },
- key: this.value
- })]);
- },
- genTitleDate: function genTitleDate() {
- return this.genPickerButton('selectingYear', false, [this.genTitleText()], false, 'v-date-picker-title__date');
- }
- },
- render: function render(h) {
- return h('div', {
- staticClass: 'v-date-picker-title',
- 'class': {
- 'v-date-picker-title--disabled': this.disabled
- }
- }, [this.getYearBtn(), this.genTitleDate()]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/VDatePickerYears.ts":
- /*!********************************************************!*\
- !*** ./src/components/VDatePicker/VDatePickerYears.ts ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_date_picker_years_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_date-picker-years.styl */ "./src/stylus/components/_date-picker-years.styl");
- /* harmony import */ var _stylus_components_date_picker_years_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_date_picker_years_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util */ "./src/components/VDatePicker/util/index.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
-
- // Mixins
-
- // Utils
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-date-picker-years',
- props: {
- format: Function,
- locale: {
- type: String,
- default: 'en-us'
- },
- min: [Number, String],
- max: [Number, String],
- readonly: Boolean,
- value: [Number, String]
- },
- data: function data() {
- return {
- defaultColor: 'primary'
- };
- },
- computed: {
- formatter: function formatter() {
- return this.format || Object(_util__WEBPACK_IMPORTED_MODULE_2__["createNativeLocaleFormatter"])(this.locale, { year: 'numeric', timeZone: 'UTC' }, { length: 4 });
- }
- },
- mounted: function mounted() {
- var _this = this;
- setTimeout(function () {
- var activeItem = _this.$el.getElementsByClassName('active')[0];
- if (activeItem) {
- _this.$el.scrollTop = activeItem.offsetTop - _this.$el.offsetHeight / 2 + activeItem.offsetHeight / 2;
- } else {
- _this.$el.scrollTop = _this.$el.scrollHeight / 2 - _this.$el.offsetHeight / 2;
- }
- });
- },
- methods: {
- genYearItem: function genYearItem(year) {
- var _this = this;
- var formatted = this.formatter("" + year);
- var active = parseInt(this.value, 10) === year;
- var color = active && (this.color || 'primary');
- return this.$createElement('li', this.setTextColor(color, {
- key: year,
- 'class': { active: active },
- on: {
- click: function click() {
- return _this.$emit('input', year);
- }
- }
- }), formatted);
- },
- genYearItems: function genYearItems() {
- var children = [];
- var selectedYear = this.value ? parseInt(this.value, 10) : new Date().getFullYear();
- var maxYear = this.max ? parseInt(this.max, 10) : selectedYear + 100;
- var minYear = Math.min(maxYear, this.min ? parseInt(this.min, 10) : selectedYear - 100);
- for (var year = maxYear; year >= minYear; year--) {
- children.push(this.genYearItem(year));
- }
- return children;
- }
- },
- render: function render() {
- return this.$createElement('ul', {
- staticClass: 'v-date-picker-years',
- ref: 'years'
- }, this.genYearItems());
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/index.js":
- /*!*********************************************!*\
- !*** ./src/components/VDatePicker/index.js ***!
- \*********************************************/
- /*! exports provided: VDatePicker, VDatePickerTitle, VDatePickerHeader, VDatePickerDateTable, VDatePickerMonthTable, VDatePickerYears, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VDatePicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VDatePicker */ "./src/components/VDatePicker/VDatePicker.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePicker", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VDatePickerTitle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VDatePickerTitle */ "./src/components/VDatePicker/VDatePickerTitle.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePickerTitle", function() { return _VDatePickerTitle__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _VDatePickerHeader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VDatePickerHeader */ "./src/components/VDatePicker/VDatePickerHeader.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePickerHeader", function() { return _VDatePickerHeader__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
- /* harmony import */ var _VDatePickerDateTable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VDatePickerDateTable */ "./src/components/VDatePicker/VDatePickerDateTable.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePickerDateTable", function() { return _VDatePickerDateTable__WEBPACK_IMPORTED_MODULE_3__["default"]; });
-
- /* harmony import */ var _VDatePickerMonthTable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VDatePickerMonthTable */ "./src/components/VDatePicker/VDatePickerMonthTable.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePickerMonthTable", function() { return _VDatePickerMonthTable__WEBPACK_IMPORTED_MODULE_4__["default"]; });
-
- /* harmony import */ var _VDatePickerYears__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VDatePickerYears */ "./src/components/VDatePicker/VDatePickerYears.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePickerYears", function() { return _VDatePickerYears__WEBPACK_IMPORTED_MODULE_5__["default"]; });
-
-
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VDatePicker: _VDatePicker__WEBPACK_IMPORTED_MODULE_0__["default"],
- VDatePickerTitle: _VDatePickerTitle__WEBPACK_IMPORTED_MODULE_1__["default"],
- VDatePickerHeader: _VDatePickerHeader__WEBPACK_IMPORTED_MODULE_2__["default"],
- VDatePickerDateTable: _VDatePickerDateTable__WEBPACK_IMPORTED_MODULE_3__["default"],
- VDatePickerMonthTable: _VDatePickerMonthTable__WEBPACK_IMPORTED_MODULE_4__["default"],
- VDatePickerYears: _VDatePickerYears__WEBPACK_IMPORTED_MODULE_5__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/mixins/date-picker-table.ts":
- /*!****************************************************************!*\
- !*** ./src/components/VDatePicker/mixins/date-picker-table.ts ***!
- \****************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_date_picker_table_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../stylus/components/_date-picker-table.styl */ "./src/stylus/components/_date-picker-table.styl");
- /* harmony import */ var _stylus_components_date_picker_table_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_date_picker_table_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _directives_touch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../directives/touch */ "./src/directives/touch.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_isDateAllowed__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/isDateAllowed */ "./src/components/VDatePicker/util/isDateAllowed.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
- // Directives
-
- // Mixins
-
-
- // Utils
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]
- /* @vue/component */
- ).extend({
- directives: { Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_1__["default"] },
- props: {
- allowedDates: Function,
- current: String,
- disabled: Boolean,
- format: Function,
- events: {
- type: [Array, Function, Object],
- default: function _default() {
- return null;
- }
- },
- eventColor: {
- type: [Array, Function, Object, String],
- default: function _default() {
- return 'warning';
- }
- },
- locale: {
- type: String,
- default: 'en-us'
- },
- min: String,
- max: String,
- readonly: Boolean,
- scrollable: Boolean,
- tableDate: {
- type: String,
- required: true
- },
- value: [String, Array]
- },
- data: function data() {
- return {
- isReversing: false
- };
- },
- computed: {
- computedTransition: function computedTransition() {
- return this.isReversing === !this.$vuetify.rtl ? 'tab-reverse-transition' : 'tab-transition';
- },
- displayedMonth: function displayedMonth() {
- return Number(this.tableDate.split('-')[1]) - 1;
- },
- displayedYear: function displayedYear() {
- return Number(this.tableDate.split('-')[0]);
- }
- },
- watch: {
- tableDate: function tableDate(newVal, oldVal) {
- this.isReversing = newVal < oldVal;
- }
- },
- methods: {
- genButtonClasses: function genButtonClasses(isAllowed, isFloating, isSelected, isCurrent) {
- return __assign({ 'v-btn--active': isSelected, 'v-btn--flat': !isSelected, 'v-btn--icon': isSelected && isAllowed && isFloating, 'v-btn--floating': isFloating, 'v-btn--depressed': !isFloating && isSelected, 'v-btn--disabled': !isAllowed || this.disabled && isSelected, 'v-btn--outline': isCurrent && !isSelected }, this.themeClasses);
- },
- genButtonEvents: function genButtonEvents(value, isAllowed, mouseEventType) {
- var _this = this;
- if (this.disabled) return undefined;
- return {
- click: function click() {
- isAllowed && !_this.readonly && _this.$emit('input', value);
- _this.$emit("click:" + mouseEventType, value);
- },
- dblclick: function dblclick() {
- return _this.$emit("dblclick:" + mouseEventType, value);
- }
- };
- },
- genButton: function genButton(value, isFloating, mouseEventType, formatter) {
- var isAllowed = Object(_util_isDateAllowed__WEBPACK_IMPORTED_MODULE_4__["default"])(value, this.min, this.max, this.allowedDates);
- var isSelected = value === this.value || Array.isArray(this.value) && this.value.indexOf(value) !== -1;
- var isCurrent = value === this.current;
- var setColor = isSelected ? this.setBackgroundColor : this.setTextColor;
- var color = (isSelected || isCurrent) && (this.color || 'accent');
- return this.$createElement('button', setColor(color, {
- staticClass: 'v-btn',
- 'class': this.genButtonClasses(isAllowed, isFloating, isSelected, isCurrent),
- attrs: {
- type: 'button'
- },
- domProps: {
- disabled: this.disabled || !isAllowed
- },
- on: this.genButtonEvents(value, isAllowed, mouseEventType)
- }), [this.$createElement('div', {
- staticClass: 'v-btn__content'
- }, [formatter(value)]), this.genEvents(value)]);
- },
- getEventColors: function getEventColors(date) {
- var arrayize = function arrayize(v) {
- return Array.isArray(v) ? v : [v];
- };
- var eventData;
- var eventColors = [];
- if (Array.isArray(this.events)) {
- eventData = this.events.includes(date);
- } else if (this.events instanceof Function) {
- eventData = this.events(date) || false;
- } else if (this.events) {
- eventData = this.events[date] || false;
- } else {
- eventData = false;
- }
- if (!eventData) {
- return [];
- } else if (eventData !== true) {
- eventColors = arrayize(eventData);
- } else if (typeof this.eventColor === 'string') {
- eventColors = [this.eventColor];
- } else if (typeof this.eventColor === 'function') {
- eventColors = arrayize(this.eventColor(date));
- } else if (Array.isArray(this.eventColor)) {
- eventColors = this.eventColor;
- } else {
- eventColors = arrayize(this.eventColor[date]);
- }
- return eventColors.filter(function (v) {
- return v;
- });
- },
- genEvents: function genEvents(date) {
- var _this = this;
- var eventColors = this.getEventColors(date);
- return eventColors.length ? this.$createElement('div', {
- staticClass: 'v-date-picker-table__events'
- }, eventColors.map(function (color) {
- return _this.$createElement('div', _this.setBackgroundColor(color));
- })) : null;
- },
- wheel: function wheel(e, calculateTableDate) {
- e.preventDefault();
- this.$emit('tableDate', calculateTableDate(e.deltaY));
- },
- touch: function touch(value, calculateTableDate) {
- this.$emit('tableDate', calculateTableDate(value));
- },
- genTable: function genTable(staticClass, children, calculateTableDate) {
- var _this = this;
- var transition = this.$createElement('transition', {
- props: { name: this.computedTransition }
- }, [this.$createElement('table', { key: this.tableDate }, children)]);
- var touchDirective = {
- name: 'touch',
- value: {
- left: function left(e) {
- return e.offsetX < -15 && _this.touch(1, calculateTableDate);
- },
- right: function right(e) {
- return e.offsetX > 15 && _this.touch(-1, calculateTableDate);
- }
- }
- };
- return this.$createElement('div', {
- staticClass: staticClass,
- class: __assign({ 'v-date-picker-table--disabled': this.disabled }, this.themeClasses),
- on: !this.disabled && this.scrollable ? {
- wheel: function wheel(e) {
- return _this.wheel(e, calculateTableDate);
- }
- } : undefined,
- directives: [touchDirective]
- }, [transition]);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/util/createNativeLocaleFormatter.ts":
- /*!************************************************************************!*\
- !*** ./src/components/VDatePicker/util/createNativeLocaleFormatter.ts ***!
- \************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _pad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pad */ "./src/components/VDatePicker/util/pad.ts");
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
-
- function createNativeLocaleFormatter(locale, options, substrOptions) {
- if (substrOptions === void 0) {
- substrOptions = { start: 0, length: 0 };
- }
- var makeIsoString = function makeIsoString(dateString) {
- var _a = __read(dateString.trim().split(' ')[0].split('-'), 3),
- year = _a[0],
- month = _a[1],
- date = _a[2];
- return [Object(_pad__WEBPACK_IMPORTED_MODULE_0__["default"])(year, 4), Object(_pad__WEBPACK_IMPORTED_MODULE_0__["default"])(month || 1), Object(_pad__WEBPACK_IMPORTED_MODULE_0__["default"])(date || 1)].join('-');
- };
- try {
- var intlFormatter_1 = new Intl.DateTimeFormat(locale || undefined, options);
- return function (dateString) {
- return intlFormatter_1.format(new Date(makeIsoString(dateString) + "T00:00:00+00:00"));
- };
- } catch (e) {
- return substrOptions.start || substrOptions.length ? function (dateString) {
- return makeIsoString(dateString).substr(substrOptions.start || 0, substrOptions.length);
- } : undefined;
- }
- }
- /* harmony default export */ __webpack_exports__["default"] = (createNativeLocaleFormatter);
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/util/index.ts":
- /*!**************************************************!*\
- !*** ./src/components/VDatePicker/util/index.ts ***!
- \**************************************************/
- /*! exports provided: createNativeLocaleFormatter, monthChange, pad */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _createNativeLocaleFormatter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createNativeLocaleFormatter */ "./src/components/VDatePicker/util/createNativeLocaleFormatter.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createNativeLocaleFormatter", function() { return _createNativeLocaleFormatter__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _monthChange__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./monthChange */ "./src/components/VDatePicker/util/monthChange.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "monthChange", function() { return _monthChange__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _pad__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pad */ "./src/components/VDatePicker/util/pad.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pad", function() { return _pad__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
-
-
-
-
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/util/isDateAllowed.ts":
- /*!**********************************************************!*\
- !*** ./src/components/VDatePicker/util/isDateAllowed.ts ***!
- \**********************************************************/
- /*! 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 isDateAllowed; });
- function isDateAllowed(date, min, max, allowedFn) {
- return (!allowedFn || allowedFn(date)) && (!min || date >= min) && (!max || date <= max);
- }
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/util/monthChange.ts":
- /*!********************************************************!*\
- !*** ./src/components/VDatePicker/util/monthChange.ts ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _pad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pad */ "./src/components/VDatePicker/util/pad.ts");
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
-
- /**
- * @param {String} value YYYY-MM format
- * @param {Number} sign -1 or +1
- */
- /* harmony default export */ __webpack_exports__["default"] = (function (value, sign) {
- var _a = __read(value.split('-').map(Number), 2),
- year = _a[0],
- month = _a[1];
- if (month + sign === 0) {
- return year - 1 + "-12";
- } else if (month + sign === 13) {
- return year + 1 + "-01";
- } else {
- return year + "-" + Object(_pad__WEBPACK_IMPORTED_MODULE_0__["default"])(month + sign);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VDatePicker/util/pad.ts":
- /*!************************************************!*\
- !*** ./src/components/VDatePicker/util/pad.ts ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- var padStart = function padStart(string, targetLength, padString) {
- targetLength = targetLength >> 0;
- string = String(string);
- padString = String(padString);
- if (string.length > targetLength) {
- return String(string);
- }
- targetLength = targetLength - string.length;
- if (targetLength > padString.length) {
- padString += padString.repeat(targetLength / padString.length);
- }
- return padString.slice(0, targetLength) + String(string);
- };
- /* harmony default export */ __webpack_exports__["default"] = (function (n, length) {
- if (length === void 0) {
- length = 2;
- }
- return padStart(n, length, '0');
- });
-
- /***/ }),
-
- /***/ "./src/components/VDialog/VDialog.js":
- /*!*******************************************!*\
- !*** ./src/components/VDialog/VDialog.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_dialogs_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_dialogs.styl */ "./src/stylus/components/_dialogs.styl");
- /* harmony import */ var _stylus_components_dialogs_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_dialogs_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_dependent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/dependent */ "./src/mixins/dependent.ts");
- /* harmony import */ var _mixins_detachable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/detachable */ "./src/mixins/detachable.js");
- /* harmony import */ var _mixins_overlayable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/overlayable */ "./src/mixins/overlayable.ts");
- /* harmony import */ var _mixins_returnable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/returnable */ "./src/mixins/returnable.ts");
- /* harmony import */ var _mixins_stackable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/stackable */ "./src/mixins/stackable.ts");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _directives_click_outside__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../directives/click-outside */ "./src/directives/click-outside.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_ThemeProvider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/ThemeProvider */ "./src/util/ThemeProvider.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
- // Mixins
-
-
-
-
-
-
- // Directives
-
- // Helpers
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-dialog',
- directives: {
- ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_7__["default"]
- },
- mixins: [_mixins_dependent__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_detachable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_overlayable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_returnable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_stackable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_6__["default"]],
- props: {
- disabled: Boolean,
- persistent: Boolean,
- fullscreen: Boolean,
- fullWidth: Boolean,
- noClickAnimation: Boolean,
- light: Boolean,
- dark: Boolean,
- maxWidth: {
- type: [String, Number],
- default: 'none'
- },
- origin: {
- type: String,
- default: 'center center'
- },
- width: {
- type: [String, Number],
- default: 'auto'
- },
- scrollable: Boolean,
- transition: {
- type: [String, Boolean],
- default: 'dialog-transition'
- }
- },
- data: function data() {
- return {
- animate: false,
- animateTimeout: null,
- stackClass: 'v-dialog__content--active',
- stackMinZIndex: 200
- };
- },
- computed: {
- classes: function classes() {
- var _a;
- return _a = {}, _a[("v-dialog " + this.contentClass).trim()] = true, _a['v-dialog--active'] = this.isActive, _a['v-dialog--persistent'] = this.persistent, _a['v-dialog--fullscreen'] = this.fullscreen, _a['v-dialog--scrollable'] = this.scrollable, _a['v-dialog--animated'] = this.animate, _a;
- },
- contentClasses: function contentClasses() {
- return {
- 'v-dialog__content': true,
- 'v-dialog__content--active': this.isActive
- };
- },
- hasActivator: function hasActivator() {
- return Boolean(!!this.$slots.activator || !!this.$scopedSlots.activator);
- }
- },
- watch: {
- isActive: function isActive(val) {
- if (val) {
- this.show();
- this.hideScroll();
- } else {
- this.removeOverlay();
- this.unbind();
- }
- },
- fullscreen: function fullscreen(val) {
- if (!this.isActive) return;
- if (val) {
- this.hideScroll();
- this.removeOverlay(false);
- } else {
- this.showScroll();
- this.genOverlay();
- }
- }
- },
- beforeMount: function beforeMount() {
- var _this = this;
- this.$nextTick(function () {
- _this.isBooted = _this.isActive;
- _this.isActive && _this.show();
- });
- },
- mounted: function mounted() {
- if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["getSlotType"])(this, 'activator', true) === 'v-slot') {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_10__["consoleError"])("v-dialog's activator slot must be bound, try '<template #activator=\"data\"><v-btn v-on=\"data.on>'", this);
- }
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') this.unbind();
- },
- methods: {
- animateClick: function animateClick() {
- var _this = this;
- this.animate = false;
- // Needed for when clicking very fast
- // outside of the dialog
- this.$nextTick(function () {
- _this.animate = true;
- clearTimeout(_this.animateTimeout);
- _this.animateTimeout = setTimeout(function () {
- return _this.animate = false;
- }, 150);
- });
- },
- closeConditional: function closeConditional(e) {
- // If the dialog content contains
- // the click event, or if the
- // dialog is not active
- if (!this.isActive || this.$refs.content.contains(e.target)) return false;
- // If we made it here, the click is outside
- // and is active. If persistent, and the
- // click is on the overlay, animate
- if (this.persistent) {
- if (!this.noClickAnimation && this.overlay === e.target) this.animateClick();
- return false;
- }
- // close dialog if !persistent, clicked outside and we're the topmost dialog.
- // Since this should only be called in a capture event (bottom up), we shouldn't need to stop propagation
- return this.activeZIndex >= this.getMaxZIndex();
- },
- hideScroll: function hideScroll() {
- if (this.fullscreen) {
- document.documentElement.classList.add('overflow-y-hidden');
- } else {
- _mixins_overlayable__WEBPACK_IMPORTED_MODULE_3__["default"].options.methods.hideScroll.call(this);
- }
- },
- show: function show() {
- !this.fullscreen && !this.hideOverlay && this.genOverlay();
- this.$refs.content.focus();
- this.bind();
- },
- bind: function bind() {
- window.addEventListener('focusin', this.onFocusin);
- },
- unbind: function unbind() {
- window.removeEventListener('focusin', this.onFocusin);
- },
- onKeydown: function onKeydown(e) {
- if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_8__["keyCodes"].esc && !this.getOpenDependents().length) {
- if (!this.persistent) {
- this.isActive = false;
- var activator_1 = this.getActivator();
- this.$nextTick(function () {
- return activator_1 && activator_1.focus();
- });
- } else if (!this.noClickAnimation) {
- this.animateClick();
- }
- }
- this.$emit('keydown', e);
- },
- onFocusin: function onFocusin(e) {
- var target = event.target;
- if (
- // It isn't the document or the dialog body
- ![document, this.$refs.content].includes(target) &&
- // It isn't inside the dialog body
- !this.$refs.content.contains(target) &&
- // We're the topmost dialog
- this.activeZIndex >= this.getMaxZIndex() &&
- // It isn't inside a dependent element (like a menu)
- !this.getOpenDependentElements().some(function (el) {
- return el.contains(target);
- })
- // So we must have focused something outside the dialog and its children
- ) {
- // Find and focus the first available element inside the dialog
- var focusable = this.$refs.content.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
- focusable.length && focusable[0].focus();
- }
- },
- getActivator: function getActivator(e) {
- if (this.$refs.activator) {
- return this.$refs.activator.children.length > 0 ? this.$refs.activator.children[0] : this.$refs.activator;
- }
- if (e) {
- this.activatedBy = e.currentTarget || e.target;
- }
- if (this.activatedBy) return this.activatedBy;
- if (this.activatorNode) {
- var activator = Array.isArray(this.activatorNode) ? this.activatorNode[0] : this.activatorNode;
- var el = activator && activator.elm;
- if (el) return el;
- }
- Object(_util_console__WEBPACK_IMPORTED_MODULE_10__["consoleError"])('No activator found');
- },
- genActivator: function genActivator() {
- var _this = this;
- if (!this.hasActivator) return null;
- var listeners = this.disabled ? {} : {
- click: function click(e) {
- e.stopPropagation();
- _this.getActivator(e);
- if (!_this.disabled) _this.isActive = !_this.isActive;
- }
- };
- if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["getSlotType"])(this, 'activator') === 'scoped') {
- var activator = this.$scopedSlots.activator({ on: listeners });
- this.activatorNode = activator;
- return activator;
- }
- return this.$createElement('div', {
- staticClass: 'v-dialog__activator',
- class: {
- 'v-dialog__activator--disabled': this.disabled
- },
- ref: 'activator',
- on: listeners
- }, this.$slots.activator);
- }
- },
- render: function render(h) {
- var _this = this;
- var children = [];
- var data = {
- 'class': this.classes,
- ref: 'dialog',
- directives: [{
- name: 'click-outside',
- value: function value() {
- _this.isActive = false;
- },
- args: {
- closeConditional: this.closeConditional,
- include: this.getOpenDependentElements
- }
- }, { name: 'show', value: this.isActive }],
- on: {
- click: function click(e) {
- e.stopPropagation();
- }
- }
- };
- if (!this.fullscreen) {
- data.style = {
- maxWidth: this.maxWidth === 'none' ? undefined : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["convertToUnit"])(this.maxWidth),
- width: this.width === 'auto' ? undefined : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_8__["convertToUnit"])(this.width)
- };
- }
- children.push(this.genActivator());
- var dialog = h('div', data, this.showLazyContent(this.$slots.default));
- if (this.transition) {
- dialog = h('transition', {
- props: {
- name: this.transition,
- origin: this.origin
- }
- }, [dialog]);
- }
- children.push(h('div', {
- 'class': this.contentClasses,
- attrs: __assign({ tabIndex: '-1' }, this.getScopeIdAttrs()),
- on: {
- keydown: this.onKeydown
- },
- style: { zIndex: this.activeZIndex },
- ref: 'content'
- }, [this.$createElement(_util_ThemeProvider__WEBPACK_IMPORTED_MODULE_9__["default"], {
- props: {
- root: true,
- light: this.light,
- dark: this.dark
- }
- }, [dialog])]));
- return h('div', {
- staticClass: 'v-dialog__container',
- style: {
- display: !this.hasActivator || this.fullWidth ? 'block' : 'inline-block'
- }
- }, children);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VDialog/index.js":
- /*!*****************************************!*\
- !*** ./src/components/VDialog/index.js ***!
- \*****************************************/
- /*! exports provided: VDialog, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VDialog__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VDialog */ "./src/components/VDialog/VDialog.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDialog", function() { return _VDialog__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VDialog__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VDivider/VDivider.ts":
- /*!*********************************************!*\
- !*** ./src/components/VDivider/VDivider.ts ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_dividers_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_dividers.styl */ "./src/stylus/components/_dividers.styl");
- /* harmony import */ var _stylus_components_dividers_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_dividers_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Mixins
-
- /* harmony default export */ __webpack_exports__["default"] = (_mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
- name: 'v-divider',
- props: {
- inset: Boolean,
- vertical: Boolean
- },
- render: function render(h) {
- return h('hr', {
- class: __assign({ 'v-divider': true, 'v-divider--inset': this.inset, 'v-divider--vertical': this.vertical }, this.themeClasses),
- attrs: this.$attrs,
- on: this.$listeners
- });
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VDivider/index.ts":
- /*!******************************************!*\
- !*** ./src/components/VDivider/index.ts ***!
- \******************************************/
- /*! exports provided: VDivider, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VDivider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VDivider */ "./src/components/VDivider/VDivider.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDivider", function() { return _VDivider__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VDivider__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VExpansionPanel/VExpansionPanel.ts":
- /*!***********************************************************!*\
- !*** ./src/components/VExpansionPanel/VExpansionPanel.ts ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_expansion_panel_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_expansion-panel.styl */ "./src/stylus/components/_expansion-panel.styl");
- /* harmony import */ var _stylus_components_expansion_panel_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_expansion_panel_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_2__["provide"])('expansionPanel')).extend({
- name: 'v-expansion-panel',
- provide: function provide() {
- return {
- expansionPanel: this
- };
- },
- props: {
- disabled: Boolean,
- readonly: Boolean,
- expand: Boolean,
- focusable: Boolean,
- inset: Boolean,
- popout: Boolean,
- value: {
- type: [Number, Array],
- default: function _default() {
- return null;
- }
- }
- },
- data: function data() {
- return {
- items: [],
- open: []
- };
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-expansion-panel--focusable': this.focusable, 'v-expansion-panel--popout': this.popout, 'v-expansion-panel--inset': this.inset }, this.themeClasses);
- }
- },
- watch: {
- expand: function expand(v) {
- var openIndex = -1;
- if (!v) {
- // Close all panels unless only one is open
- var openCount = this.open.reduce(function (acc, val) {
- return val ? acc + 1 : acc;
- }, 0);
- var open = Array(this.items.length).fill(false);
- if (openCount === 1) {
- openIndex = this.open.indexOf(true);
- }
- if (openIndex > -1) {
- open[openIndex] = true;
- }
- this.open = open;
- }
- this.$emit('input', v ? this.open : openIndex > -1 ? openIndex : null);
- },
- value: function value(v) {
- this.updateFromValue(v);
- }
- },
- mounted: function mounted() {
- this.value !== null && this.updateFromValue(this.value);
- },
- methods: {
- updateFromValue: function updateFromValue(v) {
- if (Array.isArray(v) && !this.expand) return;
- var open = Array(this.items.length).fill(false);
- if (typeof v === 'number') {
- open[v] = true;
- } else if (v !== null) {
- open = v;
- }
- this.updatePanels(open);
- },
- updatePanels: function updatePanels(open) {
- this.open = open;
- for (var i = 0; i < this.items.length; i++) {
- this.items[i].toggle(open && open[i]);
- }
- },
- panelClick: function panelClick(uid) {
- var open = this.expand ? this.open.slice() : Array(this.items.length).fill(false);
- for (var i = 0; i < this.items.length; i++) {
- if (this.items[i]._uid === uid) {
- open[i] = !this.open[i];
- !this.expand && this.$emit('input', open[i] ? i : null);
- }
- }
- this.updatePanels(open);
- if (this.expand) this.$emit('input', open);
- },
- register: function register(content) {
- var i = this.items.push(content) - 1;
- this.value !== null && this.updateFromValue(this.value);
- content.toggle(!!this.open[i]);
- },
- unregister: function unregister(content) {
- var index = this.items.findIndex(function (i) {
- return i._uid === content._uid;
- });
- this.items.splice(index, 1);
- this.open.splice(index, 1);
- }
- },
- render: function render(h) {
- return h('ul', {
- staticClass: 'v-expansion-panel',
- class: this.classes
- }, this.$slots.default);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VExpansionPanel/VExpansionPanelContent.ts":
- /*!******************************************************************!*\
- !*** ./src/components/VExpansionPanel/VExpansionPanelContent.ts ***!
- \******************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../transitions */ "./src/components/transitions/index.js");
- /* harmony import */ var _mixins_bootable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/bootable */ "./src/mixins/bootable.ts");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _mixins_rippleable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/rippleable */ "./src/mixins/rippleable.ts");
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
-
-
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_6__["default"])(_mixins_bootable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_rippleable__WEBPACK_IMPORTED_MODULE_3__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_4__["inject"])('expansionPanel', 'v-expansion-panel-content', 'v-expansion-panel')
- /* @vue/component */
- ).extend({
- name: 'v-expansion-panel-content',
- props: {
- disabled: Boolean,
- readonly: Boolean,
- expandIcon: {
- type: String,
- default: '$vuetify.icons.expand'
- },
- hideActions: Boolean,
- ripple: {
- type: [Boolean, Object],
- default: false
- }
- },
- data: function data() {
- return {
- height: 'auto'
- };
- },
- computed: {
- containerClasses: function containerClasses() {
- return {
- 'v-expansion-panel__container--active': this.isActive,
- 'v-expansion-panel__container--disabled': this.isDisabled
- };
- },
- isDisabled: function isDisabled() {
- return this.expansionPanel.disabled || this.disabled;
- },
- isReadonly: function isReadonly() {
- return this.expansionPanel.readonly || this.readonly;
- }
- },
- beforeMount: function beforeMount() {
- this.expansionPanel.register(this);
- // Can be removed once fully deprecated
- if (typeof this.value !== 'undefined') Object(_util_console__WEBPACK_IMPORTED_MODULE_7__["consoleWarn"])('v-model has been deprecated', this);
- },
- beforeDestroy: function beforeDestroy() {
- this.expansionPanel.unregister(this);
- },
- methods: {
- onKeydown: function onKeydown(e) {
- // Ensure element is the activeElement
- if (e.keyCode === 13 && this.$el === document.activeElement) this.expansionPanel.panelClick(this._uid);
- },
- onHeaderClick: function onHeaderClick() {
- this.isReadonly || this.expansionPanel.panelClick(this._uid);
- },
- genBody: function genBody() {
- return this.$createElement('div', {
- ref: 'body',
- class: 'v-expansion-panel__body',
- directives: [{
- name: 'show',
- value: this.isActive
- }]
- }, this.showLazyContent(this.$slots.default));
- },
- genHeader: function genHeader() {
- var children = __spread(this.$slots.header || []);
- if (!this.hideActions) children.push(this.genIcon());
- return this.$createElement('div', {
- staticClass: 'v-expansion-panel__header',
- directives: [{
- name: 'ripple',
- value: this.ripple
- }],
- on: {
- click: this.onHeaderClick
- }
- }, children);
- },
- genIcon: function genIcon() {
- var icon = this.$slots.actions || [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_5__["default"], this.expandIcon)];
- return this.$createElement('transition', {
- attrs: { name: 'fade-transition' }
- }, [this.$createElement('div', {
- staticClass: 'v-expansion-panel__header__icon',
- directives: [{
- name: 'show',
- value: !this.isDisabled
- }]
- }, icon)]);
- },
- toggle: function toggle(active) {
- var _this = this;
- if (active) this.isBooted = true;
- this.$nextTick(function () {
- return _this.isActive = active;
- });
- }
- },
- render: function render(h) {
- return h('li', {
- staticClass: 'v-expansion-panel__container',
- class: this.containerClasses,
- attrs: {
- tabindex: this.isReadonly || this.isDisabled ? null : 0,
- 'aria-expanded': Boolean(this.isActive)
- },
- on: {
- keydown: this.onKeydown
- }
- }, [this.$slots.header && this.genHeader(), h(_transitions__WEBPACK_IMPORTED_MODULE_0__["VExpandTransition"], [this.genBody()])]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VExpansionPanel/index.ts":
- /*!*************************************************!*\
- !*** ./src/components/VExpansionPanel/index.ts ***!
- \*************************************************/
- /*! exports provided: VExpansionPanel, VExpansionPanelContent, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VExpansionPanel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VExpansionPanel */ "./src/components/VExpansionPanel/VExpansionPanel.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VExpansionPanel", function() { return _VExpansionPanel__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VExpansionPanelContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VExpansionPanelContent */ "./src/components/VExpansionPanel/VExpansionPanelContent.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VExpansionPanelContent", function() { return _VExpansionPanelContent__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VExpansionPanel: _VExpansionPanel__WEBPACK_IMPORTED_MODULE_0__["default"],
- VExpansionPanelContent: _VExpansionPanelContent__WEBPACK_IMPORTED_MODULE_1__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VFooter/VFooter.js":
- /*!*******************************************!*\
- !*** ./src/components/VFooter/VFooter.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_footer_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_footer.styl */ "./src/stylus/components/_footer.styl");
- /* harmony import */ var _stylus_components_footer_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_footer_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/applicationable */ "./src/mixins/applicationable.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Mixins
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-footer',
- mixins: [Object(_mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__["default"])(null, ['height', 'inset']), _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: {
- height: {
- default: 32,
- type: [Number, String]
- },
- inset: Boolean
- },
- computed: {
- applicationProperty: function applicationProperty() {
- return this.inset ? 'insetFooter' : 'footer';
- },
- computedMarginBottom: function computedMarginBottom() {
- if (!this.app) return;
- return this.$vuetify.application.bottom;
- },
- computedPaddingLeft: function computedPaddingLeft() {
- return !this.app || !this.inset ? 0 : this.$vuetify.application.left;
- },
- computedPaddingRight: function computedPaddingRight() {
- return !this.app || !this.inset ? 0 : this.$vuetify.application.right;
- },
- styles: function styles() {
- var styles = {
- height: isNaN(this.height) ? this.height : this.height + "px"
- };
- if (this.computedPaddingLeft) {
- styles.paddingLeft = this.computedPaddingLeft + "px";
- }
- if (this.computedPaddingRight) {
- styles.paddingRight = this.computedPaddingRight + "px";
- }
- if (this.computedMarginBottom) {
- styles.marginBottom = this.computedMarginBottom + "px";
- }
- return styles;
- }
- },
- methods: {
- /**
- * Update the application layout
- *
- * @return {number}
- */
- updateApplication: function updateApplication() {
- var height = parseInt(this.height);
- return isNaN(height) ? this.$el ? this.$el.clientHeight : 0 : height;
- }
- },
- render: function render(h) {
- var data = this.setBackgroundColor(this.color, {
- staticClass: 'v-footer',
- 'class': __assign({ 'v-footer--absolute': this.absolute, 'v-footer--fixed': !this.absolute && (this.app || this.fixed), 'v-footer--inset': this.inset }, this.themeClasses),
- style: this.styles,
- ref: 'content'
- });
- return h('footer', data, this.$slots.default);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VFooter/index.js":
- /*!*****************************************!*\
- !*** ./src/components/VFooter/index.js ***!
- \*****************************************/
- /*! exports provided: VFooter, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VFooter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VFooter */ "./src/components/VFooter/VFooter.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VFooter", function() { return _VFooter__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VFooter__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VForm/VForm.js":
- /*!***************************************!*\
- !*** ./src/components/VForm/VForm.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_forms_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_forms.styl */ "./src/stylus/components/_forms.styl");
- /* harmony import */ var _stylus_components_forms_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_forms_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- // Styles
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-form',
- mixins: [Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_1__["provide"])('form')],
- inheritAttrs: false,
- props: {
- value: Boolean,
- lazyValidation: Boolean
- },
- data: function data() {
- return {
- inputs: [],
- watchers: [],
- errorBag: {}
- };
- },
- watch: {
- errorBag: {
- handler: function handler() {
- var errors = Object.values(this.errorBag).includes(true);
- this.$emit('input', !errors);
- },
- deep: true,
- immediate: true
- }
- },
- methods: {
- watchInput: function watchInput(input) {
- var _this = this;
- var watcher = function watcher(input) {
- return input.$watch('hasError', function (val) {
- _this.$set(_this.errorBag, input._uid, val);
- }, { immediate: true });
- };
- var watchers = {
- _uid: input._uid,
- valid: undefined,
- shouldValidate: undefined
- };
- if (this.lazyValidation) {
- // Only start watching inputs if we need to
- watchers.shouldValidate = input.$watch('shouldValidate', function (val) {
- if (!val) return;
- // Only watch if we're not already doing it
- if (_this.errorBag.hasOwnProperty(input._uid)) return;
- watchers.valid = watcher(input);
- });
- } else {
- watchers.valid = watcher(input);
- }
- return watchers;
- },
- /** @public */
- validate: function validate() {
- var errors = this.inputs.filter(function (input) {
- return !input.validate(true);
- }).length;
- return !errors;
- },
- /** @public */
- reset: function reset() {
- var _this = this;
- for (var i = this.inputs.length; i--;) {
- this.inputs[i].reset();
- }
- if (this.lazyValidation) {
- // Account for timeout in validatable
- setTimeout(function () {
- _this.errorBag = {};
- }, 0);
- }
- },
- /** @public */
- resetValidation: function resetValidation() {
- var _this = this;
- for (var i = this.inputs.length; i--;) {
- this.inputs[i].resetValidation();
- }
- if (this.lazyValidation) {
- // Account for timeout in validatable
- setTimeout(function () {
- _this.errorBag = {};
- }, 0);
- }
- },
- register: function register(input) {
- var unwatch = this.watchInput(input);
- this.inputs.push(input);
- this.watchers.push(unwatch);
- },
- unregister: function unregister(input) {
- var found = this.inputs.find(function (i) {
- return i._uid === input._uid;
- });
- if (!found) return;
- var unwatch = this.watchers.find(function (i) {
- return i._uid === found._uid;
- });
- unwatch.valid && unwatch.valid();
- unwatch.shouldValidate && unwatch.shouldValidate();
- this.watchers = this.watchers.filter(function (i) {
- return i._uid !== found._uid;
- });
- this.inputs = this.inputs.filter(function (i) {
- return i._uid !== found._uid;
- });
- this.$delete(this.errorBag, found._uid);
- }
- },
- render: function render(h) {
- var _this = this;
- return h('form', {
- staticClass: 'v-form',
- attrs: Object.assign({
- novalidate: true
- }, this.$attrs),
- on: {
- submit: function submit(e) {
- return _this.$emit('submit', e);
- }
- }
- }, this.$slots.default);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VForm/index.js":
- /*!***************************************!*\
- !*** ./src/components/VForm/index.js ***!
- \***************************************/
- /*! exports provided: VForm, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VForm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VForm */ "./src/components/VForm/VForm.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VForm", function() { return _VForm__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VForm__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VGrid/VContainer.js":
- /*!********************************************!*\
- !*** ./src/components/VGrid/VContainer.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_grid_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_grid.styl */ "./src/stylus/components/_grid.styl");
- /* harmony import */ var _stylus_components_grid_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_grid_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./grid */ "./src/components/VGrid/grid.js");
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_grid__WEBPACK_IMPORTED_MODULE_1__["default"])('container'));
-
- /***/ }),
-
- /***/ "./src/components/VGrid/VContent.js":
- /*!******************************************!*\
- !*** ./src/components/VGrid/VContent.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_content_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_content.styl */ "./src/stylus/components/_content.styl");
- /* harmony import */ var _stylus_components_content_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_content_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/ssr-bootable */ "./src/mixins/ssr-bootable.ts");
- // Styles
-
- // Mixins
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-content',
- mixins: [_mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_1__["default"]],
- props: {
- tag: {
- type: String,
- default: 'main'
- }
- },
- computed: {
- styles: function styles() {
- var _a = this.$vuetify.application,
- bar = _a.bar,
- top = _a.top,
- right = _a.right,
- footer = _a.footer,
- insetFooter = _a.insetFooter,
- bottom = _a.bottom,
- left = _a.left;
- return {
- paddingTop: top + bar + "px",
- paddingRight: right + "px",
- paddingBottom: footer + insetFooter + bottom + "px",
- paddingLeft: left + "px"
- };
- }
- },
- render: function render(h) {
- var data = {
- staticClass: 'v-content',
- style: this.styles,
- ref: 'content'
- };
- return h(this.tag, data, [h('div', { staticClass: 'v-content__wrap' }, this.$slots.default)]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VGrid/VFlex.js":
- /*!***************************************!*\
- !*** ./src/components/VGrid/VFlex.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_grid_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_grid.styl */ "./src/stylus/components/_grid.styl");
- /* harmony import */ var _stylus_components_grid_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_grid_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./grid */ "./src/components/VGrid/grid.js");
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_grid__WEBPACK_IMPORTED_MODULE_1__["default"])('flex'));
-
- /***/ }),
-
- /***/ "./src/components/VGrid/VLayout.js":
- /*!*****************************************!*\
- !*** ./src/components/VGrid/VLayout.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_grid_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_grid.styl */ "./src/stylus/components/_grid.styl");
- /* harmony import */ var _stylus_components_grid_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_grid_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./grid */ "./src/components/VGrid/grid.js");
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_grid__WEBPACK_IMPORTED_MODULE_1__["default"])('layout'));
-
- /***/ }),
-
- /***/ "./src/components/VGrid/grid.js":
- /*!**************************************!*\
- !*** ./src/components/VGrid/grid.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 Grid; });
- function Grid(name) {
- /* @vue/component */
- return {
- name: "v-" + name,
- functional: true,
- props: {
- id: String,
- tag: {
- type: String,
- default: 'div'
- }
- },
- render: function render(h, _a) {
- var props = _a.props,
- data = _a.data,
- children = _a.children;
- data.staticClass = (name + " " + (data.staticClass || '')).trim();
- var attrs = data.attrs;
- if (attrs) {
- // reset attrs to extract utility clases like pa-3
- data.attrs = {};
- var classes = Object.keys(attrs).filter(function (key) {
- // TODO: Remove once resolved
- // https://github.com/vuejs/vue/issues/7841
- if (key === 'slot') return false;
- var value = attrs[key];
- // add back data attributes like data-test="foo" but do not
- // add them as classes
- if (key.startsWith('data-')) {
- data.attrs[key] = value;
- return false;
- }
- return value || typeof value === 'string';
- });
- if (classes.length) data.staticClass += " " + classes.join(' ');
- }
- if (props.id) {
- data.domProps = data.domProps || {};
- data.domProps.id = props.id;
- }
- return h(props.tag, data, children);
- }
- };
- }
-
- /***/ }),
-
- /***/ "./src/components/VGrid/index.js":
- /*!***************************************!*\
- !*** ./src/components/VGrid/index.js ***!
- \***************************************/
- /*! exports provided: VContainer, VContent, VFlex, VLayout, VSpacer, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VSpacer", function() { return VSpacer; });
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _VContainer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VContainer */ "./src/components/VGrid/VContainer.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VContainer", function() { return _VContainer__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _VContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VContent */ "./src/components/VGrid/VContent.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VContent", function() { return _VContent__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
- /* harmony import */ var _VFlex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VFlex */ "./src/components/VGrid/VFlex.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VFlex", function() { return _VFlex__WEBPACK_IMPORTED_MODULE_3__["default"]; });
-
- /* harmony import */ var _VLayout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VLayout */ "./src/components/VGrid/VLayout.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VLayout", function() { return _VLayout__WEBPACK_IMPORTED_MODULE_4__["default"]; });
-
-
-
-
-
-
- var VSpacer = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('spacer', 'div', 'v-spacer');
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VContainer: _VContainer__WEBPACK_IMPORTED_MODULE_1__["default"],
- VContent: _VContent__WEBPACK_IMPORTED_MODULE_2__["default"],
- VFlex: _VFlex__WEBPACK_IMPORTED_MODULE_3__["default"],
- VLayout: _VLayout__WEBPACK_IMPORTED_MODULE_4__["default"],
- VSpacer: VSpacer
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VHover/VHover.ts":
- /*!*****************************************!*\
- !*** ./src/components/VHover/VHover.ts ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_delayable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mixins/delayable */ "./src/mixins/delayable.ts");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- // Mixins
-
-
- // Utilities
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_delayable__WEBPACK_IMPORTED_MODULE_0__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_1__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-hover',
- props: {
- disabled: {
- type: Boolean,
- default: false
- },
- value: {
- type: Boolean,
- default: undefined
- }
- },
- methods: {
- onMouseEnter: function onMouseEnter() {
- this.runDelay('open');
- },
- onMouseLeave: function onMouseLeave() {
- this.runDelay('close');
- }
- },
- render: function render() {
- if (!this.$scopedSlots.default && this.value === undefined) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["consoleWarn"])('v-hover is missing a default scopedSlot or bound value', this);
- return null;
- }
- var element;
- if (this.$scopedSlots.default) {
- element = this.$scopedSlots.default({ hover: this.isActive });
- } else if (this.$slots.default && this.$slots.default.length === 1) {
- element = this.$slots.default[0];
- }
- if (Array.isArray(element) && element.length === 1) {
- element = element[0];
- }
- if (!element || Array.isArray(element) || !element.tag) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["consoleWarn"])('v-hover should only contain a single element', this);
- return element;
- }
- if (!this.disabled) {
- element.data = element.data || {};
- this._g(element.data, {
- mouseenter: this.onMouseEnter,
- mouseleave: this.onMouseLeave
- });
- }
- return element;
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VHover/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VHover/index.ts ***!
- \****************************************/
- /*! exports provided: VHover, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VHover__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VHover */ "./src/components/VHover/VHover.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VHover", function() { return _VHover__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VHover__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VIcon/VIcon.ts":
- /*!***************************************!*\
- !*** ./src/components/VIcon/VIcon.ts ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_icons_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_icons.styl */ "./src/stylus/components/_icons.styl");
- /* harmony import */ var _stylus_components_icons_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_icons_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_sizeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/sizeable */ "./src/mixins/sizeable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* 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 _util_mixins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
- // Mixins
-
-
-
- // Util
-
- // Types
-
-
- var SIZE_MAP;
- (function (SIZE_MAP) {
- SIZE_MAP["small"] = "16px";
- SIZE_MAP["default"] = "24px";
- SIZE_MAP["medium"] = "28px";
- SIZE_MAP["large"] = "36px";
- SIZE_MAP["xLarge"] = "40px";
- })(SIZE_MAP || (SIZE_MAP = {}));
- function isFontAwesome5(iconType) {
- return ['fas', 'far', 'fal', 'fab'].some(function (val) {
- return iconType.includes(val);
- });
- }
- var VIcon = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_6__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_sizeable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-icon',
- props: {
- disabled: Boolean,
- left: Boolean,
- right: Boolean
- },
- methods: {
- getIcon: function getIcon() {
- var iconName = '';
- if (this.$slots.default) iconName = this.$slots.default[0].text.trim();
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["remapInternalIcon"])(this, iconName);
- },
- getSize: function getSize() {
- var sizes = {
- small: this.small,
- medium: this.medium,
- large: this.large,
- xLarge: this.xLarge
- };
- var explicitSize = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["keys"])(sizes).find(function (key) {
- return sizes[key];
- });
- return explicitSize && SIZE_MAP[explicitSize] || Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.size);
- },
- // Component data for both font and svg icon.
- getDefaultData: function getDefaultData() {
- var data = {
- staticClass: 'v-icon',
- class: {
- 'v-icon--disabled': this.disabled,
- 'v-icon--left': this.left,
- 'v-icon--link': this.$listeners.click || this.$listeners['!click'],
- 'v-icon--right': this.right
- },
- attrs: __assign({ 'aria-hidden': true }, this.$attrs),
- on: this.$listeners
- };
- return data;
- },
- applyColors: function applyColors(data) {
- data.class = __assign({}, data.class, this.themeClasses);
- this.setTextColor(this.color, data);
- },
- renderFontIcon: function renderFontIcon(icon, h) {
- var newChildren = [];
- var data = this.getDefaultData();
- var iconType = 'material-icons';
- // Material Icon delimiter is _
- // https://material.io/icons/
- var delimiterIndex = icon.indexOf('-');
- var isMaterialIcon = delimiterIndex <= -1;
- if (isMaterialIcon) {
- // Material icon uses ligatures.
- newChildren.push(icon);
- } else {
- iconType = icon.slice(0, delimiterIndex);
- if (isFontAwesome5(iconType)) iconType = '';
- }
- data.class[iconType] = true;
- data.class[icon] = !isMaterialIcon;
- var fontSize = this.getSize();
- if (fontSize) data.style = { fontSize: fontSize };
- this.applyColors(data);
- return h('i', data, newChildren);
- },
- renderSvgIcon: function renderSvgIcon(icon, h) {
- var data = this.getDefaultData();
- data.class['v-icon--is-component'] = true;
- var size = this.getSize();
- if (size) {
- data.style = {
- fontSize: size,
- height: size
- };
- }
- this.applyColors(data);
- var component = icon.component;
- data.props = icon.props;
- data.nativeOn = data.on;
- return h(component, data);
- }
- },
- render: function render(h) {
- var icon = this.getIcon();
- if (typeof icon === 'string') {
- return this.renderFontIcon(icon, h);
- }
- return this.renderSvgIcon(icon, h);
- }
- });
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_5___default.a.extend({
- name: 'v-icon',
- $_wrapperFor: VIcon,
- functional: true,
- render: function render(h, _a) {
- var data = _a.data,
- children = _a.children;
- var iconName = '';
- // Support usage of v-text and v-html
- if (data.domProps) {
- iconName = data.domProps.textContent || data.domProps.innerHTML || iconName;
- // Remove nodes so it doesn't
- // overwrite our changes
- delete data.domProps.textContent;
- delete data.domProps.innerHTML;
- }
- return h(VIcon, data, iconName ? [iconName] : children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VIcon/index.ts":
- /*!***************************************!*\
- !*** ./src/components/VIcon/index.ts ***!
- \***************************************/
- /*! exports provided: VIcon, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VIcon */ "./src/components/VIcon/VIcon.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VIcon", function() { return _VIcon__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VIcon__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VImg/VImg.ts":
- /*!*************************************!*\
- !*** ./src/components/VImg/VImg.ts ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_images_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_images.styl */ "./src/stylus/components/_images.styl");
- /* harmony import */ var _stylus_components_images_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_images_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VResponsive__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VResponsive */ "./src/components/VResponsive/index.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
-
- // Components
-
- // Utils
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VResponsive__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
- name: 'v-img',
- props: {
- alt: String,
- contain: Boolean,
- src: {
- type: [String, Object],
- default: ''
- },
- gradient: String,
- lazySrc: String,
- srcset: String,
- sizes: String,
- position: {
- type: String,
- default: 'center center'
- },
- transition: {
- type: [Boolean, String],
- default: 'fade-transition'
- }
- },
- data: function data() {
- return {
- currentSrc: '',
- image: null,
- isLoading: true,
- calculatedAspectRatio: undefined
- };
- },
- computed: {
- computedAspectRatio: function computedAspectRatio() {
- return this.normalisedSrc.aspect;
- },
- normalisedSrc: function normalisedSrc() {
- return typeof this.src === 'string' ? {
- src: this.src,
- srcset: this.srcset,
- lazySrc: this.lazySrc,
- aspect: Number(this.aspectRatio || this.calculatedAspectRatio)
- } : {
- src: this.src.src,
- srcset: this.srcset || this.src.srcset,
- lazySrc: this.lazySrc || this.src.lazySrc,
- aspect: Number(this.aspectRatio || this.src.aspect || this.calculatedAspectRatio)
- };
- },
- __cachedImage: function __cachedImage() {
- if (!(this.normalisedSrc.src || this.normalisedSrc.lazySrc)) return [];
- var backgroundImage = [];
- var src = this.isLoading ? this.normalisedSrc.lazySrc : this.currentSrc;
- if (this.gradient) backgroundImage.push("linear-gradient(" + this.gradient + ")");
- if (src) backgroundImage.push("url(\"" + src + "\")");
- var image = this.$createElement('div', {
- staticClass: 'v-image__image',
- class: {
- 'v-image__image--preload': this.isLoading,
- 'v-image__image--contain': this.contain,
- 'v-image__image--cover': !this.contain
- },
- style: {
- backgroundImage: backgroundImage.join(', '),
- backgroundPosition: this.position
- },
- key: +this.isLoading
- });
- if (!this.transition) return image;
- return this.$createElement('transition', {
- attrs: {
- name: this.transition,
- mode: 'in-out'
- }
- }, [image]);
- }
- },
- watch: {
- src: function src() {
- if (!this.isLoading) this.init();else this.loadImage();
- },
- '$vuetify.breakpoint.width': 'getSrc'
- },
- mounted: function mounted() {
- this.init();
- },
- methods: {
- init: function init() {
- if (this.normalisedSrc.lazySrc) {
- var lazyImg = new Image();
- lazyImg.src = this.normalisedSrc.lazySrc;
- this.pollForSize(lazyImg, null);
- }
- /* istanbul ignore else */
- if (this.normalisedSrc.src) this.loadImage();
- },
- onLoad: function onLoad() {
- this.getSrc();
- this.isLoading = false;
- this.$emit('load', this.src);
- },
- onError: function onError() {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_2__["consoleError"])("Image load failed\n\n" + ("src: " + this.normalisedSrc.src), this);
- this.$emit('error', this.src);
- },
- getSrc: function getSrc() {
- /* istanbul ignore else */
- if (this.image) this.currentSrc = this.image.currentSrc || this.image.src;
- },
- loadImage: function loadImage() {
- var _this = this;
- var image = new Image();
- this.image = image;
- image.onload = function () {
- /* istanbul ignore if */
- if (image.decode) {
- image.decode().catch(function (err) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_2__["consoleWarn"])("Failed to decode image, trying to render anyway\n\n" + ("src: " + _this.normalisedSrc.src) + (err.message ? "\nOriginal error: " + err.message : ''), _this);
- }).then(_this.onLoad);
- } else {
- _this.onLoad();
- }
- };
- image.onerror = this.onError;
- image.src = this.normalisedSrc.src;
- this.sizes && (image.sizes = this.sizes);
- this.normalisedSrc.srcset && (image.srcset = this.normalisedSrc.srcset);
- this.aspectRatio || this.pollForSize(image);
- this.getSrc();
- },
- pollForSize: function pollForSize(img, timeout) {
- var _this = this;
- if (timeout === void 0) {
- timeout = 100;
- }
- var poll = function poll() {
- var naturalHeight = img.naturalHeight,
- naturalWidth = img.naturalWidth;
- if (naturalHeight || naturalWidth) {
- _this.calculatedAspectRatio = naturalWidth / naturalHeight;
- } else {
- timeout != null && setTimeout(poll, timeout);
- }
- };
- poll();
- },
- __genPlaceholder: function __genPlaceholder() {
- if (this.$slots.placeholder) {
- var placeholder = this.isLoading ? [this.$createElement('div', {
- staticClass: 'v-image__placeholder'
- }, this.$slots.placeholder)] : [];
- if (!this.transition) return placeholder[0];
- return this.$createElement('transition', {
- attrs: { name: this.transition }
- }, placeholder);
- }
- }
- },
- render: function render(h) {
- var node = _VResponsive__WEBPACK_IMPORTED_MODULE_1__["default"].options.render.call(this, h);
- node.data.staticClass += ' v-image';
- node.data.attrs = {
- role: this.alt ? 'img' : undefined,
- 'aria-label': this.alt
- };
- node.children = [this.__cachedSizer, this.__cachedImage, this.__genPlaceholder(), this.genContent()];
- return h(node.tag, node.data, node.children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VImg/index.ts":
- /*!**************************************!*\
- !*** ./src/components/VImg/index.ts ***!
- \**************************************/
- /*! exports provided: VImg, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VImg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VImg */ "./src/components/VImg/VImg.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VImg", function() { return _VImg__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VImg__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VInput/VInput.ts":
- /*!*****************************************!*\
- !*** ./src/components/VInput/VInput.ts ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_inputs_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_inputs.styl */ "./src/stylus/components/_inputs.styl");
- /* harmony import */ var _stylus_components_inputs_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_inputs_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _VLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VLabel */ "./src/components/VLabel/index.ts");
- /* harmony import */ var _VMessages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../VMessages */ "./src/components/VMessages/index.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins_validatable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../mixins/validatable */ "./src/mixins/validatable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Components
-
-
-
- // Mixins
-
-
-
- // Utilities
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_9__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_validatable__WEBPACK_IMPORTED_MODULE_6__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-input',
- props: {
- appendIcon: String,
- /** @deprecated */
- appendIconCb: Function,
- backgroundColor: {
- type: String,
- default: ''
- },
- height: [Number, String],
- hideDetails: Boolean,
- hint: String,
- label: String,
- loading: Boolean,
- persistentHint: Boolean,
- prependIcon: String,
- /** @deprecated */
- prependIconCb: Function,
- value: { required: false }
- },
- data: function data() {
- return {
- attrsInput: {},
- lazyValue: this.value,
- hasMouseDown: false
- };
- },
- computed: {
- classes: function classes() {
- return {};
- },
- classesInput: function classesInput() {
- return __assign({}, this.classes, { 'v-input--has-state': this.hasState, 'v-input--hide-details': this.hideDetails, 'v-input--is-label-active': this.isLabelActive, 'v-input--is-dirty': this.isDirty, 'v-input--is-disabled': this.disabled, 'v-input--is-focused': this.isFocused, 'v-input--is-loading': this.loading !== false && this.loading !== undefined, 'v-input--is-readonly': this.readonly }, this.themeClasses);
- },
- directivesInput: function directivesInput() {
- return [];
- },
- hasHint: function hasHint() {
- return !this.hasMessages && this.hint && (this.persistentHint || this.isFocused);
- },
- hasLabel: function hasLabel() {
- return Boolean(this.$slots.label || this.label);
- },
- // Proxy for `lazyValue`
- // This allows an input
- // to function without
- // a provided model
- internalValue: {
- get: function get() {
- return this.lazyValue;
- },
- set: function set(val) {
- this.lazyValue = val;
- this.$emit(this.$_modelEvent, val);
- }
- },
- isDirty: function isDirty() {
- return !!this.lazyValue;
- },
- isDisabled: function isDisabled() {
- return Boolean(this.disabled || this.readonly);
- },
- isLabelActive: function isLabelActive() {
- return this.isDirty;
- }
- },
- watch: {
- value: function value(val) {
- this.lazyValue = val;
- }
- },
- beforeCreate: function beforeCreate() {
- // v-radio-group needs to emit a different event
- // https://github.com/vuetifyjs/vuetify/issues/4752
- this.$_modelEvent = this.$options.model && this.$options.model.event || 'input';
- },
- methods: {
- genContent: function genContent() {
- return [this.genPrependSlot(), this.genControl(), this.genAppendSlot()];
- },
- genControl: function genControl() {
- return this.$createElement('div', {
- staticClass: 'v-input__control'
- }, [this.genInputSlot(), this.genMessages()]);
- },
- genDefaultSlot: function genDefaultSlot() {
- return [this.genLabel(), this.$slots.default];
- },
- // TODO: remove shouldDeprecate (2.0), used for clearIcon
- genIcon: function genIcon(type, cb, shouldDeprecate) {
- var _this = this;
- if (shouldDeprecate === void 0) {
- shouldDeprecate = true;
- }
- var icon = this[type + "Icon"];
- var eventName = "click:" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["kebabCase"])(type);
- cb = cb || this[type + "IconCb"];
- if (shouldDeprecate && type && cb) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_8__["deprecate"])(":" + type + "-icon-cb", "@" + eventName, this);
- }
- var data = {
- props: {
- color: this.validationState,
- dark: this.dark,
- disabled: this.disabled,
- light: this.light
- },
- on: !(this.$listeners[eventName] || cb) ? undefined : {
- click: function click(e) {
- e.preventDefault();
- e.stopPropagation();
- _this.$emit(eventName, e);
- cb && cb(e);
- },
- // Container has mouseup event that will
- // trigger menu open if enclosed
- mouseup: function mouseup(e) {
- e.preventDefault();
- e.stopPropagation();
- }
- }
- };
- return this.$createElement('div', {
- staticClass: "v-input__icon v-input__icon--" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["kebabCase"])(type),
- key: "" + type + icon
- }, [this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], data, icon)]);
- },
- genInputSlot: function genInputSlot() {
- return this.$createElement('div', this.setBackgroundColor(this.backgroundColor, {
- staticClass: 'v-input__slot',
- style: { height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["convertToUnit"])(this.height) },
- directives: this.directivesInput,
- on: {
- click: this.onClick,
- mousedown: this.onMouseDown,
- mouseup: this.onMouseUp
- },
- ref: 'input-slot'
- }), [this.genDefaultSlot()]);
- },
- genLabel: function genLabel() {
- if (!this.hasLabel) return null;
- return this.$createElement(_VLabel__WEBPACK_IMPORTED_MODULE_2__["default"], {
- props: {
- color: this.validationState,
- dark: this.dark,
- focused: this.hasState,
- for: this.$attrs.id,
- light: this.light
- }
- }, this.$slots.label || this.label);
- },
- genMessages: function genMessages() {
- if (this.hideDetails) return null;
- var messages = this.hasHint ? [this.hint] : this.validations;
- return this.$createElement(_VMessages__WEBPACK_IMPORTED_MODULE_3__["default"], {
- props: {
- color: this.hasHint ? '' : this.validationState,
- dark: this.dark,
- light: this.light,
- value: this.hasMessages || this.hasHint ? messages : []
- }
- });
- },
- genSlot: function genSlot(type, location, slot) {
- if (!slot.length) return null;
- var ref = type + "-" + location;
- return this.$createElement('div', {
- staticClass: "v-input__" + ref,
- ref: ref
- }, slot);
- },
- genPrependSlot: function genPrependSlot() {
- var slot = [];
- if (this.$slots.prepend) {
- slot.push(this.$slots.prepend);
- } else if (this.prependIcon) {
- slot.push(this.genIcon('prepend'));
- }
- return this.genSlot('prepend', 'outer', slot);
- },
- genAppendSlot: function genAppendSlot() {
- var slot = [];
- // Append icon for text field was really
- // an appended inner icon, v-text-field
- // will overwrite this method in order to obtain
- // backwards compat
- if (this.$slots.append) {
- slot.push(this.$slots.append);
- } else if (this.appendIcon) {
- slot.push(this.genIcon('append'));
- }
- return this.genSlot('append', 'outer', slot);
- },
- onClick: function onClick(e) {
- this.$emit('click', e);
- },
- onMouseDown: function onMouseDown(e) {
- this.hasMouseDown = true;
- this.$emit('mousedown', e);
- },
- onMouseUp: function onMouseUp(e) {
- this.hasMouseDown = false;
- this.$emit('mouseup', e);
- }
- },
- render: function render(h) {
- return h('div', this.setTextColor(this.validationState, {
- staticClass: 'v-input',
- attrs: this.attrsInput,
- 'class': this.classesInput
- }), this.genContent());
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VInput/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VInput/index.ts ***!
- \****************************************/
- /*! exports provided: VInput, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VInput */ "./src/components/VInput/VInput.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VInput", function() { return _VInput__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VInput__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VItemGroup/VItem.ts":
- /*!********************************************!*\
- !*** ./src/components/VItemGroup/VItem.ts ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_groupable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mixins/groupable */ "./src/mixins/groupable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- // Mixins
-
- // Utilities
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_0__["factory"])('itemGroup', 'v-item', 'v-item-group')
- /* @vue/component */
- ).extend({
- name: 'v-item',
- props: {
- value: {
- required: false
- }
- },
- render: function render() {
- var _a;
- if (!this.$scopedSlots.default) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_2__["consoleWarn"])('v-item is missing a default scopedSlot', this);
- return null;
- }
- var element;
- /* istanbul ignore else */
- if (this.$scopedSlots.default) {
- element = this.$scopedSlots.default({
- active: this.isActive,
- toggle: this.toggle
- });
- }
- if (Array.isArray(element) && element.length === 1) {
- element = element[0];
- }
- if (!element || Array.isArray(element) || !element.tag) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_2__["consoleWarn"])('v-item should only contain a single element', this);
- return element;
- }
- element.data = this._b(element.data || {}, element.tag, {
- class: (_a = {}, _a[this.activeClass] = this.isActive, _a)
- });
- return element;
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VItemGroup/VItemGroup.ts":
- /*!*************************************************!*\
- !*** ./src/components/VItemGroup/VItemGroup.ts ***!
- \*************************************************/
- /*! exports provided: BaseItemGroup, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseItemGroup", function() { return BaseItemGroup; });
- /* harmony import */ var _stylus_components_item_group_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_item-group.styl */ "./src/stylus/components/_item-group.styl");
- /* harmony import */ var _stylus_components_item_group_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_item_group_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_proxyable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/proxyable */ "./src/mixins/proxyable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
-
-
- // Utilities
-
-
- var BaseItemGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_proxyable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
- name: 'base-item-group',
- props: {
- activeClass: {
- type: String,
- default: 'v-item--active'
- },
- mandatory: Boolean,
- max: {
- type: [Number, String],
- default: null
- },
- multiple: Boolean
- },
- data: function data() {
- return {
- // As long as a value is defined, show it
- // Otherwise, check if multiple
- // to determine which default to provide
- internalLazyValue: this.value !== undefined ? this.value : this.multiple ? [] : undefined,
- items: []
- };
- },
- computed: {
- classes: function classes() {
- return __assign({}, this.themeClasses);
- },
- selectedItems: function selectedItems() {
- var _this = this;
- return this.items.filter(function (item, index) {
- return _this.toggleMethod(_this.getValue(item, index));
- });
- },
- selectedValues: function selectedValues() {
- return Array.isArray(this.internalValue) ? this.internalValue : [this.internalValue];
- },
- toggleMethod: function toggleMethod() {
- var _this = this;
- if (!this.multiple) {
- return function (v) {
- return _this.internalValue === v;
- };
- }
- var internalValue = this.internalValue;
- if (Array.isArray(internalValue)) {
- return function (v) {
- return internalValue.includes(v);
- };
- }
- return function () {
- return false;
- };
- }
- },
- watch: {
- internalValue: function internalValue() {
- // https://github.com/vuetifyjs/vuetify/issues/5352
- this.$nextTick(this.updateItemsState);
- }
- },
- created: function created() {
- if (this.multiple && !Array.isArray(this.internalValue)) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_4__["consoleWarn"])('Model must be bound to an array if the multiple property is true.', this);
- }
- },
- methods: {
- getValue: function getValue(item, i) {
- return item.value == null || item.value === '' ? i : item.value;
- },
- onClick: function onClick(item, index) {
- this.updateInternalValue(this.getValue(item, index));
- },
- register: function register(item) {
- var _this = this;
- var index = this.items.push(item) - 1;
- item.$on('change', function () {
- return _this.onClick(item, index);
- });
- // If no value provided and mandatory,
- // assign first registered item
- if (this.mandatory && this.internalLazyValue == null) {
- this.updateMandatory();
- }
- this.updateItem(item, index);
- },
- unregister: function unregister(item) {
- if (this._isDestroyed) return;
- var index = this.items.indexOf(item);
- var value = this.getValue(item, index);
- this.items.splice(index, 1);
- var valueIndex = this.selectedValues.indexOf(value);
- // Items is not selected, do nothing
- if (valueIndex < 0) return;
- // If not mandatory, use regular update process
- if (!this.mandatory) {
- return this.updateInternalValue(value);
- }
- // Remove the value
- if (this.multiple && Array.isArray(this.internalValue)) {
- this.internalValue = this.internalValue.filter(function (v) {
- return v !== value;
- });
- } else {
- this.internalValue = undefined;
- }
- // If mandatory and we have no selection
- // add the last item as value
- /* istanbul ignore else */
- if (!this.selectedItems.length) {
- this.updateMandatory(true);
- }
- },
- updateItem: function updateItem(item, index) {
- var value = this.getValue(item, index);
- item.isActive = this.toggleMethod(value);
- },
- updateItemsState: function updateItemsState() {
- if (this.mandatory && !this.selectedItems.length) {
- return this.updateMandatory();
- }
- // TODO: Make this smarter so it
- // doesn't have to iterate every
- // child in an update
- this.items.forEach(this.updateItem);
- },
- updateInternalValue: function updateInternalValue(value) {
- this.multiple ? this.updateMultiple(value) : this.updateSingle(value);
- },
- updateMandatory: function updateMandatory(last) {
- if (!this.items.length) return;
- var index = last ? this.items.length - 1 : 0;
- this.updateInternalValue(this.getValue(this.items[index], index));
- },
- updateMultiple: function updateMultiple(value) {
- var defaultValue = Array.isArray(this.internalValue) ? this.internalValue : [];
- var internalValue = defaultValue.slice();
- var index = internalValue.findIndex(function (val) {
- return val === value;
- });
- if (this.mandatory &&
- // Item already exists
- index > -1 &&
- // value would be reduced below min
- internalValue.length - 1 < 1) return;
- if (
- // Max is set
- this.max != null &&
- // Item doesn't exist
- index < 0 &&
- // value would be increased above max
- internalValue.length + 1 > this.max) return;
- index > -1 ? internalValue.splice(index, 1) : internalValue.push(value);
- this.internalValue = internalValue;
- },
- updateSingle: function updateSingle(value) {
- var isSame = value === this.internalValue;
- if (this.mandatory && isSame) return;
- this.internalValue = isSame ? undefined : value;
- }
- },
- render: function render(h) {
- return h('div', {
- staticClass: 'v-item-group',
- class: this.classes
- }, this.$slots.default);
- }
- });
- /* harmony default export */ __webpack_exports__["default"] = (BaseItemGroup.extend({
- name: 'v-item-group',
- provide: function provide() {
- return {
- itemGroup: this
- };
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VItemGroup/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VItemGroup/index.ts ***!
- \********************************************/
- /*! exports provided: VItem, VItemGroup, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VItem */ "./src/components/VItemGroup/VItem.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VItem", function() { return _VItem__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VItemGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VItemGroup */ "./src/components/VItemGroup/VItemGroup.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VItemGroup", function() { return _VItemGroup__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VItem: _VItem__WEBPACK_IMPORTED_MODULE_0__["default"],
- VItemGroup: _VItemGroup__WEBPACK_IMPORTED_MODULE_1__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VJumbotron/VJumbotron.js":
- /*!*************************************************!*\
- !*** ./src/components/VJumbotron/VJumbotron.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_jumbotrons_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_jumbotrons.styl */ "./src/stylus/components/_jumbotrons.styl");
- /* harmony import */ var _stylus_components_jumbotrons_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_jumbotrons_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_routable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/routable */ "./src/mixins/routable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
-
- // Mixins
-
-
-
- // Utils
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-jumbotron',
- mixins: [_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_routable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: {
- gradient: String,
- height: {
- type: [Number, String],
- default: '400px'
- },
- src: String,
- tag: {
- type: String,
- default: 'div'
- }
- },
- computed: {
- backgroundStyles: function backgroundStyles() {
- var styles = {};
- if (this.gradient) {
- styles.background = "linear-gradient(" + this.gradient + ")";
- }
- return styles;
- },
- classes: function classes() {
- return this.themeClasses;
- },
- styles: function styles() {
- return {
- height: this.height
- };
- }
- },
- mounted: function mounted() {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_4__["deprecate"])('v-jumbotron', this.src ? 'v-img' : 'v-responsive', this);
- },
- methods: {
- genBackground: function genBackground() {
- return this.$createElement('div', this.setBackgroundColor(this.color, {
- staticClass: 'v-jumbotron__background',
- style: this.backgroundStyles
- }));
- },
- genContent: function genContent() {
- return this.$createElement('div', {
- staticClass: 'v-jumbotron__content'
- }, this.$slots.default);
- },
- genImage: function genImage() {
- if (!this.src) return null;
- if (this.$slots.img) return this.$slots.img({ src: this.src });
- return this.$createElement('img', {
- staticClass: 'v-jumbotron__image',
- attrs: { src: this.src }
- });
- },
- genWrapper: function genWrapper() {
- return this.$createElement('div', {
- staticClass: 'v-jumbotron__wrapper'
- }, [this.genImage(), this.genBackground(), this.genContent()]);
- }
- },
- render: function render(h) {
- var _a = this.generateRouteLink(this.classes),
- tag = _a.tag,
- data = _a.data;
- data.staticClass = 'v-jumbotron';
- data.style = this.styles;
- return h(tag, data, [this.genWrapper()]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VJumbotron/index.js":
- /*!********************************************!*\
- !*** ./src/components/VJumbotron/index.js ***!
- \********************************************/
- /*! exports provided: VJumbotron, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VJumbotron__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VJumbotron */ "./src/components/VJumbotron/VJumbotron.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VJumbotron", function() { return _VJumbotron__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VJumbotron__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VLabel/VLabel.ts":
- /*!*****************************************!*\
- !*** ./src/components/VLabel/VLabel.ts ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_labels_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_labels.styl */ "./src/stylus/components/_labels.styl");
- /* harmony import */ var _stylus_components_labels_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_labels_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Mixins
-
-
-
- // Helpers
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
- name: 'v-label',
- functional: true,
- props: {
- absolute: Boolean,
- color: {
- type: String,
- default: 'primary'
- },
- disabled: Boolean,
- focused: Boolean,
- for: String,
- left: {
- type: [Number, String],
- default: 0
- },
- right: {
- type: [Number, String],
- default: 'auto'
- },
- value: Boolean
- },
- render: function render(h, ctx) {
- var children = ctx.children,
- listeners = ctx.listeners,
- props = ctx.props;
- var data = {
- staticClass: 'v-label',
- 'class': __assign({ 'v-label--active': props.value, 'v-label--is-disabled': props.disabled }, Object(_mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["functionalThemeClasses"])(ctx)),
- attrs: {
- for: props.for,
- 'aria-hidden': !props.for
- },
- on: listeners,
- style: {
- left: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(props.left),
- right: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(props.right),
- position: props.absolute ? 'absolute' : 'relative'
- }
- };
- return h('label', _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.setTextColor(props.focused && props.color, data), children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VLabel/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VLabel/index.ts ***!
- \****************************************/
- /*! exports provided: VLabel, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VLabel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VLabel */ "./src/components/VLabel/VLabel.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VLabel", function() { return _VLabel__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VLabel__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VList/VList.ts":
- /*!***************************************!*\
- !*** ./src/components/VList/VList.ts ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_lists_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_lists.styl */ "./src/stylus/components/_lists.styl");
- /* harmony import */ var _stylus_components_lists_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_lists_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var __values = undefined && undefined.__values || function (o) {
- var m = typeof Symbol === "function" && o[Symbol.iterator],
- i = 0;
- if (m) return m.call(o);
- return {
- next: function next() {
- if (o && i >= o.length) o = void 0;
- return { value: o && o[i++], done: !o };
- }
- };
- };
- // Styles
-
- // Mixins
-
-
- // Types
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_2__["provide"])('list'), _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-list',
- provide: function provide() {
- return {
- listClick: this.listClick
- };
- },
- props: {
- dense: Boolean,
- expand: Boolean,
- subheader: Boolean,
- threeLine: Boolean,
- twoLine: Boolean
- },
- data: function data() {
- return {
- groups: []
- };
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-list--dense': this.dense, 'v-list--subheader': this.subheader, 'v-list--two-line': this.twoLine, 'v-list--three-line': this.threeLine }, this.themeClasses);
- }
- },
- methods: {
- register: function register(content) {
- this.groups.push(content);
- },
- unregister: function unregister(content) {
- var index = this.groups.findIndex(function (g) {
- return g._uid === content._uid;
- });
- if (index > -1) this.groups.splice(index, 1);
- },
- listClick: function listClick(uid) {
- var e_1, _a;
- if (this.expand) return;
- try {
- for (var _b = __values(this.groups), _c = _b.next(); !_c.done; _c = _b.next()) {
- var group = _c.value;
- group.toggle(uid);
- }
- } catch (e_1_1) {
- e_1 = { error: e_1_1 };
- } finally {
- try {
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
- } finally {
- if (e_1) throw e_1.error;
- }
- }
- }
- },
- render: function render(h) {
- var data = {
- staticClass: 'v-list',
- class: this.classes,
- attrs: {
- role: 'list'
- }
- };
- return h('div', data, [this.$slots.default]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VList/VListGroup.ts":
- /*!********************************************!*\
- !*** ./src/components/VList/VListGroup.ts ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _mixins_bootable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/bootable */ "./src/mixins/bootable.ts");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- /* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../transitions */ "./src/components/transitions/index.js");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Components
-
- // Mixins
-
-
-
- // Transitions
-
- // Utils
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_bootable__WEBPACK_IMPORTED_MODULE_1__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_3__["inject"])('list', 'v-list-group', 'v-list'), _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-list-group',
- inject: ['listClick'],
- props: {
- activeClass: {
- type: String,
- default: 'primary--text'
- },
- appendIcon: {
- type: String,
- default: '$vuetify.icons.expand'
- },
- disabled: Boolean,
- group: String,
- noAction: Boolean,
- prependIcon: String,
- subGroup: Boolean
- },
- data: function data() {
- return {
- groups: []
- };
- },
- computed: {
- groupClasses: function groupClasses() {
- return {
- 'v-list__group--active': this.isActive,
- 'v-list__group--disabled': this.disabled
- };
- },
- headerClasses: function headerClasses() {
- return {
- 'v-list__group__header--active': this.isActive,
- 'v-list__group__header--sub-group': this.subGroup
- };
- },
- itemsClasses: function itemsClasses() {
- return {
- 'v-list__group__items--no-action': this.noAction
- };
- }
- },
- watch: {
- isActive: function isActive(val) {
- if (!this.subGroup && val) {
- this.listClick(this._uid);
- }
- },
- $route: function $route(to) {
- var isActive = this.matchRoute(to.path);
- if (this.group) {
- if (isActive && this.isActive !== isActive) {
- this.listClick(this._uid);
- }
- this.isActive = isActive;
- }
- }
- },
- mounted: function mounted() {
- this.list.register(this);
- if (this.group && this.$route && this.value == null) {
- this.isActive = this.matchRoute(this.$route.path);
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.list.unregister(this._uid);
- },
- methods: {
- click: function click(e) {
- if (this.disabled) return;
- this.$emit('click', e);
- this.isActive = !this.isActive;
- },
- genIcon: function genIcon(icon) {
- return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_0__["default"], icon);
- },
- genAppendIcon: function genAppendIcon() {
- var icon = !this.subGroup ? this.appendIcon : false;
- if (!icon && !this.$slots.appendIcon) return null;
- return this.$createElement('div', {
- staticClass: 'v-list__group__header__append-icon'
- }, [this.$slots.appendIcon || this.genIcon(icon)]);
- },
- genGroup: function genGroup() {
- return this.$createElement('div', {
- staticClass: 'v-list__group__header',
- class: this.headerClasses,
- on: __assign({}, this.$listeners, { click: this.click }),
- ref: 'item'
- }, [this.genPrependIcon(), this.$slots.activator, this.genAppendIcon()]);
- },
- genItems: function genItems() {
- return this.$createElement('div', {
- staticClass: 'v-list__group__items',
- class: this.itemsClasses,
- directives: [{
- name: 'show',
- value: this.isActive
- }],
- ref: 'group'
- }, this.showLazyContent(this.$slots.default));
- },
- genPrependIcon: function genPrependIcon() {
- var _a;
- var icon = this.prependIcon ? this.prependIcon : this.subGroup ? '$vuetify.icons.subgroup' : false;
- if (!icon && !this.$slots.prependIcon) return null;
- return this.$createElement('div', {
- staticClass: 'v-list__group__header__prepend-icon',
- 'class': (_a = {}, _a[this.activeClass] = this.isActive, _a)
- }, [this.$slots.prependIcon || this.genIcon(icon)]);
- },
- toggle: function toggle(uid) {
- this.isActive = this._uid === uid;
- },
- matchRoute: function matchRoute(to) {
- if (!this.group) return false;
- return to.match(this.group) !== null;
- }
- },
- render: function render(h) {
- return h('div', {
- staticClass: 'v-list__group',
- class: this.groupClasses
- }, [this.genGroup(), h(_transitions__WEBPACK_IMPORTED_MODULE_4__["VExpandTransition"], [this.genItems()])]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VList/VListTile.ts":
- /*!*******************************************!*\
- !*** ./src/components/VList/VListTile.ts ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_routable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/routable */ "./src/mixins/routable.ts");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _directives_ripple__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../directives/ripple */ "./src/directives/ripple.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Mixins
-
-
-
-
- // Directives
-
- // Types
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_0__["default"], _mixins_routable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]).extend({
- name: 'v-list-tile',
- directives: {
- Ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_4__["default"]
- },
- inheritAttrs: false,
- props: {
- activeClass: {
- type: String,
- default: 'primary--text'
- },
- avatar: Boolean,
- inactive: Boolean,
- tag: String
- },
- data: function data() {
- return {
- proxyClass: 'v-list__tile--active'
- };
- },
- computed: {
- listClasses: function listClasses() {
- return this.disabled ? { 'v-list--disabled': true } : undefined;
- },
- classes: function classes() {
- var _a;
- return __assign({ 'v-list__tile': true, 'v-list__tile--link': this.isLink && !this.inactive, 'v-list__tile--avatar': this.avatar, 'v-list__tile--disabled': this.disabled, 'v-list__tile--active': !this.to && this.isActive }, this.themeClasses, (_a = {}, _a[this.activeClass] = this.isActive, _a));
- },
- isLink: function isLink() {
- var hasClick = this.$listeners && (this.$listeners.click || this.$listeners['!click']);
- return Boolean(this.href || this.to || hasClick);
- }
- },
- render: function render(h) {
- var isRouteLink = !this.inactive && this.isLink;
- var _a = isRouteLink ? this.generateRouteLink(this.classes) : {
- tag: this.tag || 'div',
- data: {
- class: this.classes
- }
- },
- tag = _a.tag,
- data = _a.data;
- data.attrs = Object.assign({}, data.attrs, this.$attrs);
- return h('div', this.setTextColor(!this.disabled && this.color, {
- class: this.listClasses,
- attrs: {
- disabled: this.disabled,
- role: 'listitem'
- }
- }), [h(tag, data, this.$slots.default)]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VList/VListTileAction.ts":
- /*!*************************************************!*\
- !*** ./src/components/VList/VListTileAction.ts ***!
- \*************************************************/
- /*! 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__);
- // Types
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'v-list-tile-action',
- functional: true,
- render: function render(h, _a) {
- var data = _a.data,
- _b = _a.children,
- children = _b === void 0 ? [] : _b;
- data.staticClass = data.staticClass ? "v-list__tile__action " + data.staticClass : 'v-list__tile__action';
- var filteredChild = children.filter(function (VNode) {
- return VNode.isComment === false && VNode.text !== ' ';
- });
- if (filteredChild.length > 1) data.staticClass += ' v-list__tile__action--stack';
- return h('div', data, children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VList/VListTileAvatar.ts":
- /*!*************************************************!*\
- !*** ./src/components/VList/VListTileAvatar.ts ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VAvatar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../VAvatar */ "./src/components/VAvatar/index.ts");
- /* 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__);
- // Components
-
- // Types
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_1___default.a.extend({
- name: 'v-list-tile-avatar',
- functional: true,
- props: {
- color: String,
- size: {
- type: [Number, String],
- default: 40
- },
- tile: Boolean
- },
- render: function render(h, _a) {
- var data = _a.data,
- children = _a.children,
- props = _a.props;
- data.staticClass = ("v-list__tile__avatar " + (data.staticClass || '')).trim();
- var avatar = h(_VAvatar__WEBPACK_IMPORTED_MODULE_0__["default"], {
- props: {
- color: props.color,
- size: props.size,
- tile: props.tile
- }
- }, [children]);
- return h('div', data, [avatar]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VList/index.ts":
- /*!***************************************!*\
- !*** ./src/components/VList/index.ts ***!
- \***************************************/
- /*! exports provided: VList, VListGroup, VListTile, VListTileAction, VListTileAvatar, VListTileActionText, VListTileContent, VListTileTitle, VListTileSubTitle, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VListTileActionText", function() { return VListTileActionText; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VListTileContent", function() { return VListTileContent; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VListTileTitle", function() { return VListTileTitle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VListTileSubTitle", function() { return VListTileSubTitle; });
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _VList__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VList */ "./src/components/VList/VList.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VList", function() { return _VList__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _VListGroup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VListGroup */ "./src/components/VList/VListGroup.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListGroup", function() { return _VListGroup__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
- /* harmony import */ var _VListTile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VListTile */ "./src/components/VList/VListTile.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListTile", function() { return _VListTile__WEBPACK_IMPORTED_MODULE_3__["default"]; });
-
- /* harmony import */ var _VListTileAction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VListTileAction */ "./src/components/VList/VListTileAction.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListTileAction", function() { return _VListTileAction__WEBPACK_IMPORTED_MODULE_4__["default"]; });
-
- /* harmony import */ var _VListTileAvatar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VListTileAvatar */ "./src/components/VList/VListTileAvatar.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListTileAvatar", function() { return _VListTileAvatar__WEBPACK_IMPORTED_MODULE_5__["default"]; });
-
-
-
-
-
-
-
-
- var VListTileActionText = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-list__tile__action-text', 'span');
- var VListTileContent = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-list__tile__content', 'div');
- var VListTileTitle = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-list__tile__title', 'div');
- var VListTileSubTitle = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-list__tile__sub-title', 'div');
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VList: _VList__WEBPACK_IMPORTED_MODULE_1__["default"],
- VListGroup: _VListGroup__WEBPACK_IMPORTED_MODULE_2__["default"],
- VListTile: _VListTile__WEBPACK_IMPORTED_MODULE_3__["default"],
- VListTileAction: _VListTileAction__WEBPACK_IMPORTED_MODULE_4__["default"],
- VListTileActionText: VListTileActionText,
- VListTileAvatar: _VListTileAvatar__WEBPACK_IMPORTED_MODULE_5__["default"],
- VListTileContent: VListTileContent,
- VListTileSubTitle: VListTileSubTitle,
- VListTileTitle: VListTileTitle
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VMenu/VMenu.js":
- /*!***************************************!*\
- !*** ./src/components/VMenu/VMenu.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_menus_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_menus.styl */ "./src/stylus/components/_menus.styl");
- /* harmony import */ var _stylus_components_menus_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_menus_styl__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 _mixins_delayable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/delayable */ "./src/mixins/delayable.ts");
- /* harmony import */ var _mixins_dependent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/dependent */ "./src/mixins/dependent.ts");
- /* harmony import */ var _mixins_detachable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/detachable */ "./src/mixins/detachable.js");
- /* harmony import */ var _mixins_menuable_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/menuable.js */ "./src/mixins/menuable.js");
- /* harmony import */ var _mixins_returnable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../mixins/returnable */ "./src/mixins/returnable.ts");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins_menu_activator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./mixins/menu-activator */ "./src/components/VMenu/mixins/menu-activator.js");
- /* harmony import */ var _mixins_menu_generators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./mixins/menu-generators */ "./src/components/VMenu/mixins/menu-generators.js");
- /* harmony import */ var _mixins_menu_keyable__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./mixins/menu-keyable */ "./src/components/VMenu/mixins/menu-keyable.js");
- /* harmony import */ var _mixins_menu_position__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./mixins/menu-position */ "./src/components/VMenu/mixins/menu-position.js");
- /* harmony import */ var _directives_click_outside__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../directives/click-outside */ "./src/directives/click-outside.ts");
- /* harmony import */ var _directives_resize__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../directives/resize */ "./src/directives/resize.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_ThemeProvider__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../util/ThemeProvider */ "./src/util/ThemeProvider.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
-
-
- // Mixins
-
-
-
-
-
-
-
- // Component level mixins
-
-
-
-
- // Directives
-
-
- // Helpers
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_1___default.a.extend({
- name: 'v-menu',
- provide: function provide() {
- return {
- // Pass theme through to default slot
- theme: this.theme
- };
- },
- directives: {
- ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_13__["default"],
- Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_14__["default"]
- },
- mixins: [_mixins_menu_activator__WEBPACK_IMPORTED_MODULE_9__["default"], _mixins_dependent__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_delayable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_detachable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_menu_generators__WEBPACK_IMPORTED_MODULE_10__["default"], _mixins_menu_keyable__WEBPACK_IMPORTED_MODULE_11__["default"], _mixins_menuable_js__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_menu_position__WEBPACK_IMPORTED_MODULE_12__["default"], _mixins_returnable__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_7__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_8__["default"]],
- props: {
- auto: Boolean,
- closeOnClick: {
- type: Boolean,
- default: true
- },
- closeOnContentClick: {
- type: Boolean,
- default: true
- },
- disabled: Boolean,
- fullWidth: Boolean,
- maxHeight: { default: 'auto' },
- openOnClick: {
- type: Boolean,
- default: true
- },
- offsetX: Boolean,
- offsetY: Boolean,
- openOnHover: Boolean,
- origin: {
- type: String,
- default: 'top left'
- },
- transition: {
- type: [Boolean, String],
- default: 'v-menu-transition'
- }
- },
- data: function data() {
- return {
- defaultOffset: 8,
- hasJustFocused: false,
- resizeTimeout: null
- };
- },
- computed: {
- calculatedLeft: function calculatedLeft() {
- var menuWidth = Math.max(this.dimensions.content.width, parseFloat(this.calculatedMinWidth));
- if (!this.auto) return this.calcLeft(menuWidth);
- return this.calcXOverflow(this.calcLeftAuto(), menuWidth) + "px";
- },
- calculatedMaxHeight: function calculatedMaxHeight() {
- return this.auto ? '200px' : Object(_util_helpers__WEBPACK_IMPORTED_MODULE_15__["convertToUnit"])(this.maxHeight);
- },
- calculatedMaxWidth: function calculatedMaxWidth() {
- return isNaN(this.maxWidth) ? this.maxWidth : this.maxWidth + "px";
- },
- calculatedMinWidth: function calculatedMinWidth() {
- if (this.minWidth) {
- return isNaN(this.minWidth) ? this.minWidth : this.minWidth + "px";
- }
- var minWidth = Math.min(this.dimensions.activator.width + this.nudgeWidth + (this.auto ? 16 : 0), Math.max(this.pageWidth - 24, 0));
- var calculatedMaxWidth = isNaN(parseInt(this.calculatedMaxWidth)) ? minWidth : parseInt(this.calculatedMaxWidth);
- return Math.min(calculatedMaxWidth, minWidth) + "px";
- },
- calculatedTop: function calculatedTop() {
- if (!this.auto || this.isAttached) return this.calcTop();
- return this.calcYOverflow(this.calculatedTopAuto) + "px";
- },
- styles: function styles() {
- return {
- maxHeight: this.calculatedMaxHeight,
- minWidth: this.calculatedMinWidth,
- maxWidth: this.calculatedMaxWidth,
- top: this.calculatedTop,
- left: this.calculatedLeft,
- transformOrigin: this.origin,
- zIndex: this.zIndex || this.activeZIndex
- };
- }
- },
- watch: {
- activator: function activator(newActivator, oldActivator) {
- this.removeActivatorEvents(oldActivator);
- this.addActivatorEvents(newActivator);
- },
- disabled: function disabled(_disabled) {
- if (!this.activator) return;
- if (_disabled) {
- this.removeActivatorEvents(this.activator);
- } else {
- this.addActivatorEvents(this.activator);
- }
- },
- isContentActive: function isContentActive(val) {
- this.hasJustFocused = val;
- }
- },
- mounted: function mounted() {
- this.isActive && this.activate();
- if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_15__["getSlotType"])(this, 'activator', true) === 'v-slot') {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_17__["consoleError"])("v-tooltip's activator slot must be bound, try '<template #activator=\"data\"><v-btn v-on=\"data.on>'", this);
- }
- },
- methods: {
- activate: function activate() {
- var _this = this;
- // This exists primarily for v-select
- // helps determine which tiles to activate
- this.getTiles();
- // Update coordinates and dimensions of menu
- // and its activator
- this.updateDimensions();
- // Start the transition
- requestAnimationFrame(function () {
- // Once transitioning, calculate scroll and top position
- _this.startTransition().then(function () {
- if (_this.$refs.content) {
- _this.calculatedTopAuto = _this.calcTopAuto();
- _this.auto && (_this.$refs.content.scrollTop = _this.calcScrollPosition());
- }
- });
- });
- },
- closeConditional: function closeConditional(e) {
- return this.isActive && this.closeOnClick && !this.$refs.content.contains(e.target);
- },
- onResize: function onResize() {
- if (!this.isActive) return;
- // Account for screen resize
- // and orientation change
- // eslint-disable-next-line no-unused-expressions
- this.$refs.content.offsetWidth;
- this.updateDimensions();
- // When resizing to a smaller width
- // content width is evaluated before
- // the new activator width has been
- // set, causing it to not size properly
- // hacky but will revisit in the future
- clearTimeout(this.resizeTimeout);
- this.resizeTimeout = setTimeout(this.updateDimensions, 100);
- }
- },
- render: function render(h) {
- var data = {
- staticClass: 'v-menu',
- class: { 'v-menu--inline': !this.fullWidth && this.$slots.activator },
- directives: [{
- arg: 500,
- name: 'resize',
- value: this.onResize
- }],
- on: this.disableKeys ? undefined : {
- keydown: this.onKeyDown
- }
- };
- return h('div', data, [this.genActivator(), this.$createElement(_util_ThemeProvider__WEBPACK_IMPORTED_MODULE_16__["default"], {
- props: {
- root: true,
- light: this.light,
- dark: this.dark
- }
- }, [this.genTransition()])]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VMenu/index.js":
- /*!***************************************!*\
- !*** ./src/components/VMenu/index.js ***!
- \***************************************/
- /*! exports provided: VMenu, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VMenu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VMenu */ "./src/components/VMenu/VMenu.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VMenu", function() { return _VMenu__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VMenu__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VMenu/mixins/menu-activator.js":
- /*!*******************************************************!*\
- !*** ./src/components/VMenu/mixins/menu-activator.js ***!
- \*******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /**
- * Menu activator
- *
- * @mixin
- *
- * Handles the click and hover activation
- * Supports slotted and detached activators
- */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- methods: {
- activatorClickHandler: function activatorClickHandler(e) {
- if (this.openOnClick && !this.isActive) {
- this.getActivator(e).focus();
- this.isActive = true;
- this.absoluteX = e.clientX;
- this.absoluteY = e.clientY;
- } else if (this.closeOnClick && this.isActive) {
- this.getActivator(e).blur();
- this.isActive = false;
- }
- },
- mouseEnterHandler: function mouseEnterHandler() {
- var _this = this;
- this.runDelay('open', function () {
- if (_this.hasJustFocused) return;
- _this.hasJustFocused = true;
- _this.isActive = true;
- });
- },
- mouseLeaveHandler: function mouseLeaveHandler(e) {
- var _this = this;
- // Prevent accidental re-activation
- this.runDelay('close', function () {
- if (_this.$refs.content.contains(e.relatedTarget)) return;
- requestAnimationFrame(function () {
- _this.isActive = false;
- _this.callDeactivate();
- });
- });
- },
- addActivatorEvents: function addActivatorEvents(activator) {
- if (activator === void 0) {
- activator = null;
- }
- if (!activator || this.disabled) return;
- activator.addEventListener('click', this.activatorClickHandler);
- },
- removeActivatorEvents: function removeActivatorEvents(activator) {
- if (activator === void 0) {
- activator = null;
- }
- if (!activator) return;
- activator.removeEventListener('click', this.activatorClickHandler);
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VMenu/mixins/menu-generators.js":
- /*!********************************************************!*\
- !*** ./src/components/VMenu/mixins/menu-generators.js ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/helpers */ "./src/util/helpers.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- methods: {
- genActivator: function genActivator() {
- if (!this.$slots.activator && !this.$scopedSlots.activator) return null;
- var listeners = {};
- if (!this.disabled) {
- if (this.openOnHover) {
- listeners.mouseenter = this.mouseEnterHandler;
- listeners.mouseleave = this.mouseLeaveHandler;
- } else if (this.openOnClick) {
- listeners.click = this.activatorClickHandler;
- }
- }
- if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["getSlotType"])(this, 'activator') === 'scoped') {
- listeners.keydown = this.onKeyDown;
- var activator = this.$scopedSlots.activator({ on: listeners });
- this.activatorNode = activator;
- return activator;
- }
- return this.$createElement('div', {
- staticClass: 'v-menu__activator',
- 'class': {
- 'v-menu__activator--active': this.hasJustFocused || this.isActive,
- 'v-menu__activator--disabled': this.disabled
- },
- ref: 'activator',
- on: listeners
- }, this.$slots.activator);
- },
- genTransition: function genTransition() {
- if (!this.transition) return this.genContent();
- return this.$createElement('transition', {
- props: {
- name: this.transition
- }
- }, [this.genContent()]);
- },
- genDirectives: function genDirectives() {
- var _this = this;
- // Do not add click outside for hover menu
- var directives = !this.openOnHover && this.closeOnClick ? [{
- name: 'click-outside',
- value: function value() {
- _this.isActive = false;
- },
- args: {
- closeConditional: this.closeConditional,
- include: function include() {
- return __spread([_this.$el], _this.getOpenDependentElements());
- }
- }
- }] : [];
- directives.push({
- name: 'show',
- value: this.isContentActive
- });
- return directives;
- },
- genContent: function genContent() {
- var _this = this;
- var _a;
- var options = {
- attrs: this.getScopeIdAttrs(),
- staticClass: 'v-menu__content',
- 'class': __assign({}, this.rootThemeClasses, (_a = { 'v-menu__content--auto': this.auto, 'v-menu__content--fixed': this.activatorFixed, 'menuable__content__active': this.isActive }, _a[this.contentClass.trim()] = true, _a)),
- style: this.styles,
- directives: this.genDirectives(),
- ref: 'content',
- on: {
- click: function click(e) {
- e.stopPropagation();
- if (e.target.getAttribute('disabled')) return;
- if (_this.closeOnContentClick) _this.isActive = false;
- },
- keydown: this.onKeyDown
- }
- };
- !this.disabled && this.openOnHover && (options.on.mouseenter = this.mouseEnterHandler);
- this.openOnHover && (options.on.mouseleave = this.mouseLeaveHandler);
- return this.$createElement('div', options, this.showLazyContent(this.$slots.default));
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VMenu/mixins/menu-keyable.js":
- /*!*****************************************************!*\
- !*** ./src/components/VMenu/mixins/menu-keyable.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/helpers */ "./src/util/helpers.ts");
- /**
- * Menu keyable
- *
- * @mixin
- *
- * Primarily used to support VSelect
- * Handles opening and closing of VMenu from keystrokes
- * Will conditionally highlight VListTiles for VSelect
- */
- // Utils
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- disableKeys: Boolean
- },
- data: function data() {
- return {
- listIndex: -1,
- tiles: []
- };
- },
- watch: {
- isActive: function isActive(val) {
- if (!val) this.listIndex = -1;
- },
- listIndex: function listIndex(next, prev) {
- if (next in this.tiles) {
- var tile = this.tiles[next];
- tile.classList.add('v-list__tile--highlighted');
- this.$refs.content.scrollTop = tile.offsetTop - tile.clientHeight;
- }
- prev in this.tiles && this.tiles[prev].classList.remove('v-list__tile--highlighted');
- }
- },
- methods: {
- onKeyDown: function onKeyDown(e) {
- var _this = this;
- if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_0__["keyCodes"].esc) {
- // Wait for dependent elements to close first
- setTimeout(function () {
- _this.isActive = false;
- });
- var activator_1 = this.getActivator();
- this.$nextTick(function () {
- return activator_1 && activator_1.focus();
- });
- } else if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_0__["keyCodes"].tab) {
- setTimeout(function () {
- if (!_this.$refs.content.contains(document.activeElement)) {
- _this.isActive = false;
- }
- });
- } else {
- this.changeListIndex(e);
- }
- },
- changeListIndex: function changeListIndex(e) {
- // For infinite scroll and autocomplete, re-evaluate children
- this.getTiles();
- if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_0__["keyCodes"].down && this.listIndex < this.tiles.length - 1) {
- this.listIndex++;
- // Allow user to set listIndex to -1 so
- // that the list can be un-highlighted
- } else if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_0__["keyCodes"].up && this.listIndex > -1) {
- this.listIndex--;
- } else if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_0__["keyCodes"].enter && this.listIndex !== -1) {
- this.tiles[this.listIndex].click();
- } else {
- return;
- }
- // One of the conditions was met, prevent default action (#2988)
- e.preventDefault();
- },
- getTiles: function getTiles() {
- this.tiles = this.$refs.content.querySelectorAll('.v-list__tile');
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VMenu/mixins/menu-position.js":
- /*!******************************************************!*\
- !*** ./src/components/VMenu/mixins/menu-position.js ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /**
- * Menu position
- *
- * @mixin
- *
- * Used for calculating an automatic position (used for VSelect)
- * Will position the VMenu content properly over the VSelect
- */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- data: function data() {
- return {
- calculatedTopAuto: 0
- };
- },
- methods: {
- calcScrollPosition: function calcScrollPosition() {
- var $el = this.$refs.content;
- var activeTile = $el.querySelector('.v-list__tile--active');
- var maxScrollTop = $el.scrollHeight - $el.offsetHeight;
- return activeTile ? Math.min(maxScrollTop, Math.max(0, activeTile.offsetTop - $el.offsetHeight / 2 + activeTile.offsetHeight / 2)) : $el.scrollTop;
- },
- calcLeftAuto: function calcLeftAuto() {
- if (this.isAttached) return 0;
- return parseInt(this.dimensions.activator.left - this.defaultOffset * 2);
- },
- calcTopAuto: function calcTopAuto() {
- var $el = this.$refs.content;
- var activeTile = $el.querySelector('.v-list__tile--active');
- if (!activeTile) {
- this.selectedIndex = null;
- }
- if (this.offsetY || !activeTile) {
- return this.computedTop;
- }
- this.selectedIndex = Array.from(this.tiles).indexOf(activeTile);
- var tileDistanceFromMenuTop = activeTile.offsetTop - this.calcScrollPosition();
- var firstTileOffsetTop = $el.querySelector('.v-list__tile').offsetTop;
- return this.computedTop - tileDistanceFromMenuTop - firstTileOffsetTop;
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VMessages/VMessages.ts":
- /*!***********************************************!*\
- !*** ./src/components/VMessages/VMessages.ts ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_messages_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_messages.styl */ "./src/stylus/components/_messages.styl");
- /* harmony import */ var _stylus_components_messages_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_messages_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- // Styles
-
- // Mixins
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]).extend({
- name: 'v-messages',
- props: {
- value: {
- type: Array,
- default: function _default() {
- return [];
- }
- }
- },
- methods: {
- genChildren: function genChildren() {
- return this.$createElement('transition-group', {
- staticClass: 'v-messages__wrapper',
- attrs: {
- name: 'message-transition',
- tag: 'div'
- }
- }, this.value.map(this.genMessage));
- },
- genMessage: function genMessage(message, key) {
- return this.$createElement('div', {
- staticClass: 'v-messages__message',
- key: key,
- domProps: {
- innerHTML: message
- }
- });
- }
- },
- render: function render(h) {
- return h('div', this.setTextColor(this.color, {
- staticClass: 'v-messages',
- class: this.themeClasses
- }), [this.genChildren()]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VMessages/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VMessages/index.ts ***!
- \*******************************************/
- /*! exports provided: VMessages, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VMessages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VMessages */ "./src/components/VMessages/VMessages.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VMessages", function() { return _VMessages__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VMessages__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VNavigationDrawer/VNavigationDrawer.ts":
- /*!***************************************************************!*\
- !*** ./src/components/VNavigationDrawer/VNavigationDrawer.ts ***!
- \***************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_navigation_drawer_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_navigation-drawer.styl */ "./src/stylus/components/_navigation-drawer.styl");
- /* harmony import */ var _stylus_components_navigation_drawer_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_navigation_drawer_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/applicationable */ "./src/mixins/applicationable.ts");
- /* harmony import */ var _mixins_dependent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/dependent */ "./src/mixins/dependent.ts");
- /* harmony import */ var _mixins_overlayable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/overlayable */ "./src/mixins/overlayable.ts");
- /* harmony import */ var _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/ssr-bootable */ "./src/mixins/ssr-bootable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _directives_click_outside__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../directives/click-outside */ "./src/directives/click-outside.ts");
- /* harmony import */ var _directives_resize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../directives/resize */ "./src/directives/resize.ts");
- /* harmony import */ var _directives_touch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../directives/touch */ "./src/directives/touch.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Mixins
-
-
-
-
-
- // Directives
-
-
-
- // Utilities
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_10__["default"])(Object(_mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__["default"])('left', ['miniVariant', 'right', 'width']), _mixins_dependent__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_overlayable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-navigation-drawer',
- directives: {
- ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_6__["default"],
- Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_7__["default"],
- Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_8__["default"]
- },
- props: {
- clipped: Boolean,
- disableRouteWatcher: Boolean,
- disableResizeWatcher: Boolean,
- height: {
- type: [Number, String],
- default: '100%'
- },
- floating: Boolean,
- miniVariant: Boolean,
- miniVariantWidth: {
- type: [Number, String],
- default: 80
- },
- mobileBreakPoint: {
- type: [Number, String],
- default: 1264
- },
- permanent: Boolean,
- right: Boolean,
- stateless: Boolean,
- temporary: Boolean,
- touchless: Boolean,
- width: {
- type: [Number, String],
- default: 300
- },
- value: { required: false }
- },
- data: function data() {
- return {
- isActive: false,
- touchArea: {
- left: 0,
- right: 0
- }
- };
- },
- computed: {
- /**
- * Used for setting an app value from a dynamic
- * property. Called from applicationable.js
- */
- applicationProperty: function applicationProperty() {
- return this.right ? 'right' : 'left';
- },
- calculatedTransform: function calculatedTransform() {
- if (this.isActive) return 0;
- return this.right ? this.calculatedWidth : -this.calculatedWidth;
- },
- calculatedWidth: function calculatedWidth() {
- return parseInt(this.miniVariant ? this.miniVariantWidth : this.width);
- },
- classes: function classes() {
- return __assign({ 'v-navigation-drawer': true, 'v-navigation-drawer--absolute': this.absolute, 'v-navigation-drawer--clipped': this.clipped, 'v-navigation-drawer--close': !this.isActive, 'v-navigation-drawer--fixed': !this.absolute && (this.app || this.fixed), 'v-navigation-drawer--floating': this.floating, 'v-navigation-drawer--is-mobile': this.isMobile, 'v-navigation-drawer--mini-variant': this.miniVariant, 'v-navigation-drawer--open': this.isActive, 'v-navigation-drawer--right': this.right, 'v-navigation-drawer--temporary': this.temporary }, this.themeClasses);
- },
- hasApp: function hasApp() {
- return this.app && !this.isMobile && !this.temporary;
- },
- isMobile: function isMobile() {
- return !this.stateless && !this.permanent && !this.temporary && this.$vuetify.breakpoint.width < parseInt(this.mobileBreakPoint, 10);
- },
- marginTop: function marginTop() {
- if (!this.hasApp) return 0;
- var marginTop = this.$vuetify.application.bar;
- marginTop += this.clipped ? this.$vuetify.application.top : 0;
- return marginTop;
- },
- maxHeight: function maxHeight() {
- if (!this.hasApp) return null;
- var maxHeight = this.$vuetify.application.bottom + this.$vuetify.application.footer + this.$vuetify.application.bar;
- if (!this.clipped) return maxHeight;
- return maxHeight + this.$vuetify.application.top;
- },
- reactsToClick: function reactsToClick() {
- return !this.stateless && !this.permanent && (this.isMobile || this.temporary);
- },
- reactsToMobile: function reactsToMobile() {
- return !this.disableResizeWatcher && !this.stateless && !this.permanent && !this.temporary;
- },
- reactsToRoute: function reactsToRoute() {
- return !this.disableRouteWatcher && !this.stateless && (this.temporary || this.isMobile);
- },
- resizeIsDisabled: function resizeIsDisabled() {
- return this.disableResizeWatcher || this.stateless;
- },
- showOverlay: function showOverlay() {
- return this.isActive && (this.isMobile || this.temporary);
- },
- styles: function styles() {
- var styles = {
- height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["convertToUnit"])(this.height),
- marginTop: this.marginTop + "px",
- maxHeight: this.maxHeight != null ? "calc(100% - " + +this.maxHeight + "px)" : undefined,
- transform: "translateX(" + this.calculatedTransform + "px)",
- width: this.calculatedWidth + "px"
- };
- return styles;
- }
- },
- watch: {
- $route: function $route() {
- if (this.reactsToRoute && this.closeConditional()) {
- this.isActive = false;
- }
- },
- isActive: function isActive(val) {
- this.$emit('input', val);
- this.callUpdate();
- },
- /**
- * When mobile changes, adjust the active state
- * only when there has been a previous value
- */
- isMobile: function isMobile(val, prev) {
- !val && this.isActive && !this.temporary && this.removeOverlay();
- if (prev == null || this.resizeIsDisabled || !this.reactsToMobile) return;
- this.isActive = !val;
- this.callUpdate();
- },
- permanent: function permanent(val) {
- // If enabling prop enable the drawer
- if (val) {
- this.isActive = true;
- }
- this.callUpdate();
- },
- showOverlay: function showOverlay(val) {
- if (val) this.genOverlay();else this.removeOverlay();
- },
- temporary: function temporary() {
- this.callUpdate();
- },
- value: function value(val) {
- if (this.permanent) return;
- // TODO: referring to this directly causes type errors
- // all over the place for some reason
- var _this = this;
- if (val == null) return _this.init();
- if (val !== this.isActive) this.isActive = val;
- }
- },
- beforeMount: function beforeMount() {
- this.init();
- },
- methods: {
- calculateTouchArea: function calculateTouchArea() {
- if (!this.$el.parentNode) return;
- var parentRect = this.$el.parentNode.getBoundingClientRect();
- this.touchArea = {
- left: parentRect.left + 50,
- right: parentRect.right - 50
- };
- },
- closeConditional: function closeConditional() {
- return this.isActive && this.reactsToClick;
- },
- genDirectives: function genDirectives() {
- var _this_1 = this;
- var directives = [{
- name: 'click-outside',
- value: function value() {
- return _this_1.isActive = false;
- },
- args: {
- closeConditional: this.closeConditional,
- include: this.getOpenDependentElements
- }
- }];
- !this.touchless && directives.push({
- name: 'touch',
- value: {
- parent: true,
- left: this.swipeLeft,
- right: this.swipeRight
- }
- });
- return directives;
- },
- /**
- * Sets state before mount to avoid
- * entry transitions in SSR
- */
- init: function init() {
- if (this.permanent) {
- this.isActive = true;
- } else if (this.stateless || this.value != null) {
- this.isActive = this.value;
- } else if (!this.temporary) {
- this.isActive = !this.isMobile;
- }
- },
- swipeRight: function swipeRight(e) {
- if (this.isActive && !this.right) return;
- this.calculateTouchArea();
- if (Math.abs(e.touchendX - e.touchstartX) < 100) return;
- if (!this.right && e.touchstartX <= this.touchArea.left) this.isActive = true;else if (this.right && this.isActive) this.isActive = false;
- },
- swipeLeft: function swipeLeft(e) {
- if (this.isActive && this.right) return;
- this.calculateTouchArea();
- if (Math.abs(e.touchendX - e.touchstartX) < 100) return;
- if (this.right && e.touchstartX >= this.touchArea.right) this.isActive = true;else if (!this.right && this.isActive) this.isActive = false;
- },
- /**
- * Update the application layout
- */
- updateApplication: function updateApplication() {
- return !this.isActive || this.temporary || this.isMobile ? 0 : this.calculatedWidth;
- }
- },
- render: function render(h) {
- var _this_1 = this;
- var data = {
- 'class': this.classes,
- style: this.styles,
- directives: this.genDirectives(),
- on: {
- click: function click() {
- if (!_this_1.miniVariant) return;
- _this_1.$emit('update:miniVariant', false);
- },
- transitionend: function transitionend(e) {
- if (e.target !== e.currentTarget) return;
- _this_1.$emit('transitionend', e);
- // IE11 does not support new Event('resize')
- var resizeEvent = document.createEvent('UIEvents');
- resizeEvent.initUIEvent('resize', true, false, window, 0);
- window.dispatchEvent(resizeEvent);
- }
- }
- };
- return h('aside', data, [this.$slots.default, h('div', { 'class': 'v-navigation-drawer__border' })]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VNavigationDrawer/index.ts":
- /*!***************************************************!*\
- !*** ./src/components/VNavigationDrawer/index.ts ***!
- \***************************************************/
- /*! exports provided: VNavigationDrawer, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VNavigationDrawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VNavigationDrawer */ "./src/components/VNavigationDrawer/VNavigationDrawer.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VNavigationDrawer", function() { return _VNavigationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VNavigationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VOverflowBtn/VOverflowBtn.js":
- /*!*****************************************************!*\
- !*** ./src/components/VOverflowBtn/VOverflowBtn.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_overflow_buttons_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_overflow-buttons.styl */ "./src/stylus/components/_overflow-buttons.styl");
- /* harmony import */ var _stylus_components_overflow_buttons_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_overflow_buttons_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VSelect/VSelect */ "./src/components/VSelect/VSelect.js");
- /* harmony import */ var _VAutocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VAutocomplete */ "./src/components/VAutocomplete/index.js");
- /* harmony import */ var _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../VTextField/VTextField */ "./src/components/VTextField/VTextField.js");
- /* harmony import */ var _VBtn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../VBtn */ "./src/components/VBtn/index.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- // Styles
-
- // Extensions
-
-
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].extend({
- name: 'v-overflow-btn',
- props: {
- segmented: Boolean,
- editable: Boolean,
- transition: _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.props.transition
- },
- computed: {
- classes: function classes() {
- return Object.assign(_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.classes.call(this), {
- 'v-overflow-btn': true,
- 'v-overflow-btn--segmented': this.segmented,
- 'v-overflow-btn--editable': this.editable
- });
- },
- isAnyValueAllowed: function isAnyValueAllowed() {
- return this.editable || _VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.isAnyValueAllowed.call(this);
- },
- isSingle: function isSingle() {
- return true;
- },
- computedItems: function computedItems() {
- return this.segmented ? this.allItems : this.filteredItems;
- },
- $_menuProps: function $_menuProps() {
- var props = _VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.computed.$_menuProps.call(this);
- props.transition = props.transition || 'v-menu-transition';
- return props;
- }
- },
- methods: {
- genSelections: function genSelections() {
- return this.editable ? _VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genSelections.call(this) : _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genSelections.call(this); // Override v-autocomplete's override
- },
- genCommaSelection: function genCommaSelection(item, index, last) {
- return this.segmented ? this.genSegmentedBtn(item) : _VSelect_VSelect__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genCommaSelection.call(this, item, index, last);
- },
- genInput: function genInput() {
- var input = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_3__["default"].options.methods.genInput.call(this);
- input.data.domProps.value = this.editable ? this.internalSearch : '';
- input.data.attrs.readonly = !this.isAnyValueAllowed;
- return input;
- },
- genLabel: function genLabel() {
- if (this.editable && this.isFocused) return null;
- var label = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_3__["default"].options.methods.genLabel.call(this);
- if (!label) return label;
- // Reset previously set styles from parent
- label.data.style = {};
- return label;
- },
- genSegmentedBtn: function genSegmentedBtn(item) {
- var _this = this;
- var itemValue = this.getValue(item);
- var itemObj = this.computedItems.find(function (i) {
- return _this.getValue(i) === itemValue;
- }) || item;
- if (!itemObj.text || !itemObj.callback) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_5__["consoleWarn"])('When using \'segmented\' prop without a selection slot, items must contain both a text and callback property', this);
- return null;
- }
- return this.$createElement(_VBtn__WEBPACK_IMPORTED_MODULE_4__["default"], {
- props: { flat: true },
- on: {
- click: function click(e) {
- e.stopPropagation();
- itemObj.callback(e);
- }
- }
- }, [itemObj.text]);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VOverflowBtn/index.js":
- /*!**********************************************!*\
- !*** ./src/components/VOverflowBtn/index.js ***!
- \**********************************************/
- /*! exports provided: VOverflowBtn, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VOverflowBtn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VOverflowBtn */ "./src/components/VOverflowBtn/VOverflowBtn.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VOverflowBtn", function() { return _VOverflowBtn__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VOverflowBtn__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VPagination/VPagination.ts":
- /*!***************************************************!*\
- !*** ./src/components/VPagination/VPagination.ts ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_pagination_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_pagination.styl */ "./src/stylus/components/_pagination.styl");
- /* harmony import */ var _stylus_components_pagination_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_pagination_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _directives_resize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../directives/resize */ "./src/directives/resize.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
-
-
- // Directives
-
- // Mixins
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__["default"]).extend({
- name: 'v-pagination',
- directives: { Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_2__["default"] },
- props: {
- circle: Boolean,
- disabled: Boolean,
- length: {
- type: Number,
- default: 0,
- validator: function validator(val) {
- return val % 1 === 0;
- }
- },
- totalVisible: [Number, String],
- nextIcon: {
- type: String,
- default: '$vuetify.icons.next'
- },
- prevIcon: {
- type: String,
- default: '$vuetify.icons.prev'
- },
- value: {
- type: Number,
- default: 0
- }
- },
- data: function data() {
- return {
- maxButtons: 0,
- selected: null
- };
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-pagination': true, 'v-pagination--circle': this.circle, 'v-pagination--disabled': this.disabled }, this.themeClasses);
- },
- items: function items() {
- var maxLength = parseInt(this.totalVisible, 10) || this.maxButtons;
- if (this.length <= maxLength) {
- return this.range(1, this.length);
- }
- var even = maxLength % 2 === 0 ? 1 : 0;
- var left = Math.floor(maxLength / 2);
- var right = this.length - left + 1 + even;
- if (this.value > left && this.value < right) {
- var start = this.value - left + 2;
- var end = this.value + left - 2 - even;
- return __spread([1, '...'], this.range(start, end), ['...', this.length]);
- } else if (this.value === left) {
- var end = this.value + left - 1 - even;
- return __spread(this.range(1, end), ['...', this.length]);
- } else if (this.value === right) {
- var start = this.value - left + 1;
- return __spread([1, '...'], this.range(start, this.length));
- } else {
- return __spread(this.range(1, left), ['...'], this.range(right, this.length));
- }
- }
- },
- watch: {
- value: function value() {
- this.init();
- }
- },
- mounted: function mounted() {
- this.init();
- },
- methods: {
- init: function init() {
- var _this = this;
- this.selected = null;
- this.$nextTick(this.onResize);
- // TODO: Change this (f75dee3a, cbdf7caa)
- setTimeout(function () {
- return _this.selected = _this.value;
- }, 100);
- },
- onResize: function onResize() {
- var width = this.$el && this.$el.parentElement ? this.$el.parentElement.clientWidth : window.innerWidth;
- this.maxButtons = Math.floor((width - 96) / 42);
- },
- next: function next(e) {
- e.preventDefault();
- this.$emit('input', this.value + 1);
- this.$emit('next');
- },
- previous: function previous(e) {
- e.preventDefault();
- this.$emit('input', this.value - 1);
- this.$emit('previous');
- },
- range: function range(from, to) {
- var range = [];
- from = from > 0 ? from : 1;
- for (var i = from; i <= to; i++) {
- range.push(i);
- }
- return range;
- },
- genIcon: function genIcon(h, icon, disabled, fn) {
- return h('li', [h('button', {
- staticClass: 'v-pagination__navigation',
- class: {
- 'v-pagination__navigation--disabled': disabled
- },
- attrs: {
- type: 'button'
- },
- on: disabled ? {} : { click: fn }
- }, [h(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], [icon])])]);
- },
- genItem: function genItem(h, i) {
- var _this = this;
- var color = i === this.value && (this.color || 'primary');
- return h('button', this.setBackgroundColor(color, {
- staticClass: 'v-pagination__item',
- class: {
- 'v-pagination__item--active': i === this.value
- },
- attrs: {
- type: 'button'
- },
- on: {
- click: function click() {
- return _this.$emit('input', i);
- }
- }
- }), [i.toString()]);
- },
- genItems: function genItems(h) {
- var _this = this;
- return this.items.map(function (i, index) {
- return h('li', { key: index }, [isNaN(Number(i)) ? h('span', { class: 'v-pagination__more' }, [i.toString()]) : _this.genItem(h, i)]);
- });
- }
- },
- render: function render(h) {
- var children = [this.genIcon(h, this.$vuetify.rtl ? this.nextIcon : this.prevIcon, this.value <= 1, this.previous), this.genItems(h), this.genIcon(h, this.$vuetify.rtl ? this.prevIcon : this.nextIcon, this.value >= this.length, this.next)];
- return h('ul', {
- directives: [{
- modifiers: { quiet: true },
- name: 'resize',
- value: this.onResize
- }],
- class: this.classes
- }, children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VPagination/index.ts":
- /*!*********************************************!*\
- !*** ./src/components/VPagination/index.ts ***!
- \*********************************************/
- /*! exports provided: VPagination, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VPagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VPagination */ "./src/components/VPagination/VPagination.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VPagination", function() { return _VPagination__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VPagination__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VParallax/VParallax.ts":
- /*!***********************************************!*\
- !*** ./src/components/VParallax/VParallax.ts ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_parallax_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_parallax.styl */ "./src/stylus/components/_parallax.styl");
- /* harmony import */ var _stylus_components_parallax_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_parallax_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_translatable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/translatable */ "./src/mixins/translatable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- // Style
-
- // Mixins
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_translatable__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
- name: 'v-parallax',
- props: {
- alt: {
- type: String,
- default: ''
- },
- height: {
- type: [String, Number],
- default: 500
- },
- src: String
- },
- data: function data() {
- return {
- isBooted: false
- };
- },
- computed: {
- styles: function styles() {
- return {
- display: 'block',
- opacity: this.isBooted ? 1 : 0,
- transform: "translate(-50%, " + this.parallax + "px)"
- };
- }
- },
- watch: {
- parallax: function parallax() {
- this.isBooted = true;
- }
- },
- mounted: function mounted() {
- this.init();
- },
- methods: {
- init: function init() {
- var _this = this;
- var img = this.$refs.img;
- if (!img) return;
- if (img.complete) {
- this.translate();
- this.listeners();
- } else {
- img.addEventListener('load', function () {
- _this.translate();
- _this.listeners();
- }, false);
- }
- },
- objHeight: function objHeight() {
- return this.$refs.img.naturalHeight;
- }
- },
- render: function render(h) {
- var imgData = {
- staticClass: 'v-parallax__image',
- style: this.styles,
- attrs: {
- src: this.src,
- alt: this.alt
- },
- ref: 'img'
- };
- var container = h('div', {
- staticClass: 'v-parallax__image-container'
- }, [h('img', imgData)]);
- var content = h('div', {
- staticClass: 'v-parallax__content'
- }, this.$slots.default);
- return h('div', {
- staticClass: 'v-parallax',
- style: {
- height: this.height + "px"
- },
- on: this.$listeners
- }, [container, content]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VParallax/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VParallax/index.ts ***!
- \*******************************************/
- /*! exports provided: VParallax, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VParallax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VParallax */ "./src/components/VParallax/VParallax.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VParallax", function() { return _VParallax__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VParallax__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VPicker/VPicker.ts":
- /*!*******************************************!*\
- !*** ./src/components/VPicker/VPicker.ts ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_pickers_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_pickers.styl */ "./src/stylus/components/_pickers.styl");
- /* harmony import */ var _stylus_components_pickers_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_pickers_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _stylus_components_cards_styl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../stylus/components/_cards.styl */ "./src/stylus/components/_cards.styl");
- /* harmony import */ var _stylus_components_cards_styl__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_cards_styl__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
-
- // Mixins
-
-
- // Helpers
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]).extend({
- name: 'v-picker',
- props: {
- fullWidth: Boolean,
- landscape: Boolean,
- transition: {
- type: String,
- default: 'fade-transition'
- },
- width: {
- type: [Number, String],
- default: 290
- }
- },
- computed: {
- computedTitleColor: function computedTitleColor() {
- var defaultTitleColor = this.isDark ? false : this.color || 'primary';
- return this.color || defaultTitleColor;
- }
- },
- methods: {
- genTitle: function genTitle() {
- return this.$createElement('div', this.setBackgroundColor(this.computedTitleColor, {
- staticClass: 'v-picker__title',
- 'class': {
- 'v-picker__title--landscape': this.landscape
- }
- }), this.$slots.title);
- },
- genBodyTransition: function genBodyTransition() {
- return this.$createElement('transition', {
- props: {
- name: this.transition
- }
- }, this.$slots.default);
- },
- genBody: function genBody() {
- return this.$createElement('div', {
- staticClass: 'v-picker__body',
- 'class': this.themeClasses,
- style: this.fullWidth ? undefined : {
- width: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.width)
- }
- }, [this.genBodyTransition()]);
- },
- genActions: function genActions() {
- return this.$createElement('div', {
- staticClass: 'v-picker__actions v-card__actions'
- }, this.$slots.actions);
- }
- },
- render: function render(h) {
- return h('div', {
- staticClass: 'v-picker v-card',
- 'class': __assign({ 'v-picker--landscape': this.landscape, 'v-picker--full-width': this.fullWidth }, this.themeClasses)
- }, [this.$slots.title ? this.genTitle() : null, this.genBody(), this.$slots.actions ? this.genActions() : null]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VPicker/index.ts":
- /*!*****************************************!*\
- !*** ./src/components/VPicker/index.ts ***!
- \*****************************************/
- /*! exports provided: VPicker, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VPicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VPicker */ "./src/components/VPicker/VPicker.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VPicker", function() { return _VPicker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VPicker__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VProgressCircular/VProgressCircular.ts":
- /*!***************************************************************!*\
- !*** ./src/components/VProgressCircular/VProgressCircular.ts ***!
- \***************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_progress_circular_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_progress-circular.styl */ "./src/stylus/components/_progress-circular.styl");
- /* harmony import */ var _stylus_components_progress_circular_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_progress_circular_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
-
- // Mixins
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
- name: 'v-progress-circular',
- props: {
- button: Boolean,
- indeterminate: Boolean,
- rotate: {
- type: [Number, String],
- default: 0
- },
- size: {
- type: [Number, String],
- default: 32
- },
- width: {
- type: [Number, String],
- default: 4
- },
- value: {
- type: [Number, String],
- default: 0
- }
- },
- computed: {
- calculatedSize: function calculatedSize() {
- return Number(this.size) + (this.button ? 8 : 0);
- },
- circumference: function circumference() {
- return 2 * Math.PI * this.radius;
- },
- classes: function classes() {
- return {
- 'v-progress-circular--indeterminate': this.indeterminate,
- 'v-progress-circular--button': this.button
- };
- },
- normalizedValue: function normalizedValue() {
- if (this.value < 0) {
- return 0;
- }
- if (this.value > 100) {
- return 100;
- }
- return parseFloat(this.value);
- },
- radius: function radius() {
- return 20;
- },
- strokeDashArray: function strokeDashArray() {
- return Math.round(this.circumference * 1000) / 1000;
- },
- strokeDashOffset: function strokeDashOffset() {
- return (100 - this.normalizedValue) / 100 * this.circumference + 'px';
- },
- strokeWidth: function strokeWidth() {
- return Number(this.width) / +this.size * this.viewBoxSize * 2;
- },
- styles: function styles() {
- return {
- height: this.calculatedSize + "px",
- width: this.calculatedSize + "px"
- };
- },
- svgStyles: function svgStyles() {
- return {
- transform: "rotate(" + Number(this.rotate) + "deg)"
- };
- },
- viewBoxSize: function viewBoxSize() {
- return this.radius / (1 - Number(this.width) / +this.size);
- }
- },
- methods: {
- genCircle: function genCircle(h, name, offset) {
- return h('circle', {
- class: "v-progress-circular__" + name,
- attrs: {
- fill: 'transparent',
- cx: 2 * this.viewBoxSize,
- cy: 2 * this.viewBoxSize,
- r: this.radius,
- 'stroke-width': this.strokeWidth,
- 'stroke-dasharray': this.strokeDashArray,
- 'stroke-dashoffset': offset
- }
- });
- },
- genSvg: function genSvg(h) {
- var children = [this.indeterminate || this.genCircle(h, 'underlay', 0), this.genCircle(h, 'overlay', this.strokeDashOffset)];
- return h('svg', {
- style: this.svgStyles,
- attrs: {
- xmlns: 'http://www.w3.org/2000/svg',
- viewBox: this.viewBoxSize + " " + this.viewBoxSize + " " + 2 * this.viewBoxSize + " " + 2 * this.viewBoxSize
- }
- }, children);
- }
- },
- render: function render(h) {
- var info = h('div', { staticClass: 'v-progress-circular__info' }, this.$slots.default);
- var svg = this.genSvg(h);
- return h('div', this.setTextColor(this.color, {
- staticClass: 'v-progress-circular',
- attrs: {
- 'role': 'progressbar',
- 'aria-valuemin': 0,
- 'aria-valuemax': 100,
- 'aria-valuenow': this.indeterminate ? undefined : this.normalizedValue
- },
- class: this.classes,
- style: this.styles,
- on: this.$listeners
- }), [svg, info]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VProgressCircular/index.ts":
- /*!***************************************************!*\
- !*** ./src/components/VProgressCircular/index.ts ***!
- \***************************************************/
- /*! exports provided: VProgressCircular, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VProgressCircular__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VProgressCircular */ "./src/components/VProgressCircular/VProgressCircular.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VProgressCircular", function() { return _VProgressCircular__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VProgressCircular__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VProgressLinear/VProgressLinear.ts":
- /*!***********************************************************!*\
- !*** ./src/components/VProgressLinear/VProgressLinear.ts ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_progress_linear_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_progress-linear.styl */ "./src/stylus/components/_progress-linear.styl");
- /* harmony import */ var _stylus_components_progress_linear_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_progress_linear_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../transitions */ "./src/components/transitions/index.js");
-
- // Mixins
-
- // Helpers
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
- name: 'v-progress-linear',
- props: {
- active: {
- type: Boolean,
- default: true
- },
- backgroundColor: {
- type: String,
- default: null
- },
- backgroundOpacity: {
- type: [Number, String],
- default: null
- },
- bufferValue: {
- type: [Number, String],
- default: 100
- },
- color: {
- type: String,
- default: 'primary'
- },
- height: {
- type: [Number, String],
- default: 7
- },
- indeterminate: Boolean,
- query: Boolean,
- value: {
- type: [Number, String],
- default: 0
- }
- },
- computed: {
- backgroundStyle: function backgroundStyle() {
- var backgroundOpacity = this.backgroundOpacity == null ? this.backgroundColor ? 1 : 0.3 : parseFloat(this.backgroundOpacity);
- return {
- height: this.active ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["convertToUnit"])(this.height) : 0,
- opacity: backgroundOpacity,
- width: this.normalizedBufer + "%"
- };
- },
- effectiveWidth: function effectiveWidth() {
- if (!this.normalizedBufer) {
- return 0;
- }
- return +this.normalizedValue * 100 / +this.normalizedBufer;
- },
- normalizedBufer: function normalizedBufer() {
- if (this.bufferValue < 0) {
- return 0;
- }
- if (this.bufferValue > 100) {
- return 100;
- }
- return parseFloat(this.bufferValue);
- },
- normalizedValue: function normalizedValue() {
- if (this.value < 0) {
- return 0;
- }
- if (this.value > 100) {
- return 100;
- }
- return parseFloat(this.value);
- },
- styles: function styles() {
- var styles = {};
- if (!this.active) {
- styles.height = 0;
- }
- if (!this.indeterminate && parseFloat(this.normalizedBufer) !== 100) {
- styles.width = this.normalizedBufer + "%";
- }
- return styles;
- }
- },
- methods: {
- genDeterminate: function genDeterminate(h) {
- return h('div', this.setBackgroundColor(this.color, {
- ref: 'front',
- staticClass: "v-progress-linear__bar__determinate",
- style: {
- width: this.effectiveWidth + "%"
- }
- }));
- },
- genBar: function genBar(h, name) {
- var _a;
- return h('div', this.setBackgroundColor(this.color, {
- staticClass: 'v-progress-linear__bar__indeterminate',
- class: (_a = {}, _a[name] = true, _a)
- }));
- },
- genIndeterminate: function genIndeterminate(h) {
- return h('div', {
- ref: 'front',
- staticClass: 'v-progress-linear__bar__indeterminate',
- class: {
- 'v-progress-linear__bar__indeterminate--active': this.active
- }
- }, [this.genBar(h, 'long'), this.genBar(h, 'short')]);
- }
- },
- render: function render(h) {
- var fade = h(_transitions__WEBPACK_IMPORTED_MODULE_4__["VFadeTransition"], this.indeterminate ? [this.genIndeterminate(h)] : []);
- var slide = h(_transitions__WEBPACK_IMPORTED_MODULE_4__["VSlideXTransition"], this.indeterminate ? [] : [this.genDeterminate(h)]);
- var bar = h('div', {
- staticClass: 'v-progress-linear__bar',
- style: this.styles
- }, [fade, slide]);
- var background = h('div', this.setBackgroundColor(this.backgroundColor || this.color, {
- staticClass: 'v-progress-linear__background',
- style: this.backgroundStyle
- }));
- var content = this.$slots.default && h('div', {
- staticClass: 'v-progress-linear__content'
- }, this.$slots.default);
- return h('div', {
- staticClass: 'v-progress-linear',
- attrs: {
- 'role': 'progressbar',
- 'aria-valuemin': 0,
- 'aria-valuemax': this.normalizedBufer,
- 'aria-valuenow': this.indeterminate ? undefined : this.normalizedValue
- },
- class: {
- 'v-progress-linear--query': this.query
- },
- style: {
- height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["convertToUnit"])(this.height)
- },
- on: this.$listeners
- }, [background, bar, content]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VProgressLinear/index.ts":
- /*!*************************************************!*\
- !*** ./src/components/VProgressLinear/index.ts ***!
- \*************************************************/
- /*! exports provided: VProgressLinear, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VProgressLinear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VProgressLinear */ "./src/components/VProgressLinear/VProgressLinear.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VProgressLinear", function() { return _VProgressLinear__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VProgressLinear__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VRadioGroup/VRadio.js":
- /*!**********************************************!*\
- !*** ./src/components/VRadioGroup/VRadio.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_radios_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_radios.styl */ "./src/stylus/components/_radios.styl");
- /* harmony import */ var _stylus_components_radios_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_radios_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _VLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VLabel */ "./src/components/VLabel/index.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_rippleable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/rippleable */ "./src/mixins/rippleable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins_selectable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../mixins/selectable */ "./src/mixins/selectable.js");
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
- // Styles
-
- // Components
-
-
- // Mixins
-
-
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-radio',
- mixins: [_mixins_colorable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_rippleable__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_7__["inject"])('radio', 'v-radio', 'v-radio-group'), _mixins_themeable__WEBPACK_IMPORTED_MODULE_5__["default"]],
- inheritAttrs: false,
- props: {
- color: {
- type: String,
- default: 'accent'
- },
- disabled: Boolean,
- label: String,
- onIcon: {
- type: String,
- default: '$vuetify.icons.radioOn'
- },
- offIcon: {
- type: String,
- default: '$vuetify.icons.radioOff'
- },
- readonly: Boolean,
- value: null
- },
- data: function data() {
- return {
- isActive: false,
- isFocused: false,
- parentError: false
- };
- },
- computed: {
- computedData: function computedData() {
- return this.setTextColor(!this.parentError && this.isActive && this.color, {
- staticClass: 'v-radio',
- 'class': __assign({ 'v-radio--is-disabled': this.isDisabled, 'v-radio--is-focused': this.isFocused }, this.themeClasses)
- });
- },
- computedColor: function computedColor() {
- return this.isActive ? this.color : this.radio.validationState || false;
- },
- computedIcon: function computedIcon() {
- return this.isActive ? this.onIcon : this.offIcon;
- },
- hasState: function hasState() {
- return this.isActive || !!this.radio.validationState;
- },
- isDisabled: function isDisabled() {
- return this.disabled || !!this.radio.disabled;
- },
- isReadonly: function isReadonly() {
- return this.readonly || !!this.radio.readonly;
- }
- },
- mounted: function mounted() {
- this.radio.register(this);
- },
- beforeDestroy: function beforeDestroy() {
- this.radio.unregister(this);
- },
- methods: {
- genInput: function genInput() {
- var args = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- args[_i] = arguments[_i];
- }
- var _a;
- // We can't actually use the mixin directly because
- // it's made for standalone components, but its
- // genInput method is exactly what we need
- return (_a = _mixins_selectable__WEBPACK_IMPORTED_MODULE_6__["default"].options.methods.genInput).call.apply(_a, __spread([this], args));
- },
- genLabel: function genLabel() {
- return this.$createElement(_VLabel__WEBPACK_IMPORTED_MODULE_2__["default"], {
- on: { click: this.onChange },
- attrs: {
- for: this.id
- },
- props: {
- color: this.radio.validationState || '',
- dark: this.dark,
- focused: this.hasState,
- light: this.light
- }
- }, this.$slots.label || this.label);
- },
- genRadio: function genRadio() {
- return this.$createElement('div', {
- staticClass: 'v-input--selection-controls__input'
- }, [this.genInput('radio', __assign({ name: this.radio.name || (this.radio._uid ? 'v-radio-' + this.radio._uid : false), value: this.value }, this.$attrs)), this.genRipple(this.setTextColor(this.computedColor)), this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], this.setTextColor(this.computedColor, {
- props: {
- dark: this.dark,
- light: this.light
- }
- }), this.computedIcon)]);
- },
- onFocus: function onFocus(e) {
- this.isFocused = true;
- this.$emit('focus', e);
- },
- onBlur: function onBlur(e) {
- this.isFocused = false;
- this.$emit('blur', e);
- },
- onChange: function onChange() {
- if (this.isDisabled || this.isReadonly) return;
- if (!this.isDisabled && (!this.isActive || !this.radio.mandatory)) {
- this.$emit('change', this.value);
- }
- },
- onKeydown: function onKeydown() {}
- },
- render: function render(h) {
- return h('div', this.computedData, [this.genRadio(), this.genLabel()]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VRadioGroup/VRadioGroup.js":
- /*!***************************************************!*\
- !*** ./src/components/VRadioGroup/VRadioGroup.js ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_selection_controls_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_selection-controls.styl */ "./src/stylus/components/_selection-controls.styl");
- /* harmony import */ var _stylus_components_selection_controls_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_selection_controls_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _stylus_components_radio_group_styl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../stylus/components/_radio-group.styl */ "./src/stylus/components/_radio-group.styl");
- /* harmony import */ var _stylus_components_radio_group_styl__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_radio_group_styl__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _VInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VInput */ "./src/components/VInput/index.ts");
- /* harmony import */ var _mixins_comparable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/comparable */ "./src/mixins/comparable.ts");
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- // Styles
-
-
- // Components
-
- // Mixins
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VInput__WEBPACK_IMPORTED_MODULE_2__["default"].extend({
- name: 'v-radio-group',
- mixins: [_mixins_comparable__WEBPACK_IMPORTED_MODULE_3__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_4__["provide"])('radio')],
- model: {
- prop: 'value',
- event: 'change'
- },
- provide: function provide() {
- return {
- radio: this
- };
- },
- props: {
- column: {
- type: Boolean,
- default: true
- },
- height: {
- type: [Number, String],
- default: 'auto'
- },
- mandatory: {
- type: Boolean,
- default: true
- },
- name: String,
- row: Boolean,
- // If no value set on VRadio
- // will match valueComparator
- // force default to null
- value: {
- default: null
- }
- },
- data: function data() {
- return {
- internalTabIndex: -1,
- radios: []
- };
- },
- computed: {
- classes: function classes() {
- return {
- 'v-input--selection-controls v-input--radio-group': true,
- 'v-input--radio-group--column': this.column && !this.row,
- 'v-input--radio-group--row': this.row
- };
- }
- },
- watch: {
- hasError: 'setErrorState',
- internalValue: 'setActiveRadio'
- },
- mounted: function mounted() {
- this.setErrorState(this.hasError);
- this.setActiveRadio();
- },
- methods: {
- genDefaultSlot: function genDefaultSlot() {
- return this.$createElement('div', {
- staticClass: 'v-input--radio-group__input',
- attrs: {
- role: 'radiogroup'
- }
- }, _VInput__WEBPACK_IMPORTED_MODULE_2__["default"].options.methods.genDefaultSlot.call(this));
- },
- onRadioChange: function onRadioChange(value) {
- if (this.disabled) return;
- this.hasInput = true;
- this.internalValue = value;
- this.setActiveRadio();
- this.$nextTick(this.validate);
- },
- onRadioBlur: function onRadioBlur(e) {
- if (!e.relatedTarget || !e.relatedTarget.classList.contains('v-radio')) {
- this.hasInput = true;
- this.$emit('blur', e);
- }
- },
- register: function register(radio) {
- radio.isActive = this.valueComparator(this.internalValue, radio.value);
- radio.$on('change', this.onRadioChange);
- radio.$on('blur', this.onRadioBlur);
- this.radios.push(radio);
- },
- setErrorState: function setErrorState(val) {
- for (var index = this.radios.length; --index >= 0;) {
- this.radios[index].parentError = val;
- }
- },
- setActiveRadio: function setActiveRadio() {
- for (var index = this.radios.length; --index >= 0;) {
- var radio = this.radios[index];
- radio.isActive = this.valueComparator(this.internalValue, radio.value);
- }
- },
- unregister: function unregister(radio) {
- radio.$off('change', this.onRadioChange);
- radio.$off('blur', this.onRadioBlur);
- var index = this.radios.findIndex(function (r) {
- return r === radio;
- });
- /* istanbul ignore else */
- if (index > -1) this.radios.splice(index, 1);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VRadioGroup/index.js":
- /*!*********************************************!*\
- !*** ./src/components/VRadioGroup/index.js ***!
- \*********************************************/
- /*! exports provided: VRadioGroup, VRadio, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VRadioGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VRadioGroup */ "./src/components/VRadioGroup/VRadioGroup.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VRadioGroup", function() { return _VRadioGroup__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VRadio__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VRadio */ "./src/components/VRadioGroup/VRadio.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VRadio", function() { return _VRadio__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VRadioGroup: _VRadioGroup__WEBPACK_IMPORTED_MODULE_0__["default"],
- VRadio: _VRadio__WEBPACK_IMPORTED_MODULE_1__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VRangeSlider/VRangeSlider.js":
- /*!*****************************************************!*\
- !*** ./src/components/VRangeSlider/VRangeSlider.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_range_sliders_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_range-sliders.styl */ "./src/stylus/components/_range-sliders.styl");
- /* harmony import */ var _stylus_components_range_sliders_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_range_sliders_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VSlider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VSlider */ "./src/components/VSlider/index.js");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- // Styles
-
- // Extensions
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-range-slider',
- extends: _VSlider__WEBPACK_IMPORTED_MODULE_1__["default"],
- props: {
- value: {
- type: Array,
- default: function _default() {
- return [];
- }
- }
- },
- data: function data(vm) {
- return {
- activeThumb: null,
- lazyValue: !vm.value.length ? [0, 0] : vm.value
- };
- },
- computed: {
- classes: function classes() {
- return Object.assign({}, {
- 'v-input--range-slider': true
- }, _VSlider__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this));
- },
- internalValue: {
- get: function get() {
- return this.lazyValue;
- },
- set: function set(val) {
- var _this = this;
- var _a = this,
- min = _a.min,
- max = _a.max;
- // Round value to ensure the
- // entire slider range can
- // be selected with step
- var value = val.map(function (v) {
- return _this.roundValue(Math.min(Math.max(v, min), max));
- });
- // Switch values if range and wrong order
- if (value[0] > value[1] || value[1] < value[0]) {
- if (this.activeThumb !== null) this.activeThumb = this.activeThumb === 1 ? 0 : 1;
- value = [value[1], value[0]];
- }
- this.lazyValue = value;
- if (!Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["deepEqual"])(value, this.value)) this.$emit('input', value);
- this.validate();
- }
- },
- inputWidth: function inputWidth() {
- var _this = this;
- return this.internalValue.map(function (v) {
- return (_this.roundValue(v) - _this.min) / (_this.max - _this.min) * 100;
- });
- },
- isDirty: function isDirty() {
- var _this = this;
- return this.internalValue.some(function (v) {
- return v !== _this.min;
- }) || this.alwaysDirty;
- },
- trackFillStyles: function trackFillStyles() {
- var styles = _VSlider__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.trackFillStyles.call(this);
- var fillPercent = Math.abs(this.inputWidth[0] - this.inputWidth[1]);
- styles.width = "calc(" + fillPercent + "% - " + this.trackPadding + "px)";
- styles[this.$vuetify.rtl ? 'right' : 'left'] = this.inputWidth[0] + "%";
- return styles;
- },
- trackPadding: function trackPadding() {
- if (this.isDirty || this.internalValue[0]) return 0;
- return _VSlider__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.trackPadding.call(this);
- }
- },
- methods: {
- getIndexOfClosestValue: function getIndexOfClosestValue(arr, v) {
- if (Math.abs(arr[0] - v) < Math.abs(arr[1] - v)) return 0;else return 1;
- },
- genInput: function genInput() {
- var _this = this;
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["createRange"])(2).map(function (i) {
- var input = _VSlider__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genInput.call(_this);
- input.data.attrs.value = _this.internalValue[i];
- input.data.on.focus = function (e) {
- _this.activeThumb = i;
- _VSlider__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onFocus.call(_this, e);
- };
- return input;
- });
- },
- genChildren: function genChildren() {
- var _this = this;
- return [this.genInput(), this.genTrackContainer(), this.genSteps(), Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["createRange"])(2).map(function (i) {
- var value = _this.internalValue[i];
- var onDrag = function onDrag(e) {
- _this.isActive = true;
- _this.activeThumb = i;
- _this.onThumbMouseDown(e);
- };
- var valueWidth = _this.inputWidth[i];
- var isActive = (_this.isFocused || _this.isActive) && _this.activeThumb === i;
- return _this.genThumbContainer(value, valueWidth, isActive, onDrag);
- })];
- },
- onSliderClick: function onSliderClick(e) {
- if (!this.isActive) {
- this.isFocused = true;
- this.onMouseMove(e, true);
- this.$emit('change', this.internalValue);
- }
- },
- onMouseMove: function onMouseMove(e, trackClick) {
- if (trackClick === void 0) {
- trackClick = false;
- }
- var _a = this.parseMouseMove(e),
- value = _a.value,
- isInsideTrack = _a.isInsideTrack;
- if (isInsideTrack) {
- if (trackClick) this.activeThumb = this.getIndexOfClosestValue(this.internalValue, value);
- this.setInternalValue(value);
- }
- },
- onKeyDown: function onKeyDown(e) {
- var value = this.parseKeyDown(e, this.internalValue[this.activeThumb]);
- if (value == null) return;
- this.setInternalValue(value);
- },
- setInternalValue: function setInternalValue(value) {
- var _this = this;
- this.internalValue = this.internalValue.map(function (v, i) {
- if (i === _this.activeThumb) return value;else return Number(v);
- });
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VRangeSlider/index.js":
- /*!**********************************************!*\
- !*** ./src/components/VRangeSlider/index.js ***!
- \**********************************************/
- /*! exports provided: VRangeSlider, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VRangeSlider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VRangeSlider */ "./src/components/VRangeSlider/VRangeSlider.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VRangeSlider", function() { return _VRangeSlider__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VRangeSlider__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VRating/VRating.ts":
- /*!*******************************************!*\
- !*** ./src/components/VRating/VRating.ts ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_rating_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_rating.styl */ "./src/stylus/components/_rating.styl");
- /* harmony import */ var _stylus_components_rating_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_rating_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_delayable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/delayable */ "./src/mixins/delayable.ts");
- /* harmony import */ var _mixins_sizeable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/sizeable */ "./src/mixins/sizeable.ts");
- /* harmony import */ var _mixins_rippleable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/rippleable */ "./src/mixins/rippleable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- // Styles
-
- // Components
-
- // Mixins
-
-
-
-
-
- // Utilities
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_8__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_delayable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_rippleable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_sizeable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_6__["default"]).extend({
- name: 'v-rating',
- props: {
- backgroundColor: {
- type: String,
- default: 'accent'
- },
- color: {
- type: String,
- default: 'primary'
- },
- dense: Boolean,
- emptyIcon: {
- type: String,
- default: '$vuetify.icons.ratingEmpty'
- },
- fullIcon: {
- type: String,
- default: '$vuetify.icons.ratingFull'
- },
- halfIcon: {
- type: String,
- default: '$vuetify.icons.ratingHalf'
- },
- halfIncrements: Boolean,
- length: {
- type: [Number, String],
- default: 5
- },
- clearable: Boolean,
- readonly: Boolean,
- hover: Boolean,
- value: {
- type: Number,
- default: 0
- }
- },
- data: function data() {
- return {
- hoverIndex: -1,
- internalValue: this.value
- };
- },
- computed: {
- directives: function directives() {
- if (this.readonly || !this.ripple) return [];
- return [{
- name: 'ripple',
- value: { circle: true }
- }];
- },
- iconProps: function iconProps() {
- var _a = this.$props,
- dark = _a.dark,
- medium = _a.medium,
- large = _a.large,
- light = _a.light,
- small = _a.small,
- size = _a.size,
- xLarge = _a.xLarge;
- return {
- dark: dark,
- medium: medium,
- large: large,
- light: light,
- size: size,
- small: small,
- xLarge: xLarge
- };
- },
- isHovering: function isHovering() {
- return this.hover && this.hoverIndex >= 0;
- }
- },
- watch: {
- internalValue: function internalValue(val) {
- val !== this.value && this.$emit('input', val);
- },
- value: function value(val) {
- this.internalValue = val;
- }
- },
- methods: {
- createClickFn: function createClickFn(i) {
- var _this = this;
- return function (e) {
- if (_this.readonly) return;
- var newValue = _this.genHoverIndex(e, i);
- if (_this.clearable && _this.internalValue === newValue) {
- _this.internalValue = 0;
- } else {
- _this.internalValue = newValue;
- }
- };
- },
- createProps: function createProps(i) {
- var props = {
- index: i,
- value: this.internalValue,
- click: this.createClickFn(i),
- isFilled: Math.floor(this.internalValue) > i,
- isHovered: Math.floor(this.hoverIndex) > i
- };
- if (this.halfIncrements) {
- props.isHalfHovered = !props.isHovered && (this.hoverIndex - i) % 1 > 0;
- props.isHalfFilled = !props.isFilled && (this.internalValue - i) % 1 > 0;
- }
- return props;
- },
- genHoverIndex: function genHoverIndex(e, i) {
- return i + (this.isHalfEvent(e) ? 0.5 : 1);
- },
- getIconName: function getIconName(props) {
- var isFull = this.isHovering ? props.isHovered : props.isFilled;
- var isHalf = this.isHovering ? props.isHalfHovered : props.isHalfFilled;
- return isFull ? this.fullIcon : isHalf ? this.halfIcon : this.emptyIcon;
- },
- getColor: function getColor(props) {
- if (this.isHovering) {
- if (props.isHovered || props.isHalfHovered) return this.color;
- } else {
- if (props.isFilled || props.isHalfFilled) return this.color;
- }
- return this.backgroundColor;
- },
- isHalfEvent: function isHalfEvent(e) {
- if (this.halfIncrements) {
- var rect = e.target && e.target.getBoundingClientRect();
- if (rect && e.pageX - rect.left < rect.width / 2) return true;
- }
- return false;
- },
- onMouseEnter: function onMouseEnter(e, i) {
- var _this = this;
- this.runDelay('open', function () {
- _this.hoverIndex = _this.genHoverIndex(e, i);
- });
- },
- onMouseLeave: function onMouseLeave() {
- var _this = this;
- this.runDelay('close', function () {
- return _this.hoverIndex = -1;
- });
- },
- genItem: function genItem(i) {
- var _this = this;
- var props = this.createProps(i);
- if (this.$scopedSlots.item) return this.$scopedSlots.item(props);
- var listeners = {
- click: props.click
- };
- if (this.hover) {
- listeners.mouseenter = function (e) {
- return _this.onMouseEnter(e, i);
- };
- listeners.mouseleave = this.onMouseLeave;
- if (this.halfIncrements) {
- listeners.mousemove = function (e) {
- return _this.onMouseEnter(e, i);
- };
- }
- }
- return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], this.setTextColor(this.getColor(props), {
- directives: this.directives,
- props: this.iconProps,
- on: listeners
- }), [this.getIconName(props)]);
- }
- },
- render: function render(h) {
- var _this = this;
- var children = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["createRange"])(Number(this.length)).map(function (i) {
- return _this.genItem(i);
- });
- return h('div', {
- staticClass: 'v-rating',
- class: {
- 'v-rating--readonly': this.readonly,
- 'v-rating--dense': this.dense
- }
- }, children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VRating/index.ts":
- /*!*****************************************!*\
- !*** ./src/components/VRating/index.ts ***!
- \*****************************************/
- /*! exports provided: VRating, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VRating__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VRating */ "./src/components/VRating/VRating.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VRating", function() { return _VRating__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VRating__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VResponsive/VResponsive.ts":
- /*!***************************************************!*\
- !*** ./src/components/VResponsive/VResponsive.ts ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_responsive_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_responsive.styl */ "./src/stylus/components/_responsive.styl");
- /* harmony import */ var _stylus_components_responsive_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_responsive_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_measurable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/measurable */ "./src/mixins/measurable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
-
- // Mixins
-
- // Utils
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_measurable__WEBPACK_IMPORTED_MODULE_1__["default"]).extend({
- name: 'v-responsive',
- props: {
- aspectRatio: [String, Number]
- },
- computed: {
- computedAspectRatio: function computedAspectRatio() {
- return Number(this.aspectRatio);
- },
- aspectStyle: function aspectStyle() {
- return this.computedAspectRatio ? { paddingBottom: 1 / this.computedAspectRatio * 100 + '%' } : undefined;
- },
- __cachedSizer: function __cachedSizer() {
- if (!this.aspectStyle) return [];
- return this.$createElement('div', {
- style: this.aspectStyle,
- staticClass: 'v-responsive__sizer'
- });
- }
- },
- methods: {
- genContent: function genContent() {
- return this.$createElement('div', {
- staticClass: 'v-responsive__content'
- }, this.$slots.default);
- }
- },
- render: function render(h) {
- return h('div', {
- staticClass: 'v-responsive',
- style: this.measurableStyles,
- on: this.$listeners
- }, [this.__cachedSizer, this.genContent()]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VResponsive/index.ts":
- /*!*********************************************!*\
- !*** ./src/components/VResponsive/index.ts ***!
- \*********************************************/
- /*! exports provided: VResponsive, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VResponsive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VResponsive */ "./src/components/VResponsive/VResponsive.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VResponsive", function() { return _VResponsive__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VResponsive__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VSelect/VSelect.js":
- /*!*******************************************!*\
- !*** ./src/components/VSelect/VSelect.js ***!
- \*******************************************/
- /*! exports provided: defaultMenuProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultMenuProps", function() { return defaultMenuProps; });
- /* harmony import */ var _stylus_components_text_fields_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_text-fields.styl */ "./src/stylus/components/_text-fields.styl");
- /* harmony import */ var _stylus_components_text_fields_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_text_fields_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _stylus_components_select_styl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../stylus/components/_select.styl */ "./src/stylus/components/_select.styl");
- /* harmony import */ var _stylus_components_select_styl__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_select_styl__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _VChip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VChip */ "./src/components/VChip/index.ts");
- /* harmony import */ var _VMenu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../VMenu */ "./src/components/VMenu/index.js");
- /* harmony import */ var _VSelectList__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VSelectList */ "./src/components/VSelect/VSelectList.js");
- /* harmony import */ var _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../VTextField/VTextField */ "./src/components/VTextField/VTextField.js");
- /* harmony import */ var _mixins_comparable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../mixins/comparable */ "./src/mixins/comparable.ts");
- /* harmony import */ var _mixins_filterable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../mixins/filterable */ "./src/mixins/filterable.ts");
- /* harmony import */ var _directives_click_outside__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../directives/click-outside */ "./src/directives/click-outside.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var __values = undefined && undefined.__values || function (o) {
- var m = typeof Symbol === "function" && o[Symbol.iterator],
- i = 0;
- if (m) return m.call(o);
- return {
- next: function next() {
- if (o && i >= o.length) o = void 0;
- return { value: o && o[i++], done: !o };
- }
- };
- };
- // Styles
-
-
- // Components
-
-
-
- // Extensions
-
- // Mixins
-
-
- // Directives
-
- // Helpers
-
-
- var defaultMenuProps = {
- closeOnClick: false,
- closeOnContentClick: false,
- openOnClick: false,
- maxHeight: 300
- };
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__["default"].extend({
- name: 'v-select',
- directives: {
- ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_8__["default"]
- },
- mixins: [_mixins_comparable__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_filterable__WEBPACK_IMPORTED_MODULE_7__["default"]],
- props: {
- appendIcon: {
- type: String,
- default: '$vuetify.icons.dropdown'
- },
- appendIconCb: Function,
- attach: {
- type: null,
- default: false
- },
- browserAutocomplete: {
- type: String,
- default: 'on'
- },
- cacheItems: Boolean,
- chips: Boolean,
- clearable: Boolean,
- deletableChips: Boolean,
- dense: Boolean,
- hideSelected: Boolean,
- items: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- itemAvatar: {
- type: [String, Array, Function],
- default: 'avatar'
- },
- itemDisabled: {
- type: [String, Array, Function],
- default: 'disabled'
- },
- itemText: {
- type: [String, Array, Function],
- default: 'text'
- },
- itemValue: {
- type: [String, Array, Function],
- default: 'value'
- },
- menuProps: {
- type: [String, Array, Object],
- default: function _default() {
- return defaultMenuProps;
- }
- },
- multiple: Boolean,
- openOnClear: Boolean,
- returnObject: Boolean,
- searchInput: {
- default: null
- },
- smallChips: Boolean
- },
- data: function data(vm) {
- return {
- attrsInput: { role: 'combobox' },
- cachedItems: vm.cacheItems ? vm.items : [],
- content: null,
- isBooted: false,
- isMenuActive: false,
- lastItem: 20,
- // As long as a value is defined, show it
- // Otherwise, check if multiple
- // to determine which default to provide
- lazyValue: vm.value !== undefined ? vm.value : vm.multiple ? [] : undefined,
- selectedIndex: -1,
- selectedItems: [],
- keyboardLookupPrefix: '',
- keyboardLookupLastTime: 0
- };
- },
- computed: {
- /* All items that the select has */
- allItems: function allItems() {
- return this.filterDuplicates(this.cachedItems.concat(this.items));
- },
- classes: function classes() {
- return Object.assign({}, _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__["default"].options.computed.classes.call(this), {
- 'v-select': true,
- 'v-select--chips': this.hasChips,
- 'v-select--chips--small': this.smallChips,
- 'v-select--is-menu-active': this.isMenuActive
- });
- },
- /* Used by other components to overwrite */
- computedItems: function computedItems() {
- return this.allItems;
- },
- counterValue: function counterValue() {
- return this.multiple ? this.selectedItems.length : (this.getText(this.selectedItems[0]) || '').toString().length;
- },
- directives: function directives() {
- return this.isFocused ? [{
- name: 'click-outside',
- value: this.blur,
- args: {
- closeConditional: this.closeConditional
- }
- }] : undefined;
- },
- dynamicHeight: function dynamicHeight() {
- return 'auto';
- },
- hasChips: function hasChips() {
- return this.chips || this.smallChips;
- },
- hasSlot: function hasSlot() {
- return Boolean(this.hasChips || this.$scopedSlots.selection);
- },
- isDirty: function isDirty() {
- return this.selectedItems.length > 0;
- },
- listData: function listData() {
- var _a;
- var scopeId = this.$vnode && this.$vnode.context.$options._scopeId;
- return {
- attrs: scopeId ? (_a = {}, _a[scopeId] = true, _a) : null,
- props: {
- action: this.multiple && !this.isHidingSelected,
- color: this.color,
- dense: this.dense,
- hideSelected: this.hideSelected,
- items: this.virtualizedItems,
- noDataText: this.$vuetify.t(this.noDataText),
- selectedItems: this.selectedItems,
- itemAvatar: this.itemAvatar,
- itemDisabled: this.itemDisabled,
- itemValue: this.itemValue,
- itemText: this.itemText
- },
- on: {
- select: this.selectItem
- },
- scopedSlots: {
- item: this.$scopedSlots.item
- }
- };
- },
- staticList: function staticList() {
- if (this.$slots['no-data'] || this.$slots['prepend-item'] || this.$slots['append-item']) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_10__["consoleError"])('assert: staticList should not be called if slots are used');
- }
- return this.$createElement(_VSelectList__WEBPACK_IMPORTED_MODULE_4__["default"], this.listData);
- },
- virtualizedItems: function virtualizedItems() {
- return this.$_menuProps.auto ? this.computedItems : this.computedItems.slice(0, this.lastItem);
- },
- menuCanShow: function menuCanShow() {
- return true;
- },
- $_menuProps: function $_menuProps() {
- var normalisedProps;
- normalisedProps = typeof this.menuProps === 'string' ? this.menuProps.split(',') : this.menuProps;
- if (Array.isArray(normalisedProps)) {
- normalisedProps = normalisedProps.reduce(function (acc, p) {
- acc[p.trim()] = true;
- return acc;
- }, {});
- }
- return __assign({}, defaultMenuProps, { value: this.menuCanShow && this.isMenuActive, nudgeBottom: this.nudgeBottom ? this.nudgeBottom : normalisedProps.offsetY ? 1 : 0 }, normalisedProps);
- }
- },
- watch: {
- internalValue: function internalValue(val) {
- this.initialValue = val;
- this.setSelectedItems();
- },
- isBooted: function isBooted() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.content && _this.content.addEventListener) {
- _this.content.addEventListener('scroll', _this.onScroll, false);
- }
- });
- },
- isMenuActive: function isMenuActive(val) {
- if (!val) return;
- this.isBooted = true;
- },
- items: {
- immediate: true,
- handler: function handler(val) {
- if (this.cacheItems) {
- this.cachedItems = this.filterDuplicates(this.cachedItems.concat(val));
- }
- this.setSelectedItems();
- }
- }
- },
- mounted: function mounted() {
- this.content = this.$refs.menu && this.$refs.menu.$refs.content;
- },
- methods: {
- /** @public */
- blur: function blur(e) {
- this.isMenuActive = false;
- this.isFocused = false;
- this.$refs.input && this.$refs.input.blur();
- this.selectedIndex = -1;
- this.onBlur(e);
- },
- /** @public */
- activateMenu: function activateMenu() {
- this.isMenuActive = true;
- },
- clearableCallback: function clearableCallback() {
- var _this = this;
- this.setValue(this.multiple ? [] : undefined);
- this.$nextTick(function () {
- return _this.$refs.input.focus();
- });
- if (this.openOnClear) this.isMenuActive = true;
- },
- closeConditional: function closeConditional(e) {
- return (
- // Click originates from outside the menu content
- !!this.content && !this.content.contains(e.target) &&
- // Click originates from outside the element
- !!this.$el && !this.$el.contains(e.target) && e.target !== this.$el
- );
- },
- filterDuplicates: function filterDuplicates(arr) {
- var uniqueValues = new Map();
- for (var index = 0; index < arr.length; ++index) {
- var item = arr[index];
- var val = this.getValue(item);
- // TODO: comparator
- !uniqueValues.has(val) && uniqueValues.set(val, item);
- }
- return Array.from(uniqueValues.values());
- },
- findExistingIndex: function findExistingIndex(item) {
- var _this = this;
- var itemValue = this.getValue(item);
- return (this.internalValue || []).findIndex(function (i) {
- return _this.valueComparator(_this.getValue(i), itemValue);
- });
- },
- genChipSelection: function genChipSelection(item, index) {
- var _this = this;
- var isDisabled = this.disabled || this.readonly || this.getDisabled(item);
- return this.$createElement(_VChip__WEBPACK_IMPORTED_MODULE_2__["default"], {
- staticClass: 'v-chip--select-multi',
- attrs: { tabindex: -1 },
- props: {
- close: this.deletableChips && !isDisabled,
- disabled: isDisabled,
- selected: index === this.selectedIndex,
- small: this.smallChips
- },
- on: {
- click: function click(e) {
- if (isDisabled) return;
- e.stopPropagation();
- _this.selectedIndex = index;
- },
- input: function input() {
- return _this.onChipInput(item);
- }
- },
- key: this.getValue(item)
- }, this.getText(item));
- },
- genCommaSelection: function genCommaSelection(item, index, last) {
- // Item may be an object
- // TODO: Remove JSON.stringify
- var key = JSON.stringify(this.getValue(item));
- var color = index === this.selectedIndex && this.color;
- var isDisabled = this.disabled || this.getDisabled(item);
- return this.$createElement('div', this.setTextColor(color, {
- staticClass: 'v-select__selection v-select__selection--comma',
- 'class': {
- 'v-select__selection--disabled': isDisabled
- },
- key: key
- }), "" + this.getText(item) + (last ? '' : ', '));
- },
- genDefaultSlot: function genDefaultSlot() {
- var selections = this.genSelections();
- var input = this.genInput();
- // If the return is an empty array
- // push the input
- if (Array.isArray(selections)) {
- selections.push(input);
- // Otherwise push it into children
- } else {
- selections.children = selections.children || [];
- selections.children.push(input);
- }
- return [this.$createElement('div', {
- staticClass: 'v-select__slot',
- directives: this.directives
- }, [this.genLabel(), this.prefix ? this.genAffix('prefix') : null, selections, this.suffix ? this.genAffix('suffix') : null, this.genClearIcon(), this.genIconSlot()]), this.genMenu(), this.genProgress()];
- },
- genInput: function genInput() {
- var input = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__["default"].options.methods.genInput.call(this);
- input.data.domProps.value = null;
- input.data.attrs.readonly = true;
- input.data.attrs['aria-readonly'] = String(this.readonly);
- input.data.on.keypress = this.onKeyPress;
- return input;
- },
- genList: function genList() {
- // If there's no slots, we can use a cached VNode to improve performance
- if (this.$slots['no-data'] || this.$slots['prepend-item'] || this.$slots['append-item']) {
- return this.genListWithSlot();
- } else {
- return this.staticList;
- }
- },
- genListWithSlot: function genListWithSlot() {
- var _this = this;
- var slots = ['prepend-item', 'no-data', 'append-item'].filter(function (slotName) {
- return _this.$slots[slotName];
- }).map(function (slotName) {
- return _this.$createElement('template', {
- slot: slotName
- }, _this.$slots[slotName]);
- });
- // Requires destructuring due to Vue
- // modifying the `on` property when passed
- // as a referenced object
- return this.$createElement(_VSelectList__WEBPACK_IMPORTED_MODULE_4__["default"], __assign({}, this.listData), slots);
- },
- genMenu: function genMenu() {
- var _this = this;
- var e_1, _a;
- var props = this.$_menuProps;
- props.activator = this.$refs['input-slot'];
- // Deprecate using menu props directly
- // TODO: remove (2.0)
- var inheritedProps = Object.keys(_VMenu__WEBPACK_IMPORTED_MODULE_3__["default"].options.props);
- var deprecatedProps = Object.keys(this.$attrs).reduce(function (acc, attr) {
- if (inheritedProps.includes(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["camelize"])(attr))) acc.push(attr);
- return acc;
- }, []);
- try {
- for (var deprecatedProps_1 = __values(deprecatedProps), deprecatedProps_1_1 = deprecatedProps_1.next(); !deprecatedProps_1_1.done; deprecatedProps_1_1 = deprecatedProps_1.next()) {
- var prop = deprecatedProps_1_1.value;
- props[Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["camelize"])(prop)] = this.$attrs[prop];
- }
- } catch (e_1_1) {
- e_1 = { error: e_1_1 };
- } finally {
- try {
- if (deprecatedProps_1_1 && !deprecatedProps_1_1.done && (_a = deprecatedProps_1.return)) _a.call(deprecatedProps_1);
- } finally {
- if (e_1) throw e_1.error;
- }
- }
- if (true) {
- if (deprecatedProps.length) {
- var multiple = deprecatedProps.length > 1;
- var replacement_1 = deprecatedProps.reduce(function (acc, p) {
- acc[Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["camelize"])(p)] = _this.$attrs[p];
- return acc;
- }, {});
- var props_1 = deprecatedProps.map(function (p) {
- return "'" + p + "'";
- }).join(', ');
- var separator = multiple ? '\n' : '\'';
- var onlyBools = Object.keys(replacement_1).every(function (prop) {
- var propType = _VMenu__WEBPACK_IMPORTED_MODULE_3__["default"].options.props[prop];
- var value = replacement_1[prop];
- return value === true || (propType.type || propType) === Boolean && value === '';
- });
- if (onlyBools) {
- replacement_1 = Object.keys(replacement_1).join(', ');
- } else {
- replacement_1 = JSON.stringify(replacement_1, null, multiple ? 2 : 0).replace(/"([^(")"]+)":/g, '$1:').replace(/"/g, '\'');
- }
- Object(_util_console__WEBPACK_IMPORTED_MODULE_10__["consoleWarn"])(props_1 + " " + (multiple ? 'are' : 'is') + " deprecated, use " + ("" + separator + (onlyBools ? '' : ':') + "menu-props=\"" + replacement_1 + "\"" + separator + " instead"), this);
- }
- }
- // Attach to root el so that
- // menu covers prepend/append icons
- if (
- // TODO: make this a computed property or helper or something
- this.attach === '' || // If used as a boolean prop (<v-menu attach>)
- this.attach === true || // If bound to a boolean (<v-menu :attach="true">)
- this.attach === 'attach' // If bound as boolean prop in pug (v-menu(attach))
- ) {
- props.attach = this.$el;
- } else {
- props.attach = this.attach;
- }
- return this.$createElement(_VMenu__WEBPACK_IMPORTED_MODULE_3__["default"], {
- props: props,
- on: {
- input: function input(val) {
- _this.isMenuActive = val;
- _this.isFocused = val;
- }
- },
- ref: 'menu'
- }, [this.genList()]);
- },
- genSelections: function genSelections() {
- var length = this.selectedItems.length;
- var children = new Array(length);
- var genSelection;
- if (this.$scopedSlots.selection) {
- genSelection = this.genSlotSelection;
- } else if (this.hasChips) {
- genSelection = this.genChipSelection;
- } else {
- genSelection = this.genCommaSelection;
- }
- while (length--) {
- children[length] = genSelection(this.selectedItems[length], length, length === children.length - 1);
- }
- return this.$createElement('div', {
- staticClass: 'v-select__selections'
- }, children);
- },
- genSlotSelection: function genSlotSelection(item, index) {
- return this.$scopedSlots.selection({
- parent: this,
- item: item,
- index: index,
- selected: index === this.selectedIndex,
- disabled: this.disabled || this.readonly
- });
- },
- getMenuIndex: function getMenuIndex() {
- return this.$refs.menu ? this.$refs.menu.listIndex : -1;
- },
- getDisabled: function getDisabled(item) {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["getPropertyFromItem"])(item, this.itemDisabled, false);
- },
- getText: function getText(item) {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["getPropertyFromItem"])(item, this.itemText, item);
- },
- getValue: function getValue(item) {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["getPropertyFromItem"])(item, this.itemValue, this.getText(item));
- },
- onBlur: function onBlur(e) {
- this.$emit('blur', e);
- },
- onChipInput: function onChipInput(item) {
- if (this.multiple) this.selectItem(item);else this.setValue(null);
- // If all items have been deleted,
- // open `v-menu`
- if (this.selectedItems.length === 0) {
- this.isMenuActive = true;
- } else {
- this.isMenuActive = false;
- }
- this.selectedIndex = -1;
- },
- onClick: function onClick() {
- if (this.isDisabled) return;
- this.isMenuActive = true;
- if (!this.isFocused) {
- this.isFocused = true;
- this.$emit('focus');
- }
- },
- onEnterDown: function onEnterDown() {
- this.onBlur();
- },
- onEscDown: function onEscDown(e) {
- e.preventDefault();
- if (this.isMenuActive) {
- e.stopPropagation();
- this.isMenuActive = false;
- }
- },
- onKeyPress: function onKeyPress(e) {
- var _this = this;
- if (this.multiple) return;
- var KEYBOARD_LOOKUP_THRESHOLD = 1000; // milliseconds
- var now = performance.now();
- if (now - this.keyboardLookupLastTime > KEYBOARD_LOOKUP_THRESHOLD) {
- this.keyboardLookupPrefix = '';
- }
- this.keyboardLookupPrefix += e.key.toLowerCase();
- this.keyboardLookupLastTime = now;
- var index = this.allItems.findIndex(function (item) {
- return _this.getText(item).toLowerCase().startsWith(_this.keyboardLookupPrefix);
- });
- var item = this.allItems[index];
- if (index !== -1) {
- this.setValue(this.returnObject ? item : this.getValue(item));
- setTimeout(function () {
- return _this.setMenuIndex(index);
- });
- }
- },
- onKeyDown: function onKeyDown(e) {
- var keyCode = e.keyCode;
- // If enter, space, up, or down is pressed, open menu
- if (!this.readonly && !this.isMenuActive && [_util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].enter, _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].space, _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].up, _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].down].includes(keyCode)) this.activateMenu();
- if (this.isMenuActive && this.$refs.menu) this.$refs.menu.changeListIndex(e);
- // This should do something different
- if (keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].enter) return this.onEnterDown(e);
- // If escape deactivate the menu
- if (keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].esc) return this.onEscDown(e);
- // If tab - select item or close menu
- if (keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_9__["keyCodes"].tab) return this.onTabDown(e);
- },
- onMouseUp: function onMouseUp(e) {
- var _this = this;
- if (this.hasMouseDown) {
- var appendInner = this.$refs['append-inner'];
- // If append inner is present
- // and the target is itself
- // or inside, toggle menu
- if (this.isMenuActive && appendInner && (appendInner === e.target || appendInner.contains(e.target))) {
- this.$nextTick(function () {
- return _this.isMenuActive = !_this.isMenuActive;
- });
- // If user is clicking in the container
- // and field is enclosed, activate it
- } else if (this.isEnclosed && !this.isDisabled) {
- this.isMenuActive = true;
- }
- }
- _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_5__["default"].options.methods.onMouseUp.call(this, e);
- },
- onScroll: function onScroll() {
- var _this = this;
- if (!this.isMenuActive) {
- requestAnimationFrame(function () {
- return _this.content.scrollTop = 0;
- });
- } else {
- if (this.lastItem >= this.computedItems.length) return;
- var showMoreItems = this.content.scrollHeight - (this.content.scrollTop + this.content.clientHeight) < 200;
- if (showMoreItems) {
- this.lastItem += 20;
- }
- }
- },
- onTabDown: function onTabDown(e) {
- var menuIndex = this.getMenuIndex();
- var listTile = this.$refs.menu.tiles[menuIndex];
- // An item that is selected by
- // menu-index should toggled
- if (listTile && listTile.className.indexOf('v-list__tile--highlighted') > -1 && this.isMenuActive && menuIndex > -1) {
- e.preventDefault();
- e.stopPropagation();
- listTile.click();
- } else {
- // If we make it here,
- // the user has no selected indexes
- // and is probably tabbing out
- this.blur(e);
- }
- },
- selectItem: function selectItem(item) {
- var _this = this;
- if (!this.multiple) {
- this.setValue(this.returnObject ? item : this.getValue(item));
- this.isMenuActive = false;
- } else {
- var internalValue = (this.internalValue || []).slice();
- var i = this.findExistingIndex(item);
- i !== -1 ? internalValue.splice(i, 1) : internalValue.push(item);
- this.setValue(internalValue.map(function (i) {
- return _this.returnObject ? i : _this.getValue(i);
- }));
- // When selecting multiple
- // adjust menu after each
- // selection
- this.$nextTick(function () {
- _this.$refs.menu && _this.$refs.menu.updateDimensions();
- });
- }
- },
- setMenuIndex: function setMenuIndex(index) {
- this.$refs.menu && (this.$refs.menu.listIndex = index);
- },
- setSelectedItems: function setSelectedItems() {
- var _this = this;
- var e_2, _a;
- var selectedItems = [];
- var values = !this.multiple || !Array.isArray(this.internalValue) ? [this.internalValue] : this.internalValue;
- var _loop_1 = function _loop_1(value) {
- var index = this_1.allItems.findIndex(function (v) {
- return _this.valueComparator(_this.getValue(v), _this.getValue(value));
- });
- if (index > -1) {
- selectedItems.push(this_1.allItems[index]);
- }
- };
- var this_1 = this;
- try {
- for (var values_1 = __values(values), values_1_1 = values_1.next(); !values_1_1.done; values_1_1 = values_1.next()) {
- var value = values_1_1.value;
- _loop_1(value);
- }
- } catch (e_2_1) {
- e_2 = { error: e_2_1 };
- } finally {
- try {
- if (values_1_1 && !values_1_1.done && (_a = values_1.return)) _a.call(values_1);
- } finally {
- if (e_2) throw e_2.error;
- }
- }
- this.selectedItems = selectedItems;
- },
- setValue: function setValue(value) {
- var oldValue = this.internalValue;
- this.internalValue = value;
- value !== oldValue && this.$emit('change', value);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VSelect/VSelectList.js":
- /*!***********************************************!*\
- !*** ./src/components/VSelect/VSelectList.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_cards_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_cards.styl */ "./src/stylus/components/_cards.styl");
- /* harmony import */ var _stylus_components_cards_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_cards_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VCheckbox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VCheckbox */ "./src/components/VCheckbox/index.js");
- /* harmony import */ var _VDivider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VDivider */ "./src/components/VDivider/index.ts");
- /* harmony import */ var _VSubheader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../VSubheader */ "./src/components/VSubheader/index.ts");
- /* harmony import */ var _VList__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../VList */ "./src/components/VList/index.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- var __values = undefined && undefined.__values || function (o) {
- var m = typeof Symbol === "function" && o[Symbol.iterator],
- i = 0;
- if (m) return m.call(o);
- return {
- next: function next() {
- if (o && i >= o.length) o = void 0;
- return { value: o && o[i++], done: !o };
- }
- };
- };
-
- // Components
-
-
-
-
- // Mixins
-
-
- // Helpers
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-select-list',
- mixins: [_mixins_colorable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_6__["default"]],
- props: {
- action: Boolean,
- dense: Boolean,
- hideSelected: Boolean,
- items: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- itemAvatar: {
- type: [String, Array, Function],
- default: 'avatar'
- },
- itemDisabled: {
- type: [String, Array, Function],
- default: 'disabled'
- },
- itemText: {
- type: [String, Array, Function],
- default: 'text'
- },
- itemValue: {
- type: [String, Array, Function],
- default: 'value'
- },
- noDataText: String,
- noFilter: Boolean,
- searchInput: {
- default: null
- },
- selectedItems: {
- type: Array,
- default: function _default() {
- return [];
- }
- }
- },
- computed: {
- parsedItems: function parsedItems() {
- var _this = this;
- return this.selectedItems.map(function (item) {
- return _this.getValue(item);
- });
- },
- tileActiveClass: function tileActiveClass() {
- return Object.keys(this.setTextColor(this.color).class || {}).join(' ');
- },
- staticNoDataTile: function staticNoDataTile() {
- var tile = {
- on: {
- mousedown: function mousedown(e) {
- return e.preventDefault();
- } // Prevent onBlur from being called
- }
- };
- return this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListTile"], tile, [this.genTileContent(this.noDataText)]);
- }
- },
- methods: {
- genAction: function genAction(item, inputValue) {
- var _this = this;
- var data = {
- on: {
- click: function click(e) {
- e.stopPropagation();
- _this.$emit('select', item);
- }
- }
- };
- return this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListTileAction"], data, [this.$createElement(_VCheckbox__WEBPACK_IMPORTED_MODULE_1__["default"], {
- props: {
- color: this.color,
- inputValue: inputValue
- }
- })]);
- },
- genDivider: function genDivider(props) {
- return this.$createElement(_VDivider__WEBPACK_IMPORTED_MODULE_2__["default"], { props: props });
- },
- genFilteredText: function genFilteredText(text) {
- text = (text || '').toString();
- if (!this.searchInput || this.noFilter) return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["escapeHTML"])(text);
- var _a = this.getMaskedCharacters(text),
- start = _a.start,
- middle = _a.middle,
- end = _a.end;
- return "" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["escapeHTML"])(start) + this.genHighlight(middle) + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["escapeHTML"])(end);
- },
- genHeader: function genHeader(props) {
- return this.$createElement(_VSubheader__WEBPACK_IMPORTED_MODULE_3__["default"], { props: props }, props.header);
- },
- genHighlight: function genHighlight(text) {
- return "<span class=\"v-list__tile__mask\">" + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["escapeHTML"])(text) + "</span>";
- },
- getMaskedCharacters: function getMaskedCharacters(text) {
- var searchInput = (this.searchInput || '').toString().toLocaleLowerCase();
- var index = text.toLocaleLowerCase().indexOf(searchInput);
- if (index < 0) return { start: '', middle: text, end: '' };
- var start = text.slice(0, index);
- var middle = text.slice(index, index + searchInput.length);
- var end = text.slice(index + searchInput.length);
- return { start: start, middle: middle, end: end };
- },
- genTile: function genTile(item, disabled, avatar, value) {
- var _this = this;
- if (disabled === void 0) {
- disabled = null;
- }
- if (avatar === void 0) {
- avatar = false;
- }
- if (value === void 0) {
- value = this.hasItem(item);
- }
- if (item === Object(item)) {
- avatar = this.getAvatar(item);
- disabled = disabled !== null ? disabled : this.getDisabled(item);
- }
- var tile = {
- on: {
- mousedown: function mousedown(e) {
- // Prevent onBlur from being called
- e.preventDefault();
- },
- click: function click() {
- return disabled || _this.$emit('select', item);
- }
- },
- props: {
- activeClass: this.tileActiveClass,
- avatar: avatar,
- disabled: disabled,
- ripple: true,
- value: value
- }
- };
- if (!this.$scopedSlots.item) {
- return this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListTile"], tile, [this.action && !this.hideSelected && this.items.length > 0 ? this.genAction(item, value) : null, this.genTileContent(item)]);
- }
- var parent = this;
- var scopedSlot = this.$scopedSlots.item({ parent: parent, item: item, tile: tile });
- return this.needsTile(scopedSlot) ? this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListTile"], tile, scopedSlot) : scopedSlot;
- },
- genTileContent: function genTileContent(item) {
- var innerHTML = this.genFilteredText(this.getText(item));
- return this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListTileContent"], [this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VListTileTitle"], {
- domProps: { innerHTML: innerHTML }
- })]);
- },
- hasItem: function hasItem(item) {
- return this.parsedItems.indexOf(this.getValue(item)) > -1;
- },
- needsTile: function needsTile(slot) {
- return slot.length !== 1 || slot[0].componentOptions == null || slot[0].componentOptions.Ctor.options.name !== 'v-list-tile';
- },
- getAvatar: function getAvatar(item) {
- return Boolean(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["getPropertyFromItem"])(item, this.itemAvatar, false));
- },
- getDisabled: function getDisabled(item) {
- return Boolean(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["getPropertyFromItem"])(item, this.itemDisabled, false));
- },
- getText: function getText(item) {
- return String(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["getPropertyFromItem"])(item, this.itemText, item));
- },
- getValue: function getValue(item) {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["getPropertyFromItem"])(item, this.itemValue, this.getText(item));
- }
- },
- render: function render() {
- var e_1, _a;
- var children = [];
- try {
- for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) {
- var item = _c.value;
- if (this.hideSelected && this.hasItem(item)) continue;
- if (item == null) children.push(this.genTile(item));else if (item.header) children.push(this.genHeader(item));else if (item.divider) children.push(this.genDivider(item));else children.push(this.genTile(item));
- }
- } catch (e_1_1) {
- e_1 = { error: e_1_1 };
- } finally {
- try {
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
- } finally {
- if (e_1) throw e_1.error;
- }
- }
- children.length || children.push(this.$slots['no-data'] || this.staticNoDataTile);
- this.$slots['prepend-item'] && children.unshift(this.$slots['prepend-item']);
- this.$slots['append-item'] && children.push(this.$slots['append-item']);
- return this.$createElement('div', {
- staticClass: 'v-select-list v-card',
- 'class': this.themeClasses
- }, [this.$createElement(_VList__WEBPACK_IMPORTED_MODULE_4__["VList"], {
- props: {
- dense: this.dense
- }
- }, children)]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VSelect/index.js":
- /*!*****************************************!*\
- !*** ./src/components/VSelect/index.js ***!
- \*****************************************/
- /*! exports provided: VSelect, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VSelect", function() { return wrapper; });
- /* harmony import */ var _VSelect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VSelect */ "./src/components/VSelect/VSelect.js");
- /* harmony import */ var _VOverflowBtn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VOverflowBtn */ "./src/components/VOverflowBtn/index.js");
- /* harmony import */ var _VAutocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VAutocomplete */ "./src/components/VAutocomplete/index.js");
- /* harmony import */ var _VCombobox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../VCombobox */ "./src/components/VCombobox/index.js");
- /* harmony import */ var _util_rebuildFunctionalSlots__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/rebuildFunctionalSlots */ "./src/util/rebuildFunctionalSlots.ts");
- /* harmony import */ var _util_dedupeModelListeners__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/dedupeModelListeners */ "./src/util/dedupeModelListeners.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
-
-
-
-
-
-
-
- /* @vue/component */
- var wrapper = {
- functional: true,
- $_wrapperFor: _VSelect__WEBPACK_IMPORTED_MODULE_0__["default"],
- props: {
- // VAutoComplete
- /** @deprecated */
- autocomplete: Boolean,
- /** @deprecated */
- combobox: Boolean,
- multiple: Boolean,
- /** @deprecated */
- tags: Boolean,
- // VOverflowBtn
- /** @deprecated */
- editable: Boolean,
- /** @deprecated */
- overflow: Boolean,
- /** @deprecated */
- segmented: Boolean
- },
- render: function render(h, _a) {
- var props = _a.props,
- data = _a.data,
- slots = _a.slots,
- parent = _a.parent;
- Object(_util_dedupeModelListeners__WEBPACK_IMPORTED_MODULE_5__["default"])(data);
- var children = Object(_util_rebuildFunctionalSlots__WEBPACK_IMPORTED_MODULE_4__["default"])(slots(), h);
- if (props.autocomplete) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_6__["deprecate"])('<v-select autocomplete>', '<v-autocomplete>', wrapper, parent);
- }
- if (props.combobox) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_6__["deprecate"])('<v-select combobox>', '<v-combobox>', wrapper, parent);
- }
- if (props.tags) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_6__["deprecate"])('<v-select tags>', '<v-combobox multiple>', wrapper, parent);
- }
- if (props.overflow) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_6__["deprecate"])('<v-select overflow>', '<v-overflow-btn>', wrapper, parent);
- }
- if (props.segmented) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_6__["deprecate"])('<v-select segmented>', '<v-overflow-btn segmented>', wrapper, parent);
- }
- if (props.editable) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_6__["deprecate"])('<v-select editable>', '<v-overflow-btn editable>', wrapper, parent);
- }
- data.attrs = data.attrs || {};
- if (props.combobox || props.tags) {
- data.attrs.multiple = props.tags;
- return h(_VCombobox__WEBPACK_IMPORTED_MODULE_3__["default"], data, children);
- } else if (props.autocomplete) {
- data.attrs.multiple = props.multiple;
- return h(_VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["default"], data, children);
- } else if (props.overflow || props.segmented || props.editable) {
- data.attrs.segmented = props.segmented;
- data.attrs.editable = props.editable;
- return h(_VOverflowBtn__WEBPACK_IMPORTED_MODULE_1__["default"], data, children);
- } else {
- data.attrs.multiple = props.multiple;
- return h(_VSelect__WEBPACK_IMPORTED_MODULE_0__["default"], data, children);
- }
- }
- };
-
- /* harmony default export */ __webpack_exports__["default"] = (wrapper);
-
- /***/ }),
-
- /***/ "./src/components/VSheet/VSheet.ts":
- /*!*****************************************!*\
- !*** ./src/components/VSheet/VSheet.ts ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_sheet_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_sheet.styl */ "./src/stylus/components/_sheet.styl");
- /* harmony import */ var _stylus_components_sheet_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_sheet_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_elevatable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/elevatable */ "./src/mixins/elevatable.ts");
- /* harmony import */ var _mixins_measurable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/measurable */ "./src/mixins/measurable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Mixins
-
-
-
-
- // Helpers
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_elevatable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_measurable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_4__["default"]).extend({
- name: 'v-sheet',
- props: {
- tag: {
- type: String,
- default: 'div'
- },
- tile: Boolean
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-sheet': true, 'v-sheet--tile': this.tile }, this.themeClasses, this.elevationClasses);
- },
- styles: function styles() {
- return this.measurableStyles;
- }
- },
- render: function render(h) {
- var data = {
- class: this.classes,
- style: this.styles,
- on: this.$listeners
- };
- return h(this.tag, this.setBackgroundColor(this.color, data), this.$slots.default);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VSheet/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VSheet/index.ts ***!
- \****************************************/
- /*! exports provided: VSheet, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VSheet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VSheet */ "./src/components/VSheet/VSheet.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSheet", function() { return _VSheet__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VSheet__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VSlider/VSlider.js":
- /*!*******************************************!*\
- !*** ./src/components/VSlider/VSlider.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_sliders_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_sliders.styl */ "./src/stylus/components/_sliders.styl");
- /* harmony import */ var _stylus_components_sliders_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_sliders_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../transitions */ "./src/components/transitions/index.js");
- /* harmony import */ var _VInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VInput */ "./src/components/VInput/index.ts");
- /* harmony import */ var _directives_click_outside__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../directives/click-outside */ "./src/directives/click-outside.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- /* harmony import */ var _mixins_loadable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../mixins/loadable */ "./src/mixins/loadable.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Components
-
- // Extensions
-
- // Directives
-
- // Utilities
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VInput__WEBPACK_IMPORTED_MODULE_2__["default"].extend({
- name: 'v-slider',
- directives: { ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_3__["default"] },
- mixins: [_mixins_loadable__WEBPACK_IMPORTED_MODULE_6__["default"]],
- props: {
- alwaysDirty: Boolean,
- inverseLabel: Boolean,
- label: String,
- min: {
- type: [Number, String],
- default: 0
- },
- max: {
- type: [Number, String],
- default: 100
- },
- step: {
- type: [Number, String],
- default: 1
- },
- ticks: {
- type: [Boolean, String],
- default: false,
- validator: function validator(v) {
- return typeof v === 'boolean' || v === 'always';
- }
- },
- tickLabels: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- tickSize: {
- type: [Number, String],
- default: 1
- },
- thumbColor: {
- type: String,
- default: null
- },
- thumbLabel: {
- type: [Boolean, String],
- default: null,
- validator: function validator(v) {
- return typeof v === 'boolean' || v === 'always';
- }
- },
- thumbSize: {
- type: [Number, String],
- default: 32
- },
- trackColor: {
- type: String,
- default: null
- },
- value: [Number, String]
- },
- data: function data(vm) {
- return {
- app: {},
- isActive: false,
- keyPressed: 0,
- lazyValue: typeof vm.value !== 'undefined' ? vm.value : Number(vm.min),
- oldValue: null
- };
- },
- computed: {
- classes: function classes() {
- return {
- 'v-input--slider': true,
- 'v-input--slider--ticks': this.showTicks,
- 'v-input--slider--inverse-label': this.inverseLabel,
- 'v-input--slider--ticks-labels': this.tickLabels.length > 0,
- 'v-input--slider--thumb-label': this.thumbLabel || this.$scopedSlots.thumbLabel
- };
- },
- showTicks: function showTicks() {
- return this.tickLabels.length > 0 || !this.disabled && this.stepNumeric && !!this.ticks;
- },
- showThumbLabel: function showThumbLabel() {
- return !this.disabled && (!!this.thumbLabel || this.thumbLabel === '' || this.$scopedSlots['thumb-label']);
- },
- computedColor: function computedColor() {
- if (this.disabled) return null;
- return this.validationState || this.color || 'primary';
- },
- computedTrackColor: function computedTrackColor() {
- return this.disabled ? null : this.trackColor || null;
- },
- computedThumbColor: function computedThumbColor() {
- if (this.disabled || !this.isDirty) return null;
- return this.validationState || this.thumbColor || this.color || 'primary';
- },
- internalValue: {
- get: function get() {
- return this.lazyValue;
- },
- set: function set(val) {
- var _a = this,
- min = _a.min,
- max = _a.max;
- // Round value to ensure the
- // entire slider range can
- // be selected with step
- var value = this.roundValue(Math.min(Math.max(val, min), max));
- if (value === this.lazyValue) return;
- this.lazyValue = value;
- this.$emit('input', value);
- this.validate();
- }
- },
- stepNumeric: function stepNumeric() {
- return this.step > 0 ? parseFloat(this.step) : 0;
- },
- trackFillStyles: function trackFillStyles() {
- var left = this.$vuetify.rtl ? 'auto' : 0;
- var right = this.$vuetify.rtl ? 0 : 'auto';
- var width = this.inputWidth + "%";
- if (this.disabled) width = "calc(" + this.inputWidth + "% - 8px)";
- return {
- transition: this.trackTransition,
- left: left,
- right: right,
- width: width
- };
- },
- trackPadding: function trackPadding() {
- return this.isActive || this.inputWidth > 0 || this.disabled ? 0 : 7;
- },
- trackStyles: function trackStyles() {
- var trackPadding = this.disabled ? "calc(" + this.inputWidth + "% + 8px)" : this.trackPadding + "px";
- var left = this.$vuetify.rtl ? 'auto' : trackPadding;
- var right = this.$vuetify.rtl ? trackPadding : 'auto';
- var width = this.disabled ? "calc(" + (100 - this.inputWidth) + "% - 8px)" : '100%';
- return {
- transition: this.trackTransition,
- left: left,
- right: right,
- width: width
- };
- },
- tickStyles: function tickStyles() {
- var size = Number(this.tickSize);
- return {
- 'border-width': size + "px",
- 'border-radius': size > 1 ? '50%' : null,
- transform: size > 1 ? "translateX(-" + size + "px) translateY(-" + (size - 1) + "px)" : null
- };
- },
- trackTransition: function trackTransition() {
- return this.keyPressed >= 2 ? 'none' : '';
- },
- numTicks: function numTicks() {
- return Math.ceil((this.max - this.min) / this.stepNumeric);
- },
- inputWidth: function inputWidth() {
- return (this.roundValue(this.internalValue) - this.min) / (this.max - this.min) * 100;
- },
- isDirty: function isDirty() {
- return this.internalValue > this.min || this.alwaysDirty;
- }
- },
- watch: {
- min: function min(val) {
- val > this.internalValue && this.$emit('input', parseFloat(val));
- },
- max: function max(val) {
- val < this.internalValue && this.$emit('input', parseFloat(val));
- },
- value: function value(val) {
- this.internalValue = val;
- }
- },
- mounted: function mounted() {
- // Without a v-app, iOS does not work with body selectors
- this.app = document.querySelector('[data-app]') || Object(_util_console__WEBPACK_IMPORTED_MODULE_5__["consoleWarn"])('Missing v-app or a non-body wrapping element with the [data-app] attribute', this);
- },
- methods: {
- genDefaultSlot: function genDefaultSlot() {
- var children = [this.genLabel()];
- var slider = this.genSlider();
- this.inverseLabel ? children.unshift(slider) : children.push(slider);
- children.push(this.genProgress());
- return children;
- },
- genListeners: function genListeners() {
- return {
- blur: this.onBlur,
- click: this.onSliderClick,
- focus: this.onFocus,
- keydown: this.onKeyDown,
- keyup: this.onKeyUp
- };
- },
- genInput: function genInput() {
- return this.$createElement('input', {
- attrs: __assign({ 'aria-label': this.label, name: this.name, role: 'slider', tabindex: this.disabled ? -1 : this.$attrs.tabindex, value: this.internalValue, readonly: true, 'aria-readonly': String(this.readonly), 'aria-valuemin': this.min, 'aria-valuemax': this.max, 'aria-valuenow': this.internalValue }, this.$attrs),
- on: this.genListeners(),
- ref: 'input'
- });
- },
- genSlider: function genSlider() {
- return this.$createElement('div', {
- staticClass: 'v-slider',
- 'class': {
- 'v-slider--is-active': this.isActive
- },
- directives: [{
- name: 'click-outside',
- value: this.onBlur
- }]
- }, this.genChildren());
- },
- genChildren: function genChildren() {
- return [this.genInput(), this.genTrackContainer(), this.genSteps(), this.genThumbContainer(this.internalValue, this.inputWidth, this.isFocused || this.isActive, this.onThumbMouseDown)];
- },
- genSteps: function genSteps() {
- var _this = this;
- if (!this.step || !this.showTicks) return null;
- var ticks = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["createRange"])(this.numTicks + 1).map(function (i) {
- var children = [];
- if (_this.tickLabels[i]) {
- children.push(_this.$createElement('span', _this.tickLabels[i]));
- }
- return _this.$createElement('span', {
- key: i,
- staticClass: 'v-slider__ticks',
- class: {
- 'v-slider__ticks--always-show': _this.ticks === 'always' || _this.tickLabels.length > 0
- },
- style: __assign({}, _this.tickStyles, { left: i * (100 / _this.numTicks) + "%" })
- }, children);
- });
- return this.$createElement('div', {
- staticClass: 'v-slider__ticks-container'
- }, ticks);
- },
- genThumb: function genThumb() {
- return this.$createElement('div', this.setBackgroundColor(this.computedThumbColor, {
- staticClass: 'v-slider__thumb'
- }));
- },
- genThumbContainer: function genThumbContainer(value, valueWidth, isActive, onDrag) {
- var children = [this.genThumb()];
- var thumbLabelContent = this.getLabel(value);
- this.showThumbLabel && children.push(this.genThumbLabel(thumbLabelContent));
- return this.$createElement('div', this.setTextColor(this.computedThumbColor, {
- staticClass: 'v-slider__thumb-container',
- 'class': {
- 'v-slider__thumb-container--is-active': isActive,
- 'v-slider__thumb-container--show-label': this.showThumbLabel
- },
- style: {
- transition: this.trackTransition,
- left: (this.$vuetify.rtl ? 100 - valueWidth : valueWidth) + "%"
- },
- on: {
- touchstart: onDrag,
- mousedown: onDrag
- }
- }), children);
- },
- genThumbLabel: function genThumbLabel(content) {
- var size = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["convertToUnit"])(this.thumbSize);
- return this.$createElement(_transitions__WEBPACK_IMPORTED_MODULE_1__["VScaleTransition"], {
- props: { origin: 'bottom center' }
- }, [this.$createElement('div', {
- staticClass: 'v-slider__thumb-label__container',
- directives: [{
- name: 'show',
- value: this.isFocused || this.isActive || this.thumbLabel === 'always'
- }]
- }, [this.$createElement('div', this.setBackgroundColor(this.computedThumbColor, {
- staticClass: 'v-slider__thumb-label',
- style: {
- height: size,
- width: size
- }
- }), [content])])]);
- },
- genTrackContainer: function genTrackContainer() {
- var children = [this.$createElement('div', this.setBackgroundColor(this.computedTrackColor, {
- staticClass: 'v-slider__track',
- style: this.trackStyles
- })), this.$createElement('div', this.setBackgroundColor(this.computedColor, {
- staticClass: 'v-slider__track-fill',
- style: this.trackFillStyles
- }))];
- return this.$createElement('div', {
- staticClass: 'v-slider__track__container',
- ref: 'track'
- }, children);
- },
- getLabel: function getLabel(value) {
- return this.$scopedSlots['thumb-label'] ? this.$scopedSlots['thumb-label']({ value: value }) : this.$createElement('span', value);
- },
- onBlur: function onBlur(e) {
- if (this.keyPressed === 2) return;
- this.isActive = false;
- this.isFocused = false;
- this.$emit('blur', e);
- },
- onFocus: function onFocus(e) {
- this.isFocused = true;
- this.$emit('focus', e);
- },
- onThumbMouseDown: function onThumbMouseDown(e) {
- this.oldValue = this.internalValue;
- this.keyPressed = 2;
- var options = { passive: true };
- this.isActive = true;
- this.isFocused = false;
- if ('touches' in e) {
- this.app.addEventListener('touchmove', this.onMouseMove, options);
- Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["addOnceEventListener"])(this.app, 'touchend', this.onSliderMouseUp);
- } else {
- this.app.addEventListener('mousemove', this.onMouseMove, options);
- Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["addOnceEventListener"])(this.app, 'mouseup', this.onSliderMouseUp);
- }
- this.$emit('start', this.internalValue);
- },
- onSliderMouseUp: function onSliderMouseUp() {
- this.keyPressed = 0;
- var options = { passive: true };
- this.isActive = false;
- this.isFocused = false;
- this.app.removeEventListener('touchmove', this.onMouseMove, options);
- this.app.removeEventListener('mousemove', this.onMouseMove, options);
- this.$emit('end', this.internalValue);
- if (!Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["deepEqual"])(this.oldValue, this.internalValue)) {
- this.$emit('change', this.internalValue);
- }
- },
- onMouseMove: function onMouseMove(e) {
- var _a = this.parseMouseMove(e),
- value = _a.value,
- isInsideTrack = _a.isInsideTrack;
- if (isInsideTrack) {
- this.setInternalValue(value);
- }
- },
- onKeyDown: function onKeyDown(e) {
- if (this.disabled || this.readonly) return;
- var value = this.parseKeyDown(e);
- if (value == null) return;
- this.setInternalValue(value);
- this.$emit('change', value);
- },
- onKeyUp: function onKeyUp() {
- this.keyPressed = 0;
- },
- onSliderClick: function onSliderClick(e) {
- this.isFocused = true;
- this.onMouseMove(e);
- this.$emit('change', this.internalValue);
- },
- parseMouseMove: function parseMouseMove(e) {
- var _a = this.$refs.track.getBoundingClientRect(),
- offsetLeft = _a.left,
- trackWidth = _a.width;
- var clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
- // It is possible for left to be NaN, force to number
- var left = Math.min(Math.max((clientX - offsetLeft) / trackWidth, 0), 1) || 0;
- if (this.$vuetify.rtl) left = 1 - left;
- var isInsideTrack = clientX >= offsetLeft - 8 && clientX <= offsetLeft + trackWidth + 8;
- var value = parseFloat(this.min) + left * (this.max - this.min);
- return { value: value, isInsideTrack: isInsideTrack };
- },
- parseKeyDown: function parseKeyDown(e, value) {
- if (value === void 0) {
- value = this.internalValue;
- }
- if (this.disabled) return;
- var pageup = _util_helpers__WEBPACK_IMPORTED_MODULE_4__["keyCodes"].pageup,
- pagedown = _util_helpers__WEBPACK_IMPORTED_MODULE_4__["keyCodes"].pagedown,
- end = _util_helpers__WEBPACK_IMPORTED_MODULE_4__["keyCodes"].end,
- home = _util_helpers__WEBPACK_IMPORTED_MODULE_4__["keyCodes"].home,
- left = _util_helpers__WEBPACK_IMPORTED_MODULE_4__["keyCodes"].left,
- right = _util_helpers__WEBPACK_IMPORTED_MODULE_4__["keyCodes"].right,
- down = _util_helpers__WEBPACK_IMPORTED_MODULE_4__["keyCodes"].down,
- up = _util_helpers__WEBPACK_IMPORTED_MODULE_4__["keyCodes"].up;
- if (![pageup, pagedown, end, home, left, right, down, up].includes(e.keyCode)) return;
- e.preventDefault();
- var step = this.stepNumeric || 1;
- var steps = (this.max - this.min) / step;
- if ([left, right, down, up].includes(e.keyCode)) {
- this.keyPressed += 1;
- var increase = this.$vuetify.rtl ? [left, up] : [right, up];
- var direction = increase.includes(e.keyCode) ? 1 : -1;
- var multiplier = e.shiftKey ? 3 : e.ctrlKey ? 2 : 1;
- value = value + direction * step * multiplier;
- } else if (e.keyCode === home) {
- value = parseFloat(this.min);
- } else if (e.keyCode === end) {
- value = parseFloat(this.max);
- } else /* if (e.keyCode === keyCodes.pageup || e.keyCode === pagedown) */{
- // Page up/down
- var direction = e.keyCode === pagedown ? 1 : -1;
- value = value - direction * step * (steps > 100 ? steps / 10 : 10);
- }
- return value;
- },
- roundValue: function roundValue(value) {
- if (!this.stepNumeric) return value;
- // Format input value using the same number
- // of decimals places as in the step prop
- var trimmedStep = this.step.toString().trim();
- var decimals = trimmedStep.indexOf('.') > -1 ? trimmedStep.length - trimmedStep.indexOf('.') - 1 : 0;
- var offset = this.min % this.stepNumeric;
- var newValue = Math.round((value - offset) / this.stepNumeric) * this.stepNumeric + offset;
- return parseFloat(Math.max(Math.min(newValue, this.max), this.min).toFixed(decimals));
- },
- setInternalValue: function setInternalValue(value) {
- this.internalValue = value;
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VSlider/index.js":
- /*!*****************************************!*\
- !*** ./src/components/VSlider/index.js ***!
- \*****************************************/
- /*! exports provided: VSlider, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VSlider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VSlider */ "./src/components/VSlider/VSlider.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSlider", function() { return _VSlider__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VSlider__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VSnackbar/VSnackbar.ts":
- /*!***********************************************!*\
- !*** ./src/components/VSnackbar/VSnackbar.ts ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_snackbars_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_snackbars.styl */ "./src/stylus/components/_snackbars.styl");
- /* harmony import */ var _stylus_components_snackbars_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_snackbars_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _mixins_positionable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/positionable */ "./src/mixins/positionable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_mixins_positionable__WEBPACK_IMPORTED_MODULE_3__["factory"])(['absolute', 'top', 'bottom', 'left', 'right'])
- /* @vue/component */
- ).extend({
- name: 'v-snackbar',
- props: {
- autoHeight: Boolean,
- multiLine: Boolean,
- // TODO: change this to closeDelay to match other API in delayable.js
- timeout: {
- type: Number,
- default: 6000
- },
- vertical: Boolean
- },
- data: function data() {
- return {
- activeTimeout: -1
- };
- },
- computed: {
- classes: function classes() {
- return {
- 'v-snack--active': this.isActive,
- 'v-snack--absolute': this.absolute,
- 'v-snack--auto-height': this.autoHeight,
- 'v-snack--bottom': this.bottom || !this.top,
- 'v-snack--left': this.left,
- 'v-snack--multi-line': this.multiLine && !this.vertical,
- 'v-snack--right': this.right,
- 'v-snack--top': this.top,
- 'v-snack--vertical': this.vertical
- };
- }
- },
- watch: {
- isActive: function isActive() {
- this.setTimeout();
- }
- },
- mounted: function mounted() {
- this.setTimeout();
- },
- methods: {
- setTimeout: function setTimeout() {
- var _this = this;
- window.clearTimeout(this.activeTimeout);
- if (this.isActive && this.timeout) {
- this.activeTimeout = window.setTimeout(function () {
- _this.isActive = false;
- }, this.timeout);
- }
- }
- },
- render: function render(h) {
- return h('transition', {
- attrs: { name: 'v-snack-transition' }
- }, this.isActive && [h('div', {
- staticClass: 'v-snack',
- class: this.classes,
- on: this.$listeners
- }, [h('div', this.setBackgroundColor(this.color, {
- staticClass: 'v-snack__wrapper'
- }), [h('div', {
- staticClass: 'v-snack__content'
- }, this.$slots.default)])])]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VSnackbar/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VSnackbar/index.ts ***!
- \*******************************************/
- /*! exports provided: VSnackbar, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VSnackbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VSnackbar */ "./src/components/VSnackbar/VSnackbar.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSnackbar", function() { return _VSnackbar__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VSnackbar__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VSparkline/VSparkline.ts":
- /*!*************************************************!*\
- !*** ./src/components/VSparkline/VSparkline.ts ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _helpers_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helpers/core */ "./src/components/VSparkline/helpers/core.ts");
- /* harmony import */ var _helpers_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helpers/path */ "./src/components/VSparkline/helpers/path.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Mixins
-
- // Utilities
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_0__["default"]).extend({
- name: 'VSparkline',
- props: {
- autoDraw: Boolean,
- autoDrawDuration: {
- type: Number,
- default: 2000
- },
- autoDrawEasing: {
- type: String,
- default: 'ease'
- },
- autoLineWidth: {
- type: Boolean,
- default: false
- },
- color: {
- type: String,
- default: 'primary'
- },
- fill: {
- type: Boolean,
- default: false
- },
- gradient: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- gradientDirection: {
- type: String,
- validator: function validator(val) {
- return ['top', 'bottom', 'left', 'right'].includes(val);
- },
- default: 'top'
- },
- height: {
- type: [String, Number],
- default: 75
- },
- labels: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- lineWidth: {
- type: [String, Number],
- default: 4
- },
- padding: {
- type: [String, Number],
- default: 8
- },
- smooth: {
- type: [Boolean, Number, String],
- default: false
- },
- showLabels: Boolean,
- type: {
- type: String,
- default: 'trend',
- validator: function validator(val) {
- return ['trend', 'bar'].includes(val);
- }
- },
- value: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- width: {
- type: [Number, String],
- default: 300
- },
- labelSize: {
- type: [Number, String],
- default: 7
- }
- },
- data: function data() {
- return {
- lastLength: 0
- };
- },
- computed: {
- parsedPadding: function parsedPadding() {
- return Number(this.padding);
- },
- parsedWidth: function parsedWidth() {
- return Number(this.width);
- },
- totalBars: function totalBars() {
- return this.value.length;
- },
- _lineWidth: function _lineWidth() {
- if (this.autoLineWidth && this.type !== 'trend') {
- var totalPadding = this.parsedPadding * (this.totalBars + 1);
- return (this.parsedWidth - totalPadding) / this.totalBars;
- } else {
- return Number(this.lineWidth) || 4;
- }
- },
- boundary: function boundary() {
- var height = Number(this.height);
- return {
- minX: this.parsedPadding,
- minY: this.parsedPadding,
- maxX: this.parsedWidth - this.parsedPadding,
- maxY: height - this.parsedPadding
- };
- },
- hasLabels: function hasLabels() {
- return Boolean(this.showLabels || this.labels.length > 0 || this.$scopedSlots.label);
- },
- parsedLabels: function parsedLabels() {
- var labels = [];
- var points = this.points;
- var len = points.length;
- for (var i = 0; labels.length < len; i++) {
- var item = points[i];
- var value = this.labels[i];
- if (!value) {
- value = item === Object(item) ? item.value : item;
- }
- labels.push(__assign({}, item, { value: String(value) }));
- }
- return labels;
- },
- points: function points() {
- return Object(_helpers_core__WEBPACK_IMPORTED_MODULE_2__["genPoints"])(this.value.slice(), this.boundary, this.type);
- },
- textY: function textY() {
- return this.boundary.maxY + 6;
- }
- },
- watch: {
- value: {
- immediate: true,
- handler: function handler() {
- var _this = this;
- this.$nextTick(function () {
- if (!_this.autoDraw || _this.type === 'bar') return;
- var path = _this.$refs.path;
- var length = path.getTotalLength();
- if (!_this.fill) {
- path.style.transition = 'none';
- path.style.strokeDasharray = length + ' ' + length;
- path.style.strokeDashoffset = Math.abs(length - (_this.lastLength || 0)).toString();
- path.getBoundingClientRect();
- path.style.transition = "stroke-dashoffset " + _this.autoDrawDuration + "ms " + _this.autoDrawEasing;
- path.style.strokeDashoffset = '0';
- } else {
- path.style.transformOrigin = 'bottom center';
- path.style.transition = 'none';
- path.style.transform = "scaleY(0)";
- path.getBoundingClientRect();
- path.style.transition = "transform " + _this.autoDrawDuration + "ms " + _this.autoDrawEasing;
- path.style.transform = "scaleY(1)";
- }
- _this.lastLength = length;
- });
- }
- }
- },
- methods: {
- genGradient: function genGradient() {
- var _this = this;
- var gradientDirection = this.gradientDirection;
- var gradient = this.gradient.slice();
- // Pushes empty string to force
- // a fallback to currentColor
- if (!gradient.length) gradient.push('');
- var len = Math.max(gradient.length - 1, 1);
- var stops = gradient.reverse().map(function (color, index) {
- return _this.$createElement('stop', {
- attrs: {
- offset: index / len,
- 'stop-color': color || _this.color || 'currentColor'
- }
- });
- });
- return this.$createElement('defs', [this.$createElement('linearGradient', {
- attrs: {
- id: this._uid,
- x1: +(gradientDirection === 'left'),
- y1: +(gradientDirection === 'top'),
- x2: +(gradientDirection === 'right'),
- y2: +(gradientDirection === 'bottom')
- }
- }, stops)]);
- },
- genG: function genG(children) {
- return this.$createElement('g', {
- style: {
- fontSize: '8',
- textAnchor: 'middle',
- dominantBaseline: 'mathematical',
- fill: this.color || 'currentColor'
- }
- }, children);
- },
- genLabels: function genLabels() {
- if (!this.hasLabels) return undefined;
- return this.genG(this.parsedLabels.map(this.genText));
- },
- genPath: function genPath() {
- var radius = this.smooth === true ? 8 : Number(this.smooth);
- return this.$createElement('path', {
- attrs: {
- id: this._uid,
- d: Object(_helpers_path__WEBPACK_IMPORTED_MODULE_3__["genPath"])(this.points.slice(), radius, this.fill, Number(this.height)),
- fill: this.fill ? "url(#" + this._uid + ")" : 'none',
- stroke: this.fill ? 'none' : "url(#" + this._uid + ")"
- },
- ref: 'path'
- });
- },
- genText: function genText(item, index) {
- var children = this.$scopedSlots.label ? this.$scopedSlots.label({ index: index, value: item.value }) : item.value;
- return this.$createElement('text', {
- attrs: {
- x: item.x,
- y: this.textY
- }
- }, [children]);
- },
- genBar: function genBar() {
- if (!this.value || this.totalBars < 2) return undefined;
- var _a = this,
- width = _a.width,
- height = _a.height,
- parsedPadding = _a.parsedPadding,
- _lineWidth = _a._lineWidth;
- var viewWidth = width || this.totalBars * parsedPadding * 2;
- var viewHeight = height || 75;
- var boundary = {
- minX: parsedPadding,
- minY: parsedPadding,
- maxX: Number(viewWidth) - parsedPadding,
- maxY: Number(viewHeight) - parsedPadding
- };
- var props = __assign({}, this.$props);
- props.points = Object(_helpers_core__WEBPACK_IMPORTED_MODULE_2__["genPoints"])(this.value, boundary, this.type);
- var totalWidth = boundary.maxX / (props.points.length - 1);
- props.boundary = boundary;
- props.lineWidth = _lineWidth || totalWidth - Number(parsedPadding || 5);
- props.offsetX = 0;
- if (!this.autoLineWidth) {
- props.offsetX = boundary.maxX / this.totalBars / 2 - boundary.minX;
- }
- return this.$createElement('svg', {
- attrs: {
- width: '100%',
- height: '25%',
- viewBox: "0 0 " + viewWidth + " " + viewHeight
- }
- }, [this.genGradient(), this.genClipPath(props.offsetX, props.lineWidth, 'sparkline-bar-' + this._uid), this.hasLabels ? this.genBarLabels(props) : undefined, this.$createElement('g', {
- attrs: {
- transform: "scale(1,-1) translate(0,-" + boundary.maxY + ")",
- 'clip-path': "url(#sparkline-bar-" + this._uid + "-clip)",
- fill: "url(#" + this._uid + ")"
- }
- }, [this.$createElement('rect', {
- attrs: {
- x: 0,
- y: 0,
- width: viewWidth,
- height: viewHeight
- }
- })])]);
- },
- genClipPath: function genClipPath(offsetX, lineWidth, id) {
- var _this = this;
- var maxY = this.boundary.maxY;
- var rounding = typeof this.smooth === 'number' ? this.smooth : this.smooth ? 2 : 0;
- return this.$createElement('clipPath', {
- attrs: {
- id: id + "-clip"
- }
- }, this.points.map(function (item) {
- return _this.$createElement('rect', {
- attrs: {
- x: item.x + offsetX,
- y: 0,
- width: lineWidth,
- height: Math.max(maxY - item.y, 0),
- rx: rounding,
- ry: rounding
- }
- }, [_this.autoDraw ? _this.$createElement('animate', {
- attrs: {
- attributeName: 'height',
- from: 0,
- to: maxY - item.y,
- dur: _this.autoDrawDuration + "ms",
- fill: 'freeze'
- }
- }) : undefined]);
- }));
- },
- genBarLabels: function genBarLabels(props) {
- var _this = this;
- var offsetX = props.offsetX || 0;
- var children = props.points.map(function (item) {
- return _this.$createElement('text', {
- attrs: {
- x: item.x + offsetX + _this._lineWidth / 2,
- y: props.boundary.maxY + (Number(_this.labelSize) || 7),
- 'font-size': Number(_this.labelSize) || 7
- }
- }, item.value.toString());
- });
- return this.genG(children);
- },
- genTrend: function genTrend() {
- return this.$createElement('svg', this.setTextColor(this.color, {
- attrs: {
- 'stroke-width': this._lineWidth || 1,
- width: '100%',
- height: '25%',
- viewBox: "0 0 " + this.width + " " + this.height
- }
- }), [this.genGradient(), this.genLabels(), this.genPath()]);
- }
- },
- render: function render(h) {
- if (this.totalBars < 2) return undefined;
- return this.type === 'trend' ? this.genTrend() : this.genBar();
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VSparkline/helpers/core.ts":
- /*!***************************************************!*\
- !*** ./src/components/VSparkline/helpers/core.ts ***!
- \***************************************************/
- /*! exports provided: genPoints */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genPoints", function() { return genPoints; });
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
- function genPoints(points, boundary, type) {
- var minX = boundary.minX,
- minY = boundary.minY,
- maxX = boundary.maxX,
- maxY = boundary.maxY;
- var normalisedPoints = points.map(function (item) {
- return typeof item === 'number' ? item : item.value;
- });
- var totalPoints = normalisedPoints.length;
- var maxValue = Math.max.apply(Math, __spread(normalisedPoints)) + 1;
- var minValue = Math.min.apply(Math, __spread(normalisedPoints));
- if (minValue) minValue -= 1;
- var gridX = (maxX - minX) / (totalPoints - 1);
- if (type === 'bar') gridX = maxX / totalPoints;
- var gridY = (maxY - minY) / (maxValue - minValue);
- return normalisedPoints.map(function (value, index) {
- return {
- x: minX + index * gridX,
- y: maxY - (value - minValue) * gridY + +(index === totalPoints - 1) * 0.00001 - +(index === 0) * 0.00001,
- value: value
- };
- });
- }
-
- /***/ }),
-
- /***/ "./src/components/VSparkline/helpers/math.ts":
- /*!***************************************************!*\
- !*** ./src/components/VSparkline/helpers/math.ts ***!
- \***************************************************/
- /*! exports provided: checkCollinear, getDistance, moveTo */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkCollinear", function() { return checkCollinear; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDistance", function() { return getDistance; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "moveTo", function() { return moveTo; });
- function int(value) {
- return parseInt(value, 10);
- }
- /**
- * https://en.wikipedia.org/wiki/Collinearity
- * x=(x1+x2)/2
- * y=(y1+y2)/2
- */
- function checkCollinear(p0, p1, p2) {
- return int(p0.x + p2.x) === int(2 * p1.x) && int(p0.y + p2.y) === int(2 * p1.y);
- }
- function getDistance(p1, p2) {
- return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));
- }
- function moveTo(to, from, radius) {
- var vector = { x: to.x - from.x, y: to.y - from.y };
- var length = Math.sqrt(vector.x * vector.x + vector.y * vector.y);
- var unitVector = { x: vector.x / length, y: vector.y / length };
- return {
- x: from.x + unitVector.x * radius,
- y: from.y + unitVector.y * radius
- };
- }
-
- /***/ }),
-
- /***/ "./src/components/VSparkline/helpers/path.ts":
- /*!***************************************************!*\
- !*** ./src/components/VSparkline/helpers/path.ts ***!
- \***************************************************/
- /*! exports provided: genPath */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genPath", function() { return genPath; });
- /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math */ "./src/components/VSparkline/helpers/math.ts");
-
- /**
- * From https://github.com/unsplash/react-trend/blob/master/src/helpers/DOM.helpers.js#L18
- */
- function genPath(points, radius, fill, height) {
- if (fill === void 0) {
- fill = false;
- }
- if (height === void 0) {
- height = 75;
- }
- var start = points.shift();
- var end = points[points.length - 1];
- return (fill ? "M" + start.x + " " + height + " L" + start.x + " " + start.y : "M" + start.x + " " + start.y) + points.map(function (point, index) {
- var next = points[index + 1];
- var prev = points[index - 1] || start;
- var isCollinear = next && Object(_math__WEBPACK_IMPORTED_MODULE_0__["checkCollinear"])(next, point, prev);
- if (!next || isCollinear) {
- return "L" + point.x + " " + point.y;
- }
- var threshold = Math.min(Object(_math__WEBPACK_IMPORTED_MODULE_0__["getDistance"])(prev, point), Object(_math__WEBPACK_IMPORTED_MODULE_0__["getDistance"])(next, point));
- var isTooCloseForRadius = threshold / 2 < radius;
- var radiusForPoint = isTooCloseForRadius ? threshold / 2 : radius;
- var before = Object(_math__WEBPACK_IMPORTED_MODULE_0__["moveTo"])(prev, point, radiusForPoint);
- var after = Object(_math__WEBPACK_IMPORTED_MODULE_0__["moveTo"])(next, point, radiusForPoint);
- return "L" + before.x + " " + before.y + "S" + point.x + " " + point.y + " " + after.x + " " + after.y;
- }).join('') + (fill ? "L" + end.x + " " + height + " Z" : '');
- }
-
- /***/ }),
-
- /***/ "./src/components/VSparkline/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VSparkline/index.ts ***!
- \********************************************/
- /*! exports provided: VSparkline, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VSparkline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VSparkline */ "./src/components/VSparkline/VSparkline.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSparkline", function() { return _VSparkline__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VSparkline__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VSpeedDial/VSpeedDial.js":
- /*!*************************************************!*\
- !*** ./src/components/VSpeedDial/VSpeedDial.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_speed_dial_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_speed-dial.styl */ "./src/stylus/components/_speed-dial.styl");
- /* harmony import */ var _stylus_components_speed_dial_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_speed_dial_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _mixins_positionable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/positionable */ "./src/mixins/positionable.ts");
- /* harmony import */ var _mixins_transitionable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/transitionable */ "./src/mixins/transitionable.ts");
- /* harmony import */ var _directives_click_outside__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../directives/click-outside */ "./src/directives/click-outside.ts");
-
-
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-speed-dial',
- directives: { ClickOutside: _directives_click_outside__WEBPACK_IMPORTED_MODULE_4__["default"] },
- mixins: [_mixins_positionable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_transitionable__WEBPACK_IMPORTED_MODULE_3__["default"]],
- props: {
- direction: {
- type: String,
- default: 'top',
- validator: function validator(val) {
- return ['top', 'right', 'bottom', 'left'].includes(val);
- }
- },
- openOnHover: Boolean,
- transition: {
- type: String,
- default: 'scale-transition'
- }
- },
- computed: {
- classes: function classes() {
- var _a;
- return _a = {
- 'v-speed-dial': true,
- 'v-speed-dial--top': this.top,
- 'v-speed-dial--right': this.right,
- 'v-speed-dial--bottom': this.bottom,
- 'v-speed-dial--left': this.left,
- 'v-speed-dial--absolute': this.absolute,
- 'v-speed-dial--fixed': this.fixed
- }, _a["v-speed-dial--direction-" + this.direction] = true, _a;
- }
- },
- render: function render(h) {
- var _this = this;
- var children = [];
- var data = {
- 'class': this.classes,
- directives: [{
- name: 'click-outside',
- value: function value() {
- return _this.isActive = false;
- }
- }],
- on: {
- click: function click() {
- return _this.isActive = !_this.isActive;
- }
- }
- };
- if (this.openOnHover) {
- data.on.mouseenter = function () {
- return _this.isActive = true;
- };
- data.on.mouseleave = function () {
- return _this.isActive = false;
- };
- }
- if (this.isActive) {
- var btnCount_1 = 0;
- children = (this.$slots.default || []).map(function (b, i) {
- if (b.tag && typeof b.componentOptions !== 'undefined' && b.componentOptions.Ctor.options.name === 'v-btn') {
- btnCount_1++;
- return h('div', {
- style: {
- transitionDelay: btnCount_1 * 0.05 + 's'
- },
- key: i
- }, [b]);
- } else {
- b.key = i;
- return b;
- }
- });
- }
- var list = h('transition-group', {
- 'class': 'v-speed-dial__list',
- props: {
- name: this.transition,
- mode: this.mode,
- origin: this.origin,
- tag: 'div'
- }
- }, children);
- return h('div', data, [this.$slots.activator, list]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VSpeedDial/index.js":
- /*!********************************************!*\
- !*** ./src/components/VSpeedDial/index.js ***!
- \********************************************/
- /*! exports provided: VSpeedDial, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VSpeedDial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VSpeedDial */ "./src/components/VSpeedDial/VSpeedDial.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSpeedDial", function() { return _VSpeedDial__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VSpeedDial__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VStepper/VStepper.ts":
- /*!*********************************************!*\
- !*** ./src/components/VStepper/VStepper.ts ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_steppers_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_steppers.styl */ "./src/stylus/components/_steppers.styl");
- /* harmony import */ var _stylus_components_steppers_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_steppers_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Mixins
-
-
- // Util
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_1__["provide"])('stepper'), _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-stepper',
- provide: function provide() {
- return {
- stepClick: this.stepClick,
- isVertical: this.vertical
- };
- },
- props: {
- nonLinear: Boolean,
- altLabels: Boolean,
- vertical: Boolean,
- value: [Number, String]
- },
- data: function data() {
- return {
- inputValue: null,
- isBooted: false,
- steps: [],
- content: [],
- isReverse: false
- };
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-stepper': true, 'v-stepper--is-booted': this.isBooted, 'v-stepper--vertical': this.vertical, 'v-stepper--alt-labels': this.altLabels, 'v-stepper--non-linear': this.nonLinear }, this.themeClasses);
- }
- },
- watch: {
- inputValue: function inputValue(val, prev) {
- this.isReverse = Number(val) < Number(prev);
- for (var index = this.steps.length; --index >= 0;) {
- this.steps[index].toggle(this.inputValue);
- }
- for (var index = this.content.length; --index >= 0;) {
- this.content[index].toggle(this.inputValue, this.isReverse);
- }
- this.$emit('input', this.inputValue);
- prev && (this.isBooted = true);
- },
- value: function value() {
- var _this = this;
- this.$nextTick(function () {
- return _this.inputValue = _this.value;
- });
- }
- },
- mounted: function mounted() {
- this.inputValue = this.value || this.steps[0].step || 1;
- },
- methods: {
- register: function register(item) {
- if (item.$options.name === 'v-stepper-step') {
- this.steps.push(item);
- } else if (item.$options.name === 'v-stepper-content') {
- item.isVertical = this.vertical;
- this.content.push(item);
- }
- },
- unregister: function unregister(item) {
- if (item.$options.name === 'v-stepper-step') {
- this.steps = this.steps.filter(function (i) {
- return i !== item;
- });
- } else if (item.$options.name === 'v-stepper-content') {
- item.isVertical = this.vertical;
- this.content = this.content.filter(function (i) {
- return i !== item;
- });
- }
- },
- stepClick: function stepClick(step) {
- var _this = this;
- this.$nextTick(function () {
- return _this.inputValue = step;
- });
- }
- },
- render: function render(h) {
- return h('div', {
- 'class': this.classes
- }, this.$slots.default);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VStepper/VStepperContent.ts":
- /*!****************************************************!*\
- !*** ./src/components/VStepper/VStepperContent.ts ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../transitions */ "./src/components/transitions/index.js");
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- // Components
-
- // Mixins
-
- // Helpers
-
- // Util
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_1__["inject"])('stepper', 'v-stepper-content', 'v-stepper')
- /* @vue/component */
- ).extend({
- name: 'v-stepper-content',
- inject: {
- isVerticalProvided: {
- from: 'isVertical'
- }
- },
- props: {
- step: {
- type: [Number, String],
- required: true
- }
- },
- data: function data() {
- return {
- height: 0,
- // Must be null to allow
- // previous comparison
- isActive: null,
- isReverse: false,
- isVertical: this.isVerticalProvided
- };
- },
- computed: {
- classes: function classes() {
- return {
- 'v-stepper__content': true
- };
- },
- computedTransition: function computedTransition() {
- return this.isReverse ? _transitions__WEBPACK_IMPORTED_MODULE_0__["VTabReverseTransition"] : _transitions__WEBPACK_IMPORTED_MODULE_0__["VTabTransition"];
- },
- styles: function styles() {
- if (!this.isVertical) return {};
- return {
- height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["convertToUnit"])(this.height)
- };
- },
- wrapperClasses: function wrapperClasses() {
- return {
- 'v-stepper__wrapper': true
- };
- }
- },
- watch: {
- isActive: function isActive(current, previous) {
- // If active and the previous state
- // was null, is just booting up
- if (current && previous == null) {
- this.height = 'auto';
- return;
- }
- if (!this.isVertical) return;
- if (this.isActive) this.enter();else this.leave();
- }
- },
- mounted: function mounted() {
- this.$refs.wrapper.addEventListener('transitionend', this.onTransition, false);
- this.stepper && this.stepper.register(this);
- },
- beforeDestroy: function beforeDestroy() {
- this.$refs.wrapper.removeEventListener('transitionend', this.onTransition, false);
- this.stepper && this.stepper.unregister(this);
- },
- methods: {
- onTransition: function onTransition(e) {
- if (!this.isActive || e.propertyName !== 'height') return;
- this.height = 'auto';
- },
- enter: function enter() {
- var _this = this;
- var scrollHeight = 0;
- // Render bug with height
- requestAnimationFrame(function () {
- scrollHeight = _this.$refs.wrapper.scrollHeight;
- });
- this.height = 0;
- // Give the collapsing element time to collapse
- setTimeout(function () {
- return _this.isActive && (_this.height = scrollHeight || 'auto');
- }, 450);
- },
- leave: function leave() {
- var _this = this;
- this.height = this.$refs.wrapper.clientHeight;
- setTimeout(function () {
- return _this.height = 0;
- }, 10);
- },
- toggle: function toggle(step, reverse) {
- this.isActive = step.toString() === this.step.toString();
- this.isReverse = reverse;
- }
- },
- render: function render(h) {
- var contentData = {
- 'class': this.classes
- };
- var wrapperData = {
- 'class': this.wrapperClasses,
- style: this.styles,
- ref: 'wrapper'
- };
- if (!this.isVertical) {
- contentData.directives = [{
- name: 'show',
- value: this.isActive
- }];
- }
- var wrapper = h('div', wrapperData, [this.$slots.default]);
- var content = h('div', contentData, [wrapper]);
- return h(this.computedTransition, {
- on: this.$listeners
- }, [content]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VStepper/VStepperStep.ts":
- /*!*************************************************!*\
- !*** ./src/components/VStepper/VStepperStep.ts ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- /* harmony import */ var _directives_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../directives/ripple */ "./src/directives/ripple.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- // Components
-
- // Mixins
-
-
- // Directives
-
- // Util
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_2__["inject"])('stepper', 'v-stepper-step', 'v-stepper')
- /* @vue/component */
- ).extend({
- name: 'v-stepper-step',
- directives: { Ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_3__["default"] },
- inject: ['stepClick'],
- props: {
- color: {
- type: String,
- default: 'primary'
- },
- complete: Boolean,
- completeIcon: {
- type: String,
- default: '$vuetify.icons.complete'
- },
- editIcon: {
- type: String,
- default: '$vuetify.icons.edit'
- },
- errorIcon: {
- type: String,
- default: '$vuetify.icons.error'
- },
- editable: Boolean,
- rules: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- step: [Number, String]
- },
- data: function data() {
- return {
- isActive: false,
- isInactive: true
- };
- },
- computed: {
- classes: function classes() {
- return {
- 'v-stepper__step': true,
- 'v-stepper__step--active': this.isActive,
- 'v-stepper__step--editable': this.editable,
- 'v-stepper__step--inactive': this.isInactive,
- 'v-stepper__step--error': this.hasError,
- 'v-stepper__step--complete': this.complete,
- 'error--text': this.hasError
- };
- },
- hasError: function hasError() {
- return this.rules.some(function (validate) {
- return validate() !== true;
- });
- }
- },
- mounted: function mounted() {
- this.stepper && this.stepper.register(this);
- },
- beforeDestroy: function beforeDestroy() {
- this.stepper && this.stepper.unregister(this);
- },
- methods: {
- click: function click(e) {
- e.stopPropagation();
- this.$emit('click', e);
- if (this.editable) {
- this.stepClick(this.step);
- }
- },
- toggle: function toggle(step) {
- this.isActive = step.toString() === this.step.toString();
- this.isInactive = Number(step) < Number(this.step);
- }
- },
- render: function render(h) {
- var data = {
- 'class': this.classes,
- directives: [{
- name: 'ripple',
- value: this.editable
- }],
- on: { click: this.click }
- };
- var stepContent;
- if (this.hasError) {
- stepContent = [h(_VIcon__WEBPACK_IMPORTED_MODULE_0__["default"], {}, this.errorIcon)];
- } else if (this.complete) {
- if (this.editable) {
- stepContent = [h(_VIcon__WEBPACK_IMPORTED_MODULE_0__["default"], {}, this.editIcon)];
- } else {
- stepContent = [h(_VIcon__WEBPACK_IMPORTED_MODULE_0__["default"], {}, this.completeIcon)];
- }
- } else {
- stepContent = String(this.step);
- }
- var color = !this.hasError && (this.complete || this.isActive) ? this.color : false;
- var step = h('span', this.setBackgroundColor(color, {
- staticClass: 'v-stepper__step__step'
- }), stepContent);
- var label = h('div', {
- staticClass: 'v-stepper__label'
- }, this.$slots.default);
- return h('div', data, [step, label]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VStepper/index.ts":
- /*!******************************************!*\
- !*** ./src/components/VStepper/index.ts ***!
- \******************************************/
- /*! exports provided: VStepper, VStepperContent, VStepperStep, VStepperHeader, VStepperItems, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VStepperHeader", function() { return VStepperHeader; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VStepperItems", function() { return VStepperItems; });
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _VStepper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VStepper */ "./src/components/VStepper/VStepper.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VStepper", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _VStepperStep__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VStepperStep */ "./src/components/VStepper/VStepperStep.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VStepperStep", function() { return _VStepperStep__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
- /* harmony import */ var _VStepperContent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VStepperContent */ "./src/components/VStepper/VStepperContent.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VStepperContent", function() { return _VStepperContent__WEBPACK_IMPORTED_MODULE_3__["default"]; });
-
-
-
-
-
- var VStepperHeader = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-stepper__header');
- var VStepperItems = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-stepper__items');
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VStepper: _VStepper__WEBPACK_IMPORTED_MODULE_1__["default"],
- VStepperContent: _VStepperContent__WEBPACK_IMPORTED_MODULE_3__["default"],
- VStepperStep: _VStepperStep__WEBPACK_IMPORTED_MODULE_2__["default"],
- VStepperHeader: VStepperHeader,
- VStepperItems: VStepperItems
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VSubheader/VSubheader.ts":
- /*!*************************************************!*\
- !*** ./src/components/VSubheader/VSubheader.ts ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_subheaders_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_subheaders.styl */ "./src/stylus/components/_subheaders.styl");
- /* harmony import */ var _stylus_components_subheaders_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_subheaders_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Mixins
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_2__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_1__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-subheader',
- props: {
- inset: Boolean
- },
- render: function render(h) {
- return h('div', {
- staticClass: 'v-subheader',
- class: __assign({ 'v-subheader--inset': this.inset }, this.themeClasses),
- attrs: this.$attrs,
- on: this.$listeners
- }, this.$slots.default);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VSubheader/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VSubheader/index.ts ***!
- \********************************************/
- /*! exports provided: VSubheader, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VSubheader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VSubheader */ "./src/components/VSubheader/VSubheader.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSubheader", function() { return _VSubheader__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VSubheader__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VSwitch/VSwitch.js":
- /*!*******************************************!*\
- !*** ./src/components/VSwitch/VSwitch.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_selection_controls_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_selection-controls.styl */ "./src/stylus/components/_selection-controls.styl");
- /* harmony import */ var _stylus_components_selection_controls_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_selection_controls_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _stylus_components_switch_styl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../stylus/components/_switch.styl */ "./src/stylus/components/_switch.styl");
- /* harmony import */ var _stylus_components_switch_styl__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_switch_styl__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _mixins_selectable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/selectable */ "./src/mixins/selectable.js");
- /* harmony import */ var _directives_touch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../directives/touch */ "./src/directives/touch.ts");
- /* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../transitions */ "./src/components/transitions/index.js");
- /* harmony import */ var _VProgressCircular_VProgressCircular__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../VProgressCircular/VProgressCircular */ "./src/components/VProgressCircular/VProgressCircular.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
-
- // Mixins
-
- // Directives
-
- // Components
-
-
- // Helpers
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-switch',
- directives: { Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_3__["default"] },
- mixins: [_mixins_selectable__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- loading: {
- type: [Boolean, String],
- default: false
- }
- },
- computed: {
- classes: function classes() {
- return {
- 'v-input--selection-controls v-input--switch': true
- };
- },
- switchData: function switchData() {
- return this.setTextColor(this.loading ? undefined : this.computedColor, {
- class: this.themeClasses
- });
- }
- },
- methods: {
- genDefaultSlot: function genDefaultSlot() {
- return [this.genSwitch(), this.genLabel()];
- },
- genSwitch: function genSwitch() {
- return this.$createElement('div', {
- staticClass: 'v-input--selection-controls__input'
- }, [this.genInput('checkbox', this.$attrs), this.genRipple(this.setTextColor(this.computedColor, {
- directives: [{
- name: 'touch',
- value: {
- left: this.onSwipeLeft,
- right: this.onSwipeRight
- }
- }]
- })), this.$createElement('div', __assign({ staticClass: 'v-input--switch__track' }, this.switchData)), this.$createElement('div', __assign({ staticClass: 'v-input--switch__thumb' }, this.switchData), [this.genProgress()])]);
- },
- genProgress: function genProgress() {
- return this.$createElement(_transitions__WEBPACK_IMPORTED_MODULE_4__["VFabTransition"], {}, [this.loading === false ? null : this.$slots.progress || this.$createElement(_VProgressCircular_VProgressCircular__WEBPACK_IMPORTED_MODULE_5__["default"], {
- props: {
- color: this.loading === true || this.loading === '' ? this.color || 'primary' : this.loading,
- size: 16,
- width: 2,
- indeterminate: true
- }
- })]);
- },
- onSwipeLeft: function onSwipeLeft() {
- if (this.isActive) this.onChange();
- },
- onSwipeRight: function onSwipeRight() {
- if (!this.isActive) this.onChange();
- },
- onKeydown: function onKeydown(e) {
- if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_6__["keyCodes"].left && this.isActive || e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_6__["keyCodes"].right && !this.isActive) this.onChange();
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VSwitch/index.js":
- /*!*****************************************!*\
- !*** ./src/components/VSwitch/index.js ***!
- \*****************************************/
- /*! exports provided: VSwitch, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VSwitch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VSwitch */ "./src/components/VSwitch/VSwitch.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSwitch", function() { return _VSwitch__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VSwitch__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VSystemBar/VSystemBar.ts":
- /*!*************************************************!*\
- !*** ./src/components/VSystemBar/VSystemBar.ts ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_system_bars_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_system-bars.styl */ "./src/stylus/components/_system-bars.styl");
- /* harmony import */ var _stylus_components_system_bars_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_system_bars_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/applicationable */ "./src/mixins/applicationable.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__["default"])('bar', ['height', 'window']), _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-system-bar',
- props: {
- height: {
- type: [Number, String],
- validator: function validator(v) {
- return !isNaN(parseInt(v));
- }
- },
- lightsOut: Boolean,
- status: Boolean,
- window: Boolean
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-system-bar--lights-out': this.lightsOut, 'v-system-bar--absolute': this.absolute, 'v-system-bar--fixed': !this.absolute && (this.app || this.fixed), 'v-system-bar--status': this.status, 'v-system-bar--window': this.window }, this.themeClasses);
- },
- computedHeight: function computedHeight() {
- if (this.height) return parseInt(this.height);
- return this.window ? 32 : 24;
- }
- },
- methods: {
- /**
- * Update the application layout
- *
- * @return {number}
- */
- updateApplication: function updateApplication() {
- return this.computedHeight;
- }
- },
- render: function render(h) {
- var data = {
- staticClass: 'v-system-bar',
- 'class': this.classes,
- style: {
- height: this.computedHeight + "px"
- }
- };
- return h('div', this.setBackgroundColor(this.color, data), this.$slots.default);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VSystemBar/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VSystemBar/index.ts ***!
- \********************************************/
- /*! exports provided: VSystemBar, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VSystemBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VSystemBar */ "./src/components/VSystemBar/VSystemBar.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSystemBar", function() { return _VSystemBar__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VSystemBar__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VTabs/VTab.js":
- /*!**************************************!*\
- !*** ./src/components/VTabs/VTab.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_groupable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mixins/groupable */ "./src/mixins/groupable.ts");
- /* harmony import */ var _mixins_routable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/routable */ "./src/mixins/routable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Mixins
-
-
-
- // Utilities
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-tab',
- mixins: [_mixins_routable__WEBPACK_IMPORTED_MODULE_1__["default"],
- // Must be after routable
- // to overwrite activeClass
- Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_0__["factory"])('tabGroup'), _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- ripple: {
- type: [Boolean, Object],
- default: true
- }
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-tabs__item': true, 'v-tabs__item--disabled': this.disabled }, this.groupClasses);
- },
- value: function value() {
- var to = this.to || this.href || '';
- if (this.$router && this.to === Object(this.to)) {
- var resolve = this.$router.resolve(this.to, this.$route, this.append);
- to = resolve.href;
- }
- return to.replace('#', '');
- }
- },
- watch: {
- $route: 'onRouteChange'
- },
- mounted: function mounted() {
- this.onRouteChange();
- },
- methods: {
- click: function click(e) {
- // If user provides an
- // actual link, do not
- // prevent default
- if (this.href && this.href.indexOf('#') > -1) e.preventDefault();
- this.$emit('click', e);
- this.to || this.toggle();
- },
- onRouteChange: function onRouteChange() {
- var _this = this;
- if (!this.to || !this.$refs.link) return;
- var path = "_vnode.data.class." + this.activeClass;
- this.$nextTick(function () {
- if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["getObjectValueByPath"])(_this.$refs.link, path)) {
- _this.toggle();
- }
- });
- }
- },
- render: function render(h) {
- var link = this.generateRouteLink(this.classes);
- var data = link.data;
- // If disabled, use div as anchor tags do not support
- // being disabled
- var tag = this.disabled ? 'div' : link.tag;
- data.ref = 'link';
- return h('div', {
- staticClass: 'v-tabs__div'
- }, [h(tag, data, this.$slots.default)]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTabs/VTabItem.js":
- /*!******************************************!*\
- !*** ./src/components/VTabs/VTabItem.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VWindow_VWindowItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../VWindow/VWindowItem */ "./src/components/VWindow/VWindowItem.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- // Extensions
-
- // Mixins
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VWindow_VWindowItem__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
- name: 'v-tab-item',
- props: {
- id: String
- },
- render: function render(h) {
- var render = _VWindow_VWindowItem__WEBPACK_IMPORTED_MODULE_0__["default"].options.render.call(this, h);
- // For backwards compatibility with v1.2
- /* istanbul ignore next */
- if (this.id) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_1__["deprecate"])('id', 'value', this);
- render.data.domProps = render.data.domProps || {};
- render.data.domProps.id = this.id;
- }
- return render;
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VTabs/VTabs.js":
- /*!***************************************!*\
- !*** ./src/components/VTabs/VTabs.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_tabs_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_tabs.styl */ "./src/stylus/components/_tabs.styl");
- /* harmony import */ var _stylus_components_tabs_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_tabs_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VItemGroup/VItemGroup */ "./src/components/VItemGroup/VItemGroup.ts");
- /* harmony import */ var _mixins_tabs_computed__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mixins/tabs-computed */ "./src/components/VTabs/mixins/tabs-computed.js");
- /* harmony import */ var _mixins_tabs_generators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./mixins/tabs-generators */ "./src/components/VTabs/mixins/tabs-generators.js");
- /* harmony import */ var _mixins_tabs_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mixins/tabs-props */ "./src/components/VTabs/mixins/tabs-props.js");
- /* harmony import */ var _mixins_tabs_touch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mixins/tabs-touch */ "./src/components/VTabs/mixins/tabs-touch.js");
- /* harmony import */ var _mixins_tabs_watchers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mixins/tabs-watchers */ "./src/components/VTabs/mixins/tabs-watchers.js");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../mixins/ssr-bootable */ "./src/mixins/ssr-bootable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _directives_resize__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../directives/resize */ "./src/directives/resize.ts");
- /* harmony import */ var _directives_touch__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../directives/touch */ "./src/directives/touch.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- /* harmony import */ var _util_ThemeProvider__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../util/ThemeProvider */ "./src/util/ThemeProvider.ts");
- // Styles
-
- // Extensions
-
- // Component level mixins
-
-
-
-
-
- // Mixins
-
-
-
- // Directives
-
-
-
- // Utils
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__["BaseItemGroup"].extend({
- name: 'v-tabs',
- directives: {
- Resize: _directives_resize__WEBPACK_IMPORTED_MODULE_10__["default"],
- Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_11__["default"]
- },
- mixins: [_mixins_colorable__WEBPACK_IMPORTED_MODULE_7__["default"], _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_8__["default"], _mixins_tabs_computed__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_tabs_props__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_tabs_generators__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_tabs_touch__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_tabs_watchers__WEBPACK_IMPORTED_MODULE_6__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_9__["default"]],
- provide: function provide() {
- return {
- tabGroup: this,
- tabProxy: this.tabProxy,
- registerItems: this.registerItems,
- unregisterItems: this.unregisterItems
- };
- },
- data: function data() {
- return {
- bar: [],
- content: [],
- isOverflowing: false,
- nextIconVisible: false,
- prevIconVisible: false,
- resizeTimeout: null,
- scrollOffset: 0,
- sliderWidth: null,
- sliderLeft: null,
- startX: 0,
- tabItems: null,
- transitionTime: 300,
- widths: {
- bar: 0,
- container: 0,
- wrapper: 0
- }
- };
- },
- watch: {
- items: 'onResize',
- tabs: 'onResize'
- },
- mounted: function mounted() {
- this.init();
- },
- methods: {
- checkIcons: function checkIcons() {
- this.prevIconVisible = this.checkPrevIcon();
- this.nextIconVisible = this.checkNextIcon();
- },
- checkPrevIcon: function checkPrevIcon() {
- return this.scrollOffset > 0;
- },
- checkNextIcon: function checkNextIcon() {
- // Check one scroll ahead to know the width of right-most item
- return this.widths.container > this.scrollOffset + this.widths.wrapper;
- },
- callSlider: function callSlider() {
- var _this = this;
- if (this.hideSlider || !this.activeTab) return false;
- // Give screen time to paint
- var activeTab = this.activeTab;
- this.$nextTick(function () {
- /* istanbul ignore if */
- if (!activeTab || !activeTab.$el) return;
- _this.sliderWidth = activeTab.$el.scrollWidth;
- _this.sliderLeft = activeTab.$el.offsetLeft;
- });
- },
- // Do not process
- // until DOM is
- // painted
- init: function init() {
- /* istanbul ignore next */
- if (this.$listeners['input']) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_12__["deprecate"])('@input', '@change', this);
- }
- },
- /**
- * When v-navigation-drawer changes the
- * width of the container, call resize
- * after the transition is complete
- */
- onResize: function onResize() {
- if (this._isDestroyed) return;
- this.setWidths();
- var delay = this.isBooted ? this.transitionTime : 0;
- clearTimeout(this.resizeTimeout);
- this.resizeTimeout = setTimeout(this.updateTabsView, delay);
- },
- overflowCheck: function overflowCheck(e, fn) {
- this.isOverflowing && fn(e);
- },
- scrollTo: function scrollTo(direction) {
- this.scrollOffset = this.newOffset(direction);
- },
- setOverflow: function setOverflow() {
- this.isOverflowing = this.widths.bar < this.widths.container;
- },
- setWidths: function setWidths() {
- var bar = this.$refs.bar ? this.$refs.bar.clientWidth : 0;
- var container = this.$refs.container ? this.$refs.container.clientWidth : 0;
- var wrapper = this.$refs.wrapper ? this.$refs.wrapper.clientWidth : 0;
- this.widths = { bar: bar, container: container, wrapper: wrapper };
- this.setOverflow();
- },
- parseNodes: function parseNodes() {
- var item = [];
- var items = [];
- var slider = [];
- var tab = [];
- var length = (this.$slots.default || []).length;
- for (var i = 0; i < length; i++) {
- var vnode = this.$slots.default[i];
- if (vnode.componentOptions) {
- switch (vnode.componentOptions.Ctor.options.name) {
- case 'v-tabs-slider':
- slider.push(vnode);
- break;
- case 'v-tabs-items':
- items.push(vnode);
- break;
- case 'v-tab-item':
- item.push(vnode);
- break;
- // case 'v-tab' - intentionally omitted
- default:
- tab.push(vnode);
- }
- } else {
- tab.push(vnode);
- }
- }
- return { tab: tab, slider: slider, items: items, item: item };
- },
- registerItems: function registerItems(fn) {
- this.tabItems = fn;
- fn(this.internalValue);
- },
- unregisterItems: function unregisterItems() {
- this.tabItems = null;
- },
- updateTabsView: function updateTabsView() {
- this.callSlider();
- this.scrollIntoView();
- this.checkIcons();
- },
- scrollIntoView: function scrollIntoView() {
- /* istanbul ignore next */
- if (!this.activeTab) return;
- if (!this.isOverflowing) return this.scrollOffset = 0;
- var totalWidth = this.widths.wrapper + this.scrollOffset;
- var _a = this.activeTab.$el,
- clientWidth = _a.clientWidth,
- offsetLeft = _a.offsetLeft;
- var itemOffset = clientWidth + offsetLeft;
- var additionalOffset = clientWidth * 0.3;
- if (this.activeTab === this.items[this.items.length - 1]) {
- additionalOffset = 0; // don't add an offset if selecting the last tab
- }
- /* istanbul ignore else */
- if (offsetLeft < this.scrollOffset) {
- this.scrollOffset = Math.max(offsetLeft - additionalOffset, 0);
- } else if (totalWidth < itemOffset) {
- this.scrollOffset -= totalWidth - itemOffset - additionalOffset;
- }
- },
- tabProxy: function tabProxy(val) {
- this.internalValue = val;
- }
- },
- render: function render(h) {
- var _a = this.parseNodes(),
- tab = _a.tab,
- slider = _a.slider,
- items = _a.items,
- item = _a.item;
- return h('div', {
- staticClass: 'v-tabs',
- directives: [{
- name: 'resize',
- modifiers: { quiet: true },
- value: this.onResize
- }]
- }, [this.genBar([this.hideSlider ? null : this.genSlider(slider), tab]), h(_util_ThemeProvider__WEBPACK_IMPORTED_MODULE_13__["default"], {
- props: { dark: this.theme.isDark, light: !this.theme.isDark }
- }, [this.genItems(items, item)])]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VTabs/VTabsItems.js":
- /*!********************************************!*\
- !*** ./src/components/VTabs/VTabsItems.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../VWindow/VWindow */ "./src/components/VWindow/VWindow.ts");
- // Extensions
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VWindow_VWindow__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
- name: 'v-tabs-items',
- inject: {
- registerItems: {
- default: null
- },
- tabProxy: {
- default: null
- },
- unregisterItems: {
- default: null
- }
- },
- props: {
- cycle: Boolean
- },
- watch: {
- internalValue: function internalValue(val) {
- /* istanbul ignore else */
- if (this.tabProxy) this.tabProxy(val);
- }
- },
- created: function created() {
- this.registerItems && this.registerItems(this.changeModel);
- },
- beforeDestroy: function beforeDestroy() {
- this.unregisterItems && this.unregisterItems();
- },
- methods: {
- changeModel: function changeModel(val) {
- this.internalValue = val;
- },
- // For backwards compatability with v1.2
- getValue: function getValue(item, i) {
- /* istanbul ignore if */
- if (item.id) return item.id;
- return _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_0__["default"].options.methods.getValue.call(this, item, i);
- },
- next: function next() {
- if (!this.cycle && this.internalIndex === this.items.length - 1) {
- return;
- }
- _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_0__["default"].options.methods.next.call(this);
- },
- prev: function prev() {
- if (!this.cycle && this.internalIndex === 0) {
- return;
- }
- _VWindow_VWindow__WEBPACK_IMPORTED_MODULE_0__["default"].options.methods.prev.call(this);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VTabs/VTabsSlider.js":
- /*!*********************************************!*\
- !*** ./src/components/VTabs/VTabsSlider.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-tabs-slider',
- mixins: [_mixins_colorable__WEBPACK_IMPORTED_MODULE_0__["default"]],
- render: function render(h) {
- return h('div', this.setBackgroundColor(this.color || 'accent', {
- staticClass: 'v-tabs__slider'
- }));
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTabs/index.js":
- /*!***************************************!*\
- !*** ./src/components/VTabs/index.js ***!
- \***************************************/
- /*! exports provided: VTabs, VTab, VTabItem, VTabsItems, VTabsSlider, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VTabs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VTabs */ "./src/components/VTabs/VTabs.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTabs", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VTab__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VTab */ "./src/components/VTabs/VTab.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTab", function() { return _VTab__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _VTabsItems__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VTabsItems */ "./src/components/VTabs/VTabsItems.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTabsItems", function() { return _VTabsItems__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
- /* harmony import */ var _VTabItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VTabItem */ "./src/components/VTabs/VTabItem.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTabItem", function() { return _VTabItem__WEBPACK_IMPORTED_MODULE_3__["default"]; });
-
- /* harmony import */ var _VTabsSlider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VTabsSlider */ "./src/components/VTabs/VTabsSlider.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTabsSlider", function() { return _VTabsSlider__WEBPACK_IMPORTED_MODULE_4__["default"]; });
-
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VTabs: _VTabs__WEBPACK_IMPORTED_MODULE_0__["default"],
- VTab: _VTab__WEBPACK_IMPORTED_MODULE_1__["default"],
- VTabsItems: _VTabsItems__WEBPACK_IMPORTED_MODULE_2__["default"],
- VTabItem: _VTabItem__WEBPACK_IMPORTED_MODULE_3__["default"],
- VTabsSlider: _VTabsSlider__WEBPACK_IMPORTED_MODULE_4__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTabs/mixins/tabs-computed.js":
- /*!******************************************************!*\
- !*** ./src/components/VTabs/mixins/tabs-computed.js ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /**
- * Tabs computed
- *
- * @mixin
- */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- computed: {
- activeTab: function activeTab() {
- if (!this.selectedItems.length) return undefined;
- return this.selectedItems[0];
- },
- containerStyles: function containerStyles() {
- return this.height ? {
- height: parseInt(this.height, 10) + "px"
- } : null;
- },
- hasArrows: function hasArrows() {
- return (this.showArrows || !this.isMobile) && this.isOverflowing;
- },
- isMobile: function isMobile() {
- return this.$vuetify.breakpoint.width < this.mobileBreakPoint;
- },
- sliderStyles: function sliderStyles() {
- return {
- left: this.sliderLeft + "px",
- transition: this.sliderLeft != null ? null : 'none',
- width: this.sliderWidth + "px"
- };
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTabs/mixins/tabs-generators.js":
- /*!********************************************************!*\
- !*** ./src/components/VTabs/mixins/tabs-generators.js ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VTabsItems__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../VTabsItems */ "./src/components/VTabs/VTabsItems.js");
- /* harmony import */ var _VTabsSlider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VTabsSlider */ "./src/components/VTabs/VTabsSlider.js");
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../VIcon */ "./src/components/VIcon/index.ts");
-
-
-
- /**
- * Tabs generators
- *
- * @mixin
- */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- methods: {
- genBar: function genBar(items) {
- return this.$createElement('div', this.setBackgroundColor(this.color, {
- staticClass: 'v-tabs__bar',
- 'class': this.themeClasses,
- ref: 'bar'
- }), [this.genTransition('prev'), this.genWrapper(this.genContainer(items)), this.genTransition('next')]);
- },
- genContainer: function genContainer(items) {
- return this.$createElement('div', {
- staticClass: 'v-tabs__container',
- class: {
- 'v-tabs__container--align-with-title': this.alignWithTitle,
- 'v-tabs__container--centered': this.centered,
- 'v-tabs__container--fixed-tabs': this.fixedTabs,
- 'v-tabs__container--grow': this.grow,
- 'v-tabs__container--icons-and-text': this.iconsAndText,
- 'v-tabs__container--overflow': this.isOverflowing,
- 'v-tabs__container--right': this.right
- },
- style: this.containerStyles,
- ref: 'container'
- }, items);
- },
- genIcon: function genIcon(direction) {
- var _this = this;
- if (!this.hasArrows || !this[direction + "IconVisible"]) return null;
- return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_2__["default"], {
- staticClass: "v-tabs__icon v-tabs__icon--" + direction,
- props: {
- disabled: !this[direction + "IconVisible"]
- },
- on: {
- click: function click() {
- return _this.scrollTo(direction);
- }
- }
- }, this[direction + "Icon"]);
- },
- genItems: function genItems(items, item) {
- if (items.length > 0) return items;
- if (!item.length) return null;
- return this.$createElement(_VTabsItems__WEBPACK_IMPORTED_MODULE_0__["default"], item);
- },
- genTransition: function genTransition(direction) {
- return this.$createElement('transition', {
- props: { name: 'fade-transition' }
- }, [this.genIcon(direction)]);
- },
- genWrapper: function genWrapper(items) {
- var _this = this;
- return this.$createElement('div', {
- staticClass: 'v-tabs__wrapper',
- class: {
- 'v-tabs__wrapper--show-arrows': this.hasArrows
- },
- ref: 'wrapper',
- directives: [{
- name: 'touch',
- value: {
- start: function start(e) {
- return _this.overflowCheck(e, _this.onTouchStart);
- },
- move: function move(e) {
- return _this.overflowCheck(e, _this.onTouchMove);
- },
- end: function end(e) {
- return _this.overflowCheck(e, _this.onTouchEnd);
- }
- }
- }]
- }, [items]);
- },
- genSlider: function genSlider(items) {
- if (!items.length) {
- items = [this.$createElement(_VTabsSlider__WEBPACK_IMPORTED_MODULE_1__["default"], {
- props: { color: this.sliderColor }
- })];
- }
- return this.$createElement('div', {
- staticClass: 'v-tabs__slider-wrapper',
- style: this.sliderStyles
- }, items);
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTabs/mixins/tabs-props.js":
- /*!***************************************************!*\
- !*** ./src/components/VTabs/mixins/tabs-props.js ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /**
- * Tabs props
- *
- * @mixin
- */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- activeClass: {
- type: String,
- default: 'v-tabs__item--active'
- },
- alignWithTitle: Boolean,
- centered: Boolean,
- fixedTabs: Boolean,
- grow: Boolean,
- height: {
- type: [Number, String],
- default: undefined,
- validator: function validator(v) {
- return !isNaN(parseInt(v));
- }
- },
- hideSlider: Boolean,
- iconsAndText: Boolean,
- mandatory: {
- type: Boolean,
- default: true
- },
- mobileBreakPoint: {
- type: [Number, String],
- default: 1264,
- validator: function validator(v) {
- return !isNaN(parseInt(v));
- }
- },
- nextIcon: {
- type: String,
- default: '$vuetify.icons.next'
- },
- prevIcon: {
- type: String,
- default: '$vuetify.icons.prev'
- },
- right: Boolean,
- showArrows: Boolean,
- sliderColor: {
- type: String,
- default: 'accent'
- },
- value: [Number, String]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTabs/mixins/tabs-touch.js":
- /*!***************************************************!*\
- !*** ./src/components/VTabs/mixins/tabs-touch.js ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /**
- * Tabs touch
- *
- * @mixin
- */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- methods: {
- newOffset: function newOffset(direction) {
- var clientWidth = this.$refs.wrapper.clientWidth;
- if (direction === 'prev') {
- return Math.max(this.scrollOffset - clientWidth, 0);
- } else {
- return Math.min(this.scrollOffset + clientWidth, this.$refs.container.clientWidth - clientWidth);
- }
- },
- onTouchStart: function onTouchStart(e) {
- this.startX = this.scrollOffset + e.touchstartX;
- this.$refs.container.style.transition = 'none';
- this.$refs.container.style.willChange = 'transform';
- },
- onTouchMove: function onTouchMove(e) {
- this.scrollOffset = this.startX - e.touchmoveX;
- },
- onTouchEnd: function onTouchEnd() {
- var container = this.$refs.container;
- var wrapper = this.$refs.wrapper;
- var maxScrollOffset = container.clientWidth - wrapper.clientWidth;
- container.style.transition = null;
- container.style.willChange = null;
- /* istanbul ignore else */
- if (this.scrollOffset < 0 || !this.isOverflowing) {
- this.scrollOffset = 0;
- } else if (this.scrollOffset >= maxScrollOffset) {
- this.scrollOffset = maxScrollOffset;
- }
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTabs/mixins/tabs-watchers.js":
- /*!******************************************************!*\
- !*** ./src/components/VTabs/mixins/tabs-watchers.js ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /**
- * Tabs watchers
- *
- * @mixin
- */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- watch: {
- activeTab: function activeTab(val, oldVal) {
- this.setOverflow();
- if (!val) return;
- this.tabItems && this.tabItems(this.getValue(val, this.items.indexOf(val)));
- // Do nothing for first tab
- // is handled from isBooted
- // watcher
- if (oldVal == null) return;
- this.updateTabsView();
- },
- alignWithTitle: 'callSlider',
- centered: 'callSlider',
- fixedTabs: 'callSlider',
- hasArrows: function hasArrows(val) {
- if (!val) this.scrollOffset = 0;
- },
- /* @deprecate */
- internalValue: function internalValue(val) {
- /* istanbul ignore else */
- if (!this.$listeners['input']) return;
- this.$emit('input', val);
- },
- lazyValue: 'updateTabs',
- right: 'callSlider',
- '$vuetify.application.left': 'onResize',
- '$vuetify.application.right': 'onResize',
- scrollOffset: function scrollOffset(val) {
- this.$refs.container.style.transform = "translateX(" + -val + "px)";
- if (this.hasArrows) {
- this.prevIconVisible = this.checkPrevIcon();
- this.nextIconVisible = this.checkNextIcon();
- }
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTextField/VTextField.js":
- /*!*************************************************!*\
- !*** ./src/components/VTextField/VTextField.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_text_fields_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_text-fields.styl */ "./src/stylus/components/_text-fields.styl");
- /* harmony import */ var _stylus_components_text_fields_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_text_fields_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VInput */ "./src/components/VInput/index.ts");
- /* harmony import */ var _VCounter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VCounter */ "./src/components/VCounter/index.ts");
- /* harmony import */ var _VLabel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../VLabel */ "./src/components/VLabel/index.ts");
- /* harmony import */ var _mixins_maskable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/maskable */ "./src/mixins/maskable.js");
- /* harmony import */ var _mixins_loadable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/loadable */ "./src/mixins/loadable.ts");
- /* harmony import */ var _directives_ripple__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../directives/ripple */ "./src/directives/ripple.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Extensions
-
- // Components
-
-
- // Mixins
-
-
- // Directives
-
- // Utilities
-
-
- var dirtyTypes = ['color', 'file', 'time', 'date', 'datetime-local', 'week', 'month'];
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VInput__WEBPACK_IMPORTED_MODULE_1__["default"].extend({
- name: 'v-text-field',
- directives: { Ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_6__["default"] },
- mixins: [_mixins_maskable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_loadable__WEBPACK_IMPORTED_MODULE_5__["default"]],
- inheritAttrs: false,
- props: {
- appendOuterIcon: String,
- /** @deprecated */
- appendOuterIconCb: Function,
- autofocus: Boolean,
- box: Boolean,
- browserAutocomplete: String,
- clearable: Boolean,
- clearIcon: {
- type: String,
- default: '$vuetify.icons.clear'
- },
- clearIconCb: Function,
- color: {
- type: String,
- default: 'primary'
- },
- counter: [Boolean, Number, String],
- flat: Boolean,
- fullWidth: Boolean,
- label: String,
- outline: Boolean,
- placeholder: String,
- prefix: String,
- prependInnerIcon: String,
- /** @deprecated */
- prependInnerIconCb: Function,
- reverse: Boolean,
- singleLine: Boolean,
- solo: Boolean,
- soloInverted: Boolean,
- suffix: String,
- type: {
- type: String,
- default: 'text'
- }
- },
- data: function data() {
- return {
- badInput: false,
- initialValue: null,
- internalChange: false,
- isClearing: false
- };
- },
- computed: {
- classes: function classes() {
- return {
- 'v-text-field': true,
- 'v-text-field--full-width': this.fullWidth,
- 'v-text-field--prefix': this.prefix,
- 'v-text-field--single-line': this.isSingle,
- 'v-text-field--solo': this.isSolo,
- 'v-text-field--solo-inverted': this.soloInverted,
- 'v-text-field--solo-flat': this.flat,
- 'v-text-field--box': this.box,
- 'v-text-field--enclosed': this.isEnclosed,
- 'v-text-field--reverse': this.reverse,
- 'v-text-field--outline': this.hasOutline,
- 'v-text-field--placeholder': this.placeholder
- };
- },
- counterValue: function counterValue() {
- return (this.internalValue || '').toString().length;
- },
- directivesInput: function directivesInput() {
- return [];
- },
- // TODO: Deprecate
- hasOutline: function hasOutline() {
- return this.outline || this.textarea;
- },
- internalValue: {
- get: function get() {
- return this.lazyValue;
- },
- set: function set(val) {
- if (this.mask && val !== this.lazyValue) {
- this.lazyValue = this.unmaskText(this.maskText(this.unmaskText(val)));
- this.setSelectionRange();
- } else {
- this.lazyValue = val;
- this.$emit('input', this.lazyValue);
- }
- }
- },
- isDirty: function isDirty() {
- return this.lazyValue != null && this.lazyValue.toString().length > 0 || this.badInput;
- },
- isEnclosed: function isEnclosed() {
- return this.box || this.isSolo || this.hasOutline || this.fullWidth;
- },
- isLabelActive: function isLabelActive() {
- return this.isDirty || dirtyTypes.includes(this.type);
- },
- isSingle: function isSingle() {
- return this.isSolo || this.singleLine;
- },
- isSolo: function isSolo() {
- return this.solo || this.soloInverted;
- },
- labelPosition: function labelPosition() {
- var offset = this.prefix && !this.labelValue ? this.prefixWidth : 0;
- return !this.$vuetify.rtl !== !this.reverse ? {
- left: 'auto',
- right: offset
- } : {
- left: offset,
- right: 'auto'
- };
- },
- showLabel: function showLabel() {
- return this.hasLabel && (!this.isSingle || !this.isLabelActive && !this.placeholder && !this.prefixLabel);
- },
- labelValue: function labelValue() {
- return !this.isSingle && Boolean(this.isFocused || this.isLabelActive || this.placeholder || this.prefixLabel);
- },
- prefixWidth: function prefixWidth() {
- if (!this.prefix && !this.$refs.prefix) return;
- return this.$refs.prefix.offsetWidth;
- },
- prefixLabel: function prefixLabel() {
- return this.prefix && !this.value;
- }
- },
- watch: {
- isFocused: function isFocused(val) {
- // Sets validationState from validatable
- this.hasColor = val;
- if (val) {
- this.initialValue = this.lazyValue;
- } else if (this.initialValue !== this.lazyValue) {
- this.$emit('change', this.lazyValue);
- }
- },
- value: function value(val) {
- var _this = this;
- if (this.mask && !this.internalChange) {
- var masked_1 = this.maskText(this.unmaskText(val));
- this.lazyValue = this.unmaskText(masked_1);
- // Emit when the externally set value was modified internally
- String(val) !== this.lazyValue && this.$nextTick(function () {
- _this.$refs.input.value = masked_1;
- _this.$emit('input', _this.lazyValue);
- });
- } else this.lazyValue = val;
- }
- },
- mounted: function mounted() {
- this.autofocus && this.onFocus();
- },
- methods: {
- /** @public */
- focus: function focus() {
- this.onFocus();
- },
- /** @public */
- blur: function blur() {
- this.$refs.input ? this.$refs.input.blur() : this.onBlur();
- },
- clearableCallback: function clearableCallback() {
- var _this = this;
- this.internalValue = null;
- this.$nextTick(function () {
- return _this.$refs.input.focus();
- });
- },
- genAppendSlot: function genAppendSlot() {
- var slot = [];
- if (this.$slots['append-outer']) {
- slot.push(this.$slots['append-outer']);
- } else if (this.appendOuterIcon) {
- slot.push(this.genIcon('appendOuter'));
- }
- return this.genSlot('append', 'outer', slot);
- },
- genPrependInnerSlot: function genPrependInnerSlot() {
- var slot = [];
- if (this.$slots['prepend-inner']) {
- slot.push(this.$slots['prepend-inner']);
- } else if (this.prependInnerIcon) {
- slot.push(this.genIcon('prependInner'));
- }
- return this.genSlot('prepend', 'inner', slot);
- },
- genIconSlot: function genIconSlot() {
- var slot = [];
- if (this.$slots['append']) {
- slot.push(this.$slots['append']);
- } else if (this.appendIcon) {
- slot.push(this.genIcon('append'));
- }
- return this.genSlot('append', 'inner', slot);
- },
- genInputSlot: function genInputSlot() {
- var input = _VInput__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genInputSlot.call(this);
- var prepend = this.genPrependInnerSlot();
- prepend && input.children.unshift(prepend);
- return input;
- },
- genClearIcon: function genClearIcon() {
- if (!this.clearable) return null;
- var icon = !this.isDirty ? false : 'clear';
- if (this.clearIconCb) Object(_util_console__WEBPACK_IMPORTED_MODULE_8__["deprecate"])(':clear-icon-cb', '@click:clear', this);
- return this.genSlot('append', 'inner', [this.genIcon(icon, !this.$listeners['click:clear'] && this.clearIconCb || this.clearableCallback, false)]);
- },
- genCounter: function genCounter() {
- if (this.counter === false || this.counter == null) return null;
- var max = this.counter === true ? this.$attrs.maxlength : this.counter;
- return this.$createElement(_VCounter__WEBPACK_IMPORTED_MODULE_2__["default"], {
- props: {
- dark: this.dark,
- light: this.light,
- max: max,
- value: this.counterValue
- }
- });
- },
- genDefaultSlot: function genDefaultSlot() {
- return [this.genTextFieldSlot(), this.genClearIcon(), this.genIconSlot(), this.genProgress()];
- },
- genLabel: function genLabel() {
- if (!this.showLabel) return null;
- var data = {
- props: {
- absolute: true,
- color: this.validationState,
- dark: this.dark,
- disabled: this.disabled,
- focused: !this.isSingle && (this.isFocused || !!this.validationState),
- left: this.labelPosition.left,
- light: this.light,
- right: this.labelPosition.right,
- value: this.labelValue
- }
- };
- if (this.$attrs.id) data.props.for = this.$attrs.id;
- return this.$createElement(_VLabel__WEBPACK_IMPORTED_MODULE_3__["default"], data, this.$slots.label || this.label);
- },
- genInput: function genInput() {
- var listeners = Object.assign({}, this.$listeners);
- delete listeners['change']; // Change should not be bound externally
- var data = {
- style: {},
- domProps: {
- value: this.maskText(this.lazyValue)
- },
- attrs: __assign({ 'aria-label': (!this.$attrs || !this.$attrs.id) && this.label }, this.$attrs, { autofocus: this.autofocus, disabled: this.disabled, readonly: this.readonly, type: this.type }),
- on: Object.assign(listeners, {
- blur: this.onBlur,
- input: this.onInput,
- focus: this.onFocus,
- keydown: this.onKeyDown
- }),
- ref: 'input'
- };
- if (this.placeholder) data.attrs.placeholder = this.placeholder;
- if (this.mask) data.attrs.maxlength = this.masked.length;
- if (this.browserAutocomplete) data.attrs.autocomplete = this.browserAutocomplete;
- return this.$createElement('input', data);
- },
- genMessages: function genMessages() {
- if (this.hideDetails) return null;
- return this.$createElement('div', {
- staticClass: 'v-text-field__details'
- }, [_VInput__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genMessages.call(this), this.genCounter()]);
- },
- genTextFieldSlot: function genTextFieldSlot() {
- return this.$createElement('div', {
- staticClass: 'v-text-field__slot'
- }, [this.genLabel(), this.prefix ? this.genAffix('prefix') : null, this.genInput(), this.suffix ? this.genAffix('suffix') : null]);
- },
- genAffix: function genAffix(type) {
- return this.$createElement('div', {
- 'class': "v-text-field__" + type,
- ref: type
- }, this[type]);
- },
- onBlur: function onBlur(e) {
- this.isFocused = false;
- // Reset internalChange state
- // to allow external change
- // to persist
- this.internalChange = false;
- this.$emit('blur', e);
- },
- onClick: function onClick() {
- if (this.isFocused || this.disabled) return;
- this.$refs.input.focus();
- },
- onFocus: function onFocus(e) {
- if (!this.$refs.input) return;
- if (document.activeElement !== this.$refs.input) {
- return this.$refs.input.focus();
- }
- if (!this.isFocused) {
- this.isFocused = true;
- this.$emit('focus', e);
- }
- },
- onInput: function onInput(e) {
- this.internalChange = true;
- this.mask && this.resetSelections(e.target);
- this.internalValue = e.target.value;
- this.badInput = e.target.validity && e.target.validity.badInput;
- },
- onKeyDown: function onKeyDown(e) {
- this.internalChange = true;
- if (e.keyCode === _util_helpers__WEBPACK_IMPORTED_MODULE_7__["keyCodes"].enter) this.$emit('change', this.internalValue);
- this.$emit('keydown', e);
- },
- onMouseDown: function onMouseDown(e) {
- // Prevent input from being blurred
- if (e.target !== this.$refs.input) {
- e.preventDefault();
- e.stopPropagation();
- }
- _VInput__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onMouseDown.call(this, e);
- },
- onMouseUp: function onMouseUp(e) {
- if (this.hasMouseDown) this.focus();
- _VInput__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onMouseUp.call(this, e);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VTextField/index.js":
- /*!********************************************!*\
- !*** ./src/components/VTextField/index.js ***!
- \********************************************/
- /*! exports provided: VTextField, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VTextField", function() { return wrapper; });
- /* harmony import */ var _VTextField__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VTextField */ "./src/components/VTextField/VTextField.js");
- /* harmony import */ var _VTextarea_VTextarea__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VTextarea/VTextarea */ "./src/components/VTextarea/VTextarea.js");
- /* harmony import */ var _util_rebuildFunctionalSlots__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/rebuildFunctionalSlots */ "./src/util/rebuildFunctionalSlots.ts");
- /* harmony import */ var _util_dedupeModelListeners__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/dedupeModelListeners */ "./src/util/dedupeModelListeners.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
-
-
-
-
-
- // TODO: remove this in v2.0
- /* @vue/component */
- var wrapper = {
- functional: true,
- $_wrapperFor: _VTextField__WEBPACK_IMPORTED_MODULE_0__["default"],
- props: {
- textarea: Boolean,
- multiLine: Boolean
- },
- render: function render(h, _a) {
- var props = _a.props,
- data = _a.data,
- slots = _a.slots,
- parent = _a.parent;
- Object(_util_dedupeModelListeners__WEBPACK_IMPORTED_MODULE_3__["default"])(data);
- var children = Object(_util_rebuildFunctionalSlots__WEBPACK_IMPORTED_MODULE_2__["default"])(slots(), h);
- if (props.textarea) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_4__["deprecate"])('<v-text-field textarea>', '<v-textarea outline>', wrapper, parent);
- }
- if (props.multiLine) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_4__["deprecate"])('<v-text-field multi-line>', '<v-textarea>', wrapper, parent);
- }
- if (props.textarea || props.multiLine) {
- data.attrs.outline = props.textarea;
- return h(_VTextarea_VTextarea__WEBPACK_IMPORTED_MODULE_1__["default"], data, children);
- } else {
- return h(_VTextField__WEBPACK_IMPORTED_MODULE_0__["default"], data, children);
- }
- }
- };
-
- /* harmony default export */ __webpack_exports__["default"] = (wrapper);
-
- /***/ }),
-
- /***/ "./src/components/VTextarea/VTextarea.js":
- /*!***********************************************!*\
- !*** ./src/components/VTextarea/VTextarea.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_textarea_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_textarea.styl */ "./src/stylus/components/_textarea.styl");
- /* harmony import */ var _stylus_components_textarea_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_textarea_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VTextField/VTextField */ "./src/components/VTextField/VTextField.js");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Extensions
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-textarea',
- extends: _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_1__["default"],
- props: {
- autoGrow: Boolean,
- noResize: Boolean,
- outline: Boolean,
- rowHeight: {
- type: [Number, String],
- default: 24,
- validator: function validator(v) {
- return !isNaN(parseFloat(v));
- }
- },
- rows: {
- type: [Number, String],
- default: 5,
- validator: function validator(v) {
- return !isNaN(parseInt(v, 10));
- }
- }
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-textarea': true, 'v-textarea--auto-grow': this.autoGrow, 'v-textarea--no-resize': this.noResizeHandle }, _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.classes.call(this, null));
- },
- dynamicHeight: function dynamicHeight() {
- return this.autoGrow ? this.inputHeight : 'auto';
- },
- isEnclosed: function isEnclosed() {
- return this.textarea || _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_1__["default"].options.computed.isEnclosed.call(this);
- },
- noResizeHandle: function noResizeHandle() {
- return this.noResize || this.autoGrow;
- }
- },
- watch: {
- lazyValue: function lazyValue() {
- !this.internalChange && this.autoGrow && this.$nextTick(this.calculateInputHeight);
- }
- },
- mounted: function mounted() {
- var _this = this;
- setTimeout(function () {
- _this.autoGrow && _this.calculateInputHeight();
- }, 0);
- // TODO: remove (2.0)
- if (this.autoGrow && this.noResize) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_2__["consoleInfo"])('"no-resize" is now implied when using "auto-grow", and can be removed', this);
- }
- },
- methods: {
- calculateInputHeight: function calculateInputHeight() {
- var input = this.$refs.input;
- if (input) {
- input.style.height = 0;
- var height = input.scrollHeight;
- var minHeight = parseInt(this.rows, 10) * parseFloat(this.rowHeight);
- // This has to be done ASAP, waiting for Vue
- // to update the DOM causes ugly layout jumping
- input.style.height = Math.max(minHeight, height) + 'px';
- }
- },
- genInput: function genInput() {
- var input = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genInput.call(this);
- input.tag = 'textarea';
- delete input.data.attrs.type;
- input.data.attrs.rows = this.rows;
- return input;
- },
- onInput: function onInput(e) {
- _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.onInput.call(this, e);
- this.autoGrow && this.calculateInputHeight();
- },
- onKeyDown: function onKeyDown(e) {
- // Prevents closing of a
- // dialog when pressing
- // enter
- if (this.isFocused && e.keyCode === 13) {
- e.stopPropagation();
- }
- this.internalChange = true;
- this.$emit('keydown', e);
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTextarea/index.js":
- /*!*******************************************!*\
- !*** ./src/components/VTextarea/index.js ***!
- \*******************************************/
- /*! exports provided: VTextarea, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VTextarea__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VTextarea */ "./src/components/VTextarea/VTextarea.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTextarea", function() { return _VTextarea__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VTextarea__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VTimePicker/VTimePicker.ts":
- /*!***************************************************!*\
- !*** ./src/components/VTimePicker/VTimePicker.ts ***!
- \***************************************************/
- /*! exports provided: selectingTimes, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectingTimes", function() { return selectingTimes; });
- /* harmony import */ var _VTimePickerTitle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VTimePickerTitle */ "./src/components/VTimePicker/VTimePickerTitle.ts");
- /* harmony import */ var _VTimePickerClock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VTimePickerClock */ "./src/components/VTimePicker/VTimePickerClock.ts");
- /* harmony import */ var _mixins_picker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/picker */ "./src/mixins/picker.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _VDatePicker_util_pad__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../VDatePicker/util/pad */ "./src/components/VDatePicker/util/pad.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- // Components
-
-
- // Mixins
-
- // Utils
-
-
-
- var rangeHours24 = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["createRange"])(24);
- var rangeHours12am = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["createRange"])(12);
- var rangeHours12pm = rangeHours12am.map(function (v) {
- return v + 12;
- });
- var range60 = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["createRange"])(60);
- var selectingTimes = { hour: 1, minute: 2, second: 3 };
- var selectingNames = { 1: 'hour', 2: 'minute', 3: 'second' };
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(_mixins_picker__WEBPACK_IMPORTED_MODULE_2__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-time-picker',
- props: {
- allowedHours: Function,
- allowedMinutes: Function,
- allowedSeconds: Function,
- disabled: Boolean,
- format: {
- type: String,
- default: 'ampm',
- validator: function validator(val) {
- return ['ampm', '24hr'].includes(val);
- }
- },
- min: String,
- max: String,
- readonly: Boolean,
- scrollable: Boolean,
- useSeconds: Boolean,
- value: null
- },
- data: function data() {
- return {
- inputHour: null,
- inputMinute: null,
- inputSecond: null,
- lazyInputHour: null,
- lazyInputMinute: null,
- lazyInputSecond: null,
- period: 'am',
- selecting: selectingTimes.hour
- };
- },
- computed: {
- selectingHour: {
- get: function get() {
- return this.selecting === selectingTimes.hour;
- },
- set: function set(v) {
- this.selecting = selectingTimes.hour;
- }
- },
- selectingMinute: {
- get: function get() {
- return this.selecting === selectingTimes.minute;
- },
- set: function set(v) {
- this.selecting = selectingTimes.minute;
- }
- },
- selectingSecond: {
- get: function get() {
- return this.selecting === selectingTimes.second;
- },
- set: function set(v) {
- this.selecting = selectingTimes.second;
- }
- },
- isAllowedHourCb: function isAllowedHourCb() {
- var _this = this;
- if (!this.min && !this.max) return this.allowedHours;
- var minHour = this.min ? Number(this.min.split(':')[0]) : 0;
- var maxHour = this.max ? Number(this.max.split(':')[0]) : 23;
- return function (val) {
- return val >= minHour * 1 && val <= maxHour * 1 && (!_this.allowedHours || _this.allowedHours(val));
- };
- },
- isAllowedMinuteCb: function isAllowedMinuteCb() {
- var _this = this;
- var isHourAllowed = !this.allowedHours || this.allowedHours(this.inputHour);
- if (!this.min && !this.max) {
- return isHourAllowed ? this.allowedMinutes : function () {
- return false;
- };
- }
- var _a = __read(this.min ? this.min.split(':').map(Number) : [0, 0], 2),
- minHour = _a[0],
- minMinute = _a[1];
- var _b = __read(this.max ? this.max.split(':').map(Number) : [23, 59], 2),
- maxHour = _b[0],
- maxMinute = _b[1];
- var minTime = minHour * 60 + minMinute * 1;
- var maxTime = maxHour * 60 + maxMinute * 1;
- return function (val) {
- var time = 60 * _this.inputHour + val;
- return time >= minTime && time <= maxTime && isHourAllowed && (!_this.allowedMinutes || _this.allowedMinutes(val));
- };
- },
- isAllowedSecondCb: function isAllowedSecondCb() {
- var _this = this;
- var isHourAllowed = !this.allowedHours || this.allowedHours(this.inputHour);
- var isMinuteAllowed = !this.allowedMinutes || this.allowedMinutes(this.inputMinute);
- if (!this.min && !this.max) {
- return isHourAllowed && isMinuteAllowed ? this.allowedSeconds : function () {
- return false;
- };
- }
- var _a = __read(this.min ? this.min.split(':').map(Number) : [0, 0, 0], 3),
- minHour = _a[0],
- minMinute = _a[1],
- minSecond = _a[2];
- var _b = __read(this.max ? this.max.split(':').map(Number) : [23, 59, 59], 3),
- maxHour = _b[0],
- maxMinute = _b[1],
- maxSecond = _b[2];
- var minTime = minHour * 3600 + minMinute * 60 + (minSecond || 0) * 1;
- var maxTime = maxHour * 3600 + maxMinute * 60 + (maxSecond || 0) * 1;
- return function (val) {
- var time = 3600 * _this.inputHour + 60 * _this.inputMinute + val;
- return time >= minTime && time <= maxTime && isHourAllowed && isMinuteAllowed && (!_this.allowedSeconds || _this.allowedSeconds(val));
- };
- },
- isAmPm: function isAmPm() {
- return this.format === 'ampm';
- }
- },
- watch: {
- value: 'setInputData'
- },
- mounted: function mounted() {
- this.setInputData(this.value);
- },
- methods: {
- genValue: function genValue() {
- if (this.inputHour != null && this.inputMinute != null && (!this.useSeconds || this.inputSecond != null)) {
- return Object(_VDatePicker_util_pad__WEBPACK_IMPORTED_MODULE_4__["default"])(this.inputHour) + ":" + Object(_VDatePicker_util_pad__WEBPACK_IMPORTED_MODULE_4__["default"])(this.inputMinute) + (this.useSeconds ? ":" + Object(_VDatePicker_util_pad__WEBPACK_IMPORTED_MODULE_4__["default"])(this.inputSecond) : '');
- }
- return null;
- },
- emitValue: function emitValue() {
- var value = this.genValue();
- if (value !== null) this.$emit('input', value);
- },
- setPeriod: function setPeriod(period) {
- this.period = period;
- if (this.inputHour != null) {
- var newHour = this.inputHour + (period === 'am' ? -12 : 12);
- this.inputHour = this.firstAllowed('hour', newHour);
- this.emitValue();
- }
- },
- setInputData: function setInputData(value) {
- if (value == null || value === '') {
- this.inputHour = null;
- this.inputMinute = null;
- this.inputSecond = null;
- } else if (value instanceof Date) {
- this.inputHour = value.getHours();
- this.inputMinute = value.getMinutes();
- this.inputSecond = value.getSeconds();
- } else {
- var _a = __read(value.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/) || new Array(6), 6),
- hour = _a[1],
- minute = _a[2],
- second = _a[4],
- period = _a[5];
- this.inputHour = period ? this.convert12to24(parseInt(hour, 10), period) : parseInt(hour, 10);
- this.inputMinute = parseInt(minute, 10);
- this.inputSecond = parseInt(second || 0, 10);
- }
- this.period = this.inputHour == null || this.inputHour < 12 ? 'am' : 'pm';
- },
- convert24to12: function convert24to12(hour) {
- return hour ? (hour - 1) % 12 + 1 : 12;
- },
- convert12to24: function convert12to24(hour, period) {
- return hour % 12 + (period === 'pm' ? 12 : 0);
- },
- onInput: function onInput(value) {
- if (this.selecting === selectingTimes.hour) {
- this.inputHour = this.isAmPm ? this.convert12to24(value, this.period) : value;
- } else if (this.selecting === selectingTimes.minute) {
- this.inputMinute = value;
- } else {
- this.inputSecond = value;
- }
- this.emitValue();
- },
- onChange: function onChange(value) {
- this.$emit("click:" + selectingNames[this.selecting], value);
- var emitChange = this.selecting === (this.useSeconds ? selectingTimes.second : selectingTimes.minute);
- if (this.selecting === selectingTimes.hour) {
- this.selecting = selectingTimes.minute;
- } else if (this.useSeconds && this.selecting === selectingTimes.minute) {
- this.selecting = selectingTimes.second;
- }
- if (this.inputHour === this.lazyInputHour && this.inputMinute === this.lazyInputMinute && (!this.useSeconds || this.inputSecond === this.lazyInputSecond)) return;
- var time = this.genValue();
- if (time === null) return;
- this.lazyInputHour = this.inputHour;
- this.lazyInputMinute = this.inputMinute;
- this.useSeconds && (this.lazyInputSecond = this.inputSecond);
- emitChange && this.$emit('change', time);
- },
- firstAllowed: function firstAllowed(type, value) {
- var allowedFn = type === 'hour' ? this.isAllowedHourCb : type === 'minute' ? this.isAllowedMinuteCb : this.isAllowedSecondCb;
- if (!allowedFn) return value;
- // TODO: clean up
- var range = type === 'minute' ? range60 : type === 'second' ? range60 : this.isAmPm ? value < 12 ? rangeHours12am : rangeHours12pm : rangeHours24;
- var first = range.find(function (v) {
- return allowedFn((v + value) % range.length + range[0]);
- });
- return ((first || 0) + value) % range.length + range[0];
- },
- genClock: function genClock() {
- return this.$createElement(_VTimePickerClock__WEBPACK_IMPORTED_MODULE_1__["default"], {
- props: {
- allowedValues: this.selecting === selectingTimes.hour ? this.isAllowedHourCb : this.selecting === selectingTimes.minute ? this.isAllowedMinuteCb : this.isAllowedSecondCb,
- color: this.color,
- dark: this.dark,
- disabled: this.disabled,
- double: this.selecting === selectingTimes.hour && !this.isAmPm,
- format: this.selecting === selectingTimes.hour ? this.isAmPm ? this.convert24to12 : function (val) {
- return val;
- } : function (val) {
- return Object(_VDatePicker_util_pad__WEBPACK_IMPORTED_MODULE_4__["default"])(val, 2);
- },
- light: this.light,
- max: this.selecting === selectingTimes.hour ? this.isAmPm && this.period === 'am' ? 11 : 23 : 59,
- min: this.selecting === selectingTimes.hour && this.isAmPm && this.period === 'pm' ? 12 : 0,
- readonly: this.readonly,
- scrollable: this.scrollable,
- size: Number(this.width) - (!this.fullWidth && this.landscape ? 80 : 20),
- step: this.selecting === selectingTimes.hour ? 1 : 5,
- value: this.selecting === selectingTimes.hour ? this.inputHour : this.selecting === selectingTimes.minute ? this.inputMinute : this.inputSecond
- },
- on: {
- input: this.onInput,
- change: this.onChange
- },
- ref: 'clock'
- });
- },
- genPickerBody: function genPickerBody() {
- return this.$createElement('div', {
- staticClass: 'v-time-picker-clock__container',
- key: this.selecting
- }, [this.genClock()]);
- },
- genPickerTitle: function genPickerTitle() {
- var _this = this;
- return this.$createElement(_VTimePickerTitle__WEBPACK_IMPORTED_MODULE_0__["default"], {
- props: {
- ampm: this.isAmPm,
- disabled: this.disabled,
- hour: this.inputHour,
- minute: this.inputMinute,
- second: this.inputSecond,
- period: this.period,
- readonly: this.readonly,
- useSeconds: this.useSeconds,
- selecting: this.selecting
- },
- on: {
- 'update:selecting': function updateSelecting(value) {
- return _this.selecting = value;
- },
- 'update:period': this.setPeriod
- },
- ref: 'title',
- slot: 'title'
- });
- }
- },
- render: function render() {
- return this.genPicker('v-picker--time');
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VTimePicker/VTimePickerClock.ts":
- /*!********************************************************!*\
- !*** ./src/components/VTimePicker/VTimePickerClock.ts ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_time_picker_clock_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_time-picker-clock.styl */ "./src/stylus/components/_time-picker-clock.styl");
- /* harmony import */ var _stylus_components_time_picker_clock_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_time_picker_clock_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
- // Mixins
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-time-picker-clock',
- props: {
- allowedValues: Function,
- disabled: Boolean,
- double: Boolean,
- format: {
- type: Function,
- default: function _default(val) {
- return val;
- }
- },
- max: {
- type: Number,
- required: true
- },
- min: {
- type: Number,
- required: true
- },
- scrollable: Boolean,
- readonly: Boolean,
- rotate: {
- type: Number,
- default: 0
- },
- step: {
- type: Number,
- default: 1
- },
- value: Number
- },
- data: function data() {
- return {
- inputValue: this.value,
- isDragging: false,
- valueOnMouseDown: null,
- valueOnMouseUp: null
- };
- },
- computed: {
- count: function count() {
- return this.max - this.min + 1;
- },
- degreesPerUnit: function degreesPerUnit() {
- return 360 / this.roundCount;
- },
- degrees: function degrees() {
- return this.degreesPerUnit * Math.PI / 180;
- },
- displayedValue: function displayedValue() {
- return this.value == null ? this.min : this.value;
- },
- innerRadiusScale: function innerRadiusScale() {
- return 0.62;
- },
- roundCount: function roundCount() {
- return this.double ? this.count / 2 : this.count;
- }
- },
- watch: {
- value: function value(_value) {
- this.inputValue = _value;
- }
- },
- methods: {
- wheel: function wheel(e) {
- e.preventDefault();
- var delta = Math.sign(-e.deltaY || 1);
- var value = this.displayedValue;
- do {
- value = value + delta;
- value = (value - this.min + this.count) % this.count + this.min;
- } while (!this.isAllowed(value) && value !== this.displayedValue);
- if (value !== this.displayedValue) {
- this.update(value);
- }
- },
- isInner: function isInner(value) {
- return this.double && value - this.min >= this.roundCount;
- },
- handScale: function handScale(value) {
- return this.isInner(value) ? this.innerRadiusScale : 1;
- },
- isAllowed: function isAllowed(value) {
- return !this.allowedValues || this.allowedValues(value);
- },
- genValues: function genValues() {
- var children = [];
- for (var value = this.min; value <= this.max; value = value + this.step) {
- var color = value === this.value && (this.color || 'accent');
- children.push(this.$createElement('span', this.setBackgroundColor(color, {
- staticClass: 'v-time-picker-clock__item',
- 'class': {
- 'v-time-picker-clock__item--active': value === this.displayedValue,
- 'v-time-picker-clock__item--disabled': this.disabled || !this.isAllowed(value)
- },
- style: this.getTransform(value),
- domProps: { innerHTML: "<span>" + this.format(value) + "</span>" }
- })));
- }
- return children;
- },
- genHand: function genHand() {
- var scale = "scaleY(" + this.handScale(this.displayedValue) + ")";
- var angle = this.rotate + this.degreesPerUnit * (this.displayedValue - this.min);
- var color = this.value != null && (this.color || 'accent');
- return this.$createElement('div', this.setBackgroundColor(color, {
- staticClass: 'v-time-picker-clock__hand',
- 'class': {
- 'v-time-picker-clock__hand--inner': this.isInner(this.value)
- },
- style: {
- transform: "rotate(" + angle + "deg) " + scale
- }
- }));
- },
- getTransform: function getTransform(i) {
- var _a = this.getPosition(i),
- x = _a.x,
- y = _a.y;
- return {
- left: 50 + x * 50 + "%",
- top: 50 + y * 50 + "%"
- };
- },
- getPosition: function getPosition(value) {
- var rotateRadians = this.rotate * Math.PI / 180;
- return {
- x: Math.sin((value - this.min) * this.degrees + rotateRadians) * this.handScale(value),
- y: -Math.cos((value - this.min) * this.degrees + rotateRadians) * this.handScale(value)
- };
- },
- onMouseDown: function onMouseDown(e) {
- e.preventDefault();
- this.valueOnMouseDown = null;
- this.valueOnMouseUp = null;
- this.isDragging = true;
- this.onDragMove(e);
- },
- onMouseUp: function onMouseUp() {
- this.isDragging = false;
- if (this.valueOnMouseUp !== null && this.isAllowed(this.valueOnMouseUp)) {
- this.$emit('change', this.valueOnMouseUp);
- }
- },
- onDragMove: function onDragMove(e) {
- e.preventDefault();
- if (!this.isDragging && e.type !== 'click') return;
- var _a = this.$refs.clock.getBoundingClientRect(),
- width = _a.width,
- top = _a.top,
- left = _a.left;
- var innerWidth = this.$refs.innerClock.getBoundingClientRect().width;
- var _b = 'touches' in e ? e.touches[0] : e,
- clientX = _b.clientX,
- clientY = _b.clientY;
- var center = { x: width / 2, y: -width / 2 };
- var coords = { x: clientX - left, y: top - clientY };
- var handAngle = Math.round(this.angle(center, coords) - this.rotate + 360) % 360;
- var insideClick = this.double && this.euclidean(center, coords) < (innerWidth + innerWidth * this.innerRadiusScale) / 4;
- var value = (Math.round(handAngle / this.degreesPerUnit) + (insideClick ? this.roundCount : 0)) % this.count + this.min;
- // Necessary to fix edge case when selecting left part of the value(s) at 12 o'clock
- var newValue;
- if (handAngle >= 360 - this.degreesPerUnit / 2) {
- newValue = insideClick ? this.max - this.roundCount + 1 : this.min;
- } else {
- newValue = value;
- }
- if (this.isAllowed(value)) {
- if (this.valueOnMouseDown === null) {
- this.valueOnMouseDown = newValue;
- }
- this.valueOnMouseUp = newValue;
- this.update(newValue);
- }
- },
- update: function update(value) {
- if (this.inputValue !== value) {
- this.inputValue = value;
- this.$emit('input', value);
- }
- },
- euclidean: function euclidean(p0, p1) {
- var dx = p1.x - p0.x;
- var dy = p1.y - p0.y;
- return Math.sqrt(dx * dx + dy * dy);
- },
- angle: function angle(center, p1) {
- var value = 2 * Math.atan2(p1.y - center.y - this.euclidean(center, p1), p1.x - center.x);
- return Math.abs(value * 180 / Math.PI);
- }
- },
- render: function render(h) {
- var _this = this;
- var data = {
- staticClass: 'v-time-picker-clock',
- class: __assign({ 'v-time-picker-clock--indeterminate': this.value == null }, this.themeClasses),
- on: this.readonly || this.disabled ? undefined : Object.assign({
- mousedown: this.onMouseDown,
- mouseup: this.onMouseUp,
- mouseleave: function mouseleave() {
- return _this.isDragging && _this.onMouseUp();
- },
- touchstart: this.onMouseDown,
- touchend: this.onMouseUp,
- mousemove: this.onDragMove,
- touchmove: this.onDragMove
- }, this.scrollable ? {
- wheel: this.wheel
- } : {}),
- ref: 'clock'
- };
- return h('div', data, [h('div', {
- staticClass: 'v-time-picker-clock__inner',
- ref: 'innerClock'
- }, [this.genHand(), this.genValues()])]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VTimePicker/VTimePickerTitle.ts":
- /*!********************************************************!*\
- !*** ./src/components/VTimePicker/VTimePickerTitle.ts ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_time_picker_title_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_time-picker-title.styl */ "./src/stylus/components/_time-picker-title.styl");
- /* harmony import */ var _stylus_components_time_picker_title_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_time_picker_title_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_picker_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/picker-button */ "./src/mixins/picker-button.ts");
- /* harmony import */ var _VDatePicker_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VDatePicker/util */ "./src/components/VDatePicker/util/index.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _VTimePicker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VTimePicker */ "./src/components/VTimePicker/VTimePicker.ts");
-
- // Mixins
-
- // Utils
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_mixins_picker_button__WEBPACK_IMPORTED_MODULE_1__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-time-picker-title',
- props: {
- ampm: Boolean,
- disabled: Boolean,
- hour: Number,
- minute: Number,
- second: Number,
- period: {
- type: String,
- validator: function validator(period) {
- return period === 'am' || period === 'pm';
- }
- },
- readonly: Boolean,
- useSeconds: Boolean,
- selecting: Number
- },
- methods: {
- genTime: function genTime() {
- var hour = this.hour;
- if (this.ampm) {
- hour = hour ? (hour - 1) % 12 + 1 : 12;
- }
- var displayedHour = this.hour == null ? '--' : this.ampm ? String(hour) : Object(_VDatePicker_util__WEBPACK_IMPORTED_MODULE_2__["pad"])(hour);
- var displayedMinute = this.minute == null ? '--' : Object(_VDatePicker_util__WEBPACK_IMPORTED_MODULE_2__["pad"])(this.minute);
- var titleContent = [this.genPickerButton('selecting', _VTimePicker__WEBPACK_IMPORTED_MODULE_4__["selectingTimes"].hour, displayedHour, this.disabled), this.$createElement('span', ':'), this.genPickerButton('selecting', _VTimePicker__WEBPACK_IMPORTED_MODULE_4__["selectingTimes"].minute, displayedMinute, this.disabled)];
- if (this.useSeconds) {
- var displayedSecond = this.second == null ? '--' : Object(_VDatePicker_util__WEBPACK_IMPORTED_MODULE_2__["pad"])(this.second);
- titleContent.push(this.$createElement('span', ':'));
- titleContent.push(this.genPickerButton('selecting', _VTimePicker__WEBPACK_IMPORTED_MODULE_4__["selectingTimes"].second, displayedSecond, this.disabled));
- }
- return this.$createElement('div', {
- 'class': 'v-time-picker-title__time'
- }, titleContent);
- },
- genAmPm: function genAmPm() {
- return this.$createElement('div', {
- staticClass: 'v-time-picker-title__ampm'
- }, [this.genPickerButton('period', 'am', 'am', this.disabled || this.readonly), this.genPickerButton('period', 'pm', 'pm', this.disabled || this.readonly)]);
- }
- },
- render: function render(h) {
- var children = [this.genTime()];
- this.ampm && children.push(this.genAmPm());
- return h('div', {
- staticClass: 'v-time-picker-title'
- }, children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VTimePicker/index.ts":
- /*!*********************************************!*\
- !*** ./src/components/VTimePicker/index.ts ***!
- \*********************************************/
- /*! exports provided: VTimePicker, VTimePickerClock, VTimePickerTitle, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VTimePicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VTimePicker */ "./src/components/VTimePicker/VTimePicker.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTimePicker", function() { return _VTimePicker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VTimePickerClock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VTimePickerClock */ "./src/components/VTimePicker/VTimePickerClock.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTimePickerClock", function() { return _VTimePickerClock__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _VTimePickerTitle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VTimePickerTitle */ "./src/components/VTimePicker/VTimePickerTitle.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTimePickerTitle", function() { return _VTimePickerTitle__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VTimePicker: _VTimePicker__WEBPACK_IMPORTED_MODULE_0__["default"],
- VTimePickerClock: _VTimePickerClock__WEBPACK_IMPORTED_MODULE_1__["default"],
- VTimePickerTitle: _VTimePickerTitle__WEBPACK_IMPORTED_MODULE_2__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTimeline/VTimeline.ts":
- /*!***********************************************!*\
- !*** ./src/components/VTimeline/VTimeline.ts ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_timeline_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_timeline.styl */ "./src/stylus/components/_timeline.styl");
- /* harmony import */ var _stylus_components_timeline_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_timeline_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
-
- // Mixins
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-timeline',
- props: {
- alignTop: Boolean,
- dense: Boolean
- },
- computed: {
- classes: function classes() {
- return __assign({ 'v-timeline--align-top': this.alignTop, 'v-timeline--dense': this.dense }, this.themeClasses);
- }
- },
- render: function render(h) {
- return h('div', {
- staticClass: 'v-timeline',
- 'class': this.classes
- }, this.$slots.default);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VTimeline/VTimelineItem.ts":
- /*!***************************************************!*\
- !*** ./src/components/VTimeline/VTimelineItem.ts ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Types
-
- // Components
-
- // Mixins
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_0__["default"])(_mixins_colorable__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-timeline-item',
- props: {
- color: {
- type: String,
- default: 'primary'
- },
- fillDot: Boolean,
- hideDot: Boolean,
- icon: String,
- iconColor: String,
- large: Boolean,
- left: Boolean,
- right: Boolean,
- small: Boolean
- },
- computed: {
- hasIcon: function hasIcon() {
- return !!this.icon || !!this.$slots.icon;
- }
- },
- methods: {
- genBody: function genBody() {
- return this.$createElement('div', {
- staticClass: 'v-timeline-item__body'
- }, this.$slots.default);
- },
- genIcon: function genIcon() {
- if (this.$slots.icon) {
- return this.$slots.icon;
- }
- return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], {
- props: {
- color: this.iconColor,
- dark: !this.theme.isDark,
- small: this.small
- }
- }, this.icon);
- },
- genInnerDot: function genInnerDot() {
- var data = this.setBackgroundColor(this.color);
- return this.$createElement('div', __assign({ staticClass: 'v-timeline-item__inner-dot' }, data), [this.hasIcon && this.genIcon()]);
- },
- genDot: function genDot() {
- return this.$createElement('div', {
- staticClass: 'v-timeline-item__dot',
- class: {
- 'v-timeline-item__dot--small': this.small,
- 'v-timeline-item__dot--large': this.large
- }
- }, [this.genInnerDot()]);
- },
- genOpposite: function genOpposite() {
- return this.$createElement('div', {
- staticClass: 'v-timeline-item__opposite'
- }, this.$slots.opposite);
- }
- },
- render: function render(h) {
- var children = [this.genBody()];
- if (!this.hideDot) children.unshift(this.genDot());
- if (this.$slots.opposite) children.push(this.genOpposite());
- return h('div', {
- staticClass: 'v-timeline-item',
- class: __assign({ 'v-timeline-item--fill-dot': this.fillDot, 'v-timeline-item--left': this.left, 'v-timeline-item--right': this.right }, this.themeClasses)
- }, children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VTimeline/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VTimeline/index.ts ***!
- \*******************************************/
- /*! exports provided: VTimeline, VTimelineItem, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VTimeline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VTimeline */ "./src/components/VTimeline/VTimeline.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTimeline", function() { return _VTimeline__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VTimelineItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VTimelineItem */ "./src/components/VTimeline/VTimelineItem.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTimelineItem", function() { return _VTimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VTimeline: _VTimeline__WEBPACK_IMPORTED_MODULE_0__["default"],
- VTimelineItem: _VTimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VToolbar/VToolbar.ts":
- /*!*********************************************!*\
- !*** ./src/components/VToolbar/VToolbar.ts ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_toolbar_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_toolbar.styl */ "./src/stylus/components/_toolbar.styl");
- /* harmony import */ var _stylus_components_toolbar_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_toolbar_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/applicationable */ "./src/mixins/applicationable.ts");
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/ssr-bootable */ "./src/mixins/ssr-bootable.ts");
- /* harmony import */ var _directives_scroll__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../directives/scroll */ "./src/directives/scroll.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Styles
-
- // Mixins
-
-
-
-
- // Directives
-
-
- // Types
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_mixins_applicationable__WEBPACK_IMPORTED_MODULE_1__["default"])('top', ['clippedLeft', 'clippedRight', 'computedHeight', 'invertedScroll', 'manualScroll']), _mixins_colorable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_ssr_bootable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_themeable__WEBPACK_IMPORTED_MODULE_3__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-toolbar',
- directives: { Scroll: _directives_scroll__WEBPACK_IMPORTED_MODULE_5__["default"] },
- props: {
- card: Boolean,
- clippedLeft: Boolean,
- clippedRight: Boolean,
- dense: Boolean,
- extended: Boolean,
- extensionHeight: {
- type: [Number, String],
- validator: function validator(v) {
- return !isNaN(parseInt(v));
- }
- },
- flat: Boolean,
- floating: Boolean,
- height: {
- type: [Number, String],
- validator: function validator(v) {
- return !isNaN(parseInt(v));
- }
- },
- invertedScroll: Boolean,
- manualScroll: Boolean,
- prominent: Boolean,
- scrollOffScreen: Boolean,
- /* @deprecated */
- scrollToolbarOffScreen: Boolean,
- scrollTarget: String,
- scrollThreshold: {
- type: Number,
- default: 300
- },
- tabs: Boolean
- },
- data: function data() {
- return {
- activeTimeout: null,
- currentScroll: 0,
- heights: {
- mobileLandscape: 48,
- mobile: 56,
- desktop: 64,
- dense: 48
- },
- isActive: true,
- isExtended: false,
- isScrollingUp: false,
- previousScroll: 0,
- savedScroll: 0,
- target: null
- };
- },
- computed: {
- canScroll: function canScroll() {
- // TODO: remove
- if (this.scrollToolbarOffScreen) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_6__["deprecate"])('scrollToolbarOffScreen', 'scrollOffScreen', this);
- return true;
- }
- return this.scrollOffScreen || this.invertedScroll;
- },
- computedContentHeight: function computedContentHeight() {
- if (this.height) return parseInt(this.height);
- if (this.dense) return this.heights.dense;
- if (this.prominent || this.$vuetify.breakpoint.mdAndUp) return this.heights.desktop;
- if (this.$vuetify.breakpoint.smAndDown && this.$vuetify.breakpoint.width > this.$vuetify.breakpoint.height) return this.heights.mobileLandscape;
- return this.heights.mobile;
- },
- computedExtensionHeight: function computedExtensionHeight() {
- if (this.tabs) return 48;
- if (this.extensionHeight) return parseInt(this.extensionHeight);
- return this.computedContentHeight;
- },
- computedHeight: function computedHeight() {
- if (!this.isExtended) return this.computedContentHeight;
- return this.computedContentHeight + this.computedExtensionHeight;
- },
- computedMarginTop: function computedMarginTop() {
- if (!this.app) return 0;
- return this.$vuetify.application.bar;
- },
- classes: function classes() {
- return __assign({ 'v-toolbar': true, 'elevation-0': this.flat || !this.isActive && !this.tabs && this.canScroll, 'v-toolbar--absolute': this.absolute, 'v-toolbar--card': this.card, 'v-toolbar--clipped': this.clippedLeft || this.clippedRight, 'v-toolbar--dense': this.dense, 'v-toolbar--extended': this.isExtended, 'v-toolbar--fixed': !this.absolute && (this.app || this.fixed), 'v-toolbar--floating': this.floating, 'v-toolbar--prominent': this.prominent }, this.themeClasses);
- },
- computedPaddingLeft: function computedPaddingLeft() {
- if (!this.app || this.clippedLeft) return 0;
- return this.$vuetify.application.left;
- },
- computedPaddingRight: function computedPaddingRight() {
- if (!this.app || this.clippedRight) return 0;
- return this.$vuetify.application.right;
- },
- computedTransform: function computedTransform() {
- return !this.isActive ? this.canScroll ? -this.computedContentHeight : -this.computedHeight : 0;
- },
- currentThreshold: function currentThreshold() {
- return Math.abs(this.currentScroll - this.savedScroll);
- },
- styles: function styles() {
- return {
- marginTop: this.computedMarginTop + "px",
- paddingRight: this.computedPaddingRight + "px",
- paddingLeft: this.computedPaddingLeft + "px",
- transform: "translateY(" + this.computedTransform + "px)"
- };
- }
- },
- watch: {
- currentThreshold: function currentThreshold(val) {
- if (this.invertedScroll) {
- this.isActive = this.currentScroll > this.scrollThreshold;
- return;
- }
- if (val < this.scrollThreshold || !this.isBooted) return;
- this.isActive = this.isScrollingUp;
- this.savedScroll = this.currentScroll;
- },
- isActive: function isActive() {
- this.savedScroll = 0;
- },
- invertedScroll: function invertedScroll(val) {
- this.isActive = !val;
- },
- manualScroll: function manualScroll(val) {
- this.isActive = !val;
- },
- isScrollingUp: function isScrollingUp() {
- this.savedScroll = this.savedScroll || this.currentScroll;
- }
- },
- created: function created() {
- if (this.invertedScroll || this.manualScroll) this.isActive = false;
- },
- mounted: function mounted() {
- if (this.scrollTarget) {
- this.target = document.querySelector(this.scrollTarget);
- }
- },
- methods: {
- onScroll: function onScroll() {
- if (!this.canScroll || this.manualScroll || typeof window === 'undefined') return;
- this.currentScroll = this.target ? this.target.scrollTop : window.pageYOffset;
- this.isScrollingUp = this.currentScroll < this.previousScroll;
- this.previousScroll = this.currentScroll;
- },
- updateApplication: function updateApplication() {
- return this.invertedScroll || this.manualScroll ? 0 : this.computedHeight;
- }
- },
- render: function render(h) {
- this.isExtended = this.extended || !!this.$slots.extension;
- var children = [];
- var data = this.setBackgroundColor(this.color, {
- 'class': this.classes,
- style: this.styles,
- on: this.$listeners
- });
- data.directives = [{
- arg: this.scrollTarget,
- name: 'scroll',
- value: this.onScroll
- }];
- children.push(h('div', {
- staticClass: 'v-toolbar__content',
- style: { height: this.computedContentHeight + "px" },
- ref: 'content'
- }, this.$slots.default));
- if (this.isExtended) {
- children.push(h('div', {
- staticClass: 'v-toolbar__extension',
- style: { height: this.computedExtensionHeight + "px" }
- }, this.$slots.extension));
- }
- return h('nav', data, children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VToolbar/VToolbarSideIcon.ts":
- /*!*****************************************************!*\
- !*** ./src/components/VToolbar/VToolbarSideIcon.ts ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VBtn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../VBtn */ "./src/components/VBtn/index.ts");
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* 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__);
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_2___default.a.extend({
- name: 'v-toolbar-side-icon',
- functional: true,
- render: function render(h, _a) {
- var slots = _a.slots,
- listeners = _a.listeners,
- props = _a.props,
- data = _a.data;
- var classes = data.staticClass ? data.staticClass + " v-toolbar__side-icon" : 'v-toolbar__side-icon';
- var d = Object.assign(data, {
- staticClass: classes,
- props: Object.assign(props, {
- icon: true
- }),
- on: listeners
- });
- var defaultSlot = slots().default;
- return h(_VBtn__WEBPACK_IMPORTED_MODULE_0__["default"], d, defaultSlot || [h(_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], '$vuetify.icons.menu')]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VToolbar/index.ts":
- /*!******************************************!*\
- !*** ./src/components/VToolbar/index.ts ***!
- \******************************************/
- /*! exports provided: VToolbar, VToolbarSideIcon, VToolbarTitle, VToolbarItems, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VToolbarTitle", function() { return VToolbarTitle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VToolbarItems", function() { return VToolbarItems; });
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _VToolbar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VToolbar */ "./src/components/VToolbar/VToolbar.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VToolbar", function() { return _VToolbar__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _VToolbarSideIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VToolbarSideIcon */ "./src/components/VToolbar/VToolbarSideIcon.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VToolbarSideIcon", function() { return _VToolbarSideIcon__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
-
-
-
- var VToolbarTitle = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-toolbar__title');
- var VToolbarItems = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleFunctional"])('v-toolbar__items');
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VToolbar: _VToolbar__WEBPACK_IMPORTED_MODULE_1__["default"],
- VToolbarItems: VToolbarItems,
- VToolbarTitle: VToolbarTitle,
- VToolbarSideIcon: _VToolbarSideIcon__WEBPACK_IMPORTED_MODULE_2__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTooltip/VTooltip.js":
- /*!*********************************************!*\
- !*** ./src/components/VTooltip/VTooltip.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_tooltips_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_tooltips.styl */ "./src/stylus/components/_tooltips.styl");
- /* harmony import */ var _stylus_components_tooltips_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_tooltips_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _mixins_colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _mixins_delayable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/delayable */ "./src/mixins/delayable.ts");
- /* harmony import */ var _mixins_dependent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/dependent */ "./src/mixins/dependent.ts");
- /* harmony import */ var _mixins_detachable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../mixins/detachable */ "./src/mixins/detachable.js");
- /* harmony import */ var _mixins_menuable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mixins/menuable */ "./src/mixins/menuable.js");
- /* harmony import */ var _mixins_toggleable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../mixins/toggleable */ "./src/mixins/toggleable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
-
- // Mixins
-
-
-
-
-
-
- // Helpers
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'v-tooltip',
- mixins: [_mixins_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _mixins_delayable__WEBPACK_IMPORTED_MODULE_2__["default"], _mixins_dependent__WEBPACK_IMPORTED_MODULE_3__["default"], _mixins_detachable__WEBPACK_IMPORTED_MODULE_4__["default"], _mixins_menuable__WEBPACK_IMPORTED_MODULE_5__["default"], _mixins_toggleable__WEBPACK_IMPORTED_MODULE_6__["default"]],
- props: {
- closeDelay: {
- type: [Number, String],
- default: 200
- },
- debounce: {
- type: [Number, String],
- default: 0
- },
- disabled: Boolean,
- fixed: {
- type: Boolean,
- default: true
- },
- openDelay: {
- type: [Number, String],
- default: 200
- },
- tag: {
- type: String,
- default: 'span'
- },
- transition: String,
- zIndex: {
- default: null
- }
- },
- data: function data() {
- return {
- calculatedMinWidth: 0,
- closeDependents: false
- };
- },
- computed: {
- calculatedLeft: function calculatedLeft() {
- var _a = this.dimensions,
- activator = _a.activator,
- content = _a.content;
- var unknown = !this.bottom && !this.left && !this.top && !this.right;
- var activatorLeft = this.isAttached ? activator.offsetLeft : activator.left;
- var left = 0;
- if (this.top || this.bottom || unknown) {
- left = activatorLeft + activator.width / 2 - content.width / 2;
- } else if (this.left || this.right) {
- left = activatorLeft + (this.right ? activator.width : -content.width) + (this.right ? 10 : -10);
- }
- if (this.nudgeLeft) left -= parseInt(this.nudgeLeft);
- if (this.nudgeRight) left += parseInt(this.nudgeRight);
- return this.calcXOverflow(left, this.dimensions.content.width) + "px";
- },
- calculatedTop: function calculatedTop() {
- var _a = this.dimensions,
- activator = _a.activator,
- content = _a.content;
- var activatorTop = this.isAttached ? activator.offsetTop : activator.top;
- var top = 0;
- if (this.top || this.bottom) {
- top = activatorTop + (this.bottom ? activator.height : -content.height) + (this.bottom ? 10 : -10);
- } else if (this.left || this.right) {
- top = activatorTop + activator.height / 2 - content.height / 2;
- }
- if (this.nudgeTop) top -= parseInt(this.nudgeTop);
- if (this.nudgeBottom) top += parseInt(this.nudgeBottom);
- return this.calcYOverflow(top + this.pageYOffset) + "px";
- },
- classes: function classes() {
- return {
- 'v-tooltip--top': this.top,
- 'v-tooltip--right': this.right,
- 'v-tooltip--bottom': this.bottom,
- 'v-tooltip--left': this.left
- };
- },
- computedTransition: function computedTransition() {
- if (this.transition) return this.transition;
- if (this.top) return 'slide-y-reverse-transition';
- if (this.right) return 'slide-x-transition';
- if (this.bottom) return 'slide-y-transition';
- if (this.left) return 'slide-x-reverse-transition';
- return '';
- },
- offsetY: function offsetY() {
- return this.top || this.bottom;
- },
- offsetX: function offsetX() {
- return this.left || this.right;
- },
- styles: function styles() {
- return {
- left: this.calculatedLeft,
- maxWidth: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["convertToUnit"])(this.maxWidth),
- minWidth: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["convertToUnit"])(this.minWidth),
- opacity: this.isActive ? 0.9 : 0,
- top: this.calculatedTop,
- zIndex: this.zIndex || this.activeZIndex
- };
- }
- },
- beforeMount: function beforeMount() {
- var _this = this;
- this.$nextTick(function () {
- _this.value && _this.callActivate();
- });
- },
- mounted: function mounted() {
- if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["getSlotType"])(this, 'activator', true) === 'v-slot') {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_8__["consoleError"])("v-tooltip's activator slot must be bound, try '<template #activator=\"data\"><v-btn v-on=\"data.on>'", this);
- }
- },
- methods: {
- activate: function activate() {
- // Update coordinates and dimensions of menu
- // and its activator
- this.updateDimensions();
- // Start the transition
- requestAnimationFrame(this.startTransition);
- },
- genActivator: function genActivator() {
- var _this = this;
- var listeners = this.disabled ? {} : {
- mouseenter: function mouseenter(e) {
- _this.getActivator(e);
- _this.runDelay('open');
- },
- mouseleave: function mouseleave(e) {
- _this.getActivator(e);
- _this.runDelay('close');
- }
- };
- if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_7__["getSlotType"])(this, 'activator') === 'scoped') {
- var activator = this.$scopedSlots.activator({ on: listeners });
- this.activatorNode = activator;
- return activator;
- }
- return this.$createElement('span', {
- on: listeners,
- ref: 'activator'
- }, this.$slots.activator);
- }
- },
- render: function render(h) {
- var _a;
- var tooltip = h('div', this.setBackgroundColor(this.color, {
- staticClass: 'v-tooltip__content',
- 'class': (_a = {}, _a[this.contentClass] = true, _a['menuable__content__active'] = this.isActive, _a['v-tooltip__content--fixed'] = this.activatorFixed, _a),
- style: this.styles,
- attrs: this.getScopeIdAttrs(),
- directives: [{
- name: 'show',
- value: this.isContentActive
- }],
- ref: 'content'
- }), this.showLazyContent(this.$slots.default));
- return h(this.tag, {
- staticClass: 'v-tooltip',
- 'class': this.classes
- }, [h('transition', {
- props: {
- name: this.computedTransition
- }
- }, [tooltip]), this.genActivator()]);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTooltip/index.js":
- /*!******************************************!*\
- !*** ./src/components/VTooltip/index.js ***!
- \******************************************/
- /*! exports provided: VTooltip, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VTooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VTooltip */ "./src/components/VTooltip/VTooltip.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTooltip", function() { return _VTooltip__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (_VTooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
-
- /***/ }),
-
- /***/ "./src/components/VTreeview/VTreeview.ts":
- /*!***********************************************!*\
- !*** ./src/components/VTreeview/VTreeview.ts ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_treeview_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_treeview.styl */ "./src/stylus/components/_treeview.styl");
- /* harmony import */ var _stylus_components_treeview_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_treeview_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VTreeviewNode */ "./src/components/VTreeview/VTreeviewNode.ts");
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
- /* harmony import */ var _util_filterTreeItems__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util/filterTreeItems */ "./src/components/VTreeview/util/filterTreeItems.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
- var __values = undefined && undefined.__values || function (o) {
- var m = typeof Symbol === "function" && o[Symbol.iterator],
- i = 0;
- if (m) return m.call(o);
- return {
- next: function next() {
- if (o && i >= o.length) o = void 0;
- return { value: o && o[i++], done: !o };
- }
- };
- };
- // Styles
-
- // Components
-
- // Mixins
-
-
- // Utils
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_3__["provide"])('treeview'), _mixins_themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
- /* @vue/component */
- ).extend({
- name: 'v-treeview',
- provide: function provide() {
- return { treeview: this };
- },
- props: __assign({ active: {
- type: Array,
- default: function _default() {
- return [];
- }
- }, items: {
- type: Array,
- default: function _default() {
- return [];
- }
- }, hoverable: Boolean, multipleActive: Boolean, open: {
- type: Array,
- default: function _default() {
- return [];
- }
- }, openAll: Boolean, returnObject: {
- type: Boolean,
- default: false // TODO: Should be true in next major
- }, value: {
- type: Array,
- default: function _default() {
- return [];
- }
- }, search: String, filter: Function }, _VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__["VTreeviewNodeProps"]),
- data: function data() {
- return {
- nodes: {},
- selectedCache: new Set(),
- activeCache: new Set(),
- openCache: new Set()
- };
- },
- computed: {
- excludedItems: function excludedItems() {
- var excluded = new Set();
- if (!this.search) return excluded;
- for (var i = 0; i < this.items.length; i++) {
- Object(_util_filterTreeItems__WEBPACK_IMPORTED_MODULE_7__["filterTreeItems"])(this.filter || _util_filterTreeItems__WEBPACK_IMPORTED_MODULE_7__["filterTreeItem"], this.items[i], this.search, this.itemKey, this.itemText, this.itemChildren, excluded);
- }
- return excluded;
- }
- },
- watch: {
- items: {
- handler: function handler() {
- var _this = this;
- var oldKeys = Object.keys(this.nodes).map(function (k) {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(_this.nodes[k].item, _this.itemKey);
- });
- var newKeys = this.getKeys(this.items);
- var diff = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["arrayDiff"])(newKeys, oldKeys);
- // We only want to do stuff if items have changed
- if (!diff.length && newKeys.length < oldKeys.length) return;
- // If nodes are removed we need to clear them from this.nodes
- diff.forEach(function (k) {
- return delete _this.nodes[k];
- });
- var oldSelectedCache = __spread(this.selectedCache);
- this.selectedCache = new Set();
- this.activeCache = new Set();
- this.openCache = new Set();
- this.buildTree(this.items);
- // Only emit selected if selection has changed
- // as a result of items changing. This fixes a
- // potential double emit when selecting a node
- // with dynamic children
- if (!Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["deepEqual"])(oldSelectedCache, __spread(this.selectedCache))) this.emitSelected();
- },
- deep: true
- },
- active: function active(value) {
- this.handleNodeCacheWatcher(value, this.activeCache, this.updateActive, this.emitActive);
- },
- value: function value(_value) {
- this.handleNodeCacheWatcher(_value, this.selectedCache, this.updateSelected, this.emitSelected);
- },
- open: function open(value) {
- this.handleNodeCacheWatcher(value, this.openCache, this.updateOpen, this.emitOpen);
- }
- },
- created: function created() {
- var _this = this;
- this.buildTree(this.items);
- this.value.forEach(function (key) {
- return _this.updateSelected(key, true);
- });
- this.emitSelected();
- this.active.forEach(function (key) {
- return _this.updateActive(key, true);
- });
- this.emitActive();
- },
- mounted: function mounted() {
- var _this = this;
- // Save the developer from themselves
- if (this.$slots.prepend || this.$slots.append) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_6__["consoleWarn"])('The prepend and append slots require a slot-scope attribute', this);
- }
- if (this.openAll) {
- this.updateAll(true);
- } else {
- this.open.forEach(function (key) {
- return _this.updateOpen(key, true);
- });
- this.emitOpen();
- }
- },
- methods: {
- /** @public */
- updateAll: function updateAll(value) {
- var _this = this;
- Object.keys(this.nodes).forEach(function (key) {
- return _this.updateOpen(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(_this.nodes[key].item, _this.itemKey), value);
- });
- this.emitOpen();
- },
- getKeys: function getKeys(items, keys) {
- if (keys === void 0) {
- keys = [];
- }
- for (var i = 0; i < items.length; i++) {
- var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(items[i], this.itemKey);
- keys.push(key);
- var children = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(items[i], this.itemChildren);
- if (children) {
- keys.push.apply(keys, __spread(this.getKeys(children)));
- }
- }
- return keys;
- },
- buildTree: function buildTree(items, parent) {
- var _this = this;
- if (parent === void 0) {
- parent = null;
- }
- for (var i = 0; i < items.length; i++) {
- var item = items[i];
- var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(item, this.itemKey);
- var children = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(item, this.itemChildren, []);
- var oldNode = this.nodes.hasOwnProperty(key) ? this.nodes[key] : {
- isSelected: false, isIndeterminate: false, isActive: false, isOpen: false, vnode: null
- };
- var node = {
- vnode: oldNode.vnode,
- parent: parent,
- children: children.map(function (c) {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(c, _this.itemKey);
- }),
- item: item
- };
- this.buildTree(children, key);
- // This fixed bug with dynamic children resetting selected parent state
- if (!this.nodes.hasOwnProperty(key) && parent !== null && this.nodes.hasOwnProperty(parent)) {
- node.isSelected = this.nodes[parent].isSelected;
- node.isIndeterminate = this.nodes[parent].isIndeterminate;
- } else {
- node.isSelected = oldNode.isSelected;
- node.isIndeterminate = oldNode.isIndeterminate;
- }
- node.isActive = oldNode.isActive;
- node.isOpen = oldNode.isOpen;
- this.nodes[key] = !children.length ? node : this.calculateState(node, this.nodes);
- // Don't forget to rebuild cache
- if (this.nodes[key].isSelected) this.selectedCache.add(key);
- if (this.nodes[key].isActive) this.activeCache.add(key);
- if (this.nodes[key].isOpen) this.openCache.add(key);
- this.updateVnodeState(key);
- }
- },
- calculateState: function calculateState(node, state) {
- var counts = node.children.reduce(function (counts, child) {
- counts[0] += +Boolean(state[child].isSelected);
- counts[1] += +Boolean(state[child].isIndeterminate);
- return counts;
- }, [0, 0]);
- node.isSelected = !!node.children.length && counts[0] === node.children.length;
- node.isIndeterminate = !node.isSelected && (counts[0] > 0 || counts[1] > 0);
- return node;
- },
- emitOpen: function emitOpen() {
- this.emitNodeCache('update:open', this.openCache);
- },
- emitSelected: function emitSelected() {
- this.emitNodeCache('input', this.selectedCache);
- },
- emitActive: function emitActive() {
- this.emitNodeCache('update:active', this.activeCache);
- },
- emitNodeCache: function emitNodeCache(event, cache) {
- var _this = this;
- this.$emit(event, this.returnObject ? __spread(cache).map(function (key) {
- return _this.nodes[key].item;
- }) : __spread(cache));
- },
- handleNodeCacheWatcher: function handleNodeCacheWatcher(value, cache, updateFn, emitFn) {
- var _this = this;
- value = this.returnObject ? value.map(function (v) {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(v, _this.itemKey);
- }) : value;
- var old = __spread(cache);
- if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["deepEqual"])(old, value)) return;
- old.forEach(function (key) {
- return updateFn(key, false);
- });
- value.forEach(function (key) {
- return updateFn(key, true);
- });
- emitFn();
- },
- getDescendants: function getDescendants(key, descendants) {
- if (descendants === void 0) {
- descendants = [];
- }
- var children = this.nodes[key].children;
- descendants.push.apply(descendants, __spread(children));
- for (var i = 0; i < children.length; i++) {
- descendants = this.getDescendants(children[i], descendants);
- }
- return descendants;
- },
- getParents: function getParents(key) {
- var parent = this.nodes[key].parent;
- var parents = [];
- while (parent !== null) {
- parents.push(parent);
- parent = this.nodes[parent].parent;
- }
- return parents;
- },
- register: function register(node) {
- var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(node.item, this.itemKey);
- this.nodes[key].vnode = node;
- this.updateVnodeState(key);
- },
- unregister: function unregister(node) {
- var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(node.item, this.itemKey);
- if (this.nodes[key]) this.nodes[key].vnode = null;
- },
- updateActive: function updateActive(key, isActive) {
- var _this = this;
- if (!this.nodes.hasOwnProperty(key)) return;
- if (!this.multipleActive) {
- this.activeCache.forEach(function (active) {
- _this.nodes[active].isActive = false;
- _this.updateVnodeState(active);
- _this.activeCache.delete(active);
- });
- }
- var node = this.nodes[key];
- if (!node) return;
- if (isActive) this.activeCache.add(key);else this.activeCache.delete(key);
- node.isActive = isActive;
- this.updateVnodeState(key);
- },
- updateSelected: function updateSelected(key, isSelected) {
- var _this = this;
- var e_1, _a;
- if (!this.nodes.hasOwnProperty(key)) return;
- var changed = new Map();
- var descendants = __spread([key], this.getDescendants(key));
- descendants.forEach(function (descendant) {
- _this.nodes[descendant].isSelected = isSelected;
- _this.nodes[descendant].isIndeterminate = false;
- changed.set(descendant, isSelected);
- });
- var parents = this.getParents(key);
- parents.forEach(function (parent) {
- _this.nodes[parent] = _this.calculateState(_this.nodes[parent], _this.nodes);
- changed.set(parent, _this.nodes[parent].isSelected);
- });
- var all = __spread([key], descendants, parents);
- all.forEach(this.updateVnodeState);
- try {
- for (var _b = __values(changed.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {
- var _d = __read(_c.value, 2),
- key_1 = _d[0],
- value = _d[1];
- value === true ? this.selectedCache.add(key_1) : this.selectedCache.delete(key_1);
- }
- } catch (e_1_1) {
- e_1 = { error: e_1_1 };
- } finally {
- try {
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
- } finally {
- if (e_1) throw e_1.error;
- }
- }
- },
- updateOpen: function updateOpen(key, isOpen) {
- var _this = this;
- if (!this.nodes.hasOwnProperty(key)) return;
- var node = this.nodes[key];
- var children = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_4__["getObjectValueByPath"])(node.item, this.itemChildren);
- if (children && !children.length && node.vnode && !node.vnode.hasLoaded) {
- node.vnode.checkChildren().then(function () {
- return _this.updateOpen(key, isOpen);
- });
- } else if (children && children.length) {
- node.isOpen = isOpen;
- node.isOpen ? this.openCache.add(key) : this.openCache.delete(key);
- this.updateVnodeState(key);
- }
- },
- updateVnodeState: function updateVnodeState(key) {
- var node = this.nodes[key];
- if (node && node.vnode) {
- node.vnode.isSelected = node.isSelected;
- node.vnode.isIndeterminate = node.isIndeterminate;
- node.vnode.isActive = node.isActive;
- node.vnode.isOpen = node.isOpen;
- }
- },
- isExcluded: function isExcluded(key) {
- return !!this.search && this.excludedItems.has(key);
- }
- },
- render: function render(h) {
- var children = this.items.length ? this.items.map(_VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__["default"].options.methods.genChild.bind(this))
- /* istanbul ignore next */
- : this.$slots.default; // TODO: remove type annotation with TS 3.2
- return h('div', {
- staticClass: 'v-treeview',
- class: __assign({ 'v-treeview--hoverable': this.hoverable }, this.themeClasses)
- }, children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VTreeview/VTreeviewNode.ts":
- /*!***************************************************!*\
- !*** ./src/components/VTreeview/VTreeviewNode.ts ***!
- \***************************************************/
- /*! exports provided: VTreeviewNodeProps, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VTreeviewNodeProps", function() { return VTreeviewNodeProps; });
- /* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../transitions */ "./src/components/transitions/index.js");
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _VTreeviewNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VTreeviewNode */ "./src/components/VTreeview/VTreeviewNode.ts");
- /* harmony import */ var _mixins_registrable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/registrable */ "./src/mixins/registrable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- // Components
-
-
-
- // Mixins
-
- // Utils
-
-
- var VTreeviewNodeProps = {
- activatable: Boolean,
- activeClass: {
- type: String,
- default: 'v-treeview-node--active'
- },
- selectable: Boolean,
- selectedColor: {
- type: String,
- default: 'accent'
- },
- indeterminateIcon: {
- type: String,
- default: '$vuetify.icons.checkboxIndeterminate'
- },
- onIcon: {
- type: String,
- default: '$vuetify.icons.checkboxOn'
- },
- offIcon: {
- type: String,
- default: '$vuetify.icons.checkboxOff'
- },
- expandIcon: {
- type: String,
- default: '$vuetify.icons.subgroup'
- },
- loadingIcon: {
- type: String,
- default: '$vuetify.icons.loading'
- },
- itemKey: {
- type: String,
- default: 'id'
- },
- itemText: {
- type: String,
- default: 'name'
- },
- itemChildren: {
- type: String,
- default: 'children'
- },
- loadChildren: Function,
- openOnClick: Boolean,
- transition: Boolean
- };
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_mixins_registrable__WEBPACK_IMPORTED_MODULE_3__["inject"])('treeview')
- /* @vue/component */
- ).extend({
- name: 'v-treeview-node',
- inject: {
- treeview: {
- default: null
- }
- },
- props: __assign({ item: {
- type: Object,
- default: function _default() {
- return null;
- }
- } }, VTreeviewNodeProps),
- data: function data() {
- return {
- isOpen: false,
- isSelected: false,
- isIndeterminate: false,
- isActive: false,
- isLoading: false,
- hasLoaded: false
- };
- },
- computed: {
- key: function key() {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["getObjectValueByPath"])(this.item, this.itemKey);
- },
- children: function children() {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["getObjectValueByPath"])(this.item, this.itemChildren);
- },
- text: function text() {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["getObjectValueByPath"])(this.item, this.itemText);
- },
- scopedProps: function scopedProps() {
- return {
- item: this.item,
- leaf: !this.children,
- selected: this.isSelected,
- indeterminate: this.isIndeterminate,
- active: this.isActive,
- open: this.isOpen
- };
- },
- computedIcon: function computedIcon() {
- if (this.isIndeterminate) return this.indeterminateIcon;else if (this.isSelected) return this.onIcon;else return this.offIcon;
- },
- hasChildren: function hasChildren() {
- return !!this.children && (!!this.children.length || !!this.loadChildren);
- }
- },
- created: function created() {
- this.treeview.register(this);
- },
- beforeDestroy: function beforeDestroy() {
- this.treeview.unregister(this);
- },
- methods: {
- checkChildren: function checkChildren() {
- var _this = this;
- return new Promise(function (resolve) {
- // TODO: Potential issue with always trying
- // to load children if response is empty?
- if (!_this.children || _this.children.length || !_this.loadChildren || _this.hasLoaded) return resolve();
- _this.isLoading = true;
- resolve(_this.loadChildren(_this.item));
- }).then(function () {
- _this.isLoading = false;
- _this.hasLoaded = true;
- });
- },
- open: function open() {
- this.isOpen = !this.isOpen;
- this.treeview.updateOpen(this.key, this.isOpen);
- this.treeview.emitOpen();
- },
- genLabel: function genLabel() {
- var children = [];
- if (this.$scopedSlots.label) children.push(this.$scopedSlots.label(this.scopedProps));else children.push(this.text);
- return this.$createElement('div', {
- slot: 'label',
- staticClass: 'v-treeview-node__label'
- }, children);
- },
- genContent: function genContent() {
- var children = [this.$scopedSlots.prepend && this.$scopedSlots.prepend(this.scopedProps), this.genLabel(), this.$scopedSlots.append && this.$scopedSlots.append(this.scopedProps)];
- return this.$createElement('div', {
- staticClass: 'v-treeview-node__content'
- }, children);
- },
- genToggle: function genToggle() {
- var _this = this;
- return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["VIcon"], {
- staticClass: 'v-treeview-node__toggle',
- class: {
- 'v-treeview-node__toggle--open': this.isOpen,
- 'v-treeview-node__toggle--loading': this.isLoading
- },
- slot: 'prepend',
- on: {
- click: function click(e) {
- e.stopPropagation();
- if (_this.isLoading) return;
- _this.checkChildren().then(function () {
- return _this.open();
- });
- }
- }
- }, [this.isLoading ? this.loadingIcon : this.expandIcon]);
- },
- genCheckbox: function genCheckbox() {
- var _this = this;
- return this.$createElement(_VIcon__WEBPACK_IMPORTED_MODULE_1__["VIcon"], {
- staticClass: 'v-treeview-node__checkbox',
- props: {
- color: this.isSelected ? this.selectedColor : undefined
- },
- on: {
- click: function click(e) {
- e.stopPropagation();
- if (_this.isLoading) return;
- _this.checkChildren().then(function () {
- // We nextTick here so that items watch in VTreeview has a chance to run first
- _this.$nextTick(function () {
- _this.isSelected = !_this.isSelected;
- _this.isIndeterminate = false;
- _this.treeview.updateSelected(_this.key, _this.isSelected);
- _this.treeview.emitSelected();
- });
- });
- }
- }
- }, [this.computedIcon]);
- },
- genNode: function genNode() {
- var _this = this;
- var _a;
- var children = [this.genContent()];
- if (this.selectable) children.unshift(this.genCheckbox());
- if (this.hasChildren) children.unshift(this.genToggle());
- return this.$createElement('div', {
- staticClass: 'v-treeview-node__root',
- class: (_a = {}, _a[this.activeClass] = this.isActive, _a),
- on: {
- click: function click() {
- if (_this.openOnClick && _this.children) {
- _this.open();
- } else if (_this.activatable) {
- _this.isActive = !_this.isActive;
- _this.treeview.updateActive(_this.key, _this.isActive);
- _this.treeview.emitActive();
- }
- }
- }
- }, children);
- },
- genChild: function genChild(item) {
- return this.$createElement(_VTreeviewNode__WEBPACK_IMPORTED_MODULE_2__["default"], {
- key: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_5__["getObjectValueByPath"])(item, this.itemKey),
- props: {
- activatable: this.activatable,
- activeClass: this.activeClass,
- item: item,
- selectable: this.selectable,
- selectedColor: this.selectedColor,
- expandIcon: this.expandIcon,
- indeterminateIcon: this.indeterminateIcon,
- offIcon: this.offIcon,
- onIcon: this.onIcon,
- loadingIcon: this.loadingIcon,
- itemKey: this.itemKey,
- itemText: this.itemText,
- itemChildren: this.itemChildren,
- loadChildren: this.loadChildren,
- transition: this.transition,
- openOnClick: this.openOnClick
- },
- scopedSlots: this.$scopedSlots
- });
- },
- genChildrenWrapper: function genChildrenWrapper() {
- if (!this.isOpen || !this.children) return null;
- var children = [this.children.map(this.genChild)];
- return this.$createElement('div', {
- staticClass: 'v-treeview-node__children'
- }, children);
- },
- genTransition: function genTransition() {
- return this.$createElement(_transitions__WEBPACK_IMPORTED_MODULE_0__["VExpandTransition"], [this.genChildrenWrapper()]);
- }
- },
- render: function render(h) {
- var children = [this.genNode()];
- if (this.transition) children.push(this.genTransition());else children.push(this.genChildrenWrapper());
- return h('div', {
- staticClass: 'v-treeview-node',
- class: {
- 'v-treeview-node--leaf': !this.hasChildren,
- 'v-treeview-node--click': this.openOnClick,
- 'v-treeview-node--selected': this.isSelected,
- 'v-treeview-node--excluded': this.treeview.isExcluded(this.key)
- }
- }, children);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VTreeview/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VTreeview/index.ts ***!
- \*******************************************/
- /*! exports provided: VTreeview, VTreeviewNode, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VTreeview__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VTreeview */ "./src/components/VTreeview/VTreeview.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTreeview", function() { return _VTreeview__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VTreeviewNode */ "./src/components/VTreeview/VTreeviewNode.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTreeviewNode", function() { return _VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VTreeview: _VTreeview__WEBPACK_IMPORTED_MODULE_0__["default"],
- VTreeviewNode: _VTreeviewNode__WEBPACK_IMPORTED_MODULE_1__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/VTreeview/util/filterTreeItems.ts":
- /*!**********************************************************!*\
- !*** ./src/components/VTreeview/util/filterTreeItems.ts ***!
- \**********************************************************/
- /*! exports provided: filterTreeItem, filterTreeItems */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterTreeItem", function() { return filterTreeItem; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterTreeItems", function() { return filterTreeItems; });
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/helpers */ "./src/util/helpers.ts");
-
- function filterTreeItem(item, search, textKey) {
- var text = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["getObjectValueByPath"])(item, textKey);
- return text.toLocaleLowerCase().indexOf(search.toLocaleLowerCase()) > -1;
- }
- function filterTreeItems(filter, item, search, idKey, textKey, childrenKey, excluded) {
- if (filter(item, search, textKey)) {
- return true;
- }
- var children = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["getObjectValueByPath"])(item, childrenKey);
- if (children) {
- var match = false;
- for (var i = 0; i < children.length; i++) {
- if (filterTreeItems(filter, children[i], search, idKey, textKey, childrenKey, excluded)) {
- match = true;
- }
- }
- if (match) return true;
- }
- excluded.add(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["getObjectValueByPath"])(item, idKey));
- return false;
- }
-
- /***/ }),
-
- /***/ "./src/components/VWindow/VWindow.ts":
- /*!*******************************************!*\
- !*** ./src/components/VWindow/VWindow.ts ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_windows_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stylus/components/_windows.styl */ "./src/stylus/components/_windows.styl");
- /* harmony import */ var _stylus_components_windows_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_windows_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../VItemGroup/VItemGroup */ "./src/components/VItemGroup/VItemGroup.ts");
- /* harmony import */ var _directives_touch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../directives/touch */ "./src/directives/touch.ts");
- // Styles
-
- // Components
-
- // Directives
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_1__["BaseItemGroup"].extend({
- name: 'v-window',
- provide: function provide() {
- return {
- windowGroup: this
- };
- },
- directives: { Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_2__["default"] },
- props: {
- mandatory: {
- type: Boolean,
- default: true
- },
- reverse: {
- type: Boolean,
- default: undefined
- },
- touch: Object,
- touchless: Boolean,
- value: {
- required: false
- },
- vertical: Boolean
- },
- data: function data() {
- return {
- internalHeight: undefined,
- isActive: false,
- isBooted: false,
- isReverse: false
- };
- },
- computed: {
- computedTransition: function computedTransition() {
- if (!this.isBooted) return '';
- var axis = this.vertical ? 'y' : 'x';
- var direction = this.internalReverse === !this.$vuetify.rtl ? '-reverse' : '';
- return "v-window-" + axis + direction + "-transition";
- },
- internalIndex: function internalIndex() {
- var _this = this;
- return this.items.findIndex(function (item, i) {
- return _this.internalValue === _this.getValue(item, i);
- });
- },
- internalReverse: function internalReverse() {
- if (this.reverse !== undefined) return this.reverse;
- return this.isReverse;
- }
- },
- watch: {
- internalIndex: 'updateReverse'
- },
- mounted: function mounted() {
- var _this = this;
- this.$nextTick(function () {
- return _this.isBooted = true;
- });
- },
- methods: {
- genContainer: function genContainer() {
- return this.$createElement('div', {
- staticClass: 'v-window__container',
- class: {
- 'v-window__container--is-active': this.isActive
- },
- style: {
- height: this.internalHeight
- }
- }, this.$slots.default);
- },
- next: function next() {
- this.isReverse = false;
- var nextIndex = (this.internalIndex + 1) % this.items.length;
- var item = this.items[nextIndex];
- this.internalValue = this.getValue(item, nextIndex);
- },
- prev: function prev() {
- this.isReverse = true;
- var lastIndex = (this.internalIndex + this.items.length - 1) % this.items.length;
- var item = this.items[lastIndex];
- this.internalValue = this.getValue(item, lastIndex);
- },
- updateReverse: function updateReverse(val, oldVal) {
- this.isReverse = val < oldVal;
- }
- },
- render: function render(h) {
- var data = {
- staticClass: 'v-window',
- directives: []
- };
- if (!this.touchless) {
- var value = this.touch || {
- left: this.next,
- right: this.prev
- };
- data.directives.push({
- name: 'touch',
- value: value
- });
- }
- return h('div', data, [this.genContainer()]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VWindow/VWindowItem.ts":
- /*!***********************************************!*\
- !*** ./src/components/VWindow/VWindowItem.ts ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_bootable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mixins/bootable */ "./src/mixins/bootable.ts");
- /* harmony import */ var _mixins_groupable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mixins/groupable */ "./src/mixins/groupable.ts");
- /* harmony import */ var _directives_touch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../directives/touch */ "./src/directives/touch.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/mixins */ "./src/util/mixins.ts");
- // Mixins
-
-
- // Directives
-
- // Utilities
-
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_mixins_bootable__WEBPACK_IMPORTED_MODULE_0__["default"], Object(_mixins_groupable__WEBPACK_IMPORTED_MODULE_1__["factory"])('windowGroup', 'v-window-item', 'v-window')
- /* @vue/component */
- ).extend({
- name: 'v-window-item',
- directives: {
- Touch: _directives_touch__WEBPACK_IMPORTED_MODULE_2__["default"]
- },
- props: {
- reverseTransition: {
- type: [Boolean, String],
- default: undefined
- },
- transition: {
- type: [Boolean, String],
- default: undefined
- },
- value: {
- required: false
- }
- },
- data: function data() {
- return {
- done: null,
- isActive: false,
- wasCancelled: false
- };
- },
- computed: {
- computedTransition: function computedTransition() {
- if (!this.windowGroup.internalReverse) {
- return typeof this.transition !== 'undefined' ? this.transition || '' : this.windowGroup.computedTransition;
- }
- return typeof this.reverseTransition !== 'undefined' ? this.reverseTransition || '' : this.windowGroup.computedTransition;
- }
- },
- mounted: function mounted() {
- this.$el.addEventListener('transitionend', this.onTransitionEnd, false);
- },
- beforeDestroy: function beforeDestroy() {
- this.$el.removeEventListener('transitionend', this.onTransitionEnd, false);
- },
- methods: {
- genDefaultSlot: function genDefaultSlot() {
- return this.$slots.default;
- },
- onAfterEnter: function onAfterEnter() {
- var _this = this;
- if (this.wasCancelled) {
- this.wasCancelled = false;
- return;
- }
- requestAnimationFrame(function () {
- _this.windowGroup.internalHeight = undefined;
- _this.windowGroup.isActive = false;
- });
- },
- onBeforeEnter: function onBeforeEnter() {
- this.windowGroup.isActive = true;
- },
- onLeave: function onLeave(el) {
- this.windowGroup.internalHeight = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(el.clientHeight);
- },
- onEnterCancelled: function onEnterCancelled() {
- this.wasCancelled = true;
- },
- onEnter: function onEnter(el, done) {
- var _this = this;
- var isBooted = this.windowGroup.isBooted;
- if (isBooted) this.done = done;
- requestAnimationFrame(function () {
- if (!_this.computedTransition) return done();
- _this.windowGroup.internalHeight = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_3__["convertToUnit"])(el.clientHeight);
- // On initial render, there is no transition
- // Vue leaves a `enter` transition class
- // if done is called too fast
- !isBooted && setTimeout(done, 100);
- });
- },
- onTransitionEnd: function onTransitionEnd(e) {
- // This ensures we only call done
- // when the element transform
- // completes
- if (e.propertyName !== 'transform' || e.target !== this.$el || !this.done) return;
- this.done();
- this.done = null;
- }
- },
- render: function render(h) {
- var div = h('div', {
- staticClass: 'v-window-item',
- directives: [{
- name: 'show',
- value: this.isActive
- }],
- on: this.$listeners
- }, this.showLazyContent(this.genDefaultSlot()));
- return h('transition', {
- props: {
- name: this.computedTransition
- },
- on: {
- afterEnter: this.onAfterEnter,
- beforeEnter: this.onBeforeEnter,
- leave: this.onLeave,
- enter: this.onEnter,
- enterCancelled: this.onEnterCancelled
- }
- }, [div]);
- }
- }));
-
- /***/ }),
-
- /***/ "./src/components/VWindow/index.ts":
- /*!*****************************************!*\
- !*** ./src/components/VWindow/index.ts ***!
- \*****************************************/
- /*! exports provided: VWindow, VWindowItem, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VWindow */ "./src/components/VWindow/VWindow.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VWindow", function() { return _VWindow__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _VWindowItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VWindowItem */ "./src/components/VWindow/VWindowItem.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VWindowItem", function() { return _VWindowItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VWindow: _VWindow__WEBPACK_IMPORTED_MODULE_0__["default"],
- VWindowItem: _VWindowItem__WEBPACK_IMPORTED_MODULE_1__["default"]
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/Vuetify/goTo/easing-patterns.ts":
- /*!********************************************************!*\
- !*** ./src/components/Vuetify/goTo/easing-patterns.ts ***!
- \********************************************************/
- /*! exports provided: linear, easeInQuad, easeOutQuad, easeInOutQuad, easeInCubic, easeOutCubic, easeInOutCubic, easeInQuart, easeOutQuart, easeInOutQuart, easeInQuint, easeOutQuint, easeInOutQuint */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linear", function() { return linear; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeInQuad", function() { return easeInQuad; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeOutQuad", function() { return easeOutQuad; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeInOutQuad", function() { return easeInOutQuad; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeInCubic", function() { return easeInCubic; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeOutCubic", function() { return easeOutCubic; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeInOutCubic", function() { return easeInOutCubic; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeInQuart", function() { return easeInQuart; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeOutQuart", function() { return easeOutQuart; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeInOutQuart", function() { return easeInOutQuart; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeInQuint", function() { return easeInQuint; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeOutQuint", function() { return easeOutQuint; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeInOutQuint", function() { return easeInOutQuint; });
- // linear
- var linear = function linear(t) {
- return t;
- };
- // accelerating from zero velocity
- var easeInQuad = function easeInQuad(t) {
- return t * t;
- };
- // decelerating to zero velocity
- var easeOutQuad = function easeOutQuad(t) {
- return t * (2 - t);
- };
- // acceleration until halfway, then deceleration
- var easeInOutQuad = function easeInOutQuad(t) {
- return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
- };
- // accelerating from zero velocity
- var easeInCubic = function easeInCubic(t) {
- return t * t * t;
- };
- // decelerating to zero velocity
- var easeOutCubic = function easeOutCubic(t) {
- return --t * t * t + 1;
- };
- // acceleration until halfway, then deceleration
- var easeInOutCubic = function easeInOutCubic(t) {
- return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;
- };
- // accelerating from zero velocity
- var easeInQuart = function easeInQuart(t) {
- return t * t * t * t;
- };
- // decelerating to zero velocity
- var easeOutQuart = function easeOutQuart(t) {
- return 1 - --t * t * t * t;
- };
- // acceleration until halfway, then deceleration
- var easeInOutQuart = function easeInOutQuart(t) {
- return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;
- };
- // accelerating from zero velocity
- var easeInQuint = function easeInQuint(t) {
- return t * t * t * t * t;
- };
- // decelerating to zero velocity
- var easeOutQuint = function easeOutQuint(t) {
- return 1 + --t * t * t * t * t;
- };
- // acceleration until halfway, then deceleration
- var easeInOutQuint = function easeInOutQuint(t) {
- return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;
- };
-
- /***/ }),
-
- /***/ "./src/components/Vuetify/goTo/index.ts":
- /*!**********************************************!*\
- !*** ./src/components/Vuetify/goTo/index.ts ***!
- \**********************************************/
- /*! 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 goTo; });
- /* harmony import */ var _easing_patterns__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./easing-patterns */ "./src/components/Vuetify/goTo/easing-patterns.ts");
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util */ "./src/components/Vuetify/goTo/util.ts");
- /* 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__);
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
-
-
- function goTo(_target, _settings) {
- if (_settings === void 0) {
- _settings = {};
- }
- var settings = __assign({ container: document.scrollingElement || document.body || document.documentElement, duration: 500, offset: 0, easing: 'easeInOutCubic', appOffset: true }, _settings);
- var container = Object(_util__WEBPACK_IMPORTED_MODULE_1__["getContainer"])(settings.container);
- if (settings.appOffset) {
- var isDrawer = container.classList.contains('v-navigation-drawer');
- var isClipped = container.classList.contains('v-navigation-drawer--clipped');
- settings.offset += vue__WEBPACK_IMPORTED_MODULE_2___default.a.prototype.$vuetify.application.bar;
- if (!isDrawer || isClipped) settings.offset += vue__WEBPACK_IMPORTED_MODULE_2___default.a.prototype.$vuetify.application.top;
- }
- var startTime = performance.now();
- var targetLocation = Object(_util__WEBPACK_IMPORTED_MODULE_1__["getOffset"])(_target) - settings.offset;
- var startLocation = container.scrollTop;
- if (targetLocation === startLocation) return Promise.resolve(targetLocation);
- var ease = typeof settings.easing === 'function' ? settings.easing : _easing_patterns__WEBPACK_IMPORTED_MODULE_0__[settings.easing];
- if (!ease) throw new TypeError("Easing function \"" + settings.easing + "\" not found.");
- // tslint:disable-next-line:promise-must-complete
- return new Promise(function (resolve) {
- return requestAnimationFrame(function step(currentTime) {
- var timeElapsed = currentTime - startTime;
- var progress = Math.abs(settings.duration ? Math.min(timeElapsed / settings.duration, 1) : 1);
- container.scrollTop = Math.floor(startLocation + (targetLocation - startLocation) * ease(progress));
- if (progress === 1 || container.clientHeight + container.scrollTop === container.scrollHeight) {
- return resolve(targetLocation);
- }
- requestAnimationFrame(step);
- });
- });
- }
-
- /***/ }),
-
- /***/ "./src/components/Vuetify/goTo/util.ts":
- /*!*********************************************!*\
- !*** ./src/components/Vuetify/goTo/util.ts ***!
- \*********************************************/
- /*! exports provided: getOffset, getContainer */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOffset", function() { return getOffset; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContainer", function() { return getContainer; });
- // Return target's cumulative offset from the top
- function getOffset(target) {
- if (typeof target === 'number') {
- return target;
- }
- var el = $(target);
- if (!el) {
- throw typeof target === 'string' ? new Error("Target element \"" + target + "\" not found.") : new TypeError("Target must be a Number/Selector/HTMLElement/VueComponent, received " + type(target) + " instead.");
- }
- var totalOffset = 0;
- while (el) {
- totalOffset += el.offsetTop;
- el = el.offsetParent;
- }
- return totalOffset;
- }
- function getContainer(container) {
- var el = $(container);
- if (el) return el;
- throw typeof container === 'string' ? new Error("Container element \"" + container + "\" not found.") : new TypeError("Container must be a Selector/HTMLElement/VueComponent, received " + type(container) + " instead.");
- }
- function type(el) {
- return el == null ? el : el.constructor.name;
- }
- function $(el) {
- if (typeof el === 'string') {
- return document.querySelector(el);
- } else if (el && el._isVue) {
- return el.$el;
- } else if (el instanceof HTMLElement) {
- return el;
- } else {
- return null;
- }
- }
-
- /***/ }),
-
- /***/ "./src/components/Vuetify/index.ts":
- /*!*****************************************!*\
- !*** ./src/components/Vuetify/index.ts ***!
- \*****************************************/
- /*! exports provided: checkVueVersion, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkVueVersion", function() { return checkVueVersion; });
- /* 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 _mixins_application__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mixins/application */ "./src/components/Vuetify/mixins/application.ts");
- /* harmony import */ var _mixins_breakpoint__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mixins/breakpoint */ "./src/components/Vuetify/mixins/breakpoint.ts");
- /* harmony import */ var _mixins_theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./mixins/theme */ "./src/components/Vuetify/mixins/theme.ts");
- /* harmony import */ var _mixins_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mixins/icons */ "./src/components/Vuetify/mixins/icons.ts");
- /* harmony import */ var _mixins_options__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mixins/options */ "./src/components/Vuetify/mixins/options.ts");
- /* harmony import */ var _mixins_lang__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mixins/lang */ "./src/components/Vuetify/mixins/lang.ts");
- /* harmony import */ var _goTo__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./goTo */ "./src/components/Vuetify/goTo/index.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/console */ "./src/util/console.ts");
-
-
-
-
-
-
-
-
- // Utils
-
- var Vuetify = {
- install: function install(Vue, opts) {
- if (opts === void 0) {
- opts = {};
- }
- if (this.installed) return;
- this.installed = true;
- if (vue__WEBPACK_IMPORTED_MODULE_0___default.a !== Vue) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_8__["consoleError"])('Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you\'re seeing "$attrs is readonly", it\'s caused by this');
- }
- checkVueVersion(Vue);
- var lang = Object(_mixins_lang__WEBPACK_IMPORTED_MODULE_6__["default"])(opts.lang);
- Vue.prototype.$vuetify = new Vue({
- mixins: [Object(_mixins_breakpoint__WEBPACK_IMPORTED_MODULE_2__["default"])(opts.breakpoint)],
- data: {
- application: _mixins_application__WEBPACK_IMPORTED_MODULE_1__["default"],
- dark: false,
- icons: Object(_mixins_icons__WEBPACK_IMPORTED_MODULE_4__["default"])(opts.iconfont, opts.icons),
- lang: lang,
- options: Object(_mixins_options__WEBPACK_IMPORTED_MODULE_5__["default"])(opts.options),
- rtl: opts.rtl,
- theme: Object(_mixins_theme__WEBPACK_IMPORTED_MODULE_3__["default"])(opts.theme)
- },
- methods: {
- goTo: _goTo__WEBPACK_IMPORTED_MODULE_7__["default"],
- t: lang.t.bind(lang)
- }
- });
- if (opts.directives) {
- for (var name in opts.directives) {
- Vue.directive(name, opts.directives[name]);
- }
- }
- (function registerComponents(components) {
- if (components) {
- for (var key in components) {
- var component = components[key];
- if (component && !registerComponents(component.$_vuetify_subcomponents)) {
- Vue.component(key, component);
- }
- }
- return true;
- }
- return false;
- })(opts.components);
- },
- version: '1.5.12'
- };
- function checkVueVersion(Vue, requiredVue) {
- var vueDep = requiredVue || '^2.5.18';
- var required = vueDep.split('.', 3).map(function (v) {
- return v.replace(/\D/g, '');
- }).map(Number);
- var actual = Vue.version.split('.', 3).map(function (n) {
- return parseInt(n, 10);
- });
- // Simple semver caret range comparison
- var passes = actual[0] === required[0] && ( // major matches
- actual[1] > required[1] || // minor is greater
- actual[1] === required[1] && actual[2] >= required[2] // or minor is eq and patch is >=
- );
- if (!passes) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_8__["consoleWarn"])("Vuetify requires Vue version " + vueDep);
- }
- }
- /* harmony default export */ __webpack_exports__["default"] = (Vuetify);
-
- /***/ }),
-
- /***/ "./src/components/Vuetify/mixins/application.ts":
- /*!******************************************************!*\
- !*** ./src/components/Vuetify/mixins/application.ts ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- bar: 0,
- bottom: 0,
- footer: 0,
- insetFooter: 0,
- left: 0,
- right: 0,
- top: 0,
- components: {
- bar: {},
- bottom: {},
- footer: {},
- insetFooter: {},
- left: {},
- right: {},
- top: {}
- },
- bind: function bind(uid, target, value) {
- var _a;
- if (!this.components[target]) return;
- this.components[target] = (_a = {}, _a[uid] = value, _a);
- this.update(target);
- },
- unbind: function unbind(uid, target) {
- if (this.components[target][uid] == null) return;
- delete this.components[target][uid];
- this.update(target);
- },
- update: function update(target) {
- this[target] = Object.values(this.components[target]).reduce(function (acc, cur) {
- return acc + cur;
- }, 0);
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/Vuetify/mixins/breakpoint.ts":
- /*!*****************************************************!*\
- !*** ./src/components/Vuetify/mixins/breakpoint.ts ***!
- \*****************************************************/
- /*! 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 breakpoint; });
- /* 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__);
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
- var BREAKPOINTS_DEFAULTS = {
- thresholds: {
- xs: 600,
- sm: 960,
- md: 1280,
- lg: 1920
- },
- scrollbarWidth: 16
- };
- /**
- * Factory function for the breakpoint mixin.
- */
- function breakpoint(opts) {
- if (opts === void 0) {
- opts = {};
- }
- if (!opts) {
- opts = {};
- }
- return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- data: function data() {
- return __assign({ clientHeight: getClientHeight(), clientWidth: getClientWidth(), resizeTimeout: undefined }, BREAKPOINTS_DEFAULTS, opts);
- },
- computed: {
- breakpoint: function breakpoint() {
- var xs = this.clientWidth < this.thresholds.xs;
- var sm = this.clientWidth < this.thresholds.sm && !xs;
- var md = this.clientWidth < this.thresholds.md - this.scrollbarWidth && !(sm || xs);
- var lg = this.clientWidth < this.thresholds.lg - this.scrollbarWidth && !(md || sm || xs);
- var xl = this.clientWidth >= this.thresholds.lg - this.scrollbarWidth;
- var xsOnly = xs;
- var smOnly = sm;
- var smAndDown = (xs || sm) && !(md || lg || xl);
- var smAndUp = !xs && (sm || md || lg || xl);
- var mdOnly = md;
- var mdAndDown = (xs || sm || md) && !(lg || xl);
- var mdAndUp = !(xs || sm) && (md || lg || xl);
- var lgOnly = lg;
- var lgAndDown = (xs || sm || md || lg) && !xl;
- var lgAndUp = !(xs || sm || md) && (lg || xl);
- var xlOnly = xl;
- var name;
- switch (true) {
- case xs:
- name = 'xs';
- break;
- case sm:
- name = 'sm';
- break;
- case md:
- name = 'md';
- break;
- case lg:
- name = 'lg';
- break;
- default:
- name = 'xl';
- break;
- }
- return {
- // Definite breakpoint.
- xs: xs,
- sm: sm,
- md: md,
- lg: lg,
- xl: xl,
- // Useful e.g. to construct CSS class names dynamically.
- name: name,
- // Breakpoint ranges.
- xsOnly: xsOnly,
- smOnly: smOnly,
- smAndDown: smAndDown,
- smAndUp: smAndUp,
- mdOnly: mdOnly,
- mdAndDown: mdAndDown,
- mdAndUp: mdAndUp,
- lgOnly: lgOnly,
- lgAndDown: lgAndDown,
- lgAndUp: lgAndUp,
- xlOnly: xlOnly,
- // For custom breakpoint logic.
- width: this.clientWidth,
- height: this.clientHeight,
- thresholds: this.thresholds,
- scrollbarWidth: this.scrollbarWidth
- };
- }
- },
- created: function created() {
- if (typeof window === 'undefined') return;
- window.addEventListener('resize', this.onResize, { passive: true });
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window === 'undefined') return;
- window.removeEventListener('resize', this.onResize);
- },
- methods: {
- onResize: function onResize() {
- clearTimeout(this.resizeTimeout);
- // Added debounce to match what
- // v-resize used to do but was
- // removed due to a memory leak
- // https://github.com/vuetifyjs/vuetify/pull/2997
- this.resizeTimeout = window.setTimeout(this.setDimensions, 200);
- },
- setDimensions: function setDimensions() {
- this.clientHeight = getClientHeight();
- this.clientWidth = getClientWidth();
- }
- }
- });
- }
- // Cross-browser support as described in:
- // https://stackoverflow.com/questions/1248081
- function getClientWidth() {
- if (typeof document === 'undefined') return 0; // SSR
- return Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
- }
- function getClientHeight() {
- if (typeof document === 'undefined') return 0; // SSR
- return Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
- }
-
- /***/ }),
-
- /***/ "./src/components/Vuetify/mixins/icons.ts":
- /*!************************************************!*\
- !*** ./src/components/Vuetify/mixins/icons.ts ***!
- \************************************************/
- /*! exports provided: convertToComponentDeclarations, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertToComponentDeclarations", function() { return convertToComponentDeclarations; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return icons; });
- // Maps internal Vuetify icon names to actual Material Design icon names.
- var ICONS_MATERIAL = {
- 'complete': 'check',
- 'cancel': 'cancel',
- 'close': 'close',
- 'delete': 'cancel',
- 'clear': 'clear',
- 'success': 'check_circle',
- 'info': 'info',
- 'warning': 'priority_high',
- 'error': 'warning',
- 'prev': 'chevron_left',
- 'next': 'chevron_right',
- 'checkboxOn': 'check_box',
- 'checkboxOff': 'check_box_outline_blank',
- 'checkboxIndeterminate': 'indeterminate_check_box',
- 'delimiter': 'fiber_manual_record',
- 'sort': 'arrow_upward',
- 'expand': 'keyboard_arrow_down',
- 'menu': 'menu',
- 'subgroup': 'arrow_drop_down',
- 'dropdown': 'arrow_drop_down',
- 'radioOn': 'radio_button_checked',
- 'radioOff': 'radio_button_unchecked',
- 'edit': 'edit',
- 'ratingEmpty': 'star_border',
- 'ratingFull': 'star',
- 'ratingHalf': 'star_half',
- 'loading': 'cached'
- };
- // Maps internal Vuetify icon names to actual icons from materialdesignicons.com
- var ICONS_MDI = {
- 'complete': 'mdi-check',
- 'cancel': 'mdi-close-circle',
- 'close': 'mdi-close',
- 'delete': 'mdi-close-circle',
- 'clear': 'mdi-close',
- 'success': 'mdi-check-circle',
- 'info': 'mdi-information',
- 'warning': 'mdi-exclamation',
- 'error': 'mdi-alert',
- 'prev': 'mdi-chevron-left',
- 'next': 'mdi-chevron-right',
- 'checkboxOn': 'mdi-checkbox-marked',
- 'checkboxOff': 'mdi-checkbox-blank-outline',
- 'checkboxIndeterminate': 'mdi-minus-box',
- 'delimiter': 'mdi-circle',
- 'sort': 'mdi-arrow-up',
- 'expand': 'mdi-chevron-down',
- 'menu': 'mdi-menu',
- 'subgroup': 'mdi-menu-down',
- 'dropdown': 'mdi-menu-down',
- 'radioOn': 'mdi-radiobox-marked',
- 'radioOff': 'mdi-radiobox-blank',
- 'edit': 'mdi-pencil',
- 'ratingEmpty': 'mdi-star-outline',
- 'ratingFull': 'mdi-star',
- 'ratingHalf': 'mdi-star-half'
- };
- // Maps internal Vuetify icon names to actual Font-Awesome 4 icon names.
- var ICONS_FONTAWESOME4 = {
- 'complete': 'fa fa-check',
- 'cancel': 'fa fa-times-circle',
- 'close': 'fa fa-times',
- 'delete': 'fa fa-times-circle',
- 'clear': 'fa fa-times-circle',
- 'success': 'fa fa-check-circle',
- 'info': 'fa fa-info-circle',
- 'warning': 'fa fa-exclamation',
- 'error': 'fa fa-exclamation-triangle',
- 'prev': 'fa fa-chevron-left',
- 'next': 'fa fa-chevron-right',
- 'checkboxOn': 'fa fa-check-square',
- 'checkboxOff': 'fa fa-square-o',
- 'checkboxIndeterminate': 'fa fa-minus-square',
- 'delimiter': 'fa fa-circle',
- 'sort': 'fa fa-sort-up',
- 'expand': 'fa fa-chevron-down',
- 'menu': 'fa fa-bars',
- 'subgroup': 'fa fa-caret-down',
- 'dropdown': 'fa fa-caret-down',
- 'radioOn': 'fa fa-dot-circle',
- 'radioOff': 'fa fa-circle-o',
- 'edit': 'fa fa-pencil',
- 'ratingEmpty': 'fa fa-star-o',
- 'ratingFull': 'fa fa-star',
- 'ratingHalf': 'fa fa-star-half-o'
- };
- // Maps internal Vuetify icon names to actual Font-Awesome 5+ icon names.
- var ICONS_FONTAWESOME = {
- 'complete': 'fas fa-check',
- 'cancel': 'fas fa-times-circle',
- 'close': 'fas fa-times',
- 'delete': 'fas fa-times-circle',
- 'clear': 'fas fa-times-circle',
- 'success': 'fas fa-check-circle',
- 'info': 'fas fa-info-circle',
- 'warning': 'fas fa-exclamation',
- 'error': 'fas fa-exclamation-triangle',
- 'prev': 'fas fa-chevron-left',
- 'next': 'fas fa-chevron-right',
- 'checkboxOn': 'fas fa-check-square',
- 'checkboxOff': 'far fa-square',
- 'checkboxIndeterminate': 'fas fa-minus-square',
- 'delimiter': 'fas fa-circle',
- 'sort': 'fas fa-sort-up',
- 'expand': 'fas fa-chevron-down',
- 'menu': 'fas fa-bars',
- 'subgroup': 'fas fa-caret-down',
- 'dropdown': 'fas fa-caret-down',
- 'radioOn': 'far fa-dot-circle',
- 'radioOff': 'far fa-circle',
- 'edit': 'fas fa-edit',
- 'ratingEmpty': 'far fa-star',
- 'ratingFull': 'fas fa-star',
- 'ratingHalf': 'fas fa-star-half'
- };
- function convertToComponentDeclarations(component, iconSet) {
- var result = {};
- for (var key in iconSet) {
- result[key] = {
- component: component,
- props: {
- icon: iconSet[key].split(' fa-')
- }
- };
- }
- return result;
- }
- var iconSets = {
- md: ICONS_MATERIAL,
- mdi: ICONS_MDI,
- fa: ICONS_FONTAWESOME,
- fa4: ICONS_FONTAWESOME4,
- faSvg: convertToComponentDeclarations('font-awesome-icon', ICONS_FONTAWESOME)
- };
- function icons(iconfont, icons) {
- if (iconfont === void 0) {
- iconfont = 'md';
- }
- if (icons === void 0) {
- icons = {};
- }
- return Object.assign({}, iconSets[iconfont] || iconSets.md, icons);
- }
-
- /***/ }),
-
- /***/ "./src/components/Vuetify/mixins/lang.ts":
- /*!***********************************************!*\
- !*** ./src/components/Vuetify/mixins/lang.ts ***!
- \***********************************************/
- /*! 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 lang; });
- /* harmony import */ var _locale_en__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../locale/en */ "./src/locale/en.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util/console */ "./src/util/console.ts");
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
-
-
-
- var LANG_PREFIX = '$vuetify.';
- var fallback = Symbol('Lang fallback');
- function getTranslation(locale, key, usingFallback) {
- if (usingFallback === void 0) {
- usingFallback = false;
- }
- var shortKey = key.replace(LANG_PREFIX, '');
- var translation = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getObjectValueByPath"])(locale, shortKey, fallback);
- if (translation === fallback) {
- if (usingFallback) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_2__["consoleError"])("Translation key \"" + shortKey + "\" not found in fallback");
- translation = key;
- } else {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_2__["consoleWarn"])("Translation key \"" + shortKey + "\" not found, falling back to default");
- translation = getTranslation(_locale_en__WEBPACK_IMPORTED_MODULE_0__["default"], key, true);
- }
- }
- return translation;
- }
- function lang(config) {
- if (config === void 0) {
- config = {};
- }
- return {
- locales: Object.assign({ en: _locale_en__WEBPACK_IMPORTED_MODULE_0__["default"] }, config.locales),
- current: config.current || 'en',
- t: function t(key) {
- var params = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- params[_i - 1] = arguments[_i];
- }
- if (!key.startsWith(LANG_PREFIX)) return key;
- if (config.t) return config.t.apply(config, __spread([key], params));
- var translation = getTranslation(this.locales[this.current], key);
- return translation.replace(/\{(\d+)\}/g, function (match, index) {
- return String(params[+index]);
- });
- }
- };
- }
-
- /***/ }),
-
- /***/ "./src/components/Vuetify/mixins/options.ts":
- /*!**************************************************!*\
- !*** ./src/components/Vuetify/mixins/options.ts ***!
- \**************************************************/
- /*! 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 options; });
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var OPTIONS_DEFAULTS = {
- minifyTheme: null,
- themeCache: null,
- customProperties: false,
- cspNonce: null
- };
- function options(options) {
- if (options === void 0) {
- options = {};
- }
- return __assign({}, OPTIONS_DEFAULTS, options);
- }
-
- /***/ }),
-
- /***/ "./src/components/Vuetify/mixins/theme.ts":
- /*!************************************************!*\
- !*** ./src/components/Vuetify/mixins/theme.ts ***!
- \************************************************/
- /*! 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 theme; });
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- /* eslint-disable no-multi-spaces */
- var THEME_DEFAULTS = {
- primary: '#1976D2',
- secondary: '#424242',
- accent: '#82B1FF',
- error: '#FF5252',
- info: '#2196F3',
- success: '#4CAF50',
- warning: '#FB8C00' // orange.darken1
- };
- function theme(theme) {
- if (theme === void 0) {
- theme = {};
- }
- if (theme === false) return false;
- return __assign({}, THEME_DEFAULTS, theme);
- }
-
- /***/ }),
-
- /***/ "./src/components/index.ts":
- /*!*********************************!*\
- !*** ./src/components/index.ts ***!
- \*********************************/
- /*! exports provided: VApp, VAlert, VAutocomplete, VAvatar, VBadge, VBottomNav, VBottomSheet, VBreadcrumbs, VBreadcrumbsItem, VBreadcrumbsDivider, VBtn, VBtnToggle, VCalendar, VCalendarDaily, VCalendarWeekly, VCalendarMonthly, VCard, VCardMedia, VCardTitle, VCardActions, VCardText, VCarousel, VCarouselItem, VCheckbox, VChip, VCombobox, VCounter, VDataIterator, VDataTable, VEditDialog, VTableOverflow, VDatePicker, VDatePickerTitle, VDatePickerHeader, VDatePickerDateTable, VDatePickerMonthTable, VDatePickerYears, VDialog, VDivider, VExpansionPanel, VExpansionPanelContent, VFooter, VForm, VContainer, VContent, VFlex, VLayout, VSpacer, VHover, VIcon, VImg, VInput, VItem, VItemGroup, VJumbotron, VLabel, VList, VListGroup, VListTile, VListTileAction, VListTileAvatar, VListTileActionText, VListTileContent, VListTileTitle, VListTileSubTitle, VMenu, VMessages, VNavigationDrawer, VOverflowBtn, VPagination, VSheet, VParallax, VPicker, VProgressCircular, VProgressLinear, VRadioGroup, VRadio, VRangeSlider, VRating, VResponsive, VSelect, VSlider, VSnackbar, VSparkline, VSpeedDial, VStepper, VStepperContent, VStepperStep, VStepperHeader, VStepperItems, VSubheader, VSwitch, VSystemBar, VTabs, VTab, VTabItem, VTabsItems, VTabsSlider, VTextarea, VTextField, VTimeline, VTimelineItem, VTimePicker, VTimePickerClock, VTimePickerTitle, VToolbar, VToolbarSideIcon, VToolbarTitle, VToolbarItems, VTooltip, VTreeview, VTreeviewNode, VWindow, VWindowItem, VBottomSheetTransition, VCarouselTransition, VCarouselReverseTransition, VTabTransition, VTabReverseTransition, VMenuTransition, VFabTransition, VDialogTransition, VDialogBottomTransition, VFadeTransition, VScaleTransition, VScrollXTransition, VScrollXReverseTransition, VScrollYTransition, VScrollYReverseTransition, VSlideXTransition, VSlideXReverseTransition, VSlideYTransition, VSlideYReverseTransition, VExpandTransition, VExpandXTransition, VRowExpandTransition */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _VApp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VApp */ "./src/components/VApp/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VApp", function() { return _VApp__WEBPACK_IMPORTED_MODULE_0__["VApp"]; });
-
- /* harmony import */ var _VAlert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VAlert */ "./src/components/VAlert/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VAlert", function() { return _VAlert__WEBPACK_IMPORTED_MODULE_1__["VAlert"]; });
-
- /* harmony import */ var _VAutocomplete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VAutocomplete */ "./src/components/VAutocomplete/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VAutocomplete", function() { return _VAutocomplete__WEBPACK_IMPORTED_MODULE_2__["VAutocomplete"]; });
-
- /* harmony import */ var _VAvatar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VAvatar */ "./src/components/VAvatar/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VAvatar", function() { return _VAvatar__WEBPACK_IMPORTED_MODULE_3__["VAvatar"]; });
-
- /* harmony import */ var _VBadge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VBadge */ "./src/components/VBadge/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBadge", function() { return _VBadge__WEBPACK_IMPORTED_MODULE_4__["VBadge"]; });
-
- /* harmony import */ var _VBottomNav__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VBottomNav */ "./src/components/VBottomNav/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBottomNav", function() { return _VBottomNav__WEBPACK_IMPORTED_MODULE_5__["VBottomNav"]; });
-
- /* harmony import */ var _VBottomSheet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./VBottomSheet */ "./src/components/VBottomSheet/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBottomSheet", function() { return _VBottomSheet__WEBPACK_IMPORTED_MODULE_6__["VBottomSheet"]; });
-
- /* harmony import */ var _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./VBreadcrumbs */ "./src/components/VBreadcrumbs/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBreadcrumbs", function() { return _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_7__["VBreadcrumbs"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBreadcrumbsItem", function() { return _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_7__["VBreadcrumbsItem"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBreadcrumbsDivider", function() { return _VBreadcrumbs__WEBPACK_IMPORTED_MODULE_7__["VBreadcrumbsDivider"]; });
-
- /* harmony import */ var _VBtn__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./VBtn */ "./src/components/VBtn/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBtn", function() { return _VBtn__WEBPACK_IMPORTED_MODULE_8__["VBtn"]; });
-
- /* harmony import */ var _VBtnToggle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./VBtnToggle */ "./src/components/VBtnToggle/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBtnToggle", function() { return _VBtnToggle__WEBPACK_IMPORTED_MODULE_9__["VBtnToggle"]; });
-
- /* harmony import */ var _VCalendar__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./VCalendar */ "./src/components/VCalendar/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCalendar", function() { return _VCalendar__WEBPACK_IMPORTED_MODULE_10__["VCalendar"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCalendarDaily", function() { return _VCalendar__WEBPACK_IMPORTED_MODULE_10__["VCalendarDaily"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCalendarWeekly", function() { return _VCalendar__WEBPACK_IMPORTED_MODULE_10__["VCalendarWeekly"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCalendarMonthly", function() { return _VCalendar__WEBPACK_IMPORTED_MODULE_10__["VCalendarMonthly"]; });
-
- /* harmony import */ var _VCard__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./VCard */ "./src/components/VCard/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCard", function() { return _VCard__WEBPACK_IMPORTED_MODULE_11__["VCard"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCardMedia", function() { return _VCard__WEBPACK_IMPORTED_MODULE_11__["VCardMedia"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCardTitle", function() { return _VCard__WEBPACK_IMPORTED_MODULE_11__["VCardTitle"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCardActions", function() { return _VCard__WEBPACK_IMPORTED_MODULE_11__["VCardActions"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCardText", function() { return _VCard__WEBPACK_IMPORTED_MODULE_11__["VCardText"]; });
-
- /* harmony import */ var _VCarousel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./VCarousel */ "./src/components/VCarousel/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCarousel", function() { return _VCarousel__WEBPACK_IMPORTED_MODULE_12__["VCarousel"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCarouselItem", function() { return _VCarousel__WEBPACK_IMPORTED_MODULE_12__["VCarouselItem"]; });
-
- /* harmony import */ var _VCheckbox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./VCheckbox */ "./src/components/VCheckbox/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCheckbox", function() { return _VCheckbox__WEBPACK_IMPORTED_MODULE_13__["VCheckbox"]; });
-
- /* harmony import */ var _VChip__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./VChip */ "./src/components/VChip/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VChip", function() { return _VChip__WEBPACK_IMPORTED_MODULE_14__["VChip"]; });
-
- /* harmony import */ var _VCombobox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./VCombobox */ "./src/components/VCombobox/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCombobox", function() { return _VCombobox__WEBPACK_IMPORTED_MODULE_15__["VCombobox"]; });
-
- /* harmony import */ var _VCounter__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./VCounter */ "./src/components/VCounter/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCounter", function() { return _VCounter__WEBPACK_IMPORTED_MODULE_16__["VCounter"]; });
-
- /* harmony import */ var _VDataIterator__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./VDataIterator */ "./src/components/VDataIterator/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDataIterator", function() { return _VDataIterator__WEBPACK_IMPORTED_MODULE_17__["VDataIterator"]; });
-
- /* harmony import */ var _VDataTable__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./VDataTable */ "./src/components/VDataTable/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDataTable", function() { return _VDataTable__WEBPACK_IMPORTED_MODULE_18__["VDataTable"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VEditDialog", function() { return _VDataTable__WEBPACK_IMPORTED_MODULE_18__["VEditDialog"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTableOverflow", function() { return _VDataTable__WEBPACK_IMPORTED_MODULE_18__["VTableOverflow"]; });
-
- /* harmony import */ var _VDatePicker__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./VDatePicker */ "./src/components/VDatePicker/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePicker", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_19__["VDatePicker"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePickerTitle", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_19__["VDatePickerTitle"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePickerHeader", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_19__["VDatePickerHeader"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePickerDateTable", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_19__["VDatePickerDateTable"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePickerMonthTable", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_19__["VDatePickerMonthTable"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDatePickerYears", function() { return _VDatePicker__WEBPACK_IMPORTED_MODULE_19__["VDatePickerYears"]; });
-
- /* harmony import */ var _VDialog__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./VDialog */ "./src/components/VDialog/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDialog", function() { return _VDialog__WEBPACK_IMPORTED_MODULE_20__["VDialog"]; });
-
- /* harmony import */ var _VDivider__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./VDivider */ "./src/components/VDivider/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDivider", function() { return _VDivider__WEBPACK_IMPORTED_MODULE_21__["VDivider"]; });
-
- /* harmony import */ var _VExpansionPanel__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./VExpansionPanel */ "./src/components/VExpansionPanel/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VExpansionPanel", function() { return _VExpansionPanel__WEBPACK_IMPORTED_MODULE_22__["VExpansionPanel"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VExpansionPanelContent", function() { return _VExpansionPanel__WEBPACK_IMPORTED_MODULE_22__["VExpansionPanelContent"]; });
-
- /* harmony import */ var _VFooter__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./VFooter */ "./src/components/VFooter/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VFooter", function() { return _VFooter__WEBPACK_IMPORTED_MODULE_23__["VFooter"]; });
-
- /* harmony import */ var _VForm__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./VForm */ "./src/components/VForm/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VForm", function() { return _VForm__WEBPACK_IMPORTED_MODULE_24__["VForm"]; });
-
- /* harmony import */ var _VGrid__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./VGrid */ "./src/components/VGrid/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VContainer", function() { return _VGrid__WEBPACK_IMPORTED_MODULE_25__["VContainer"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VContent", function() { return _VGrid__WEBPACK_IMPORTED_MODULE_25__["VContent"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VFlex", function() { return _VGrid__WEBPACK_IMPORTED_MODULE_25__["VFlex"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VLayout", function() { return _VGrid__WEBPACK_IMPORTED_MODULE_25__["VLayout"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSpacer", function() { return _VGrid__WEBPACK_IMPORTED_MODULE_25__["VSpacer"]; });
-
- /* harmony import */ var _VHover__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./VHover */ "./src/components/VHover/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VHover", function() { return _VHover__WEBPACK_IMPORTED_MODULE_26__["VHover"]; });
-
- /* harmony import */ var _VIcon__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./VIcon */ "./src/components/VIcon/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VIcon", function() { return _VIcon__WEBPACK_IMPORTED_MODULE_27__["VIcon"]; });
-
- /* harmony import */ var _VImg__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./VImg */ "./src/components/VImg/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VImg", function() { return _VImg__WEBPACK_IMPORTED_MODULE_28__["VImg"]; });
-
- /* harmony import */ var _VInput__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./VInput */ "./src/components/VInput/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VInput", function() { return _VInput__WEBPACK_IMPORTED_MODULE_29__["VInput"]; });
-
- /* harmony import */ var _VItemGroup__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./VItemGroup */ "./src/components/VItemGroup/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VItem", function() { return _VItemGroup__WEBPACK_IMPORTED_MODULE_30__["VItem"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VItemGroup", function() { return _VItemGroup__WEBPACK_IMPORTED_MODULE_30__["VItemGroup"]; });
-
- /* harmony import */ var _VJumbotron__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./VJumbotron */ "./src/components/VJumbotron/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VJumbotron", function() { return _VJumbotron__WEBPACK_IMPORTED_MODULE_31__["VJumbotron"]; });
-
- /* harmony import */ var _VLabel__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./VLabel */ "./src/components/VLabel/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VLabel", function() { return _VLabel__WEBPACK_IMPORTED_MODULE_32__["VLabel"]; });
-
- /* harmony import */ var _VList__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./VList */ "./src/components/VList/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VList", function() { return _VList__WEBPACK_IMPORTED_MODULE_33__["VList"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListGroup", function() { return _VList__WEBPACK_IMPORTED_MODULE_33__["VListGroup"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListTile", function() { return _VList__WEBPACK_IMPORTED_MODULE_33__["VListTile"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListTileAction", function() { return _VList__WEBPACK_IMPORTED_MODULE_33__["VListTileAction"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListTileAvatar", function() { return _VList__WEBPACK_IMPORTED_MODULE_33__["VListTileAvatar"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListTileActionText", function() { return _VList__WEBPACK_IMPORTED_MODULE_33__["VListTileActionText"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListTileContent", function() { return _VList__WEBPACK_IMPORTED_MODULE_33__["VListTileContent"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListTileTitle", function() { return _VList__WEBPACK_IMPORTED_MODULE_33__["VListTileTitle"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VListTileSubTitle", function() { return _VList__WEBPACK_IMPORTED_MODULE_33__["VListTileSubTitle"]; });
-
- /* harmony import */ var _VMenu__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./VMenu */ "./src/components/VMenu/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VMenu", function() { return _VMenu__WEBPACK_IMPORTED_MODULE_34__["VMenu"]; });
-
- /* harmony import */ var _VMessages__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./VMessages */ "./src/components/VMessages/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VMessages", function() { return _VMessages__WEBPACK_IMPORTED_MODULE_35__["VMessages"]; });
-
- /* harmony import */ var _VNavigationDrawer__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./VNavigationDrawer */ "./src/components/VNavigationDrawer/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VNavigationDrawer", function() { return _VNavigationDrawer__WEBPACK_IMPORTED_MODULE_36__["VNavigationDrawer"]; });
-
- /* harmony import */ var _VOverflowBtn__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./VOverflowBtn */ "./src/components/VOverflowBtn/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VOverflowBtn", function() { return _VOverflowBtn__WEBPACK_IMPORTED_MODULE_37__["VOverflowBtn"]; });
-
- /* harmony import */ var _VPagination__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./VPagination */ "./src/components/VPagination/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VPagination", function() { return _VPagination__WEBPACK_IMPORTED_MODULE_38__["VPagination"]; });
-
- /* harmony import */ var _VSheet__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./VSheet */ "./src/components/VSheet/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSheet", function() { return _VSheet__WEBPACK_IMPORTED_MODULE_39__["VSheet"]; });
-
- /* harmony import */ var _VParallax__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./VParallax */ "./src/components/VParallax/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VParallax", function() { return _VParallax__WEBPACK_IMPORTED_MODULE_40__["VParallax"]; });
-
- /* harmony import */ var _VPicker__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./VPicker */ "./src/components/VPicker/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VPicker", function() { return _VPicker__WEBPACK_IMPORTED_MODULE_41__["VPicker"]; });
-
- /* harmony import */ var _VProgressCircular__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./VProgressCircular */ "./src/components/VProgressCircular/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VProgressCircular", function() { return _VProgressCircular__WEBPACK_IMPORTED_MODULE_42__["VProgressCircular"]; });
-
- /* harmony import */ var _VProgressLinear__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./VProgressLinear */ "./src/components/VProgressLinear/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VProgressLinear", function() { return _VProgressLinear__WEBPACK_IMPORTED_MODULE_43__["VProgressLinear"]; });
-
- /* harmony import */ var _VRadioGroup__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./VRadioGroup */ "./src/components/VRadioGroup/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VRadioGroup", function() { return _VRadioGroup__WEBPACK_IMPORTED_MODULE_44__["VRadioGroup"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VRadio", function() { return _VRadioGroup__WEBPACK_IMPORTED_MODULE_44__["VRadio"]; });
-
- /* harmony import */ var _VRangeSlider__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./VRangeSlider */ "./src/components/VRangeSlider/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VRangeSlider", function() { return _VRangeSlider__WEBPACK_IMPORTED_MODULE_45__["VRangeSlider"]; });
-
- /* harmony import */ var _VRating__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./VRating */ "./src/components/VRating/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VRating", function() { return _VRating__WEBPACK_IMPORTED_MODULE_46__["VRating"]; });
-
- /* harmony import */ var _VResponsive__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./VResponsive */ "./src/components/VResponsive/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VResponsive", function() { return _VResponsive__WEBPACK_IMPORTED_MODULE_47__["VResponsive"]; });
-
- /* harmony import */ var _VSelect__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./VSelect */ "./src/components/VSelect/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSelect", function() { return _VSelect__WEBPACK_IMPORTED_MODULE_48__["VSelect"]; });
-
- /* harmony import */ var _VSlider__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./VSlider */ "./src/components/VSlider/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSlider", function() { return _VSlider__WEBPACK_IMPORTED_MODULE_49__["VSlider"]; });
-
- /* harmony import */ var _VSnackbar__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./VSnackbar */ "./src/components/VSnackbar/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSnackbar", function() { return _VSnackbar__WEBPACK_IMPORTED_MODULE_50__["VSnackbar"]; });
-
- /* harmony import */ var _VSparkline__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./VSparkline */ "./src/components/VSparkline/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSparkline", function() { return _VSparkline__WEBPACK_IMPORTED_MODULE_51__["VSparkline"]; });
-
- /* harmony import */ var _VSpeedDial__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./VSpeedDial */ "./src/components/VSpeedDial/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSpeedDial", function() { return _VSpeedDial__WEBPACK_IMPORTED_MODULE_52__["VSpeedDial"]; });
-
- /* harmony import */ var _VStepper__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./VStepper */ "./src/components/VStepper/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VStepper", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_53__["VStepper"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VStepperContent", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_53__["VStepperContent"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VStepperStep", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_53__["VStepperStep"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VStepperHeader", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_53__["VStepperHeader"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VStepperItems", function() { return _VStepper__WEBPACK_IMPORTED_MODULE_53__["VStepperItems"]; });
-
- /* harmony import */ var _VSubheader__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./VSubheader */ "./src/components/VSubheader/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSubheader", function() { return _VSubheader__WEBPACK_IMPORTED_MODULE_54__["VSubheader"]; });
-
- /* harmony import */ var _VSwitch__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./VSwitch */ "./src/components/VSwitch/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSwitch", function() { return _VSwitch__WEBPACK_IMPORTED_MODULE_55__["VSwitch"]; });
-
- /* harmony import */ var _VSystemBar__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./VSystemBar */ "./src/components/VSystemBar/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSystemBar", function() { return _VSystemBar__WEBPACK_IMPORTED_MODULE_56__["VSystemBar"]; });
-
- /* harmony import */ var _VTabs__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./VTabs */ "./src/components/VTabs/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTabs", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_57__["VTabs"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTab", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_57__["VTab"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTabItem", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_57__["VTabItem"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTabsItems", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_57__["VTabsItems"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTabsSlider", function() { return _VTabs__WEBPACK_IMPORTED_MODULE_57__["VTabsSlider"]; });
-
- /* harmony import */ var _VTextarea__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./VTextarea */ "./src/components/VTextarea/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTextarea", function() { return _VTextarea__WEBPACK_IMPORTED_MODULE_58__["VTextarea"]; });
-
- /* harmony import */ var _VTextField__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./VTextField */ "./src/components/VTextField/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTextField", function() { return _VTextField__WEBPACK_IMPORTED_MODULE_59__["VTextField"]; });
-
- /* harmony import */ var _VTimeline__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./VTimeline */ "./src/components/VTimeline/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTimeline", function() { return _VTimeline__WEBPACK_IMPORTED_MODULE_60__["VTimeline"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTimelineItem", function() { return _VTimeline__WEBPACK_IMPORTED_MODULE_60__["VTimelineItem"]; });
-
- /* harmony import */ var _VTimePicker__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./VTimePicker */ "./src/components/VTimePicker/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTimePicker", function() { return _VTimePicker__WEBPACK_IMPORTED_MODULE_61__["VTimePicker"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTimePickerClock", function() { return _VTimePicker__WEBPACK_IMPORTED_MODULE_61__["VTimePickerClock"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTimePickerTitle", function() { return _VTimePicker__WEBPACK_IMPORTED_MODULE_61__["VTimePickerTitle"]; });
-
- /* harmony import */ var _VToolbar__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./VToolbar */ "./src/components/VToolbar/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VToolbar", function() { return _VToolbar__WEBPACK_IMPORTED_MODULE_62__["VToolbar"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VToolbarSideIcon", function() { return _VToolbar__WEBPACK_IMPORTED_MODULE_62__["VToolbarSideIcon"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VToolbarTitle", function() { return _VToolbar__WEBPACK_IMPORTED_MODULE_62__["VToolbarTitle"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VToolbarItems", function() { return _VToolbar__WEBPACK_IMPORTED_MODULE_62__["VToolbarItems"]; });
-
- /* harmony import */ var _VTooltip__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./VTooltip */ "./src/components/VTooltip/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTooltip", function() { return _VTooltip__WEBPACK_IMPORTED_MODULE_63__["VTooltip"]; });
-
- /* harmony import */ var _VTreeview__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./VTreeview */ "./src/components/VTreeview/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTreeview", function() { return _VTreeview__WEBPACK_IMPORTED_MODULE_64__["VTreeview"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTreeviewNode", function() { return _VTreeview__WEBPACK_IMPORTED_MODULE_64__["VTreeviewNode"]; });
-
- /* harmony import */ var _VWindow__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./VWindow */ "./src/components/VWindow/index.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VWindow", function() { return _VWindow__WEBPACK_IMPORTED_MODULE_65__["VWindow"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VWindowItem", function() { return _VWindow__WEBPACK_IMPORTED_MODULE_65__["VWindowItem"]; });
-
- /* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./transitions */ "./src/components/transitions/index.js");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VBottomSheetTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VBottomSheetTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCarouselTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VCarouselTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VCarouselReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VCarouselReverseTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTabTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VTabTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VTabReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VTabReverseTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VMenuTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VMenuTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VFabTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VFabTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDialogTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VDialogTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VDialogBottomTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VDialogBottomTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VFadeTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VFadeTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VScaleTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VScaleTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VScrollXTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VScrollXTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VScrollXReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VScrollXReverseTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VScrollYTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VScrollYTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VScrollYReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VScrollYReverseTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSlideXTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VSlideXTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSlideXReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VSlideXReverseTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSlideYTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VSlideYTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VSlideYReverseTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VSlideYReverseTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VExpandTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VExpandTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VExpandXTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VExpandXTransition"]; });
-
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VRowExpandTransition", function() { return _transitions__WEBPACK_IMPORTED_MODULE_66__["VRowExpandTransition"]; });
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- /***/ }),
-
- /***/ "./src/components/transitions/expand-transition.js":
- /*!*********************************************************!*\
- !*** ./src/components/transitions/expand-transition.js ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
-
- /* harmony default export */ __webpack_exports__["default"] = (function (expandedParentClass, x) {
- if (expandedParentClass === void 0) {
- expandedParentClass = '';
- }
- if (x === void 0) {
- x = false;
- }
- var sizeProperty = x ? 'width' : 'height';
- return {
- beforeEnter: function beforeEnter(el) {
- var _a;
- el._parent = el.parentNode;
- el._initialStyle = (_a = {
- transition: el.style.transition,
- visibility: el.style.visibility,
- overflow: el.style.overflow
- }, _a[sizeProperty] = el.style[sizeProperty], _a);
- },
- enter: function enter(el) {
- var initialStyle = el._initialStyle;
- el.style.setProperty('transition', 'none', 'important');
- el.style.visibility = 'hidden';
- var size = el['offset' + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["upperFirst"])(sizeProperty)] + "px";
- el.style.visibility = initialStyle.visibility;
- el.style.overflow = 'hidden';
- el.style[sizeProperty] = 0;
- void el.offsetHeight; // force reflow
- el.style.transition = initialStyle.transition;
- expandedParentClass && el._parent && el._parent.classList.add(expandedParentClass);
- requestAnimationFrame(function () {
- el.style[sizeProperty] = size;
- });
- },
- afterEnter: resetStyles,
- enterCancelled: resetStyles,
- leave: function leave(el) {
- var _a;
- el._initialStyle = (_a = {
- overflow: el.style.overflow
- }, _a[sizeProperty] = el.style[sizeProperty], _a);
- el.style.overflow = 'hidden';
- el.style[sizeProperty] = el['offset' + Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["upperFirst"])(sizeProperty)] + "px";
- void el.offsetHeight; // force reflow
- requestAnimationFrame(function () {
- return el.style[sizeProperty] = 0;
- });
- },
- afterLeave: afterLeave,
- leaveCancelled: afterLeave
- };
- function afterLeave(el) {
- expandedParentClass && el._parent && el._parent.classList.remove(expandedParentClass);
- resetStyles(el);
- }
- function resetStyles(el) {
- el.style.overflow = el._initialStyle.overflow;
- el.style[sizeProperty] = el._initialStyle[sizeProperty];
- delete el._initialStyle;
- }
- });
-
- /***/ }),
-
- /***/ "./src/components/transitions/index.js":
- /*!*********************************************!*\
- !*** ./src/components/transitions/index.js ***!
- \*********************************************/
- /*! exports provided: VBottomSheetTransition, VCarouselTransition, VCarouselReverseTransition, VTabTransition, VTabReverseTransition, VMenuTransition, VFabTransition, VDialogTransition, VDialogBottomTransition, VFadeTransition, VScaleTransition, VScrollXTransition, VScrollXReverseTransition, VScrollYTransition, VScrollYReverseTransition, VSlideXTransition, VSlideXReverseTransition, VSlideYTransition, VSlideYReverseTransition, VExpandTransition, VExpandXTransition, VRowExpandTransition, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VBottomSheetTransition", function() { return VBottomSheetTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VCarouselTransition", function() { return VCarouselTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VCarouselReverseTransition", function() { return VCarouselReverseTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VTabTransition", function() { return VTabTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VTabReverseTransition", function() { return VTabReverseTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VMenuTransition", function() { return VMenuTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VFabTransition", function() { return VFabTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VDialogTransition", function() { return VDialogTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VDialogBottomTransition", function() { return VDialogBottomTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VFadeTransition", function() { return VFadeTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VScaleTransition", function() { return VScaleTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VScrollXTransition", function() { return VScrollXTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VScrollXReverseTransition", function() { return VScrollXReverseTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VScrollYTransition", function() { return VScrollYTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VScrollYReverseTransition", function() { return VScrollYReverseTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VSlideXTransition", function() { return VSlideXTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VSlideXReverseTransition", function() { return VSlideXReverseTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VSlideYTransition", function() { return VSlideYTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VSlideYReverseTransition", function() { return VSlideYReverseTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VExpandTransition", function() { return VExpandTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VExpandXTransition", function() { return VExpandXTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VRowExpandTransition", function() { return VRowExpandTransition; });
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _expand_transition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./expand-transition */ "./src/components/transitions/expand-transition.js");
-
-
- // Component specific transitions
- var VBottomSheetTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('bottom-sheet-transition');
- var VCarouselTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('carousel-transition');
- var VCarouselReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('carousel-reverse-transition');
- var VTabTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('tab-transition');
- var VTabReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('tab-reverse-transition');
- var VMenuTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('menu-transition');
- var VFabTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('fab-transition', 'center center', 'out-in');
- // Generic transitions
- var VDialogTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('dialog-transition');
- var VDialogBottomTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('dialog-bottom-transition');
- var VFadeTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('fade-transition');
- var VScaleTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('scale-transition');
- var VScrollXTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('scroll-x-transition');
- var VScrollXReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('scroll-x-reverse-transition');
- var VScrollYTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('scroll-y-transition');
- var VScrollYReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('scroll-y-reverse-transition');
- var VSlideXTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('slide-x-transition');
- var VSlideXReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('slide-x-reverse-transition');
- var VSlideYTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('slide-y-transition');
- var VSlideYReverseTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createSimpleTransition"])('slide-y-reverse-transition');
- // JavaScript transitions
- var VExpandTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createJavaScriptTransition"])('expand-transition', Object(_expand_transition__WEBPACK_IMPORTED_MODULE_1__["default"])());
- var VExpandXTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createJavaScriptTransition"])('expand-x-transition', Object(_expand_transition__WEBPACK_IMPORTED_MODULE_1__["default"])('', true));
- var VRowExpandTransition = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["createJavaScriptTransition"])('row-expand-transition', Object(_expand_transition__WEBPACK_IMPORTED_MODULE_1__["default"])('datatable__expand-col--expanded'));
- /* harmony default export */ __webpack_exports__["default"] = ({
- $_vuetify_subcomponents: {
- VBottomSheetTransition: VBottomSheetTransition,
- VCarouselTransition: VCarouselTransition,
- VCarouselReverseTransition: VCarouselReverseTransition,
- VDialogTransition: VDialogTransition,
- VDialogBottomTransition: VDialogBottomTransition,
- VFabTransition: VFabTransition,
- VFadeTransition: VFadeTransition,
- VMenuTransition: VMenuTransition,
- VScaleTransition: VScaleTransition,
- VScrollXTransition: VScrollXTransition,
- VScrollXReverseTransition: VScrollXReverseTransition,
- VScrollYTransition: VScrollYTransition,
- VScrollYReverseTransition: VScrollYReverseTransition,
- VSlideXTransition: VSlideXTransition,
- VSlideXReverseTransition: VSlideXReverseTransition,
- VSlideYTransition: VSlideYTransition,
- VSlideYReverseTransition: VSlideYReverseTransition,
- VTabReverseTransition: VTabReverseTransition,
- VTabTransition: VTabTransition,
- VExpandTransition: VExpandTransition,
- VExpandXTransition: VExpandXTransition,
- VRowExpandTransition: VRowExpandTransition
- }
- });
-
- /***/ }),
-
- /***/ "./src/directives/click-outside.ts":
- /*!*****************************************!*\
- !*** ./src/directives/click-outside.ts ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- function closeConditional() {
- return false;
- }
- function directive(e, el, binding) {
- // Args may not always be supplied
- binding.args = binding.args || {};
- // If no closeConditional was supplied assign a default
- var isActive = binding.args.closeConditional || closeConditional;
- // The include element callbacks below can be expensive
- // so we should avoid calling them when we're not active.
- // Explicitly check for false to allow fallback compatibility
- // with non-toggleable components
- if (!e || isActive(e) === false) return;
- // If click was triggered programmaticaly (domEl.click()) then
- // it shouldn't be treated as click-outside
- // Chrome/Firefox support isTrusted property
- // IE/Edge support pointerType property (empty if not triggered
- // by pointing device)
- if ('isTrusted' in e && !e.isTrusted || 'pointerType' in e && !e.pointerType) return;
- // Check if additional elements were passed to be included in check
- // (click must be outside all included elements, if any)
- var elements = (binding.args.include || function () {
- return [];
- })();
- // Add the root element for the component this directive was defined on
- elements.push(el);
- // Check if it's a click outside our elements, and then if our callback returns true.
- // Non-toggleable components should take action in their callback and return falsy.
- // Toggleable can return true if it wants to deactivate.
- // Note that, because we're in the capture phase, this callback will occur before
- // the bubbling click event on any outside elements.
- !elements.some(function (el) {
- return el.contains(e.target);
- }) && setTimeout(function () {
- isActive(e) && binding.value && binding.value(e);
- }, 0);
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- // [data-app] may not be found
- // if using bind, inserted makes
- // sure that the root element is
- // available, iOS does not support
- // clicks on body
- inserted: function inserted(el, binding) {
- var onClick = function onClick(e) {
- return directive(e, el, binding);
- };
- // iOS does not recognize click events on document
- // or body, this is the entire purpose of the v-app
- // component and [data-app], stop removing this
- var app = document.querySelector('[data-app]') || document.body; // This is only for unit tests
- app.addEventListener('click', onClick, true);
- el._clickOutside = onClick;
- },
- unbind: function unbind(el) {
- if (!el._clickOutside) return;
- var app = document.querySelector('[data-app]') || document.body; // This is only for unit tests
- app && app.removeEventListener('click', el._clickOutside, true);
- delete el._clickOutside;
- }
- });
-
- /***/ }),
-
- /***/ "./src/directives/index.ts":
- /*!*********************************!*\
- !*** ./src/directives/index.ts ***!
- \*********************************/
- /*! exports provided: ClickOutside, Ripple, Resize, Scroll, Touch, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _click_outside__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./click-outside */ "./src/directives/click-outside.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClickOutside", function() { return _click_outside__WEBPACK_IMPORTED_MODULE_0__["default"]; });
-
- /* harmony import */ var _resize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./resize */ "./src/directives/resize.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Resize", function() { return _resize__WEBPACK_IMPORTED_MODULE_1__["default"]; });
-
- /* harmony import */ var _ripple__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ripple */ "./src/directives/ripple.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Ripple", function() { return _ripple__WEBPACK_IMPORTED_MODULE_2__["default"]; });
-
- /* harmony import */ var _scroll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./scroll */ "./src/directives/scroll.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Scroll", function() { return _scroll__WEBPACK_IMPORTED_MODULE_3__["default"]; });
-
- /* harmony import */ var _touch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./touch */ "./src/directives/touch.ts");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Touch", function() { return _touch__WEBPACK_IMPORTED_MODULE_4__["default"]; });
-
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- ClickOutside: _click_outside__WEBPACK_IMPORTED_MODULE_0__["default"],
- Ripple: _ripple__WEBPACK_IMPORTED_MODULE_2__["default"],
- Resize: _resize__WEBPACK_IMPORTED_MODULE_1__["default"],
- Scroll: _scroll__WEBPACK_IMPORTED_MODULE_3__["default"],
- Touch: _touch__WEBPACK_IMPORTED_MODULE_4__["default"]
- });
-
- /***/ }),
-
- /***/ "./src/directives/resize.ts":
- /*!**********************************!*\
- !*** ./src/directives/resize.ts ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- function inserted(el, binding) {
- var callback = binding.value;
- var options = binding.options || { passive: true };
- window.addEventListener('resize', callback, options);
- el._onResize = {
- callback: callback,
- options: options
- };
- if (!binding.modifiers || !binding.modifiers.quiet) {
- callback();
- }
- }
- function unbind(el) {
- if (!el._onResize) return;
- var _a = el._onResize,
- callback = _a.callback,
- options = _a.options;
- window.removeEventListener('resize', callback, options);
- delete el._onResize;
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- inserted: inserted,
- unbind: unbind
- });
-
- /***/ }),
-
- /***/ "./src/directives/ripple.ts":
- /*!**********************************!*\
- !*** ./src/directives/ripple.ts ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/console */ "./src/util/console.ts");
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
-
- function transform(el, value) {
- el.style['transform'] = value;
- el.style['webkitTransform'] = value;
- }
- function opacity(el, value) {
- el.style['opacity'] = value.toString();
- }
- function isTouchEvent(e) {
- return e.constructor.name === 'TouchEvent';
- }
- var calculate = function calculate(e, el, value) {
- if (value === void 0) {
- value = {};
- }
- var offset = el.getBoundingClientRect();
- var target = isTouchEvent(e) ? e.touches[e.touches.length - 1] : e;
- var localX = target.clientX - offset.left;
- var localY = target.clientY - offset.top;
- var radius = 0;
- var scale = 0.3;
- if (el._ripple && el._ripple.circle) {
- scale = 0.15;
- radius = el.clientWidth / 2;
- radius = value.center ? radius : radius + Math.sqrt(Math.pow(localX - radius, 2) + Math.pow(localY - radius, 2)) / 4;
- } else {
- radius = Math.sqrt(Math.pow(el.clientWidth, 2) + Math.pow(el.clientHeight, 2)) / 2;
- }
- var centerX = (el.clientWidth - radius * 2) / 2 + "px";
- var centerY = (el.clientHeight - radius * 2) / 2 + "px";
- var x = value.center ? centerX : localX - radius + "px";
- var y = value.center ? centerY : localY - radius + "px";
- return { radius: radius, scale: scale, x: x, y: y, centerX: centerX, centerY: centerY };
- };
- var ripple = {
- /* eslint-disable max-statements */
- show: function show(e, el, value) {
- if (value === void 0) {
- value = {};
- }
- if (!el._ripple || !el._ripple.enabled) {
- return;
- }
- var container = document.createElement('span');
- var animation = document.createElement('span');
- container.appendChild(animation);
- container.className = 'v-ripple__container';
- if (value.class) {
- container.className += " " + value.class;
- }
- var _a = calculate(e, el, value),
- radius = _a.radius,
- scale = _a.scale,
- x = _a.x,
- y = _a.y,
- centerX = _a.centerX,
- centerY = _a.centerY;
- var size = radius * 2 + "px";
- animation.className = 'v-ripple__animation';
- animation.style.width = size;
- animation.style.height = size;
- el.appendChild(container);
- var computed = window.getComputedStyle(el);
- if (computed && computed.position === 'static') {
- el.style.position = 'relative';
- el.dataset.previousPosition = 'static';
- }
- animation.classList.add('v-ripple__animation--enter');
- animation.classList.add('v-ripple__animation--visible');
- transform(animation, "translate(" + x + ", " + y + ") scale3d(" + scale + "," + scale + "," + scale + ")");
- opacity(animation, 0);
- animation.dataset.activated = String(performance.now());
- setTimeout(function () {
- animation.classList.remove('v-ripple__animation--enter');
- animation.classList.add('v-ripple__animation--in');
- transform(animation, "translate(" + centerX + ", " + centerY + ") scale3d(1,1,1)");
- opacity(animation, 0.25);
- }, 0);
- },
- hide: function hide(el) {
- if (!el || !el._ripple || !el._ripple.enabled) return;
- var ripples = el.getElementsByClassName('v-ripple__animation');
- if (ripples.length === 0) return;
- var animation = ripples[ripples.length - 1];
- if (animation.dataset.isHiding) return;else animation.dataset.isHiding = 'true';
- var diff = performance.now() - Number(animation.dataset.activated);
- var delay = Math.max(250 - diff, 0);
- setTimeout(function () {
- animation.classList.remove('v-ripple__animation--in');
- animation.classList.add('v-ripple__animation--out');
- opacity(animation, 0);
- setTimeout(function () {
- var ripples = el.getElementsByClassName('v-ripple__animation');
- if (ripples.length === 1 && el.dataset.previousPosition) {
- el.style.position = el.dataset.previousPosition;
- delete el.dataset.previousPosition;
- }
- animation.parentNode && el.removeChild(animation.parentNode);
- }, 300);
- }, delay);
- }
- };
- function isRippleEnabled(value) {
- return typeof value === 'undefined' || !!value;
- }
- function rippleShow(e) {
- var value = {};
- var element = e.currentTarget;
- if (!element || !element._ripple || element._ripple.touched) return;
- if (isTouchEvent(e)) {
- element._ripple.touched = true;
- }
- value.center = element._ripple.centered;
- if (element._ripple.class) {
- value.class = element._ripple.class;
- }
- ripple.show(e, element, value);
- }
- function rippleHide(e) {
- var element = e.currentTarget;
- if (!element) return;
- window.setTimeout(function () {
- if (element._ripple) {
- element._ripple.touched = false;
- }
- });
- ripple.hide(element);
- }
- function updateRipple(el, binding, wasEnabled) {
- var enabled = isRippleEnabled(binding.value);
- if (!enabled) {
- ripple.hide(el);
- }
- el._ripple = el._ripple || {};
- el._ripple.enabled = enabled;
- var value = binding.value || {};
- if (value.center) {
- el._ripple.centered = true;
- }
- if (value.class) {
- el._ripple.class = binding.value.class;
- }
- if (value.circle) {
- el._ripple.circle = value.circle;
- }
- if (enabled && !wasEnabled) {
- el.addEventListener('touchstart', rippleShow, { passive: true });
- el.addEventListener('touchend', rippleHide, { passive: true });
- el.addEventListener('touchcancel', rippleHide);
- el.addEventListener('mousedown', rippleShow);
- el.addEventListener('mouseup', rippleHide);
- el.addEventListener('mouseleave', rippleHide);
- // Anchor tags can be dragged, causes other hides to fail - #1537
- el.addEventListener('dragstart', rippleHide, { passive: true });
- } else if (!enabled && wasEnabled) {
- removeListeners(el);
- }
- }
- function removeListeners(el) {
- el.removeEventListener('mousedown', rippleShow);
- el.removeEventListener('touchstart', rippleHide);
- el.removeEventListener('touchend', rippleHide);
- el.removeEventListener('touchcancel', rippleHide);
- el.removeEventListener('mouseup', rippleHide);
- el.removeEventListener('mouseleave', rippleHide);
- el.removeEventListener('dragstart', rippleHide);
- }
- function directive(el, binding, node) {
- updateRipple(el, binding, false);
- // warn if an inline element is used, waiting for el to be in the DOM first
- node.context && node.context.$nextTick(function () {
- var computed = window.getComputedStyle(el);
- if (computed && computed.display === 'inline') {
- var context = node.fnOptions ? [node.fnOptions, node.context] : [node.componentInstance];
- _util_console__WEBPACK_IMPORTED_MODULE_0__["consoleWarn"].apply(void 0, __spread(['v-ripple can only be used on block-level elements'], context));
- }
- });
- }
- function unbind(el) {
- delete el._ripple;
- removeListeners(el);
- }
- function update(el, binding) {
- if (binding.value === binding.oldValue) {
- return;
- }
- var wasEnabled = isRippleEnabled(binding.oldValue);
- updateRipple(el, binding, wasEnabled);
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- bind: directive,
- unbind: unbind,
- update: update
- });
-
- /***/ }),
-
- /***/ "./src/directives/scroll.ts":
- /*!**********************************!*\
- !*** ./src/directives/scroll.ts ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- function inserted(el, binding) {
- var callback = binding.value;
- var options = binding.options || { passive: true };
- var target = binding.arg ? document.querySelector(binding.arg) : window;
- if (!target) return;
- target.addEventListener('scroll', callback, options);
- el._onScroll = {
- callback: callback,
- options: options,
- target: target
- };
- }
- function unbind(el) {
- if (!el._onScroll) return;
- var _a = el._onScroll,
- callback = _a.callback,
- options = _a.options,
- target = _a.target;
- target.removeEventListener('scroll', callback, options);
- delete el._onScroll;
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- inserted: inserted,
- unbind: unbind
- });
-
- /***/ }),
-
- /***/ "./src/directives/touch.ts":
- /*!*********************************!*\
- !*** ./src/directives/touch.ts ***!
- \*********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/helpers */ "./src/util/helpers.ts");
-
- var handleGesture = function handleGesture(wrapper) {
- var touchstartX = wrapper.touchstartX,
- touchendX = wrapper.touchendX,
- touchstartY = wrapper.touchstartY,
- touchendY = wrapper.touchendY;
- var dirRatio = 0.5;
- var minDistance = 16;
- wrapper.offsetX = touchendX - touchstartX;
- wrapper.offsetY = touchendY - touchstartY;
- if (Math.abs(wrapper.offsetY) < dirRatio * Math.abs(wrapper.offsetX)) {
- wrapper.left && touchendX < touchstartX - minDistance && wrapper.left(wrapper);
- wrapper.right && touchendX > touchstartX + minDistance && wrapper.right(wrapper);
- }
- if (Math.abs(wrapper.offsetX) < dirRatio * Math.abs(wrapper.offsetY)) {
- wrapper.up && touchendY < touchstartY - minDistance && wrapper.up(wrapper);
- wrapper.down && touchendY > touchstartY + minDistance && wrapper.down(wrapper);
- }
- };
- function _touchstart(event, wrapper) {
- var touch = event.changedTouches[0];
- wrapper.touchstartX = touch.clientX;
- wrapper.touchstartY = touch.clientY;
- wrapper.start && wrapper.start(Object.assign(event, wrapper));
- }
- function _touchend(event, wrapper) {
- var touch = event.changedTouches[0];
- wrapper.touchendX = touch.clientX;
- wrapper.touchendY = touch.clientY;
- wrapper.end && wrapper.end(Object.assign(event, wrapper));
- handleGesture(wrapper);
- }
- function _touchmove(event, wrapper) {
- var touch = event.changedTouches[0];
- wrapper.touchmoveX = touch.clientX;
- wrapper.touchmoveY = touch.clientY;
- wrapper.move && wrapper.move(Object.assign(event, wrapper));
- }
- function createHandlers(value) {
- var wrapper = {
- touchstartX: 0,
- touchstartY: 0,
- touchendX: 0,
- touchendY: 0,
- touchmoveX: 0,
- touchmoveY: 0,
- offsetX: 0,
- offsetY: 0,
- left: value.left,
- right: value.right,
- up: value.up,
- down: value.down,
- start: value.start,
- move: value.move,
- end: value.end
- };
- return {
- touchstart: function touchstart(e) {
- return _touchstart(e, wrapper);
- },
- touchend: function touchend(e) {
- return _touchend(e, wrapper);
- },
- touchmove: function touchmove(e) {
- return _touchmove(e, wrapper);
- }
- };
- }
- function inserted(el, binding, vnode) {
- var value = binding.value;
- var target = value.parent ? el.parentElement : el;
- var options = value.options || { passive: true };
- // Needed to pass unit tests
- if (!target) return;
- var handlers = createHandlers(binding.value);
- target._touchHandlers = Object(target._touchHandlers);
- target._touchHandlers[vnode.context._uid] = handlers;
- Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["keys"])(handlers).forEach(function (eventName) {
- target.addEventListener(eventName, handlers[eventName], options);
- });
- }
- function unbind(el, binding, vnode) {
- var target = binding.value.parent ? el.parentElement : el;
- if (!target || !target._touchHandlers) return;
- var handlers = target._touchHandlers[vnode.context._uid];
- Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["keys"])(handlers).forEach(function (eventName) {
- target.removeEventListener(eventName, handlers[eventName]);
- });
- delete target._touchHandlers[vnode.context._uid];
- }
- /* harmony default export */ __webpack_exports__["default"] = ({
- inserted: inserted,
- unbind: unbind
- });
-
- /***/ }),
-
- /***/ "./src/index.ts":
- /*!**********************!*\
- !*** ./src/index.ts ***!
- \**********************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_app_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stylus/app.styl */ "./src/stylus/app.styl");
- /* harmony import */ var _stylus_app_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_app_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _components_Vuetify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/Vuetify */ "./src/components/Vuetify/index.ts");
- /* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components */ "./src/components/index.ts");
- /* harmony import */ var _directives__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./directives */ "./src/directives/index.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
-
-
-
- var Vuetify = {
- install: function install(Vue, args) {
- Vue.use(_components_Vuetify__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ components: _components__WEBPACK_IMPORTED_MODULE_2__,
- directives: _directives__WEBPACK_IMPORTED_MODULE_3__["default"] }, args));
- },
- version: '1.5.12'
- };
- if (typeof window !== 'undefined' && window.Vue) {
- window.Vue.use(Vuetify);
- }
- /* harmony default export */ __webpack_exports__["default"] = (Vuetify);
-
- /***/ }),
-
- /***/ "./src/locale/en.ts":
- /*!**************************!*\
- !*** ./src/locale/en.ts ***!
- \**************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony default export */ __webpack_exports__["default"] = ({
- dataIterator: {
- rowsPerPageText: 'Items per page:',
- rowsPerPageAll: 'All',
- pageText: '{0}-{1} of {2}',
- noResultsText: 'No matching records found',
- nextPage: 'Next page',
- prevPage: 'Previous page'
- },
- dataTable: {
- rowsPerPageText: 'Rows per page:'
- },
- noDataText: 'No data available',
- carousel: {
- prev: 'Previous visual',
- next: 'Next visual'
- }
- });
-
- /***/ }),
-
- /***/ "./src/mixins/applicationable.ts":
- /*!***************************************!*\
- !*** ./src/mixins/applicationable.ts ***!
- \***************************************/
- /*! 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 applicationable; });
- /* harmony import */ var _positionable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./positionable */ "./src/mixins/positionable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/mixins */ "./src/util/mixins.ts");
-
- // Util
-
- function applicationable(value, events) {
- if (events === void 0) {
- events = [];
- }
- /* @vue/component */
- return Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_positionable__WEBPACK_IMPORTED_MODULE_0__["factory"])(['absolute', 'fixed'])).extend({
- name: 'applicationable',
- props: {
- app: Boolean
- },
- computed: {
- applicationProperty: function applicationProperty() {
- return value;
- }
- },
- watch: {
- // If previous value was app
- // reset the provided prop
- app: function app(x, prev) {
- prev ? this.removeApplication(true) : this.callUpdate();
- },
- applicationProperty: function applicationProperty(newVal, oldVal) {
- this.$vuetify.application.unbind(this._uid, oldVal);
- }
- },
- activated: function activated() {
- this.callUpdate();
- },
- created: function created() {
- for (var i = 0, length = events.length; i < length; i++) {
- this.$watch(events[i], this.callUpdate);
- }
- this.callUpdate();
- },
- mounted: function mounted() {
- this.callUpdate();
- },
- deactivated: function deactivated() {
- this.removeApplication();
- },
- destroyed: function destroyed() {
- this.removeApplication();
- },
- methods: {
- callUpdate: function callUpdate() {
- if (!this.app) return;
- this.$vuetify.application.bind(this._uid, this.applicationProperty, this.updateApplication());
- },
- removeApplication: function removeApplication(force) {
- if (force === void 0) {
- force = false;
- }
- if (!force && !this.app) return;
- this.$vuetify.application.unbind(this._uid, this.applicationProperty);
- },
- updateApplication: function updateApplication() {
- return 0;
- }
- }
- });
- }
-
- /***/ }),
-
- /***/ "./src/mixins/bootable.ts":
- /*!********************************!*\
- !*** ./src/mixins/bootable.ts ***!
- \********************************/
- /*! 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__);
-
- /**
- * Bootable
- * @mixin
- *
- * Used to add lazy content functionality to components
- * Looks for change in "isActive" to automatically boot
- * Otherwise can be set manually
- */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend().extend({
- name: 'bootable',
- props: {
- lazy: Boolean
- },
- data: function data() {
- return {
- isBooted: false
- };
- },
- computed: {
- hasContent: function hasContent() {
- return this.isBooted || !this.lazy || this.isActive;
- }
- },
- watch: {
- isActive: function isActive() {
- this.isBooted = true;
- }
- },
- methods: {
- showLazyContent: function showLazyContent(content) {
- return this.hasContent ? content : undefined;
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/button-group.ts":
- /*!************************************!*\
- !*** ./src/mixins/button-group.ts ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _components_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/VItemGroup/VItemGroup */ "./src/components/VItemGroup/VItemGroup.ts");
- // Extensions
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_components_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_0__["BaseItemGroup"].extend({
- name: 'button-group',
- provide: function provide() {
- return {
- btnToggle: this
- };
- },
- props: {
- activeClass: {
- type: String,
- default: 'v-btn--active'
- }
- },
- computed: {
- classes: function classes() {
- return _components_VItemGroup_VItemGroup__WEBPACK_IMPORTED_MODULE_0__["BaseItemGroup"].options.computed.classes.call(this);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/colorable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/colorable.ts ***!
- \*********************************/
- /*! 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__);
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
-
- function isCssColor(color) {
- return !!color && !!color.match(/^(#|(rgb|hsl)a?\()/);
- }
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'colorable',
- props: {
- color: String
- },
- methods: {
- setBackgroundColor: function setBackgroundColor(color, data) {
- if (data === void 0) {
- data = {};
- }
- var _a;
- if (isCssColor(color)) {
- data.style = __assign({}, data.style, { 'background-color': "" + color, 'border-color': "" + color });
- } else if (color) {
- data.class = __assign({}, data.class, (_a = {}, _a[color] = true, _a));
- }
- return data;
- },
- setTextColor: function setTextColor(color, data) {
- if (data === void 0) {
- data = {};
- }
- var _a;
- if (isCssColor(color)) {
- data.style = __assign({}, data.style, { 'color': "" + color, 'caret-color': "" + color });
- } else if (color) {
- var _b = __read(color.toString().trim().split(' ', 2), 2),
- colorName = _b[0],
- colorModifier = _b[1];
- data.class = __assign({}, data.class, (_a = {}, _a[colorName + '--text'] = true, _a));
- if (colorModifier) {
- data.class['text--' + colorModifier] = true;
- }
- }
- return data;
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/comparable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/comparable.ts ***!
- \**********************************/
- /*! 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 _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/helpers */ "./src/util/helpers.ts");
-
-
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'comparable',
- props: {
- valueComparator: {
- type: Function,
- default: _util_helpers__WEBPACK_IMPORTED_MODULE_1__["deepEqual"]
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/data-iterable.js":
- /*!*************************************!*\
- !*** ./src/mixins/data-iterable.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _components_VBtn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/VBtn */ "./src/components/VBtn/index.ts");
- /* harmony import */ var _components_VIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/VIcon */ "./src/components/VIcon/index.ts");
- /* harmony import */ var _components_VSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/VSelect */ "./src/components/VSelect/index.js");
- /* harmony import */ var _filterable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./filterable */ "./src/mixins/filterable.ts");
- /* harmony import */ var _themeable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _loadable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./loadable */ "./src/mixins/loadable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/console */ "./src/util/console.ts");
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
-
-
-
-
-
-
-
-
- /**
- * DataIterable
- *
- * @mixin
- *
- * Base behavior for data table and data iterator
- * providing selection, pagination, sorting and filtering.
- *
- */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'data-iterable',
- mixins: [_filterable__WEBPACK_IMPORTED_MODULE_3__["default"], _loadable__WEBPACK_IMPORTED_MODULE_5__["default"], _themeable__WEBPACK_IMPORTED_MODULE_4__["default"]],
- props: {
- expand: Boolean,
- hideActions: Boolean,
- disableInitialSort: Boolean,
- mustSort: Boolean,
- noResultsText: {
- type: String,
- default: '$vuetify.dataIterator.noResultsText'
- },
- nextIcon: {
- type: String,
- default: '$vuetify.icons.next'
- },
- prevIcon: {
- type: String,
- default: '$vuetify.icons.prev'
- },
- rowsPerPageItems: {
- type: Array,
- default: function _default() {
- return [5, 10, 25, {
- text: '$vuetify.dataIterator.rowsPerPageAll',
- value: -1
- }];
- }
- },
- rowsPerPageText: {
- type: String,
- default: '$vuetify.dataIterator.rowsPerPageText'
- },
- selectAll: [Boolean, String],
- search: {
- required: false
- },
- filter: {
- type: Function,
- default: function _default(val, search) {
- return val != null && typeof val !== 'boolean' && val.toString().toLowerCase().indexOf(search) !== -1;
- }
- },
- customFilter: {
- type: Function,
- default: function _default(items, search, filter) {
- search = search.toString().toLowerCase();
- if (search.trim() === '') return items;
- return items.filter(function (i) {
- return Object.keys(i).some(function (j) {
- return filter(i[j], search);
- });
- });
- }
- },
- customSort: {
- type: Function,
- default: function _default(items, index, isDescending) {
- if (index === null) return items;
- return items.sort(function (a, b) {
- var _a, _b;
- var sortA = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(a, index);
- var sortB = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(b, index);
- if (isDescending) {
- _a = __read([sortB, sortA], 2), sortA = _a[0], sortB = _a[1];
- }
- // Check if both are numbers
- if (!isNaN(sortA) && !isNaN(sortB)) {
- return sortA - sortB;
- }
- // Check if both cannot be evaluated
- if (sortA === null && sortB === null) {
- return 0;
- }
- _b = __read([sortA, sortB].map(function (s) {
- return (s || '').toString().toLocaleLowerCase();
- }), 2), sortA = _b[0], sortB = _b[1];
- if (sortA > sortB) return 1;
- if (sortA < sortB) return -1;
- return 0;
- });
- }
- },
- value: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- items: {
- type: Array,
- required: true,
- default: function _default() {
- return [];
- }
- },
- totalItems: {
- type: Number,
- default: null
- },
- itemKey: {
- type: String,
- default: 'id'
- },
- pagination: {
- type: Object,
- default: function _default() {}
- }
- },
- data: function data() {
- return {
- searchLength: 0,
- defaultPagination: {
- descending: false,
- page: 1,
- rowsPerPage: 5,
- sortBy: null,
- totalItems: 0
- },
- expanded: {},
- actionsClasses: 'v-data-iterator__actions',
- actionsRangeControlsClasses: 'v-data-iterator__actions__range-controls',
- actionsSelectClasses: 'v-data-iterator__actions__select',
- actionsPaginationClasses: 'v-data-iterator__actions__pagination'
- };
- },
- computed: {
- computedPagination: function computedPagination() {
- return this.hasPagination ? this.pagination : this.defaultPagination;
- },
- computedRowsPerPageItems: function computedRowsPerPageItems() {
- var _this = this;
- return this.rowsPerPageItems.map(function (item) {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["isObject"])(item) ? Object.assign({}, item, {
- text: _this.$vuetify.t(item.text)
- }) : { value: item, text: Number(item).toLocaleString(_this.$vuetify.lang.current) };
- });
- },
- hasPagination: function hasPagination() {
- var pagination = this.pagination || {};
- return Object.keys(pagination).length > 0;
- },
- hasSelectAll: function hasSelectAll() {
- return this.selectAll !== undefined && this.selectAll !== false;
- },
- itemsLength: function itemsLength() {
- if (this.hasSearch) return this.searchLength;
- return this.totalItems || this.items.length;
- },
- indeterminate: function indeterminate() {
- return this.hasSelectAll && this.someItems && !this.everyItem;
- },
- everyItem: function everyItem() {
- var _this = this;
- return this.filteredItems.length && this.filteredItems.every(function (i) {
- return _this.isSelected(i);
- });
- },
- someItems: function someItems() {
- var _this = this;
- return this.filteredItems.some(function (i) {
- return _this.isSelected(i);
- });
- },
- getPage: function getPage() {
- var rowsPerPage = this.computedPagination.rowsPerPage;
- return rowsPerPage === Object(rowsPerPage) ? rowsPerPage.value : rowsPerPage;
- },
- pageStart: function pageStart() {
- return this.getPage === -1 ? 0 : (this.computedPagination.page - 1) * this.getPage;
- },
- pageStop: function pageStop() {
- return this.getPage === -1 ? this.itemsLength : this.computedPagination.page * this.getPage;
- },
- filteredItems: function filteredItems() {
- return this.filteredItemsImpl();
- },
- selected: function selected() {
- var selected = {};
- for (var index = 0; index < this.value.length; index++) {
- var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(this.value[index], this.itemKey);
- selected[key] = true;
- }
- return selected;
- },
- hasSearch: function hasSearch() {
- return this.search != null;
- }
- },
- watch: {
- items: function items() {
- var _this = this;
- if (this.pageStart >= this.itemsLength) {
- this.resetPagination();
- }
- var newItemKeys = new Set(this.items.map(function (item) {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(item, _this.itemKey);
- }));
- var selection = this.value.filter(function (item) {
- return newItemKeys.has(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(item, _this.itemKey));
- });
- if (selection.length !== this.value.length) {
- this.$emit('input', selection);
- }
- },
- search: function search() {
- var _this = this;
- this.$nextTick(function () {
- _this.updatePagination({ page: 1, totalItems: _this.itemsLength });
- });
- },
- 'computedPagination.sortBy': 'resetPagination',
- 'computedPagination.descending': 'resetPagination'
- },
- methods: {
- initPagination: function initPagination() {
- if (!this.rowsPerPageItems.length) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_7__["consoleWarn"])("The prop 'rows-per-page-items' can not be empty", this);
- } else {
- this.defaultPagination.rowsPerPage = this.rowsPerPageItems[0];
- }
- this.defaultPagination.totalItems = this.items.length;
- this.updatePagination(Object.assign({}, this.defaultPagination, this.pagination));
- },
- updatePagination: function updatePagination(val) {
- var pagination = this.hasPagination ? this.pagination : this.defaultPagination;
- var updatedPagination = Object.assign({}, pagination, val);
- this.$emit('update:pagination', updatedPagination);
- if (!this.hasPagination) {
- this.defaultPagination = updatedPagination;
- }
- },
- isSelected: function isSelected(item) {
- return this.selected[Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(item, this.itemKey)];
- },
- isExpanded: function isExpanded(item) {
- return this.expanded[Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(item, this.itemKey)];
- },
- filteredItemsImpl: function filteredItemsImpl() {
- var additionalFilterArgs = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- additionalFilterArgs[_i] = arguments[_i];
- }
- if (this.totalItems) return this.items;
- var items = this.items.slice();
- if (this.hasSearch) {
- items = this.customFilter.apply(this, __spread([items, this.search, this.filter], additionalFilterArgs));
- this.searchLength = items.length;
- }
- items = this.customSort(items, this.computedPagination.sortBy, this.computedPagination.descending);
- return this.hideActions && !this.hasPagination ? items : items.slice(this.pageStart, this.pageStop);
- },
- resetPagination: function resetPagination() {
- this.computedPagination.page !== 1 && this.updatePagination({ page: 1 });
- },
- sort: function sort(index) {
- var _a = this.computedPagination,
- sortBy = _a.sortBy,
- descending = _a.descending;
- if (sortBy === null) {
- this.updatePagination({ sortBy: index, descending: false });
- } else if (sortBy === index && !descending) {
- this.updatePagination({ descending: true });
- } else if (sortBy !== index) {
- this.updatePagination({ sortBy: index, descending: false });
- } else if (!this.mustSort) {
- this.updatePagination({ sortBy: null, descending: null });
- } else {
- this.updatePagination({ sortBy: index, descending: false });
- }
- },
- toggle: function toggle(value) {
- var _this = this;
- var selected = Object.assign({}, this.selected);
- for (var index = 0; index < this.filteredItems.length; index++) {
- var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(this.filteredItems[index], this.itemKey);
- selected[key] = value;
- }
- this.$emit('input', this.items.filter(function (i) {
- var key = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(i, _this.itemKey);
- return selected[key];
- }));
- },
- createProps: function createProps(item, index) {
- var _this = this;
- var props = { item: item, index: index };
- var keyProp = this.itemKey;
- var itemKey = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(item, keyProp);
- Object.defineProperty(props, 'selected', {
- get: function get() {
- return _this.selected[itemKey];
- },
- set: function set(value) {
- if (itemKey == null) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_7__["consoleWarn"])("\"" + keyProp + "\" attribute must be defined for item", _this);
- }
- var selected = _this.value.slice();
- if (value) selected.push(item);else selected = selected.filter(function (i) {
- return Object(_util_helpers__WEBPACK_IMPORTED_MODULE_6__["getObjectValueByPath"])(i, keyProp) !== itemKey;
- });
- _this.$emit('input', selected);
- }
- });
- Object.defineProperty(props, 'expanded', {
- get: function get() {
- return _this.expanded[itemKey];
- },
- set: function set(value) {
- if (itemKey == null) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_7__["consoleWarn"])("\"" + keyProp + "\" attribute must be defined for item", _this);
- }
- if (!_this.expand) {
- for (var key in _this.expanded) {
- _this.expanded.hasOwnProperty(key) && _this.$set(_this.expanded, key, false);
- }
- }
- _this.$set(_this.expanded, itemKey, value);
- }
- });
- return props;
- },
- genItems: function genItems() {
- if (!this.itemsLength && !this.items.length) {
- var noData = this.$slots['no-data'] || this.$vuetify.t(this.noDataText);
- return [this.genEmptyItems(noData)];
- }
- if (!this.filteredItems.length) {
- var noResults = this.$slots['no-results'] || this.$vuetify.t(this.noResultsText);
- return [this.genEmptyItems(noResults)];
- }
- return this.genFilteredItems();
- },
- genPrevIcon: function genPrevIcon() {
- var _this = this;
- return this.$createElement(_components_VBtn__WEBPACK_IMPORTED_MODULE_0__["default"], {
- props: {
- disabled: this.computedPagination.page === 1,
- icon: true,
- flat: true
- },
- on: {
- click: function click() {
- var page = _this.computedPagination.page;
- _this.updatePagination({ page: page - 1 });
- }
- },
- attrs: {
- 'aria-label': this.$vuetify.t('$vuetify.dataIterator.prevPage')
- }
- }, [this.$createElement(_components_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], this.$vuetify.rtl ? this.nextIcon : this.prevIcon)]);
- },
- genNextIcon: function genNextIcon() {
- var _this = this;
- var pagination = this.computedPagination;
- var disabled = pagination.rowsPerPage < 0 || pagination.page * pagination.rowsPerPage >= this.itemsLength || this.pageStop < 0;
- return this.$createElement(_components_VBtn__WEBPACK_IMPORTED_MODULE_0__["default"], {
- props: {
- disabled: disabled,
- icon: true,
- flat: true
- },
- on: {
- click: function click() {
- var page = _this.computedPagination.page;
- _this.updatePagination({ page: page + 1 });
- }
- },
- attrs: {
- 'aria-label': this.$vuetify.t('$vuetify.dataIterator.nextPage')
- }
- }, [this.$createElement(_components_VIcon__WEBPACK_IMPORTED_MODULE_1__["default"], this.$vuetify.rtl ? this.prevIcon : this.nextIcon)]);
- },
- genSelect: function genSelect() {
- var _this = this;
- return this.$createElement('div', {
- 'class': this.actionsSelectClasses
- }, [this.$vuetify.t(this.rowsPerPageText), this.$createElement(_components_VSelect__WEBPACK_IMPORTED_MODULE_2__["default"], {
- attrs: {
- 'aria-label': this.$vuetify.t(this.rowsPerPageText)
- },
- props: {
- items: this.computedRowsPerPageItems,
- value: this.computedPagination.rowsPerPage,
- hideDetails: true,
- menuProps: {
- auto: true,
- dark: this.dark,
- light: this.light,
- minWidth: '75px'
- }
- },
- on: {
- input: function input(val) {
- _this.updatePagination({
- page: 1,
- rowsPerPage: val
- });
- }
- }
- })]);
- },
- genPagination: function genPagination() {
- var _this = this;
- var _a;
- var pagination = '–';
- if (this.itemsLength) {
- var stop = this.itemsLength < this.pageStop || this.pageStop < 0 ? this.itemsLength : this.pageStop;
- pagination = this.$scopedSlots.pageText ? this.$scopedSlots.pageText({
- pageStart: this.pageStart + 1,
- pageStop: stop,
- itemsLength: this.itemsLength
- }) : (_a = this.$vuetify).t.apply(_a, __spread(['$vuetify.dataIterator.pageText'], [this.pageStart + 1, stop, this.itemsLength].map(function (n) {
- return Number(n).toLocaleString(_this.$vuetify.lang.current);
- })));
- }
- return this.$createElement('div', {
- 'class': this.actionsPaginationClasses
- }, [pagination]);
- },
- genActions: function genActions() {
- var rangeControls = this.$createElement('div', {
- 'class': this.actionsRangeControlsClasses
- }, [this.genPagination(), this.genPrevIcon(), this.genNextIcon()]);
- return [this.$createElement('div', {
- 'class': this.actionsClasses
- }, [this.$slots['actions-prepend'] ? this.$createElement('div', {}, this.$slots['actions-prepend']) : null, this.rowsPerPageItems.length > 1 ? this.genSelect() : null, rangeControls, this.$slots['actions-append'] ? this.$createElement('div', {}, this.$slots['actions-append']) : null])];
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/mixins/delayable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/delayable.ts ***!
- \*********************************/
- /*! 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__);
-
- /**
- * Delayable
- *
- * @mixin
- *
- * Changes the open or close delay time for elements
- */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend().extend({
- name: 'delayable',
- props: {
- openDelay: {
- type: [Number, String],
- default: 0
- },
- closeDelay: {
- type: [Number, String],
- default: 0
- }
- },
- data: function data() {
- return {
- openTimeout: undefined,
- closeTimeout: undefined
- };
- },
- methods: {
- /**
- * Clear any pending delay timers from executing
- */
- clearDelay: function clearDelay() {
- clearTimeout(this.openTimeout);
- clearTimeout(this.closeTimeout);
- },
- /**
- * Runs callback after a specified delay
- */
- runDelay: function runDelay(type, cb) {
- var _this = this;
- this.clearDelay();
- var delay = parseInt(this[type + "Delay"], 10);
- this[type + "Timeout"] = setTimeout(cb || function () {
- _this.isActive = { open: true, close: false }[type];
- }, delay);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/dependent.ts":
- /*!*********************************!*\
- !*** ./src/mixins/dependent.ts ***!
- \*********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/mixins */ "./src/util/mixins.ts");
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
-
- function searchChildren(children) {
- var results = [];
- for (var index = 0; index < children.length; index++) {
- var child = children[index];
- if (child.isActive && child.isDependent) {
- results.push(child);
- } else {
- results.push.apply(results, __spread(searchChildren(child.$children)));
- }
- }
- return results;
- }
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_0__["default"])().extend({
- name: 'dependent',
- data: function data() {
- return {
- closeDependents: true,
- isActive: false,
- isDependent: true
- };
- },
- watch: {
- isActive: function isActive(val) {
- if (val) return;
- var openDependents = this.getOpenDependents();
- for (var index = 0; index < openDependents.length; index++) {
- openDependents[index].isActive = false;
- }
- }
- },
- methods: {
- getOpenDependents: function getOpenDependents() {
- if (this.closeDependents) return searchChildren(this.$children);
- return [];
- },
- getOpenDependentElements: function getOpenDependentElements() {
- var result = [];
- var openDependents = this.getOpenDependents();
- for (var index = 0; index < openDependents.length; index++) {
- result.push.apply(result, __spread(openDependents[index].getClickableDependentElements()));
- }
- return result;
- },
- getClickableDependentElements: function getClickableDependentElements() {
- var result = [this.$el];
- if (this.$refs.content) result.push(this.$refs.content);
- if (this.overlay) result.push(this.overlay);
- result.push.apply(result, __spread(this.getOpenDependentElements()));
- return result;
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/detachable.js":
- /*!**********************************!*\
- !*** ./src/mixins/detachable.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _bootable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bootable */ "./src/mixins/bootable.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/console */ "./src/util/console.ts");
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
-
-
-
- function validateAttachTarget(val) {
- var type = typeof val === 'undefined' ? 'undefined' : _typeof(val);
- if (type === 'boolean' || type === 'string') return true;
- return val.nodeType === Node.ELEMENT_NODE;
- }
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'detachable',
- mixins: [_bootable__WEBPACK_IMPORTED_MODULE_0__["default"]],
- props: {
- attach: {
- type: null,
- default: false,
- validator: validateAttachTarget
- },
- contentClass: {
- default: ''
- }
- },
- data: function data() {
- return {
- hasDetached: false
- };
- },
- watch: {
- attach: function attach() {
- this.hasDetached = false;
- this.initDetach();
- },
- hasContent: 'initDetach'
- },
- beforeMount: function beforeMount() {
- var _this = this;
- this.$nextTick(function () {
- if (_this.activatorNode) {
- var activator = Array.isArray(_this.activatorNode) ? _this.activatorNode : [_this.activatorNode];
- activator.forEach(function (node) {
- node.elm && _this.$el.parentNode.insertBefore(node.elm, _this.$el);
- });
- }
- });
- },
- mounted: function mounted() {
- !this.lazy && this.initDetach();
- },
- deactivated: function deactivated() {
- this.isActive = false;
- },
- beforeDestroy: function beforeDestroy() {
- // IE11 Fix
- try {
- if (this.$refs.content) {
- this.$refs.content.parentNode.removeChild(this.$refs.content);
- }
- if (this.activatorNode) {
- var activator = Array.isArray(this.activatorNode) ? this.activatorNode : [this.activatorNode];
- activator.forEach(function (node) {
- node.elm && node.elm.parentNode.removeChild(node.elm);
- });
- }
- } catch (e) {
- console.log(e);
- }
- },
- methods: {
- getScopeIdAttrs: function getScopeIdAttrs() {
- var _a;
- var scopeId = this.$vnode && this.$vnode.context.$options._scopeId;
- return scopeId && (_a = {}, _a[scopeId] = '', _a);
- },
- initDetach: function initDetach() {
- if (this._isDestroyed || !this.$refs.content || this.hasDetached ||
- // Leave menu in place if attached
- // and dev has not changed target
- this.attach === '' || // If used as a boolean prop (<v-menu attach>)
- this.attach === true || // If bound to a boolean (<v-menu :attach="true">)
- this.attach === 'attach' // If bound as boolean prop in pug (v-menu(attach))
- ) return;
- var target;
- if (this.attach === false) {
- // Default, detach to app
- target = document.querySelector('[data-app]');
- } else if (typeof this.attach === 'string') {
- // CSS selector
- target = document.querySelector(this.attach);
- } else {
- // DOM Element
- target = this.attach;
- }
- if (!target) {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_1__["consoleWarn"])("Unable to locate target " + (this.attach || '[data-app]'), this);
- return;
- }
- target.insertBefore(this.$refs.content, target.firstChild);
- this.hasDetached = true;
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/mixins/elevatable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/elevatable.ts ***!
- \**********************************/
- /*! 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 default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'elevatable',
- props: {
- elevation: [Number, String]
- },
- computed: {
- computedElevation: function computedElevation() {
- return this.elevation;
- },
- elevationClasses: function elevationClasses() {
- var _a;
- if (!this.computedElevation) return {};
- return _a = {}, _a["elevation-" + this.computedElevation] = true, _a;
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/filterable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/filterable.ts ***!
- \**********************************/
- /*! 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__);
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'filterable',
- props: {
- noDataText: {
- type: String,
- default: '$vuetify.noDataText'
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/groupable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/groupable.ts ***!
- \*********************************/
- /*! exports provided: factory, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "factory", function() { return factory; });
- /* harmony import */ var _registrable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./registrable */ "./src/mixins/registrable.ts");
- // Mixins
-
- function factory(namespace, child, parent) {
- return Object(_registrable__WEBPACK_IMPORTED_MODULE_0__["inject"])(namespace, child, parent).extend({
- name: 'groupable',
- props: {
- activeClass: {
- type: String,
- default: function _default() {
- if (!this[namespace]) return undefined;
- return this[namespace].activeClass;
- }
- },
- disabled: Boolean
- },
- data: function data() {
- return {
- isActive: false
- };
- },
- computed: {
- groupClasses: function groupClasses() {
- var _a;
- if (!this.activeClass) return {};
- return _a = {}, _a[this.activeClass] = this.isActive, _a;
- }
- },
- created: function created() {
- this[namespace] && this[namespace].register(this);
- },
- beforeDestroy: function beforeDestroy() {
- this[namespace] && this[namespace].unregister(this);
- },
- methods: {
- toggle: function toggle() {
- this.$emit('change');
- }
- }
- });
- }
- /* eslint-disable-next-line no-redeclare */
- var Groupable = factory('itemGroup');
- /* harmony default export */ __webpack_exports__["default"] = (Groupable);
-
- /***/ }),
-
- /***/ "./src/mixins/loadable.ts":
- /*!********************************!*\
- !*** ./src/mixins/loadable.ts ***!
- \********************************/
- /*! 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 _components_VProgressLinear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/VProgressLinear */ "./src/components/VProgressLinear/index.ts");
-
-
- /**
- * Loadable
- *
- * @mixin
- *
- * Used to add linear progress bar to components
- * Can use a default bar with a specific color
- * or designate a custom progress linear bar
- */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend().extend({
- name: 'loadable',
- props: {
- loading: {
- type: [Boolean, String],
- default: false
- }
- },
- methods: {
- genProgress: function genProgress() {
- if (this.loading === false) return null;
- return this.$slots.progress || this.$createElement(_components_VProgressLinear__WEBPACK_IMPORTED_MODULE_1__["default"], {
- props: {
- color: this.loading === true || this.loading === '' ? this.color || 'primary' : this.loading,
- height: 2,
- indeterminate: true
- }
- });
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/maskable.js":
- /*!********************************!*\
- !*** ./src/mixins/maskable.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_mask__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/mask */ "./src/util/mask.ts");
- /**
- * Maskable
- *
- * @mixin
- *
- * Creates an input mask that is
- * generated from a masked str
- *
- * Example: mask="#### #### #### ####"
- */
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'maskable',
- props: {
- dontFillMaskBlanks: Boolean,
- mask: {
- type: [Object, String],
- default: null
- },
- returnMaskedValue: Boolean,
- value: { required: false }
- },
- data: function data(vm) {
- return {
- selection: 0,
- lazySelection: 0,
- lazyValue: vm.value,
- preDefined: {
- 'credit-card': '#### - #### - #### - ####',
- 'date': '##/##/####',
- 'date-with-time': '##/##/#### ##:##',
- 'phone': '(###) ### - ####',
- 'social': '###-##-####',
- 'time': '##:##',
- 'time-with-seconds': '##:##:##'
- }
- };
- },
- computed: {
- masked: function masked() {
- var preDefined = this.preDefined[this.mask];
- var mask = preDefined || this.mask || '';
- return mask.split('');
- }
- },
- watch: {
- /**
- * Make sure the cursor is in the correct
- * location when the mask changes
- */
- mask: function mask() {
- var _this = this;
- if (!this.$refs.input) return;
- var oldValue = this.$refs.input.value;
- var newValue = this.maskText(Object(_util_mask__WEBPACK_IMPORTED_MODULE_0__["unmaskText"])(this.lazyValue));
- var position = 0;
- var selection = this.selection;
- for (var index = 0; index < selection; index++) {
- Object(_util_mask__WEBPACK_IMPORTED_MODULE_0__["isMaskDelimiter"])(oldValue[index]) || position++;
- }
- selection = 0;
- if (newValue) {
- for (var index = 0; index < newValue.length; index++) {
- Object(_util_mask__WEBPACK_IMPORTED_MODULE_0__["isMaskDelimiter"])(newValue[index]) || position--;
- selection++;
- if (position <= 0) break;
- }
- }
- this.$nextTick(function () {
- _this.$refs.input.value = newValue;
- _this.setCaretPosition(selection);
- });
- }
- },
- beforeMount: function beforeMount() {
- if (!this.mask || this.value == null || !this.returnMaskedValue) return;
- var value = this.maskText(this.value);
- // See if masked value does not
- // match the user given value
- if (value === this.value) return;
- this.$emit('input', value);
- },
- methods: {
- setCaretPosition: function setCaretPosition(selection) {
- var _this = this;
- this.selection = selection;
- window.setTimeout(function () {
- _this.$refs.input && _this.$refs.input.setSelectionRange(_this.selection, _this.selection);
- }, 0);
- },
- updateRange: function updateRange() {
- /* istanbul ignore next */
- if (!this.$refs.input) return;
- var newValue = this.maskText(this.lazyValue);
- var selection = 0;
- this.$refs.input.value = newValue;
- if (newValue) {
- for (var index = 0; index < newValue.length; index++) {
- if (this.lazySelection <= 0) break;
- Object(_util_mask__WEBPACK_IMPORTED_MODULE_0__["isMaskDelimiter"])(newValue[index]) || this.lazySelection--;
- selection++;
- }
- }
- this.setCaretPosition(selection);
- // this.$emit() must occur only when all internal values are correct
- this.$emit('input', this.returnMaskedValue ? this.$refs.input.value : this.lazyValue);
- },
- maskText: function maskText(text) {
- return this.mask ? Object(_util_mask__WEBPACK_IMPORTED_MODULE_0__["maskText"])(text, this.masked, this.dontFillMaskBlanks) : text;
- },
- unmaskText: function unmaskText(text) {
- return this.mask && !this.returnMaskedValue ? Object(_util_mask__WEBPACK_IMPORTED_MODULE_0__["unmaskText"])(text) : text;
- },
- // When the input changes and is
- // re-created, ensure that the
- // caret location is correct
- setSelectionRange: function setSelectionRange() {
- this.$nextTick(this.updateRange);
- },
- resetSelections: function resetSelections(input) {
- if (!input.selectionEnd) return;
- this.selection = input.selectionEnd;
- this.lazySelection = 0;
- for (var index = 0; index < this.selection; index++) {
- Object(_util_mask__WEBPACK_IMPORTED_MODULE_0__["isMaskDelimiter"])(input.value[index]) || this.lazySelection++;
- }
- }
- }
- });
-
- /***/ }),
-
- /***/ "./src/mixins/measurable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/measurable.ts ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/helpers */ "./src/util/helpers.ts");
- /* 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__);
- // Helpers
-
- // Types
-
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_1___default.a.extend({
- name: 'measurable',
- props: {
- height: [Number, String],
- maxHeight: [Number, String],
- maxWidth: [Number, String],
- minHeight: [Number, String],
- minWidth: [Number, String],
- width: [Number, String]
- },
- computed: {
- measurableStyles: function measurableStyles() {
- var styles = {};
- var height = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.height);
- var minHeight = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.minHeight);
- var minWidth = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.minWidth);
- var maxHeight = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.maxHeight);
- var maxWidth = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.maxWidth);
- var width = Object(_util_helpers__WEBPACK_IMPORTED_MODULE_0__["convertToUnit"])(this.width);
- if (height) styles.height = height;
- if (minHeight) styles.minHeight = minHeight;
- if (minWidth) styles.minWidth = minWidth;
- if (maxHeight) styles.maxHeight = maxHeight;
- if (maxWidth) styles.maxWidth = maxWidth;
- if (width) styles.width = width;
- return styles;
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/menuable.js":
- /*!********************************!*\
- !*** ./src/mixins/menuable.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 _positionable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./positionable */ "./src/mixins/positionable.ts");
- /* harmony import */ var _stackable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stackable */ "./src/mixins/stackable.ts");
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
-
-
-
-
- /* eslint-disable object-property-newline */
- var dimensions = {
- activator: {
- top: 0, left: 0,
- bottom: 0, right: 0,
- width: 0, height: 0,
- offsetTop: 0, scrollHeight: 0
- },
- content: {
- top: 0, left: 0,
- bottom: 0, right: 0,
- width: 0, height: 0,
- offsetTop: 0, scrollHeight: 0
- },
- hasWindow: false
- };
- /* eslint-enable object-property-newline */
- /**
- * Menuable
- *
- * @mixin
- *
- * Used for fixed or absolutely positioning
- * elements within the DOM
- * Can calculate X and Y axis overflows
- * As well as be manually positioned
- */
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'menuable',
- mixins: [_positionable__WEBPACK_IMPORTED_MODULE_1__["default"], _stackable__WEBPACK_IMPORTED_MODULE_2__["default"]],
- props: {
- activator: {
- default: null,
- validator: function validator(val) {
- return ['string', 'object'].includes(typeof val === 'undefined' ? 'undefined' : _typeof(val));
- }
- },
- allowOverflow: Boolean,
- inputActivator: Boolean,
- light: Boolean,
- dark: Boolean,
- maxWidth: {
- type: [Number, String],
- default: 'auto'
- },
- minWidth: [Number, String],
- nudgeBottom: {
- type: [Number, String],
- default: 0
- },
- nudgeLeft: {
- type: [Number, String],
- default: 0
- },
- nudgeRight: {
- type: [Number, String],
- default: 0
- },
- nudgeTop: {
- type: [Number, String],
- default: 0
- },
- nudgeWidth: {
- type: [Number, String],
- default: 0
- },
- offsetOverflow: Boolean,
- positionX: {
- type: Number,
- default: null
- },
- positionY: {
- type: Number,
- default: null
- },
- zIndex: {
- type: [Number, String],
- default: null
- }
- },
- data: function data() {
- return {
- absoluteX: 0,
- absoluteY: 0,
- activatorFixed: false,
- dimensions: Object.assign({}, dimensions),
- isContentActive: false,
- pageWidth: 0,
- pageYOffset: 0,
- stackClass: 'v-menu__content--active',
- stackMinZIndex: 6
- };
- },
- computed: {
- computedLeft: function computedLeft() {
- var a = this.dimensions.activator;
- var c = this.dimensions.content;
- var activatorLeft = (this.isAttached ? a.offsetLeft : a.left) || 0;
- var minWidth = Math.max(a.width, c.width);
- var left = 0;
- left += this.left ? activatorLeft - (minWidth - a.width) : activatorLeft;
- if (this.offsetX) {
- var maxWidth = isNaN(this.maxWidth) ? a.width : Math.min(a.width, this.maxWidth);
- left += this.left ? -maxWidth : a.width;
- }
- if (this.nudgeLeft) left -= parseInt(this.nudgeLeft);
- if (this.nudgeRight) left += parseInt(this.nudgeRight);
- return left;
- },
- computedTop: function computedTop() {
- var a = this.dimensions.activator;
- var c = this.dimensions.content;
- var top = 0;
- if (this.top) top += a.height - c.height;
- if (this.isAttached) top += a.offsetTop;else top += a.top + this.pageYOffset;
- if (this.offsetY) top += this.top ? -a.height : a.height;
- if (this.nudgeTop) top -= parseInt(this.nudgeTop);
- if (this.nudgeBottom) top += parseInt(this.nudgeBottom);
- return top;
- },
- hasActivator: function hasActivator() {
- return !!this.$slots.activator || !!this.$scopedSlots.activator || this.activator || this.inputActivator;
- },
- isAttached: function isAttached() {
- return this.attach !== false;
- }
- },
- watch: {
- disabled: function disabled(val) {
- val && this.callDeactivate();
- },
- isActive: function isActive(val) {
- if (this.disabled) return;
- val ? this.callActivate() : this.callDeactivate();
- },
- positionX: 'updateDimensions',
- positionY: 'updateDimensions'
- },
- beforeMount: function beforeMount() {
- this.checkForWindow();
- },
- methods: {
- absolutePosition: function absolutePosition() {
- return {
- offsetTop: 0,
- offsetLeft: 0,
- scrollHeight: 0,
- top: this.positionY || this.absoluteY,
- bottom: this.positionY || this.absoluteY,
- left: this.positionX || this.absoluteX,
- right: this.positionX || this.absoluteX,
- height: 0,
- width: 0
- };
- },
- activate: function activate() {},
- calcLeft: function calcLeft(menuWidth) {
- return (this.isAttached ? this.computedLeft : this.calcXOverflow(this.computedLeft, menuWidth)) + "px";
- },
- calcTop: function calcTop() {
- return (this.isAttached ? this.computedTop : this.calcYOverflow(this.computedTop)) + "px";
- },
- calcXOverflow: function calcXOverflow(left, menuWidth) {
- var xOverflow = left + menuWidth - this.pageWidth + 12;
- if ((!this.left || this.right) && xOverflow > 0) {
- left = Math.max(left - xOverflow, 0);
- } else {
- left = Math.max(left, 12);
- }
- return left + this.getOffsetLeft();
- },
- calcYOverflow: function calcYOverflow(top) {
- var documentHeight = this.getInnerHeight();
- var toTop = this.pageYOffset + documentHeight;
- var activator = this.dimensions.activator;
- var contentHeight = this.dimensions.content.height;
- var totalHeight = top + contentHeight;
- var isOverflowing = toTop < totalHeight;
- // If overflowing bottom and offset
- // TODO: set 'bottom' position instead of 'top'
- if (isOverflowing && this.offsetOverflow &&
- // If we don't have enough room to offset
- // the overflow, don't offset
- activator.top > contentHeight) {
- top = this.pageYOffset + (activator.top - contentHeight);
- // If overflowing bottom
- } else if (isOverflowing && !this.allowOverflow) {
- top = toTop - contentHeight - 12;
- // If overflowing top
- } else if (top < this.pageYOffset && !this.allowOverflow) {
- top = this.pageYOffset + 12;
- }
- return top < 12 ? 12 : top;
- },
- callActivate: function callActivate() {
- if (!this.hasWindow) return;
- this.activate();
- },
- callDeactivate: function callDeactivate() {
- this.isContentActive = false;
- this.deactivate();
- },
- checkForWindow: function checkForWindow() {
- if (!this.hasWindow) {
- this.hasWindow = typeof window !== 'undefined';
- }
- },
- checkForPageYOffset: function checkForPageYOffset() {
- if (this.hasWindow) {
- this.pageYOffset = this.activatorFixed ? 0 : this.getOffsetTop();
- }
- },
- checkActivatorFixed: function checkActivatorFixed() {
- if (this.attach !== false) return;
- var el = this.getActivator();
- while (el) {
- if (window.getComputedStyle(el).position === 'fixed') {
- this.activatorFixed = true;
- return;
- }
- el = el.offsetParent;
- }
- this.activatorFixed = false;
- },
- deactivate: function deactivate() {},
- getActivator: function getActivator(e) {
- if (this.inputActivator) {
- return this.$el.querySelector('.v-input__slot');
- }
- if (this.activator) {
- return typeof this.activator === 'string' ? document.querySelector(this.activator) : this.activator;
- }
- if (this.$refs.activator) {
- return this.$refs.activator.children.length > 0 ? this.$refs.activator.children[0] : this.$refs.activator;
- }
- if (e) {
- this.activatedBy = e.currentTarget || e.target;
- return this.activatedBy;
- }
- if (this.activatedBy) return this.activatedBy;
- if (this.activatorNode) {
- var activator = Array.isArray(this.activatorNode) ? this.activatorNode[0] : this.activatorNode;
- var el = activator && activator.elm;
- if (el) return el;
- }
- },
- getInnerHeight: function getInnerHeight() {
- if (!this.hasWindow) return 0;
- return window.innerHeight || document.documentElement.clientHeight;
- },
- getOffsetLeft: function getOffsetLeft() {
- if (!this.hasWindow) return 0;
- return window.pageXOffset || document.documentElement.scrollLeft;
- },
- getOffsetTop: function getOffsetTop() {
- if (!this.hasWindow) return 0;
- return window.pageYOffset || document.documentElement.scrollTop;
- },
- getRoundedBoundedClientRect: function getRoundedBoundedClientRect(el) {
- var rect = el.getBoundingClientRect();
- return {
- top: Math.round(rect.top),
- left: Math.round(rect.left),
- bottom: Math.round(rect.bottom),
- right: Math.round(rect.right),
- width: Math.round(rect.width),
- height: Math.round(rect.height)
- };
- },
- measure: function measure(el) {
- if (!el || !this.hasWindow) return null;
- var rect = this.getRoundedBoundedClientRect(el);
- // Account for activator margin
- if (this.isAttached) {
- var style = window.getComputedStyle(el);
- rect.left = parseInt(style.marginLeft);
- rect.top = parseInt(style.marginTop);
- }
- return rect;
- },
- sneakPeek: function sneakPeek(cb) {
- var _this = this;
- requestAnimationFrame(function () {
- var el = _this.$refs.content;
- if (!el || _this.isShown(el)) return cb();
- el.style.display = 'inline-block';
- cb();
- el.style.display = 'none';
- });
- },
- startTransition: function startTransition() {
- var _this = this;
- return new Promise(function (resolve) {
- return requestAnimationFrame(function () {
- _this.isContentActive = _this.hasJustFocused = _this.isActive;
- resolve();
- });
- });
- },
- isShown: function isShown(el) {
- return el.style.display !== 'none';
- },
- updateDimensions: function updateDimensions() {
- var _this = this;
- this.checkForWindow();
- this.checkActivatorFixed();
- this.checkForPageYOffset();
- this.pageWidth = document.documentElement.clientWidth;
- var dimensions = {};
- // Activator should already be shown
- if (!this.hasActivator || this.absolute) {
- dimensions.activator = this.absolutePosition();
- } else {
- var activator = this.getActivator();
- dimensions.activator = this.measure(activator);
- dimensions.activator.offsetLeft = activator.offsetLeft;
- if (this.isAttached) {
- // account for css padding causing things to not line up
- // this is mostly for v-autocomplete, hopefully it won't break anything
- dimensions.activator.offsetTop = activator.offsetTop;
- } else {
- dimensions.activator.offsetTop = 0;
- }
- }
- // Display and hide to get dimensions
- this.sneakPeek(function () {
- dimensions.content = _this.measure(_this.$refs.content);
- _this.dimensions = dimensions;
- });
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/overlayable.ts":
- /*!***********************************!*\
- !*** ./src/mixins/overlayable.ts ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _stylus_components_overlay_styl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../stylus/components/_overlay.styl */ "./src/stylus/components/_overlay.styl");
- /* harmony import */ var _stylus_components_overlay_styl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stylus_components_overlay_styl__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/helpers */ "./src/util/helpers.ts");
- /* 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__);
- // Styles
-
- // Utilities
-
- // Types
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_2___default.a.extend().extend({
- name: 'overlayable',
- props: {
- hideOverlay: Boolean
- },
- data: function data() {
- return {
- overlay: null,
- overlayOffset: 0,
- overlayTimeout: undefined,
- overlayTransitionDuration: 500 + 150 // transition + delay
- };
- },
- watch: {
- hideOverlay: function hideOverlay(value) {
- if (value) this.removeOverlay();else this.genOverlay();
- }
- },
- beforeDestroy: function beforeDestroy() {
- this.removeOverlay();
- },
- methods: {
- genOverlay: function genOverlay() {
- var _this = this;
- // If fn is called and timeout is active
- // or overlay already exists
- // cancel removal of overlay and re-add active
- if (!this.isActive || this.hideOverlay || this.isActive && this.overlayTimeout || this.overlay) {
- clearTimeout(this.overlayTimeout);
- return this.overlay && this.overlay.classList.add('v-overlay--active');
- }
- this.overlay = document.createElement('div');
- this.overlay.className = 'v-overlay';
- if (this.absolute) this.overlay.className += ' v-overlay--absolute';
- this.hideScroll();
- var parent = this.absolute ? this.$el.parentNode : document.querySelector('[data-app]');
- parent && parent.insertBefore(this.overlay, parent.firstChild);
- // eslint-disable-next-line no-unused-expressions
- this.overlay.clientHeight; // Force repaint
- requestAnimationFrame(function () {
- // https://github.com/vuetifyjs/vuetify/issues/4678
- if (!_this.overlay) return;
- _this.overlay.className += ' v-overlay--active';
- if (_this.activeZIndex !== undefined) {
- _this.overlay.style.zIndex = String(_this.activeZIndex - 1);
- }
- });
- return true;
- },
- /** removeOverlay(false) will not restore the scollbar afterwards */
- removeOverlay: function removeOverlay(showScroll) {
- var _this = this;
- if (showScroll === void 0) {
- showScroll = true;
- }
- if (!this.overlay) {
- return showScroll && this.showScroll();
- }
- this.overlay.classList.remove('v-overlay--active');
- this.overlayTimeout = window.setTimeout(function () {
- // IE11 Fix
- try {
- if (_this.overlay && _this.overlay.parentNode) {
- _this.overlay.parentNode.removeChild(_this.overlay);
- }
- _this.overlay = null;
- showScroll && _this.showScroll();
- } catch (e) {
- console.log(e);
- }
- clearTimeout(_this.overlayTimeout);
- _this.overlayTimeout = undefined;
- }, this.overlayTransitionDuration);
- },
- scrollListener: function scrollListener(e) {
- if (e.type === 'keydown') {
- if (['INPUT', 'TEXTAREA', 'SELECT'].includes(e.target.tagName) ||
- // https://github.com/vuetifyjs/vuetify/issues/4715
- e.target.isContentEditable) return;
- var up = [_util_helpers__WEBPACK_IMPORTED_MODULE_1__["keyCodes"].up, _util_helpers__WEBPACK_IMPORTED_MODULE_1__["keyCodes"].pageup];
- var down = [_util_helpers__WEBPACK_IMPORTED_MODULE_1__["keyCodes"].down, _util_helpers__WEBPACK_IMPORTED_MODULE_1__["keyCodes"].pagedown];
- if (up.includes(e.keyCode)) {
- e.deltaY = -1;
- } else if (down.includes(e.keyCode)) {
- e.deltaY = 1;
- } else {
- return;
- }
- }
- if (e.target === this.overlay || e.type !== 'keydown' && e.target === document.body || this.checkPath(e)) e.preventDefault();
- },
- hasScrollbar: function hasScrollbar(el) {
- if (!el || el.nodeType !== Node.ELEMENT_NODE) return false;
- var style = window.getComputedStyle(el);
- return ['auto', 'scroll'].includes(style.overflowY) && el.scrollHeight > el.clientHeight;
- },
- shouldScroll: function shouldScroll(el, delta) {
- if (el.scrollTop === 0 && delta < 0) return true;
- return el.scrollTop + el.clientHeight === el.scrollHeight && delta > 0;
- },
- isInside: function isInside(el, parent) {
- if (el === parent) {
- return true;
- } else if (el === null || el === document.body) {
- return false;
- } else {
- return this.isInside(el.parentNode, parent);
- }
- },
- checkPath: function checkPath(e) {
- var path = e.path || this.composedPath(e);
- var delta = e.deltaY;
- if (e.type === 'keydown' && path[0] === document.body) {
- var dialog = this.$refs.dialog;
- var selected = window.getSelection().anchorNode;
- if (dialog && this.hasScrollbar(dialog) && this.isInside(selected, dialog)) {
- return this.shouldScroll(dialog, delta);
- }
- return true;
- }
- for (var index = 0; index < path.length; index++) {
- var el = path[index];
- if (el === document) return true;
- if (el === document.documentElement) return true;
- if (el === this.$refs.content) return true;
- if (this.hasScrollbar(el)) return this.shouldScroll(el, delta);
- }
- return true;
- },
- /**
- * Polyfill for Event.prototype.composedPath
- */
- composedPath: function composedPath(e) {
- if (e.composedPath) return e.composedPath();
- var path = [];
- var el = e.target;
- while (el) {
- path.push(el);
- if (el.tagName === 'HTML') {
- path.push(document);
- path.push(window);
- return path;
- }
- el = el.parentElement;
- }
- return path;
- },
- hideScroll: function hideScroll() {
- if (this.$vuetify.breakpoint.smAndDown) {
- document.documentElement.classList.add('overflow-y-hidden');
- } else {
- Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["addPassiveEventListener"])(window, 'wheel', this.scrollListener, { passive: false });
- window.addEventListener('keydown', this.scrollListener);
- }
- },
- showScroll: function showScroll() {
- document.documentElement.classList.remove('overflow-y-hidden');
- window.removeEventListener('wheel', this.scrollListener);
- window.removeEventListener('keydown', this.scrollListener);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/picker-button.ts":
- /*!*************************************!*\
- !*** ./src/mixins/picker-button.ts ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _colorable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/mixins */ "./src/util/mixins.ts");
- // Mixins
-
- // Utilities
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_colorable__WEBPACK_IMPORTED_MODULE_0__["default"]).extend({
- methods: {
- genPickerButton: function genPickerButton(prop, value, content, readonly, staticClass) {
- var _this = this;
- if (readonly === void 0) {
- readonly = false;
- }
- if (staticClass === void 0) {
- staticClass = '';
- }
- var active = this[prop] === value;
- var click = function click(event) {
- event.stopPropagation();
- _this.$emit("update:" + prop, value);
- };
- return this.$createElement('div', {
- staticClass: ("v-picker__title__btn " + staticClass).trim(),
- 'class': {
- 'v-picker__title__btn--active': active,
- 'v-picker__title__btn--readonly': readonly
- },
- on: active || readonly ? undefined : { click: click }
- }, Array.isArray(content) ? content : [content]);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/picker.ts":
- /*!******************************!*\
- !*** ./src/mixins/picker.ts ***!
- \******************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _components_VPicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/VPicker */ "./src/components/VPicker/index.ts");
- /* harmony import */ var _colorable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _themeable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/mixins */ "./src/util/mixins.ts");
- // Components
-
- // Mixins
-
-
- // Utils
-
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_3__["default"])(_colorable__WEBPACK_IMPORTED_MODULE_1__["default"], _themeable__WEBPACK_IMPORTED_MODULE_2__["default"]
- /* @vue/component */
- ).extend({
- name: 'picker',
- props: {
- fullWidth: Boolean,
- headerColor: String,
- landscape: Boolean,
- noTitle: Boolean,
- width: {
- type: [Number, String],
- default: 290
- }
- },
- methods: {
- genPickerTitle: function genPickerTitle() {
- return null;
- },
- genPickerBody: function genPickerBody() {
- return null;
- },
- genPickerActionsSlot: function genPickerActionsSlot() {
- return this.$scopedSlots.default ? this.$scopedSlots.default({
- save: this.save,
- cancel: this.cancel
- }) : this.$slots.default;
- },
- genPicker: function genPicker(staticClass) {
- var children = [];
- if (!this.noTitle) {
- var title = this.genPickerTitle();
- title && children.push(title);
- }
- var body = this.genPickerBody();
- body && children.push(body);
- children.push(this.$createElement('template', { slot: 'actions' }, [this.genPickerActionsSlot()]));
- return this.$createElement(_components_VPicker__WEBPACK_IMPORTED_MODULE_0__["default"], {
- staticClass: staticClass,
- props: {
- color: this.headerColor || this.color,
- dark: this.dark,
- fullWidth: this.fullWidth,
- landscape: this.landscape,
- light: this.light,
- width: this.width
- }
- }, children);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/positionable.ts":
- /*!************************************!*\
- !*** ./src/mixins/positionable.ts ***!
- \************************************/
- /*! exports provided: factory, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "factory", function() { return factory; });
- /* 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 _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/helpers */ "./src/util/helpers.ts");
-
-
- var availableProps = {
- absolute: Boolean,
- bottom: Boolean,
- fixed: Boolean,
- left: Boolean,
- right: Boolean,
- top: Boolean
- };
- function factory(selected) {
- if (selected === void 0) {
- selected = [];
- }
- return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'positionable',
- props: selected.length ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["filterObjectOnKeys"])(availableProps, selected) : availableProps
- });
- }
- /* harmony default export */ __webpack_exports__["default"] = (factory());
- // Add a `*` before the second `/`
- /* Tests /
- let single = factory(['top']).extend({
- created () {
- this.top
- this.bottom
- this.absolute
- }
- })
-
- let some = factory(['top', 'bottom']).extend({
- created () {
- this.top
- this.bottom
- this.absolute
- }
- })
-
- let all = factory().extend({
- created () {
- this.top
- this.bottom
- this.absolute
- this.foobar
- }
- })
- /**/
-
- /***/ }),
-
- /***/ "./src/mixins/proxyable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/proxyable.ts ***!
- \*********************************/
- /*! exports provided: factory, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "factory", function() { return factory; });
- /* 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__);
-
- function factory(prop, event) {
- if (prop === void 0) {
- prop = 'value';
- }
- if (event === void 0) {
- event = 'change';
- }
- var _a, _b;
- return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'proxyable',
- model: {
- prop: prop,
- event: event
- },
- props: (_a = {}, _a[prop] = {
- required: false
- }, _a),
- data: function data() {
- return {
- internalLazyValue: this[prop]
- };
- },
- computed: {
- internalValue: {
- get: function get() {
- return this.internalLazyValue;
- },
- set: function set(val) {
- if (val === this.internalLazyValue) return;
- this.internalLazyValue = val;
- this.$emit(event, val);
- }
- }
- },
- watch: (_b = {}, _b[prop] = function (val) {
- this.internalLazyValue = val;
- }, _b)
- });
- }
- /* eslint-disable-next-line no-redeclare */
- var Proxyable = factory();
- /* harmony default export */ __webpack_exports__["default"] = (Proxyable);
-
- /***/ }),
-
- /***/ "./src/mixins/registrable.ts":
- /*!***********************************!*\
- !*** ./src/mixins/registrable.ts ***!
- \***********************************/
- /*! exports provided: inject, provide */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inject", function() { return inject; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "provide", function() { return provide; });
- /* 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 _util_console__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/console */ "./src/util/console.ts");
-
-
- function generateWarning(child, parent) {
- return function () {
- return Object(_util_console__WEBPACK_IMPORTED_MODULE_1__["consoleWarn"])("The " + child + " component must be used inside a " + parent);
- };
- }
- function inject(namespace, child, parent) {
- var _a;
- var defaultImpl = child && parent ? {
- register: generateWarning(child, parent),
- unregister: generateWarning(child, parent)
- } : null;
- return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'registrable-inject',
- inject: (_a = {}, _a[namespace] = {
- default: defaultImpl
- }, _a)
- });
- }
- function provide(namespace) {
- return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'registrable-provide',
- methods: {
- register: null,
- unregister: null
- },
- provide: function provide() {
- var _a;
- return _a = {}, _a[namespace] = {
- register: this.register,
- unregister: this.unregister
- }, _a;
- }
- });
- }
-
- /***/ }),
-
- /***/ "./src/mixins/returnable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/returnable.ts ***!
- \**********************************/
- /*! 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__);
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'returnable',
- props: {
- returnValue: null
- },
- data: function data() {
- return {
- isActive: false,
- originalValue: null
- };
- },
- watch: {
- isActive: function isActive(val) {
- if (val) {
- this.originalValue = this.returnValue;
- } else {
- this.$emit('update:returnValue', this.originalValue);
- }
- }
- },
- methods: {
- save: function save(value) {
- var _this = this;
- this.originalValue = value;
- setTimeout(function () {
- _this.isActive = false;
- });
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/rippleable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/rippleable.ts ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _directives_ripple__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../directives/ripple */ "./src/directives/ripple.ts");
- /* 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__);
- // Directives
-
- // Types
-
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_1___default.a.extend({
- name: 'rippleable',
- directives: { Ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_0__["default"] },
- props: {
- ripple: {
- type: [Boolean, Object],
- default: true
- }
- },
- methods: {
- genRipple: function genRipple(data) {
- if (data === void 0) {
- data = {};
- }
- if (!this.ripple) return null;
- data.staticClass = 'v-input--selection-controls__ripple';
- data.directives = data.directives || [];
- data.directives.push({
- name: 'ripple',
- value: { center: true }
- });
- data.on = Object.assign({
- click: this.onChange
- }, this.$listeners);
- return this.$createElement('div', data);
- },
- onChange: function onChange() {}
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/routable.ts":
- /*!********************************!*\
- !*** ./src/mixins/routable.ts ***!
- \********************************/
- /*! 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 _directives_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../directives/ripple */ "./src/directives/ripple.ts");
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
-
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'routable',
- directives: {
- Ripple: _directives_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
- },
- props: {
- activeClass: String,
- append: Boolean,
- disabled: Boolean,
- exact: {
- type: Boolean,
- default: undefined
- },
- exactActiveClass: String,
- href: [String, Object],
- to: [String, Object],
- nuxt: Boolean,
- replace: Boolean,
- ripple: [Boolean, Object],
- tag: String,
- target: String
- },
- computed: {
- computedRipple: function computedRipple() {
- return this.ripple && !this.disabled ? this.ripple : false;
- }
- },
- methods: {
- click: function click(e) {
- this.$emit('click', e);
- },
- generateRouteLink: function generateRouteLink(classes) {
- var _a;
- var exact = this.exact;
- var tag;
- var data = (_a = {
- attrs: { disabled: this.disabled },
- class: classes,
- props: {},
- directives: [{
- name: 'ripple',
- value: this.computedRipple
- }]
- }, _a[this.to ? 'nativeOn' : 'on'] = __assign({}, this.$listeners, { click: this.click }), _a);
- if (typeof this.exact === 'undefined') {
- exact = this.to === '/' || this.to === Object(this.to) && this.to.path === '/';
- }
- if (this.to) {
- // Add a special activeClass hook
- // for component level styles
- var activeClass = this.activeClass;
- var exactActiveClass = this.exactActiveClass || activeClass;
- // TODO: apply only in VListTile
- if (this.proxyClass) {
- activeClass += ' ' + this.proxyClass;
- exactActiveClass += ' ' + this.proxyClass;
- }
- tag = this.nuxt ? 'nuxt-link' : 'router-link';
- Object.assign(data.props, {
- to: this.to,
- exact: exact,
- activeClass: activeClass,
- exactActiveClass: exactActiveClass,
- append: this.append,
- replace: this.replace
- });
- } else {
- tag = this.href && 'a' || this.tag || 'a';
- if (tag === 'a' && this.href) data.attrs.href = this.href;
- }
- if (this.target) data.attrs.target = this.target;
- return { tag: tag, data: data };
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/selectable.js":
- /*!**********************************!*\
- !*** ./src/mixins/selectable.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _components_VInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/VInput */ "./src/components/VInput/index.ts");
- /* harmony import */ var _rippleable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rippleable */ "./src/mixins/rippleable.ts");
- /* harmony import */ var _comparable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./comparable */ "./src/mixins/comparable.ts");
- // Components
-
- // Mixins
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (_components_VInput__WEBPACK_IMPORTED_MODULE_0__["default"].extend({
- name: 'selectable',
- mixins: [_rippleable__WEBPACK_IMPORTED_MODULE_1__["default"], _comparable__WEBPACK_IMPORTED_MODULE_2__["default"]],
- model: {
- prop: 'inputValue',
- event: 'change'
- },
- props: {
- color: {
- type: String,
- default: 'accent'
- },
- id: String,
- inputValue: null,
- falseValue: null,
- trueValue: null,
- multiple: {
- type: Boolean,
- default: null
- },
- label: String
- },
- data: function data(vm) {
- return {
- lazyValue: vm.inputValue
- };
- },
- computed: {
- computedColor: function computedColor() {
- return this.isActive ? this.color : this.validationState;
- },
- isMultiple: function isMultiple() {
- return this.multiple === true || this.multiple === null && Array.isArray(this.internalValue);
- },
- isActive: function isActive() {
- var _this = this;
- var value = this.value;
- var input = this.internalValue;
- if (this.isMultiple) {
- if (!Array.isArray(input)) return false;
- return input.some(function (item) {
- return _this.valueComparator(item, value);
- });
- }
- if (this.trueValue === undefined || this.falseValue === undefined) {
- return value ? this.valueComparator(value, input) : Boolean(input);
- }
- return this.valueComparator(input, this.trueValue);
- },
- isDirty: function isDirty() {
- return this.isActive;
- }
- },
- watch: {
- inputValue: function inputValue(val) {
- this.lazyValue = val;
- }
- },
- methods: {
- genLabel: function genLabel() {
- if (!this.hasLabel) return null;
- var label = _components_VInput__WEBPACK_IMPORTED_MODULE_0__["default"].options.methods.genLabel.call(this);
- label.data.on = { click: this.onChange };
- return label;
- },
- genInput: function genInput(type, attrs) {
- return this.$createElement('input', {
- attrs: Object.assign({
- 'aria-label': this.label,
- 'aria-checked': this.isActive.toString(),
- disabled: this.isDisabled,
- id: this.id,
- role: type,
- type: type
- }, attrs),
- domProps: {
- value: this.value,
- checked: this.isActive
- },
- on: {
- blur: this.onBlur,
- change: this.onChange,
- focus: this.onFocus,
- keydown: this.onKeydown
- },
- ref: 'input'
- });
- },
- onBlur: function onBlur() {
- this.isFocused = false;
- },
- onChange: function onChange() {
- var _this = this;
- if (this.isDisabled) return;
- var value = this.value;
- var input = this.internalValue;
- if (this.isMultiple) {
- if (!Array.isArray(input)) {
- input = [];
- }
- var length = input.length;
- input = input.filter(function (item) {
- return !_this.valueComparator(item, value);
- });
- if (input.length === length) {
- input.push(value);
- }
- } else if (this.trueValue !== undefined && this.falseValue !== undefined) {
- input = this.valueComparator(input, this.trueValue) ? this.falseValue : this.trueValue;
- } else if (value) {
- input = this.valueComparator(input, value) ? null : value;
- } else {
- input = !input;
- }
- this.validate(true, input);
- this.internalValue = input;
- },
- onFocus: function onFocus() {
- this.isFocused = true;
- },
- /** @abstract */
- onKeydown: function onKeydown(e) {}
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/sizeable.ts":
- /*!********************************!*\
- !*** ./src/mixins/sizeable.ts ***!
- \********************************/
- /*! 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 default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'sizeable',
- props: {
- large: Boolean,
- medium: Boolean,
- size: {
- type: [Number, String]
- },
- small: Boolean,
- xLarge: Boolean
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/ssr-bootable.ts":
- /*!************************************!*\
- !*** ./src/mixins/ssr-bootable.ts ***!
- \************************************/
- /*! 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__);
-
- /**
- * SSRBootable
- *
- * @mixin
- *
- * Used in layout components (drawer, toolbar, content)
- * to avoid an entry animation when using SSR
- */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'ssr-bootable',
- data: function data() {
- return {
- isBooted: false
- };
- },
- mounted: function mounted() {
- var _this = this;
- // Use setAttribute instead of dataset
- // because dataset does not work well
- // with unit tests
- window.requestAnimationFrame(function () {
- _this.$el.setAttribute('data-booted', 'true');
- _this.isBooted = true;
- });
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/stackable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/stackable.ts ***!
- \*********************************/
- /*! 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 _util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/helpers */ "./src/util/helpers.ts");
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
- var __spread = undefined && undefined.__spread || function () {
- for (var ar = [], i = 0; i < arguments.length; i++) {
- ar = ar.concat(__read(arguments[i]));
- }return ar;
- };
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend().extend({
- name: 'stackable',
- data: function data() {
- return {
- stackClass: 'unpecified',
- stackElement: null,
- stackExclude: null,
- stackMinZIndex: 0,
- isActive: false
- };
- },
- computed: {
- activeZIndex: function activeZIndex() {
- if (typeof window === 'undefined') return 0;
- var content = this.stackElement || this.$refs.content;
- // Return current zindex if not active
- var index = !this.isActive ? Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getZIndex"])(content) : this.getMaxZIndex(this.stackExclude || [content]) + 2;
- if (index == null) return index;
- // Return max current z-index (excluding self) + 2
- // (2 to leave room for an overlay below, if needed)
- return parseInt(index);
- }
- },
- methods: {
- getMaxZIndex: function getMaxZIndex(exclude) {
- if (exclude === void 0) {
- exclude = [];
- }
- var base = this.$el;
- // Start with lowest allowed z-index or z-index of
- // base component's element, whichever is greater
- var zis = [this.stackMinZIndex, Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getZIndex"])(base)];
- // Convert the NodeList to an array to
- // prevent an Edge bug with Symbol.iterator
- // https://github.com/vuetifyjs/vuetify/issues/2146
- var activeElements = __spread(document.getElementsByClassName(this.stackClass));
- // Get z-index for all active dialogs
- for (var index = 0; index < activeElements.length; index++) {
- if (!exclude.includes(activeElements[index])) {
- zis.push(Object(_util_helpers__WEBPACK_IMPORTED_MODULE_1__["getZIndex"])(activeElements[index]));
- }
- }
- return Math.max.apply(Math, __spread(zis));
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/themeable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/themeable.ts ***!
- \*********************************/
- /*! exports provided: functionalThemeClasses, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "functionalThemeClasses", function() { return functionalThemeClasses; });
- /* 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__);
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
- function functionalThemeClasses(context) {
- var vm = __assign({}, context.props, context.injections);
- var isDark = Themeable.options.computed.isDark.call(vm);
- return Themeable.options.computed.themeClasses.call({ isDark: isDark });
- }
- /* @vue/component */
- var Themeable = vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend().extend({
- name: 'themeable',
- provide: function provide() {
- return {
- theme: this.themeableProvide
- };
- },
- inject: {
- theme: {
- default: {
- isDark: false
- }
- }
- },
- props: {
- dark: {
- type: Boolean,
- default: null
- },
- light: {
- type: Boolean,
- default: null
- }
- },
- data: function data() {
- return {
- themeableProvide: {
- isDark: false
- }
- };
- },
- computed: {
- isDark: function isDark() {
- if (this.dark === true) {
- // explicitly dark
- return true;
- } else if (this.light === true) {
- // explicitly light
- return false;
- } else {
- // inherit from parent, or default false if there is none
- return this.theme.isDark;
- }
- },
- themeClasses: function themeClasses() {
- return {
- 'theme--dark': this.isDark,
- 'theme--light': !this.isDark
- };
- },
- /** Used by menus and dialogs, inherits from v-app instead of the parent */
- rootIsDark: function rootIsDark() {
- if (this.dark === true) {
- // explicitly dark
- return true;
- } else if (this.light === true) {
- // explicitly light
- return false;
- } else {
- // inherit from v-app
- return this.$vuetify.dark;
- }
- },
- rootThemeClasses: function rootThemeClasses() {
- return {
- 'theme--dark': this.rootIsDark,
- 'theme--light': !this.rootIsDark
- };
- }
- },
- watch: {
- isDark: {
- handler: function handler(newVal, oldVal) {
- if (newVal !== oldVal) {
- this.themeableProvide.isDark = this.isDark;
- }
- },
- immediate: true
- }
- }
- });
- /* harmony default export */ __webpack_exports__["default"] = (Themeable);
-
- /***/ }),
-
- /***/ "./src/mixins/toggleable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/toggleable.ts ***!
- \**********************************/
- /*! exports provided: factory, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "factory", function() { return factory; });
- /* 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__);
-
- function factory(prop, event) {
- if (prop === void 0) {
- prop = 'value';
- }
- if (event === void 0) {
- event = 'input';
- }
- var _a, _b;
- return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'toggleable',
- model: { prop: prop, event: event },
- props: (_a = {}, _a[prop] = { required: false }, _a),
- data: function data() {
- return {
- isActive: !!this[prop]
- };
- },
- watch: (_b = {}, _b[prop] = function (val) {
- this.isActive = !!val;
- }, _b.isActive = function (val) {
- !!val !== this[prop] && this.$emit(event, val);
- }, _b)
- });
- }
- /* eslint-disable-next-line no-redeclare */
- var Toggleable = factory();
- /* harmony default export */ __webpack_exports__["default"] = (Toggleable);
-
- /***/ }),
-
- /***/ "./src/mixins/transitionable.ts":
- /*!**************************************!*\
- !*** ./src/mixins/transitionable.ts ***!
- \**************************************/
- /*! 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 default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'transitionable',
- props: {
- mode: String,
- origin: String,
- transition: String
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/translatable.ts":
- /*!************************************!*\
- !*** ./src/mixins/translatable.ts ***!
- \************************************/
- /*! 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 default export */ __webpack_exports__["default"] = (vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: 'translatable',
- props: {
- height: Number
- },
- data: function data() {
- return {
- elOffsetTop: 0,
- parallax: 0,
- parallaxDist: 0,
- percentScrolled: 0,
- scrollTop: 0,
- windowHeight: 0,
- windowBottom: 0
- };
- },
- computed: {
- imgHeight: function imgHeight() {
- return this.objHeight();
- }
- },
- beforeDestroy: function beforeDestroy() {
- window.removeEventListener('scroll', this.translate, false);
- window.removeEventListener('resize', this.translate, false);
- },
- methods: {
- calcDimensions: function calcDimensions() {
- var offset = this.$el.getBoundingClientRect();
- this.scrollTop = window.pageYOffset;
- this.parallaxDist = this.imgHeight - this.height;
- this.elOffsetTop = offset.top + this.scrollTop;
- this.windowHeight = window.innerHeight;
- this.windowBottom = this.scrollTop + this.windowHeight;
- },
- listeners: function listeners() {
- window.addEventListener('scroll', this.translate, false);
- window.addEventListener('resize', this.translate, false);
- },
- /** @abstract **/
- objHeight: function objHeight() {
- throw new Error('Not implemented !');
- },
- translate: function translate() {
- this.calcDimensions();
- this.percentScrolled = (this.windowBottom - this.elOffsetTop) / (parseInt(this.height) + this.windowHeight);
- this.parallax = Math.round(this.parallaxDist * this.percentScrolled);
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/mixins/validatable.ts":
- /*!***********************************!*\
- !*** ./src/mixins/validatable.ts ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _colorable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colorable */ "./src/mixins/colorable.ts");
- /* harmony import */ var _registrable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./registrable */ "./src/mixins/registrable.ts");
- /* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/helpers */ "./src/util/helpers.ts");
- /* harmony import */ var _util_console__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/console */ "./src/util/console.ts");
- /* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/mixins */ "./src/util/mixins.ts");
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
-
- // Mixins
-
-
- // Utilities
-
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_util_mixins__WEBPACK_IMPORTED_MODULE_4__["default"])(_colorable__WEBPACK_IMPORTED_MODULE_0__["default"], Object(_registrable__WEBPACK_IMPORTED_MODULE_1__["inject"])('form')).extend({
- name: 'validatable',
- props: {
- disabled: Boolean,
- error: Boolean,
- errorCount: {
- type: [Number, String],
- default: 1
- },
- errorMessages: {
- type: [String, Array],
- default: function _default() {
- return [];
- }
- },
- messages: {
- type: [String, Array],
- default: function _default() {
- return [];
- }
- },
- readonly: Boolean,
- rules: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- success: Boolean,
- successMessages: {
- type: [String, Array],
- default: function _default() {
- return [];
- }
- },
- validateOnBlur: Boolean,
- value: { required: false }
- },
- data: function data() {
- return {
- errorBucket: [],
- hasColor: false,
- hasFocused: false,
- hasInput: false,
- isFocused: false,
- isResetting: false,
- lazyValue: this.value,
- valid: false
- };
- },
- computed: {
- hasError: function hasError() {
- return this.internalErrorMessages.length > 0 || this.errorBucket.length > 0 || this.error;
- },
- // TODO: Add logic that allows the user to enable based
- // upon a good validation
- hasSuccess: function hasSuccess() {
- return this.internalSuccessMessages.length > 0 || this.success;
- },
- externalError: function externalError() {
- return this.internalErrorMessages.length > 0 || this.error;
- },
- hasMessages: function hasMessages() {
- return this.validationTarget.length > 0;
- },
- hasState: function hasState() {
- return this.hasSuccess || this.shouldValidate && this.hasError;
- },
- internalErrorMessages: function internalErrorMessages() {
- return this.genInternalMessages(this.errorMessages);
- },
- internalMessages: function internalMessages() {
- return this.genInternalMessages(this.messages);
- },
- internalSuccessMessages: function internalSuccessMessages() {
- return this.genInternalMessages(this.successMessages);
- },
- internalValue: {
- get: function get() {
- return this.lazyValue;
- },
- set: function set(val) {
- this.lazyValue = val;
- this.$emit('input', val);
- }
- },
- shouldValidate: function shouldValidate() {
- if (this.externalError) return true;
- if (this.isResetting) return false;
- return this.validateOnBlur ? this.hasFocused && !this.isFocused : this.hasInput || this.hasFocused;
- },
- validations: function validations() {
- return this.validationTarget.slice(0, Number(this.errorCount));
- },
- validationState: function validationState() {
- if (this.hasError && this.shouldValidate) return 'error';
- if (this.hasSuccess) return 'success';
- if (this.hasColor) return this.color;
- return undefined;
- },
- validationTarget: function validationTarget() {
- if (this.internalErrorMessages.length > 0) {
- return this.internalErrorMessages;
- } else if (this.successMessages.length > 0) {
- return this.internalSuccessMessages;
- } else if (this.messages.length > 0) {
- return this.internalMessages;
- } else if (this.shouldValidate) {
- return this.errorBucket;
- } else return [];
- }
- },
- watch: {
- rules: {
- handler: function handler(newVal, oldVal) {
- if (Object(_util_helpers__WEBPACK_IMPORTED_MODULE_2__["deepEqual"])(newVal, oldVal)) return;
- this.validate();
- },
- deep: true
- },
- internalValue: function internalValue() {
- // If it's the first time we're setting input,
- // mark it with hasInput
- this.hasInput = true;
- this.validateOnBlur || this.$nextTick(this.validate);
- },
- isFocused: function isFocused(val) {
- // Should not check validation
- // if disabled or readonly
- if (!val && !this.disabled && !this.readonly) {
- this.hasFocused = true;
- this.validateOnBlur && this.validate();
- }
- },
- isResetting: function isResetting() {
- var _this = this;
- setTimeout(function () {
- _this.hasInput = false;
- _this.hasFocused = false;
- _this.isResetting = false;
- _this.validate();
- }, 0);
- },
- hasError: function hasError(val) {
- if (this.shouldValidate) {
- this.$emit('update:error', val);
- }
- },
- value: function value(val) {
- this.lazyValue = val;
- }
- },
- beforeMount: function beforeMount() {
- this.validate();
- },
- created: function created() {
- this.form && this.form.register(this);
- },
- beforeDestroy: function beforeDestroy() {
- this.form && this.form.unregister(this);
- },
- methods: {
- genInternalMessages: function genInternalMessages(messages) {
- if (!messages) return [];else if (Array.isArray(messages)) return messages;else return [messages];
- },
- /** @public */
- reset: function reset() {
- this.isResetting = true;
- this.internalValue = Array.isArray(this.internalValue) ? [] : undefined;
- },
- /** @public */
- resetValidation: function resetValidation() {
- this.isResetting = true;
- },
- /** @public */
- validate: function validate(force, value) {
- if (force === void 0) {
- force = false;
- }
- var errorBucket = [];
- value = value || this.internalValue;
- if (force) this.hasInput = this.hasFocused = true;
- for (var index = 0; index < this.rules.length; index++) {
- var rule = this.rules[index];
- var valid = typeof rule === 'function' ? rule(value) : rule;
- if (typeof valid === 'string') {
- errorBucket.push(valid);
- } else if (typeof valid !== 'boolean') {
- Object(_util_console__WEBPACK_IMPORTED_MODULE_3__["consoleError"])("Rules should return a string or boolean, received '" + (typeof valid === 'undefined' ? 'undefined' : _typeof(valid)) + "' instead", this);
- }
- }
- this.errorBucket = errorBucket;
- this.valid = errorBucket.length === 0;
- return this.valid;
- }
- }
- }));
-
- /***/ }),
-
- /***/ "./src/stylus/app.styl":
- /*!*****************************!*\
- !*** ./src/stylus/app.styl ***!
- \*****************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_alerts.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_alerts.styl ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_app.styl":
- /*!*****************************************!*\
- !*** ./src/stylus/components/_app.styl ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_autocompletes.styl":
- /*!***************************************************!*\
- !*** ./src/stylus/components/_autocompletes.styl ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_avatars.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_avatars.styl ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_badges.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_badges.styl ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_bottom-navs.styl":
- /*!*************************************************!*\
- !*** ./src/stylus/components/_bottom-navs.styl ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_bottom-sheets.styl":
- /*!***************************************************!*\
- !*** ./src/stylus/components/_bottom-sheets.styl ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_breadcrumbs.styl":
- /*!*************************************************!*\
- !*** ./src/stylus/components/_breadcrumbs.styl ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_button-toggle.styl":
- /*!***************************************************!*\
- !*** ./src/stylus/components/_button-toggle.styl ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_buttons.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_buttons.styl ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_calendar-daily.styl":
- /*!****************************************************!*\
- !*** ./src/stylus/components/_calendar-daily.styl ***!
- \****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_calendar-weekly.styl":
- /*!*****************************************************!*\
- !*** ./src/stylus/components/_calendar-weekly.styl ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_cards.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_cards.styl ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_carousel.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_carousel.styl ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_chips.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_chips.styl ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_content.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_content.styl ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_counters.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_counters.styl ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_data-iterator.styl":
- /*!***************************************************!*\
- !*** ./src/stylus/components/_data-iterator.styl ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_data-table.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_data-table.styl ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_date-picker-header.styl":
- /*!********************************************************!*\
- !*** ./src/stylus/components/_date-picker-header.styl ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_date-picker-table.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_date-picker-table.styl ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_date-picker-title.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_date-picker-title.styl ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_date-picker-years.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_date-picker-years.styl ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_dialogs.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_dialogs.styl ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_dividers.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_dividers.styl ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_expansion-panel.styl":
- /*!*****************************************************!*\
- !*** ./src/stylus/components/_expansion-panel.styl ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_footer.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_footer.styl ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_forms.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_forms.styl ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_grid.styl":
- /*!******************************************!*\
- !*** ./src/stylus/components/_grid.styl ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_icons.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_icons.styl ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_images.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_images.styl ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_inputs.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_inputs.styl ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_item-group.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_item-group.styl ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_jumbotrons.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_jumbotrons.styl ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_labels.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_labels.styl ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_lists.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_lists.styl ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_menus.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_menus.styl ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_messages.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_messages.styl ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_navigation-drawer.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_navigation-drawer.styl ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_overflow-buttons.styl":
- /*!******************************************************!*\
- !*** ./src/stylus/components/_overflow-buttons.styl ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_overlay.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_overlay.styl ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_pagination.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_pagination.styl ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_parallax.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_parallax.styl ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_pickers.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_pickers.styl ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_progress-circular.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_progress-circular.styl ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_progress-linear.styl":
- /*!*****************************************************!*\
- !*** ./src/stylus/components/_progress-linear.styl ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_radio-group.styl":
- /*!*************************************************!*\
- !*** ./src/stylus/components/_radio-group.styl ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_radios.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_radios.styl ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_range-sliders.styl":
- /*!***************************************************!*\
- !*** ./src/stylus/components/_range-sliders.styl ***!
- \***************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_rating.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_rating.styl ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_responsive.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_responsive.styl ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_select.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_select.styl ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_selection-controls.styl":
- /*!********************************************************!*\
- !*** ./src/stylus/components/_selection-controls.styl ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_sheet.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_sheet.styl ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_sliders.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_sliders.styl ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_small-dialog.styl":
- /*!**************************************************!*\
- !*** ./src/stylus/components/_small-dialog.styl ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_snackbars.styl":
- /*!***********************************************!*\
- !*** ./src/stylus/components/_snackbars.styl ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_speed-dial.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_speed-dial.styl ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_steppers.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_steppers.styl ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_subheaders.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_subheaders.styl ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_switch.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_switch.styl ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_system-bars.styl":
- /*!*************************************************!*\
- !*** ./src/stylus/components/_system-bars.styl ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_tables.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_tables.styl ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_tabs.styl":
- /*!******************************************!*\
- !*** ./src/stylus/components/_tabs.styl ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_text-fields.styl":
- /*!*************************************************!*\
- !*** ./src/stylus/components/_text-fields.styl ***!
- \*************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_textarea.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_textarea.styl ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_time-picker-clock.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_time-picker-clock.styl ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_time-picker-title.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_time-picker-title.styl ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_timeline.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_timeline.styl ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_toolbar.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_toolbar.styl ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_tooltips.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_tooltips.styl ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_treeview.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_treeview.styl ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/stylus/components/_windows.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_windows.styl ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- // extracted by mini-css-extract-plugin
-
- /***/ }),
-
- /***/ "./src/util/ThemeProvider.ts":
- /*!***********************************!*\
- !*** ./src/util/ThemeProvider.ts ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mixins_themeable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../mixins/themeable */ "./src/mixins/themeable.ts");
- /* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mixins */ "./src/util/mixins.ts");
-
-
- /* @vue/component */
- /* harmony default export */ __webpack_exports__["default"] = (Object(_mixins__WEBPACK_IMPORTED_MODULE_1__["default"])(_mixins_themeable__WEBPACK_IMPORTED_MODULE_0__["default"]).extend({
- name: 'theme-provider',
- props: {
- root: Boolean
- },
- computed: {
- isDark: function isDark() {
- return this.root ? this.rootIsDark : _mixins_themeable__WEBPACK_IMPORTED_MODULE_0__["default"].options.computed.isDark.call(this);
- }
- },
- render: function render() {
- return this.$slots.default && this.$slots.default.find(function (node) {
- return !node.isComment && node.text !== ' ';
- });
- }
- }));
-
- /***/ }),
-
- /***/ "./src/util/color/transformCIELAB.ts":
- /*!*******************************************!*\
- !*** ./src/util/color/transformCIELAB.ts ***!
- \*******************************************/
- /*! exports provided: fromXYZ, toXYZ */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromXYZ", function() { return fromXYZ; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toXYZ", function() { return toXYZ; });
- var delta = 0.20689655172413793; // 6÷29
- var cielabForwardTransform = function cielabForwardTransform(t) {
- return t > Math.pow(delta, 3) ? Math.cbrt(t) : t / (3 * Math.pow(delta, 2)) + 4 / 29;
- };
- var cielabReverseTransform = function cielabReverseTransform(t) {
- return t > delta ? Math.pow(t, 3) : 3 * Math.pow(delta, 2) * (t - 4 / 29);
- };
- function fromXYZ(xyz) {
- var transform = cielabForwardTransform;
- var transformedY = transform(xyz[1]);
- return [116 * transformedY - 16, 500 * (transform(xyz[0] / 0.95047) - transformedY), 200 * (transformedY - transform(xyz[2] / 1.08883))];
- }
- function toXYZ(lab) {
- var transform = cielabReverseTransform;
- var Ln = (lab[0] + 16) / 116;
- return [transform(Ln + lab[1] / 500) * 0.95047, transform(Ln), transform(Ln - lab[2] / 200) * 1.08883];
- }
-
- /***/ }),
-
- /***/ "./src/util/color/transformSRGB.ts":
- /*!*****************************************!*\
- !*** ./src/util/color/transformSRGB.ts ***!
- \*****************************************/
- /*! exports provided: fromXYZ, toXYZ */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromXYZ", function() { return fromXYZ; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toXYZ", function() { return toXYZ; });
- // For converting XYZ to sRGB
- var srgbForwardMatrix = [[3.2406, -1.5372, -0.4986], [-0.9689, 1.8758, 0.0415], [0.0557, -0.2040, 1.0570]];
- // Forward gamma adjust
- var srgbForwardTransform = function srgbForwardTransform(C) {
- return C <= 0.0031308 ? C * 12.92 : 1.055 * Math.pow(C, 1 / 2.4) - 0.055;
- };
- // For converting sRGB to XYZ
- var srgbReverseMatrix = [[0.4124, 0.3576, 0.1805], [0.2126, 0.7152, 0.0722], [0.0193, 0.1192, 0.9505]];
- // Reverse gamma adjust
- var srgbReverseTransform = function srgbReverseTransform(C) {
- return C <= 0.04045 ? C / 12.92 : Math.pow((C + 0.055) / 1.055, 2.4);
- };
- function clamp(value) {
- return Math.max(0, Math.min(1, value));
- }
- function fromXYZ(xyz) {
- var rgb = Array(3);
- var transform = srgbForwardTransform;
- var matrix = srgbForwardMatrix;
- // Matrix transform, then gamma adjustment
- for (var i = 0; i < 3; ++i) {
- rgb[i] = Math.round(clamp(transform(matrix[i][0] * xyz[0] + matrix[i][1] * xyz[1] + matrix[i][2] * xyz[2])) * 255);
- }
- // Rescale back to [0, 255]
- return (rgb[0] << 16) + (rgb[1] << 8) + (rgb[2] << 0);
- }
- function toXYZ(rgb) {
- var xyz = [0, 0, 0];
- var transform = srgbReverseTransform;
- var matrix = srgbReverseMatrix;
- // Rescale from [0, 255] to [0, 1] then adjust sRGB gamma to linear RGB
- var r = transform((rgb >> 16 & 0xff) / 255);
- var g = transform((rgb >> 8 & 0xff) / 255);
- var b = transform((rgb >> 0 & 0xff) / 255);
- // Matrix color space transform
- for (var i = 0; i < 3; ++i) {
- xyz[i] = matrix[i][0] * r + matrix[i][1] * g + matrix[i][2] * b;
- }
- return xyz;
- }
-
- /***/ }),
-
- /***/ "./src/util/colorUtils.ts":
- /*!********************************!*\
- !*** ./src/util/colorUtils.ts ***!
- \********************************/
- /*! exports provided: colorToInt, intToHex, colorToHex */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "colorToInt", function() { return colorToInt; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "intToHex", function() { return intToHex; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "colorToHex", function() { return colorToHex; });
- /* harmony import */ var _console__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./console */ "./src/util/console.ts");
-
- function colorToInt(color) {
- var rgb;
- if (typeof color === 'number') {
- rgb = color;
- } else if (typeof color === 'string') {
- var c = color[0] === '#' ? color.substring(1) : color;
- if (c.length === 3) {
- c = c.split('').map(function (char) {
- return char + char;
- }).join('');
- }
- if (c.length !== 6) {
- Object(_console__WEBPACK_IMPORTED_MODULE_0__["consoleWarn"])("'" + color + "' is not a valid rgb color");
- }
- rgb = parseInt(c, 16);
- } else {
- throw new TypeError("Colors can only be numbers or strings, recieved " + (color == null ? color : color.constructor.name) + " instead");
- }
- if (rgb < 0) {
- Object(_console__WEBPACK_IMPORTED_MODULE_0__["consoleWarn"])("Colors cannot be negative: '" + color + "'");
- rgb = 0;
- } else if (rgb > 0xffffff || isNaN(rgb)) {
- Object(_console__WEBPACK_IMPORTED_MODULE_0__["consoleWarn"])("'" + color + "' is not a valid rgb color");
- rgb = 0xffffff;
- }
- return rgb;
- }
- function intToHex(color) {
- var hexColor = color.toString(16);
- if (hexColor.length < 6) hexColor = '0'.repeat(6 - hexColor.length) + hexColor;
- return '#' + hexColor;
- }
- function colorToHex(color) {
- return intToHex(colorToInt(color));
- }
-
- /***/ }),
-
- /***/ "./src/util/console.ts":
- /*!*****************************!*\
- !*** ./src/util/console.ts ***!
- \*****************************/
- /*! exports provided: consoleInfo, consoleWarn, consoleError, deprecate */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "consoleInfo", function() { return consoleInfo; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "consoleWarn", function() { return consoleWarn; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "consoleError", function() { return consoleError; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deprecate", function() { return deprecate; });
- function createMessage(message, vm, parent) {
- if (parent) {
- vm = {
- _isVue: true,
- $parent: parent,
- $options: vm
- };
- }
- if (vm) {
- // Only show each message once per instance
- vm.$_alreadyWarned = vm.$_alreadyWarned || [];
- if (vm.$_alreadyWarned.includes(message)) return;
- vm.$_alreadyWarned.push(message);
- }
- return "[Vuetify] " + message + (vm ? generateComponentTrace(vm) : '');
- }
- function consoleInfo(message, vm, parent) {
- var newMessage = createMessage(message, vm, parent);
- newMessage != null && console.info(newMessage);
- }
- function consoleWarn(message, vm, parent) {
- var newMessage = createMessage(message, vm, parent);
- newMessage != null && console.warn(newMessage);
- }
- function consoleError(message, vm, parent) {
- var newMessage = createMessage(message, vm, parent);
- newMessage != null && console.error(newMessage);
- }
- function deprecate(original, replacement, vm, parent) {
- consoleWarn("'" + original + "' is deprecated, use '" + replacement + "' instead", vm, parent);
- }
- /**
- * Shamelessly stolen from vuejs/vue/blob/dev/src/core/util/debug.js
- */
- var classifyRE = /(?:^|[-_])(\w)/g;
- var classify = function classify(str) {
- return str.replace(classifyRE, function (c) {
- return c.toUpperCase();
- }).replace(/[-_]/g, '');
- };
- function formatComponentName(vm, includeFile) {
- if (vm.$root === vm) {
- return '<Root>';
- }
- var options = typeof vm === 'function' && vm.cid != null ? vm.options : vm._isVue ? vm.$options || vm.constructor.options : vm || {};
- var name = options.name || options._componentTag;
- var file = options.__file;
- if (!name && file) {
- var match = file.match(/([^/\\]+)\.vue$/);
- name = match && match[1];
- }
- return (name ? "<" + classify(name) + ">" : "<Anonymous>") + (file && includeFile !== false ? " at " + file : '');
- }
- function generateComponentTrace(vm) {
- if (vm._isVue && vm.$parent) {
- var tree = [];
- var currentRecursiveSequence = 0;
- while (vm) {
- if (tree.length > 0) {
- var last = tree[tree.length - 1];
- if (last.constructor === vm.constructor) {
- currentRecursiveSequence++;
- vm = vm.$parent;
- continue;
- } else if (currentRecursiveSequence > 0) {
- tree[tree.length - 1] = [last, currentRecursiveSequence];
- currentRecursiveSequence = 0;
- }
- }
- tree.push(vm);
- vm = vm.$parent;
- }
- return '\n\nfound in\n\n' + tree.map(function (vm, i) {
- return "" + (i === 0 ? '---> ' : ' '.repeat(5 + i * 2)) + (Array.isArray(vm) ? formatComponentName(vm[0]) + "... (" + vm[1] + " recursive calls)" : formatComponentName(vm));
- }).join('\n');
- } else {
- return "\n\n(found in " + formatComponentName(vm) + ")";
- }
- }
-
- /***/ }),
-
- /***/ "./src/util/dedupeModelListeners.ts":
- /*!******************************************!*\
- !*** ./src/util/dedupeModelListeners.ts ***!
- \******************************************/
- /*! 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 dedupeModelListeners; });
- /**
- * Removes duplicate `@input` listeners when
- * using v-model with functional components
- *
- * @see https://github.com/vuetifyjs/vuetify/issues/4460
- */
- function dedupeModelListeners(data) {
- if (data.model && data.on && data.on.input) {
- if (Array.isArray(data.on.input)) {
- var i = data.on.input.indexOf(data.model.callback);
- if (i > -1) data.on.input.splice(i, 1);
- } else {
- delete data.on.input;
- }
- }
- }
-
- /***/ }),
-
- /***/ "./src/util/helpers.ts":
- /*!*****************************!*\
- !*** ./src/util/helpers.ts ***!
- \*****************************/
- /*! exports provided: createSimpleFunctional, createSimpleTransition, createJavaScriptTransition, directiveConfig, addOnceEventListener, passiveSupported, addPassiveEventListener, getNestedValue, deepEqual, getObjectValueByPath, getPropertyFromItem, createRange, getZIndex, escapeHTML, filterObjectOnKeys, filterChildren, convertToUnit, kebabCase, isObject, keyCodes, remapInternalIcon, keys, camelize, arrayDiff, upperFirst, getSlotType */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSimpleFunctional", function() { return createSimpleFunctional; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSimpleTransition", function() { return createSimpleTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createJavaScriptTransition", function() { return createJavaScriptTransition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "directiveConfig", function() { return directiveConfig; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addOnceEventListener", function() { return addOnceEventListener; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "passiveSupported", function() { return passiveSupported; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addPassiveEventListener", function() { return addPassiveEventListener; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNestedValue", function() { return getNestedValue; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepEqual", function() { return deepEqual; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getObjectValueByPath", function() { return getObjectValueByPath; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPropertyFromItem", function() { return getPropertyFromItem; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createRange", function() { return createRange; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getZIndex", function() { return getZIndex; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeHTML", function() { return escapeHTML; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterObjectOnKeys", function() { return filterObjectOnKeys; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterChildren", function() { return filterChildren; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertToUnit", function() { return convertToUnit; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kebabCase", function() { return kebabCase; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isObject", function() { return isObject; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyCodes", function() { return keyCodes; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "remapInternalIcon", function() { return remapInternalIcon; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keys", function() { return keys; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "camelize", function() { return camelize; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arrayDiff", function() { return arrayDiff; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "upperFirst", function() { return upperFirst; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlotType", function() { return getSlotType; });
- /* 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__);
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
-
- var __assign = undefined && undefined.__assign || function () {
- __assign = Object.assign || function (t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
- }
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
-
- function createSimpleFunctional(c, el, name) {
- if (el === void 0) {
- el = 'div';
- }
- return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({
- name: name || c.replace(/__/g, '-'),
- functional: true,
- render: function render(h, _a) {
- var data = _a.data,
- children = _a.children;
- data.staticClass = (c + " " + (data.staticClass || '')).trim();
- return h(el, data, children);
- }
- });
- }
- function mergeTransitions(transitions, array) {
- if (Array.isArray(transitions)) return transitions.concat(array);
- if (transitions) array.push(transitions);
- return array;
- }
- function createSimpleTransition(name, origin, mode) {
- if (origin === void 0) {
- origin = 'top center 0';
- }
- return {
- name: name,
- functional: true,
- props: {
- group: {
- type: Boolean,
- default: false
- },
- hideOnLeave: {
- type: Boolean,
- default: false
- },
- leaveAbsolute: {
- type: Boolean,
- default: false
- },
- mode: {
- type: String,
- default: mode
- },
- origin: {
- type: String,
- default: origin
- }
- },
- render: function render(h, context) {
- var tag = "transition" + (context.props.group ? '-group' : '');
- context.data = context.data || {};
- context.data.props = {
- name: name,
- mode: context.props.mode
- };
- context.data.on = context.data.on || {};
- if (!Object.isExtensible(context.data.on)) {
- context.data.on = __assign({}, context.data.on);
- }
- var ourBeforeEnter = [];
- var ourLeave = [];
- var absolute = function absolute(el) {
- return el.style.position = 'absolute';
- };
- ourBeforeEnter.push(function (el) {
- el.style.transformOrigin = context.props.origin;
- el.style.webkitTransformOrigin = context.props.origin;
- });
- if (context.props.leaveAbsolute) ourLeave.push(absolute);
- if (context.props.hideOnLeave) {
- ourLeave.push(function (el) {
- return el.style.display = 'none';
- });
- }
- var _a = context.data.on,
- beforeEnter = _a.beforeEnter,
- leave = _a.leave;
- // Type says Function | Function[] but
- // will only work if provided a function
- context.data.on.beforeEnter = function () {
- return mergeTransitions(beforeEnter, ourBeforeEnter);
- };
- context.data.on.leave = mergeTransitions(leave, ourLeave);
- return h(tag, context.data, context.children);
- }
- };
- }
- function createJavaScriptTransition(name, functions, mode) {
- if (mode === void 0) {
- mode = 'in-out';
- }
- return {
- name: name,
- functional: true,
- props: {
- mode: {
- type: String,
- default: mode
- }
- },
- render: function render(h, context) {
- var data = {
- props: __assign({}, context.props, { name: name }),
- on: functions
- };
- return h('transition', data, context.children);
- }
- };
- }
- function directiveConfig(binding, defaults) {
- if (defaults === void 0) {
- defaults = {};
- }
- return __assign({}, defaults, binding.modifiers, { value: binding.arg }, binding.value || {});
- }
- function addOnceEventListener(el, event, cb) {
- var once = function once() {
- cb();
- el.removeEventListener(event, once, false);
- };
- el.addEventListener(event, once, false);
- }
- var passiveSupported = false;
- try {
- if (typeof window !== 'undefined') {
- var testListenerOpts = Object.defineProperty({}, 'passive', {
- get: function get() {
- passiveSupported = true;
- }
- });
- window.addEventListener('testListener', testListenerOpts, testListenerOpts);
- window.removeEventListener('testListener', testListenerOpts, testListenerOpts);
- }
- } catch (e) {
- console.warn(e);
- }
-
- function addPassiveEventListener(el, event, cb, options) {
- el.addEventListener(event, cb, passiveSupported ? options : false);
- }
- function getNestedValue(obj, path, fallback) {
- var last = path.length - 1;
- if (last < 0) return obj === undefined ? fallback : obj;
- for (var i = 0; i < last; i++) {
- if (obj == null) {
- return fallback;
- }
- obj = obj[path[i]];
- }
- if (obj == null) return fallback;
- return obj[path[last]] === undefined ? fallback : obj[path[last]];
- }
- function deepEqual(a, b) {
- if (a === b) return true;
- if (a instanceof Date && b instanceof Date) {
- // If the values are Date, they were convert to timestamp with getTime and compare it
- if (a.getTime() !== b.getTime()) return false;
- }
- if (a !== Object(a) || b !== Object(b)) {
- // If the values aren't objects, they were already checked for equality
- return false;
- }
- var props = Object.keys(a);
- if (props.length !== Object.keys(b).length) {
- // Different number of props, don't bother to check
- return false;
- }
- return props.every(function (p) {
- return deepEqual(a[p], b[p]);
- });
- }
- function getObjectValueByPath(obj, path, fallback) {
- // credit: http://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key#comment55278413_6491621
- if (!path || path.constructor !== String) return fallback;
- path = path.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties
- path = path.replace(/^\./, ''); // strip a leading dot
- return getNestedValue(obj, path.split('.'), fallback);
- }
- function getPropertyFromItem(item, property, fallback) {
- if (property == null) return item === undefined ? fallback : item;
- if (item !== Object(item)) return fallback === undefined ? item : fallback;
- if (typeof property === 'string') return getObjectValueByPath(item, property, fallback);
- if (Array.isArray(property)) return getNestedValue(item, property, fallback);
- if (typeof property !== 'function') return fallback;
- var value = property(item, fallback);
- return typeof value === 'undefined' ? fallback : value;
- }
- function createRange(length) {
- return Array.from({ length: length }, function (v, k) {
- return k;
- });
- }
- function getZIndex(el) {
- if (!el || el.nodeType !== Node.ELEMENT_NODE) return 0;
- var index = +window.getComputedStyle(el).getPropertyValue('z-index');
- if (isNaN(index)) return getZIndex(el.parentNode);
- return index;
- }
- var tagsToReplace = {
- '&': '&',
- '<': '<',
- '>': '>'
- };
- function escapeHTML(str) {
- return str.replace(/[&<>]/g, function (tag) {
- return tagsToReplace[tag] || tag;
- });
- }
- function filterObjectOnKeys(obj, keys) {
- var filtered = {};
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- if (typeof obj[key] !== 'undefined') {
- filtered[key] = obj[key];
- }
- }
- return filtered;
- }
- function filterChildren(array, tag) {
- if (array === void 0) {
- array = [];
- }
- return array.filter(function (child) {
- return child.componentOptions && child.componentOptions.Ctor.options.name === tag;
- });
- }
- function convertToUnit(str, unit) {
- if (unit === void 0) {
- unit = 'px';
- }
- if (str == null || str === '') {
- return undefined;
- } else if (isNaN(+str)) {
- return String(str);
- } else {
- return "" + Number(str) + unit;
- }
- }
- function kebabCase(str) {
- return (str || '').replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
- }
- function isObject(obj) {
- return obj !== null && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object';
- }
- // KeyboardEvent.keyCode aliases
- var keyCodes = Object.freeze({
- enter: 13,
- tab: 9,
- delete: 46,
- esc: 27,
- space: 32,
- up: 38,
- down: 40,
- left: 37,
- right: 39,
- end: 35,
- home: 36,
- del: 46,
- backspace: 8,
- insert: 45,
- pageup: 33,
- pagedown: 34
- });
- var ICONS_PREFIX = '$vuetify.icons.';
- // This remaps internal names like '$vuetify.icons.cancel'
- // to the current name or component for that icon.
- function remapInternalIcon(vm, iconName) {
- if (!iconName.startsWith(ICONS_PREFIX)) {
- return iconName;
- }
- // Now look up icon indirection name, e.g. '$vuetify.icons.cancel'
- return getObjectValueByPath(vm, iconName, iconName);
- }
- function keys(o) {
- return Object.keys(o);
- }
- /**
- * Camelize a hyphen-delimited string.
- */
- var camelizeRE = /-(\w)/g;
- var camelize = function camelize(str) {
- return str.replace(camelizeRE, function (_, c) {
- return c ? c.toUpperCase() : '';
- });
- };
- /**
- * Returns the set difference of B and A, i.e. the set of elements in B but not in A
- */
- function arrayDiff(a, b) {
- var diff = [];
- for (var i = 0; i < b.length; i++) {
- if (a.indexOf(b[i]) < 0) diff.push(b[i]);
- }
- return diff;
- }
- /**
- * Makes the first character of a string uppercase
- */
- function upperFirst(str) {
- return str.charAt(0).toUpperCase() + str.slice(1);
- }
- /**
- * Returns:
- * - 'normal' for old style slots - `<template slot="default">`
- * - 'scoped' for old style scoped slots (`<template slot="default" slot-scope="data">`) or bound v-slot (`#default="data"`)
- * - 'v-slot' for unbound v-slot (`#default`) - only if the third param is true, otherwise counts as scoped
- */
- function getSlotType(vm, name, split) {
- if (vm.$slots[name] && vm.$scopedSlots[name] && vm.$scopedSlots[name].name) {
- return split ? 'v-slot' : 'scoped';
- }
- if (vm.$slots[name]) return 'normal';
- if (vm.$scopedSlots[name]) return 'scoped';
- }
-
- /***/ }),
-
- /***/ "./src/util/mask.ts":
- /*!**************************!*\
- !*** ./src/util/mask.ts ***!
- \**************************/
- /*! exports provided: defaultDelimiters, isMaskDelimiter, maskText, unmaskText */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultDelimiters", function() { return defaultDelimiters; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMaskDelimiter", function() { return isMaskDelimiter; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "maskText", function() { return maskText; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unmaskText", function() { return unmaskText; });
- var defaultDelimiters = /[-!$%^&*()_+|~=`{}[\]:";'<>?,./\\ ]/;
- var isMaskDelimiter = function isMaskDelimiter(char) {
- return char ? defaultDelimiters.test(char) : false;
- };
- var allowedMasks = {
- '#': {
- test: function test(char) {
- return (/[0-9]/.test(char)
- );
- }
- },
- 'A': {
- test: function test(char) {
- return (/[A-Z]/i.test(char)
- );
- },
- convert: function convert(char) {
- return char.toUpperCase();
- }
- },
- 'a': {
- test: function test(char) {
- return (/[a-z]/i.test(char)
- );
- },
- convert: function convert(char) {
- return char.toLowerCase();
- }
- },
- 'N': {
- test: function test(char) {
- return (/[0-9A-Z]/i.test(char)
- );
- },
- convert: function convert(char) {
- return char.toUpperCase();
- }
- },
- 'n': {
- test: function test(char) {
- return (/[0-9a-z]/i.test(char)
- );
- },
- convert: function convert(char) {
- return char.toLowerCase();
- }
- },
- 'X': {
- test: isMaskDelimiter
- }
- };
- var isMask = function isMask(char) {
- return allowedMasks.hasOwnProperty(char);
- };
- var convert = function convert(mask, char) {
- return allowedMasks[mask].convert ? allowedMasks[mask].convert(char) : char;
- };
- var maskValidates = function maskValidates(mask, char) {
- if (char == null || !isMask(mask)) return false;
- return allowedMasks[mask].test(char);
- };
- var maskText = function maskText(text, masked, dontFillMaskBlanks) {
- if (text == null) return '';
- text = String(text);
- if (!masked.length || !text.length) return text;
- if (!Array.isArray(masked)) masked = masked.split('');
- var textIndex = 0;
- var maskIndex = 0;
- var newText = '';
- while (maskIndex < masked.length) {
- var mask = masked[maskIndex];
- // Assign the next character
- var char = text[textIndex];
- // Check if mask is delimiter
- // and current char matches
- if (!isMask(mask) && char === mask) {
- newText += mask;
- textIndex++;
- // Check if not mask
- } else if (!isMask(mask) && !dontFillMaskBlanks) {
- newText += mask;
- // Check if is mask and validates
- } else if (maskValidates(mask, char)) {
- newText += convert(mask, char);
- textIndex++;
- } else {
- return newText;
- }
- maskIndex++;
- }
- return newText;
- };
- var unmaskText = function unmaskText(text) {
- return text ? String(text).replace(new RegExp(defaultDelimiters, 'g'), '') : text;
- };
-
- /***/ }),
-
- /***/ "./src/util/mixins.ts":
- /*!****************************!*\
- !*** ./src/util/mixins.ts ***!
- \****************************/
- /*! 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 mixins; });
- /* 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__);
- /* eslint-disable max-len, import/export, no-use-before-define */
-
- function mixins() {
- var args = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- args[_i] = arguments[_i];
- }
- return vue__WEBPACK_IMPORTED_MODULE_0___default.a.extend({ mixins: args });
- }
-
- /***/ }),
-
- /***/ "./src/util/rebuildFunctionalSlots.ts":
- /*!********************************************!*\
- !*** ./src/util/rebuildFunctionalSlots.ts ***!
- \********************************************/
- /*! 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 rebuildFunctionalSlots; });
- function rebuildFunctionalSlots(slots, h) {
- var children = [];
- for (var slot in slots) {
- if (slots.hasOwnProperty(slot)) {
- children.push(h('template', { slot: slot }, slots[slot]));
- }
- }
- return children;
- }
-
- /***/ }),
-
- /***/ "./src/util/theme.ts":
- /*!***************************!*\
- !*** ./src/util/theme.ts ***!
- \***************************/
- /*! exports provided: parse, genStyles, genVariations */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genStyles", function() { return genStyles; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genVariations", function() { return genVariations; });
- /* harmony import */ var _colorUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colorUtils */ "./src/util/colorUtils.ts");
- /* harmony import */ var _color_transformSRGB__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color/transformSRGB */ "./src/util/color/transformSRGB.ts");
- /* harmony import */ var _color_transformCIELAB__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./color/transformCIELAB */ "./src/util/color/transformCIELAB.ts");
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
-
- var __read = undefined && undefined.__read || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o),
- r,
- ar = [],
- e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
- ar.push(r.value);
- }
- } catch (error) {
- e = { error: error };
- } finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- } finally {
- if (e) throw e.error;
- }
- }
- return ar;
- };
-
-
-
- function parse(theme, isItem) {
- if (isItem === void 0) {
- isItem = false;
- }
- var colors = Object.keys(theme);
- var parsedTheme = {};
- for (var i = 0; i < colors.length; ++i) {
- var name = colors[i];
- var value = theme[name];
- if (isItem) {
- if (name === 'base' || name.startsWith('lighten') || name.startsWith('darken')) {
- parsedTheme[name] = Object(_colorUtils__WEBPACK_IMPORTED_MODULE_0__["colorToHex"])(value);
- }
- } else if ((typeof value === "undefined" ? "undefined" : _typeof(value)) === 'object') {
- parsedTheme[name] = parse(value, true);
- } else {
- parsedTheme[name] = genVariations(name, Object(_colorUtils__WEBPACK_IMPORTED_MODULE_0__["colorToInt"])(value));
- }
- }
- return parsedTheme;
- }
- /**
- * Generate the CSS for a base color (.primary)
- */
- var genBaseColor = function genBaseColor(name, value) {
- return "\n." + name + " {\n background-color: " + value + " !important;\n border-color: " + value + " !important;\n}\n." + name + "--text {\n color: " + value + " !important;\n caret-color: " + value + " !important;\n}";
- };
- /**
- * Generate the CSS for a variant color (.primary.darken-2)
- */
- var genVariantColor = function genVariantColor(name, variant, value) {
- var _a = __read(variant.split(/(\d)/, 2), 2),
- type = _a[0],
- n = _a[1];
- return "\n." + name + "." + type + "-" + n + " {\n background-color: " + value + " !important;\n border-color: " + value + " !important;\n}\n." + name + "--text.text--" + type + "-" + n + " {\n color: " + value + " !important;\n caret-color: " + value + " !important;\n}";
- };
- var genColorVariableName = function genColorVariableName(name, variant) {
- if (variant === void 0) {
- variant = 'base';
- }
- return "--v-" + name + "-" + variant;
- };
- var genColorVariable = function genColorVariable(name, variant) {
- if (variant === void 0) {
- variant = 'base';
- }
- return "var(" + genColorVariableName(name, variant) + ")";
- };
- function genStyles(theme, cssVar) {
- if (cssVar === void 0) {
- cssVar = false;
- }
- var colors = Object.keys(theme);
- if (!colors.length) return '';
- var variablesCss = '';
- var css = '';
- var aColor = cssVar ? genColorVariable('primary') : theme.primary.base;
- css += "a { color: " + aColor + "; }";
- for (var i = 0; i < colors.length; ++i) {
- var name = colors[i];
- var value = theme[name];
- if ((typeof value === "undefined" ? "undefined" : _typeof(value)) !== 'object') continue;
- css += genBaseColor(name, cssVar ? genColorVariable(name) : value.base);
- cssVar && (variablesCss += " " + genColorVariableName(name) + ": " + value.base + ";\n");
- var variants = Object.keys(value);
- for (var i_1 = 0; i_1 < variants.length; ++i_1) {
- var variant = variants[i_1];
- var variantValue = value[variant];
- if (variant === 'base') continue;
- css += genVariantColor(name, variant, cssVar ? genColorVariable(name, variant) : variantValue);
- cssVar && (variablesCss += " " + genColorVariableName(name, variant) + ": " + variantValue + ";\n");
- }
- }
- if (cssVar) {
- variablesCss = ":root {\n" + variablesCss + "}\n\n";
- }
- return variablesCss + css;
- }
- function genVariations(name, value) {
- var values = {
- base: Object(_colorUtils__WEBPACK_IMPORTED_MODULE_0__["intToHex"])(value)
- };
- for (var i = 5; i > 0; --i) {
- values["lighten" + i] = Object(_colorUtils__WEBPACK_IMPORTED_MODULE_0__["intToHex"])(lighten(value, i));
- }
- for (var i = 1; i <= 4; ++i) {
- values["darken" + i] = Object(_colorUtils__WEBPACK_IMPORTED_MODULE_0__["intToHex"])(darken(value, i));
- }
- return values;
- }
- function lighten(value, amount) {
- var lab = _color_transformCIELAB__WEBPACK_IMPORTED_MODULE_2__["fromXYZ"](_color_transformSRGB__WEBPACK_IMPORTED_MODULE_1__["toXYZ"](value));
- lab[0] = lab[0] + amount * 10;
- return _color_transformSRGB__WEBPACK_IMPORTED_MODULE_1__["fromXYZ"](_color_transformCIELAB__WEBPACK_IMPORTED_MODULE_2__["toXYZ"](lab));
- }
- function darken(value, amount) {
- var lab = _color_transformCIELAB__WEBPACK_IMPORTED_MODULE_2__["fromXYZ"](_color_transformSRGB__WEBPACK_IMPORTED_MODULE_1__["toXYZ"](value));
- lab[0] = lab[0] - amount * 10;
- return _color_transformSRGB__WEBPACK_IMPORTED_MODULE_1__["fromXYZ"](_color_transformCIELAB__WEBPACK_IMPORTED_MODULE_2__["toXYZ"](lab));
- }
-
- /***/ }),
-
- /***/ "vue":
- /*!******************************************************************************!*\
- !*** external {"commonjs":"vue","commonjs2":"vue","amd":"vue","root":"Vue"} ***!
- \******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
-
- module.exports = __WEBPACK_EXTERNAL_MODULE_vue__;
-
- /***/ })
-
- /******/ })["default"];
- });
- //# sourceMappingURL=vuetify.js.map
|