@tylertech/forge 2.8.0 → 2.10.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/custom-elements.json +4525 -246
- package/dist/esm/accordion/index.js +1 -34
- package/dist/esm/app-bar/help-button/index.js +1 -53
- package/dist/esm/app-bar/index.js +1 -131
- package/dist/esm/app-bar/menu-button/index.js +1 -36
- package/dist/esm/app-bar/notification-button/index.js +1 -41
- package/dist/esm/app-bar/profile-button/index.js +1 -46
- package/dist/esm/app-bar/search/index.js +1 -38
- package/dist/esm/autocomplete/index.js +1 -72
- package/dist/esm/avatar/index.js +1 -27
- package/dist/esm/backdrop/index.js +1 -22
- package/dist/esm/badge/index.js +1 -25
- package/dist/esm/banner/index.js +1 -40
- package/dist/esm/bottom-sheet/index.js +1 -40
- package/dist/esm/busy-indicator/index.js +1 -33
- package/dist/esm/button/index.js +1 -25
- package/dist/esm/button-toggle/button-toggle/index.js +1 -27
- package/dist/esm/button-toggle/button-toggle-group/index.js +1 -26
- package/dist/esm/button-toggle/index.js +1 -40
- package/dist/esm/calendar/calendar-dropdown/index.js +1 -30
- package/dist/esm/calendar/calendar-menu/index.js +1 -43
- package/dist/esm/calendar/core/index.js +1 -7
- package/dist/esm/calendar/index.js +1 -194
- package/dist/esm/card/index.js +1 -16
- package/dist/esm/checkbox/index.js +1 -39
- package/dist/esm/chip-field/index.js +1 -46
- package/dist/esm/chips/chip/index.js +1 -37
- package/dist/esm/chips/chip-set/index.js +1 -37
- package/dist/esm/chips/index.js +1 -50
- package/dist/esm/chunks/chunk.23VA56ZY.js +7 -0
- package/dist/esm/chunks/{chunk.M3O5VPDD.js.map → chunk.23VA56ZY.js.map} +1 -1
- package/dist/esm/chunks/chunk.24D46RLZ.js +7 -0
- package/dist/esm/chunks/{chunk.HZISALRH.js.map → chunk.24D46RLZ.js.map} +1 -1
- package/dist/esm/chunks/chunk.2A3CKLXJ.js +7 -0
- package/dist/esm/chunks/{chunk.U5ECVIX5.js.map → chunk.2A3CKLXJ.js.map} +1 -1
- package/dist/esm/chunks/chunk.2GY2VPJG.js +7 -0
- package/dist/esm/chunks/{chunk.FWJ7SIFA.js.map → chunk.2GY2VPJG.js.map} +1 -1
- package/dist/esm/chunks/chunk.2YGKMENJ.js +7 -0
- package/dist/esm/chunks/chunk.2YGKMENJ.js.map +7 -0
- package/dist/esm/chunks/chunk.33Q5FK2H.js +7 -0
- package/dist/esm/chunks/{chunk.LX2HDAIF.js.map → chunk.33Q5FK2H.js.map} +2 -2
- package/dist/esm/chunks/chunk.35U4OX7S.js +7 -0
- package/dist/esm/chunks/{chunk.E26BROOG.js.map → chunk.35U4OX7S.js.map} +1 -1
- package/dist/esm/chunks/chunk.3E5QKMHL.js +7 -0
- package/dist/esm/chunks/{chunk.VK6LIH3B.js.map → chunk.3E5QKMHL.js.map} +1 -1
- package/dist/esm/chunks/chunk.444GNOS4.js +7 -0
- package/dist/esm/chunks/{chunk.FZ6KICMD.js.map → chunk.444GNOS4.js.map} +1 -1
- package/dist/esm/chunks/chunk.54QFNVMG.js +7 -0
- package/dist/esm/chunks/{chunk.6ZBFCE2A.js.map → chunk.54QFNVMG.js.map} +1 -1
- package/dist/esm/chunks/chunk.57XBS3DF.js +7 -0
- package/dist/esm/chunks/chunk.57XBS3DF.js.map +7 -0
- package/dist/esm/chunks/chunk.5HUDHTAK.js +7 -0
- package/dist/esm/chunks/chunk.5HUDHTAK.js.map +7 -0
- package/dist/esm/chunks/chunk.5QK7XR2W.js +7 -0
- package/dist/esm/chunks/{chunk.EUPO2VO2.js.map → chunk.5QK7XR2W.js.map} +1 -1
- package/dist/esm/chunks/chunk.5SRA2RH3.js +7 -0
- package/dist/esm/chunks/chunk.5SRA2RH3.js.map +7 -0
- package/dist/esm/chunks/chunk.5WMEFHVN.js +7 -0
- package/dist/esm/chunks/{chunk.35BJJH5E.js.map → chunk.5WMEFHVN.js.map} +1 -1
- package/dist/esm/chunks/chunk.5XQVZQ4U.js +7 -0
- package/dist/esm/chunks/chunk.5XQVZQ4U.js.map +7 -0
- package/dist/esm/chunks/chunk.6APYGKNX.js +7 -0
- package/dist/esm/chunks/{chunk.ZSHQMR4O.js.map → chunk.6APYGKNX.js.map} +1 -1
- package/dist/esm/chunks/chunk.6BKOGBE6.js +7 -0
- package/dist/esm/chunks/chunk.6BKOGBE6.js.map +7 -0
- package/dist/esm/chunks/chunk.6P6VQMTU.js +7 -0
- package/dist/esm/chunks/chunk.6P6VQMTU.js.map +7 -0
- package/dist/esm/chunks/chunk.7GT5LOI3.js +7 -0
- package/dist/esm/chunks/{chunk.V6Q2SM6Y.js.map → chunk.7GT5LOI3.js.map} +1 -1
- package/dist/esm/chunks/chunk.7JTKKFL4.js +7 -0
- package/dist/esm/chunks/{chunk.GWNR3UUX.js.map → chunk.7JTKKFL4.js.map} +1 -1
- package/dist/esm/chunks/chunk.7NXPOEXV.js +7 -0
- package/dist/esm/chunks/{chunk.7UAH67PT.js.map → chunk.7NXPOEXV.js.map} +1 -1
- package/dist/esm/chunks/chunk.7TQYFMM4.js +7 -0
- package/dist/esm/chunks/{chunk.WSH4S3GM.js.map → chunk.7TQYFMM4.js.map} +1 -1
- package/dist/esm/chunks/chunk.7WWP6WI6.js +7 -0
- package/dist/esm/chunks/chunk.7WWP6WI6.js.map +7 -0
- package/dist/esm/chunks/chunk.7ZS4N2FT.js +8 -0
- package/dist/esm/chunks/{chunk.WIYLQTSX.js.map → chunk.7ZS4N2FT.js.map} +1 -1
- package/dist/esm/chunks/chunk.A23NSEWA.js +7 -0
- package/dist/esm/chunks/{chunk.KZATVOA6.js.map → chunk.A23NSEWA.js.map} +1 -1
- package/dist/esm/chunks/chunk.A6I4EIPW.js +7 -0
- package/dist/esm/chunks/{chunk.L4OUV7W6.js.map → chunk.A6I4EIPW.js.map} +1 -1
- package/dist/esm/chunks/chunk.AABG6MSC.js +7 -0
- package/dist/esm/chunks/chunk.AABG6MSC.js.map +7 -0
- package/dist/esm/chunks/chunk.AFZB3MG5.js +7 -0
- package/dist/esm/chunks/{chunk.UQ3QTUUB.js.map → chunk.AFZB3MG5.js.map} +1 -1
- package/dist/esm/chunks/chunk.AHOQXJRN.js +7 -0
- package/dist/esm/chunks/{chunk.S3UVF647.js.map → chunk.AHOQXJRN.js.map} +1 -1
- package/dist/esm/chunks/chunk.AJJILT3A.js +6 -0
- package/dist/esm/chunks/{chunk.LM5TVNZY.js.map → chunk.AJJILT3A.js.map} +0 -0
- package/dist/esm/chunks/chunk.AMFXGOSA.js +7 -0
- package/dist/esm/chunks/{chunk.PBGL3BRX.js.map → chunk.AMFXGOSA.js.map} +1 -1
- package/dist/esm/chunks/chunk.AWCBH5KW.js +7 -0
- package/dist/esm/chunks/{chunk.RV3E762Y.js.map → chunk.AWCBH5KW.js.map} +1 -1
- package/dist/esm/chunks/chunk.B3IJU6XJ.js +7 -0
- package/dist/esm/chunks/{chunk.MMIZOYAS.js.map → chunk.B3IJU6XJ.js.map} +1 -1
- package/dist/esm/chunks/chunk.B5ABD4CZ.js +7 -0
- package/dist/esm/chunks/{chunk.WDD2GTIH.js.map → chunk.B5ABD4CZ.js.map} +1 -1
- package/dist/esm/chunks/chunk.BCUBTR5O.js +7 -0
- package/dist/esm/chunks/{chunk.3EHQ3YHJ.js.map → chunk.BCUBTR5O.js.map} +1 -1
- package/dist/esm/chunks/chunk.BSZ2LBJX.js +7 -0
- package/dist/esm/chunks/{chunk.35U3UPDV.js.map → chunk.BSZ2LBJX.js.map} +1 -1
- package/dist/esm/chunks/chunk.CSOY4C7A.js +7 -0
- package/dist/esm/chunks/{chunk.KNR5DXE4.js.map → chunk.CSOY4C7A.js.map} +1 -1
- package/dist/esm/chunks/chunk.CV5E5W6I.js +7 -0
- package/dist/esm/chunks/{chunk.YL2NAVJW.js.map → chunk.CV5E5W6I.js.map} +2 -2
- package/dist/esm/chunks/chunk.D3DLVPPE.js +7 -0
- package/dist/esm/chunks/{chunk.5U6ZT6MC.js.map → chunk.D3DLVPPE.js.map} +1 -1
- package/dist/esm/chunks/chunk.D4SNVKDA.js +14 -0
- package/dist/esm/chunks/{chunk.BYN27JXZ.js.map → chunk.D4SNVKDA.js.map} +1 -1
- package/dist/esm/chunks/chunk.DGDT4UQT.js +7 -0
- package/dist/esm/chunks/{chunk.IBED5TWL.js.map → chunk.DGDT4UQT.js.map} +1 -1
- package/dist/esm/chunks/chunk.DGOV5RDW.js +29 -0
- package/dist/esm/chunks/{chunk.TYU4RLZG.js.map → chunk.DGOV5RDW.js.map} +1 -1
- package/dist/esm/chunks/chunk.DGQAYNAF.js +7 -0
- package/dist/esm/chunks/{chunk.GHZ75UPO.js.map → chunk.DGQAYNAF.js.map} +1 -1
- package/dist/esm/chunks/chunk.DIYJJHWP.js +7 -0
- package/dist/esm/chunks/{chunk.THKWQXBJ.js.map → chunk.DIYJJHWP.js.map} +1 -1
- package/dist/esm/chunks/chunk.DJSOBAWA.js +7 -0
- package/dist/esm/chunks/{chunk.67B6JDOJ.js.map → chunk.DJSOBAWA.js.map} +1 -1
- package/dist/esm/chunks/chunk.DRFU6POI.js +7 -0
- package/dist/esm/chunks/{chunk.DLF5JAQO.js.map → chunk.DRFU6POI.js.map} +2 -2
- package/dist/esm/chunks/chunk.DVYJDQ55.js +7 -0
- package/dist/esm/chunks/chunk.DVYJDQ55.js.map +7 -0
- package/dist/esm/chunks/chunk.E37HEAJ5.js +7 -0
- package/dist/esm/chunks/{chunk.2NMHSTAO.js.map → chunk.E37HEAJ5.js.map} +3 -3
- package/dist/esm/chunks/chunk.E43TT4RI.js +7 -0
- package/dist/esm/chunks/{chunk.SNAZ6JSS.js.map → chunk.E43TT4RI.js.map} +1 -1
- package/dist/esm/chunks/chunk.EC6JSIQW.js +7 -0
- package/dist/esm/chunks/{chunk.EY57VTRF.js.map → chunk.EC6JSIQW.js.map} +1 -1
- package/dist/esm/chunks/chunk.EM3OQRZP.js +7 -0
- package/dist/esm/chunks/chunk.EM3OQRZP.js.map +7 -0
- package/dist/esm/chunks/chunk.ESW45SN4.js +7 -0
- package/dist/esm/chunks/chunk.ESW45SN4.js.map +7 -0
- package/dist/esm/chunks/chunk.F5I55MXD.js +7 -0
- package/dist/esm/chunks/chunk.F5I55MXD.js.map +7 -0
- package/dist/esm/chunks/chunk.G5BCWBD5.js +7 -0
- package/dist/esm/chunks/{chunk.EBC2HGO3.js.map → chunk.G5BCWBD5.js.map} +1 -1
- package/dist/esm/chunks/chunk.G76HB2FK.js +7 -0
- package/dist/esm/chunks/{chunk.MEFT5FQC.js.map → chunk.G76HB2FK.js.map} +1 -1
- package/dist/esm/chunks/chunk.GP7WDYWQ.js +7 -0
- package/dist/esm/chunks/chunk.GP7WDYWQ.js.map +7 -0
- package/dist/esm/chunks/chunk.GVQVA7P3.js +7 -0
- package/dist/esm/chunks/{chunk.6EGTLHJS.js.map → chunk.GVQVA7P3.js.map} +2 -2
- package/dist/esm/chunks/chunk.HN4PXH3D.js +7 -0
- package/dist/esm/chunks/{chunk.K2PCTUVN.js.map → chunk.HN4PXH3D.js.map} +1 -1
- package/dist/esm/chunks/chunk.I33ZJKOX.js +7 -0
- package/dist/esm/chunks/{chunk.TM46MNYN.js.map → chunk.I33ZJKOX.js.map} +1 -1
- package/dist/esm/chunks/chunk.IBQVV4HR.js +7 -0
- package/dist/esm/chunks/{chunk.MBZLA635.js.map → chunk.IBQVV4HR.js.map} +2 -2
- package/dist/esm/chunks/chunk.IGMTMR3D.js +7 -0
- package/dist/esm/chunks/{chunk.RD4RIFOZ.js.map → chunk.IGMTMR3D.js.map} +1 -1
- package/dist/esm/chunks/chunk.IJIKFXUT.js +7 -0
- package/dist/esm/chunks/{chunk.K7OLG7CS.js.map → chunk.IJIKFXUT.js.map} +1 -1
- package/dist/esm/chunks/chunk.IMK2LFWR.js +7 -0
- package/dist/esm/chunks/{chunk.Q4YMHFRY.js.map → chunk.IMK2LFWR.js.map} +1 -1
- package/dist/esm/chunks/chunk.J6ERQLHJ.js +7 -0
- package/dist/esm/chunks/chunk.J6ERQLHJ.js.map +7 -0
- package/dist/esm/chunks/chunk.JXQZMASB.js +7 -0
- package/dist/esm/chunks/{chunk.QYWAZCBX.js.map → chunk.JXQZMASB.js.map} +1 -1
- package/dist/esm/chunks/chunk.K43ZNKT2.js +7 -0
- package/dist/esm/chunks/{chunk.7FWTBD6Y.js.map → chunk.K43ZNKT2.js.map} +1 -1
- package/dist/esm/chunks/chunk.K753A3KI.js +29 -0
- package/dist/esm/chunks/{chunk.ZXIDTDRC.js.map → chunk.K753A3KI.js.map} +1 -1
- package/dist/esm/chunks/chunk.KLHXGSZU.js +7 -0
- package/dist/esm/chunks/{chunk.VXVE7KEM.js.map → chunk.KLHXGSZU.js.map} +1 -1
- package/dist/esm/chunks/chunk.KZHMDZVS.js +29 -0
- package/dist/esm/chunks/{chunk.ITQ55IPH.js.map → chunk.KZHMDZVS.js.map} +1 -1
- package/dist/esm/chunks/chunk.LZMYHIO2.js +7 -0
- package/dist/esm/chunks/{chunk.GS2AXUCN.js.map → chunk.LZMYHIO2.js.map} +1 -1
- package/dist/esm/chunks/chunk.MCIQXNKY.js +7 -0
- package/dist/esm/chunks/chunk.MCIQXNKY.js.map +7 -0
- package/dist/esm/chunks/chunk.MGTNCCW3.js +7 -0
- package/dist/esm/chunks/{chunk.KCVJDJ6K.js.map → chunk.MGTNCCW3.js.map} +1 -1
- package/dist/esm/chunks/chunk.MIYZJUXH.js +7 -0
- package/dist/esm/chunks/{chunk.WT4W2IFT.js.map → chunk.MIYZJUXH.js.map} +1 -1
- package/dist/esm/chunks/chunk.MTMZFAWU.js +7 -0
- package/dist/esm/chunks/chunk.MTMZFAWU.js.map +7 -0
- package/dist/esm/chunks/chunk.NEGJYSPB.js +7 -0
- package/dist/esm/chunks/chunk.NEGJYSPB.js.map +7 -0
- package/dist/esm/chunks/chunk.NGIBMR3Q.js +7 -0
- package/dist/esm/chunks/{chunk.4PF7WRP4.js.map → chunk.NGIBMR3Q.js.map} +1 -1
- package/dist/esm/chunks/chunk.NJHQA266.js +7 -0
- package/dist/esm/chunks/chunk.NJHQA266.js.map +7 -0
- package/dist/esm/chunks/chunk.O3G6ZLJN.js +7 -0
- package/dist/esm/chunks/{chunk.4WLVFWKI.js.map → chunk.O3G6ZLJN.js.map} +1 -1
- package/dist/esm/chunks/chunk.OAP3JDBS.js +12 -0
- package/dist/esm/chunks/chunk.OAP3JDBS.js.map +7 -0
- package/dist/esm/chunks/chunk.OHCHNL3V.js +7 -0
- package/dist/esm/chunks/{chunk.HASAPJMX.js.map → chunk.OHCHNL3V.js.map} +1 -1
- package/dist/esm/chunks/chunk.OOBE3XRM.js +29 -0
- package/dist/esm/chunks/{chunk.HMM7PGGZ.js.map → chunk.OOBE3XRM.js.map} +1 -1
- package/dist/esm/chunks/chunk.OUEF6VQ6.js +7 -0
- package/dist/esm/chunks/{chunk.OXS2O7RG.js.map → chunk.OUEF6VQ6.js.map} +2 -2
- package/dist/esm/chunks/chunk.PBTGGYKX.js +29 -0
- package/dist/esm/chunks/{chunk.V2ELLBDP.js.map → chunk.PBTGGYKX.js.map} +1 -1
- package/dist/esm/chunks/chunk.PYG4YVBA.js +73 -0
- package/dist/esm/chunks/chunk.PYG4YVBA.js.map +7 -0
- package/dist/esm/chunks/chunk.QJPH24V4.js +7 -0
- package/dist/esm/chunks/{chunk.GXTNND2M.js.map → chunk.QJPH24V4.js.map} +1 -1
- package/dist/esm/chunks/chunk.QXLPBYMX.js +7 -0
- package/dist/esm/chunks/{chunk.56BNM7F2.js.map → chunk.QXLPBYMX.js.map} +1 -1
- package/dist/esm/chunks/chunk.QZHEP4X2.js +29 -0
- package/dist/esm/chunks/{chunk.5VKAVHLM.js.map → chunk.QZHEP4X2.js.map} +1 -1
- package/dist/esm/chunks/chunk.R46EDURP.js +7 -0
- package/dist/esm/chunks/{chunk.JKC5PU23.js.map → chunk.R46EDURP.js.map} +1 -1
- package/dist/esm/chunks/chunk.R4NDFXVA.js +7 -0
- package/dist/esm/chunks/{chunk.4JURZYE4.js.map → chunk.R4NDFXVA.js.map} +1 -1
- package/dist/esm/chunks/chunk.RS5NH2NG.js +7 -0
- package/dist/esm/chunks/{chunk.PKZ43JNW.js.map → chunk.RS5NH2NG.js.map} +2 -2
- package/dist/esm/chunks/chunk.RZL6S3K3.js +7 -0
- package/dist/esm/chunks/chunk.RZL6S3K3.js.map +7 -0
- package/dist/esm/chunks/chunk.SFFYXKJW.js +7 -0
- package/dist/esm/chunks/{chunk.MUP3NY6M.js.map → chunk.SFFYXKJW.js.map} +2 -2
- package/dist/esm/chunks/chunk.SHT6BCLY.js +7 -0
- package/dist/esm/chunks/{chunk.BLZJIYMG.js.map → chunk.SHT6BCLY.js.map} +1 -1
- package/dist/esm/chunks/chunk.SNGELGOD.js +7 -0
- package/dist/esm/chunks/{chunk.5OYAJ36F.js.map → chunk.SNGELGOD.js.map} +1 -1
- package/dist/esm/chunks/{chunk.LCWRP2UI.js → chunk.STS5TIUV.js} +2 -32
- package/dist/esm/chunks/chunk.STS5TIUV.js.map +7 -0
- package/dist/esm/chunks/chunk.SVGEVCXA.js +7 -0
- package/dist/esm/chunks/{chunk.VHO7NUMI.js.map → chunk.SVGEVCXA.js.map} +1 -1
- package/dist/esm/chunks/chunk.UNTTQM6V.js +7 -0
- package/dist/esm/chunks/chunk.UNTTQM6V.js.map +7 -0
- package/dist/esm/chunks/chunk.URBXDOF7.js +7 -0
- package/dist/esm/chunks/{chunk.ELAJS33V.js.map → chunk.URBXDOF7.js.map} +1 -1
- package/dist/esm/chunks/chunk.UUX4QJ4D.js +7 -0
- package/dist/esm/chunks/{chunk.BKMWXPAS.js.map → chunk.UUX4QJ4D.js.map} +1 -1
- package/dist/esm/chunks/chunk.VEVOKTUX.js +7 -0
- package/dist/esm/chunks/{chunk.UPW5HUKB.js.map → chunk.VEVOKTUX.js.map} +1 -1
- package/dist/esm/chunks/chunk.VLTJFKGZ.js +7 -0
- package/dist/esm/chunks/{chunk.NX5SKZLU.js.map → chunk.VLTJFKGZ.js.map} +1 -1
- package/dist/esm/chunks/chunk.VMWS5OOZ.js +7 -0
- package/dist/esm/chunks/{chunk.QXZZ2MTF.js.map → chunk.VMWS5OOZ.js.map} +1 -1
- package/dist/esm/chunks/chunk.W7UTHKBF.js +7 -0
- package/dist/esm/chunks/chunk.W7UTHKBF.js.map +7 -0
- package/dist/esm/chunks/chunk.WAEWHBHE.js +7 -0
- package/dist/esm/chunks/{chunk.LK2DN5KX.js.map → chunk.WAEWHBHE.js.map} +1 -1
- package/dist/esm/chunks/chunk.WGE5R5JK.js +7 -0
- package/dist/esm/chunks/chunk.WGE5R5JK.js.map +7 -0
- package/dist/esm/chunks/chunk.WKKNDQYZ.js +7 -0
- package/dist/esm/chunks/chunk.WKKNDQYZ.js.map +7 -0
- package/dist/esm/chunks/chunk.WMO47F6Z.js +7 -0
- package/dist/esm/chunks/{chunk.CLEUHAZ6.js.map → chunk.WMO47F6Z.js.map} +1 -1
- package/dist/esm/chunks/{chunk.IUNON3UL.js → chunk.WNOSTPQQ.js} +2 -253
- package/dist/esm/chunks/{chunk.IUNON3UL.js.map → chunk.WNOSTPQQ.js.map} +1 -1
- package/dist/esm/chunks/chunk.WSGJIPQJ.js +7 -0
- package/dist/esm/chunks/{chunk.J5NUYQ4D.js.map → chunk.WSGJIPQJ.js.map} +1 -1
- package/dist/esm/chunks/chunk.WYVYTAFS.js +7 -0
- package/dist/esm/chunks/chunk.WYVYTAFS.js.map +7 -0
- package/dist/esm/chunks/chunk.WZRXUTYC.js +7 -0
- package/dist/esm/chunks/{chunk.2WBHHTUM.js.map → chunk.WZRXUTYC.js.map} +1 -1
- package/dist/esm/chunks/chunk.X2RP4QW3.js +6 -0
- package/dist/esm/chunks/chunk.X2RP4QW3.js.map +7 -0
- package/dist/esm/chunks/chunk.X77WVI2H.js +7 -0
- package/dist/esm/chunks/{chunk.ANME7BKM.js.map → chunk.X77WVI2H.js.map} +1 -1
- package/dist/esm/chunks/chunk.XURVHDKR.js +7 -0
- package/dist/esm/chunks/{chunk.3QXCVTCP.js.map → chunk.XURVHDKR.js.map} +1 -1
- package/dist/esm/chunks/chunk.XXA6KNXT.js +7 -0
- package/dist/esm/chunks/{chunk.I7BQUB7Z.js.map → chunk.XXA6KNXT.js.map} +1 -1
- package/dist/esm/chunks/chunk.XYBFFTXS.js +29 -0
- package/dist/esm/chunks/{chunk.WNVZQDNS.js.map → chunk.XYBFFTXS.js.map} +1 -1
- package/dist/esm/chunks/chunk.YFIDBZ7V.js +7 -0
- package/dist/esm/chunks/{chunk.ZLF2G3YT.js.map → chunk.YFIDBZ7V.js.map} +1 -1
- package/dist/esm/chunks/chunk.YHHIPP2F.js +7 -0
- package/dist/esm/chunks/{chunk.QHHYCB7N.js.map → chunk.YHHIPP2F.js.map} +1 -1
- package/dist/esm/chunks/chunk.ZHCQBWAG.js +7 -0
- package/dist/esm/chunks/{chunk.BEAJZPWS.js.map → chunk.ZHCQBWAG.js.map} +1 -1
- package/dist/esm/circular-progress/index.js +1 -22
- package/dist/esm/color-picker/index.js +1 -44
- package/dist/esm/core/base/index.js +1 -15
- package/dist/esm/core/delegates/index.js +1 -14
- package/dist/esm/core/index.js +1 -83
- package/dist/esm/core/mask/index.js +1 -20
- package/dist/esm/core/utils/index.js +1 -46
- package/dist/esm/date-picker/index.js +1 -57
- package/dist/esm/date-range-picker/index.js +1 -59
- package/dist/esm/dialog/index.js +1 -39
- package/dist/esm/divider/index.js +1 -16
- package/dist/esm/drawer/base/index.js +1 -20
- package/dist/esm/drawer/drawer/index.js +1 -20
- package/dist/esm/drawer/index.js +1 -51
- package/dist/esm/drawer/mini-drawer/index.js +1 -20
- package/dist/esm/drawer/modal-drawer/index.js +1 -25
- package/dist/esm/expansion-panel/index.js +1 -33
- package/dist/esm/file-picker/index.js +1 -36
- package/dist/esm/floating-action-button/index.js +1 -23
- package/dist/esm/floating-label/index.js +1 -17
- package/dist/esm/icon/index.js +1 -48
- package/dist/esm/icon-button/index.js +1 -32
- package/dist/esm/index.js +1 -1275
- package/dist/esm/inline-message/index.js +1 -16
- package/dist/esm/keyboard-shortcut/index.js +1 -35
- package/dist/esm/label-value/index.js +1 -26
- package/dist/esm/linear-progress/index.js +1 -18
- package/dist/esm/list/index.js +1 -38
- package/dist/esm/list/list/index.js +1 -27
- package/dist/esm/list/list-item/index.js +1 -25
- package/dist/esm/list-dropdown/index.js +1 -50
- package/dist/esm/menu/index.js +1 -48
- package/dist/esm/open-icon/index.js +1 -32
- package/dist/esm/page-state/index.js +1 -16
- package/dist/esm/paginator/index.js +1 -63
- package/dist/esm/popup/index.js +1 -25
- package/dist/esm/product-icon/index.js +1 -23
- package/dist/esm/profile-card/index.js +1 -33
- package/dist/esm/quantity-field/index.js +1 -41
- package/dist/esm/radio/index.js +1 -20
- package/dist/esm/ripple/index.js +1 -26
- package/dist/esm/scaffold/index.js +1 -16
- package/dist/esm/select/core/index.js +1 -55
- package/dist/esm/select/index.js +1 -109
- package/dist/esm/select/option/index.js +1 -22
- package/dist/esm/select/option-group/index.js +1 -16
- package/dist/esm/select/select/index.js +1 -58
- package/dist/esm/select/select-dropdown/index.js +1 -54
- package/dist/esm/skeleton/index.js +1 -16
- package/dist/esm/slider/index.js +1 -30
- package/dist/esm/split-view/core/index.js +7 -0
- package/dist/esm/split-view/core/index.js.map +7 -0
- package/dist/esm/split-view/index.js +7 -0
- package/dist/esm/split-view/index.js.map +7 -0
- package/dist/esm/split-view/split-view/index.js +7 -0
- package/dist/esm/split-view/split-view/index.js.map +7 -0
- package/dist/esm/split-view/split-view-panel/index.js +7 -0
- package/dist/esm/split-view/split-view-panel/index.js.map +7 -0
- package/dist/esm/stepper/index.js +1 -50
- package/dist/esm/stepper/step/index.js +1 -35
- package/dist/esm/stepper/stepper/index.js +1 -38
- package/dist/esm/switch/index.js +1 -29
- package/dist/esm/table/index.js +1 -52
- package/dist/esm/tabs/index.js +1 -56
- package/dist/esm/tabs/tab/index.js +1 -27
- package/dist/esm/tabs/tab-bar/index.js +1 -42
- package/dist/esm/text-field/index.js +1 -33
- package/dist/esm/theme/index.js +1 -11
- package/dist/esm/time-picker/index.js +1 -87
- package/dist/esm/toast/index.js +1 -37
- package/dist/esm/toolbar/index.js +1 -16
- package/dist/esm/tooltip/index.js +1 -28
- package/dist/esm/utils/index.js +1 -11
- package/dist/esm/view-switcher/index.js +1 -34
- package/dist/esm/view-switcher/view/index.js +1 -16
- package/dist/forge.css +1 -1
- package/dist/table/forge-table.css +1 -1
- package/esm/app-bar/app-bar.d.ts +3 -3
- package/esm/app-bar/profile-button/app-bar-profile-button-adapter.d.ts +6 -1
- package/esm/app-bar/profile-button/app-bar-profile-button-adapter.js +30 -12
- package/esm/app-bar/profile-button/app-bar-profile-button-constants.d.ts +4 -0
- package/esm/app-bar/profile-button/app-bar-profile-button-constants.js +2 -0
- package/esm/app-bar/profile-button/app-bar-profile-button-foundation.d.ts +8 -0
- package/esm/app-bar/profile-button/app-bar-profile-button-foundation.js +22 -0
- package/esm/app-bar/profile-button/app-bar-profile-button.d.ts +4 -0
- package/esm/app-bar/profile-button/app-bar-profile-button.js +14 -0
- package/esm/autocomplete/autocomplete-adapter.d.ts +2 -0
- package/esm/autocomplete/autocomplete-adapter.js +4 -0
- package/esm/autocomplete/autocomplete-foundation.d.ts +15 -16
- package/esm/autocomplete/autocomplete-foundation.js +21 -13
- package/esm/autocomplete/autocomplete.d.ts +9 -9
- package/esm/bottom-sheet/bottom-sheet-adapter.js +1 -1
- package/esm/calendar/calendar-foundation.d.ts +14 -14
- package/esm/calendar/calendar-foundation.js +5 -5
- package/esm/calendar/calendar-utils.d.ts +1 -1
- package/esm/calendar/calendar-utils.js +1 -1
- package/esm/calendar/calendar.d.ts +7 -7
- package/esm/calendar/core/calendar-base.d.ts +7 -7
- package/esm/chip-field/chip-field-adapter.d.ts +1 -1
- package/esm/chip-field/chip-field-adapter.js +2 -2
- package/esm/chip-field/chip-field.js +1 -1
- package/esm/chips/chip/chip-foundation.d.ts +1 -1
- package/esm/chips/chip/chip.d.ts +2 -2
- package/esm/chips/chip/chip.js +1 -1
- package/esm/color-picker/color-picker-foundation.d.ts +12 -12
- package/esm/color-picker/color-picker-foundation.js +1 -1
- package/esm/color-picker/color-picker.d.ts +8 -8
- package/esm/core/utils/date-utils.d.ts +1 -1
- package/esm/core/utils/event-utils.d.ts +1 -0
- package/esm/core/utils/event-utils.js +3 -0
- package/esm/core/utils/utils.d.ts +36 -0
- package/esm/core/utils/utils.js +57 -0
- package/esm/date-picker/base/base-date-picker-adapter.d.ts +8 -8
- package/esm/date-picker/base/base-date-picker-constants.d.ts +5 -5
- package/esm/date-picker/base/base-date-picker-foundation.d.ts +21 -21
- package/esm/date-picker/base/base-date-picker.d.ts +8 -8
- package/esm/date-picker/date-picker-foundation.d.ts +6 -6
- package/esm/date-picker/date-picker-foundation.js +3 -1
- package/esm/date-picker/date-picker.d.ts +1 -1
- package/esm/date-range-picker/date-range-picker-foundation.d.ts +11 -11
- package/esm/date-range-picker/date-range-picker.d.ts +4 -4
- package/esm/dialog/dialog-adapter.js +2 -2
- package/esm/dialog/dialog-foundation.d.ts +6 -6
- package/esm/dialog/dialog-foundation.js +1 -1
- package/esm/dialog/dialog.d.ts +4 -4
- package/esm/field/field-adapter.d.ts +4 -4
- package/esm/field/field-adapter.js +4 -13
- package/esm/field/field-foundation.js +2 -2
- package/esm/file-picker/file-picker-adapter.d.ts +4 -4
- package/esm/file-picker/file-picker-foundation.d.ts +9 -9
- package/esm/file-picker/file-picker.d.ts +6 -6
- package/esm/floating-label/floating-label-adapter.js +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +3 -0
- package/esm/keyboard-shortcut/keyboard-shortcut-foundation.d.ts +3 -3
- package/esm/keyboard-shortcut/keyboard-shortcut-foundation.js +0 -1
- package/esm/keyboard-shortcut/keyboard-shortcut-utils.d.ts +1 -1
- package/esm/keyboard-shortcut/keyboard-shortcut-utils.js +5 -5
- package/esm/keyboard-shortcut/keyboard-shortcut.d.ts +6 -2
- package/esm/keyboard-shortcut/keyboard-shortcut.js +7 -0
- package/esm/menu/menu.d.ts +2 -2
- package/esm/paginator/paginator-foundation.js +15 -12
- package/esm/popup/popup.d.ts +3 -3
- package/esm/profile-card/profile-card-adapter.d.ts +4 -0
- package/esm/profile-card/profile-card-adapter.js +6 -0
- package/esm/profile-card/profile-card-constants.d.ts +4 -0
- package/esm/profile-card/profile-card-constants.js +5 -1
- package/esm/profile-card/profile-card-foundation.d.ts +6 -0
- package/esm/profile-card/profile-card-foundation.js +22 -0
- package/esm/profile-card/profile-card.d.ts +4 -0
- package/esm/profile-card/profile-card.js +15 -1
- package/esm/quantity-field/quantity-field-adapter.d.ts +0 -2
- package/esm/quantity-field/quantity-field-adapter.js +2 -14
- package/esm/quantity-field/quantity-field-foundation.js +0 -1
- package/esm/quantity-field/quantity-field.js +1 -1
- package/esm/select/select/select.js +1 -1
- package/esm/split-view/core/index.d.ts +6 -0
- package/esm/split-view/core/index.js +6 -0
- package/esm/split-view/core/split-view-base.d.ts +14 -0
- package/esm/split-view/core/split-view-base.js +6 -0
- package/esm/split-view/index.d.ts +8 -0
- package/esm/split-view/index.js +8 -0
- package/esm/split-view/split-view/index.d.ts +10 -0
- package/esm/split-view/split-view/index.js +14 -0
- package/esm/split-view/split-view/split-view-adapter.d.ts +29 -0
- package/esm/split-view/split-view/split-view-adapter.js +62 -0
- package/esm/split-view/split-view/split-view-constants.d.ts +41 -0
- package/esm/split-view/split-view/split-view-constants.js +40 -0
- package/esm/split-view/split-view/split-view-foundation.d.ts +86 -0
- package/esm/split-view/split-view/split-view-foundation.js +179 -0
- package/esm/split-view/split-view/split-view.d.ts +67 -0
- package/esm/split-view/split-view/split-view.js +103 -0
- package/esm/split-view/split-view-panel/index.d.ts +11 -0
- package/esm/split-view/split-view-panel/index.js +15 -0
- package/esm/split-view/split-view-panel/split-view-panel-adapter.d.ts +171 -0
- package/esm/split-view/split-view-panel/split-view-panel-adapter.js +295 -0
- package/esm/split-view/split-view-panel/split-view-panel-constants.d.ts +97 -0
- package/esm/split-view/split-view-panel/split-view-panel-constants.js +78 -0
- package/esm/split-view/split-view-panel/split-view-panel-foundation.d.ts +235 -0
- package/esm/split-view/split-view-panel/split-view-panel-foundation.js +667 -0
- package/esm/split-view/split-view-panel/split-view-panel-utils.d.ts +130 -0
- package/esm/split-view/split-view-panel/split-view-panel-utils.js +300 -0
- package/esm/split-view/split-view-panel/split-view-panel.d.ts +105 -0
- package/esm/split-view/split-view-panel/split-view-panel.js +173 -0
- package/esm/table/table-utils.d.ts +2 -2
- package/esm/table/table-utils.js +31 -15
- package/esm/table/table.d.ts +2 -2
- package/esm/text-field/text-field-adapter.d.ts +1 -1
- package/esm/text-field/text-field-adapter.js +2 -2
- package/esm/text-field/text-field.js +1 -1
- package/esm/time-picker/time-picker-foundation.d.ts +8 -8
- package/esm/time-picker/time-picker-foundation.js +4 -4
- package/esm/time-picker/time-picker-utils.d.ts +1 -1
- package/esm/time-picker/time-picker.d.ts +8 -8
- package/esm/tooltip/tooltip.d.ts +1 -1
- package/esm/view-switcher/view-switcher.d.ts +2 -2
- package/package.json +2 -2
- package/styles/chip-field/_base.scss +2 -2
- package/styles/chip-field/_selector.scss +1 -1
- package/styles/chip-field/_variables.scss +1 -1
- package/styles/chips/chip/_mixins.scss +4 -3
- package/styles/chips/chip/_variables.scss +3 -2
- package/styles/field/_base.scss +16 -4
- package/styles/field/_selector.scss +4 -4
- package/styles/quantity-field/_mixins.scss +1 -1
- package/styles/select/select/_selector.scss +1 -1
- package/styles/split-view/split-view/_mixins.scss +48 -0
- package/styles/split-view/split-view/split-view.scss +25 -0
- package/styles/split-view/split-view-panel/_mixins.scss +260 -0
- package/styles/split-view/split-view-panel/_variables.scss +7 -0
- package/styles/split-view/split-view-panel/split-view-panel.scss +23 -0
- package/styles/table/_mixins.scss +2 -0
- package/dist/esm/chunks/chunk.2MBI5DLT.js +0 -439
- package/dist/esm/chunks/chunk.2MBI5DLT.js.map +0 -7
- package/dist/esm/chunks/chunk.2NMHSTAO.js +0 -1473
- package/dist/esm/chunks/chunk.2WBHHTUM.js +0 -200
- package/dist/esm/chunks/chunk.35BJJH5E.js +0 -56
- package/dist/esm/chunks/chunk.35U3UPDV.js +0 -70
- package/dist/esm/chunks/chunk.3EHQ3YHJ.js +0 -52
- package/dist/esm/chunks/chunk.3QXCVTCP.js +0 -73
- package/dist/esm/chunks/chunk.46BED43J.js +0 -602
- package/dist/esm/chunks/chunk.46BED43J.js.map +0 -7
- package/dist/esm/chunks/chunk.4HQ5VELO.js +0 -793
- package/dist/esm/chunks/chunk.4HQ5VELO.js.map +0 -7
- package/dist/esm/chunks/chunk.4JURZYE4.js +0 -410
- package/dist/esm/chunks/chunk.4PF7WRP4.js +0 -450
- package/dist/esm/chunks/chunk.4WLVFWKI.js +0 -21
- package/dist/esm/chunks/chunk.56BNM7F2.js +0 -202
- package/dist/esm/chunks/chunk.5OYAJ36F.js +0 -21
- package/dist/esm/chunks/chunk.5U6ZT6MC.js +0 -296
- package/dist/esm/chunks/chunk.5VKAVHLM.js +0 -610
- package/dist/esm/chunks/chunk.67B6JDOJ.js +0 -654
- package/dist/esm/chunks/chunk.6EGTLHJS.js +0 -16
- package/dist/esm/chunks/chunk.6ZBFCE2A.js +0 -52
- package/dist/esm/chunks/chunk.7FWTBD6Y.js +0 -21
- package/dist/esm/chunks/chunk.7I2XNJBL.js +0 -593
- package/dist/esm/chunks/chunk.7I2XNJBL.js.map +0 -7
- package/dist/esm/chunks/chunk.7UAH67PT.js +0 -634
- package/dist/esm/chunks/chunk.ANME7BKM.js +0 -293
- package/dist/esm/chunks/chunk.BEAJZPWS.js +0 -72
- package/dist/esm/chunks/chunk.BKMWXPAS.js +0 -439
- package/dist/esm/chunks/chunk.BLZJIYMG.js +0 -55
- package/dist/esm/chunks/chunk.BVGJFMEG.js +0 -760
- package/dist/esm/chunks/chunk.BVGJFMEG.js.map +0 -7
- package/dist/esm/chunks/chunk.BYN27JXZ.js +0 -51
- package/dist/esm/chunks/chunk.CLEUHAZ6.js +0 -732
- package/dist/esm/chunks/chunk.D33KLIFD.js +0 -422
- package/dist/esm/chunks/chunk.D33KLIFD.js.map +0 -7
- package/dist/esm/chunks/chunk.DLF5JAQO.js +0 -552
- package/dist/esm/chunks/chunk.E26BROOG.js +0 -291
- package/dist/esm/chunks/chunk.EBC2HGO3.js +0 -372
- package/dist/esm/chunks/chunk.ELAJS33V.js +0 -145
- package/dist/esm/chunks/chunk.EUPO2VO2.js +0 -462
- package/dist/esm/chunks/chunk.EY57VTRF.js +0 -33
- package/dist/esm/chunks/chunk.FJJVIMZ2.js +0 -176
- package/dist/esm/chunks/chunk.FJJVIMZ2.js.map +0 -7
- package/dist/esm/chunks/chunk.FWJ7SIFA.js +0 -433
- package/dist/esm/chunks/chunk.FZ6KICMD.js +0 -297
- package/dist/esm/chunks/chunk.GHZ75UPO.js +0 -342
- package/dist/esm/chunks/chunk.GS2AXUCN.js +0 -150
- package/dist/esm/chunks/chunk.GWNR3UUX.js +0 -658
- package/dist/esm/chunks/chunk.GXTNND2M.js +0 -221
- package/dist/esm/chunks/chunk.HASAPJMX.js +0 -110
- package/dist/esm/chunks/chunk.HAWYW54W.js +0 -728
- package/dist/esm/chunks/chunk.HAWYW54W.js.map +0 -7
- package/dist/esm/chunks/chunk.HMM7PGGZ.js +0 -505
- package/dist/esm/chunks/chunk.HZISALRH.js +0 -20
- package/dist/esm/chunks/chunk.I6PJGNJS.js +0 -401
- package/dist/esm/chunks/chunk.I6PJGNJS.js.map +0 -7
- package/dist/esm/chunks/chunk.I7BQUB7Z.js +0 -212
- package/dist/esm/chunks/chunk.IBED5TWL.js +0 -649
- package/dist/esm/chunks/chunk.IGBDDH3J.js +0 -1203
- package/dist/esm/chunks/chunk.IGBDDH3J.js.map +0 -7
- package/dist/esm/chunks/chunk.IJW2YKP3.js +0 -1347
- package/dist/esm/chunks/chunk.IJW2YKP3.js.map +0 -7
- package/dist/esm/chunks/chunk.ITQ55IPH.js +0 -1335
- package/dist/esm/chunks/chunk.J5NUYQ4D.js +0 -840
- package/dist/esm/chunks/chunk.JC2PZ4TS.js +0 -463
- package/dist/esm/chunks/chunk.JC2PZ4TS.js.map +0 -7
- package/dist/esm/chunks/chunk.JKC5PU23.js +0 -42
- package/dist/esm/chunks/chunk.K2PCTUVN.js +0 -139
- package/dist/esm/chunks/chunk.K7OLG7CS.js +0 -244
- package/dist/esm/chunks/chunk.KCVJDJ6K.js +0 -105
- package/dist/esm/chunks/chunk.KNR5DXE4.js +0 -445
- package/dist/esm/chunks/chunk.KZATVOA6.js +0 -68
- package/dist/esm/chunks/chunk.L4OUV7W6.js +0 -236
- package/dist/esm/chunks/chunk.LCWRP2UI.js.map +0 -7
- package/dist/esm/chunks/chunk.LHWZ4KZU.js +0 -559
- package/dist/esm/chunks/chunk.LHWZ4KZU.js.map +0 -7
- package/dist/esm/chunks/chunk.LK2DN5KX.js +0 -72
- package/dist/esm/chunks/chunk.LM5TVNZY.js +0 -71
- package/dist/esm/chunks/chunk.LX2HDAIF.js +0 -458
- package/dist/esm/chunks/chunk.M3O5VPDD.js +0 -742
- package/dist/esm/chunks/chunk.MBZLA635.js +0 -684
- package/dist/esm/chunks/chunk.MEFT5FQC.js +0 -158
- package/dist/esm/chunks/chunk.MMIZOYAS.js +0 -147
- package/dist/esm/chunks/chunk.MUP3NY6M.js +0 -912
- package/dist/esm/chunks/chunk.NX5SKZLU.js +0 -50
- package/dist/esm/chunks/chunk.OXS2O7RG.js +0 -476
- package/dist/esm/chunks/chunk.PBGL3BRX.js +0 -27
- package/dist/esm/chunks/chunk.PKZ43JNW.js +0 -344
- package/dist/esm/chunks/chunk.PM7D2SUE.js +0 -297
- package/dist/esm/chunks/chunk.PM7D2SUE.js.map +0 -7
- package/dist/esm/chunks/chunk.PNKLV3BK.js +0 -513
- package/dist/esm/chunks/chunk.PNKLV3BK.js.map +0 -7
- package/dist/esm/chunks/chunk.Q4YMHFRY.js +0 -155
- package/dist/esm/chunks/chunk.QD7EPCL6.js +0 -144
- package/dist/esm/chunks/chunk.QD7EPCL6.js.map +0 -7
- package/dist/esm/chunks/chunk.QHHYCB7N.js +0 -56
- package/dist/esm/chunks/chunk.QWW6A7AF.js +0 -603
- package/dist/esm/chunks/chunk.QWW6A7AF.js.map +0 -7
- package/dist/esm/chunks/chunk.QXZZ2MTF.js +0 -52
- package/dist/esm/chunks/chunk.QYWAZCBX.js +0 -258
- package/dist/esm/chunks/chunk.RD4RIFOZ.js +0 -307
- package/dist/esm/chunks/chunk.RL7ZFLMG.js +0 -801
- package/dist/esm/chunks/chunk.RL7ZFLMG.js.map +0 -7
- package/dist/esm/chunks/chunk.RV3E762Y.js +0 -73
- package/dist/esm/chunks/chunk.S3UVF647.js +0 -168
- package/dist/esm/chunks/chunk.SNAZ6JSS.js +0 -22
- package/dist/esm/chunks/chunk.THKWQXBJ.js +0 -52
- package/dist/esm/chunks/chunk.TIUNGGBF.js +0 -964
- package/dist/esm/chunks/chunk.TIUNGGBF.js.map +0 -7
- package/dist/esm/chunks/chunk.TM46MNYN.js +0 -417
- package/dist/esm/chunks/chunk.TYU4RLZG.js +0 -648
- package/dist/esm/chunks/chunk.U37G47LH.js +0 -2994
- package/dist/esm/chunks/chunk.U37G47LH.js.map +0 -7
- package/dist/esm/chunks/chunk.U5ECVIX5.js +0 -561
- package/dist/esm/chunks/chunk.UFMUXBT4.js +0 -317
- package/dist/esm/chunks/chunk.UFMUXBT4.js.map +0 -7
- package/dist/esm/chunks/chunk.UPW5HUKB.js +0 -136
- package/dist/esm/chunks/chunk.UQ3QTUUB.js +0 -173
- package/dist/esm/chunks/chunk.V2ELLBDP.js +0 -1591
- package/dist/esm/chunks/chunk.V6Q2SM6Y.js +0 -187
- package/dist/esm/chunks/chunk.VHO7NUMI.js +0 -37
- package/dist/esm/chunks/chunk.VK6LIH3B.js +0 -13
- package/dist/esm/chunks/chunk.VXAPRFMK.js +0 -978
- package/dist/esm/chunks/chunk.VXAPRFMK.js.map +0 -7
- package/dist/esm/chunks/chunk.VXVE7KEM.js +0 -248
- package/dist/esm/chunks/chunk.WDD2GTIH.js +0 -73
- package/dist/esm/chunks/chunk.WIYLQTSX.js +0 -3550
- package/dist/esm/chunks/chunk.WNVZQDNS.js +0 -540
- package/dist/esm/chunks/chunk.WSH4S3GM.js +0 -507
- package/dist/esm/chunks/chunk.WT4W2IFT.js +0 -92
- package/dist/esm/chunks/chunk.XE7ZMJBZ.js +0 -2430
- package/dist/esm/chunks/chunk.XE7ZMJBZ.js.map +0 -7
- package/dist/esm/chunks/chunk.YL2NAVJW.js +0 -244
- package/dist/esm/chunks/chunk.ZLF2G3YT.js +0 -350
- package/dist/esm/chunks/chunk.ZSHQMR4O.js +0 -59
- package/dist/esm/chunks/chunk.ZXIDTDRC.js +0 -419
|
@@ -1,1335 +0,0 @@
|
|
|
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.HMM7PGGZ.js";
|
|
10
|
-
import {
|
|
11
|
-
IconButtonComponent
|
|
12
|
-
} from "./chunk.EBC2HGO3.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.WSH4S3GM.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.ITQ55IPH.js.map
|