@tylertech/forge 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -13
- package/dist/esm/accordion/index.js +39 -0
- package/dist/esm/accordion/index.js.map +7 -0
- package/dist/esm/app-bar/help-button/index.js +58 -0
- package/dist/esm/app-bar/help-button/index.js.map +7 -0
- package/dist/esm/app-bar/index.js +136 -0
- package/dist/esm/app-bar/index.js.map +7 -0
- package/dist/esm/app-bar/menu-button/index.js +41 -0
- package/dist/esm/app-bar/menu-button/index.js.map +7 -0
- package/dist/esm/app-bar/notification-button/index.js +46 -0
- package/dist/esm/app-bar/notification-button/index.js.map +7 -0
- package/dist/esm/app-bar/profile-button/index.js +51 -0
- package/dist/esm/app-bar/profile-button/index.js.map +7 -0
- package/dist/esm/app-bar/search/index.js +43 -0
- package/dist/esm/app-bar/search/index.js.map +7 -0
- package/dist/esm/autocomplete/index.js +77 -0
- package/dist/esm/autocomplete/index.js.map +7 -0
- package/dist/esm/avatar/index.js +33 -0
- package/dist/esm/avatar/index.js.map +7 -0
- package/dist/esm/backdrop/index.js +28 -0
- package/dist/esm/backdrop/index.js.map +7 -0
- package/dist/esm/badge/index.js +31 -0
- package/dist/esm/badge/index.js.map +7 -0
- package/dist/esm/banner/index.js +45 -0
- package/dist/esm/banner/index.js.map +7 -0
- package/dist/esm/bottom-sheet/index.js +45 -0
- package/dist/esm/bottom-sheet/index.js.map +7 -0
- package/dist/esm/busy-indicator/index.js +37 -0
- package/dist/esm/busy-indicator/index.js.map +7 -0
- package/dist/esm/button/index.js +29 -0
- package/dist/esm/button/index.js.map +7 -0
- package/dist/esm/button-toggle/button-toggle/index.js +33 -0
- package/dist/esm/button-toggle/button-toggle/index.js.map +7 -0
- package/dist/esm/button-toggle/button-toggle-group/index.js +32 -0
- package/dist/esm/button-toggle/button-toggle-group/index.js.map +7 -0
- package/dist/esm/button-toggle/index.js +46 -0
- package/dist/esm/button-toggle/index.js.map +7 -0
- package/dist/esm/calendar/calendar-dropdown/index.js +35 -0
- package/dist/esm/calendar/calendar-dropdown/index.js.map +7 -0
- package/dist/esm/calendar/calendar-menu/index.js +48 -0
- package/dist/esm/calendar/calendar-menu/index.js.map +7 -0
- package/dist/esm/calendar/core/index.js +13 -0
- package/dist/esm/calendar/core/index.js.map +7 -0
- package/dist/esm/calendar/index.js +199 -0
- package/dist/esm/calendar/index.js.map +7 -0
- package/dist/esm/card/index.js +22 -0
- package/dist/esm/card/index.js.map +7 -0
- package/dist/esm/checkbox/index.js +44 -0
- package/dist/esm/checkbox/index.js.map +7 -0
- package/dist/esm/chip-field/index.js +51 -0
- package/dist/esm/chip-field/index.js.map +7 -0
- package/dist/esm/chips/chip/index.js +42 -0
- package/dist/esm/chips/chip/index.js.map +7 -0
- package/dist/esm/chips/chip-set/index.js +42 -0
- package/dist/esm/chips/chip-set/index.js.map +7 -0
- package/dist/esm/chips/index.js +55 -0
- package/dist/esm/chips/index.js.map +7 -0
- package/dist/esm/chunks/chunk.2F6PST3N.js +476 -0
- package/dist/esm/chunks/chunk.2F6PST3N.js.map +7 -0
- package/dist/esm/chunks/chunk.2FXYTBYG.js +1450 -0
- package/dist/esm/chunks/chunk.2FXYTBYG.js.map +7 -0
- package/dist/esm/chunks/chunk.2LQMHAC7.js +187 -0
- package/dist/esm/chunks/chunk.2LQMHAC7.js.map +7 -0
- package/dist/esm/chunks/chunk.2LSEVYAC.js +342 -0
- package/dist/esm/chunks/chunk.2LSEVYAC.js.map +7 -0
- package/dist/esm/chunks/chunk.2NUAEZY7.js +221 -0
- package/dist/esm/chunks/chunk.2NUAEZY7.js.map +7 -0
- package/dist/esm/chunks/chunk.35U3UPDV.js +70 -0
- package/dist/esm/chunks/chunk.35U3UPDV.js.map +7 -0
- package/dist/esm/chunks/chunk.3KCCCXWS.js +344 -0
- package/dist/esm/chunks/chunk.3KCCCXWS.js.map +7 -0
- package/dist/esm/chunks/chunk.3NOZRZ7R.js +145 -0
- package/dist/esm/chunks/chunk.3NOZRZ7R.js.map +7 -0
- package/dist/esm/chunks/chunk.3ZKORL4I.js +212 -0
- package/dist/esm/chunks/chunk.3ZKORL4I.js.map +7 -0
- package/dist/esm/chunks/chunk.4BG22DGY.js +317 -0
- package/dist/esm/chunks/chunk.4BG22DGY.js.map +7 -0
- package/dist/esm/chunks/chunk.4HQ5VELO.js +793 -0
- package/dist/esm/chunks/chunk.4HQ5VELO.js.map +7 -0
- package/dist/esm/chunks/chunk.4JURZYE4.js +410 -0
- package/dist/esm/chunks/chunk.4JURZYE4.js.map +7 -0
- package/dist/esm/chunks/chunk.4UKSUUTX.js +296 -0
- package/dist/esm/chunks/chunk.4UKSUUTX.js.map +7 -0
- package/dist/esm/chunks/chunk.4V5O2CPU.js +417 -0
- package/dist/esm/chunks/chunk.4V5O2CPU.js.map +7 -0
- package/dist/esm/chunks/chunk.52F6VUCF.js +273 -0
- package/dist/esm/chunks/chunk.52F6VUCF.js.map +7 -0
- package/dist/esm/chunks/chunk.5EEEKOOK.js +552 -0
- package/dist/esm/chunks/chunk.5EEEKOOK.js.map +7 -0
- package/dist/esm/chunks/chunk.5NXVVSTU.js +243 -0
- package/dist/esm/chunks/chunk.5NXVVSTU.js.map +7 -0
- package/dist/esm/chunks/chunk.5VKAVHLM.js +610 -0
- package/dist/esm/chunks/chunk.5VKAVHLM.js.map +7 -0
- package/dist/esm/chunks/chunk.6KTLOA7V.js +6 -0
- package/dist/esm/chunks/chunk.6KTLOA7V.js.map +7 -0
- package/dist/esm/chunks/chunk.6V463G4I.js +105 -0
- package/dist/esm/chunks/chunk.6V463G4I.js.map +7 -0
- package/dist/esm/chunks/chunk.7FC5CPLE.js +603 -0
- package/dist/esm/chunks/chunk.7FC5CPLE.js.map +7 -0
- package/dist/esm/chunks/chunk.7G2S3DCM.js +458 -0
- package/dist/esm/chunks/chunk.7G2S3DCM.js.map +7 -0
- package/dist/esm/chunks/chunk.7I2XNJBL.js +593 -0
- package/dist/esm/chunks/chunk.7I2XNJBL.js.map +7 -0
- package/dist/esm/chunks/chunk.7KILTPJ6.js +72 -0
- package/dist/esm/chunks/chunk.7KILTPJ6.js.map +7 -0
- package/dist/esm/chunks/chunk.7XGNGXLR.js +648 -0
- package/dist/esm/chunks/chunk.7XGNGXLR.js.map +7 -0
- package/dist/esm/chunks/chunk.7Y4NHCJH.js +338 -0
- package/dist/esm/chunks/chunk.7Y4NHCJH.js.map +7 -0
- package/dist/esm/chunks/chunk.AHQ6QX3J.js +716 -0
- package/dist/esm/chunks/chunk.AHQ6QX3J.js.map +7 -0
- package/dist/esm/chunks/chunk.AYOZGYGO.js +21 -0
- package/dist/esm/chunks/chunk.AYOZGYGO.js.map +7 -0
- package/dist/esm/chunks/chunk.BKMWXPAS.js +439 -0
- package/dist/esm/chunks/chunk.BKMWXPAS.js.map +7 -0
- package/dist/esm/chunks/chunk.BOWCSPCH.js +2428 -0
- package/dist/esm/chunks/chunk.BOWCSPCH.js.map +7 -0
- package/dist/esm/chunks/chunk.BYN27JXZ.js +51 -0
- package/dist/esm/chunks/chunk.BYN27JXZ.js.map +7 -0
- package/dist/esm/chunks/chunk.BZPQIDQP.js +602 -0
- package/dist/esm/chunks/chunk.BZPQIDQP.js.map +7 -0
- package/dist/esm/chunks/chunk.C2MR3RDF.js +202 -0
- package/dist/esm/chunks/chunk.C2MR3RDF.js.map +7 -0
- package/dist/esm/chunks/chunk.C64YUJHS.js +55 -0
- package/dist/esm/chunks/chunk.C64YUJHS.js.map +7 -0
- package/dist/esm/chunks/chunk.CGHKW6S6.js +683 -0
- package/dist/esm/chunks/chunk.CGHKW6S6.js.map +7 -0
- package/dist/esm/chunks/chunk.CKS5A4YN.js +6 -0
- package/dist/esm/chunks/chunk.CKS5A4YN.js.map +7 -0
- package/dist/esm/chunks/chunk.COF6DD6T.js +293 -0
- package/dist/esm/chunks/chunk.COF6DD6T.js.map +7 -0
- package/dist/esm/chunks/chunk.D4XU5MZN.js +1203 -0
- package/dist/esm/chunks/chunk.D4XU5MZN.js.map +7 -0
- package/dist/esm/chunks/chunk.D5DMZ7ZG.js +350 -0
- package/dist/esm/chunks/chunk.D5DMZ7ZG.js.map +7 -0
- package/dist/esm/chunks/chunk.DB7ZQBES.js +244 -0
- package/dist/esm/chunks/chunk.DB7ZQBES.js.map +7 -0
- package/dist/esm/chunks/chunk.E4NCI7MS.js +6 -0
- package/dist/esm/chunks/chunk.E4NCI7MS.js.map +7 -0
- package/dist/esm/chunks/chunk.EA7XMXI5.js +200 -0
- package/dist/esm/chunks/chunk.EA7XMXI5.js.map +7 -0
- package/dist/esm/chunks/chunk.EARNUKJ2.js +401 -0
- package/dist/esm/chunks/chunk.EARNUKJ2.js.map +7 -0
- package/dist/esm/chunks/chunk.EKIW7VYG.js +419 -0
- package/dist/esm/chunks/chunk.EKIW7VYG.js.map +7 -0
- package/dist/esm/chunks/chunk.EL6B2ODN.js +52 -0
- package/dist/esm/chunks/chunk.EL6B2ODN.js.map +7 -0
- package/dist/esm/chunks/chunk.ETP6HSXO.js +513 -0
- package/dist/esm/chunks/chunk.ETP6HSXO.js.map +7 -0
- package/dist/esm/chunks/chunk.ETQIBLKP.js +978 -0
- package/dist/esm/chunks/chunk.ETQIBLKP.js.map +7 -0
- package/dist/esm/chunks/chunk.EWQENJ4W.js +505 -0
- package/dist/esm/chunks/chunk.EWQENJ4W.js.map +7 -0
- package/dist/esm/chunks/chunk.EY57VTRF.js +33 -0
- package/dist/esm/chunks/chunk.EY57VTRF.js.map +7 -0
- package/dist/esm/chunks/chunk.FBUQQD2T.js +732 -0
- package/dist/esm/chunks/chunk.FBUQQD2T.js.map +7 -0
- package/dist/esm/chunks/chunk.FMMPWQKC.js +439 -0
- package/dist/esm/chunks/chunk.FMMPWQKC.js.map +7 -0
- package/dist/esm/chunks/chunk.FWJ7SIFA.js +433 -0
- package/dist/esm/chunks/chunk.FWJ7SIFA.js.map +7 -0
- package/dist/esm/chunks/chunk.FZQCBRPK.js +6 -0
- package/dist/esm/chunks/chunk.FZQCBRPK.js.map +7 -0
- package/dist/esm/chunks/chunk.G6FY472A.js +658 -0
- package/dist/esm/chunks/chunk.G6FY472A.js.map +7 -0
- package/dist/esm/chunks/chunk.GS2AXUCN.js +150 -0
- package/dist/esm/chunks/chunk.GS2AXUCN.js.map +7 -0
- package/dist/esm/chunks/chunk.HHHMDDTU.js +297 -0
- package/dist/esm/chunks/chunk.HHHMDDTU.js.map +7 -0
- package/dist/esm/chunks/chunk.HZISALRH.js +20 -0
- package/dist/esm/chunks/chunk.HZISALRH.js.map +7 -0
- package/dist/esm/chunks/chunk.IBH5GL7A.js +258 -0
- package/dist/esm/chunks/chunk.IBH5GL7A.js.map +7 -0
- package/dist/esm/chunks/chunk.IWXT6VVJ.js +222 -0
- package/dist/esm/chunks/chunk.IWXT6VVJ.js.map +7 -0
- package/dist/esm/chunks/chunk.J6LOWXOG.js +654 -0
- package/dist/esm/chunks/chunk.J6LOWXOG.js.map +7 -0
- package/dist/esm/chunks/chunk.JICZQ2BO.js +168 -0
- package/dist/esm/chunks/chunk.JICZQ2BO.js.map +7 -0
- package/dist/esm/chunks/chunk.JKC5PU23.js +42 -0
- package/dist/esm/chunks/chunk.JKC5PU23.js.map +7 -0
- package/dist/esm/chunks/chunk.JQQOZMKQ.js +2994 -0
- package/dist/esm/chunks/chunk.JQQOZMKQ.js.map +7 -0
- package/dist/esm/chunks/chunk.JVQP6BJ3.js +1591 -0
- package/dist/esm/chunks/chunk.JVQP6BJ3.js.map +7 -0
- package/dist/esm/chunks/chunk.K2PCTUVN.js +139 -0
- package/dist/esm/chunks/chunk.K2PCTUVN.js.map +7 -0
- package/dist/esm/chunks/chunk.KCK3G74Y.js +634 -0
- package/dist/esm/chunks/chunk.KCK3G74Y.js.map +7 -0
- package/dist/esm/chunks/chunk.KI3IHPS2.js +801 -0
- package/dist/esm/chunks/chunk.KI3IHPS2.js.map +7 -0
- package/dist/esm/chunks/chunk.KRW2IAIU.js +445 -0
- package/dist/esm/chunks/chunk.KRW2IAIU.js.map +7 -0
- package/dist/esm/chunks/chunk.KZ2QNQK2.js +21 -0
- package/dist/esm/chunks/chunk.KZ2QNQK2.js.map +7 -0
- package/dist/esm/chunks/chunk.KZATVOA6.js +68 -0
- package/dist/esm/chunks/chunk.KZATVOA6.js.map +7 -0
- package/dist/esm/chunks/chunk.LCWRP2UI.js +59 -0
- package/dist/esm/chunks/chunk.LCWRP2UI.js.map +7 -0
- package/dist/esm/chunks/chunk.LM5TVNZY.js +71 -0
- package/dist/esm/chunks/chunk.LM5TVNZY.js.map +7 -0
- package/dist/esm/chunks/chunk.MAGJQ2PP.js +964 -0
- package/dist/esm/chunks/chunk.MAGJQ2PP.js.map +7 -0
- package/dist/esm/chunks/chunk.MEFT5FQC.js +158 -0
- package/dist/esm/chunks/chunk.MEFT5FQC.js.map +7 -0
- package/dist/esm/chunks/chunk.MHEJZJT3.js +6 -0
- package/dist/esm/chunks/chunk.MHEJZJT3.js.map +7 -0
- package/dist/esm/chunks/chunk.MMIZOYAS.js +147 -0
- package/dist/esm/chunks/chunk.MMIZOYAS.js.map +7 -0
- package/dist/esm/chunks/chunk.MNFGVNDI.js +6 -0
- package/dist/esm/chunks/chunk.MNFGVNDI.js.map +7 -0
- package/dist/esm/chunks/chunk.NQOD2XB3.js +840 -0
- package/dist/esm/chunks/chunk.NQOD2XB3.js.map +7 -0
- package/dist/esm/chunks/chunk.NRI7SWVX.js +1347 -0
- package/dist/esm/chunks/chunk.NRI7SWVX.js.map +7 -0
- package/dist/esm/chunks/chunk.NX5SKZLU.js +50 -0
- package/dist/esm/chunks/chunk.NX5SKZLU.js.map +7 -0
- package/dist/esm/chunks/chunk.O6UHX6FK.js +463 -0
- package/dist/esm/chunks/chunk.O6UHX6FK.js.map +7 -0
- package/dist/esm/chunks/chunk.OJI6ZRYW.js +561 -0
- package/dist/esm/chunks/chunk.OJI6ZRYW.js.map +7 -0
- package/dist/esm/chunks/chunk.OQRMHHPB.js +1335 -0
- package/dist/esm/chunks/chunk.OQRMHHPB.js.map +7 -0
- package/dist/esm/chunks/chunk.OYO6NUZY.js +52 -0
- package/dist/esm/chunks/chunk.OYO6NUZY.js.map +7 -0
- package/dist/esm/chunks/chunk.P43Z3YAS.js +507 -0
- package/dist/esm/chunks/chunk.P43Z3YAS.js.map +7 -0
- package/dist/esm/chunks/chunk.P7NOYP4O.js +73 -0
- package/dist/esm/chunks/chunk.P7NOYP4O.js.map +7 -0
- package/dist/esm/chunks/chunk.PBGL3BRX.js +27 -0
- package/dist/esm/chunks/chunk.PBGL3BRX.js.map +7 -0
- package/dist/esm/chunks/chunk.PCYIY5OY.js +461 -0
- package/dist/esm/chunks/chunk.PCYIY5OY.js.map +7 -0
- package/dist/esm/chunks/chunk.Q4YMHFRY.js +155 -0
- package/dist/esm/chunks/chunk.Q4YMHFRY.js.map +7 -0
- package/dist/esm/chunks/chunk.QD7EPCL6.js +144 -0
- package/dist/esm/chunks/chunk.QD7EPCL6.js.map +7 -0
- package/dist/esm/chunks/chunk.QQDDGRY6.js +6 -0
- package/dist/esm/chunks/chunk.QQDDGRY6.js.map +7 -0
- package/dist/esm/chunks/chunk.RNPIV3BY.js +540 -0
- package/dist/esm/chunks/chunk.RNPIV3BY.js.map +7 -0
- package/dist/esm/chunks/chunk.RR7HDQU6.js +236 -0
- package/dist/esm/chunks/chunk.RR7HDQU6.js.map +7 -0
- package/dist/esm/chunks/chunk.RV3E762Y.js +73 -0
- package/dist/esm/chunks/chunk.RV3E762Y.js.map +7 -0
- package/dist/esm/chunks/chunk.RWCC6E4O.js +52 -0
- package/dist/esm/chunks/chunk.RWCC6E4O.js.map +7 -0
- package/dist/esm/chunks/chunk.SJZ54RE3.js +56 -0
- package/dist/esm/chunks/chunk.SJZ54RE3.js.map +7 -0
- package/dist/esm/chunks/chunk.SKISCNSC.js +559 -0
- package/dist/esm/chunks/chunk.SKISCNSC.js.map +7 -0
- package/dist/esm/chunks/chunk.SKLCDWYQ.js +6 -0
- package/dist/esm/chunks/chunk.SKLCDWYQ.js.map +7 -0
- package/dist/esm/chunks/chunk.SNAZ6JSS.js +22 -0
- package/dist/esm/chunks/chunk.SNAZ6JSS.js.map +7 -0
- package/dist/esm/chunks/chunk.ST3R6JEE.js +73 -0
- package/dist/esm/chunks/chunk.ST3R6JEE.js.map +7 -0
- package/dist/esm/chunks/chunk.TLCGGWBO.js +6 -0
- package/dist/esm/chunks/chunk.TLCGGWBO.js.map +7 -0
- package/dist/esm/chunks/chunk.U35QQZVK.js +422 -0
- package/dist/esm/chunks/chunk.U35QQZVK.js.map +7 -0
- package/dist/esm/chunks/chunk.U6FJJGO3.js +6 -0
- package/dist/esm/chunks/chunk.U6FJJGO3.js.map +7 -0
- package/dist/esm/chunks/chunk.VAPJ75PS.js +21 -0
- package/dist/esm/chunks/chunk.VAPJ75PS.js.map +7 -0
- package/dist/esm/chunks/chunk.VHO7NUMI.js +37 -0
- package/dist/esm/chunks/chunk.VHO7NUMI.js.map +7 -0
- package/dist/esm/chunks/chunk.VK6LIH3B.js +13 -0
- package/dist/esm/chunks/chunk.VK6LIH3B.js.map +7 -0
- package/dist/esm/chunks/chunk.VTXXZ5KT.js +450 -0
- package/dist/esm/chunks/chunk.VTXXZ5KT.js.map +7 -0
- package/dist/esm/chunks/chunk.WAJDLUSQ.js +56 -0
- package/dist/esm/chunks/chunk.WAJDLUSQ.js.map +7 -0
- package/dist/esm/chunks/chunk.WF2MFLG4.js +6 -0
- package/dist/esm/chunks/chunk.WF2MFLG4.js.map +7 -0
- package/dist/esm/chunks/chunk.WINL2C7Q.js +6 -0
- package/dist/esm/chunks/chunk.WINL2C7Q.js.map +7 -0
- package/dist/esm/chunks/chunk.WIYLQTSX.js +3550 -0
- package/dist/esm/chunks/chunk.WIYLQTSX.js.map +7 -0
- package/dist/esm/chunks/chunk.WT4W2IFT.js +92 -0
- package/dist/esm/chunks/chunk.WT4W2IFT.js.map +7 -0
- package/dist/esm/chunks/chunk.WXFCZJJI.js +52 -0
- package/dist/esm/chunks/chunk.WXFCZJJI.js.map +7 -0
- package/dist/esm/chunks/chunk.XEF6G5NS.js +248 -0
- package/dist/esm/chunks/chunk.XEF6G5NS.js.map +7 -0
- package/dist/esm/chunks/chunk.XGMOOPIE.js +136 -0
- package/dist/esm/chunks/chunk.XGMOOPIE.js.map +7 -0
- package/dist/esm/chunks/chunk.XIDZXGD4.js +912 -0
- package/dist/esm/chunks/chunk.XIDZXGD4.js.map +7 -0
- package/dist/esm/chunks/chunk.XJVLHRVJ.js +59 -0
- package/dist/esm/chunks/chunk.XJVLHRVJ.js.map +7 -0
- package/dist/esm/chunks/chunk.XO3XVXWW.js +72 -0
- package/dist/esm/chunks/chunk.XO3XVXWW.js.map +7 -0
- package/dist/esm/chunks/chunk.XY3ZHN7Y.js +649 -0
- package/dist/esm/chunks/chunk.XY3ZHN7Y.js.map +7 -0
- package/dist/esm/chunks/chunk.Y2TDQIA4.js +307 -0
- package/dist/esm/chunks/chunk.Y2TDQIA4.js.map +7 -0
- package/dist/esm/chunks/chunk.YCW56AVX.js +176 -0
- package/dist/esm/chunks/chunk.YCW56AVX.js.map +7 -0
- package/dist/esm/chunks/chunk.YDPSV74L.js +742 -0
- package/dist/esm/chunks/chunk.YDPSV74L.js.map +7 -0
- package/dist/esm/chunks/chunk.YJ5X3WZ4.js +110 -0
- package/dist/esm/chunks/chunk.YJ5X3WZ4.js.map +7 -0
- package/dist/esm/chunks/chunk.ZABF5CI6.js +760 -0
- package/dist/esm/chunks/chunk.ZABF5CI6.js.map +7 -0
- package/dist/esm/chunks/chunk.ZG4NZM2P.js +173 -0
- package/dist/esm/chunks/chunk.ZG4NZM2P.js.map +7 -0
- package/dist/esm/chunks/chunk.ZUM5YLB2.js +291 -0
- package/dist/esm/chunks/chunk.ZUM5YLB2.js.map +7 -0
- package/dist/esm/circular-progress/index.js +28 -0
- package/dist/esm/circular-progress/index.js.map +7 -0
- package/dist/esm/color-picker/index.js +49 -0
- package/dist/esm/color-picker/index.js.map +7 -0
- package/dist/esm/core/base/index.js +21 -0
- package/dist/esm/core/base/index.js.map +7 -0
- package/dist/esm/core/delegates/index.js +20 -0
- package/dist/esm/core/delegates/index.js.map +7 -0
- package/dist/esm/core/index.js +83 -0
- package/dist/esm/core/index.js.map +7 -0
- package/dist/esm/core/mask/index.js +26 -0
- package/dist/esm/core/mask/index.js.map +7 -0
- package/dist/esm/core/utils/index.js +46 -0
- package/dist/esm/core/utils/index.js.map +7 -0
- package/dist/esm/date-picker/index.js +62 -0
- package/dist/esm/date-picker/index.js.map +7 -0
- package/dist/esm/date-range-picker/index.js +64 -0
- package/dist/esm/date-range-picker/index.js.map +7 -0
- package/dist/esm/dialog/index.js +44 -0
- package/dist/esm/dialog/index.js.map +7 -0
- package/dist/esm/divider/index.js +22 -0
- package/dist/esm/divider/index.js.map +7 -0
- package/dist/esm/drawer/base/index.js +25 -0
- package/dist/esm/drawer/base/index.js.map +7 -0
- package/dist/esm/drawer/drawer/index.js +25 -0
- package/dist/esm/drawer/drawer/index.js.map +7 -0
- package/dist/esm/drawer/index.js +56 -0
- package/dist/esm/drawer/index.js.map +7 -0
- package/dist/esm/drawer/mini-drawer/index.js +25 -0
- package/dist/esm/drawer/mini-drawer/index.js.map +7 -0
- package/dist/esm/drawer/modal-drawer/index.js +30 -0
- package/dist/esm/drawer/modal-drawer/index.js.map +7 -0
- package/dist/esm/expansion-panel/index.js +38 -0
- package/dist/esm/expansion-panel/index.js.map +7 -0
- package/dist/esm/file-picker/index.js +41 -0
- package/dist/esm/file-picker/index.js.map +7 -0
- package/dist/esm/floating-action-button/index.js +29 -0
- package/dist/esm/floating-action-button/index.js.map +7 -0
- package/dist/esm/floating-label/index.js +23 -0
- package/dist/esm/floating-label/index.js.map +7 -0
- package/dist/esm/icon/index.js +53 -0
- package/dist/esm/icon/index.js.map +7 -0
- package/dist/esm/icon-button/index.js +37 -0
- package/dist/esm/icon-button/index.js.map +7 -0
- package/dist/esm/index.js +1275 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/inline-message/index.js +22 -0
- package/dist/esm/inline-message/index.js.map +7 -0
- package/dist/esm/keyboard-shortcut/index.js +41 -0
- package/dist/esm/keyboard-shortcut/index.js.map +7 -0
- package/dist/esm/label-value/index.js +32 -0
- package/dist/esm/label-value/index.js.map +7 -0
- package/dist/esm/linear-progress/index.js +24 -0
- package/dist/esm/linear-progress/index.js.map +7 -0
- package/dist/esm/list/index.js +44 -0
- package/dist/esm/list/index.js.map +7 -0
- package/dist/esm/list/list/index.js +33 -0
- package/dist/esm/list/list/index.js.map +7 -0
- package/dist/esm/list/list-item/index.js +31 -0
- package/dist/esm/list/list-item/index.js.map +7 -0
- package/dist/esm/list-dropdown/index.js +55 -0
- package/dist/esm/list-dropdown/index.js.map +7 -0
- package/dist/esm/menu/index.js +53 -0
- package/dist/esm/menu/index.js.map +7 -0
- package/dist/esm/open-icon/index.js +37 -0
- package/dist/esm/open-icon/index.js.map +7 -0
- package/dist/esm/page-state/index.js +22 -0
- package/dist/esm/page-state/index.js.map +7 -0
- package/dist/esm/paginator/index.js +66 -0
- package/dist/esm/paginator/index.js.map +7 -0
- package/dist/esm/popup/index.js +31 -0
- package/dist/esm/popup/index.js.map +7 -0
- package/dist/esm/product-icon/index.js +29 -0
- package/dist/esm/product-icon/index.js.map +7 -0
- package/dist/esm/profile-card/index.js +37 -0
- package/dist/esm/profile-card/index.js.map +7 -0
- package/dist/esm/quantity-field/index.js +46 -0
- package/dist/esm/quantity-field/index.js.map +7 -0
- package/dist/esm/radio/index.js +26 -0
- package/dist/esm/radio/index.js.map +7 -0
- package/dist/esm/ripple/index.js +32 -0
- package/dist/esm/ripple/index.js.map +7 -0
- package/dist/esm/scaffold/index.js +22 -0
- package/dist/esm/scaffold/index.js.map +7 -0
- package/dist/esm/select/core/index.js +60 -0
- package/dist/esm/select/core/index.js.map +7 -0
- package/dist/esm/select/index.js +114 -0
- package/dist/esm/select/index.js.map +7 -0
- package/dist/esm/select/option/index.js +28 -0
- package/dist/esm/select/option/index.js.map +7 -0
- package/dist/esm/select/option-group/index.js +22 -0
- package/dist/esm/select/option-group/index.js.map +7 -0
- package/dist/esm/select/select/index.js +63 -0
- package/dist/esm/select/select/index.js.map +7 -0
- package/dist/esm/select/select-dropdown/index.js +59 -0
- package/dist/esm/select/select-dropdown/index.js.map +7 -0
- package/dist/esm/skeleton/index.js +22 -0
- package/dist/esm/skeleton/index.js.map +7 -0
- package/dist/esm/slider/index.js +35 -0
- package/dist/esm/slider/index.js.map +7 -0
- package/dist/esm/stepper/index.js +55 -0
- package/dist/esm/stepper/index.js.map +7 -0
- package/dist/esm/stepper/step/index.js +40 -0
- package/dist/esm/stepper/step/index.js.map +7 -0
- package/dist/esm/stepper/stepper/index.js +43 -0
- package/dist/esm/stepper/stepper/index.js.map +7 -0
- package/dist/esm/switch/index.js +34 -0
- package/dist/esm/switch/index.js.map +7 -0
- package/dist/esm/table/index.js +57 -0
- package/dist/esm/table/index.js.map +7 -0
- package/dist/esm/tabs/index.js +61 -0
- package/dist/esm/tabs/index.js.map +7 -0
- package/dist/esm/tabs/tab/index.js +33 -0
- package/dist/esm/tabs/tab/index.js.map +7 -0
- package/dist/esm/tabs/tab-bar/index.js +47 -0
- package/dist/esm/tabs/tab-bar/index.js.map +7 -0
- package/dist/esm/text-field/index.js +39 -0
- package/dist/esm/text-field/index.js.map +7 -0
- package/dist/esm/theme/index.js +17 -0
- package/dist/esm/theme/index.js.map +7 -0
- package/dist/esm/time-picker/index.js +92 -0
- package/dist/esm/time-picker/index.js.map +7 -0
- package/dist/esm/toast/index.js +42 -0
- package/dist/esm/toast/index.js.map +7 -0
- package/dist/esm/toolbar/index.js +22 -0
- package/dist/esm/toolbar/index.js.map +7 -0
- package/dist/esm/tooltip/index.js +34 -0
- package/dist/esm/tooltip/index.js.map +7 -0
- package/dist/esm/utils/index.js +17 -0
- package/dist/esm/utils/index.js.map +7 -0
- package/dist/esm/view-switcher/index.js +40 -0
- package/dist/esm/view-switcher/index.js.map +7 -0
- package/dist/esm/view-switcher/view/index.js +22 -0
- package/dist/esm/view-switcher/view/index.js.map +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1335 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Tyler Technologies, Inc.
|
|
4
|
+
* License: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
TAB_CONSTANTS,
|
|
8
|
+
TabComponent
|
|
9
|
+
} from "./chunk.EWQENJ4W.js";
|
|
10
|
+
import {
|
|
11
|
+
IconButtonComponent
|
|
12
|
+
} from "./chunk.7Y4NHCJH.js";
|
|
13
|
+
import {
|
|
14
|
+
applyPassive,
|
|
15
|
+
matches
|
|
16
|
+
} from "./chunk.4HQ5VELO.js";
|
|
17
|
+
import {
|
|
18
|
+
MDCComponent,
|
|
19
|
+
MDCFoundation,
|
|
20
|
+
__assign,
|
|
21
|
+
__extends,
|
|
22
|
+
__read
|
|
23
|
+
} from "./chunk.5VKAVHLM.js";
|
|
24
|
+
import {
|
|
25
|
+
tylIconKeyboardArrowLeft,
|
|
26
|
+
tylIconKeyboardArrowRight
|
|
27
|
+
} from "./chunk.GS2AXUCN.js";
|
|
28
|
+
import {
|
|
29
|
+
Platform
|
|
30
|
+
} from "./chunk.BYN27JXZ.js";
|
|
31
|
+
import {
|
|
32
|
+
IconComponent,
|
|
33
|
+
IconRegistry
|
|
34
|
+
} from "./chunk.P43Z3YAS.js";
|
|
35
|
+
import {
|
|
36
|
+
BaseAdapter
|
|
37
|
+
} from "./chunk.KZATVOA6.js";
|
|
38
|
+
import {
|
|
39
|
+
FoundationProperty
|
|
40
|
+
} from "./chunk.MMIZOYAS.js";
|
|
41
|
+
import {
|
|
42
|
+
COMPONENT_NAME_PREFIX,
|
|
43
|
+
CustomElement
|
|
44
|
+
} from "./chunk.35U3UPDV.js";
|
|
45
|
+
import {
|
|
46
|
+
BaseComponent
|
|
47
|
+
} from "./chunk.VK6LIH3B.js";
|
|
48
|
+
import {
|
|
49
|
+
attachShadowTemplate,
|
|
50
|
+
defineCustomElement,
|
|
51
|
+
getShadowElement
|
|
52
|
+
} from "./chunk.K2PCTUVN.js";
|
|
53
|
+
import {
|
|
54
|
+
getActiveElement,
|
|
55
|
+
removeClass,
|
|
56
|
+
toggleClass
|
|
57
|
+
} from "./chunk.4JURZYE4.js";
|
|
58
|
+
import {
|
|
59
|
+
coerceBoolean,
|
|
60
|
+
coerceNumber,
|
|
61
|
+
isFunction,
|
|
62
|
+
isNumber
|
|
63
|
+
} from "./chunk.MEFT5FQC.js";
|
|
64
|
+
import {
|
|
65
|
+
__decorateClass
|
|
66
|
+
} from "./chunk.LM5TVNZY.js";
|
|
67
|
+
|
|
68
|
+
// dist/build/lib/staging/src/tabs/tab-bar/tab-bar-constants.ts
|
|
69
|
+
var elementName = `${COMPONENT_NAME_PREFIX}tab-bar`;
|
|
70
|
+
var attributes = {
|
|
71
|
+
ACTIVE_TAB: "active-tab",
|
|
72
|
+
LAYOUT_MODE: "layout-mode",
|
|
73
|
+
LAYOUT_ALIGN: "layout-align",
|
|
74
|
+
UNDERLINE: "underline",
|
|
75
|
+
AUTO_ACTIVATE: "auto-activate",
|
|
76
|
+
STACKED: "stacked",
|
|
77
|
+
SCROLL_BUTTONS: "scroll-buttons",
|
|
78
|
+
FORCE_SCROLL_BUTTONS: "force-scroll-buttons"
|
|
79
|
+
};
|
|
80
|
+
var classes = {
|
|
81
|
+
UNDERLINED: "forge-tab-bar--underlined",
|
|
82
|
+
ALIGN_CENTER: "forge-tab-bar--align-center",
|
|
83
|
+
ALIGN_END: "forge-tab-bar--align-end",
|
|
84
|
+
FIXED: "forge-tab-bar--fixed",
|
|
85
|
+
STACKED: "forge-tab-bar--stacked"
|
|
86
|
+
};
|
|
87
|
+
var selectors = {
|
|
88
|
+
ROOT: ".forge-tab-bar",
|
|
89
|
+
TAB_SCROLLER: ".mdc-tab-scroller",
|
|
90
|
+
TAB_SCROLLER_AREA: ".mdc-tab-scroller__scroll-area",
|
|
91
|
+
TAB_SCROLLER_CONTENT: ".mdc-tab-scroller__scroll-content",
|
|
92
|
+
PREV_BUTTON_CONTAINER: ".forge-tab-bar__scroll-prev-container",
|
|
93
|
+
PREV_BUTTON: "#scroll-prev-btn",
|
|
94
|
+
NEXT_BUTTON_CONTAINER: ".forge-tab-bar__scroll-next-container",
|
|
95
|
+
NEXT_BUTTON: "#scroll-next-btn"
|
|
96
|
+
};
|
|
97
|
+
var events = {
|
|
98
|
+
ACTIVATE: `${elementName}-activate`
|
|
99
|
+
};
|
|
100
|
+
var strings = {
|
|
101
|
+
ARROW_LEFT_KEY: "ArrowLeft",
|
|
102
|
+
ARROW_RIGHT_KEY: "ArrowRight",
|
|
103
|
+
END_KEY: "End",
|
|
104
|
+
ENTER_KEY: "Enter",
|
|
105
|
+
HOME_KEY: "Home",
|
|
106
|
+
SPACE_KEY: "Space"
|
|
107
|
+
};
|
|
108
|
+
var numbers = {
|
|
109
|
+
ARROW_LEFT_KEYCODE: 37,
|
|
110
|
+
ARROW_RIGHT_KEYCODE: 39,
|
|
111
|
+
END_KEYCODE: 35,
|
|
112
|
+
ENTER_KEYCODE: 13,
|
|
113
|
+
EXTRA_SCROLL_AMOUNT: 20,
|
|
114
|
+
HOME_KEYCODE: 36,
|
|
115
|
+
SPACE_KEYCODE: 32
|
|
116
|
+
};
|
|
117
|
+
var TAB_BAR_CONSTANTS = {
|
|
118
|
+
attributes,
|
|
119
|
+
elementName,
|
|
120
|
+
classes,
|
|
121
|
+
selectors,
|
|
122
|
+
events,
|
|
123
|
+
strings,
|
|
124
|
+
numbers
|
|
125
|
+
};
|
|
126
|
+
var ACCEPTABLE_KEYS = [
|
|
127
|
+
strings.ARROW_LEFT_KEY,
|
|
128
|
+
strings.ARROW_RIGHT_KEY,
|
|
129
|
+
strings.END_KEY,
|
|
130
|
+
strings.HOME_KEY,
|
|
131
|
+
strings.ENTER_KEY,
|
|
132
|
+
strings.SPACE_KEY
|
|
133
|
+
];
|
|
134
|
+
var KEYCODE_MAP = {
|
|
135
|
+
[numbers.ARROW_LEFT_KEYCODE]: strings.ARROW_LEFT_KEY,
|
|
136
|
+
[numbers.ARROW_RIGHT_KEYCODE]: strings.ARROW_RIGHT_KEY,
|
|
137
|
+
[numbers.END_KEYCODE]: strings.END_KEY,
|
|
138
|
+
[numbers.HOME_KEYCODE]: strings.HOME_KEY,
|
|
139
|
+
[numbers.ENTER_KEYCODE]: strings.ENTER_KEY,
|
|
140
|
+
[numbers.SPACE_KEYCODE]: strings.SPACE_KEY
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
// dist/build/lib/staging/src/tabs/tab-bar/tab-bar-foundation.ts
|
|
144
|
+
var TabBarFoundation = class {
|
|
145
|
+
constructor(_adapter) {
|
|
146
|
+
this._adapter = _adapter;
|
|
147
|
+
this._isInitialized = false;
|
|
148
|
+
this._activeTab = -1;
|
|
149
|
+
this._layoutMode = "fixed";
|
|
150
|
+
this._layoutAlign = "start";
|
|
151
|
+
this._underline = false;
|
|
152
|
+
this._autoActivate = false;
|
|
153
|
+
this._stacked = false;
|
|
154
|
+
this._scrollButtons = true;
|
|
155
|
+
this._forceScrollButtons = false;
|
|
156
|
+
this._tabsChangedListener = (evt) => this._onTabsChanged(evt);
|
|
157
|
+
this._tabInteractedListener = (evt) => this._onTabInteracted(evt);
|
|
158
|
+
this._keydownListener = (evt) => this._onKeydown(evt);
|
|
159
|
+
this._scrollPrevClickListener = (evt) => this._onScrollPrevious(evt);
|
|
160
|
+
this._scrollPrevMousedownListener = (evt) => evt.preventDefault();
|
|
161
|
+
this._scrollNextClickListener = (evt) => this._onScrollNext(evt);
|
|
162
|
+
this._scrollNextMousedownListener = (evt) => evt.preventDefault();
|
|
163
|
+
this._scrollListener = (evt) => this._onScroll(evt);
|
|
164
|
+
}
|
|
165
|
+
initialize() {
|
|
166
|
+
this._adapter.initializeTabs(this._activeTab, this._isFixed);
|
|
167
|
+
this._adapter.initializeTabScroller();
|
|
168
|
+
this._adapter.initializeAccessibility();
|
|
169
|
+
this._adapter.addTabChangeListener(this._tabsChangedListener);
|
|
170
|
+
this._adapter.addScrollPreviousListener("click", this._scrollPrevClickListener);
|
|
171
|
+
this._adapter.addScrollPreviousListener("mousedown", this._scrollPrevMousedownListener);
|
|
172
|
+
this._adapter.addScrollNextListener("click", this._scrollNextClickListener);
|
|
173
|
+
this._adapter.addScrollNextListener("mousedown", this._scrollNextMousedownListener);
|
|
174
|
+
this._adapter.addHostListener(TAB_CONSTANTS.events.INTERACTED, this._tabInteractedListener);
|
|
175
|
+
this._adapter.addHostListener("keydown", this._keydownListener);
|
|
176
|
+
this._adapter.addScrollListener(this._scrollListener);
|
|
177
|
+
this._adapter.setUnderline(this._underline);
|
|
178
|
+
this._adapter.setLayoutMode(this._layoutMode);
|
|
179
|
+
this._adapter.setLayoutAlign(this._layoutAlign);
|
|
180
|
+
window.requestAnimationFrame(() => {
|
|
181
|
+
this._syncScrollButtons();
|
|
182
|
+
this._adapter.ensureFocusableTab();
|
|
183
|
+
});
|
|
184
|
+
this._isInitialized = true;
|
|
185
|
+
}
|
|
186
|
+
disconnect() {
|
|
187
|
+
this._adapter.destroyTabScroller();
|
|
188
|
+
this._adapter.removeTabChangeListener(this._tabsChangedListener);
|
|
189
|
+
this._adapter.removeHostListener(TAB_CONSTANTS.events.INTERACTED, this._tabInteractedListener);
|
|
190
|
+
this._adapter.removeHostListener("keydown", this._keydownListener);
|
|
191
|
+
this._isInitialized = false;
|
|
192
|
+
}
|
|
193
|
+
_onTabsChanged(evt) {
|
|
194
|
+
this._adapter.initializeTabs(this._activeTab, this._isFixed);
|
|
195
|
+
this._adapter.ensureFocusableTab();
|
|
196
|
+
window.setTimeout(() => {
|
|
197
|
+
window.requestAnimationFrame(() => {
|
|
198
|
+
this.scrollIntoView(this._activeTab);
|
|
199
|
+
this._syncScrollButtons();
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
_onTabInteracted(evt) {
|
|
204
|
+
const activatedTab = evt.target;
|
|
205
|
+
const activatedTabIndex = this._adapter.getTabIndex(activatedTab);
|
|
206
|
+
const isTabEvent = activatedTab.tagName.toLowerCase() === TAB_CONSTANTS.elementName;
|
|
207
|
+
const isValidTabIndex = activatedTabIndex !== this._activeTab && this._indexIsInRange(activatedTabIndex);
|
|
208
|
+
if (!isTabEvent || !isValidTabIndex) {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
const activateEventData = { index: activatedTabIndex };
|
|
212
|
+
const canActivate = this._adapter.emitHostEvent(TAB_BAR_CONSTANTS.events.ACTIVATE, activateEventData, true, true);
|
|
213
|
+
if (!canActivate) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
this.activateTab(activatedTabIndex);
|
|
217
|
+
this._adapter.focusTabAtIndex(activatedTabIndex);
|
|
218
|
+
}
|
|
219
|
+
_onKeydown(evt) {
|
|
220
|
+
const key = this._getKeyFromEvent(evt);
|
|
221
|
+
if (!key) {
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
if (!this._isActivationKey(key)) {
|
|
225
|
+
evt.preventDefault();
|
|
226
|
+
}
|
|
227
|
+
if (this._autoActivate) {
|
|
228
|
+
if (this._isActivationKey(key)) {
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
const index = this._determineTargetFromKey(this._activeTab, key);
|
|
232
|
+
if (this._activeTab === index) {
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
const activateEventData = { index };
|
|
236
|
+
const canActivate = this._adapter.emitHostEvent(TAB_BAR_CONSTANTS.events.ACTIVATE, activateEventData, true, true);
|
|
237
|
+
if (canActivate) {
|
|
238
|
+
this.activateTab(index);
|
|
239
|
+
this._adapter.focusTabAtIndex(index);
|
|
240
|
+
}
|
|
241
|
+
} else {
|
|
242
|
+
const focusedTabIndex = this._adapter.getFocusedTabIndex();
|
|
243
|
+
if (focusedTabIndex === -1) {
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
if (this._isActivationKey(key)) {
|
|
247
|
+
const activateEventData = { index: focusedTabIndex };
|
|
248
|
+
const canActivate = this._adapter.emitHostEvent(TAB_BAR_CONSTANTS.events.ACTIVATE, activateEventData, true, true);
|
|
249
|
+
if (canActivate) {
|
|
250
|
+
this.activateTab(focusedTabIndex);
|
|
251
|
+
}
|
|
252
|
+
} else {
|
|
253
|
+
const index = this._determineTargetFromKey(focusedTabIndex, key);
|
|
254
|
+
if (focusedTabIndex === index) {
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
this._adapter.focusTabAtIndex(index);
|
|
258
|
+
this.scrollIntoView(index);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
_onScrollPrevious(evt) {
|
|
263
|
+
const scrollAmount = -this._adapter.getOffsetWidth();
|
|
264
|
+
this._adapter.incrementScroll(scrollAmount);
|
|
265
|
+
this._syncScrollButtons();
|
|
266
|
+
}
|
|
267
|
+
_onScrollNext(evt) {
|
|
268
|
+
const scrollAmount = this._adapter.getOffsetWidth();
|
|
269
|
+
this._adapter.incrementScroll(scrollAmount);
|
|
270
|
+
this._syncScrollButtons();
|
|
271
|
+
}
|
|
272
|
+
_onScroll(evt) {
|
|
273
|
+
this._syncScrollButtons();
|
|
274
|
+
}
|
|
275
|
+
_syncScrollButtons() {
|
|
276
|
+
const isScrollable = this._isScrollable();
|
|
277
|
+
this._adapter.setPreviousButtonVisibility(isScrollable);
|
|
278
|
+
this._adapter.setNextButtonVisibility(isScrollable);
|
|
279
|
+
if (isScrollable) {
|
|
280
|
+
this._adapter.setPreviousButtonEnabled(this._adapter.isScrolled());
|
|
281
|
+
this._adapter.setNextButtonEnabled(!this._adapter.isScrolledEnd());
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
_findAdjacentTabIndexClosestToEdge(index, tabDimensions, scrollPosition, barWidth) {
|
|
285
|
+
const relativeRootLeft = tabDimensions.rootLeft - scrollPosition;
|
|
286
|
+
const relativeRootRight = tabDimensions.rootRight - scrollPosition - barWidth;
|
|
287
|
+
const relativeRootDelta = relativeRootLeft + relativeRootRight;
|
|
288
|
+
const leftEdgeIsCloser = relativeRootLeft < 0 || relativeRootDelta < 0;
|
|
289
|
+
const rightEdgeIsCloser = relativeRootRight > 0 || relativeRootDelta > 0;
|
|
290
|
+
if (leftEdgeIsCloser) {
|
|
291
|
+
return index - 1;
|
|
292
|
+
}
|
|
293
|
+
if (rightEdgeIsCloser) {
|
|
294
|
+
return index + 1;
|
|
295
|
+
}
|
|
296
|
+
return -1;
|
|
297
|
+
}
|
|
298
|
+
_calculateScrollIncrement(index, nextIndex, scrollPosition, barWidth) {
|
|
299
|
+
const nextTabDimensions = this._adapter.getTabDimensionsAtIndex(nextIndex);
|
|
300
|
+
const relativeContentLeft = nextTabDimensions.contentLeft - scrollPosition - barWidth;
|
|
301
|
+
const relativeContentRight = nextTabDimensions.contentRight - scrollPosition;
|
|
302
|
+
const leftIncrement = relativeContentRight - TAB_BAR_CONSTANTS.numbers.EXTRA_SCROLL_AMOUNT;
|
|
303
|
+
const rightIncrement = relativeContentLeft + TAB_BAR_CONSTANTS.numbers.EXTRA_SCROLL_AMOUNT;
|
|
304
|
+
if (nextIndex < index) {
|
|
305
|
+
return Math.min(leftIncrement, 0);
|
|
306
|
+
}
|
|
307
|
+
return Math.max(rightIncrement, 0);
|
|
308
|
+
}
|
|
309
|
+
_determineTargetFromKey(origin, key, nextIndex) {
|
|
310
|
+
if (origin === nextIndex) {
|
|
311
|
+
return origin;
|
|
312
|
+
}
|
|
313
|
+
const maxIndex = this._adapter.getTabCount() - 1;
|
|
314
|
+
const shouldGoToEnd = key === TAB_BAR_CONSTANTS.strings.END_KEY;
|
|
315
|
+
const shouldDecrement = key === TAB_BAR_CONSTANTS.strings.ARROW_LEFT_KEY;
|
|
316
|
+
const shouldIncrement = key === TAB_BAR_CONSTANTS.strings.ARROW_RIGHT_KEY;
|
|
317
|
+
let index = nextIndex !== void 0 ? nextIndex : origin;
|
|
318
|
+
if (shouldGoToEnd) {
|
|
319
|
+
index = maxIndex;
|
|
320
|
+
} else if (shouldDecrement) {
|
|
321
|
+
index -= 1;
|
|
322
|
+
} else if (shouldIncrement) {
|
|
323
|
+
index += 1;
|
|
324
|
+
} else {
|
|
325
|
+
index = 0;
|
|
326
|
+
}
|
|
327
|
+
if (index < 0) {
|
|
328
|
+
index = maxIndex;
|
|
329
|
+
} else if (index > maxIndex) {
|
|
330
|
+
index = 0;
|
|
331
|
+
}
|
|
332
|
+
if (this._adapter.isTabDisabled(index)) {
|
|
333
|
+
return this._determineTargetFromKey(origin, key, index);
|
|
334
|
+
}
|
|
335
|
+
return index;
|
|
336
|
+
}
|
|
337
|
+
_isScrollable() {
|
|
338
|
+
return this._forceScrollButtons || this._scrollButtons && !Platform.isMobile && !this._isFixed && this._adapter.getScrollContentWidth() > this._adapter.getOffsetWidth();
|
|
339
|
+
}
|
|
340
|
+
_getKeyFromEvent(evt) {
|
|
341
|
+
if (ACCEPTABLE_KEYS.includes(evt.key)) {
|
|
342
|
+
return evt.key;
|
|
343
|
+
}
|
|
344
|
+
return KEYCODE_MAP[evt.keyCode];
|
|
345
|
+
}
|
|
346
|
+
_isActivationKey(key) {
|
|
347
|
+
return key === TAB_BAR_CONSTANTS.strings.SPACE_KEY || key === TAB_BAR_CONSTANTS.strings.ENTER_KEY;
|
|
348
|
+
}
|
|
349
|
+
_indexIsInRange(index) {
|
|
350
|
+
return index >= 0 && index < this._adapter.getTabCount();
|
|
351
|
+
}
|
|
352
|
+
activateTab(index) {
|
|
353
|
+
if (!isNumber(index)) {
|
|
354
|
+
index = -1;
|
|
355
|
+
}
|
|
356
|
+
if (this._activeTab !== -1) {
|
|
357
|
+
this._adapter.deactivateTab(this._activeTab);
|
|
358
|
+
}
|
|
359
|
+
const previousTabBounds = this._adapter.getTabBounds(this._activeTab);
|
|
360
|
+
this._adapter.activateTab(index, previousTabBounds);
|
|
361
|
+
this._adapter.syncTabIndex(index);
|
|
362
|
+
this._adapter.ensureFocusableTab();
|
|
363
|
+
this.scrollIntoView(index);
|
|
364
|
+
this._activeTab = index;
|
|
365
|
+
this._syncScrollButtons();
|
|
366
|
+
this._adapter.setHostAttribute(TAB_BAR_CONSTANTS.attributes.ACTIVE_TAB, this._activeTab.toString());
|
|
367
|
+
}
|
|
368
|
+
scrollIntoView(index) {
|
|
369
|
+
if (!this._indexIsInRange(index)) {
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
if (index === 0) {
|
|
373
|
+
return this._adapter.scrollTo(0);
|
|
374
|
+
}
|
|
375
|
+
if (index === this._adapter.getTabCount() - 1) {
|
|
376
|
+
return this._adapter.scrollTo(this._adapter.getScrollContentWidth());
|
|
377
|
+
}
|
|
378
|
+
const scrollPosition = this._adapter.getScrollPosition();
|
|
379
|
+
const barWidth = this._adapter.getOffsetWidth();
|
|
380
|
+
const tabDimensions = this._adapter.getTabDimensionsAtIndex(index);
|
|
381
|
+
const nextIndex = this._findAdjacentTabIndexClosestToEdge(index, tabDimensions, scrollPosition, barWidth);
|
|
382
|
+
if (!this._indexIsInRange(nextIndex)) {
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
const scrollIncrement = this._calculateScrollIncrement(index, nextIndex, scrollPosition, barWidth);
|
|
386
|
+
this._adapter.incrementScroll(scrollIncrement);
|
|
387
|
+
}
|
|
388
|
+
get activeTab() {
|
|
389
|
+
return this._activeTab;
|
|
390
|
+
}
|
|
391
|
+
set activeTab(value) {
|
|
392
|
+
if (this._activeTab !== value) {
|
|
393
|
+
if (!this._isInitialized) {
|
|
394
|
+
this._activeTab = value;
|
|
395
|
+
this._adapter.setHostAttribute(TAB_BAR_CONSTANTS.attributes.ACTIVE_TAB, this._activeTab.toString());
|
|
396
|
+
} else {
|
|
397
|
+
this.activateTab(value);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
get _isFixed() {
|
|
402
|
+
return this._layoutMode === "fixed";
|
|
403
|
+
}
|
|
404
|
+
get layoutMode() {
|
|
405
|
+
return this._layoutMode;
|
|
406
|
+
}
|
|
407
|
+
set layoutMode(value) {
|
|
408
|
+
if (this._layoutMode !== value) {
|
|
409
|
+
this._layoutMode = value;
|
|
410
|
+
this._adapter.setLayoutMode(this._layoutMode);
|
|
411
|
+
this._syncScrollButtons();
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
get layoutAlign() {
|
|
415
|
+
return this._layoutAlign;
|
|
416
|
+
}
|
|
417
|
+
set layoutAlign(value) {
|
|
418
|
+
if (this._layoutAlign !== value) {
|
|
419
|
+
this._layoutAlign = value;
|
|
420
|
+
this._adapter.setLayoutAlign(this._layoutAlign);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
get underline() {
|
|
424
|
+
return this._underline;
|
|
425
|
+
}
|
|
426
|
+
set underline(value) {
|
|
427
|
+
if (this._underline !== value) {
|
|
428
|
+
this._underline = value;
|
|
429
|
+
this._adapter.setUnderline(this._underline);
|
|
430
|
+
this._adapter.toggleHostAttribute(TAB_BAR_CONSTANTS.attributes.UNDERLINE, this._underline);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
get stacked() {
|
|
434
|
+
return this._stacked;
|
|
435
|
+
}
|
|
436
|
+
set stacked(value) {
|
|
437
|
+
if (this._stacked !== value) {
|
|
438
|
+
this._stacked = value;
|
|
439
|
+
this._adapter.setStacked(this._stacked);
|
|
440
|
+
if (this._stacked) {
|
|
441
|
+
this._adapter.setHostAttribute(TAB_BAR_CONSTANTS.attributes.STACKED);
|
|
442
|
+
} else {
|
|
443
|
+
this._adapter.removeHostAttribute(TAB_BAR_CONSTANTS.attributes.STACKED);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
get scrollButtons() {
|
|
448
|
+
return this._scrollButtons;
|
|
449
|
+
}
|
|
450
|
+
set scrollButtons(value) {
|
|
451
|
+
if (this._scrollButtons !== value) {
|
|
452
|
+
this._scrollButtons = value;
|
|
453
|
+
this._adapter.setHostAttribute(TAB_BAR_CONSTANTS.attributes.SCROLL_BUTTONS, this._scrollButtons.toString());
|
|
454
|
+
if (this._isInitialized) {
|
|
455
|
+
this._syncScrollButtons();
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
get forceScrollButtons() {
|
|
460
|
+
return this._forceScrollButtons;
|
|
461
|
+
}
|
|
462
|
+
set forceScrollButtons(value) {
|
|
463
|
+
if (this._forceScrollButtons !== value) {
|
|
464
|
+
this._forceScrollButtons = value;
|
|
465
|
+
if (this._isInitialized) {
|
|
466
|
+
this._syncScrollButtons();
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
get autoActivate() {
|
|
471
|
+
return this._autoActivate;
|
|
472
|
+
}
|
|
473
|
+
set autoActivate(value) {
|
|
474
|
+
if (this._autoActivate !== value) {
|
|
475
|
+
this._autoActivate = value;
|
|
476
|
+
this._adapter.setHostAttribute(TAB_BAR_CONSTANTS.attributes.AUTO_ACTIVATE, this._autoActivate.toString());
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
// node_modules/@material/tab-scroller/constants.js
|
|
482
|
+
var cssClasses = {
|
|
483
|
+
ANIMATING: "mdc-tab-scroller--animating",
|
|
484
|
+
SCROLL_AREA_SCROLL: "mdc-tab-scroller__scroll-area--scroll",
|
|
485
|
+
SCROLL_TEST: "mdc-tab-scroller__test"
|
|
486
|
+
};
|
|
487
|
+
var strings2 = {
|
|
488
|
+
AREA_SELECTOR: ".mdc-tab-scroller__scroll-area",
|
|
489
|
+
CONTENT_SELECTOR: ".mdc-tab-scroller__scroll-content"
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
// node_modules/@material/tab-scroller/util.js
|
|
493
|
+
var horizontalScrollbarHeight_;
|
|
494
|
+
function computeHorizontalScrollbarHeight(documentObj, shouldCacheResult) {
|
|
495
|
+
if (shouldCacheResult === void 0) {
|
|
496
|
+
shouldCacheResult = true;
|
|
497
|
+
}
|
|
498
|
+
if (shouldCacheResult && typeof horizontalScrollbarHeight_ !== "undefined") {
|
|
499
|
+
return horizontalScrollbarHeight_;
|
|
500
|
+
}
|
|
501
|
+
var el = documentObj.createElement("div");
|
|
502
|
+
el.classList.add(cssClasses.SCROLL_TEST);
|
|
503
|
+
documentObj.body.appendChild(el);
|
|
504
|
+
var horizontalScrollbarHeight = el.offsetHeight - el.clientHeight;
|
|
505
|
+
documentObj.body.removeChild(el);
|
|
506
|
+
if (shouldCacheResult) {
|
|
507
|
+
horizontalScrollbarHeight_ = horizontalScrollbarHeight;
|
|
508
|
+
}
|
|
509
|
+
return horizontalScrollbarHeight;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
// node_modules/@material/tab-scroller/rtl-scroller.js
|
|
513
|
+
var MDCTabScrollerRTL = function() {
|
|
514
|
+
function MDCTabScrollerRTL2(adapter) {
|
|
515
|
+
this.adapter = adapter;
|
|
516
|
+
}
|
|
517
|
+
return MDCTabScrollerRTL2;
|
|
518
|
+
}();
|
|
519
|
+
|
|
520
|
+
// node_modules/@material/tab-scroller/rtl-default-scroller.js
|
|
521
|
+
var MDCTabScrollerRTLDefault = function(_super) {
|
|
522
|
+
__extends(MDCTabScrollerRTLDefault2, _super);
|
|
523
|
+
function MDCTabScrollerRTLDefault2() {
|
|
524
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
525
|
+
}
|
|
526
|
+
MDCTabScrollerRTLDefault2.prototype.getScrollPositionRTL = function() {
|
|
527
|
+
var currentScrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
528
|
+
var right = this.calculateScrollEdges().right;
|
|
529
|
+
return Math.round(right - currentScrollLeft);
|
|
530
|
+
};
|
|
531
|
+
MDCTabScrollerRTLDefault2.prototype.scrollToRTL = function(scrollX) {
|
|
532
|
+
var edges = this.calculateScrollEdges();
|
|
533
|
+
var currentScrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
534
|
+
var clampedScrollLeft = this.clampScrollValue(edges.right - scrollX);
|
|
535
|
+
return {
|
|
536
|
+
finalScrollPosition: clampedScrollLeft,
|
|
537
|
+
scrollDelta: clampedScrollLeft - currentScrollLeft
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
MDCTabScrollerRTLDefault2.prototype.incrementScrollRTL = function(scrollX) {
|
|
541
|
+
var currentScrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
542
|
+
var clampedScrollLeft = this.clampScrollValue(currentScrollLeft - scrollX);
|
|
543
|
+
return {
|
|
544
|
+
finalScrollPosition: clampedScrollLeft,
|
|
545
|
+
scrollDelta: clampedScrollLeft - currentScrollLeft
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
MDCTabScrollerRTLDefault2.prototype.getAnimatingScrollPosition = function(scrollX) {
|
|
549
|
+
return scrollX;
|
|
550
|
+
};
|
|
551
|
+
MDCTabScrollerRTLDefault2.prototype.calculateScrollEdges = function() {
|
|
552
|
+
var contentWidth = this.adapter.getScrollContentOffsetWidth();
|
|
553
|
+
var rootWidth = this.adapter.getScrollAreaOffsetWidth();
|
|
554
|
+
return {
|
|
555
|
+
left: 0,
|
|
556
|
+
right: contentWidth - rootWidth
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
MDCTabScrollerRTLDefault2.prototype.clampScrollValue = function(scrollX) {
|
|
560
|
+
var edges = this.calculateScrollEdges();
|
|
561
|
+
return Math.min(Math.max(edges.left, scrollX), edges.right);
|
|
562
|
+
};
|
|
563
|
+
return MDCTabScrollerRTLDefault2;
|
|
564
|
+
}(MDCTabScrollerRTL);
|
|
565
|
+
|
|
566
|
+
// node_modules/@material/tab-scroller/rtl-negative-scroller.js
|
|
567
|
+
var MDCTabScrollerRTLNegative = function(_super) {
|
|
568
|
+
__extends(MDCTabScrollerRTLNegative2, _super);
|
|
569
|
+
function MDCTabScrollerRTLNegative2() {
|
|
570
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
571
|
+
}
|
|
572
|
+
MDCTabScrollerRTLNegative2.prototype.getScrollPositionRTL = function(translateX) {
|
|
573
|
+
var currentScrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
574
|
+
return Math.round(translateX - currentScrollLeft);
|
|
575
|
+
};
|
|
576
|
+
MDCTabScrollerRTLNegative2.prototype.scrollToRTL = function(scrollX) {
|
|
577
|
+
var currentScrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
578
|
+
var clampedScrollLeft = this.clampScrollValue(-scrollX);
|
|
579
|
+
return {
|
|
580
|
+
finalScrollPosition: clampedScrollLeft,
|
|
581
|
+
scrollDelta: clampedScrollLeft - currentScrollLeft
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
MDCTabScrollerRTLNegative2.prototype.incrementScrollRTL = function(scrollX) {
|
|
585
|
+
var currentScrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
586
|
+
var clampedScrollLeft = this.clampScrollValue(currentScrollLeft - scrollX);
|
|
587
|
+
return {
|
|
588
|
+
finalScrollPosition: clampedScrollLeft,
|
|
589
|
+
scrollDelta: clampedScrollLeft - currentScrollLeft
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
MDCTabScrollerRTLNegative2.prototype.getAnimatingScrollPosition = function(scrollX, translateX) {
|
|
593
|
+
return scrollX - translateX;
|
|
594
|
+
};
|
|
595
|
+
MDCTabScrollerRTLNegative2.prototype.calculateScrollEdges = function() {
|
|
596
|
+
var contentWidth = this.adapter.getScrollContentOffsetWidth();
|
|
597
|
+
var rootWidth = this.adapter.getScrollAreaOffsetWidth();
|
|
598
|
+
return {
|
|
599
|
+
left: rootWidth - contentWidth,
|
|
600
|
+
right: 0
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
MDCTabScrollerRTLNegative2.prototype.clampScrollValue = function(scrollX) {
|
|
604
|
+
var edges = this.calculateScrollEdges();
|
|
605
|
+
return Math.max(Math.min(edges.right, scrollX), edges.left);
|
|
606
|
+
};
|
|
607
|
+
return MDCTabScrollerRTLNegative2;
|
|
608
|
+
}(MDCTabScrollerRTL);
|
|
609
|
+
|
|
610
|
+
// node_modules/@material/tab-scroller/rtl-reverse-scroller.js
|
|
611
|
+
var MDCTabScrollerRTLReverse = function(_super) {
|
|
612
|
+
__extends(MDCTabScrollerRTLReverse2, _super);
|
|
613
|
+
function MDCTabScrollerRTLReverse2() {
|
|
614
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
615
|
+
}
|
|
616
|
+
MDCTabScrollerRTLReverse2.prototype.getScrollPositionRTL = function(translateX) {
|
|
617
|
+
var currentScrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
618
|
+
return Math.round(currentScrollLeft - translateX);
|
|
619
|
+
};
|
|
620
|
+
MDCTabScrollerRTLReverse2.prototype.scrollToRTL = function(scrollX) {
|
|
621
|
+
var currentScrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
622
|
+
var clampedScrollLeft = this.clampScrollValue(scrollX);
|
|
623
|
+
return {
|
|
624
|
+
finalScrollPosition: clampedScrollLeft,
|
|
625
|
+
scrollDelta: currentScrollLeft - clampedScrollLeft
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
MDCTabScrollerRTLReverse2.prototype.incrementScrollRTL = function(scrollX) {
|
|
629
|
+
var currentScrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
630
|
+
var clampedScrollLeft = this.clampScrollValue(currentScrollLeft + scrollX);
|
|
631
|
+
return {
|
|
632
|
+
finalScrollPosition: clampedScrollLeft,
|
|
633
|
+
scrollDelta: currentScrollLeft - clampedScrollLeft
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
MDCTabScrollerRTLReverse2.prototype.getAnimatingScrollPosition = function(scrollX, translateX) {
|
|
637
|
+
return scrollX + translateX;
|
|
638
|
+
};
|
|
639
|
+
MDCTabScrollerRTLReverse2.prototype.calculateScrollEdges = function() {
|
|
640
|
+
var contentWidth = this.adapter.getScrollContentOffsetWidth();
|
|
641
|
+
var rootWidth = this.adapter.getScrollAreaOffsetWidth();
|
|
642
|
+
return {
|
|
643
|
+
left: contentWidth - rootWidth,
|
|
644
|
+
right: 0
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
MDCTabScrollerRTLReverse2.prototype.clampScrollValue = function(scrollX) {
|
|
648
|
+
var edges = this.calculateScrollEdges();
|
|
649
|
+
return Math.min(Math.max(edges.right, scrollX), edges.left);
|
|
650
|
+
};
|
|
651
|
+
return MDCTabScrollerRTLReverse2;
|
|
652
|
+
}(MDCTabScrollerRTL);
|
|
653
|
+
|
|
654
|
+
// node_modules/@material/tab-scroller/foundation.js
|
|
655
|
+
var MDCTabScrollerFoundation = function(_super) {
|
|
656
|
+
__extends(MDCTabScrollerFoundation2, _super);
|
|
657
|
+
function MDCTabScrollerFoundation2(adapter) {
|
|
658
|
+
var _this = _super.call(this, __assign(__assign({}, MDCTabScrollerFoundation2.defaultAdapter), adapter)) || this;
|
|
659
|
+
_this.isAnimating = false;
|
|
660
|
+
return _this;
|
|
661
|
+
}
|
|
662
|
+
Object.defineProperty(MDCTabScrollerFoundation2, "cssClasses", {
|
|
663
|
+
get: function() {
|
|
664
|
+
return cssClasses;
|
|
665
|
+
},
|
|
666
|
+
enumerable: false,
|
|
667
|
+
configurable: true
|
|
668
|
+
});
|
|
669
|
+
Object.defineProperty(MDCTabScrollerFoundation2, "strings", {
|
|
670
|
+
get: function() {
|
|
671
|
+
return strings2;
|
|
672
|
+
},
|
|
673
|
+
enumerable: false,
|
|
674
|
+
configurable: true
|
|
675
|
+
});
|
|
676
|
+
Object.defineProperty(MDCTabScrollerFoundation2, "defaultAdapter", {
|
|
677
|
+
get: function() {
|
|
678
|
+
return {
|
|
679
|
+
eventTargetMatchesSelector: function() {
|
|
680
|
+
return false;
|
|
681
|
+
},
|
|
682
|
+
addClass: function() {
|
|
683
|
+
return void 0;
|
|
684
|
+
},
|
|
685
|
+
removeClass: function() {
|
|
686
|
+
return void 0;
|
|
687
|
+
},
|
|
688
|
+
addScrollAreaClass: function() {
|
|
689
|
+
return void 0;
|
|
690
|
+
},
|
|
691
|
+
setScrollAreaStyleProperty: function() {
|
|
692
|
+
return void 0;
|
|
693
|
+
},
|
|
694
|
+
setScrollContentStyleProperty: function() {
|
|
695
|
+
return void 0;
|
|
696
|
+
},
|
|
697
|
+
getScrollContentStyleValue: function() {
|
|
698
|
+
return "";
|
|
699
|
+
},
|
|
700
|
+
setScrollAreaScrollLeft: function() {
|
|
701
|
+
return void 0;
|
|
702
|
+
},
|
|
703
|
+
getScrollAreaScrollLeft: function() {
|
|
704
|
+
return 0;
|
|
705
|
+
},
|
|
706
|
+
getScrollContentOffsetWidth: function() {
|
|
707
|
+
return 0;
|
|
708
|
+
},
|
|
709
|
+
getScrollAreaOffsetWidth: function() {
|
|
710
|
+
return 0;
|
|
711
|
+
},
|
|
712
|
+
computeScrollAreaClientRect: function() {
|
|
713
|
+
return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 };
|
|
714
|
+
},
|
|
715
|
+
computeScrollContentClientRect: function() {
|
|
716
|
+
return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 };
|
|
717
|
+
},
|
|
718
|
+
computeHorizontalScrollbarHeight: function() {
|
|
719
|
+
return 0;
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
},
|
|
723
|
+
enumerable: false,
|
|
724
|
+
configurable: true
|
|
725
|
+
});
|
|
726
|
+
MDCTabScrollerFoundation2.prototype.init = function() {
|
|
727
|
+
var horizontalScrollbarHeight = this.adapter.computeHorizontalScrollbarHeight();
|
|
728
|
+
this.adapter.setScrollAreaStyleProperty("margin-bottom", -horizontalScrollbarHeight + "px");
|
|
729
|
+
this.adapter.addScrollAreaClass(MDCTabScrollerFoundation2.cssClasses.SCROLL_AREA_SCROLL);
|
|
730
|
+
};
|
|
731
|
+
MDCTabScrollerFoundation2.prototype.getScrollPosition = function() {
|
|
732
|
+
if (this.isRTL()) {
|
|
733
|
+
return this.computeCurrentScrollPositionRTL();
|
|
734
|
+
}
|
|
735
|
+
var currentTranslateX = this.calculateCurrentTranslateX();
|
|
736
|
+
var scrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
737
|
+
return scrollLeft - currentTranslateX;
|
|
738
|
+
};
|
|
739
|
+
MDCTabScrollerFoundation2.prototype.handleInteraction = function() {
|
|
740
|
+
if (!this.isAnimating) {
|
|
741
|
+
return;
|
|
742
|
+
}
|
|
743
|
+
this.stopScrollAnimation();
|
|
744
|
+
};
|
|
745
|
+
MDCTabScrollerFoundation2.prototype.handleTransitionEnd = function(evt) {
|
|
746
|
+
var evtTarget = evt.target;
|
|
747
|
+
if (!this.isAnimating || !this.adapter.eventTargetMatchesSelector(evtTarget, MDCTabScrollerFoundation2.strings.CONTENT_SELECTOR)) {
|
|
748
|
+
return;
|
|
749
|
+
}
|
|
750
|
+
this.isAnimating = false;
|
|
751
|
+
this.adapter.removeClass(MDCTabScrollerFoundation2.cssClasses.ANIMATING);
|
|
752
|
+
};
|
|
753
|
+
MDCTabScrollerFoundation2.prototype.incrementScroll = function(scrollXIncrement) {
|
|
754
|
+
if (scrollXIncrement === 0) {
|
|
755
|
+
return;
|
|
756
|
+
}
|
|
757
|
+
this.animate(this.getIncrementScrollOperation(scrollXIncrement));
|
|
758
|
+
};
|
|
759
|
+
MDCTabScrollerFoundation2.prototype.incrementScrollImmediate = function(scrollXIncrement) {
|
|
760
|
+
if (scrollXIncrement === 0) {
|
|
761
|
+
return;
|
|
762
|
+
}
|
|
763
|
+
var operation = this.getIncrementScrollOperation(scrollXIncrement);
|
|
764
|
+
if (operation.scrollDelta === 0) {
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
this.stopScrollAnimation();
|
|
768
|
+
this.adapter.setScrollAreaScrollLeft(operation.finalScrollPosition);
|
|
769
|
+
};
|
|
770
|
+
MDCTabScrollerFoundation2.prototype.scrollTo = function(scrollX) {
|
|
771
|
+
if (this.isRTL()) {
|
|
772
|
+
this.scrollToImplRTL(scrollX);
|
|
773
|
+
return;
|
|
774
|
+
}
|
|
775
|
+
this.scrollToImpl(scrollX);
|
|
776
|
+
};
|
|
777
|
+
MDCTabScrollerFoundation2.prototype.getRTLScroller = function() {
|
|
778
|
+
if (!this.rtlScrollerInstance) {
|
|
779
|
+
this.rtlScrollerInstance = this.rtlScrollerFactory();
|
|
780
|
+
}
|
|
781
|
+
return this.rtlScrollerInstance;
|
|
782
|
+
};
|
|
783
|
+
MDCTabScrollerFoundation2.prototype.calculateCurrentTranslateX = function() {
|
|
784
|
+
var transformValue = this.adapter.getScrollContentStyleValue("transform");
|
|
785
|
+
if (transformValue === "none") {
|
|
786
|
+
return 0;
|
|
787
|
+
}
|
|
788
|
+
var match = /\((.+?)\)/.exec(transformValue);
|
|
789
|
+
if (!match) {
|
|
790
|
+
return 0;
|
|
791
|
+
}
|
|
792
|
+
var matrixParams = match[1];
|
|
793
|
+
var _a = __read(matrixParams.split(","), 6), a = _a[0], b = _a[1], c = _a[2], d = _a[3], tx = _a[4], ty = _a[5];
|
|
794
|
+
return parseFloat(tx);
|
|
795
|
+
};
|
|
796
|
+
MDCTabScrollerFoundation2.prototype.clampScrollValue = function(scrollX) {
|
|
797
|
+
var edges = this.calculateScrollEdges();
|
|
798
|
+
return Math.min(Math.max(edges.left, scrollX), edges.right);
|
|
799
|
+
};
|
|
800
|
+
MDCTabScrollerFoundation2.prototype.computeCurrentScrollPositionRTL = function() {
|
|
801
|
+
var translateX = this.calculateCurrentTranslateX();
|
|
802
|
+
return this.getRTLScroller().getScrollPositionRTL(translateX);
|
|
803
|
+
};
|
|
804
|
+
MDCTabScrollerFoundation2.prototype.calculateScrollEdges = function() {
|
|
805
|
+
var contentWidth = this.adapter.getScrollContentOffsetWidth();
|
|
806
|
+
var rootWidth = this.adapter.getScrollAreaOffsetWidth();
|
|
807
|
+
return {
|
|
808
|
+
left: 0,
|
|
809
|
+
right: contentWidth - rootWidth
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
MDCTabScrollerFoundation2.prototype.scrollToImpl = function(scrollX) {
|
|
813
|
+
var currentScrollX = this.getScrollPosition();
|
|
814
|
+
var safeScrollX = this.clampScrollValue(scrollX);
|
|
815
|
+
var scrollDelta = safeScrollX - currentScrollX;
|
|
816
|
+
this.animate({
|
|
817
|
+
finalScrollPosition: safeScrollX,
|
|
818
|
+
scrollDelta
|
|
819
|
+
});
|
|
820
|
+
};
|
|
821
|
+
MDCTabScrollerFoundation2.prototype.scrollToImplRTL = function(scrollX) {
|
|
822
|
+
var animation = this.getRTLScroller().scrollToRTL(scrollX);
|
|
823
|
+
this.animate(animation);
|
|
824
|
+
};
|
|
825
|
+
MDCTabScrollerFoundation2.prototype.getIncrementScrollOperation = function(scrollX) {
|
|
826
|
+
if (this.isRTL()) {
|
|
827
|
+
return this.getRTLScroller().incrementScrollRTL(scrollX);
|
|
828
|
+
}
|
|
829
|
+
var currentScrollX = this.getScrollPosition();
|
|
830
|
+
var targetScrollX = scrollX + currentScrollX;
|
|
831
|
+
var safeScrollX = this.clampScrollValue(targetScrollX);
|
|
832
|
+
var scrollDelta = safeScrollX - currentScrollX;
|
|
833
|
+
return {
|
|
834
|
+
finalScrollPosition: safeScrollX,
|
|
835
|
+
scrollDelta
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
MDCTabScrollerFoundation2.prototype.animate = function(animation) {
|
|
839
|
+
var _this = this;
|
|
840
|
+
if (animation.scrollDelta === 0) {
|
|
841
|
+
return;
|
|
842
|
+
}
|
|
843
|
+
this.stopScrollAnimation();
|
|
844
|
+
this.adapter.setScrollAreaScrollLeft(animation.finalScrollPosition);
|
|
845
|
+
this.adapter.setScrollContentStyleProperty("transform", "translateX(" + animation.scrollDelta + "px)");
|
|
846
|
+
this.adapter.computeScrollAreaClientRect();
|
|
847
|
+
requestAnimationFrame(function() {
|
|
848
|
+
_this.adapter.addClass(MDCTabScrollerFoundation2.cssClasses.ANIMATING);
|
|
849
|
+
_this.adapter.setScrollContentStyleProperty("transform", "none");
|
|
850
|
+
});
|
|
851
|
+
this.isAnimating = true;
|
|
852
|
+
};
|
|
853
|
+
MDCTabScrollerFoundation2.prototype.stopScrollAnimation = function() {
|
|
854
|
+
this.isAnimating = false;
|
|
855
|
+
var currentScrollPosition = this.getAnimatingScrollPosition();
|
|
856
|
+
this.adapter.removeClass(MDCTabScrollerFoundation2.cssClasses.ANIMATING);
|
|
857
|
+
this.adapter.setScrollContentStyleProperty("transform", "translateX(0px)");
|
|
858
|
+
this.adapter.setScrollAreaScrollLeft(currentScrollPosition);
|
|
859
|
+
};
|
|
860
|
+
MDCTabScrollerFoundation2.prototype.getAnimatingScrollPosition = function() {
|
|
861
|
+
var currentTranslateX = this.calculateCurrentTranslateX();
|
|
862
|
+
var scrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
863
|
+
if (this.isRTL()) {
|
|
864
|
+
return this.getRTLScroller().getAnimatingScrollPosition(scrollLeft, currentTranslateX);
|
|
865
|
+
}
|
|
866
|
+
return scrollLeft - currentTranslateX;
|
|
867
|
+
};
|
|
868
|
+
MDCTabScrollerFoundation2.prototype.rtlScrollerFactory = function() {
|
|
869
|
+
var initialScrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
870
|
+
this.adapter.setScrollAreaScrollLeft(initialScrollLeft - 1);
|
|
871
|
+
var newScrollLeft = this.adapter.getScrollAreaScrollLeft();
|
|
872
|
+
if (newScrollLeft < 0) {
|
|
873
|
+
this.adapter.setScrollAreaScrollLeft(initialScrollLeft);
|
|
874
|
+
return new MDCTabScrollerRTLNegative(this.adapter);
|
|
875
|
+
}
|
|
876
|
+
var rootClientRect = this.adapter.computeScrollAreaClientRect();
|
|
877
|
+
var contentClientRect = this.adapter.computeScrollContentClientRect();
|
|
878
|
+
var rightEdgeDelta = Math.round(contentClientRect.right - rootClientRect.right);
|
|
879
|
+
this.adapter.setScrollAreaScrollLeft(initialScrollLeft);
|
|
880
|
+
if (rightEdgeDelta === newScrollLeft) {
|
|
881
|
+
return new MDCTabScrollerRTLReverse(this.adapter);
|
|
882
|
+
}
|
|
883
|
+
return new MDCTabScrollerRTLDefault(this.adapter);
|
|
884
|
+
};
|
|
885
|
+
MDCTabScrollerFoundation2.prototype.isRTL = function() {
|
|
886
|
+
return this.adapter.getScrollContentStyleValue("direction") === "rtl";
|
|
887
|
+
};
|
|
888
|
+
return MDCTabScrollerFoundation2;
|
|
889
|
+
}(MDCFoundation);
|
|
890
|
+
|
|
891
|
+
// node_modules/@material/tab-scroller/component.js
|
|
892
|
+
var MDCTabScroller = function(_super) {
|
|
893
|
+
__extends(MDCTabScroller2, _super);
|
|
894
|
+
function MDCTabScroller2() {
|
|
895
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
896
|
+
}
|
|
897
|
+
MDCTabScroller2.attachTo = function(root) {
|
|
898
|
+
return new MDCTabScroller2(root);
|
|
899
|
+
};
|
|
900
|
+
MDCTabScroller2.prototype.initialize = function() {
|
|
901
|
+
this.area = this.root.querySelector(MDCTabScrollerFoundation.strings.AREA_SELECTOR);
|
|
902
|
+
this.content = this.root.querySelector(MDCTabScrollerFoundation.strings.CONTENT_SELECTOR);
|
|
903
|
+
};
|
|
904
|
+
MDCTabScroller2.prototype.initialSyncWithDOM = function() {
|
|
905
|
+
var _this = this;
|
|
906
|
+
this.handleInteraction = function() {
|
|
907
|
+
_this.foundation.handleInteraction();
|
|
908
|
+
};
|
|
909
|
+
this.handleTransitionEnd = function(evt) {
|
|
910
|
+
_this.foundation.handleTransitionEnd(evt);
|
|
911
|
+
};
|
|
912
|
+
this.area.addEventListener("wheel", this.handleInteraction, applyPassive());
|
|
913
|
+
this.area.addEventListener("touchstart", this.handleInteraction, applyPassive());
|
|
914
|
+
this.area.addEventListener("pointerdown", this.handleInteraction, applyPassive());
|
|
915
|
+
this.area.addEventListener("mousedown", this.handleInteraction, applyPassive());
|
|
916
|
+
this.area.addEventListener("keydown", this.handleInteraction, applyPassive());
|
|
917
|
+
this.content.addEventListener("transitionend", this.handleTransitionEnd);
|
|
918
|
+
};
|
|
919
|
+
MDCTabScroller2.prototype.destroy = function() {
|
|
920
|
+
_super.prototype.destroy.call(this);
|
|
921
|
+
this.area.removeEventListener("wheel", this.handleInteraction, applyPassive());
|
|
922
|
+
this.area.removeEventListener("touchstart", this.handleInteraction, applyPassive());
|
|
923
|
+
this.area.removeEventListener("pointerdown", this.handleInteraction, applyPassive());
|
|
924
|
+
this.area.removeEventListener("mousedown", this.handleInteraction, applyPassive());
|
|
925
|
+
this.area.removeEventListener("keydown", this.handleInteraction, applyPassive());
|
|
926
|
+
this.content.removeEventListener("transitionend", this.handleTransitionEnd);
|
|
927
|
+
};
|
|
928
|
+
MDCTabScroller2.prototype.getDefaultFoundation = function() {
|
|
929
|
+
var _this = this;
|
|
930
|
+
var adapter = {
|
|
931
|
+
eventTargetMatchesSelector: function(evtTarget, selector) {
|
|
932
|
+
return matches(evtTarget, selector);
|
|
933
|
+
},
|
|
934
|
+
addClass: function(className) {
|
|
935
|
+
_this.root.classList.add(className);
|
|
936
|
+
},
|
|
937
|
+
removeClass: function(className) {
|
|
938
|
+
_this.root.classList.remove(className);
|
|
939
|
+
},
|
|
940
|
+
addScrollAreaClass: function(className) {
|
|
941
|
+
_this.area.classList.add(className);
|
|
942
|
+
},
|
|
943
|
+
setScrollAreaStyleProperty: function(prop, value) {
|
|
944
|
+
_this.area.style.setProperty(prop, value);
|
|
945
|
+
},
|
|
946
|
+
setScrollContentStyleProperty: function(prop, value) {
|
|
947
|
+
_this.content.style.setProperty(prop, value);
|
|
948
|
+
},
|
|
949
|
+
getScrollContentStyleValue: function(propName) {
|
|
950
|
+
return window.getComputedStyle(_this.content).getPropertyValue(propName);
|
|
951
|
+
},
|
|
952
|
+
setScrollAreaScrollLeft: function(scrollX) {
|
|
953
|
+
return _this.area.scrollLeft = scrollX;
|
|
954
|
+
},
|
|
955
|
+
getScrollAreaScrollLeft: function() {
|
|
956
|
+
return _this.area.scrollLeft;
|
|
957
|
+
},
|
|
958
|
+
getScrollContentOffsetWidth: function() {
|
|
959
|
+
return _this.content.offsetWidth;
|
|
960
|
+
},
|
|
961
|
+
getScrollAreaOffsetWidth: function() {
|
|
962
|
+
return _this.area.offsetWidth;
|
|
963
|
+
},
|
|
964
|
+
computeScrollAreaClientRect: function() {
|
|
965
|
+
return _this.area.getBoundingClientRect();
|
|
966
|
+
},
|
|
967
|
+
computeScrollContentClientRect: function() {
|
|
968
|
+
return _this.content.getBoundingClientRect();
|
|
969
|
+
},
|
|
970
|
+
computeHorizontalScrollbarHeight: function() {
|
|
971
|
+
return computeHorizontalScrollbarHeight(document);
|
|
972
|
+
}
|
|
973
|
+
};
|
|
974
|
+
return new MDCTabScrollerFoundation(adapter);
|
|
975
|
+
};
|
|
976
|
+
MDCTabScroller2.prototype.getScrollPosition = function() {
|
|
977
|
+
return this.foundation.getScrollPosition();
|
|
978
|
+
};
|
|
979
|
+
MDCTabScroller2.prototype.getScrollContentWidth = function() {
|
|
980
|
+
return this.content.offsetWidth;
|
|
981
|
+
};
|
|
982
|
+
MDCTabScroller2.prototype.incrementScroll = function(scrollXIncrement) {
|
|
983
|
+
this.foundation.incrementScroll(scrollXIncrement);
|
|
984
|
+
};
|
|
985
|
+
MDCTabScroller2.prototype.scrollTo = function(scrollX) {
|
|
986
|
+
this.foundation.scrollTo(scrollX);
|
|
987
|
+
};
|
|
988
|
+
return MDCTabScroller2;
|
|
989
|
+
}(MDCComponent);
|
|
990
|
+
|
|
991
|
+
// dist/build/lib/staging/src/tabs/tab-bar/tab-bar-adapter.ts
|
|
992
|
+
var TabBarAdapter = class extends BaseAdapter {
|
|
993
|
+
constructor(component) {
|
|
994
|
+
super(component);
|
|
995
|
+
this._tabs = [];
|
|
996
|
+
this._rootElement = getShadowElement(this._component, TAB_BAR_CONSTANTS.selectors.ROOT);
|
|
997
|
+
this._tabScrollElement = getShadowElement(this._component, TAB_BAR_CONSTANTS.selectors.TAB_SCROLLER);
|
|
998
|
+
this._tabScrollAreaElement = getShadowElement(this._component, TAB_BAR_CONSTANTS.selectors.TAB_SCROLLER_AREA);
|
|
999
|
+
this._tabScrollContentElement = getShadowElement(this._component, TAB_BAR_CONSTANTS.selectors.TAB_SCROLLER_CONTENT);
|
|
1000
|
+
this._defaultSlotElement = getShadowElement(this._component, TAB_CONSTANTS.selectors.DEFAULT_SLOT);
|
|
1001
|
+
this._prevButtonContainerElement = getShadowElement(this._component, TAB_BAR_CONSTANTS.selectors.PREV_BUTTON_CONTAINER);
|
|
1002
|
+
this._prevButtonElement = getShadowElement(this._component, TAB_BAR_CONSTANTS.selectors.PREV_BUTTON);
|
|
1003
|
+
this._nextButtonContainerElement = getShadowElement(this._component, TAB_BAR_CONSTANTS.selectors.NEXT_BUTTON_CONTAINER);
|
|
1004
|
+
this._nextButtonElement = getShadowElement(this._component, TAB_BAR_CONSTANTS.selectors.NEXT_BUTTON);
|
|
1005
|
+
}
|
|
1006
|
+
initializeTabs(activeTabIndex, stretch) {
|
|
1007
|
+
this._tabs = this._getTabs();
|
|
1008
|
+
if (!this._tabs.length) {
|
|
1009
|
+
return;
|
|
1010
|
+
}
|
|
1011
|
+
this._tabs.forEach((tab) => {
|
|
1012
|
+
tab.active = false;
|
|
1013
|
+
tab.stretch = stretch;
|
|
1014
|
+
});
|
|
1015
|
+
if (activeTabIndex >= 0 && activeTabIndex < this._tabs.length) {
|
|
1016
|
+
this._tabs[activeTabIndex].active = true;
|
|
1017
|
+
} else {
|
|
1018
|
+
this.ensureFocusableTab();
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
initializeTabScroller() {
|
|
1022
|
+
this._tabScroller = new MDCTabScroller(this._tabScrollElement);
|
|
1023
|
+
}
|
|
1024
|
+
initializeAccessibility() {
|
|
1025
|
+
if (!this._component.hasAttribute("role")) {
|
|
1026
|
+
this._component.setAttribute("role", "tablist");
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
destroyTabScroller() {
|
|
1030
|
+
if (this._tabScroller) {
|
|
1031
|
+
this._tabScroller.destroy();
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
addTabChangeListener(listener) {
|
|
1035
|
+
this._defaultSlotElement.addEventListener("slotchange", listener);
|
|
1036
|
+
}
|
|
1037
|
+
removeTabChangeListener(listener) {
|
|
1038
|
+
this._defaultSlotElement.removeEventListener("slotchange", listener);
|
|
1039
|
+
}
|
|
1040
|
+
addScrollListener(listener) {
|
|
1041
|
+
this._tabScrollAreaElement.addEventListener("scroll", listener);
|
|
1042
|
+
}
|
|
1043
|
+
getTabIndex(tab) {
|
|
1044
|
+
return this._tabs.indexOf(tab);
|
|
1045
|
+
}
|
|
1046
|
+
getTabCount() {
|
|
1047
|
+
return this._tabs.length;
|
|
1048
|
+
}
|
|
1049
|
+
activateTab(index, previousTabBounds) {
|
|
1050
|
+
const tab = this._getTabByIndex(index);
|
|
1051
|
+
if (tab) {
|
|
1052
|
+
tab.activate(previousTabBounds);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
deactivateTab(index) {
|
|
1056
|
+
const tab = this._getTabByIndex(index);
|
|
1057
|
+
if (tab) {
|
|
1058
|
+
tab.deactivate();
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
syncTabIndex(index) {
|
|
1062
|
+
const tabs = this._getTabs();
|
|
1063
|
+
const activeTab = tabs[index];
|
|
1064
|
+
tabs.filter((t) => t !== activeTab).forEach((t) => t.setTabIndex(-1));
|
|
1065
|
+
}
|
|
1066
|
+
getTabBounds(index) {
|
|
1067
|
+
const tab = this._getTabByIndex(index);
|
|
1068
|
+
if (tab) {
|
|
1069
|
+
return tab.computeIndicatorBounds();
|
|
1070
|
+
}
|
|
1071
|
+
return void 0;
|
|
1072
|
+
}
|
|
1073
|
+
setUnderline(value) {
|
|
1074
|
+
toggleClass(this._rootElement, value, TAB_BAR_CONSTANTS.classes.UNDERLINED);
|
|
1075
|
+
}
|
|
1076
|
+
setStacked(value) {
|
|
1077
|
+
toggleClass(this._rootElement, value, TAB_BAR_CONSTANTS.classes.STACKED);
|
|
1078
|
+
}
|
|
1079
|
+
scrollTo(scrollX) {
|
|
1080
|
+
if (this._tabScroller) {
|
|
1081
|
+
this._tabScroller.scrollTo(scrollX);
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
getScrollContentWidth() {
|
|
1085
|
+
return this._tabScroller ? this._tabScroller.getScrollContentWidth() : 0;
|
|
1086
|
+
}
|
|
1087
|
+
getScrollPosition() {
|
|
1088
|
+
return this._tabScroller ? this._tabScroller.getScrollPosition() : 0;
|
|
1089
|
+
}
|
|
1090
|
+
getOffsetWidth() {
|
|
1091
|
+
return this._tabScrollElement.offsetWidth;
|
|
1092
|
+
}
|
|
1093
|
+
getTabDimensionsAtIndex(index) {
|
|
1094
|
+
const tab = this._getTabByIndex(index);
|
|
1095
|
+
if (tab) {
|
|
1096
|
+
return tab.computeDimensions();
|
|
1097
|
+
}
|
|
1098
|
+
return {
|
|
1099
|
+
rootLeft: 0,
|
|
1100
|
+
rootRight: 0,
|
|
1101
|
+
contentLeft: 0,
|
|
1102
|
+
contentRight: 0
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
incrementScroll(scrollXIncrement) {
|
|
1106
|
+
if (this._tabScroller) {
|
|
1107
|
+
this._tabScroller.incrementScroll(scrollXIncrement);
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
isScrolled() {
|
|
1111
|
+
const position = this._tabScrollAreaElement.scrollLeft;
|
|
1112
|
+
return position > 0;
|
|
1113
|
+
}
|
|
1114
|
+
isScrolledEnd() {
|
|
1115
|
+
const position = Math.round(this._tabScrollAreaElement.scrollLeft);
|
|
1116
|
+
const scrollWidth = Math.round(this._tabScrollContentElement.scrollWidth - this._tabScrollElement.offsetWidth);
|
|
1117
|
+
return position >= scrollWidth;
|
|
1118
|
+
}
|
|
1119
|
+
getFocusedTabIndex() {
|
|
1120
|
+
const activeElement = getActiveElement();
|
|
1121
|
+
return this._tabs.findIndex((tab) => {
|
|
1122
|
+
if (tab === activeElement) {
|
|
1123
|
+
return true;
|
|
1124
|
+
}
|
|
1125
|
+
return !!tab.shadowRoot.contains(activeElement);
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
focusTabAtIndex(index) {
|
|
1129
|
+
const tab = this._getTabByIndex(index);
|
|
1130
|
+
if (tab) {
|
|
1131
|
+
return tab.focus();
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
setLayoutMode(value) {
|
|
1135
|
+
const isFixed = value === "fixed";
|
|
1136
|
+
toggleClass(this._rootElement, isFixed, TAB_BAR_CONSTANTS.classes.FIXED);
|
|
1137
|
+
this._tabs.forEach((tab) => tab.stretch = isFixed);
|
|
1138
|
+
}
|
|
1139
|
+
setLayoutAlign(value) {
|
|
1140
|
+
removeClass([
|
|
1141
|
+
TAB_BAR_CONSTANTS.classes.ALIGN_CENTER,
|
|
1142
|
+
TAB_BAR_CONSTANTS.classes.ALIGN_END
|
|
1143
|
+
], this._rootElement);
|
|
1144
|
+
switch (value) {
|
|
1145
|
+
case "center":
|
|
1146
|
+
this._rootElement.classList.add(TAB_BAR_CONSTANTS.classes.ALIGN_CENTER);
|
|
1147
|
+
break;
|
|
1148
|
+
case "end":
|
|
1149
|
+
this._rootElement.classList.add(TAB_BAR_CONSTANTS.classes.ALIGN_END);
|
|
1150
|
+
break;
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
setPreviousButtonVisibility(value) {
|
|
1154
|
+
if (value) {
|
|
1155
|
+
this._prevButtonContainerElement.style.removeProperty("display");
|
|
1156
|
+
} else {
|
|
1157
|
+
this._prevButtonContainerElement.style.display = "none";
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
setPreviousButtonEnabled(value) {
|
|
1161
|
+
this._prevButtonElement.disabled = !value;
|
|
1162
|
+
}
|
|
1163
|
+
setNextButtonVisibility(value) {
|
|
1164
|
+
if (value) {
|
|
1165
|
+
this._nextButtonContainerElement.style.removeProperty("display");
|
|
1166
|
+
} else {
|
|
1167
|
+
this._nextButtonContainerElement.style.display = "none";
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
setNextButtonEnabled(value) {
|
|
1171
|
+
this._nextButtonElement.disabled = !value;
|
|
1172
|
+
}
|
|
1173
|
+
addScrollPreviousListener(type, listener) {
|
|
1174
|
+
this._prevButtonElement.addEventListener(type, listener);
|
|
1175
|
+
}
|
|
1176
|
+
addScrollNextListener(type, listener) {
|
|
1177
|
+
this._nextButtonElement.addEventListener(type, listener);
|
|
1178
|
+
}
|
|
1179
|
+
isTabDisabled(index) {
|
|
1180
|
+
const tab = this._getTabByIndex(index);
|
|
1181
|
+
return tab ? tab.disabled : true;
|
|
1182
|
+
}
|
|
1183
|
+
ensureFocusableTab() {
|
|
1184
|
+
const tabs = this._getTabs();
|
|
1185
|
+
const hasActiveTab = tabs.some((tab) => tab.active);
|
|
1186
|
+
if (!hasActiveTab && tabs.length) {
|
|
1187
|
+
const firstTab = tabs[0];
|
|
1188
|
+
if (isFunction(firstTab.setTabIndex)) {
|
|
1189
|
+
tabs[0].setTabIndex(0);
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
_getTabs() {
|
|
1194
|
+
return Array.from(this._component.querySelectorAll(TAB_CONSTANTS.elementName));
|
|
1195
|
+
}
|
|
1196
|
+
_getTabByIndex(index) {
|
|
1197
|
+
return this._tabs[index];
|
|
1198
|
+
}
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
// dist/build/lib/staging/src/tabs/tab-bar/tab-bar.ts
|
|
1202
|
+
var template = '<template><div class="forge-tab-bar" part="root"><div class="forge-tab-bar__scroll-prev-container" part="previous-container"><forge-icon-button part="previous-button"><button type="button" tabindex="-1" aria-label="Scroll left" id="scroll-prev-btn" part="previous-button-element"><forge-icon name="keyboard_arrow_left" part="previous-button-icon"></forge-icon></button></forge-icon-button></div><div class="mdc-tab-scroller" part="tab-scroller"><div class="mdc-tab-scroller__scroll-area" part="scroll-area"><div class="mdc-tab-scroller__scroll-content" part="scroll-content"><slot></slot></div></div></div><div class="forge-tab-bar__scroll-next-container" part="next-container"><forge-icon-button part="next-button"><button type="button" tabindex="-1" aria-label="Scroll right" id="scroll-next-btn" part="next-button-element"><forge-icon name="keyboard_arrow_right" part="next-button-icon"></forge-icon></button></forge-icon-button></div></div></template>';
|
|
1203
|
+
var styles = '.forge-icon-button{display:-webkit-inline-box;display:inline-flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;font-size:24px;text-decoration:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:48px;height:48px;padding:12px}.forge-icon-button forge-icon,.forge-icon-button img,.forge-icon-button svg{width:24px;height:24px}.forge-icon-button:disabled{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.forge-icon-button:disabled{cursor:default;pointer-events:none}.forge-icon-button__icon{display:inline-block}.forge-icon-button__icon.forge-icon-button__icon--on{display:none}.forge-icon-button--on .forge-icon-button__icon{display:none}.forge-icon-button--on .forge-icon-button__icon.forge-icon-button__icon--on{display:inline-block}@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.forge-icon-button{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity}.forge-icon-button::after,.forge-icon-button::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.forge-icon-button::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.forge-icon-button::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.forge-icon-button.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.forge-icon-button.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.forge-icon-button.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.forge-icon-button.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.forge-icon-button.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.forge-icon-button::after,.forge-icon-button::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.forge-icon-button.mdc-ripple-upgraded::after,.forge-icon-button.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-icon-button.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-icon-button::after,.forge-icon-button::before{background-color:#000;background-color:var(--mdc-ripple-color,var(--mdc-theme-on-surface,#000))}.forge-icon-button.mdc-ripple-surface--hover::before,.forge-icon-button:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-icon-button.mdc-ripple-upgraded--background-focused::before,.forge-icon-button:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-icon-button:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-icon-button:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-icon-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}forge-icon-button{position:relative;display:inline-block;overflow:visible}.forge-icon-button--on{color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5)}.forge-icon-button--on::after,.forge-icon-button--on::before{background-color:#3f51b5;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#3f51b5))}.forge-icon-button--on.mdc-ripple-surface--hover::before,.forge-icon-button--on:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-icon-button--on.mdc-ripple-upgraded--background-focused::before,.forge-icon-button--on:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-icon-button--on:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-icon-button--on:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-icon-button--on.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.forge-icon-button--on::before{background-color:#3f51b5;background-color:var(--mdc-theme-primary,#3f51b5);opacity:.08}.forge-icon-button--dense{width:28px;height:28px;padding:2px;padding:0}.forge-icon-button--dense-1{width:44px;height:44px;padding:10px}.forge-icon-button--dense-2{width:40px;height:40px;padding:8px}.forge-icon-button--dense-3{width:36px;height:36px;padding:6px}.forge-icon-button--dense-4{width:32px;height:32px;padding:4px}.forge-icon-button--dense-5{width:28px;height:28px;padding:2px}.forge-icon-button--dense-6{width:24px;height:24px;padding:0}.forge-icon-button--with-badge forge-badge{z-index:1;z-index:var(--forge-z-index-surface,1);pointer-events:none;--forge-badge-max-width:32px;--forge-badge-border:1px solid transparent}.forge-icon-button--with-badge forge-badge[app-bar-context]{--forge-badge-border:2px solid var(--forge-app-bar-theme-background)}.mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{-webkit-transition:250ms -webkit-transform cubic-bezier(.4, 0, .2, 1);transition:250ms -webkit-transform cubic-bezier(.4, 0, .2, 1);transition:250ms transform cubic-bezier(.4, 0, .2, 1);transition:250ms transform cubic-bezier(.4, 0, .2, 1),250ms -webkit-transform cubic-bezier(.4, 0, .2, 1)}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:-webkit-box;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:-webkit-box;display:flex;-webkit-box-flex:1;flex:1 0 auto;-webkit-transform:none;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{-webkit-box-pack:start;justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{-webkit-box-pack:end;justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{-webkit-box-pack:center;justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}.forge-tab-bar{height:48px;height:var(--forge-tab-bar-height,48px);display:-webkit-box;display:flex;position:relative}.forge-tab-bar--underlined::after{border-bottom-color:#e0e0e0;border-bottom-color:var(--forge-theme-border-color,#e0e0e0);content:"";border-bottom-width:1px;border-bottom-style:solid;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:absolute;bottom:0;left:0;right:0}.forge-tab-bar--align-center .mdc-tab-scroller__scroll-content{-webkit-box-pack:center;justify-content:center}.forge-tab-bar--align-end .mdc-tab-scroller__scroll-content{-webkit-box-pack:end;justify-content:flex-end}.forge-tab-bar--stacked{height:72px;height:var(--forge-tab-bar-height,72px);-webkit-box-align:center;align-items:center}.forge-tab-bar--stacked .mdc-tab-scroller{height:100%}.mdc-tab-scroller{z-index:1;width:100%}.mdc-tab-scroller__scroll-area{height:100%;overflow-x:auto;scrollbar-width:none}:host{display:block;overflow:hidden}:host([hidden]){display:none}';
|
|
1204
|
+
var TabBarComponent = class extends BaseComponent {
|
|
1205
|
+
constructor() {
|
|
1206
|
+
super();
|
|
1207
|
+
IconRegistry.define([tylIconKeyboardArrowLeft, tylIconKeyboardArrowRight]);
|
|
1208
|
+
attachShadowTemplate(this, template, styles);
|
|
1209
|
+
this._foundation = new TabBarFoundation(new TabBarAdapter(this));
|
|
1210
|
+
}
|
|
1211
|
+
static get observedAttributes() {
|
|
1212
|
+
return [
|
|
1213
|
+
TAB_BAR_CONSTANTS.attributes.ACTIVE_TAB,
|
|
1214
|
+
TAB_BAR_CONSTANTS.attributes.LAYOUT_MODE,
|
|
1215
|
+
TAB_BAR_CONSTANTS.attributes.LAYOUT_ALIGN,
|
|
1216
|
+
TAB_BAR_CONSTANTS.attributes.UNDERLINE,
|
|
1217
|
+
TAB_BAR_CONSTANTS.attributes.AUTO_ACTIVATE,
|
|
1218
|
+
TAB_BAR_CONSTANTS.attributes.STACKED,
|
|
1219
|
+
TAB_BAR_CONSTANTS.attributes.SCROLL_BUTTONS,
|
|
1220
|
+
TAB_BAR_CONSTANTS.attributes.FORCE_SCROLL_BUTTONS
|
|
1221
|
+
];
|
|
1222
|
+
}
|
|
1223
|
+
connectedCallback() {
|
|
1224
|
+
this._foundation.initialize();
|
|
1225
|
+
}
|
|
1226
|
+
disconnectedCallback() {
|
|
1227
|
+
this._foundation.disconnect();
|
|
1228
|
+
}
|
|
1229
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
1230
|
+
switch (name) {
|
|
1231
|
+
case TAB_BAR_CONSTANTS.attributes.ACTIVE_TAB:
|
|
1232
|
+
this.activeTab = coerceNumber(newValue);
|
|
1233
|
+
break;
|
|
1234
|
+
case TAB_BAR_CONSTANTS.attributes.LAYOUT_MODE:
|
|
1235
|
+
this.layoutMode = newValue;
|
|
1236
|
+
break;
|
|
1237
|
+
case TAB_BAR_CONSTANTS.attributes.LAYOUT_ALIGN:
|
|
1238
|
+
this.layoutAlign = newValue;
|
|
1239
|
+
break;
|
|
1240
|
+
case TAB_BAR_CONSTANTS.attributes.UNDERLINE:
|
|
1241
|
+
this.underline = coerceBoolean(newValue);
|
|
1242
|
+
break;
|
|
1243
|
+
case TAB_BAR_CONSTANTS.attributes.AUTO_ACTIVATE:
|
|
1244
|
+
this.autoActivate = coerceBoolean(newValue);
|
|
1245
|
+
break;
|
|
1246
|
+
case TAB_BAR_CONSTANTS.attributes.STACKED:
|
|
1247
|
+
this.stacked = coerceBoolean(newValue);
|
|
1248
|
+
break;
|
|
1249
|
+
case TAB_BAR_CONSTANTS.attributes.SCROLL_BUTTONS:
|
|
1250
|
+
this.scrollButtons = coerceBoolean(newValue);
|
|
1251
|
+
break;
|
|
1252
|
+
case TAB_BAR_CONSTANTS.attributes.FORCE_SCROLL_BUTTONS:
|
|
1253
|
+
this.forceScrollButtons = coerceBoolean(newValue);
|
|
1254
|
+
break;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
activateTab(index) {
|
|
1258
|
+
this._foundation.activateTab(index);
|
|
1259
|
+
}
|
|
1260
|
+
scrollTabIntoView(index) {
|
|
1261
|
+
this._foundation.scrollIntoView(index);
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
__decorateClass([
|
|
1265
|
+
FoundationProperty()
|
|
1266
|
+
], TabBarComponent.prototype, "activeTab", 2);
|
|
1267
|
+
__decorateClass([
|
|
1268
|
+
FoundationProperty()
|
|
1269
|
+
], TabBarComponent.prototype, "layoutMode", 2);
|
|
1270
|
+
__decorateClass([
|
|
1271
|
+
FoundationProperty()
|
|
1272
|
+
], TabBarComponent.prototype, "layoutAlign", 2);
|
|
1273
|
+
__decorateClass([
|
|
1274
|
+
FoundationProperty()
|
|
1275
|
+
], TabBarComponent.prototype, "underline", 2);
|
|
1276
|
+
__decorateClass([
|
|
1277
|
+
FoundationProperty()
|
|
1278
|
+
], TabBarComponent.prototype, "autoActivate", 2);
|
|
1279
|
+
__decorateClass([
|
|
1280
|
+
FoundationProperty()
|
|
1281
|
+
], TabBarComponent.prototype, "stacked", 2);
|
|
1282
|
+
__decorateClass([
|
|
1283
|
+
FoundationProperty()
|
|
1284
|
+
], TabBarComponent.prototype, "scrollButtons", 2);
|
|
1285
|
+
__decorateClass([
|
|
1286
|
+
FoundationProperty()
|
|
1287
|
+
], TabBarComponent.prototype, "forceScrollButtons", 2);
|
|
1288
|
+
TabBarComponent = __decorateClass([
|
|
1289
|
+
CustomElement({
|
|
1290
|
+
name: TAB_BAR_CONSTANTS.elementName,
|
|
1291
|
+
dependencies: [
|
|
1292
|
+
TabComponent,
|
|
1293
|
+
IconButtonComponent,
|
|
1294
|
+
IconComponent
|
|
1295
|
+
]
|
|
1296
|
+
})
|
|
1297
|
+
], TabBarComponent);
|
|
1298
|
+
|
|
1299
|
+
// dist/build/lib/staging/src/tabs/tab-bar/index.ts
|
|
1300
|
+
function defineTabBarComponent() {
|
|
1301
|
+
defineCustomElement(TabBarComponent);
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
export {
|
|
1305
|
+
TAB_BAR_CONSTANTS,
|
|
1306
|
+
ACCEPTABLE_KEYS,
|
|
1307
|
+
KEYCODE_MAP,
|
|
1308
|
+
TabBarFoundation,
|
|
1309
|
+
TabBarAdapter,
|
|
1310
|
+
TabBarComponent,
|
|
1311
|
+
defineTabBarComponent
|
|
1312
|
+
};
|
|
1313
|
+
/**
|
|
1314
|
+
* @license
|
|
1315
|
+
* Copyright 2018 Google Inc.
|
|
1316
|
+
*
|
|
1317
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1318
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
1319
|
+
* in the Software without restriction, including without limitation the rights
|
|
1320
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1321
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
1322
|
+
* furnished to do so, subject to the following conditions:
|
|
1323
|
+
*
|
|
1324
|
+
* The above copyright notice and this permission notice shall be included in
|
|
1325
|
+
* all copies or substantial portions of the Software.
|
|
1326
|
+
*
|
|
1327
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1328
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1329
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1330
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1331
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1332
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1333
|
+
* THE SOFTWARE.
|
|
1334
|
+
*/
|
|
1335
|
+
//# sourceMappingURL=chunk.OQRMHHPB.js.map
|