@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,978 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Tyler Technologies, Inc.
|
|
4
|
-
* License: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import {
|
|
7
|
-
IconButtonComponent
|
|
8
|
-
} from "./chunk.EBC2HGO3.js";
|
|
9
|
-
import {
|
|
10
|
-
tylIconUnfoldMore
|
|
11
|
-
} from "./chunk.GS2AXUCN.js";
|
|
12
|
-
import {
|
|
13
|
-
TooltipComponent
|
|
14
|
-
} from "./chunk.OXS2O7RG.js";
|
|
15
|
-
import {
|
|
16
|
-
IconComponent,
|
|
17
|
-
IconRegistry
|
|
18
|
-
} from "./chunk.WSH4S3GM.js";
|
|
19
|
-
import {
|
|
20
|
-
BaseAdapter
|
|
21
|
-
} from "./chunk.KZATVOA6.js";
|
|
22
|
-
import {
|
|
23
|
-
FoundationProperty
|
|
24
|
-
} from "./chunk.MMIZOYAS.js";
|
|
25
|
-
import {
|
|
26
|
-
COMPONENT_NAME_PREFIX,
|
|
27
|
-
CustomElement
|
|
28
|
-
} from "./chunk.35U3UPDV.js";
|
|
29
|
-
import {
|
|
30
|
-
BaseComponent
|
|
31
|
-
} from "./chunk.VK6LIH3B.js";
|
|
32
|
-
import {
|
|
33
|
-
attachShadowTemplate,
|
|
34
|
-
defineCustomElement,
|
|
35
|
-
getShadowElement
|
|
36
|
-
} from "./chunk.K2PCTUVN.js";
|
|
37
|
-
import {
|
|
38
|
-
coerceBoolean,
|
|
39
|
-
debounce,
|
|
40
|
-
isNumber
|
|
41
|
-
} from "./chunk.MEFT5FQC.js";
|
|
42
|
-
import {
|
|
43
|
-
__decorateClass,
|
|
44
|
-
__spreadValues
|
|
45
|
-
} from "./chunk.LM5TVNZY.js";
|
|
46
|
-
|
|
47
|
-
// dist/build/lib/staging/src/color-picker/color-picker-constants.ts
|
|
48
|
-
var elementName = `${COMPONENT_NAME_PREFIX}color-picker`;
|
|
49
|
-
var attributes = {
|
|
50
|
-
VALUE: "value",
|
|
51
|
-
ALLOW_OPACITY: "allow-opacity",
|
|
52
|
-
DEBOUNCE_CHANGE_EVENT: "debounce-change-event"
|
|
53
|
-
};
|
|
54
|
-
var classes = {
|
|
55
|
-
SLIDER_THUMB_ACTIVE: "forge-color-picker__slider-thumb--active",
|
|
56
|
-
GRADIENT_THUMB_ACTIVE: "forge-color-picker__gradient-thumb--active"
|
|
57
|
-
};
|
|
58
|
-
var selectors = {
|
|
59
|
-
GRADIENT: ".forge-color-picker__gradient",
|
|
60
|
-
GRADIENT_THUMB: ".forge-color-picker__gradient-thumb",
|
|
61
|
-
PREVIEW_COLOR: ".forge-color-picker__color-preview",
|
|
62
|
-
HEX_INPUT: "#forge-color-picker-hex-input",
|
|
63
|
-
RGBA_INPUT: "#forge-color-picker-rgba-input",
|
|
64
|
-
HSVA_INPUT: "#forge-color-picker-hsva-input",
|
|
65
|
-
HUE_SLIDER: ".forge-color-picker__hue-slider",
|
|
66
|
-
HUE_SLIDER_THUMB: "#forge-color-picker-hue-thumb",
|
|
67
|
-
OPACITY_SLIDER: ".forge-color-picker__opacity-slider",
|
|
68
|
-
OPACITY_SLIDER_THUMB: "#forge-color-picker-opacity-thumb",
|
|
69
|
-
SLIDER: ".forge-color-picker__slider",
|
|
70
|
-
SLIDER_THUMB: ".forge-color-picker__slider-thumb",
|
|
71
|
-
COLOR_VALUE_HEX_CONTAINER: ".forge-color-picker__color-hex",
|
|
72
|
-
COLOR_VALUE_RGBA_CONTAINER: ".forge-color-picker__color-rgba",
|
|
73
|
-
COLOR_VALUE_HSVA_CONTAINER: ".forge-color-picker__color-hsva",
|
|
74
|
-
TYPE_BUTTON: "#forge-color-picker-type-button",
|
|
75
|
-
COLOR_VALUE_RGBA_R: "#forge-color-picker-rgba-r-input",
|
|
76
|
-
COLOR_VALUE_RGBA_G: "#forge-color-picker-rgba-g-input",
|
|
77
|
-
COLOR_VALUE_RGBA_B: "#forge-color-picker-rgba-b-input",
|
|
78
|
-
COLOR_VALUE_RGBA_A: "#forge-color-picker-rgba-a-input",
|
|
79
|
-
COLOR_VALUE_HSVA_H: "#forge-color-picker-hsva-h-input",
|
|
80
|
-
COLOR_VALUE_HSVA_S: "#forge-color-picker-hsva-s-input",
|
|
81
|
-
COLOR_VALUE_HSVA_V: "#forge-color-picker-hsva-v-input",
|
|
82
|
-
COLOR_VALUE_HSVA_A: "#forge-color-picker-hsva-a-input"
|
|
83
|
-
};
|
|
84
|
-
var events = {
|
|
85
|
-
CHANGE: `${elementName}-change`
|
|
86
|
-
};
|
|
87
|
-
var numbers = {
|
|
88
|
-
CHANGE_EVENT_DEBOUNCE_THRESHOLD: 200
|
|
89
|
-
};
|
|
90
|
-
var COLOR_PICKER_CONSTANTS = {
|
|
91
|
-
elementName,
|
|
92
|
-
attributes,
|
|
93
|
-
events,
|
|
94
|
-
classes,
|
|
95
|
-
selectors,
|
|
96
|
-
numbers
|
|
97
|
-
};
|
|
98
|
-
var DEFAULT_COLOR = "000000";
|
|
99
|
-
var ColorPickerValueType = /* @__PURE__ */ ((ColorPickerValueType2) => {
|
|
100
|
-
ColorPickerValueType2["HEX"] = "hex";
|
|
101
|
-
ColorPickerValueType2["RGB"] = "rgb";
|
|
102
|
-
ColorPickerValueType2["RGBA"] = "rgba";
|
|
103
|
-
ColorPickerValueType2["HSV"] = "hsv";
|
|
104
|
-
ColorPickerValueType2["HSVA"] = "hsva";
|
|
105
|
-
return ColorPickerValueType2;
|
|
106
|
-
})(ColorPickerValueType || {});
|
|
107
|
-
|
|
108
|
-
// dist/build/lib/staging/src/color-picker/color-picker-adapter.ts
|
|
109
|
-
var ColorPickerAdapter = class extends BaseAdapter {
|
|
110
|
-
constructor(component) {
|
|
111
|
-
super(component);
|
|
112
|
-
this._gradientElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.GRADIENT);
|
|
113
|
-
this._previewColorElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.PREVIEW_COLOR);
|
|
114
|
-
this._hexInputElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.HEX_INPUT);
|
|
115
|
-
this._rgbaInputRElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.COLOR_VALUE_RGBA_R);
|
|
116
|
-
this._rgbaInputGElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.COLOR_VALUE_RGBA_G);
|
|
117
|
-
this._rgbaInputBElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.COLOR_VALUE_RGBA_B);
|
|
118
|
-
this._rgbaInputAElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.COLOR_VALUE_RGBA_A);
|
|
119
|
-
this._hsvaInputHElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.COLOR_VALUE_HSVA_H);
|
|
120
|
-
this._hsvaInputSElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.COLOR_VALUE_HSVA_S);
|
|
121
|
-
this._hsvaInputVElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.COLOR_VALUE_HSVA_V);
|
|
122
|
-
this._hsvaInputAElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.COLOR_VALUE_HSVA_A);
|
|
123
|
-
this._hueSliderElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.HUE_SLIDER);
|
|
124
|
-
this._hueSliderThumbElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.HUE_SLIDER_THUMB);
|
|
125
|
-
this._opacitySliderElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.OPACITY_SLIDER);
|
|
126
|
-
this._opacitySliderThumbElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.OPACITY_SLIDER_THUMB);
|
|
127
|
-
this._hexValueContainerElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.COLOR_VALUE_HEX_CONTAINER);
|
|
128
|
-
this._rgbaValueContainerElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.COLOR_VALUE_RGBA_CONTAINER);
|
|
129
|
-
this._hsvaValueContainerElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.COLOR_VALUE_HSVA_CONTAINER);
|
|
130
|
-
this._typeButtonElement = getShadowElement(component, COLOR_PICKER_CONSTANTS.selectors.TYPE_BUTTON);
|
|
131
|
-
}
|
|
132
|
-
setPreviewColor(rgbaStyle) {
|
|
133
|
-
this._previewColorElement.style.backgroundColor = rgbaStyle;
|
|
134
|
-
}
|
|
135
|
-
setHexInputValue(value) {
|
|
136
|
-
this._hexInputElement.value = value;
|
|
137
|
-
}
|
|
138
|
-
setRgbaInputValue(rgba) {
|
|
139
|
-
this._rgbaInputRElement.value = rgba.r.toString();
|
|
140
|
-
this._rgbaInputGElement.value = rgba.g.toString();
|
|
141
|
-
this._rgbaInputBElement.value = rgba.b.toString();
|
|
142
|
-
this._rgbaInputAElement.value = rgba.a.toString();
|
|
143
|
-
}
|
|
144
|
-
setHsvaInputValue(hsva) {
|
|
145
|
-
this._hsvaInputHElement.value = hsva.h.toString();
|
|
146
|
-
this._hsvaInputSElement.value = hsva.s.toString();
|
|
147
|
-
this._hsvaInputVElement.value = hsva.v.toString();
|
|
148
|
-
this._hsvaInputAElement.value = hsva.a.toString();
|
|
149
|
-
}
|
|
150
|
-
updateA11y(hueValue, opacityValue) {
|
|
151
|
-
this._hueSliderThumbElement.setAttribute("aria-valuenow", hueValue.toString());
|
|
152
|
-
this._hueSliderThumbElement.setAttribute("aria-valuetext", hueValue.toString());
|
|
153
|
-
this._opacitySliderThumbElement.setAttribute("aria-valuenow", opacityValue.toString());
|
|
154
|
-
this._opacitySliderThumbElement.setAttribute("aria-valuetext", opacityValue.toString());
|
|
155
|
-
}
|
|
156
|
-
setGradientColor(value) {
|
|
157
|
-
this._gradientElement.style.backgroundColor = value;
|
|
158
|
-
}
|
|
159
|
-
getHueSliderElement() {
|
|
160
|
-
return this._hueSliderElement;
|
|
161
|
-
}
|
|
162
|
-
getOpacitySliderElement() {
|
|
163
|
-
return this._opacitySliderElement;
|
|
164
|
-
}
|
|
165
|
-
getGradientElement() {
|
|
166
|
-
return this._gradientElement;
|
|
167
|
-
}
|
|
168
|
-
setActiveValueType(type) {
|
|
169
|
-
this._hexValueContainerElement.style.display = "none";
|
|
170
|
-
this._rgbaValueContainerElement.style.display = "none";
|
|
171
|
-
this._hsvaValueContainerElement.style.display = "none";
|
|
172
|
-
switch (type) {
|
|
173
|
-
case "hex" /* HEX */:
|
|
174
|
-
this._hexValueContainerElement.style.removeProperty("display");
|
|
175
|
-
break;
|
|
176
|
-
case "rgba" /* RGBA */:
|
|
177
|
-
this._rgbaValueContainerElement.style.removeProperty("display");
|
|
178
|
-
break;
|
|
179
|
-
case "hsva" /* HSVA */:
|
|
180
|
-
this._hsvaValueContainerElement.style.removeProperty("display");
|
|
181
|
-
break;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
focusValueInput(type) {
|
|
185
|
-
switch (type) {
|
|
186
|
-
case "hex" /* HEX */:
|
|
187
|
-
this._hexInputElement.focus();
|
|
188
|
-
this._hexInputElement.select();
|
|
189
|
-
break;
|
|
190
|
-
case "rgba" /* RGBA */:
|
|
191
|
-
this._rgbaInputRElement.focus();
|
|
192
|
-
this._rgbaInputRElement.select();
|
|
193
|
-
break;
|
|
194
|
-
case "hsva" /* HSVA */:
|
|
195
|
-
this._hsvaInputHElement.focus();
|
|
196
|
-
this._hsvaInputHElement.select();
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
setTypeClickListener(listener) {
|
|
201
|
-
this._typeButtonElement.addEventListener("click", listener);
|
|
202
|
-
}
|
|
203
|
-
removeTypeClickListener(listener) {
|
|
204
|
-
this._typeButtonElement.removeEventListener("click", listener);
|
|
205
|
-
}
|
|
206
|
-
setHexInputListener(type, listener) {
|
|
207
|
-
this._hexInputElement.addEventListener(type, listener);
|
|
208
|
-
}
|
|
209
|
-
removeHexInputListener(type, listener) {
|
|
210
|
-
this._hexInputElement.removeEventListener(type, listener);
|
|
211
|
-
}
|
|
212
|
-
getHexInputValue() {
|
|
213
|
-
return this._hexInputElement.value;
|
|
214
|
-
}
|
|
215
|
-
setRgbaInputListener(type, listener) {
|
|
216
|
-
this._rgbaInputRElement.addEventListener(type, listener);
|
|
217
|
-
this._rgbaInputGElement.addEventListener(type, listener);
|
|
218
|
-
this._rgbaInputBElement.addEventListener(type, listener);
|
|
219
|
-
this._rgbaInputAElement.addEventListener(type, listener);
|
|
220
|
-
}
|
|
221
|
-
removeRgbaInputListener(type, listener) {
|
|
222
|
-
this._rgbaInputRElement.removeEventListener(type, listener);
|
|
223
|
-
this._rgbaInputGElement.removeEventListener(type, listener);
|
|
224
|
-
this._rgbaInputBElement.removeEventListener(type, listener);
|
|
225
|
-
this._rgbaInputAElement.removeEventListener(type, listener);
|
|
226
|
-
}
|
|
227
|
-
getRgbaInputValue() {
|
|
228
|
-
return {
|
|
229
|
-
r: parseInt(this._rgbaInputRElement.value, 10),
|
|
230
|
-
g: parseInt(this._rgbaInputGElement.value, 10),
|
|
231
|
-
b: parseInt(this._rgbaInputBElement.value, 10),
|
|
232
|
-
a: parseFloat(this._rgbaInputAElement.value)
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
setHsvaInputListener(type, listener) {
|
|
236
|
-
this._hsvaInputHElement.addEventListener(type, listener);
|
|
237
|
-
this._hsvaInputSElement.addEventListener(type, listener);
|
|
238
|
-
this._hsvaInputVElement.addEventListener(type, listener);
|
|
239
|
-
this._hsvaInputAElement.addEventListener(type, listener);
|
|
240
|
-
}
|
|
241
|
-
removeHsvaInputListener(type, listener) {
|
|
242
|
-
this._hsvaInputHElement.removeEventListener(type, listener);
|
|
243
|
-
this._hsvaInputSElement.removeEventListener(type, listener);
|
|
244
|
-
this._hsvaInputVElement.removeEventListener(type, listener);
|
|
245
|
-
this._hsvaInputAElement.removeEventListener(type, listener);
|
|
246
|
-
}
|
|
247
|
-
getHsvaInputValue() {
|
|
248
|
-
return {
|
|
249
|
-
h: parseInt(this._hsvaInputHElement.value, 10),
|
|
250
|
-
s: parseInt(this._hsvaInputSElement.value, 10),
|
|
251
|
-
v: parseInt(this._hsvaInputVElement.value, 10),
|
|
252
|
-
a: parseFloat(this._hsvaInputAElement.value)
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
toggleOpacityControls(visible) {
|
|
256
|
-
if (visible) {
|
|
257
|
-
this._opacitySliderElement.style.removeProperty("display");
|
|
258
|
-
if (this._rgbaInputAElement.parentElement) {
|
|
259
|
-
this._rgbaInputAElement.parentElement.style.removeProperty("display");
|
|
260
|
-
}
|
|
261
|
-
if (this._hsvaInputAElement.parentElement) {
|
|
262
|
-
this._hsvaInputAElement.parentElement.style.removeProperty("display");
|
|
263
|
-
}
|
|
264
|
-
} else {
|
|
265
|
-
this._opacitySliderElement.style.display = "none";
|
|
266
|
-
if (this._rgbaInputAElement.parentElement) {
|
|
267
|
-
this._rgbaInputAElement.parentElement.style.display = "none";
|
|
268
|
-
}
|
|
269
|
-
if (this._hsvaInputAElement.parentElement) {
|
|
270
|
-
this._hsvaInputAElement.parentElement.style.display = "none";
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
// dist/build/lib/staging/src/color-picker/color-picker-utils.ts
|
|
277
|
-
function relativeCoords(absX, absY, element) {
|
|
278
|
-
const bounds = element.getBoundingClientRect();
|
|
279
|
-
let x = absX - bounds.left;
|
|
280
|
-
let y = absY - bounds.top;
|
|
281
|
-
if (x > bounds.width) {
|
|
282
|
-
x = bounds.width;
|
|
283
|
-
} else if (x < 0) {
|
|
284
|
-
x = 0;
|
|
285
|
-
}
|
|
286
|
-
if (y > bounds.height) {
|
|
287
|
-
y = bounds.height;
|
|
288
|
-
} else if (y < 0) {
|
|
289
|
-
y = 0;
|
|
290
|
-
}
|
|
291
|
-
return { x, y, height: bounds.height, width: bounds.width };
|
|
292
|
-
}
|
|
293
|
-
function hsvaToRgba(hsva) {
|
|
294
|
-
let r;
|
|
295
|
-
let g;
|
|
296
|
-
let b;
|
|
297
|
-
const h = hsva.h / 60;
|
|
298
|
-
const s = hsva.s / 100;
|
|
299
|
-
const v = hsva.v / 100;
|
|
300
|
-
if (s === 0) {
|
|
301
|
-
r = g = b = v;
|
|
302
|
-
return {
|
|
303
|
-
r: Math.round(r * 255),
|
|
304
|
-
g: Math.round(g * 255),
|
|
305
|
-
b: Math.round(b * 255),
|
|
306
|
-
a: hsva.a
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
const i = Math.floor(h);
|
|
310
|
-
const f = h - i;
|
|
311
|
-
const p = v * (1 - s);
|
|
312
|
-
const q = v * (1 - s * f);
|
|
313
|
-
const t = v * (1 - s * (1 - f));
|
|
314
|
-
switch (i) {
|
|
315
|
-
case 0:
|
|
316
|
-
r = v;
|
|
317
|
-
g = t;
|
|
318
|
-
b = p;
|
|
319
|
-
break;
|
|
320
|
-
case 1:
|
|
321
|
-
r = q;
|
|
322
|
-
g = v;
|
|
323
|
-
b = p;
|
|
324
|
-
break;
|
|
325
|
-
case 2:
|
|
326
|
-
r = p;
|
|
327
|
-
g = v;
|
|
328
|
-
b = t;
|
|
329
|
-
break;
|
|
330
|
-
case 3:
|
|
331
|
-
r = p;
|
|
332
|
-
g = q;
|
|
333
|
-
b = v;
|
|
334
|
-
break;
|
|
335
|
-
case 4:
|
|
336
|
-
r = t;
|
|
337
|
-
g = p;
|
|
338
|
-
b = v;
|
|
339
|
-
break;
|
|
340
|
-
default:
|
|
341
|
-
r = v;
|
|
342
|
-
g = p;
|
|
343
|
-
b = q;
|
|
344
|
-
}
|
|
345
|
-
return {
|
|
346
|
-
r: Math.round(r * 255),
|
|
347
|
-
g: Math.round(g * 255),
|
|
348
|
-
b: Math.round(b * 255),
|
|
349
|
-
a: hsva.a
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
function rgbaToHex(rgba) {
|
|
353
|
-
return toHex(rgba.r) + toHex(rgba.g) + toHex(rgba.b) + (Math.round(rgba.a * 255) + 65536).toString(16).substr(-2);
|
|
354
|
-
}
|
|
355
|
-
function toHex(x) {
|
|
356
|
-
return ("0" + x.toString(16)).slice(-2);
|
|
357
|
-
}
|
|
358
|
-
function hexToRgba(hex) {
|
|
359
|
-
const isShorthand = hex.length === 3 || hex.length === 4;
|
|
360
|
-
const hexR = isShorthand ? `${hex.slice(0, 1)}${hex.slice(0, 1)}` : hex.slice(0, 2);
|
|
361
|
-
const hexG = isShorthand ? `${hex.slice(1, 2)}${hex.slice(1, 2)}` : hex.slice(2, 4);
|
|
362
|
-
const hexB = isShorthand ? `${hex.slice(2, 3)}${hex.slice(2, 3)}` : hex.slice(4, 6);
|
|
363
|
-
const hexA = (isShorthand ? `${hex.slice(3, 4)}${hex.slice(3, 4)}` : hex.slice(6, 8)) || "ff";
|
|
364
|
-
return {
|
|
365
|
-
r: parseInt(hexR, 16),
|
|
366
|
-
g: parseInt(hexG, 16),
|
|
367
|
-
b: parseInt(hexB, 16),
|
|
368
|
-
a: parseFloat((parseInt(hexA, 16) / 255).toFixed(2))
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
function formatRgba(rgba) {
|
|
372
|
-
return `rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, ${rgba.a})`;
|
|
373
|
-
}
|
|
374
|
-
function formatHex(value, allowOpacity) {
|
|
375
|
-
let hex = value.replace(/^#/, "");
|
|
376
|
-
if (!allowOpacity) {
|
|
377
|
-
if (hex.length === 4) {
|
|
378
|
-
hex = hex.substring(0, 3);
|
|
379
|
-
} else if (hex.length === 8) {
|
|
380
|
-
hex = hex.substring(0, 6);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
return `#${hex}`;
|
|
384
|
-
}
|
|
385
|
-
function rgbaToHsva(rgba) {
|
|
386
|
-
const r = rgba.r / 255;
|
|
387
|
-
const g = rgba.g / 255;
|
|
388
|
-
const b = rgba.b / 255;
|
|
389
|
-
const max = Math.max(r, g, b);
|
|
390
|
-
const min = Math.min(r, g, b);
|
|
391
|
-
let h = max;
|
|
392
|
-
let s = max;
|
|
393
|
-
const v = max;
|
|
394
|
-
const d = max - min;
|
|
395
|
-
s = max === 0 ? 0 : d / max;
|
|
396
|
-
if (max === min) {
|
|
397
|
-
h = 0;
|
|
398
|
-
} else {
|
|
399
|
-
switch (max) {
|
|
400
|
-
case r:
|
|
401
|
-
h = (g - b) / d + (g < b ? 6 : 0);
|
|
402
|
-
break;
|
|
403
|
-
case g:
|
|
404
|
-
h = (b - r) / d + 2;
|
|
405
|
-
break;
|
|
406
|
-
case b:
|
|
407
|
-
h = (r - g) / d + 4;
|
|
408
|
-
break;
|
|
409
|
-
}
|
|
410
|
-
h /= 6;
|
|
411
|
-
}
|
|
412
|
-
return {
|
|
413
|
-
h: Math.round(h * 360),
|
|
414
|
-
s: Math.round(s * 100),
|
|
415
|
-
v: Math.round(v * 100),
|
|
416
|
-
a: rgba.a
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
function isValidHex(value) {
|
|
420
|
-
if (!value || typeof value !== "string") {
|
|
421
|
-
return false;
|
|
422
|
-
}
|
|
423
|
-
if (value.substring(0, 1) === "#") {
|
|
424
|
-
value = value.substring(1);
|
|
425
|
-
}
|
|
426
|
-
switch (value.length) {
|
|
427
|
-
case 3:
|
|
428
|
-
return /^[0-9A-F]{3}$/i.test(value);
|
|
429
|
-
case 4:
|
|
430
|
-
return /^[0-9A-F]{4}$/i.test(value);
|
|
431
|
-
case 6:
|
|
432
|
-
return /^[0-9A-F]{6}$/i.test(value);
|
|
433
|
-
case 8:
|
|
434
|
-
return /^[0-9A-F]{8}$/i.test(value);
|
|
435
|
-
default:
|
|
436
|
-
return false;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
function isValidRGBA(value) {
|
|
440
|
-
return isNumber(value.r) && value.r >= 0 && value.r <= 255 && isNumber(value.g) && value.g >= 0 && value.g <= 255 && isNumber(value.b) && value.b >= 0 && value.b <= 255 && isNumber(value.a) && value.a >= 0 && value.a <= 1;
|
|
441
|
-
}
|
|
442
|
-
function isValidHSVA(value) {
|
|
443
|
-
return isNumber(value.h) && value.h >= 0 && value.h <= 360 && isNumber(value.s) && value.s >= 0 && value.s <= 100 && isNumber(value.v) && value.v >= 0 && value.v <= 100 && isNumber(value.a) && value.a >= 0 && value.a <= 1;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
// dist/build/lib/staging/src/color-picker/color-picker-gradient-slider.ts
|
|
447
|
-
var ColorPickerGradientSlider = class {
|
|
448
|
-
constructor(_rootElement, _changeListener) {
|
|
449
|
-
this._rootElement = _rootElement;
|
|
450
|
-
this._changeListener = _changeListener;
|
|
451
|
-
this._keydownListener = (evt) => this._onKeydown(evt);
|
|
452
|
-
this._downListener = (evt) => this._onDown(evt);
|
|
453
|
-
this._moveListener = (evt) => this._onMove(evt);
|
|
454
|
-
this._upListener = (evt) => this._onUp(evt);
|
|
455
|
-
this._initialize();
|
|
456
|
-
}
|
|
457
|
-
destroy() {
|
|
458
|
-
this._unlisten();
|
|
459
|
-
}
|
|
460
|
-
setValue(saturation, value) {
|
|
461
|
-
window.requestAnimationFrame(() => {
|
|
462
|
-
const bounds = this._rootElement.getBoundingClientRect();
|
|
463
|
-
this._xPercent = Math.round(bounds.width * (saturation / 100));
|
|
464
|
-
this._yPercent = bounds.height - Math.round(bounds.height * (value / 100));
|
|
465
|
-
this._setThumbPosition(this._xPercent, this._yPercent);
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
_initialize() {
|
|
469
|
-
this._thumbElement = this._rootElement.querySelector(COLOR_PICKER_CONSTANTS.selectors.GRADIENT_THUMB);
|
|
470
|
-
this._listen();
|
|
471
|
-
this._setThumbPosition(this._xPercent, this._yPercent);
|
|
472
|
-
}
|
|
473
|
-
_listen() {
|
|
474
|
-
this._rootElement.addEventListener("keydown", this._keydownListener);
|
|
475
|
-
this._rootElement.addEventListener("mousedown", this._downListener);
|
|
476
|
-
this._rootElement.addEventListener("touchstart", this._downListener);
|
|
477
|
-
}
|
|
478
|
-
_unlisten() {
|
|
479
|
-
this._rootElement.removeEventListener("keydown", this._keydownListener);
|
|
480
|
-
this._rootElement.removeEventListener("mousedown", this._downListener);
|
|
481
|
-
this._rootElement.removeEventListener("touchstart", this._downListener);
|
|
482
|
-
document.removeEventListener("mousemove", this._moveListener);
|
|
483
|
-
document.removeEventListener("touchmove", this._moveListener);
|
|
484
|
-
document.removeEventListener("mouseup", this._upListener);
|
|
485
|
-
document.removeEventListener("touchend", this._upListener);
|
|
486
|
-
}
|
|
487
|
-
_onKeydown(evt) {
|
|
488
|
-
const isEnterKey = evt.key === "Enter" || evt.keyCode === 13;
|
|
489
|
-
const isArrowLeftKey = evt.key === "ArrowLeft" || evt.keyCode === 37;
|
|
490
|
-
const isArrowUpKey = evt.key === "ArrowUp" || evt.keyCode === 38;
|
|
491
|
-
const isArrowRightKey = evt.key === "ArrowRight" || evt.keyCode === 39;
|
|
492
|
-
const isArrowDownKey = evt.key === "ArrowDown" || evt.keyCode === 40;
|
|
493
|
-
const bounds = this._rootElement.getBoundingClientRect();
|
|
494
|
-
if (isArrowDownKey) {
|
|
495
|
-
evt.preventDefault();
|
|
496
|
-
this._yPercent++;
|
|
497
|
-
} else if (isArrowUpKey) {
|
|
498
|
-
evt.preventDefault();
|
|
499
|
-
this._yPercent--;
|
|
500
|
-
} else if (isArrowLeftKey) {
|
|
501
|
-
evt.preventDefault();
|
|
502
|
-
this._xPercent--;
|
|
503
|
-
} else if (isArrowRightKey) {
|
|
504
|
-
evt.preventDefault();
|
|
505
|
-
this._xPercent++;
|
|
506
|
-
} else if (isEnterKey) {
|
|
507
|
-
evt.preventDefault();
|
|
508
|
-
} else {
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
|
-
if (this._xPercent > bounds.width) {
|
|
512
|
-
this._xPercent = bounds.width;
|
|
513
|
-
} else if (this._xPercent < 0) {
|
|
514
|
-
this._xPercent = 0;
|
|
515
|
-
}
|
|
516
|
-
if (this._yPercent > bounds.height) {
|
|
517
|
-
this._yPercent = bounds.height;
|
|
518
|
-
} else if (this._yPercent < 0) {
|
|
519
|
-
this._yPercent = 0;
|
|
520
|
-
}
|
|
521
|
-
this._setThumbPosition(this._xPercent, this._yPercent);
|
|
522
|
-
this._notify();
|
|
523
|
-
}
|
|
524
|
-
_onDown(evt) {
|
|
525
|
-
evt.preventDefault();
|
|
526
|
-
document.addEventListener("mousemove", this._moveListener);
|
|
527
|
-
document.addEventListener("touchmove", this._moveListener);
|
|
528
|
-
document.addEventListener("mouseup", this._upListener);
|
|
529
|
-
document.addEventListener("touchend", this._upListener);
|
|
530
|
-
this._updateThumbPosition(evt);
|
|
531
|
-
}
|
|
532
|
-
_onMove(evt) {
|
|
533
|
-
evt.preventDefault();
|
|
534
|
-
this._updateThumbPosition(evt);
|
|
535
|
-
}
|
|
536
|
-
_onUp(evt) {
|
|
537
|
-
document.removeEventListener("mousemove", this._moveListener);
|
|
538
|
-
document.removeEventListener("touchmove", this._moveListener);
|
|
539
|
-
document.removeEventListener("mouseup", this._upListener);
|
|
540
|
-
document.removeEventListener("touchend", this._upListener);
|
|
541
|
-
this._updateThumbPosition(evt);
|
|
542
|
-
this._thumbElement.focus();
|
|
543
|
-
}
|
|
544
|
-
_updateThumbPosition(evt) {
|
|
545
|
-
const isMouseEvent = /^mouse/.test(evt.type);
|
|
546
|
-
const x = isMouseEvent ? evt.clientX : evt.changedTouches[0].clientX;
|
|
547
|
-
const y = isMouseEvent ? evt.clientY : evt.changedTouches[0].clientY;
|
|
548
|
-
const coords = this._calculateSliderPercent(x, y);
|
|
549
|
-
this._setThumbPosition(coords.x, coords.y);
|
|
550
|
-
this._xPercent = parseInt((coords.x / coords.width * 100).toString(), 10);
|
|
551
|
-
this._yPercent = Math.abs(parseInt((coords.y / coords.height * 100).toString(), 10) - 100);
|
|
552
|
-
this._notify();
|
|
553
|
-
}
|
|
554
|
-
_calculateSliderPercent(absX, absY) {
|
|
555
|
-
return relativeCoords(absX, absY, this._rootElement);
|
|
556
|
-
}
|
|
557
|
-
_setThumbPosition(xPercent, yPercent) {
|
|
558
|
-
this._thumbElement.style.left = `${xPercent}px`;
|
|
559
|
-
this._thumbElement.style.top = `${yPercent}px`;
|
|
560
|
-
}
|
|
561
|
-
_notify() {
|
|
562
|
-
if (typeof this._changeListener === "function") {
|
|
563
|
-
this._changeListener(this._xPercent, this._yPercent);
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
|
|
568
|
-
// dist/build/lib/staging/src/color-picker/color-picker-slider.ts
|
|
569
|
-
var ColorPickerSlider = class {
|
|
570
|
-
constructor(_rootElement, _changeListener) {
|
|
571
|
-
this._rootElement = _rootElement;
|
|
572
|
-
this._changeListener = _changeListener;
|
|
573
|
-
this._percent = 1;
|
|
574
|
-
this._min = 0;
|
|
575
|
-
this._max = 1;
|
|
576
|
-
this._step = 0.01;
|
|
577
|
-
this._keydownListener = (evt) => this._onKeydown(evt);
|
|
578
|
-
this._downListener = (evt) => this._onDown(evt);
|
|
579
|
-
this._moveListener = (evt) => this._onMove(evt);
|
|
580
|
-
this._upListener = (evt) => this._onUp(evt);
|
|
581
|
-
this._initialize();
|
|
582
|
-
}
|
|
583
|
-
destroy() {
|
|
584
|
-
this._unlisten();
|
|
585
|
-
}
|
|
586
|
-
setValue(value) {
|
|
587
|
-
this._percent = value;
|
|
588
|
-
this._setThumbPosition(this._percent);
|
|
589
|
-
}
|
|
590
|
-
_initialize() {
|
|
591
|
-
this._thumbElement = this._rootElement.querySelector(COLOR_PICKER_CONSTANTS.selectors.SLIDER_THUMB);
|
|
592
|
-
this._listen();
|
|
593
|
-
this._setThumbPosition(this._percent);
|
|
594
|
-
}
|
|
595
|
-
_listen() {
|
|
596
|
-
this._thumbElement.addEventListener("keydown", this._keydownListener);
|
|
597
|
-
this._rootElement.addEventListener("mousedown", this._downListener);
|
|
598
|
-
this._rootElement.addEventListener("touchstart", this._downListener);
|
|
599
|
-
}
|
|
600
|
-
_unlisten() {
|
|
601
|
-
this._thumbElement.removeEventListener("keydown", this._keydownListener);
|
|
602
|
-
this._rootElement.removeEventListener("mousedown", this._downListener);
|
|
603
|
-
this._rootElement.removeEventListener("touchstart", this._downListener);
|
|
604
|
-
document.removeEventListener("mousemove", this._moveListener);
|
|
605
|
-
document.removeEventListener("touchmove", this._moveListener);
|
|
606
|
-
document.removeEventListener("mouseup", this._upListener);
|
|
607
|
-
document.removeEventListener("touchend", this._upListener);
|
|
608
|
-
}
|
|
609
|
-
_onKeydown(evt) {
|
|
610
|
-
const isArrowLeftKey = evt.key === "ArrowLeft" || evt.keyCode === 37;
|
|
611
|
-
const isArrowRightKey = evt.key === "ArrowRight" || evt.keyCode === 39;
|
|
612
|
-
const isHomeKey = evt.key === "Home" || evt.keyCode === 36;
|
|
613
|
-
const isEndKey = evt.key === "End" || evt.keyCode === 35;
|
|
614
|
-
if (isArrowLeftKey) {
|
|
615
|
-
evt.preventDefault();
|
|
616
|
-
this._percent -= this._step;
|
|
617
|
-
} else if (isArrowRightKey) {
|
|
618
|
-
evt.preventDefault();
|
|
619
|
-
this._percent += this._step;
|
|
620
|
-
} else if (isHomeKey) {
|
|
621
|
-
evt.preventDefault();
|
|
622
|
-
this._percent = this._min;
|
|
623
|
-
} else if (isEndKey) {
|
|
624
|
-
evt.preventDefault();
|
|
625
|
-
this._percent = this._max;
|
|
626
|
-
}
|
|
627
|
-
if (this._percent < this._min) {
|
|
628
|
-
this._percent = this._min;
|
|
629
|
-
} else if (this._percent > this._max) {
|
|
630
|
-
this._percent = this._max;
|
|
631
|
-
}
|
|
632
|
-
this._setThumbPosition(this._percent);
|
|
633
|
-
this._notify();
|
|
634
|
-
}
|
|
635
|
-
_onDown(evt) {
|
|
636
|
-
evt.preventDefault();
|
|
637
|
-
document.addEventListener("mousemove", this._moveListener);
|
|
638
|
-
document.addEventListener("touchmove", this._moveListener);
|
|
639
|
-
document.addEventListener("mouseup", this._upListener);
|
|
640
|
-
document.addEventListener("touchend", this._upListener);
|
|
641
|
-
this._updateThumbPosition(evt);
|
|
642
|
-
}
|
|
643
|
-
_onMove(evt) {
|
|
644
|
-
evt.preventDefault();
|
|
645
|
-
this._thumbElement.classList.add(COLOR_PICKER_CONSTANTS.classes.SLIDER_THUMB_ACTIVE);
|
|
646
|
-
this._updateThumbPosition(evt);
|
|
647
|
-
}
|
|
648
|
-
_onUp(evt) {
|
|
649
|
-
this._thumbElement.classList.remove(COLOR_PICKER_CONSTANTS.classes.SLIDER_THUMB_ACTIVE);
|
|
650
|
-
document.removeEventListener("mousemove", this._moveListener);
|
|
651
|
-
document.removeEventListener("touchmove", this._moveListener);
|
|
652
|
-
document.removeEventListener("mouseup", this._upListener);
|
|
653
|
-
document.removeEventListener("touchend", this._upListener);
|
|
654
|
-
this._updateThumbPosition(evt);
|
|
655
|
-
this._thumbElement.focus();
|
|
656
|
-
}
|
|
657
|
-
_updateThumbPosition(evt) {
|
|
658
|
-
const x = /^mouse/.test(evt.type) ? evt.clientX : evt.changedTouches[0].clientX;
|
|
659
|
-
this._percent = this._calculateSliderPercent(x);
|
|
660
|
-
this._setThumbPosition(this._percent);
|
|
661
|
-
this._notify();
|
|
662
|
-
}
|
|
663
|
-
_calculateSliderPercent(absX) {
|
|
664
|
-
const coords = relativeCoords(absX, 0, this._rootElement);
|
|
665
|
-
return parseFloat((coords.x / coords.width).toFixed(2));
|
|
666
|
-
}
|
|
667
|
-
_setThumbPosition(percent) {
|
|
668
|
-
this._thumbElement.style.left = `${percent * 100}%`;
|
|
669
|
-
}
|
|
670
|
-
_notify() {
|
|
671
|
-
if (typeof this._changeListener === "function") {
|
|
672
|
-
this._changeListener(this._percent);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
};
|
|
676
|
-
|
|
677
|
-
// dist/build/lib/staging/src/color-picker/color-picker-foundation.ts
|
|
678
|
-
var ColorPickerFoundation = class {
|
|
679
|
-
constructor(_adapter) {
|
|
680
|
-
this._adapter = _adapter;
|
|
681
|
-
this._value = null;
|
|
682
|
-
this._allowOpacity = true;
|
|
683
|
-
this._hex = DEFAULT_COLOR;
|
|
684
|
-
this._hsva = { h: 0, s: 0, v: 0, a: 1 };
|
|
685
|
-
this._rgba = { r: 0, g: 0, b: 0, a: 1 };
|
|
686
|
-
this._debounceChangeEvent = false;
|
|
687
|
-
this._valueType = "hex" /* HEX */;
|
|
688
|
-
this._gradientSliderChangedListener = (x, y) => this._onGradientSliderChanged(x, y);
|
|
689
|
-
this._hueSliderChangedListener = (value) => this._onHueSliderChanged(value);
|
|
690
|
-
this._opacitySliderChangedListener = (value) => this._onOpacitySliderChanged(value);
|
|
691
|
-
this._typeClickListener = (evt) => this._onTypeClicked(evt);
|
|
692
|
-
this._hexInputChangedListener = (evt) => this._onHexInputChanged();
|
|
693
|
-
this._rgbaInputChangedListener = (evt) => this._onRgbaInputChanged();
|
|
694
|
-
this._hsvaInputChangedListener = (evt) => this._onHsvaInputChanged();
|
|
695
|
-
}
|
|
696
|
-
initialize() {
|
|
697
|
-
this._applyChangeEventTrigger();
|
|
698
|
-
this._adapter.setTypeClickListener(this._typeClickListener);
|
|
699
|
-
this._adapter.setHexInputListener("input", this._hexInputChangedListener);
|
|
700
|
-
this._adapter.setRgbaInputListener("input", this._rgbaInputChangedListener);
|
|
701
|
-
this._adapter.setHsvaInputListener("input", this._hsvaInputChangedListener);
|
|
702
|
-
this._gradientSlider = new ColorPickerGradientSlider(this._adapter.getGradientElement(), this._gradientSliderChangedListener);
|
|
703
|
-
this._hueSlider = new ColorPickerSlider(this._adapter.getHueSliderElement(), this._hueSliderChangedListener);
|
|
704
|
-
this._opacitySlider = new ColorPickerSlider(this._adapter.getOpacitySliderElement(), this._opacitySliderChangedListener);
|
|
705
|
-
this._initializeOpacity();
|
|
706
|
-
this._setColorFromHex();
|
|
707
|
-
this._adapter.setActiveValueType(this._valueType);
|
|
708
|
-
}
|
|
709
|
-
disconnect() {
|
|
710
|
-
this._adapter.removeTypeClickListener(this._typeClickListener);
|
|
711
|
-
this._adapter.removeHexInputListener("input", this._hexInputChangedListener);
|
|
712
|
-
this._adapter.removeRgbaInputListener("input", this._hexInputChangedListener);
|
|
713
|
-
this._adapter.removeHsvaInputListener("input", this._hexInputChangedListener);
|
|
714
|
-
this._gradientSlider.destroy();
|
|
715
|
-
this._hueSlider.destroy();
|
|
716
|
-
this._opacitySlider.destroy();
|
|
717
|
-
}
|
|
718
|
-
_applyChangeEventTrigger() {
|
|
719
|
-
if (this._debounceChangeEvent) {
|
|
720
|
-
this._triggerChangeEvent = debounce((type, source) => {
|
|
721
|
-
this._emitChangeEvent(type, source);
|
|
722
|
-
}, COLOR_PICKER_CONSTANTS.numbers.CHANGE_EVENT_DEBOUNCE_THRESHOLD, false);
|
|
723
|
-
} else {
|
|
724
|
-
this._triggerChangeEvent = (type, source) => this._emitChangeEvent(type, source);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
_initializeOpacity() {
|
|
728
|
-
this._hsva.a = 1;
|
|
729
|
-
this._adapter.toggleOpacityControls(this._allowOpacity);
|
|
730
|
-
this._render();
|
|
731
|
-
}
|
|
732
|
-
_onTypeClicked(evt) {
|
|
733
|
-
if (this._valueType === "hex" /* HEX */) {
|
|
734
|
-
this._valueType = "rgba" /* RGBA */;
|
|
735
|
-
} else if (this._valueType === "rgba" /* RGBA */) {
|
|
736
|
-
this._valueType = "hsva" /* HSVA */;
|
|
737
|
-
} else if (this._valueType === "hsva" /* HSVA */) {
|
|
738
|
-
this._valueType = "hex" /* HEX */;
|
|
739
|
-
}
|
|
740
|
-
this._adapter.setActiveValueType(this._valueType);
|
|
741
|
-
this._adapter.focusValueInput(this._valueType);
|
|
742
|
-
}
|
|
743
|
-
_onHexInputChanged() {
|
|
744
|
-
const value = this._adapter.getHexInputValue();
|
|
745
|
-
if (isValidHex(value)) {
|
|
746
|
-
this.value = value;
|
|
747
|
-
this._triggerChangeEvent("input", "hex");
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
_onRgbaInputChanged() {
|
|
751
|
-
const value = this._adapter.getRgbaInputValue();
|
|
752
|
-
if (isValidRGBA(value)) {
|
|
753
|
-
this.value = rgbaToHex(value);
|
|
754
|
-
this._triggerChangeEvent("input", "rgba");
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
_onHsvaInputChanged() {
|
|
758
|
-
const value = this._adapter.getHsvaInputValue();
|
|
759
|
-
if (isValidHSVA(value)) {
|
|
760
|
-
this.value = rgbaToHex(hsvaToRgba(value));
|
|
761
|
-
this._triggerChangeEvent("input", "hsva");
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
_setColorFromHex() {
|
|
765
|
-
this._rgba = hexToRgba(this._hex);
|
|
766
|
-
this._hsva = rgbaToHsva(this._rgba);
|
|
767
|
-
this._gradientSlider.setValue(this._hsva.s, this._hsva.v);
|
|
768
|
-
this._hueSlider.setValue(parseFloat((this._hsva.h / 360).toFixed(2)));
|
|
769
|
-
this._opacitySlider.setValue(this._hsva.a);
|
|
770
|
-
this._render();
|
|
771
|
-
}
|
|
772
|
-
_onGradientSliderChanged(x, y) {
|
|
773
|
-
this._hsva.s = x;
|
|
774
|
-
this._hsva.v = y;
|
|
775
|
-
this._syncColors();
|
|
776
|
-
this._render();
|
|
777
|
-
this._triggerChangeEvent("slider", "gradient");
|
|
778
|
-
}
|
|
779
|
-
_onHueSliderChanged(value) {
|
|
780
|
-
this._hsva.h = parseInt((360 * value).toString(), 10);
|
|
781
|
-
this._syncColors();
|
|
782
|
-
this._setGradientColor();
|
|
783
|
-
this._render();
|
|
784
|
-
this._triggerChangeEvent("slider", "hue");
|
|
785
|
-
}
|
|
786
|
-
_onOpacitySliderChanged(value) {
|
|
787
|
-
this._hsva.a = value;
|
|
788
|
-
this._syncColors();
|
|
789
|
-
this._render();
|
|
790
|
-
this._triggerChangeEvent("slider", "opacity");
|
|
791
|
-
}
|
|
792
|
-
_setGradientColor() {
|
|
793
|
-
const rgba = hsvaToRgba({ h: this._hsva.h, s: 100, v: 100, a: 1 });
|
|
794
|
-
this._adapter.setGradientColor(`rgb(${rgba.r}, ${rgba.g}, ${rgba.b})`);
|
|
795
|
-
}
|
|
796
|
-
_syncColors() {
|
|
797
|
-
this._rgba = hsvaToRgba(this._hsva);
|
|
798
|
-
this._hex = rgbaToHex(this._rgba);
|
|
799
|
-
this._value = this._hex || null;
|
|
800
|
-
}
|
|
801
|
-
_render() {
|
|
802
|
-
this._setGradientColor();
|
|
803
|
-
this._adapter.setPreviewColor(formatRgba(this._rgba));
|
|
804
|
-
this._adapter.setHexInputValue(this._getFormattedHex());
|
|
805
|
-
this._adapter.setRgbaInputValue(this._rgba);
|
|
806
|
-
this._adapter.setHsvaInputValue(this._hsva);
|
|
807
|
-
this._adapter.updateA11y(this._hsva.h, Math.round(this._hsva.a * 100));
|
|
808
|
-
}
|
|
809
|
-
_getFormattedHex() {
|
|
810
|
-
return formatHex(this._hex, false);
|
|
811
|
-
}
|
|
812
|
-
_emitChangeEvent(type, source) {
|
|
813
|
-
const data = {
|
|
814
|
-
type,
|
|
815
|
-
source,
|
|
816
|
-
hex: formatHex(this._hex, false).replace(/^#/, ""),
|
|
817
|
-
rgba: this._rgba,
|
|
818
|
-
hsva: this._hsva
|
|
819
|
-
};
|
|
820
|
-
if (this._allowOpacity) {
|
|
821
|
-
data.alpha = this._hsva.a;
|
|
822
|
-
}
|
|
823
|
-
this._adapter.emitHostEvent(COLOR_PICKER_CONSTANTS.events.CHANGE, data);
|
|
824
|
-
}
|
|
825
|
-
get value() {
|
|
826
|
-
return this._getFormattedHex();
|
|
827
|
-
}
|
|
828
|
-
set value(value) {
|
|
829
|
-
if (this._value !== value) {
|
|
830
|
-
this._value = value || DEFAULT_COLOR;
|
|
831
|
-
if (!isValidHex(this._value)) {
|
|
832
|
-
throw new Error("Invalid hex value provided.");
|
|
833
|
-
}
|
|
834
|
-
this._hex = this._value.replace(/^#/, "");
|
|
835
|
-
this._setColorFromHex();
|
|
836
|
-
this._adapter.setHostAttribute(COLOR_PICKER_CONSTANTS.attributes.VALUE, this._value);
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
get rgba() {
|
|
840
|
-
return !!this._rgba ? __spreadValues({}, this._rgba) : null;
|
|
841
|
-
}
|
|
842
|
-
set rgba(value) {
|
|
843
|
-
if (value) {
|
|
844
|
-
if (isValidRGBA(value)) {
|
|
845
|
-
this.value = rgbaToHex(value);
|
|
846
|
-
}
|
|
847
|
-
} else {
|
|
848
|
-
this.value = null;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
get hsva() {
|
|
852
|
-
return !!this._hsva ? __spreadValues({}, this._hsva) : null;
|
|
853
|
-
}
|
|
854
|
-
set hsva(value) {
|
|
855
|
-
if (value) {
|
|
856
|
-
if (isValidHSVA(value)) {
|
|
857
|
-
this.value = rgbaToHex(hsvaToRgba(value));
|
|
858
|
-
}
|
|
859
|
-
} else {
|
|
860
|
-
this.value = null;
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
get opacity() {
|
|
864
|
-
return this._hsva ? this._hsva.a : null;
|
|
865
|
-
}
|
|
866
|
-
set opacity(value) {
|
|
867
|
-
if (this._hsva.a !== value) {
|
|
868
|
-
if (value !== null && value !== void 0 && this._allowOpacity) {
|
|
869
|
-
if (value >= 0 && value <= 1) {
|
|
870
|
-
this._hsva.a = value;
|
|
871
|
-
this._opacitySlider.setValue(this._hsva.a);
|
|
872
|
-
this._syncColors();
|
|
873
|
-
this._render();
|
|
874
|
-
} else {
|
|
875
|
-
console.warn(`The provided opacity value (${value}) must be between 0 and 1.`);
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
get allowOpacity() {
|
|
881
|
-
return this._allowOpacity;
|
|
882
|
-
}
|
|
883
|
-
set allowOpacity(value) {
|
|
884
|
-
this._allowOpacity = value;
|
|
885
|
-
this._initializeOpacity();
|
|
886
|
-
}
|
|
887
|
-
get debounceChangeEvent() {
|
|
888
|
-
return this._debounceChangeEvent;
|
|
889
|
-
}
|
|
890
|
-
set debounceChangeEvent(value) {
|
|
891
|
-
if (this._debounceChangeEvent !== value) {
|
|
892
|
-
this._debounceChangeEvent = value;
|
|
893
|
-
this._applyChangeEventTrigger();
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
};
|
|
897
|
-
|
|
898
|
-
// dist/build/lib/staging/src/color-picker/color-picker.ts
|
|
899
|
-
var template = '<template><div class="forge-color-picker" part="root"><input type="color" tabindex="-1" class="forge-color-picker__input" spellcheck="false" autocomplete="off" aria-label="Color picker value" part="input"><div class="forge-color-picker__container" part="container"><div class="forge-color-picker__gradient" tabindex="0" part="gradient"><div class="forge-color-picker__gradient-color" part="gradient-color"></div><div class="forge-color-picker__gradient-thumb" part="gradient-thumb"></div></div><div class="forge-color-picker__control-preview" part="controls-preview-container"><div class="forge-color-picker__controls" part="controls-container"><div class="forge-color-picker__slider-control" part="hue-control-container"><div class="forge-color-picker__slider forge-color-picker__hue-slider" part="hue-control-slider"><div class="forge-color-picker__slider-thumb" id="forge-color-picker-hue-thumb" part="hue-control-slider-thumb" tabindex="0" role="slider" aria-label="Change hue" aria-valuemin="0" aria-valuemax="360" aria-valuenow="0" aria-orientation="horizontal" aria-valuetext="0"></div></div></div><div class="forge-color-picker__slider-control" part="opacity-control-container"><div class="forge-color-picker__canvas" part="opacity-control-canvas"><div class="forge-color-picker__slider forge-color-picker__opacity-slider" part="opacity-control-slider"><div class="forge-color-picker__slider-thumb" id="forge-color-picker-opacity-thumb" part="opacity-control-slider-thumb" tabindex="0" role="slider" aria-label="Change opacity" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" aria-orientation="horizontal" aria-valuetext="0"></div></div></div></div></div><div class="forge-color-picker__color-preview-container forge-color-picker__canvas" part="color-preview-container"><div class="forge-color-picker__color-preview" part="color-preview"></div></div></div><div class="forge-color-picker__value" part="value-container"><div class="forge-color-picker__color-types" part="types-container"><div class="forge-color-picker__color-hex" part="hex-type-container"><div part="hex-type-label-wrapper"><label for="forge-color-picker-hex-input" part="hex-label">HEX</label></div><input type="text" id="forge-color-picker-hex-input" part="hex-input" style="width: 88px;" maxlength="9" spellcheck="false" autocomplete="off" aria-label="HEX value"></div><div class="forge-color-picker__color-rgba" part="rgba-type-container"><div part="rgba-type-wrapper-r"><label for="forge-color-picker-rgba-r-input" part="rgba-type-label-r">R</label> <input type="number" id="forge-color-picker-rgba-r-input" part="rgba-type-input-r" min="0" max="255" maxlength="3" autocomplete="off" aria-label="Red"></div><div part="rgba-type-wrapper-g"><label for="forge-color-picker-rgba-g-input" part="rgba-type-label-g">G</label> <input type="number" id="forge-color-picker-rgba-g-input" part="rgba-type-input-g" min="0" max="255" maxlength="3" autocomplete="off" aria-label="Green"></div><div part="rgba-type-wrapper-b"><label for="forge-color-picker-rgba-b-input" part="rgba-type-label-b">B</label> <input type="number" id="forge-color-picker-rgba-b-input" part="rgba-type-input-b" min="0" max="255" maxlength="3" autocomplete="off" aria-label="Blue"></div><div part="rgba-type-wrapper-a"><label for="forge-color-picker-rgba-a-input" part="rgba-type-label-a">A</label> <input type="number" id="forge-color-picker-rgba-a-input" part="rgba-type-input-a" min="0" max="1" step="0.1" maxlength="3" autocomplete="off" aria-label="Alpha"></div></div><div class="forge-color-picker__color-hsva" part="hsva-type-container"><div part="hsva-type-wrapper-h"><label for="forge-color-picker-hsva-h-input" part="hsva-type-label-h">H</label> <input type="number" id="forge-color-picker-hsva-h-input" part="hsva-type-input-h" min="0" max="360" maxlength="3" autocomplete="off" aria-label="Hue"></div><div part="hsva-type-wrapper-s"><label for="forge-color-picker-hsva-s-input" part="hsva-type-label-s">S</label> <input type="number" id="forge-color-picker-hsva-s-input" part="hsva-type-input-s" min="0" max="100" maxlength="3" autocomplete="off" aria-label="Saturation"></div><div part="hsva-type-wrapper-v"><label for="forge-color-picker-hsva-v-input" part="hsva-type-label-v">V</label> <input type="number" id="forge-color-picker-hsva-v-input" part="hsva-type-input-v" min="0" max="100" maxlength="3" autocomplete="off" aria-label="Value"></div><div part="hsva-type-wrapper-a"><label for="forge-color-picker-hsva-a-input" part="hsva-type-label-a">A</label> <input type="number" id="forge-color-picker-hsva-a-input" part="hsva-type-input-a" min="0" max="1" step="0.1" maxlength="3" autocomplete="off" aria-label="Alpha"></div></div></div><div class="forge-color-picker__type-button" part="type-container"><forge-icon-button part="type-button"><button type="button" id="forge-color-picker-type-button" aria-labelledby="type-button-tooltip" part="type-button-element"><forge-icon name="unfold_more" part="type-button-icon"></forge-icon></button><forge-tooltip delay="500" position="bottom" id="type-button-tooltip">Change color format</forge-tooltip></forge-icon-button></div></div></div></div></template>';
|
|
900
|
-
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)}*{-webkit-box-sizing:border-box;box-sizing:border-box}.forge-color-picker{width:272px;width:var(--forge-color-picker-width,272px);position:relative;display:inline-block;overflow:hidden}.forge-color-picker__input{height:1px;opacity:0;position:absolute;width:1px}.forge-color-picker__gradient{position:relative;outline:0}.forge-color-picker__gradient-color{background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(0,0,0,0)),to(#000)),-webkit-gradient(linear,left top,right top,color-stop(0,#fff),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,rgba(0,0,0,0) 0,#000 100%),linear-gradient(to right,#fff 0,rgba(255,255,255,0) 100%);height:152px}.forge-color-picker__gradient-thumb{border:1px solid #fff;border-radius:50%;cursor:pointer;display:inline-block;height:10px;width:10px;margin-left:-5px;margin-top:-5px;position:absolute;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:left .2s cubic-bezier(.25, .8, .25, 1) 0s,top .2s cubic-bezier(.25, .8, .25, 1) 0s;transition:left .2s cubic-bezier(.25, .8, .25, 1) 0s,top .2s cubic-bezier(.25, .8, .25, 1) 0s}.forge-color-picker__control-preview{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;width:100%;padding:16px}.forge-color-picker__controls{-webkit-box-flex:1;flex:1;margin-right:16px}.forge-color-picker__slider{position:relative}.forge-color-picker__slider-thumb{outline:0;height:16px;width:16px;background-color:#fff;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.3);box-shadow:0 1px 2px rgba(0,0,0,.3);position:absolute;border-radius:50%;top:calc(50% - 8px);margin-left:-8px;-webkit-transition:left .4s cubic-bezier(.25, .8, .25, 1);transition:left .4s cubic-bezier(.25, .8, .25, 1)}.forge-color-picker__slider-thumb--active{-webkit-transition:none;transition:none}.forge-color-picker__slider-thumb:hover{cursor:pointer}.forge-color-picker__color-preview-container{border-radius:50%;-webkit-box-shadow:0 0 2px 0 rgba(0,0,0,.54) inset,0 0 2px 0 rgba(0,0,0,.54);box-shadow:0 0 2px 0 rgba(0,0,0,.54) inset,0 0 2px 0 rgba(0,0,0,.54);overflow:hidden}.forge-color-picker__color-preview{height:32px;width:32px;-webkit-transition:background-color .2s cubic-bezier(.25, .8, .25, 1);transition:background-color .2s cubic-bezier(.25, .8, .25, 1)}.forge-color-picker__value{display:-webkit-box;display:flex;width:100%;-webkit-box-align:center;align-items:center;padding:0 8px 16px 16px;font-size:12px}.forge-color-picker__color-types{-webkit-box-flex:1;flex:1}.forge-color-picker__color-types label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-light,rgba(0,0,0,.54))}.forge-color-picker__color-types input{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit)}.forge-color-picker__color-types input[type=number],.forge-color-picker__color-types input[type=text]{color:#000;color:var(--mdc-theme-on-surface,#000);border-color:#e0e0e0;border-color:var(--forge-theme-border-color,#e0e0e0);background-color:transparent;padding:4px 8px;border-width:1px;border-style:solid;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;-webkit-transition:border-color .2s 0s cubic-bezier(0, 0, .2, 1),-webkit-box-shadow .2s 0s cubic-bezier(0, 0, .2, 1);transition:border-color .2s 0s cubic-bezier(0, 0, .2, 1),-webkit-box-shadow .2s 0s cubic-bezier(0, 0, .2, 1);transition:box-shadow .2s 0s cubic-bezier(0, 0, .2, 1),border-color .2s 0s cubic-bezier(0, 0, .2, 1);transition:box-shadow .2s 0s cubic-bezier(0, 0, .2, 1),border-color .2s 0s cubic-bezier(0, 0, .2, 1),-webkit-box-shadow .2s 0s cubic-bezier(0, 0, .2, 1)}.forge-color-picker__color-types input[type=number]:hover,.forge-color-picker__color-types input[type=text]:hover{border-color:rgba(0,0,0,.87);border-color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}.forge-color-picker__color-types input[type=number]:focus,.forge-color-picker__color-types input[type=text]:focus{border-color:#3f51b5;border-color:var(--mdc-theme-primary,#3f51b5);-webkit-box-shadow:0 0 0 1px inset #3f51b5;box-shadow:0 0 0 1px inset #3f51b5;-webkit-box-shadow:0 0 0 1px inset var(--mdc-theme-primary,#3f51b5);box-shadow:0 0 0 1px inset var(--mdc-theme-primary,#3f51b5)}.forge-color-picker__color-types input[type=number]{text-align:center;-moz-appearance:textfield}.forge-color-picker__color-types input[type=number]::-webkit-inner-spin-button,.forge-color-picker__color-types input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.forge-color-picker__color-hex{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-pack:center;justify-content:center;-webkit-box-align:space-between;align-items:space-between}.forge-color-picker__canvas{background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNnB4IiBoZWlnaHQ9IjZweCIgdmlld0JveD0iMCAwIDYgNiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggNTAgKDU0OTgzKSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5Hcm91cCA5PC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGRlZnM+PC9kZWZzPgogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9Ikdyb3VwLTkiPgogICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTExIiBmaWxsPSIjRTBFMEUwIiB4PSIwIiB5PSIwIiB3aWR0aD0iMyIgaGVpZ2h0PSIzIj48L3JlY3Q+CiAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMTEtQ29weS0yIiBmaWxsPSIjRkZGRkZGIiB4PSIwIiB5PSIzIiB3aWR0aD0iMyIgaGVpZ2h0PSIzIj48L3JlY3Q+CiAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMTEtQ29weSIgZmlsbD0iI0ZGRkZGRiIgeD0iMyIgeT0iMCIgd2lkdGg9IjMiIGhlaWdodD0iMyI+PC9yZWN0PgogICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTExLUNvcHktMyIgZmlsbD0iI0UwRTBFMCIgeD0iMyIgeT0iMyIgd2lkdGg9IjMiIGhlaWdodD0iMyI+PC9yZWN0PgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+")}.forge-color-picker__hue-slider{height:8px;background:-webkit-gradient(linear,left top,right top,color-stop(0,red),color-stop(16%,#ff0),color-stop(33%,#0f0),color-stop(50%,#0ff),color-stop(67%,#00f),color-stop(84%,#f0f),to(#ff0004));background:linear-gradient(to right,red 0,#ff0 16%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 84%,#ff0004 100%)}.forge-color-picker__opacity-slider{height:8px;margin-top:16px;background:-webkit-gradient(linear,left top,right top,from(rgba(255,0,0,0)),to(red));background:linear-gradient(to right,rgba(255,0,0,0) 0,red 100%)}.forge-color-picker__color-hsva,.forge-color-picker__color-rgba{display:-webkit-box;display:flex}.forge-color-picker__color-hsva div,.forge-color-picker__color-rgba div{margin-right:4px}.forge-color-picker__color-hsva label,.forge-color-picker__color-rgba label{display:block;text-align:center}.forge-color-picker__color-hsva input,.forge-color-picker__color-rgba input{width:44px}:host{display:inline-block}:host([hidden]){display:none}';
|
|
901
|
-
var ColorPickerComponent = class extends BaseComponent {
|
|
902
|
-
constructor() {
|
|
903
|
-
super();
|
|
904
|
-
IconRegistry.define(tylIconUnfoldMore);
|
|
905
|
-
attachShadowTemplate(this, template, styles);
|
|
906
|
-
this._foundation = new ColorPickerFoundation(new ColorPickerAdapter(this));
|
|
907
|
-
}
|
|
908
|
-
static get observedAttributes() {
|
|
909
|
-
return [
|
|
910
|
-
COLOR_PICKER_CONSTANTS.attributes.VALUE,
|
|
911
|
-
COLOR_PICKER_CONSTANTS.attributes.ALLOW_OPACITY,
|
|
912
|
-
COLOR_PICKER_CONSTANTS.attributes.DEBOUNCE_CHANGE_EVENT
|
|
913
|
-
];
|
|
914
|
-
}
|
|
915
|
-
connectedCallback() {
|
|
916
|
-
this._foundation.initialize();
|
|
917
|
-
}
|
|
918
|
-
disconnectedCallback() {
|
|
919
|
-
this._foundation.disconnect();
|
|
920
|
-
}
|
|
921
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
922
|
-
switch (name) {
|
|
923
|
-
case COLOR_PICKER_CONSTANTS.attributes.VALUE:
|
|
924
|
-
this.value = newValue;
|
|
925
|
-
break;
|
|
926
|
-
case COLOR_PICKER_CONSTANTS.attributes.ALLOW_OPACITY:
|
|
927
|
-
this.allowOpacity = coerceBoolean(newValue);
|
|
928
|
-
break;
|
|
929
|
-
case COLOR_PICKER_CONSTANTS.attributes.DEBOUNCE_CHANGE_EVENT:
|
|
930
|
-
this.debounceChangeEvent = coerceBoolean(newValue);
|
|
931
|
-
break;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
};
|
|
935
|
-
__decorateClass([
|
|
936
|
-
FoundationProperty()
|
|
937
|
-
], ColorPickerComponent.prototype, "value", 2);
|
|
938
|
-
__decorateClass([
|
|
939
|
-
FoundationProperty()
|
|
940
|
-
], ColorPickerComponent.prototype, "rgba", 2);
|
|
941
|
-
__decorateClass([
|
|
942
|
-
FoundationProperty()
|
|
943
|
-
], ColorPickerComponent.prototype, "hsva", 2);
|
|
944
|
-
__decorateClass([
|
|
945
|
-
FoundationProperty()
|
|
946
|
-
], ColorPickerComponent.prototype, "opacity", 2);
|
|
947
|
-
__decorateClass([
|
|
948
|
-
FoundationProperty()
|
|
949
|
-
], ColorPickerComponent.prototype, "allowOpacity", 2);
|
|
950
|
-
__decorateClass([
|
|
951
|
-
FoundationProperty()
|
|
952
|
-
], ColorPickerComponent.prototype, "debounceChangeEvent", 2);
|
|
953
|
-
ColorPickerComponent = __decorateClass([
|
|
954
|
-
CustomElement({
|
|
955
|
-
name: COLOR_PICKER_CONSTANTS.elementName,
|
|
956
|
-
dependencies: [
|
|
957
|
-
IconButtonComponent,
|
|
958
|
-
TooltipComponent,
|
|
959
|
-
IconComponent
|
|
960
|
-
]
|
|
961
|
-
})
|
|
962
|
-
], ColorPickerComponent);
|
|
963
|
-
|
|
964
|
-
// dist/build/lib/staging/src/color-picker/index.ts
|
|
965
|
-
function defineColorPickerComponent() {
|
|
966
|
-
defineCustomElement(ColorPickerComponent);
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
export {
|
|
970
|
-
COLOR_PICKER_CONSTANTS,
|
|
971
|
-
DEFAULT_COLOR,
|
|
972
|
-
ColorPickerValueType,
|
|
973
|
-
ColorPickerAdapter,
|
|
974
|
-
ColorPickerFoundation,
|
|
975
|
-
ColorPickerComponent,
|
|
976
|
-
defineColorPickerComponent
|
|
977
|
-
};
|
|
978
|
-
//# sourceMappingURL=chunk.VXAPRFMK.js.map
|