@tylertech/forge 3.0.0-next.19 → 3.0.0-next.20
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 +33314 -31340
- package/dist/esm/accordion/index.js +1 -1
- package/dist/esm/app-bar/app-bar/index.js +1 -1
- package/dist/esm/app-bar/help-button/index.js +1 -1
- package/dist/esm/app-bar/index.js +1 -1
- package/dist/esm/app-bar/menu-button/index.js +1 -1
- package/dist/esm/app-bar/notification-button/index.js +1 -1
- package/dist/esm/app-bar/profile-button/index.js +1 -1
- package/dist/esm/app-bar/search/index.js +1 -1
- package/dist/esm/autocomplete/index.js +1 -1
- package/dist/esm/avatar/index.js +1 -1
- package/dist/esm/backdrop/index.js +1 -1
- package/dist/esm/badge/index.js +1 -1
- package/dist/esm/banner/index.js +1 -1
- package/dist/esm/bottom-sheet/index.js +1 -1
- package/dist/esm/busy-indicator/index.js +1 -1
- package/dist/esm/button/index.js +1 -1
- package/dist/esm/button-area/index.js +1 -1
- package/dist/esm/button-toggle/button-toggle/index.js +1 -1
- package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
- package/dist/esm/button-toggle/index.js +1 -1
- package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
- package/dist/esm/calendar/calendar-menu/index.js +1 -1
- package/dist/esm/calendar/index.js +1 -1
- package/dist/esm/card/index.js +1 -1
- package/dist/esm/checkbox/index.js +1 -1
- package/dist/esm/chip-field/index.js +1 -1
- package/dist/esm/chips/chip/index.js +1 -1
- package/dist/esm/chips/chip-set/index.js +1 -1
- package/dist/esm/chips/index.js +1 -1
- package/dist/esm/chunks/{chunk.WJ26N3FC.js → chunk.22C7GQLX.js} +2 -2
- package/dist/esm/chunks/{chunk.CPD4RUF2.js → chunk.24MZM3AY.js} +2 -2
- package/dist/esm/chunks/{chunk.O6WN2UP6.js → chunk.2537XOFQ.js} +2 -2
- package/dist/esm/chunks/{chunk.KZMXTOLO.js → chunk.2AM2BKEO.js} +2 -2
- package/dist/esm/chunks/chunk.2N5KNNQX.js +7 -0
- package/dist/esm/chunks/chunk.2N5KNNQX.js.map +7 -0
- package/dist/esm/chunks/chunk.2W276VOR.js +7 -0
- package/dist/esm/chunks/chunk.2W276VOR.js.map +7 -0
- package/dist/esm/chunks/{chunk.KD4DVSJR.js → chunk.2WRAXA3H.js} +2 -2
- package/dist/esm/chunks/{chunk.ZYYPOLIG.js → chunk.2XPAYTK4.js} +2 -2
- package/dist/esm/chunks/chunk.35MHQH7Z.js +7 -0
- package/dist/esm/chunks/chunk.35MHQH7Z.js.map +7 -0
- package/dist/esm/chunks/chunk.3L77JY5H.js +7 -0
- package/dist/esm/chunks/chunk.3TIBP6QT.js +7 -0
- package/dist/esm/chunks/chunk.3TIBP6QT.js.map +7 -0
- package/dist/esm/chunks/{chunk.W2W3NTFC.js → chunk.3U222LE4.js} +2 -2
- package/dist/esm/chunks/{chunk.W2W3NTFC.js.map → chunk.3U222LE4.js.map} +2 -2
- package/dist/esm/chunks/{chunk.JPOTN7LL.js → chunk.45PPQY45.js} +2 -2
- package/dist/esm/chunks/{chunk.JPOTN7LL.js.map → chunk.45PPQY45.js.map} +1 -1
- package/dist/esm/chunks/{chunk.MBXBM6UI.js → chunk.47U6GVGZ.js} +2 -2
- package/dist/esm/chunks/chunk.4AEQ7KVU.js +7 -0
- package/dist/esm/chunks/chunk.4AEQ7KVU.js.map +7 -0
- package/dist/esm/chunks/{chunk.KWP42KR7.js → chunk.4NABD6XG.js} +2 -2
- package/dist/esm/chunks/{chunk.KWP42KR7.js.map → chunk.4NABD6XG.js.map} +2 -2
- package/dist/esm/chunks/{chunk.WKLDPPHS.js → chunk.4UU6PWR2.js} +2 -2
- package/dist/esm/chunks/{chunk.WKLDPPHS.js.map → chunk.4UU6PWR2.js.map} +1 -1
- package/dist/esm/chunks/{chunk.UYAP5GFT.js → chunk.5A34DJLZ.js} +2 -2
- package/dist/esm/chunks/{chunk.GAHE4QVB.js → chunk.5S7XNYRQ.js} +2 -2
- package/dist/esm/chunks/chunk.66YURKP2.js +7 -0
- package/dist/esm/chunks/chunk.66YURKP2.js.map +7 -0
- package/dist/esm/chunks/chunk.6GSVB5NB.js +7 -0
- package/dist/esm/chunks/chunk.6GSVB5NB.js.map +7 -0
- package/dist/esm/chunks/{chunk.DOAQODLZ.js → chunk.6XLTVIUD.js} +2 -2
- package/dist/esm/chunks/{chunk.4YKLCBP2.js → chunk.7IJUN75W.js} +2 -2
- package/dist/esm/chunks/chunk.7UBIT4NP.js +7 -0
- package/dist/esm/chunks/chunk.7UBIT4NP.js.map +7 -0
- package/dist/esm/chunks/{chunk.66RZ2CUB.js → chunk.A4UH52SA.js} +2 -2
- package/dist/esm/chunks/chunk.AFJ7QEVI.js +7 -0
- package/dist/esm/chunks/chunk.AFJ7QEVI.js.map +7 -0
- package/dist/esm/chunks/{chunk.KIQZLNDG.js → chunk.AN2E2SSN.js} +2 -2
- package/dist/esm/chunks/{chunk.XH63INIK.js → chunk.AOSBUJWW.js} +2 -2
- package/dist/esm/chunks/chunk.BETICEYY.js +7 -0
- package/dist/esm/chunks/chunk.BETICEYY.js.map +7 -0
- package/dist/esm/chunks/chunk.BEUQVZKZ.js +7 -0
- package/dist/esm/chunks/chunk.BEUQVZKZ.js.map +7 -0
- package/dist/esm/chunks/chunk.BIQTNLIF.js +7 -0
- package/dist/esm/chunks/chunk.BIQTNLIF.js.map +7 -0
- package/dist/esm/chunks/{chunk.CLODJYSW.js → chunk.BSV27GU7.js} +2 -2
- package/dist/esm/chunks/{chunk.FOQH2SSU.js → chunk.CBLUXYH2.js} +2 -2
- package/dist/esm/chunks/{chunk.L7BSLZCB.js → chunk.CIUPY66Y.js} +2 -2
- package/dist/esm/chunks/chunk.CSCZRSDT.js +7 -0
- package/dist/esm/chunks/chunk.CSCZRSDT.js.map +7 -0
- package/dist/esm/chunks/{chunk.OUIWXKO2.js → chunk.CSOKFDFQ.js} +2 -2
- package/dist/esm/chunks/{chunk.4HZ6SNRV.js → chunk.CWBDPBYO.js} +2 -2
- package/dist/esm/chunks/{chunk.4HZ6SNRV.js.map → chunk.CWBDPBYO.js.map} +2 -2
- package/dist/esm/chunks/{chunk.E2FS4PJS.js → chunk.D7RH43XD.js} +2 -2
- package/dist/esm/chunks/{chunk.E2FS4PJS.js.map → chunk.D7RH43XD.js.map} +2 -2
- package/dist/esm/chunks/{chunk.HZUQXCOQ.js → chunk.DCCFF327.js} +2 -2
- package/dist/esm/chunks/{chunk.HZUQXCOQ.js.map → chunk.DCCFF327.js.map} +2 -2
- package/dist/esm/chunks/{chunk.YLJTJKN4.js → chunk.EO3HELQ2.js} +2 -2
- package/dist/esm/chunks/{chunk.YGXXWF52.js → chunk.FB4MXEIW.js} +2 -2
- package/dist/esm/chunks/{chunk.YGXXWF52.js.map → chunk.FB4MXEIW.js.map} +2 -2
- package/dist/esm/chunks/{chunk.RKG66YKS.js → chunk.FBDRM4YN.js} +2 -2
- package/dist/esm/chunks/{chunk.GAQ3POUT.js → chunk.FOSKVNVV.js} +2 -2
- package/dist/esm/chunks/{chunk.Z7JF5PPO.js → chunk.FRTSXX33.js} +2 -2
- package/dist/esm/chunks/{chunk.253H47GA.js → chunk.G2HRYIIZ.js} +2 -2
- package/dist/esm/chunks/chunk.G3GTO5ZC.js +7 -0
- package/dist/esm/chunks/chunk.G3GTO5ZC.js.map +7 -0
- package/dist/esm/chunks/{chunk.D7L2IMHJ.js → chunk.GA6AO6FJ.js} +2 -2
- package/dist/esm/chunks/{chunk.YOKBWEXF.js → chunk.GBGGUYTE.js} +2 -2
- package/dist/esm/chunks/{chunk.CISGGM56.js → chunk.GTKYO6VB.js} +2 -2
- package/dist/esm/chunks/{chunk.STIZCKQA.js → chunk.HBAC6E7O.js} +2 -2
- package/dist/esm/chunks/{chunk.WM6ZUVDR.js → chunk.IM36A2ZI.js} +2 -2
- package/dist/esm/chunks/{chunk.YHIHHGMQ.js → chunk.IWVAI6XM.js} +2 -2
- package/dist/esm/chunks/chunk.IZ63EJ32.js +7 -0
- package/dist/esm/chunks/{chunk.VN7JOJVU.js.map → chunk.IZ63EJ32.js.map} +1 -1
- package/dist/esm/chunks/{chunk.J5MWS2KZ.js → chunk.IZRURH7C.js} +2 -2
- package/dist/esm/chunks/chunk.JCEKCW4B.js +7 -0
- package/dist/esm/chunks/chunk.JCEKCW4B.js.map +7 -0
- package/dist/esm/chunks/{chunk.E7TIN4JS.js → chunk.JLSFTWPE.js} +2 -2
- package/dist/esm/chunks/{chunk.HP4333ZN.js → chunk.JSTCCUKZ.js} +2 -2
- package/dist/esm/chunks/chunk.JVWJHSPM.js +7 -0
- package/dist/esm/chunks/{chunk.JUXSSZ3B.js.map → chunk.JVWJHSPM.js.map} +1 -1
- package/dist/esm/chunks/chunk.KDUH2DUE.js +7 -0
- package/dist/esm/chunks/{chunk.54DNA2QP.js → chunk.KEFJZO5K.js} +2 -2
- package/dist/esm/chunks/{chunk.54DNA2QP.js.map → chunk.KEFJZO5K.js.map} +1 -1
- package/dist/esm/chunks/chunk.KRKKMTXR.js +7 -0
- package/dist/esm/chunks/chunk.KRKKMTXR.js.map +7 -0
- package/dist/esm/chunks/chunk.LGEZI5SZ.js +7 -0
- package/dist/esm/chunks/chunk.LGEZI5SZ.js.map +7 -0
- package/dist/esm/chunks/{chunk.M7RYU4HQ.js → chunk.LKA5HQQY.js} +2 -2
- package/dist/esm/chunks/{chunk.IC4DLKE3.js → chunk.MC3UAHWS.js} +2 -2
- package/dist/esm/chunks/chunk.MCR34SZQ.js +7 -0
- package/dist/esm/chunks/{chunk.5NHGVUVR.js.map → chunk.MCR34SZQ.js.map} +1 -1
- package/dist/esm/chunks/{chunk.B2RYZJGJ.js → chunk.MDDX4MJU.js} +2 -2
- package/dist/esm/chunks/{chunk.B2RYZJGJ.js.map → chunk.MDDX4MJU.js.map} +3 -3
- package/dist/esm/chunks/chunk.MPUP6QAP.js +7 -0
- package/dist/esm/chunks/chunk.MZRAL4MY.js +7 -0
- package/dist/esm/chunks/chunk.MZRAL4MY.js.map +7 -0
- package/dist/esm/chunks/{chunk.KPNGLSCU.js → chunk.N632SJ7X.js} +2 -2
- package/dist/esm/chunks/{chunk.WJLHVUHN.js → chunk.O56VP4OZ.js} +2 -2
- package/dist/esm/chunks/{chunk.ULZJYWM2.js → chunk.OFXSMOV6.js} +2 -2
- package/dist/esm/chunks/chunk.OT4AIOMN.js +7 -0
- package/dist/esm/chunks/chunk.OT4AIOMN.js.map +7 -0
- package/dist/esm/chunks/{chunk.SWDOKJUF.js → chunk.OY3TG55O.js} +2 -2
- package/dist/esm/chunks/chunk.PDDBNHVU.js +7 -0
- package/dist/esm/chunks/chunk.PDDBNHVU.js.map +7 -0
- package/dist/esm/chunks/{chunk.IO3A5OM6.js → chunk.PXRGQHWR.js} +2 -2
- package/dist/esm/chunks/chunk.QCRO5NSG.js +7 -0
- package/dist/esm/chunks/chunk.QCRO5NSG.js.map +7 -0
- package/dist/esm/chunks/chunk.QKYCMDLB.js +7 -0
- package/dist/esm/chunks/{chunk.WINWKU4K.js → chunk.QUWEAFGI.js} +2 -2
- package/dist/esm/chunks/{chunk.LNMQ5A25.js → chunk.R3AWIPPK.js} +2 -2
- package/dist/esm/chunks/{chunk.KYACLC66.js → chunk.R66CYS27.js} +2 -2
- package/dist/esm/chunks/chunk.R6VPRRTT.js +7 -0
- package/dist/esm/chunks/{chunk.4EBFMRTJ.js.map → chunk.R6VPRRTT.js.map} +1 -1
- package/dist/esm/chunks/{chunk.V7HN24VV.js → chunk.RFCIELJM.js} +2 -2
- package/dist/esm/chunks/chunk.RLQB7224.js +7 -0
- package/dist/esm/chunks/{chunk.EWT2PBEP.js.map → chunk.RLQB7224.js.map} +2 -2
- package/dist/esm/chunks/chunk.ROMRJIFR.js +7 -0
- package/dist/esm/chunks/chunk.ROMRJIFR.js.map +7 -0
- package/dist/esm/chunks/chunk.SB2LOK2R.js +7 -0
- package/dist/esm/chunks/{chunk.4SP42UG3.js.map → chunk.SB2LOK2R.js.map} +3 -3
- package/dist/esm/chunks/chunk.SHBDQPPH.js +7 -0
- package/dist/esm/chunks/chunk.SHBDQPPH.js.map +7 -0
- package/dist/esm/chunks/{chunk.LFLIYBAB.js → chunk.SIGRWU4V.js} +2 -2
- package/dist/esm/chunks/{chunk.LFLIYBAB.js.map → chunk.SIGRWU4V.js.map} +2 -2
- package/dist/esm/chunks/chunk.SKBOB2BD.js +7 -0
- package/dist/esm/chunks/chunk.SKBOB2BD.js.map +7 -0
- package/dist/esm/chunks/chunk.SOKORSUV.js +7 -0
- package/dist/esm/chunks/{chunk.GDKJ4RZX.js → chunk.STSAE2XP.js} +2 -2
- package/dist/esm/chunks/{chunk.CJUX3PL5.js → chunk.SWKKDBO6.js} +2 -2
- package/dist/esm/chunks/chunk.SYKZ74SL.js +7 -0
- package/dist/esm/chunks/chunk.SYKZ74SL.js.map +7 -0
- package/dist/esm/chunks/chunk.TPNZYEC7.js +12 -0
- package/dist/esm/chunks/chunk.TPNZYEC7.js.map +7 -0
- package/dist/esm/chunks/{chunk.QQUSMJIM.js → chunk.UEYPCCFG.js} +2 -2
- package/dist/esm/chunks/chunk.UKVC23E5.js +7 -0
- package/dist/esm/chunks/chunk.UKVC23E5.js.map +7 -0
- package/dist/esm/chunks/chunk.UOD3A7M4.js +7 -0
- package/dist/esm/chunks/{chunk.OXGCNOUY.js.map → chunk.UOD3A7M4.js.map} +1 -1
- package/dist/esm/chunks/{chunk.UVXKHQQZ.js → chunk.UQQQSJVM.js} +2 -2
- package/dist/esm/chunks/{chunk.UVXKHQQZ.js.map → chunk.UQQQSJVM.js.map} +2 -2
- package/dist/esm/chunks/chunk.USO2XVOI.js +7 -0
- package/dist/esm/chunks/{chunk.Y7ZZ7HDC.js.map → chunk.USO2XVOI.js.map} +1 -1
- package/dist/esm/chunks/chunk.USQEIRST.js +7 -0
- package/dist/esm/chunks/chunk.USQEIRST.js.map +7 -0
- package/dist/esm/chunks/chunk.V3X77TCO.js +7 -0
- package/dist/esm/chunks/chunk.V3X77TCO.js.map +7 -0
- package/dist/esm/chunks/{chunk.F3FWXBDS.js → chunk.VBJ4WUVH.js} +2 -2
- package/dist/esm/chunks/chunk.VOTT5COZ.js +7 -0
- package/dist/esm/chunks/chunk.VOTT5COZ.js.map +7 -0
- package/dist/esm/chunks/{chunk.AQOLBID6.js → chunk.VZ2XONDI.js} +2 -2
- package/dist/esm/chunks/{chunk.AQOLBID6.js.map → chunk.VZ2XONDI.js.map} +2 -2
- package/dist/esm/chunks/chunk.WAMFFIMP.js +7 -0
- package/dist/esm/chunks/chunk.WAMFFIMP.js.map +7 -0
- package/dist/esm/chunks/{chunk.U7S4DJTU.js → chunk.WBCQTZPS.js} +2 -2
- package/dist/esm/chunks/chunk.WBI34ZVP.js +7 -0
- package/dist/esm/chunks/chunk.WPVGFQNY.js +7 -0
- package/dist/esm/chunks/{chunk.RN634NOB.js.map → chunk.WPVGFQNY.js.map} +1 -1
- package/dist/esm/chunks/{chunk.SZETPZGY.js → chunk.WTUXAH7Z.js} +2 -2
- package/dist/esm/chunks/chunk.XAZ6EDIZ.js +7 -0
- package/dist/esm/chunks/{chunk.QIMAHW7V.js.map → chunk.XAZ6EDIZ.js.map} +1 -1
- package/dist/esm/chunks/{chunk.2F2N4WBN.js → chunk.XCI7O2KJ.js} +2 -2
- package/dist/esm/chunks/{chunk.2F2N4WBN.js.map → chunk.XCI7O2KJ.js.map} +2 -2
- package/dist/esm/chunks/chunk.XNJROSDZ.js +7 -0
- package/dist/esm/chunks/chunk.XNJROSDZ.js.map +7 -0
- package/dist/esm/chunks/chunk.XU3YSZPA.js +7 -0
- package/dist/esm/chunks/chunk.XYBVD3IE.js +7 -0
- package/dist/esm/chunks/chunk.XYBVD3IE.js.map +7 -0
- package/dist/esm/chunks/chunk.YNXWVL4B.js +7 -0
- package/dist/esm/chunks/chunk.YNXWVL4B.js.map +7 -0
- package/dist/esm/chunks/{chunk.5JSCGQ7H.js → chunk.YS5JZHJ6.js} +2 -2
- package/dist/esm/chunks/{chunk.QXZ3AAXD.js → chunk.YXHMD73U.js} +2 -2
- package/dist/esm/chunks/{chunk.6DPDC4ON.js → chunk.Z6GRWPPN.js} +2 -2
- package/dist/esm/chunks/chunk.ZAREP2QH.js +7 -0
- package/dist/esm/chunks/chunk.ZAREP2QH.js.map +7 -0
- package/dist/esm/chunks/{chunk.2K3T63I2.js → chunk.ZIGVO6FN.js} +2 -2
- package/dist/esm/chunks/{chunk.2K3T63I2.js.map → chunk.ZIGVO6FN.js.map} +2 -2
- package/dist/esm/chunks/{chunk.4JEBLMI3.js → chunk.ZLNI2M3F.js} +2 -2
- package/dist/esm/chunks/chunk.ZPXMKY72.js +7 -0
- package/dist/esm/chunks/chunk.ZPXMKY72.js.map +7 -0
- package/dist/esm/chunks/chunk.ZYKP23JP.js +7 -0
- package/dist/esm/chunks/chunk.ZYKP23JP.js.map +7 -0
- package/dist/esm/circular-progress/index.js +1 -1
- package/dist/esm/color-picker/index.js +1 -1
- package/dist/esm/core/base/index.js +1 -1
- package/dist/esm/core/delegates/index.js +1 -1
- package/dist/esm/core/index.js +1 -1
- package/dist/esm/core/utils/index.js +1 -1
- package/dist/esm/date-picker/index.js +1 -1
- package/dist/esm/date-range-picker/index.js +1 -1
- package/dist/esm/deprecated/button/index.js +1 -1
- package/dist/esm/deprecated/index.js +1 -1
- package/dist/esm/dialog/index.js +1 -1
- package/dist/esm/divider/index.js +1 -1
- package/dist/esm/drawer/base/index.js +1 -1
- package/dist/esm/drawer/drawer/index.js +1 -1
- package/dist/esm/drawer/index.js +1 -1
- package/dist/esm/drawer/mini-drawer/index.js +1 -1
- package/dist/esm/drawer/modal-drawer/index.js +1 -1
- package/dist/esm/expansion-panel/index.js +1 -1
- package/dist/esm/field-next/base/index.js +7 -0
- package/dist/esm/field-next/index.js +7 -0
- package/dist/esm/file-picker/index.js +1 -1
- package/dist/esm/floating-action-button/index.js +1 -1
- package/dist/esm/floating-label/index.js +1 -1
- package/dist/esm/focus-indicator/index.js +1 -1
- package/dist/esm/icon/index.js +1 -1
- package/dist/esm/icon-button/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/inline-message/index.js +1 -1
- package/dist/esm/keyboard-shortcut/index.js +1 -1
- package/dist/esm/label/index.js +1 -1
- package/dist/esm/label-value/index.js +1 -1
- package/dist/esm/linear-progress/index.js +1 -1
- package/dist/esm/list/index.js +1 -1
- package/dist/esm/list/list/index.js +1 -1
- package/dist/esm/list/list-item/index.js +1 -1
- package/dist/esm/list-dropdown/index.js +1 -1
- package/dist/esm/menu/index.js +1 -1
- package/dist/esm/open-icon/index.js +1 -1
- package/dist/esm/overlay/index.js +1 -1
- package/dist/esm/page-state/index.js +1 -1
- package/dist/esm/paginator/index.js +1 -1
- package/dist/esm/popover/index.js +1 -1
- package/dist/esm/popup/index.js +1 -1
- package/dist/esm/profile-card/index.js +1 -1
- package/dist/esm/quantity-field/index.js +1 -1
- package/dist/esm/radio/index.js +1 -1
- package/dist/esm/radio/radio/index.js +1 -1
- package/dist/esm/radio/radio-group/index.js +1 -1
- package/dist/esm/ripple/index.js +1 -1
- package/dist/esm/scaffold/index.js +1 -1
- package/dist/esm/select/core/index.js +1 -1
- package/dist/esm/select/index.js +1 -1
- package/dist/esm/select/option/index.js +1 -1
- package/dist/esm/select/option-group/index.js +1 -1
- package/dist/esm/select/select/index.js +1 -1
- package/dist/esm/select/select-dropdown/index.js +1 -1
- package/dist/esm/skeleton/index.js +1 -1
- package/dist/esm/slider/index.js +1 -1
- package/dist/esm/split-button/index.js +1 -1
- package/dist/esm/split-view/index.js +1 -1
- package/dist/esm/split-view/split-view/index.js +1 -1
- package/dist/esm/split-view/split-view-panel/index.js +1 -1
- package/dist/esm/stack/index.js +1 -1
- package/dist/esm/state-layer/index.js +1 -1
- package/dist/esm/stepper/index.js +1 -1
- package/dist/esm/stepper/step/index.js +1 -1
- package/dist/esm/stepper/stepper/index.js +1 -1
- package/dist/esm/switch/index.js +1 -1
- package/dist/esm/table/index.js +1 -1
- package/dist/esm/tabs/index.js +1 -1
- package/dist/esm/tabs/tab/index.js +1 -1
- package/dist/esm/tabs/tab-bar/index.js +1 -1
- package/dist/esm/text-field/index.js +1 -1
- package/dist/esm/time-picker/index.js +1 -1
- package/dist/esm/toast/index.js +1 -1
- package/dist/esm/toolbar/index.js +1 -1
- package/dist/esm/tooltip/index.js +1 -1
- package/dist/esm/view-switcher/index.js +1 -1
- package/dist/esm/view-switcher/view/index.js +1 -1
- package/dist/forge-dark.css +1 -1
- package/dist/forge.css +1 -1
- package/dist/typography/forge-typography.css +1 -1
- package/esm/autocomplete/autocomplete-adapter.js +6 -9
- package/esm/autocomplete/autocomplete.d.ts +8 -2
- package/esm/badge/badge.js +1 -1
- package/esm/button-area/button-area-adapter.d.ts +20 -21
- package/esm/button-area/button-area-adapter.js +32 -74
- package/esm/button-area/button-area-constants.d.ts +3 -1
- package/esm/button-area/button-area-constants.js +5 -3
- package/esm/button-area/button-area-foundation.d.ts +2 -0
- package/esm/button-area/button-area-foundation.js +31 -11
- package/esm/button-area/button-area.d.ts +19 -2
- package/esm/button-area/button-area.js +25 -6
- package/esm/calendar/calendar-foundation.js +14 -6
- package/esm/calendar/calendar.d.ts +1 -0
- package/esm/card/card.js +1 -1
- package/esm/checkbox/checkbox.js +1 -1
- package/esm/chip-field/chip-field-foundation.js +1 -1
- package/esm/chips/chip/chip-adapter.d.ts +45 -50
- package/esm/chips/chip/chip-adapter.js +150 -129
- package/esm/chips/chip/chip-constants.d.ts +28 -20
- package/esm/chips/chip/chip-constants.js +14 -23
- package/esm/chips/chip/chip-foundation.d.ts +42 -34
- package/esm/chips/chip/chip-foundation.js +177 -171
- package/esm/chips/chip/chip.d.ts +106 -21
- package/esm/chips/chip/chip.js +142 -35
- package/esm/chips/chip-set/chip-set-constants.d.ts +9 -3
- package/esm/chips/chip-set/chip-set-constants.js +7 -8
- package/esm/chips/chip-set/chip-set.d.ts +46 -9
- package/esm/chips/chip-set/chip-set.js +128 -33
- package/esm/chips/chip-set/index.d.ts +0 -2
- package/esm/chips/chip-set/index.js +0 -2
- package/esm/constants.d.ts +8 -3
- package/esm/constants.js +8 -3
- package/esm/core/base/base-adapter.d.ts +2 -1
- package/esm/core/base/base-adapter.js +1 -0
- package/esm/core/utils/utils.d.ts +11 -0
- package/esm/core/utils/utils.js +35 -0
- package/esm/date-picker/base/base-date-picker-adapter.js +7 -12
- package/esm/date-picker/base/base-date-picker-foundation.js +6 -0
- package/esm/date-picker/base/base-date-picker-utils.js +1 -2
- package/esm/date-range-picker/date-range-picker-adapter.d.ts +1 -0
- package/esm/date-range-picker/date-range-picker-adapter.js +11 -1
- package/esm/date-range-picker/date-range-picker-component-delegate.d.ts +3 -3
- package/esm/date-range-picker/date-range-picker-component-delegate.js +2 -2
- package/esm/dialog/dialog-adapter.d.ts +2 -0
- package/esm/dialog/dialog-adapter.js +14 -0
- package/esm/dialog/dialog-foundation.js +1 -0
- package/esm/divider/divider-constants.d.ts +2 -2
- package/esm/divider/divider-constants.js +3 -3
- package/esm/divider/divider.d.ts +26 -5
- package/esm/divider/divider.js +42 -6
- package/esm/drawer/drawer/drawer.js +1 -1
- package/esm/drawer/mini-drawer/mini-drawer.js +1 -1
- package/esm/drawer/modal-drawer/modal-drawer.js +1 -1
- package/esm/expansion-panel/expansion-panel.js +1 -1
- package/esm/field-next/base/base-field-adapter.d.ts +27 -0
- package/esm/field-next/base/base-field-adapter.js +14 -0
- package/esm/field-next/base/base-field-constants.d.ts +56 -0
- package/esm/field-next/base/base-field-constants.js +36 -0
- package/esm/field-next/base/base-field-foundation.d.ts +79 -0
- package/esm/field-next/base/base-field-foundation.js +176 -0
- package/esm/field-next/base/base-field.d.ts +52 -0
- package/esm/field-next/base/base-field.js +116 -0
- package/esm/field-next/base/index.d.ts +9 -0
- package/esm/field-next/base/index.js +9 -0
- package/esm/field-next/field-adapter.d.ts +56 -0
- package/esm/field-next/field-adapter.js +132 -0
- package/esm/field-next/field-constants.d.ts +95 -0
- package/esm/field-next/field-constants.js +64 -0
- package/esm/field-next/field-foundation.d.ts +86 -0
- package/esm/field-next/field-foundation.js +221 -0
- package/esm/field-next/field.d.ts +205 -0
- package/esm/field-next/field.js +287 -0
- package/esm/field-next/index.d.ts +11 -0
- package/esm/field-next/index.js +15 -0
- package/esm/file-picker/file-picker-adapter.js +1 -1
- package/esm/file-picker/file-picker.d.ts +46 -2
- package/esm/file-picker/file-picker.js +48 -4
- package/esm/index.d.ts +1 -1
- package/esm/index.js +3 -3
- package/esm/label/label-constants.d.ts +9 -3
- package/esm/label/label-constants.js +5 -3
- package/esm/label/label-foundation.d.ts +7 -4
- package/esm/label/label-foundation.js +20 -10
- package/esm/label/label.d.ts +6 -4
- package/esm/label/label.js +11 -12
- package/esm/list/list/list-adapter.d.ts +1 -1
- package/esm/list/list/list-adapter.js +22 -9
- package/esm/list/list/list-constants.d.ts +3 -0
- package/esm/list/list/list-constants.js +5 -1
- package/esm/list/list/list-foundation.js +6 -0
- package/esm/list/list-item/list-item-constants.js +1 -1
- package/esm/list/list-item/list-item.d.ts +33 -38
- package/esm/list/list-item/list-item.js +34 -39
- package/esm/menu/menu-foundation.js +1 -0
- package/esm/menu/menu.d.ts +4 -1
- package/esm/page-state/page-state.d.ts +24 -1
- package/esm/page-state/page-state.js +26 -3
- package/esm/paginator/paginator-adapter.d.ts +6 -2
- package/esm/paginator/paginator-adapter.js +34 -54
- package/esm/paginator/paginator-constants.d.ts +1 -1
- package/esm/paginator/paginator-foundation.js +7 -17
- package/esm/popover/popover-constants.d.ts +2 -0
- package/esm/popover/popover-constants.js +3 -1
- package/esm/popover/popover-foundation.d.ts +5 -0
- package/esm/popover/popover-foundation.js +26 -1
- package/esm/popover/popover.d.ts +4 -0
- package/esm/popover/popover.js +9 -0
- package/esm/profile-card/profile-card.js +1 -1
- package/esm/radio/radio/radio.js +2 -2
- package/esm/radio/radio-group/radio-group-adapter.js +1 -1
- package/{styles/stack/_variables.scss → esm/radio/radio-group/radio-group-component-delegate.d.ts} +0 -1
- package/{styles/chips/chip-set/_variables.scss → esm/radio/radio-group/radio-group-component-delegate.js} +0 -1
- package/esm/ripple/forge-ripple.d.ts +1 -1
- package/esm/ripple/forge-ripple.js +1 -1
- package/esm/select/core/base-select.d.ts +4 -1
- package/esm/skeleton/skeleton.d.ts +32 -2
- package/esm/skeleton/skeleton.js +33 -3
- package/esm/slider/slider.js +1 -1
- package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
- package/esm/stack/stack-constants.d.ts +1 -0
- package/esm/stack/stack-constants.js +2 -1
- package/esm/stack/stack-foundation.d.ts +6 -1
- package/esm/stack/stack-foundation.js +12 -1
- package/esm/stack/stack.d.ts +37 -3
- package/esm/stack/stack.js +42 -4
- package/esm/switch/switch.js +1 -1
- package/esm/text-field/index.d.ts +2 -2
- package/esm/text-field/index.js +2 -2
- package/esm/text-field/text-field-adapter.d.ts +42 -25
- package/esm/text-field/text-field-adapter.js +125 -84
- package/esm/text-field/text-field-component-delegate.d.ts +11 -3
- package/esm/text-field/text-field-component-delegate.js +66 -36
- package/esm/text-field/text-field-constants.d.ts +19 -8
- package/esm/text-field/text-field-constants.js +21 -11
- package/esm/text-field/text-field-foundation.d.ts +28 -6
- package/esm/text-field/text-field-foundation.js +97 -4
- package/esm/text-field/text-field.d.ts +43 -5
- package/esm/text-field/text-field.js +73 -9
- package/esm/time-picker/time-picker-adapter.js +8 -10
- package/esm/toolbar/toolbar-constants.d.ts +5 -5
- package/esm/toolbar/toolbar-constants.js +9 -10
- package/esm/toolbar/toolbar.d.ts +35 -6
- package/esm/toolbar/toolbar.js +44 -26
- package/esm/tooltip/tooltip.js +1 -1
- package/package.json +2 -2
- package/{dist/esm/chunks/chunk.SKLCDWYQ.js → styles/avatar/index.scss} +1 -1
- package/styles/badge/_core.scss +1 -1
- package/styles/button/button.scss +1 -1
- package/styles/button-area/_core.scss +25 -0
- package/styles/button-area/_token-utils.scss +30 -0
- package/styles/button-area/button-area.scss +48 -3
- package/styles/{divider/_variables.scss → button-area/index.scss} +1 -2
- package/styles/card/_mixins.scss +1 -0
- package/styles/checkbox/_core.scss +1 -1
- package/styles/chips/chip/_core.scss +137 -0
- package/styles/chips/chip/_token-utils.scss +30 -0
- package/styles/chips/chip/chip.scss +259 -7
- package/styles/chips/chip/index.scss +6 -0
- package/styles/chips/chip-set/_core.scss +22 -0
- package/styles/chips/chip-set/_token-utils.scss +30 -0
- package/styles/chips/chip-set/chip-set.scss +27 -3
- package/styles/chips/chip-set/index.scss +6 -0
- package/styles/core/styles/tokens/_token-utils.scss +3 -2
- package/styles/core/styles/tokens/button-area/_tokens.scss +28 -0
- package/styles/core/styles/tokens/chips/chip/_tokens.scss +87 -0
- package/styles/core/styles/tokens/chips/chip-set/_tokens.scss +16 -0
- package/styles/core/styles/tokens/divider/_tokens.scss +20 -0
- package/styles/core/styles/tokens/field/_tokens.scss +148 -0
- package/styles/core/styles/tokens/file-picker/_tokens.scss +42 -0
- package/styles/core/styles/tokens/list/list-item/_tokens.scss +5 -12
- package/styles/core/styles/tokens/page-state/_tokens.scss +43 -0
- package/styles/core/styles/tokens/skeleton/_tokens.scss +55 -0
- package/styles/core/styles/tokens/stack/_tokens.scss +21 -0
- package/styles/core/styles/tokens/toolbar/_tokens.scss +41 -0
- package/styles/core/styles/tokens/typography/_scale.scss +1 -0
- package/styles/core/styles/tokens/typography/_tokens.label.scss +9 -2
- package/styles/divider/_core.scss +39 -0
- package/styles/divider/_token-utils.scss +30 -0
- package/styles/divider/divider.scss +16 -9
- package/styles/divider/index.scss +6 -0
- package/styles/drawer/drawer/drawer.scss +2 -0
- package/styles/drawer/mini-drawer/mini-drawer.scss +2 -0
- package/styles/drawer/modal-drawer/modal-drawer.scss +5 -0
- package/styles/expansion-panel/_mixins.scss +1 -0
- package/styles/field-next/_core.layout.scss +350 -0
- package/styles/field-next/_core.scss +212 -0
- package/styles/field-next/_core.shape.scss +25 -0
- package/styles/field-next/_core.slotted.scss +60 -0
- package/styles/field-next/_core.state.scss +198 -0
- package/styles/field-next/_core.variant.scss +225 -0
- package/styles/field-next/_token-utils.scss +30 -0
- package/styles/field-next/field.scss +770 -0
- package/styles/{product-icon/_variables.scss → field-next/index.scss} +2 -2
- package/styles/file-picker/_core.scss +85 -0
- package/styles/file-picker/_token-utils.scss +30 -0
- package/styles/file-picker/file-picker.scss +68 -3
- package/styles/file-picker/index.scss +6 -0
- package/styles/label/_core.scss +1 -1
- package/styles/list/list-item/_core.scss +4 -20
- package/styles/list/list-item/list-item.scss +0 -12
- package/styles/page-state/_core.scss +79 -0
- package/styles/page-state/_token-utils.scss +30 -0
- package/styles/page-state/index.scss +6 -0
- package/styles/page-state/page-state.scss +51 -3
- package/styles/profile-card/profile-card.scss +10 -10
- package/styles/radio/radio/_core.scss +1 -1
- package/styles/radio/radio-group/_core.scss +5 -0
- package/styles/radio/radio-group/index.scss +5 -0
- package/styles/radio/radio-group/radio-group.scss +5 -0
- package/styles/skeleton/_animations.scss +10 -0
- package/styles/skeleton/_core.scss +78 -0
- package/styles/skeleton/_token-utils.scss +30 -0
- package/styles/skeleton/index.scss +6 -0
- package/styles/skeleton/skeleton.scss +55 -4
- package/styles/slider/_core.scss +1 -1
- package/styles/stack/_core.scss +29 -0
- package/styles/stack/_token-utils.scss +30 -0
- package/styles/stack/stack.scss +38 -12
- package/styles/switch/_core.scss +1 -1
- package/styles/text-field/_core.scss +5 -12
- package/styles/text-field/index.scss +6 -0
- package/styles/text-field/text-field.scss +14 -5
- package/styles/theme/_theme-dark.scss +6 -3
- package/styles/toolbar/_core.scss +73 -0
- package/styles/toolbar/_token-utils.scss +30 -0
- package/styles/toolbar/index.scss +6 -0
- package/styles/toolbar/toolbar.scss +64 -17
- package/styles/tooltip/_core.scss +1 -0
- package/styles/utils/_mixins-container.scss +38 -0
- package/dist/esm/chunks/chunk.2AVJJJNS.js +0 -7
- package/dist/esm/chunks/chunk.2AVJJJNS.js.map +0 -7
- package/dist/esm/chunks/chunk.2UVBQKJI.js +0 -7
- package/dist/esm/chunks/chunk.2UVBQKJI.js.map +0 -7
- package/dist/esm/chunks/chunk.3WT7HPA7.js +0 -12
- package/dist/esm/chunks/chunk.3WT7HPA7.js.map +0 -7
- package/dist/esm/chunks/chunk.4EBFMRTJ.js +0 -7
- package/dist/esm/chunks/chunk.4SP42UG3.js +0 -7
- package/dist/esm/chunks/chunk.5BQT3E7Y.js +0 -7
- package/dist/esm/chunks/chunk.5BQT3E7Y.js.map +0 -7
- package/dist/esm/chunks/chunk.5NHGVUVR.js +0 -7
- package/dist/esm/chunks/chunk.5PNJOQDZ.js +0 -7
- package/dist/esm/chunks/chunk.5PNJOQDZ.js.map +0 -7
- package/dist/esm/chunks/chunk.6P4G73VL.js +0 -7
- package/dist/esm/chunks/chunk.6P4G73VL.js.map +0 -7
- package/dist/esm/chunks/chunk.7AE3ATT3.js +0 -7
- package/dist/esm/chunks/chunk.7AE3ATT3.js.map +0 -7
- package/dist/esm/chunks/chunk.AXBMJBED.js +0 -7
- package/dist/esm/chunks/chunk.DYBD4IRT.js +0 -7
- package/dist/esm/chunks/chunk.EWT2PBEP.js +0 -7
- package/dist/esm/chunks/chunk.F2327OUE.js +0 -7
- package/dist/esm/chunks/chunk.F2327OUE.js.map +0 -7
- package/dist/esm/chunks/chunk.FXDHZCID.js +0 -7
- package/dist/esm/chunks/chunk.FZC3WXSY.js +0 -7
- package/dist/esm/chunks/chunk.FZC3WXSY.js.map +0 -7
- package/dist/esm/chunks/chunk.GYGIU62J.js +0 -7
- package/dist/esm/chunks/chunk.GYGIU62J.js.map +0 -7
- package/dist/esm/chunks/chunk.IE42X2LV.js +0 -7
- package/dist/esm/chunks/chunk.IE42X2LV.js.map +0 -7
- package/dist/esm/chunks/chunk.JBQXD3FJ.js +0 -7
- package/dist/esm/chunks/chunk.JBQXD3FJ.js.map +0 -7
- package/dist/esm/chunks/chunk.JLDKNU5Q.js +0 -7
- package/dist/esm/chunks/chunk.JLDKNU5Q.js.map +0 -7
- package/dist/esm/chunks/chunk.JO6GPIMF.js +0 -7
- package/dist/esm/chunks/chunk.JO6GPIMF.js.map +0 -7
- package/dist/esm/chunks/chunk.JUXSSZ3B.js +0 -7
- package/dist/esm/chunks/chunk.LEN33O6V.js +0 -7
- package/dist/esm/chunks/chunk.LEN33O6V.js.map +0 -7
- package/dist/esm/chunks/chunk.N2DHFDXD.js +0 -7
- package/dist/esm/chunks/chunk.N2DHFDXD.js.map +0 -7
- package/dist/esm/chunks/chunk.NSKIEZWE.js +0 -7
- package/dist/esm/chunks/chunk.NY3N6KUZ.js +0 -7
- package/dist/esm/chunks/chunk.NY3N6KUZ.js.map +0 -7
- package/dist/esm/chunks/chunk.O5HBMTSZ.js +0 -7
- package/dist/esm/chunks/chunk.O5HBMTSZ.js.map +0 -7
- package/dist/esm/chunks/chunk.OJFSECZE.js +0 -7
- package/dist/esm/chunks/chunk.OR5GB6X3.js +0 -7
- package/dist/esm/chunks/chunk.OWYOZF53.js +0 -7
- package/dist/esm/chunks/chunk.OWYOZF53.js.map +0 -7
- package/dist/esm/chunks/chunk.OXGCNOUY.js +0 -7
- package/dist/esm/chunks/chunk.PZAL7VQF.js +0 -7
- package/dist/esm/chunks/chunk.PZAL7VQF.js.map +0 -7
- package/dist/esm/chunks/chunk.QIMAHW7V.js +0 -7
- package/dist/esm/chunks/chunk.RB435MRJ.js +0 -7
- package/dist/esm/chunks/chunk.RB435MRJ.js.map +0 -7
- package/dist/esm/chunks/chunk.RBG6AMLV.js +0 -7
- package/dist/esm/chunks/chunk.RBG6AMLV.js.map +0 -7
- package/dist/esm/chunks/chunk.RCYIHHYO.js +0 -7
- package/dist/esm/chunks/chunk.RCYIHHYO.js.map +0 -7
- package/dist/esm/chunks/chunk.RLOZYTNN.js +0 -7
- package/dist/esm/chunks/chunk.RLOZYTNN.js.map +0 -7
- package/dist/esm/chunks/chunk.RN634NOB.js +0 -7
- package/dist/esm/chunks/chunk.RQ3RHGLB.js +0 -7
- package/dist/esm/chunks/chunk.RQ3RHGLB.js.map +0 -7
- package/dist/esm/chunks/chunk.S2KPWTRW.js +0 -7
- package/dist/esm/chunks/chunk.S2KPWTRW.js.map +0 -7
- package/dist/esm/chunks/chunk.TPXXHX5J.js +0 -7
- package/dist/esm/chunks/chunk.TPXXHX5J.js.map +0 -7
- package/dist/esm/chunks/chunk.UCIVBX64.js +0 -7
- package/dist/esm/chunks/chunk.UCIVBX64.js.map +0 -7
- package/dist/esm/chunks/chunk.VGKNQYHG.js +0 -7
- package/dist/esm/chunks/chunk.VGKNQYHG.js.map +0 -7
- package/dist/esm/chunks/chunk.VN7JOJVU.js +0 -7
- package/dist/esm/chunks/chunk.VNFATHAQ.js +0 -7
- package/dist/esm/chunks/chunk.VNFATHAQ.js.map +0 -7
- package/dist/esm/chunks/chunk.VRTR7WMN.js +0 -7
- package/dist/esm/chunks/chunk.VRTR7WMN.js.map +0 -7
- package/dist/esm/chunks/chunk.WXFJYCGO.js +0 -7
- package/dist/esm/chunks/chunk.WXFJYCGO.js.map +0 -7
- package/dist/esm/chunks/chunk.Y7ZZ7HDC.js +0 -7
- package/dist/esm/chunks/chunk.YTBNAGLS.js +0 -7
- package/dist/esm/chunks/chunk.ZY3ETQ3D.js +0 -7
- package/dist/esm/chunks/chunk.ZY3ETQ3D.js.map +0 -7
- package/dist/esm/product-icon/index.js +0 -7
- package/esm/chips/chip-set/chip-set-adapter.d.ts +0 -27
- package/esm/chips/chip-set/chip-set-adapter.js +0 -57
- package/esm/chips/chip-set/chip-set-foundation.d.ts +0 -38
- package/esm/chips/chip-set/chip-set-foundation.js +0 -82
- package/esm/product-icon/index.d.ts +0 -10
- package/esm/product-icon/index.js +0 -14
- package/esm/product-icon/product-icon-adapter.d.ts +0 -27
- package/esm/product-icon/product-icon-adapter.js +0 -50
- package/esm/product-icon/product-icon-constants.d.ts +0 -38
- package/esm/product-icon/product-icon-constants.js +0 -46
- package/esm/product-icon/product-icon-foundation.d.ts +0 -40
- package/esm/product-icon/product-icon-foundation.js +0 -116
- package/esm/product-icon/product-icon.d.ts +0 -37
- package/esm/product-icon/product-icon.js +0 -70
- package/styles/button-area/_mixins.scss +0 -47
- package/styles/chips/chip/_mixins.scss +0 -306
- package/styles/chips/chip/_variables.scss +0 -8
- package/styles/chips/chip-set/_mixins.scss +0 -40
- package/styles/divider/_mixins.scss +0 -47
- package/styles/file-picker/_mixins.scss +0 -155
- package/styles/file-picker/_variables.scss +0 -8
- package/styles/page-state/_mixins.scss +0 -123
- package/styles/page-state/_variables.scss +0 -9
- package/styles/product-icon/_mixins.scss +0 -49
- package/styles/product-icon/product-icon.scss +0 -16
- package/styles/skeleton/_mixins.scss +0 -132
- package/styles/skeleton/_variables.scss +0 -45
- package/styles/stack/_mixins.scss +0 -49
- package/styles/text-field/_base.scss +0 -76
- package/styles/text-field/_mixins.scss +0 -28
- package/styles/text-field/_selector.scss +0 -57
- package/styles/text-field/_variables.scss +0 -20
- package/styles/toolbar/_mixins.scss +0 -78
- package/styles/toolbar/_variables.scss +0 -10
- /package/dist/esm/chunks/{chunk.WJ26N3FC.js.map → chunk.22C7GQLX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.CPD4RUF2.js.map → chunk.24MZM3AY.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.O6WN2UP6.js.map → chunk.2537XOFQ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KZMXTOLO.js.map → chunk.2AM2BKEO.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KD4DVSJR.js.map → chunk.2WRAXA3H.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ZYYPOLIG.js.map → chunk.2XPAYTK4.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.OJFSECZE.js.map → chunk.3L77JY5H.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.MBXBM6UI.js.map → chunk.47U6GVGZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.UYAP5GFT.js.map → chunk.5A34DJLZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.GAHE4QVB.js.map → chunk.5S7XNYRQ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.DOAQODLZ.js.map → chunk.6XLTVIUD.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.4YKLCBP2.js.map → chunk.7IJUN75W.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.66RZ2CUB.js.map → chunk.A4UH52SA.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KIQZLNDG.js.map → chunk.AN2E2SSN.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.XH63INIK.js.map → chunk.AOSBUJWW.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.CLODJYSW.js.map → chunk.BSV27GU7.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.FOQH2SSU.js.map → chunk.CBLUXYH2.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.L7BSLZCB.js.map → chunk.CIUPY66Y.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.OUIWXKO2.js.map → chunk.CSOKFDFQ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.YLJTJKN4.js.map → chunk.EO3HELQ2.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.RKG66YKS.js.map → chunk.FBDRM4YN.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.GAQ3POUT.js.map → chunk.FOSKVNVV.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.Z7JF5PPO.js.map → chunk.FRTSXX33.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.253H47GA.js.map → chunk.G2HRYIIZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.D7L2IMHJ.js.map → chunk.GA6AO6FJ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.YOKBWEXF.js.map → chunk.GBGGUYTE.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.CISGGM56.js.map → chunk.GTKYO6VB.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.STIZCKQA.js.map → chunk.HBAC6E7O.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.WM6ZUVDR.js.map → chunk.IM36A2ZI.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.YHIHHGMQ.js.map → chunk.IWVAI6XM.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.J5MWS2KZ.js.map → chunk.IZRURH7C.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.E7TIN4JS.js.map → chunk.JLSFTWPE.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.HP4333ZN.js.map → chunk.JSTCCUKZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.AXBMJBED.js.map → chunk.KDUH2DUE.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.M7RYU4HQ.js.map → chunk.LKA5HQQY.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IC4DLKE3.js.map → chunk.MC3UAHWS.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.DYBD4IRT.js.map → chunk.MPUP6QAP.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KPNGLSCU.js.map → chunk.N632SJ7X.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.WJLHVUHN.js.map → chunk.O56VP4OZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ULZJYWM2.js.map → chunk.OFXSMOV6.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.SWDOKJUF.js.map → chunk.OY3TG55O.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IO3A5OM6.js.map → chunk.PXRGQHWR.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.FXDHZCID.js.map → chunk.QKYCMDLB.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.WINWKU4K.js.map → chunk.QUWEAFGI.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.LNMQ5A25.js.map → chunk.R3AWIPPK.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KYACLC66.js.map → chunk.R66CYS27.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.V7HN24VV.js.map → chunk.RFCIELJM.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.OR5GB6X3.js.map → chunk.SOKORSUV.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.GDKJ4RZX.js.map → chunk.STSAE2XP.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.CJUX3PL5.js.map → chunk.SWKKDBO6.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QQUSMJIM.js.map → chunk.UEYPCCFG.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.F3FWXBDS.js.map → chunk.VBJ4WUVH.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.U7S4DJTU.js.map → chunk.WBCQTZPS.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.NSKIEZWE.js.map → chunk.WBI34ZVP.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.SZETPZGY.js.map → chunk.WTUXAH7Z.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.YTBNAGLS.js.map → chunk.XU3YSZPA.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.5JSCGQ7H.js.map → chunk.YS5JZHJ6.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QXZ3AAXD.js.map → chunk.YXHMD73U.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.6DPDC4ON.js.map → chunk.Z6GRWPPN.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.4JEBLMI3.js.map → chunk.ZLNI2M3F.js.map} +0 -0
- /package/dist/esm/{product-icon → field-next/base}/index.js.map +0 -0
- /package/dist/esm/{chunks/chunk.SKLCDWYQ.js.map → field-next/index.js.map} +0 -0
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{b as S}from"./chunk.LEN33O6V.js";import{d as N,e as F}from"./chunk.S2KPWTRW.js";import{k as d,z as m}from"./chunk.EWT2PBEP.js";import{d as h}from"./chunk.L7BSLZCB.js";import{a as A}from"./chunk.YTBNAGLS.js";import{a as C}from"./chunk.ZY3ETQ3D.js";import{a as E}from"./chunk.NVUMRW44.js";import{a as B,b as L}from"./chunk.UVXKHQQZ.js";import{a as I,e as T,f as c,k as D}from"./chunk.TPXXHX5J.js";import{k as f}from"./chunk.J2M2MXP2.js";import{a as _,b as x,d as p}from"./chunk.M3QDAYD2.js";var R=`${L}quantity-field`,q={INVALID:"invalid",REQUIRED:"required",DISABLED:"disabled"},O={ROOT:"forge-quantity-field",INVALID:"forge-quantity-field--invalid",REQUIRED:"forge-quantity-field--required"},a={INCREMENT_BUTTON:"increment-button",DECREMENT_BUTTON:"decrement-button",LABEL:"label",HELPER_TEXT:"helper-text"},w={ROOT:`.${O.ROOT}`,INCREMENT_BUTTON_SLOT:`slot[name=${a.INCREMENT_BUTTON}]`,DECREMENT_BUTTON_SLOT:`slot[name=${a.DECREMENT_BUTTON}]`,INCREMENT_BUTTON:`[slot=${a.INCREMENT_BUTTON}], button[slot=${a.INCREMENT_BUTTON}]`,DECREMENT_BUTTON:`[slot=${a.DECREMENT_BUTTON}], button[slot=${a.DECREMENT_BUTTON}]`,TEXT_FIELD:"forge-text-field",INPUT:"input[type=number]",LABEL:`[slot=${a.LABEL}]`,HELPER_TEXT:`[slot=${a.HELPER_TEXT}]`},i={elementName:R,classes:O,slots:a,selectors:w,attributes:q};var v=class extends C{constructor(t){super(t);this._rootElement=c(t,i.selectors.ROOT),this._incrementButtonSlot=c(this._component,i.selectors.INCREMENT_BUTTON_SLOT),this._decrementButtonSlot=c(this._component,i.selectors.DECREMENT_BUTTON_SLOT)}initializeButtons(){this._incrementButton&&!this._incrementButton.hasAttribute("tabindex")&&(this._incrementButton.tabIndex=-1),this._decrementButton&&!this._decrementButton.hasAttribute("tabindex")&&(this._decrementButton.tabIndex=-1)}addRootClass(t){this._rootElement.classList.add(t)}removeRootClass(t){this._rootElement.classList.remove(t)}inputHasAttribute(t){return this.inputElement?this.inputElement.hasAttribute(t):!1}addIncrementButtonSlotListener(t){this._incrementButtonSlot.addEventListener("slotchange",t)}removeIncrementButtonSlotListener(t){this._incrementButtonSlot&&this._incrementButtonSlot.removeEventListener("slotchange",t)}addDecrementButtonSlotListener(t){this._decrementButtonSlot.addEventListener("slotchange",t)}removeDecrementButtonSlotListener(t){this._decrementButtonSlot&&this._decrementButtonSlot.removeEventListener("slotchange",t)}addTextFieldAttribute(t,e=""){this._textFieldComponent&&this._textFieldComponent.setAttribute(t,e)}removeTextFieldAttribute(t){this._textFieldComponent&&this._textFieldComponent.removeAttribute(t)}addIncrementEventListener(t,e){this._incrementButtonElement.addEventListener(t,e)}removeIncrementEventListener(t,e){this._incrementButtonElement&&this._incrementButtonElement.removeEventListener(t,e)}addDecrementEventListener(t,e){this._decrementButtonElement.addEventListener(t,e)}removeDecrementEventListener(t,e){this._decrementButtonElement&&this._decrementButtonElement.removeEventListener(t,e)}addIncrementButtonAttribute(t,e=""){this._incrementButtonElement.setAttribute(t,e)}removeIncrementButtonAttribute(t){this._incrementButtonElement.removeAttribute(t)}addDecrementButtonAttribute(t,e=""){this._decrementButtonElement.setAttribute(t,e)}removeDecrementButtonAttribute(t){this._decrementButtonElement.removeAttribute(t)}increment(){let t=this.inputElement;if(!t)return;let e=+t.value,n=this._calcPrecision(this._inputStep),o=parseFloat((e+this._inputStep).toFixed(n));this._inputMax&&this._inputMax<o&&(o=this._inputMax),this._setInputValue(o)}decrement(){let t=this.inputElement;if(!t)return;let e=+t.value,n=this._calcPrecision(this._inputStep),o=parseFloat((e-this._inputStep).toFixed(n));this._inputMin&&this._inputMin>o&&(o=this._inputMin),this._setInputValue(o)}addInputDisabledAttributeChangeListener(t){this._setupInputDisabledAttributeMutationObserver(t)}removeInputDisabledAttributeChangeListener(){this._cleanupInputDisabledAttributeMutationObserver()}_setInputValue(t){this.inputElement&&(this.inputElement.value=`${t}`,this.inputElement.dispatchEvent(new Event("input")),this.inputElement.dispatchEvent(new Event("change")))}_isNullOrUndefinedOrEmpty(t){return t==null||t===""}_setupInputDisabledAttributeMutationObserver(t){if(!this.inputElement)return;this._cleanupInputDisabledAttributeMutationObserver();let e=o=>this._inputDisabledAttributeMutationCallback(o,t);this._inputAttributeMutationObserver=new MutationObserver(e);let n={attributes:!0,attributeOldValue:!0,attributeFilter:[i.attributes.DISABLED]};this._inputAttributeMutationObserver.observe(this.inputElement,n)}_cleanupInputDisabledAttributeMutationObserver(){this._inputAttributeMutationObserver&&(this._inputAttributeMutationObserver.disconnect(),delete this._inputAttributeMutationObserver)}_inputDisabledAttributeMutationCallback(t,e){for(let n of t)n.type!=="attributes"||!n.attributeName||n.attributeName!==i.attributes.DISABLED||n.target[n.attributeName]===n.oldValue||e()}get _incrementButtonElement(){return this._incrementButton||(this._incrementButton=this._component.querySelector(i.selectors.INCREMENT_BUTTON)),this._incrementButton}get _decrementButtonElement(){return this._decrementButton||(this._decrementButton=this._component.querySelector(i.selectors.DECREMENT_BUTTON)),this._decrementButton}get _textFieldComponent(){return this._textField||(this._textField=this._component.querySelector(i.selectors.TEXT_FIELD)),this._textField}get inputElement(){return this._inputElement||(this._inputElement=this._component.querySelector(i.selectors.INPUT)),this._inputElement}get _inputStep(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.step)?1:+t.step}get _inputMax(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.max)?null:+t.max}get _inputMin(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.min)?null:+t.min}_calcPrecision(t){let e=String(t);return e.includes(".")?e.split(".")[1].length:0}};var b=class{constructor(r){this._adapter=r;this._incrementValue=()=>this._adapter.increment(),this._decrementValue=()=>this._adapter.decrement(),this._incrementButtonSlotChanged=()=>this._onIncrementButtonSlotChanged(),this._decrementButtonSlotChanged=()=>this._onDecrementButtonSlotChanged(),this._adapter.addIncrementButtonSlotListener(this._incrementButtonSlotChanged),this._adapter.addDecrementButtonSlotListener(this._decrementButtonSlotChanged)}connect(){this._adapter.addInputDisabledAttributeChangeListener(()=>this._syncDisabledStateOfButtons()),this._syncDisabledStateOfButtons(),this._adapter.initializeButtons()}disconnect(){this._removeIncrementEventListener(),this._removeDecrementEventListener(),this._removeIncrementButtonSlotListener(),this._removeDecrementButtonSlotListener(),this._adapter.removeInputDisabledAttributeChangeListener()}_onIncrementButtonSlotChanged(){this._addIncrementEventListener()}_onDecrementButtonSlotChanged(){this._addDecrementEventListener()}_addIncrementEventListener(){this._adapter.addIncrementEventListener("click",this._incrementValue)}_addDecrementEventListener(){this._adapter.addDecrementEventListener("click",this._decrementValue)}_removeIncrementEventListener(){this._adapter.removeIncrementEventListener("click",this._incrementValue)}_removeDecrementEventListener(){this._adapter.removeDecrementEventListener("click",this._decrementValue)}_removeIncrementButtonSlotListener(){this._adapter.removeIncrementButtonSlotListener(this._incrementButtonSlotChanged)}_removeDecrementButtonSlotListener(){this._adapter.removeDecrementButtonSlotListener(this._decrementButtonSlotChanged)}_syncDisabledStateOfButtons(){this._adapter.inputHasAttribute(i.attributes.DISABLED)?(this._adapter.addDecrementButtonAttribute(i.attributes.DISABLED),this._adapter.addIncrementButtonAttribute(i.attributes.DISABLED)):(this._adapter.removeIncrementButtonAttribute(i.attributes.DISABLED),this._adapter.removeDecrementButtonAttribute(i.attributes.DISABLED))}get required(){return this._required}set required(r){this._required!==r&&(this._required=r,this._required?(this._adapter.setHostAttribute(i.attributes.REQUIRED),this._adapter.addRootClass(i.classes.REQUIRED)):(this._adapter.removeHostAttribute(i.attributes.REQUIRED),this._adapter.removeRootClass(i.classes.REQUIRED)))}get invalid(){return this._invalid}set invalid(r){this._invalid!==r&&(this._invalid=r,this._invalid?(this._adapter.setHostAttribute(i.attributes.INVALID),this._adapter.addRootClass(i.classes.INVALID),this._adapter.addTextFieldAttribute(i.attributes.INVALID)):(this._adapter.removeHostAttribute(i.attributes.INVALID),this._adapter.removeRootClass(i.classes.INVALID),this._adapter.removeTextFieldAttribute(i.attributes.INVALID)))}};var U='<template><div class="forge-quantity-field" part="root"><slot name="label"></slot><div class="forge-quantity-field__row" part="row"><slot name="decrement-button"></slot><slot></slot><slot name="increment-button"></slot></div><slot name="helper-text"></slot></div></template>',k='.forge-quantity-field ::slotted([slot=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-background,rgba(0,0,0,.54))}.forge-quantity-field ::slotted([slot=helper-text]){-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);height:1rem;color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.forge-quantity-field ::slotted([slot=helper-text])::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.forge-quantity-field__row{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-align:center;align-items:center}.forge-quantity-field ::slotted(forge-icon-button:first-of-type){color:var(--mdc-theme-text-secondary-on-light);margin-right:4px}.forge-quantity-field ::slotted(forge-icon-button:last-of-type){color:var(--mdc-theme-text-secondary-on-light);margin-left:4px}.forge-quantity-field ::slotted(forge-text-field){--forge-text-field-margin-top:0;--forge-text-field-margin-bottom:0}.forge-quantity-field--required ::slotted([slot=label])::before{color:#b00020;color:var(--mdc-theme-error,#b00020);content:"*";margin-right:4px}.forge-quantity-field--invalid ::slotted([slot=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:#b00020;color:var(--mdc-theme-error,#b00020)}.forge-quantity-field--invalid ::slotted([slot=helper-text]){-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);height:1rem;color:#b00020;color:var(--mdc-theme-error,#b00020)}.forge-quantity-field--invalid ::slotted([slot=helper-text])::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}:host{display:inline-block}:host([hidden]){display:none}',s=class extends D{constructor(){super();T(this,U,k),this._foundation=new b(new v(this)),h.define([m,d])}static get observedAttributes(){return[i.attributes.INVALID,i.attributes.REQUIRED]}connectedCallback(){this._requiredElementsPresent()?this._foundation.connect():this._ensureElementsPresent().then(()=>{this._foundation.connect()})}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,e,n){switch(t){case i.attributes.INVALID:this.invalid=f(n);break;case i.attributes.REQUIRED:this.required=f(n);break}}_ensureElementsPresent(){return new Promise(t=>{if(this._requiredElementsPresent()){t();return}let e=new MutationObserver(n=>{n.reduce((l,u)=>l+u.addedNodes.length,0)>0&&this._requiredElementsPresent()&&(e.disconnect(),t())});e.observe(this,{childList:!0,subtree:!0})})}_requiredElementsPresent(){let t=this.querySelector(i.selectors.INPUT),e=this.querySelector(i.selectors.DECREMENT_BUTTON),n=this.querySelector(i.selectors.INCREMENT_BUTTON);return!!t&&!!e&&!!n}};p([E()],s.prototype,"invalid",2),p([E()],s.prototype,"required",2),s=p([B({name:i.elementName,dependencies:[N]})],s);var M=class extends A{constructor(t){super(t);h.define([m,d])}_build(){let t=document.createElement(i.elementName);return this._attachButton(t,m.name,"decrement-button"),this._attachTextField(t),this._attachButton(t,d.name,"increment-button"),t}_configure(){var t,e,n,o,l;this.inputElement.value=(e=(t=this._config.options)==null?void 0:t.value)!=null?e:"0",this.inputElement.style.textAlign="center",this.inputElement.style.width="64px",(n=this._config.options)!=null&&n.helperText&&this.setHelperText(this._config.options.helperText),typeof((o=this._config.options)==null?void 0:o.label)=="string"&&this._createLabel(this._config.options.label),((l=this._config.options)==null?void 0:l.step)!==void 0&&(this.inputElement.step=this._config.options.step)}get value(){return this._textFieldDelegate.inputElement.value}set value(t){this._textFieldDelegate.inputElement.value=t}get disabled(){return this._textFieldDelegate.inputElement.disabled}set disabled(t){this._textFieldDelegate.inputElement.disabled=t}get invalid(){return this._element.invalid||!1}set invalid(t){this._element.invalid=t}get inputElement(){return this._textFieldDelegate.inputElement}get labelElement(){return this._labelElement}onChange(t){this._textFieldDelegate.inputElement.addEventListener("input",e=>t(e.target.value))}onFocus(t){this._textFieldDelegate.inputElement.addEventListener("focus",e=>t(e))}onBlur(t){this._textFieldDelegate.inputElement.addEventListener("blur",e=>t(e))}_attachTextField(t){var n,o,l,u,y;let e={props:_({},(o=(n=this._config.options)==null?void 0:n.textFieldDelegateConfig)==null?void 0:o.props),options:x(_({},(u=(l=this._config.options)==null?void 0:l.textFieldDelegateConfig)==null?void 0:u.options),{id:(y=this._config.options)==null?void 0:y.id,type:"number"})};this._textFieldDelegate=new S(e),t.appendChild(this._textFieldDelegate.element)}setLabel(t){t?this._labelElement?this._labelElement.textContent=t:this._createLabel(t):this._labelElement&&(this._element.removeChild(this._labelElement),this._labelElement=void 0)}setHelperText(t){t?(this._helperTextElement||(this._helperTextElement=document.createElement("span"),this._helperTextElement.slot="helper-text",this._element.appendChild(this._helperTextElement)),this._helperTextElement.textContent=t):this._helperTextElement&&(this._element.removeChild(this._helperTextElement),this._helperTextElement=void 0)}_createLabel(t){var e;this._labelElement=document.createElement("label"),this._labelElement.textContent=t,this._labelElement.slot="label",(e=this._config.options)!=null&&e.id&&this._labelElement.setAttribute("for",this._config.options.id),this._element.appendChild(this._labelElement)}_attachButton(t,e,n){return new F({options:{iconName:e,parent:t,attributes:{slot:n}}})}};function ft(){I(s)}export{i as a,v as b,b as c,s as d,M as e,ft as f};
|
|
7
|
-
//# sourceMappingURL=chunk.
|
|
6
|
+
import{b as S}from"./chunk.SHBDQPPH.js";import{c as N,d as F}from"./chunk.SYKZ74SL.js";import{A as m,l as d}from"./chunk.RLQB7224.js";import{d as h}from"./chunk.CIUPY66Y.js";import{a as A}from"./chunk.XU3YSZPA.js";import{a as C}from"./chunk.6GSVB5NB.js";import{a as E}from"./chunk.NVUMRW44.js";import{a as B,b as L}from"./chunk.UQQQSJVM.js";import{a as I,e as T,f as c,k as D}from"./chunk.BIQTNLIF.js";import{k as f}from"./chunk.J2M2MXP2.js";import{a as _,b as x,d as p}from"./chunk.M3QDAYD2.js";var R=`${L}quantity-field`,q={INVALID:"invalid",REQUIRED:"required",DISABLED:"disabled"},O={ROOT:"forge-quantity-field",INVALID:"forge-quantity-field--invalid",REQUIRED:"forge-quantity-field--required"},a={INCREMENT_BUTTON:"increment-button",DECREMENT_BUTTON:"decrement-button",LABEL:"label",HELPER_TEXT:"helper-text"},w={ROOT:`.${O.ROOT}`,INCREMENT_BUTTON_SLOT:`slot[name=${a.INCREMENT_BUTTON}]`,DECREMENT_BUTTON_SLOT:`slot[name=${a.DECREMENT_BUTTON}]`,INCREMENT_BUTTON:`[slot=${a.INCREMENT_BUTTON}], button[slot=${a.INCREMENT_BUTTON}]`,DECREMENT_BUTTON:`[slot=${a.DECREMENT_BUTTON}], button[slot=${a.DECREMENT_BUTTON}]`,TEXT_FIELD:"forge-text-field",INPUT:"input[type=number]",LABEL:`[slot=${a.LABEL}]`,HELPER_TEXT:`[slot=${a.HELPER_TEXT}]`},i={elementName:R,classes:O,slots:a,selectors:w,attributes:q};var v=class extends C{constructor(t){super(t);this._rootElement=c(t,i.selectors.ROOT),this._incrementButtonSlot=c(this._component,i.selectors.INCREMENT_BUTTON_SLOT),this._decrementButtonSlot=c(this._component,i.selectors.DECREMENT_BUTTON_SLOT)}initializeButtons(){this._incrementButton&&!this._incrementButton.hasAttribute("tabindex")&&(this._incrementButton.tabIndex=-1),this._decrementButton&&!this._decrementButton.hasAttribute("tabindex")&&(this._decrementButton.tabIndex=-1)}addRootClass(t){this._rootElement.classList.add(t)}removeRootClass(t){this._rootElement.classList.remove(t)}inputHasAttribute(t){return this.inputElement?this.inputElement.hasAttribute(t):!1}addIncrementButtonSlotListener(t){this._incrementButtonSlot.addEventListener("slotchange",t)}removeIncrementButtonSlotListener(t){this._incrementButtonSlot&&this._incrementButtonSlot.removeEventListener("slotchange",t)}addDecrementButtonSlotListener(t){this._decrementButtonSlot.addEventListener("slotchange",t)}removeDecrementButtonSlotListener(t){this._decrementButtonSlot&&this._decrementButtonSlot.removeEventListener("slotchange",t)}addTextFieldAttribute(t,e=""){this._textFieldComponent&&this._textFieldComponent.setAttribute(t,e)}removeTextFieldAttribute(t){this._textFieldComponent&&this._textFieldComponent.removeAttribute(t)}addIncrementEventListener(t,e){this._incrementButtonElement.addEventListener(t,e)}removeIncrementEventListener(t,e){this._incrementButtonElement&&this._incrementButtonElement.removeEventListener(t,e)}addDecrementEventListener(t,e){this._decrementButtonElement.addEventListener(t,e)}removeDecrementEventListener(t,e){this._decrementButtonElement&&this._decrementButtonElement.removeEventListener(t,e)}addIncrementButtonAttribute(t,e=""){this._incrementButtonElement.setAttribute(t,e)}removeIncrementButtonAttribute(t){this._incrementButtonElement.removeAttribute(t)}addDecrementButtonAttribute(t,e=""){this._decrementButtonElement.setAttribute(t,e)}removeDecrementButtonAttribute(t){this._decrementButtonElement.removeAttribute(t)}increment(){let t=this.inputElement;if(!t)return;let e=+t.value,n=this._calcPrecision(this._inputStep),o=parseFloat((e+this._inputStep).toFixed(n));this._inputMax&&this._inputMax<o&&(o=this._inputMax),this._setInputValue(o)}decrement(){let t=this.inputElement;if(!t)return;let e=+t.value,n=this._calcPrecision(this._inputStep),o=parseFloat((e-this._inputStep).toFixed(n));this._inputMin&&this._inputMin>o&&(o=this._inputMin),this._setInputValue(o)}addInputDisabledAttributeChangeListener(t){this._setupInputDisabledAttributeMutationObserver(t)}removeInputDisabledAttributeChangeListener(){this._cleanupInputDisabledAttributeMutationObserver()}_setInputValue(t){this.inputElement&&(this.inputElement.value=`${t}`,this.inputElement.dispatchEvent(new Event("input")),this.inputElement.dispatchEvent(new Event("change")))}_isNullOrUndefinedOrEmpty(t){return t==null||t===""}_setupInputDisabledAttributeMutationObserver(t){if(!this.inputElement)return;this._cleanupInputDisabledAttributeMutationObserver();let e=o=>this._inputDisabledAttributeMutationCallback(o,t);this._inputAttributeMutationObserver=new MutationObserver(e);let n={attributes:!0,attributeOldValue:!0,attributeFilter:[i.attributes.DISABLED]};this._inputAttributeMutationObserver.observe(this.inputElement,n)}_cleanupInputDisabledAttributeMutationObserver(){this._inputAttributeMutationObserver&&(this._inputAttributeMutationObserver.disconnect(),delete this._inputAttributeMutationObserver)}_inputDisabledAttributeMutationCallback(t,e){for(let n of t)n.type!=="attributes"||!n.attributeName||n.attributeName!==i.attributes.DISABLED||n.target[n.attributeName]===n.oldValue||e()}get _incrementButtonElement(){return this._incrementButton||(this._incrementButton=this._component.querySelector(i.selectors.INCREMENT_BUTTON)),this._incrementButton}get _decrementButtonElement(){return this._decrementButton||(this._decrementButton=this._component.querySelector(i.selectors.DECREMENT_BUTTON)),this._decrementButton}get _textFieldComponent(){return this._textField||(this._textField=this._component.querySelector(i.selectors.TEXT_FIELD)),this._textField}get inputElement(){return this._inputElement||(this._inputElement=this._component.querySelector(i.selectors.INPUT)),this._inputElement}get _inputStep(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.step)?1:+t.step}get _inputMax(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.max)?null:+t.max}get _inputMin(){let t=this.inputElement;return!t||this._isNullOrUndefinedOrEmpty(t.min)?null:+t.min}_calcPrecision(t){let e=String(t);return e.includes(".")?e.split(".")[1].length:0}};var b=class{constructor(r){this._adapter=r;this._incrementValue=()=>this._adapter.increment(),this._decrementValue=()=>this._adapter.decrement(),this._incrementButtonSlotChanged=()=>this._onIncrementButtonSlotChanged(),this._decrementButtonSlotChanged=()=>this._onDecrementButtonSlotChanged(),this._adapter.addIncrementButtonSlotListener(this._incrementButtonSlotChanged),this._adapter.addDecrementButtonSlotListener(this._decrementButtonSlotChanged)}connect(){this._adapter.addInputDisabledAttributeChangeListener(()=>this._syncDisabledStateOfButtons()),this._syncDisabledStateOfButtons(),this._adapter.initializeButtons()}disconnect(){this._removeIncrementEventListener(),this._removeDecrementEventListener(),this._removeIncrementButtonSlotListener(),this._removeDecrementButtonSlotListener(),this._adapter.removeInputDisabledAttributeChangeListener()}_onIncrementButtonSlotChanged(){this._addIncrementEventListener()}_onDecrementButtonSlotChanged(){this._addDecrementEventListener()}_addIncrementEventListener(){this._adapter.addIncrementEventListener("click",this._incrementValue)}_addDecrementEventListener(){this._adapter.addDecrementEventListener("click",this._decrementValue)}_removeIncrementEventListener(){this._adapter.removeIncrementEventListener("click",this._incrementValue)}_removeDecrementEventListener(){this._adapter.removeDecrementEventListener("click",this._decrementValue)}_removeIncrementButtonSlotListener(){this._adapter.removeIncrementButtonSlotListener(this._incrementButtonSlotChanged)}_removeDecrementButtonSlotListener(){this._adapter.removeDecrementButtonSlotListener(this._decrementButtonSlotChanged)}_syncDisabledStateOfButtons(){this._adapter.inputHasAttribute(i.attributes.DISABLED)?(this._adapter.addDecrementButtonAttribute(i.attributes.DISABLED),this._adapter.addIncrementButtonAttribute(i.attributes.DISABLED)):(this._adapter.removeIncrementButtonAttribute(i.attributes.DISABLED),this._adapter.removeDecrementButtonAttribute(i.attributes.DISABLED))}get required(){return this._required}set required(r){this._required!==r&&(this._required=r,this._required?(this._adapter.setHostAttribute(i.attributes.REQUIRED),this._adapter.addRootClass(i.classes.REQUIRED)):(this._adapter.removeHostAttribute(i.attributes.REQUIRED),this._adapter.removeRootClass(i.classes.REQUIRED)))}get invalid(){return this._invalid}set invalid(r){this._invalid!==r&&(this._invalid=r,this._invalid?(this._adapter.setHostAttribute(i.attributes.INVALID),this._adapter.addRootClass(i.classes.INVALID),this._adapter.addTextFieldAttribute(i.attributes.INVALID)):(this._adapter.removeHostAttribute(i.attributes.INVALID),this._adapter.removeRootClass(i.classes.INVALID),this._adapter.removeTextFieldAttribute(i.attributes.INVALID)))}};var U='<template><div class="forge-quantity-field" part="root"><slot name="label"></slot><div class="forge-quantity-field__row" part="row"><slot name="decrement-button"></slot><slot></slot><slot name="increment-button"></slot></div><slot name="helper-text"></slot></div></template>',k='.forge-quantity-field ::slotted([slot=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-background,rgba(0,0,0,.54))}.forge-quantity-field ::slotted([slot=helper-text]){-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);height:1rem;color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.forge-quantity-field ::slotted([slot=helper-text])::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.forge-quantity-field__row{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-align:center;align-items:center}.forge-quantity-field ::slotted(forge-icon-button:first-of-type){color:var(--mdc-theme-text-secondary-on-light);margin-right:4px}.forge-quantity-field ::slotted(forge-icon-button:last-of-type){color:var(--mdc-theme-text-secondary-on-light);margin-left:4px}.forge-quantity-field ::slotted(forge-text-field){--forge-text-field-margin-top:0;--forge-text-field-margin-bottom:0}.forge-quantity-field--required ::slotted([slot=label])::before{color:#b00020;color:var(--mdc-theme-error,#b00020);content:"*";margin-right:4px}.forge-quantity-field--invalid ::slotted([slot=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:#b00020;color:var(--mdc-theme-error,#b00020)}.forge-quantity-field--invalid ::slotted([slot=helper-text]){-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);height:1rem;color:#b00020;color:var(--mdc-theme-error,#b00020)}.forge-quantity-field--invalid ::slotted([slot=helper-text])::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}:host{display:inline-block}:host([hidden]){display:none}',s=class extends D{constructor(){super();T(this,U,k),this._foundation=new b(new v(this)),h.define([m,d])}static get observedAttributes(){return[i.attributes.INVALID,i.attributes.REQUIRED]}connectedCallback(){this._requiredElementsPresent()?this._foundation.connect():this._ensureElementsPresent().then(()=>{this._foundation.connect()})}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,e,n){switch(t){case i.attributes.INVALID:this.invalid=f(n);break;case i.attributes.REQUIRED:this.required=f(n);break}}_ensureElementsPresent(){return new Promise(t=>{if(this._requiredElementsPresent()){t();return}let e=new MutationObserver(n=>{n.reduce((l,u)=>l+u.addedNodes.length,0)>0&&this._requiredElementsPresent()&&(e.disconnect(),t())});e.observe(this,{childList:!0,subtree:!0})})}_requiredElementsPresent(){let t=this.querySelector(i.selectors.INPUT),e=this.querySelector(i.selectors.DECREMENT_BUTTON),n=this.querySelector(i.selectors.INCREMENT_BUTTON);return!!t&&!!e&&!!n}};p([E()],s.prototype,"invalid",2),p([E()],s.prototype,"required",2),s=p([B({name:i.elementName,dependencies:[N]})],s);var M=class extends A{constructor(t){super(t);h.define([m,d])}_build(){let t=document.createElement(i.elementName);return this._attachButton(t,m.name,"decrement-button"),this._attachTextField(t),this._attachButton(t,d.name,"increment-button"),t}_configure(){var t,e,n,o,l;this.inputElement.value=(e=(t=this._config.options)==null?void 0:t.value)!=null?e:"0",this.inputElement.style.textAlign="center",this.inputElement.style.width="64px",(n=this._config.options)!=null&&n.helperText&&this.setHelperText(this._config.options.helperText),typeof((o=this._config.options)==null?void 0:o.label)=="string"&&this._createLabel(this._config.options.label),((l=this._config.options)==null?void 0:l.step)!==void 0&&(this.inputElement.step=this._config.options.step)}get value(){return this._textFieldDelegate.inputElement.value}set value(t){this._textFieldDelegate.inputElement.value=t}get disabled(){return this._textFieldDelegate.inputElement.disabled}set disabled(t){this._textFieldDelegate.inputElement.disabled=t}get invalid(){return this._element.invalid||!1}set invalid(t){this._element.invalid=t}get inputElement(){return this._textFieldDelegate.inputElement}get labelElement(){return this._labelElement}onChange(t){this._textFieldDelegate.inputElement.addEventListener("input",e=>t(e.target.value))}onFocus(t){this._textFieldDelegate.inputElement.addEventListener("focus",e=>t(e))}onBlur(t){this._textFieldDelegate.inputElement.addEventListener("blur",e=>t(e))}_attachTextField(t){var n,o,l,u,y;let e={props:_({},(o=(n=this._config.options)==null?void 0:n.textFieldDelegateConfig)==null?void 0:o.props),options:x(_({},(u=(l=this._config.options)==null?void 0:l.textFieldDelegateConfig)==null?void 0:u.options),{id:(y=this._config.options)==null?void 0:y.id,type:"number"})};this._textFieldDelegate=new S(e),t.appendChild(this._textFieldDelegate.element)}setLabel(t){t?this._labelElement?this._labelElement.textContent=t:this._createLabel(t):this._labelElement&&(this._element.removeChild(this._labelElement),this._labelElement=void 0)}setHelperText(t){t?(this._helperTextElement||(this._helperTextElement=document.createElement("span"),this._helperTextElement.slot="helper-text",this._element.appendChild(this._helperTextElement)),this._helperTextElement.textContent=t):this._helperTextElement&&(this._element.removeChild(this._helperTextElement),this._helperTextElement=void 0)}_createLabel(t){var e;this._labelElement=document.createElement("label"),this._labelElement.textContent=t,this._labelElement.slot="label",(e=this._config.options)!=null&&e.id&&this._labelElement.setAttribute("for",this._config.options.id),this._element.appendChild(this._labelElement)}_attachButton(t,e,n){return new F({options:{iconName:e,parent:t,attributes:{slot:n}}})}};function ft(){I(s)}export{i as a,v as b,b as c,s as d,M as e,ft as f};
|
|
7
|
+
//# sourceMappingURL=chunk.2537XOFQ.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{l as e}from"./chunk.
|
|
6
|
+
import{l as e}from"./chunk.UQQQSJVM.js";var o=Symbol("privateIsFocusable"),s=Symbol("externalTabIndex"),i=Symbol("isUpdatingTabIndex"),l=Symbol("updateTabIndex");function g(b){var u,d,p;class c extends b{constructor(){super(...arguments);this[u]=!1;this[d]=null;this[p]=!1}get[e](){return this[o]}set[e](t){this[e]!==t&&(this[o]=t,this[l]())}connectedCallback(){var t;(t=super.connectedCallback)==null||t.call(this),this[e]=!0}attributeChangedCallback(t,n,a){var r;if((r=super.attributeChangedCallback)==null||r.call(this,t,n,a),!(t!=="tabindex"||this[i])){if(!this.hasAttribute("tabindex")){this[s]=null,this[l]();return}this[s]=this.tabIndex}}[(u=o,d=s,p=i,l)](){var a;let t=this[e]?0:-1,n=(a=this[s])!=null?a:t;this[i]=!0,this.tabIndex=n,this[i]=!1}}return c}export{g as a};
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2023 Google LLC
|
|
@@ -12,4 +12,4 @@ import{l as e}from"./chunk.UVXKHQQZ.js";var o=Symbol("privateIsFocusable"),s=Sym
|
|
|
12
12
|
* Adapted and influenced from [Material Web](https://github.com/material-components/material-web).
|
|
13
13
|
* The original source code can be found at: [GitHub](https://github.com/material-components/material-web/blob/main/labs/behaviors/focusable.ts)
|
|
14
14
|
*/
|
|
15
|
-
//# sourceMappingURL=chunk.
|
|
15
|
+
//# sourceMappingURL=chunk.2AM2BKEO.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
|
+
* License: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import{a as d,d as B}from"./chunk.LGEZI5SZ.js";import{a as S,b as M,c as O,d as N}from"./chunk.3TIBP6QT.js";import{a as i}from"./chunk.SHBDQPPH.js";import{e as L}from"./chunk.UV3WIHCM.js";import{c as x}from"./chunk.FB4MXEIW.js";import{c as y}from"./chunk.SYKZ74SL.js";import{j as A}from"./chunk.RLQB7224.js";import{d as I}from"./chunk.CIUPY66Y.js";import{a as F}from"./chunk.NVUMRW44.js";import{a as C}from"./chunk.UQQQSJVM.js";import{a as f,e as T,f as u}from"./chunk.BIQTNLIF.js";import{u as g}from"./chunk.DCCFF327.js";import{a as _,k as v}from"./chunk.J2M2MXP2.js";import{d as h}from"./chunk.M3QDAYD2.js";var m=class extends O{constructor(e){super(e);this._inputElements=[];this._destroyValueChangerListeners=[];this._fieldElement=u(e,i.selectors.FIELD),this._clearButtonSlotElement=u(e,i.selectors.CLEAR_BUTTON_SLOT),this._fieldElement.setAttribute("exportparts",Object.values(d.parts).join(", ")),this._clearButtonSlotElement.remove()}get hasValue(){return this._inputElements.some(e=>!!e.value)}get hasPlaceholder(){return this._inputElements.some(e=>!!e.placeholder)}get popoverTargetElement(){return this._popoverTargetElement||(this._popoverTargetElement=u(this._fieldElement,d.selectors.POPOVER_TARGET)),this._popoverTargetElement}addRootListener(e,t){this._fieldElement.addEventListener(e,t)}removeRootListener(e,t){this._fieldElement.removeEventListener(e,t)}disableInput(e){this._inputElements.forEach(t=>t.disabled=e)}inputIsDisabled(){return this._inputElements.some(e=>e.disabled)}click(){var e;(e=this._inputElements[0])==null||e.focus()}applyLabel(e){this._inputElements.forEach(t=>{g(t,!!e,"aria-label",e!=null?e:"")})}handleDefaultSlotChange(e,t){var a;(a=this._inputMutationObserver)==null||a.disconnect();let o=e.assignedElements();o.length&&(this._inputElements=o.filter(n=>n.matches(i.selectors.INPUT)),this._fieldElement.multiline=this._inputElements.some(n=>n.tagName===i.tagNames.TEXTAREA),this._inputMutationObserver=new MutationObserver(n=>{n.forEach(l=>{if(l.attributeName){let r=l.target.getAttribute(l.attributeName),H=l.attributeName;t(H,r)}})}),this._inputElements.forEach(n=>{var l;(l=this._inputMutationObserver)==null||l.observe(n,{attributes:!0,attributeFilter:i.observedInputAttributes}),Object.values(i.observedInputAttributes).forEach(p=>{let r=p;t(r,n.getAttribute(r))})}))}tryAddValueChangeListener(e,t){this._destroyValueChangerListeners.forEach(o=>o()),this._destroyValueChangerListeners=this._inputElements.map(o=>L(e,o,"value",t))}removeValueChangeListener(){this._destroyValueChangerListeners.forEach(e=>e())}tryFloatLabel(e){if(e!==void 0){this._fieldElement.floatLabel=e;return}this._fieldElement.floatLabel=this.hasValue||this.hasPlaceholder}tryConnectSlottedLabel(e){var p;if(this._inputElements.length!==1||(p=this._inputElements[0].labels)!=null&&p.length)return;let t=this._inputElements[0],o=e.assignedElements({flatten:!0}),a=o.find(r=>r.matches(i.selectors.FORGE_LABEL));if(a){a.forElement=this._component,a.clickTarget=t;return}let n=o.find(r=>r.tagName===i.tagNames.LABEL);if(!n||n.control)return;let l=t.id||`forge-input-${_()}`;t.id=l,n.htmlFor=l}connectClearButton(e){this._clearButtonSlotElement.addEventListener("click",e)}disconnectClearButton(e){this._clearButtonSlotElement.removeEventListener("click",e)}toggleClearButtonVisibility(e){e?this._fieldElement.append(this._clearButtonSlotElement):this._clearButtonSlotElement.remove()}clearInput(){this._inputElements.length&&(this._inputElements.forEach(e=>e.value=""),this._inputElements[0].focus())}};var b=class extends N{constructor(e){super(e);this._adapter=e;this._showClear=!1;this._slotChangeListener=this._onSlotChange.bind(this);this._inputAttributeListener=this._onInputAttributeChange.bind(this);this._valueChangeListener=this._onValueChange.bind(this);this._inputListener=this._onValueChange.bind(this);this._clearButtonClickListener=e=>this._onClearButtonClick(e)}initialize(){this._adapter.addRootListener("slotchange",this._slotChangeListener),this._adapter.addRootListener("input",this._inputListener)}disconnect(){this._adapter.removeRootListener("slotchange",this._slotChangeListener),this._adapter.removeRootListener("input",this._inputListener),this._adapter.removeValueChangeListener()}get popoverTargetElement(){return this._adapter.popoverTargetElement}_onSlotChange(e){let t=e.target;switch(t.name){case"label":this._adapter.tryConnectSlottedLabel(t);break;case"":this._adapter.handleDefaultSlotChange(t,this._inputAttributeListener),this._adapter.tryAddValueChangeListener(this,this._valueChangeListener),this._tryFloatLabel();break}}_onInputAttributeChange(e,t){switch(e){case"disabled":this.disabled=t!==null;break;case"placeholder":this._tryFloatLabel();break}}_onClearButtonClick(e){let t=new CustomEvent(i.events.CLEAR,{bubbles:!0,cancelable:!0,composed:!0});this._adapter.dispatchHostEvent(t),t.defaultPrevented||this._adapter.clearInput()}_onValueChange(){this._tryFloatLabel(),this._toggleClearButtonVisibility()}_toggleClearButtonVisibility(){this._adapter.toggleClearButtonVisibility(this._showClear&&this._hasValue&&!this.disabled)}get showClear(){return this._showClear}set showClear(e){this._showClear!==e&&(this._showClear=e,this._adapter.toggleHostAttribute(i.attributes.SHOW_CLEAR,e),e?this._adapter.connectClearButton(this._clearButtonClickListener):this._adapter.disconnectClearButton(this._clearButtonClickListener),this._toggleClearButtonVisibility())}get disabled(){return super.disabled}set disabled(e){this._disabled!==e&&(this._disabled=e,this._adapter.toggleHostAttribute(d.attributes.DISABLED,e),this._adapter.setFieldProperty("disabled",e),this._adapter.disableInput(e),this._toggleClearButtonVisibility())}get labelPosition(){return super.labelPosition}set labelPosition(e){this._labelPosition!==e&&(this._labelPosition=e,this._adapter.toggleHostAttribute(d.attributes.LABEL_POSITION,!0,e),this._adapter.setFieldProperty("labelPosition",e),this._tryFloatLabel())}};var V='<template><forge-field id="field"><slot slot="label" name="label"></slot><slot slot="start" name="start"></slot><slot></slot><slot slot="end" name="end"></slot><slot slot="end" name="clear-button"><forge-icon-button tabindex="-1" dense><forge-icon name="clear"></forge-icon></forge-icon-button><forge-tooltip type="label"><slot name="clear-button-tooltip">Clear</slot></forge-tooltip></slot><slot slot="accessory" name="accessory"></slot><slot slot="support-text-start" name="support-text-start"></slot><slot slot="support-text-end" name="support-text-end"></slot><slot slot="start" name="leading"></slot><slot slot="end" name="trailing"></slot><slot slot="accessory" name="addon-end"></slot><slot slot="support-text-start" name="helper-text"></slot></forge-field></template>',k=":host{display:block}:host([hidden]){display:none}forge-field{display:contents}",s=class extends M{constructor(){super();T(this,V,k),this._foundation=new b(new m(this)),I.define(A)}static get observedAttributes(){return[...Object.values(S.observedAttributes),...Object.values(i.observedAttributes)]}connectedCallback(){this._foundation.initialize()}attributeChangedCallback(e,t,o){switch(super.attributeChangedCallback(e,t,o),e){case i.attributes.SHOW_CLEAR:this.showClear=v(o);break}}get popoverTargetElement(){return this._foundation.popoverTargetElement}};h([F()],s.prototype,"showClear",2),s=h([C({name:i.elementName,dependencies:[B,y,x]})],s);function Ee(){f(s)}export{m as a,b,s as c,Ee as d};
|
|
7
|
+
//# sourceMappingURL=chunk.2N5KNNQX.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/text-field/text-field-adapter.ts", "../../src/text-field/text-field-foundation.ts", "../../src/text-field/text-field.ts", "../../src/text-field/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { getShadowElement, listenOwnProperty, randomChars, toggleAttribute } from '@tylertech/forge-core';\nimport { FIELD_CONSTANTS, IFieldComponent } from '../field-next';\nimport { BaseFieldAdapter, IBaseFieldAdapter } from '../field-next/base/base-field-adapter';\nimport { LabelComponent } from '../label';\nimport { ITextFieldComponent } from './text-field';\nimport { TextFieldInputAttributeObserver, TextFieldValueChangeListener, TEXT_FIELD_CONSTANTS } from './text-field-constants';\n\nexport interface ITextFieldAdapter extends IBaseFieldAdapter {\n readonly popoverTargetElement: HTMLElement;\n addRootListener(name: keyof HTMLElementEventMap, listener: EventListener): void;\n removeRootListener(name: keyof HTMLElementEventMap, listener: EventListener): void;\n disableInput(disabled: boolean): void;\n handleDefaultSlotChange(slot: HTMLSlotElement, listener: TextFieldInputAttributeObserver): void;\n tryAddValueChangeListener(context: unknown, listener: TextFieldValueChangeListener): void;\n removeValueChangeListener(): void;\n tryFloatLabel(force?: boolean): void;\n tryConnectSlottedLabel(slot: HTMLSlotElement): void;\n connectClearButton(listener: EventListener): void;\n disconnectClearButton(listener: EventListener): void;\n toggleClearButtonVisibility(visible: boolean): void;\n clearInput(): void;\n}\n\nexport class TextFieldAdapter extends BaseFieldAdapter implements ITextFieldAdapter {\n protected readonly _fieldElement: IFieldComponent;\n private readonly _clearButtonSlotElement: HTMLSlotElement;\n private _popoverTargetElement: HTMLElement;\n private _inputElements: (HTMLInputElement | HTMLTextAreaElement)[] = [];\n private _inputMutationObserver?: MutationObserver;\n private _destroyValueChangerListeners: (() => void)[] = [];\n\n public get hasValue(): boolean {\n return this._inputElements.some(el => !!el.value);\n }\n\n public get hasPlaceholder(): boolean {\n return this._inputElements.some(el => !!el.placeholder);\n }\n\n public get popoverTargetElement(): HTMLElement {\n if (!this._popoverTargetElement) {\n this._popoverTargetElement = getShadowElement(this._fieldElement, FIELD_CONSTANTS.selectors.POPOVER_TARGET) as HTMLElement;\n }\n return this._popoverTargetElement;\n }\n\n constructor(component: ITextFieldComponent) {\n super(component);\n this._fieldElement = getShadowElement(component, TEXT_FIELD_CONSTANTS.selectors.FIELD) as IFieldComponent;\n this._clearButtonSlotElement = getShadowElement(component, TEXT_FIELD_CONSTANTS.selectors.CLEAR_BUTTON_SLOT) as HTMLSlotElement;\n this._fieldElement.setAttribute('exportparts', Object.values(FIELD_CONSTANTS.parts).join(', '));\n this._clearButtonSlotElement.remove();\n }\n\n public addRootListener(name: keyof HTMLElementEventMap, listener: EventListener): void {\n this._fieldElement.addEventListener(name, listener);\n }\n\n public removeRootListener(name: keyof HTMLElementEventMap, listener: EventListener): void {\n this._fieldElement.removeEventListener(name, listener);\n }\n\n public disableInput(disabled: boolean): void {\n this._inputElements.forEach(el => el.disabled = disabled);\n }\n\n public inputIsDisabled(): boolean {\n return this._inputElements.some(el => el.disabled);\n }\n\n public click(): void {\n this._inputElements[0]?.focus();\n }\n\n public applyLabel(value: string | null): void {\n this._inputElements.forEach((inputElement) => {\n toggleAttribute(inputElement, !!value, 'aria-label', value ?? '');\n });\n }\n\n public handleDefaultSlotChange(slot: HTMLSlotElement, listener: TextFieldInputAttributeObserver): void {\n // Destroy the mutation observer if it exists\n this._inputMutationObserver?.disconnect();\n\n // If there are no assigned elements, return\n const assignedElements = slot.assignedElements();\n if (!assignedElements.length) {\n return;\n }\n\n // Get all the slotted inputs and textfields, if a textfield is slotted the field is multiline\n this._inputElements = assignedElements.filter(el => el.matches(TEXT_FIELD_CONSTANTS.selectors.INPUT)) as (HTMLInputElement | HTMLTextAreaElement)[];\n this._fieldElement.multiline = this._inputElements.some(el => el.tagName === TEXT_FIELD_CONSTANTS.tagNames.TEXTAREA);\n\n // Create a new mutation observer and observe each input\n this._inputMutationObserver = new MutationObserver(mutations => {\n mutations.forEach(mutation => {\n if (mutation.attributeName) {\n const element = mutation.target as HTMLElement;\n const attribute = element.getAttribute(mutation.attributeName);\n const attributeName = mutation.attributeName as keyof typeof TEXT_FIELD_CONSTANTS.observedInputAttributes;\n listener(attributeName, attribute);\n }\n });\n });\n this._inputElements.forEach(el => {\n this._inputMutationObserver?.observe(el, { attributes: true, attributeFilter: TEXT_FIELD_CONSTANTS.observedInputAttributes });\n\n // Call the listener with each observed attribute to capture the initial state\n Object.values(TEXT_FIELD_CONSTANTS.observedInputAttributes).forEach(value => {\n const attributeName = value as keyof typeof TEXT_FIELD_CONSTANTS.observedInputAttributes;\n listener(attributeName, el.getAttribute(attributeName as string));\n });\n });\n }\n\n public tryAddValueChangeListener(context: unknown, listener: TextFieldValueChangeListener): void {\n // Destroy the previous value change listeners\n this._destroyValueChangerListeners.forEach(callback => callback());\n\n // Add a new value change listener to each input\n this._destroyValueChangerListeners = this._inputElements.map(el => {\n return listenOwnProperty(context, el, 'value', listener);\n });\n }\n\n public removeValueChangeListener(): void {\n this._destroyValueChangerListeners.forEach(callback => callback());\n }\n\n public tryFloatLabel(force?: boolean): void {\n // Force the label to float if specified\n if (force !== undefined) {\n this._fieldElement.floatLabel = force;\n return;\n }\n\n // Float the label if no input has a value or a placeholder\n this._fieldElement.floatLabel = this.hasValue || this.hasPlaceholder;\n }\n\n public tryConnectSlottedLabel(slot: HTMLSlotElement): void {\n // Only one input can be automatically connected to a label, return if there are no or more\n // than one inputs or if the input is already labelled\n if (this._inputElements.length !== 1 || this._inputElements[0].labels?.length) {\n return;\n }\n\n const inputElement = this._inputElements[0];\n const elements = slot.assignedElements({ flatten: true });\n\n // Attempt to find and connect a `<forge-label>` element\n const forgeLabel = elements.find(el => el.matches(TEXT_FIELD_CONSTANTS.selectors.FORGE_LABEL)) as LabelComponent | undefined;\n if (forgeLabel) {\n forgeLabel.forElement = this._component;\n forgeLabel.clickTarget = inputElement;\n return;\n }\n \n // Attempt to find and connect a `<label>` element\n const label = elements.find(el => el.tagName === TEXT_FIELD_CONSTANTS.tagNames.LABEL) as HTMLLabelElement | undefined;\n if (!label || label.control) {\n return;\n }\n\n const id = inputElement.id || `forge-input-${randomChars()}`;\n inputElement.id = id;\n label.htmlFor = id;\n }\n\n public connectClearButton(listener: EventListener): void {\n this._clearButtonSlotElement.addEventListener('click', listener);\n }\n\n public disconnectClearButton(listener: EventListener): void {\n this._clearButtonSlotElement.removeEventListener('click', listener);\n }\n\n public toggleClearButtonVisibility(visible: boolean): void {\n if (visible) {\n this._fieldElement.append(this._clearButtonSlotElement);\n } else {\n this._clearButtonSlotElement.remove();\n }\n }\n\n public clearInput(): void {\n if (!this._inputElements.length) {\n return;\n }\n this._inputElements.forEach(el => el.value = '');\n this._inputElements[0].focus();\n }\n}\n", "import { FieldLabelPosition, FIELD_CONSTANTS } from '../field-next';\nimport { BaseFieldFoundation, IBaseFieldFoundation } from '../field-next/base/base-field-foundation';\nimport { ITextFieldAdapter, TextFieldAdapter } from './text-field-adapter';\nimport { TextFieldInputAttributeObserver, TextFieldValueChangeListener, TEXT_FIELD_CONSTANTS } from './text-field-constants';\n\nexport interface ITextFieldFoundation extends IBaseFieldFoundation {\n readonly popoverTargetElement: HTMLElement;\n showClear: boolean;\n}\n\nexport class TextFieldFoundation extends BaseFieldFoundation<ITextFieldAdapter> implements ITextFieldFoundation {\n private _showClear = false;\n private _slotChangeListener: EventListener = this._onSlotChange.bind(this);\n private _inputAttributeListener: TextFieldInputAttributeObserver = this._onInputAttributeChange.bind(this);\n private _valueChangeListener: TextFieldValueChangeListener = this._onValueChange.bind(this);\n private _inputListener: EventListener = this._onValueChange.bind(this);\n private _clearButtonClickListener: EventListener = (evt: PointerEvent) => this._onClearButtonClick(evt);\n \n constructor(protected _adapter: TextFieldAdapter) {\n super(_adapter);\n }\n\n public initialize(): void {\n this._adapter.addRootListener('slotchange', this._slotChangeListener);\n this._adapter.addRootListener('input', this._inputListener);\n }\n\n public disconnect(): void {\n this._adapter.removeRootListener('slotchange', this._slotChangeListener);\n this._adapter.removeRootListener('input', this._inputListener);\n this._adapter.removeValueChangeListener();\n }\n\n public get popoverTargetElement(): HTMLElement {\n return this._adapter.popoverTargetElement;\n }\n\n private _onSlotChange(evt: Event): void {\n const target = evt.target as HTMLSlotElement;\n switch (target.name) {\n case 'label':\n this._adapter.tryConnectSlottedLabel(target);\n break;\n case '':\n this._adapter.handleDefaultSlotChange(target, this._inputAttributeListener);\n this._adapter.tryAddValueChangeListener(this, this._valueChangeListener);\n this._tryFloatLabel();\n break;\n }\n }\n\n private _onInputAttributeChange(name: keyof typeof TEXT_FIELD_CONSTANTS.observedInputAttributes, value: string | null): void {\n switch (name) {\n case 'disabled':\n this.disabled = value !== null;\n break;\n case 'placeholder':\n this._tryFloatLabel();\n break;\n }\n }\n\n private _onClearButtonClick(evt: Event): void {\n const event = new CustomEvent(TEXT_FIELD_CONSTANTS.events.CLEAR, { bubbles: true, cancelable: true, composed: true });\n this._adapter.dispatchHostEvent(event);\n if (!event.defaultPrevented) {\n this._adapter.clearInput();\n }\n };\n\n private _onValueChange(): void {\n this._tryFloatLabel();\n this._toggleClearButtonVisibility();\n }\n\n private _toggleClearButtonVisibility(): void {\n this._adapter.toggleClearButtonVisibility(this._showClear && this._hasValue && !this.disabled);\n }\n\n public get showClear(): boolean {\n return this._showClear;\n }\n public set showClear(value: boolean) {\n if (this._showClear !== value) {\n this._showClear = value;\n this._adapter.toggleHostAttribute(TEXT_FIELD_CONSTANTS.attributes.SHOW_CLEAR, value);\n\n if (value) {\n this._adapter.connectClearButton(this._clearButtonClickListener);\n } else {\n this._adapter.disconnectClearButton(this._clearButtonClickListener);\n }\n this._toggleClearButtonVisibility();\n }\n }\n\n public override get disabled(): boolean {\n return super.disabled;\n }\n public override set disabled(value: boolean) {\n if (this._disabled !== value) {\n this._disabled = value;\n this._adapter.toggleHostAttribute(FIELD_CONSTANTS.attributes.DISABLED, value);\n this._adapter.setFieldProperty('disabled', value);\n this._adapter.disableInput(value);\n this._toggleClearButtonVisibility();\n }\n }\n\n public override get labelPosition(): FieldLabelPosition {\n return super.labelPosition;\n }\n public override set labelPosition(value: FieldLabelPosition) {\n if (this._labelPosition !== value) {\n this._labelPosition = value;\n this._adapter.toggleHostAttribute(FIELD_CONSTANTS.attributes.LABEL_POSITION, true, value);\n this._adapter.setFieldProperty('labelPosition', value);\n this._tryFloatLabel();\n }\n }\n}\n", "import { attachShadowTemplate, coerceBoolean, CustomElement, FoundationProperty } from '@tylertech/forge-core';\nimport { tylIconClear } from '@tylertech/tyler-icons/standard';\nimport { BASE_FIELD_CONSTANTS, FieldComponent, FIELD_CONSTANTS } from '../field-next';\nimport { BaseField, IBaseField } from '../field-next/base/base-field';\nimport { IconRegistry } from '../icon';\nimport { IconButtonComponent } from '../icon-button';\nimport { TooltipComponent } from '../tooltip';\nimport { TextFieldAdapter } from './text-field-adapter';\nimport { TEXT_FIELD_CONSTANTS } from './text-field-constants';\nimport { TextFieldFoundation } from './text-field-foundation';\n\nconst template = '<template><forge-field id=\\\"field\\\"><slot slot=\\\"label\\\" name=\\\"label\\\"></slot><slot slot=\\\"start\\\" name=\\\"start\\\"></slot><slot></slot><slot slot=\\\"end\\\" name=\\\"end\\\"></slot><slot slot=\\\"end\\\" name=\\\"clear-button\\\"><forge-icon-button tabindex=\\\"-1\\\" dense><forge-icon name=\\\"clear\\\"></forge-icon></forge-icon-button><forge-tooltip type=\\\"label\\\"><slot name=\\\"clear-button-tooltip\\\">Clear</slot></forge-tooltip></slot><slot slot=\\\"accessory\\\" name=\\\"accessory\\\"></slot><slot slot=\\\"support-text-start\\\" name=\\\"support-text-start\\\"></slot><slot slot=\\\"support-text-end\\\" name=\\\"support-text-end\\\"></slot><slot slot=\\\"start\\\" name=\\\"leading\\\"></slot><slot slot=\\\"end\\\" name=\\\"trailing\\\"></slot><slot slot=\\\"accessory\\\" name=\\\"addon-end\\\"></slot><slot slot=\\\"support-text-start\\\" name=\\\"helper-text\\\"></slot></forge-field></template>';\nconst styles = ':host{display:block}:host([hidden]){display:none}forge-field{display:contents}';\n\nexport interface ITextFieldComponent extends IBaseField {\n showClear: boolean;\n readonly popoverTargetElement: HTMLElement;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-text-field': ITextFieldComponent;\n }\n}\n\n/**\n * @tag forge-text-field\n * \n * @summary The Forge Text Field component wraps and styles an input or textarea element.\n * \n * @property {boolean} showClear - Whether the clear button appears when text has been entered.\n * @property {HTMLElement} popoverTargetElement - Gets a reference to the element that the popover should target for best alignment.\n * \n * @attribute {boolean} show-clear - Whether the clear button appears when text has been entered.\n * \n * @event {CustomEvent<null>} forge-text-field-clear - Dispatches when the clear button is clicked.\n * \n * @csspart root - The root container element.\n * @csspart label - The label element.\n * @csspart container - The container element surrounding the input.\n * @csspart input - The element containing te input slot.\n * @csspart start - The element containing the start slot.\n * @csspart end - The element containing the end slot.\n * @csspart popover-icon - The popover icon element.\n * @csspart accessory - The element containing the accessory slot.\n * @csspart support-text - The support text element.\n * @csspart support-text-start - The element containing the support text start slot.\n * @csspart support-text-end - The element containing the support text end slot.\n * @csspart focus-indicator - The focus indicator element.\n * \n * @slot - The default/unnamed slot for the field's input.\n * @slot label - Renders its content as a positioned label.\n * @slot start - Typically reserved for content/icons that render logically before the default slot content.\n * @slot end - Typically reserved content/icons that render logically after the default slot content.\n * @slot clear-button - Content slotted here replaces the default clear button.\n * @slot clear-button-tooltip - Sets the text content of the clear button's tooltip and accessible label.\n * @slot accessory - Used for content such as a button that is logically connected to the field but should appear distinct from the input.\n * @slot support-text-start - Used for content that provides additional information about the field. Aligns to the inline start of the field.\n * @slot support-text-end - Used for content that provides additional information about the field. Aligns to the inline end of the field.\n */\n\n@CustomElement({\n name: TEXT_FIELD_CONSTANTS.elementName,\n dependencies: [\n FieldComponent,\n IconButtonComponent,\n TooltipComponent\n ]\n})\nexport class TextFieldComponent extends BaseField<TextFieldFoundation> implements ITextFieldComponent {\n public static get observedAttributes(): string[] {\n return [\n ...Object.values(BASE_FIELD_CONSTANTS.observedAttributes),\n ...Object.values(TEXT_FIELD_CONSTANTS.observedAttributes)\n ];\n }\n\n protected readonly _foundation: TextFieldFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n this._foundation = new TextFieldFoundation(new TextFieldAdapter(this));\n IconRegistry.define(tylIconClear);\n }\n\n public connectedCallback(): void {\n this._foundation.initialize();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n super.attributeChangedCallback(name, oldValue, newValue);\n switch (name) {\n case TEXT_FIELD_CONSTANTS.attributes.SHOW_CLEAR:\n this.showClear = coerceBoolean(newValue);\n break;\n }\n }\n\n public get popoverTargetElement(): HTMLElement {\n return this._foundation.popoverTargetElement;\n }\n\n @FoundationProperty()\n public declare showClear: boolean;\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\nimport { TextFieldComponent } from './text-field';\n\nexport * from './text-field';\nexport * from './text-field-adapter';\nexport * from './text-field-constants';\nexport * from './text-field-foundation';\nexport * from './text-field-component-delegate';\n\nexport function defineTextFieldComponent(): void {\n defineCustomElement(TextFieldComponent);\n}\n"],
|
|
5
|
+
"mappings": "imBAuBO,IAAMA,EAAN,cAA+BC,CAA8C,CAuBlF,YAAYC,EAAgC,CAC1C,MAAMA,CAAS,EApBjB,KAAQ,eAA6D,CAAC,EAEtE,KAAQ,8BAAgD,CAAC,EAmBvD,KAAK,cAAgBC,EAAiBD,EAAWE,EAAqB,UAAU,KAAK,EACrF,KAAK,wBAA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SAASmB,IAAiC,CAC/CC,EAAoBC,CAAkB,CACxC",
|
|
6
|
+
"names": ["TextFieldAdapter", "BaseFieldAdapter", "component", "getShadowElement", "TEXT_FIELD_CONSTANTS", "FIELD_CONSTANTS", "el", "name", "listener", "disabled", "_a", "value", "inputElement", "toggleAttribute", "slot", "assignedElements", "mutations", "mutation", "attribute", "attributeName", "context", "callback", "listenOwnProperty", "force", "elements", "forgeLabel", "label", "id", "randomChars", "visible", "TextFieldFoundation", "BaseFieldFoundation", "_adapter", "evt", "target", "name", "value", "event", "TEXT_FIELD_CONSTANTS", "FIELD_CONSTANTS", "template", "styles", "TextFieldComponent", "BaseField", "attachShadowTemplate", "TextFieldFoundation", "TextFieldAdapter", "IconRegistry", "tylIconClear", "BASE_FIELD_CONSTANTS", "TEXT_FIELD_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "__decorateClass", "FoundationProperty", "CustomElement", "FieldComponent", "IconButtonComponent", "TooltipComponent", "defineTextFieldComponent", "defineCustomElement", "TextFieldComponent"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
|
+
* License: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import{a as t,b as p,e as C}from"./chunk.BETICEYY.js";import{a as b}from"./chunk.UQQQSJVM.js";import{a as d,e as c,k as m}from"./chunk.BIQTNLIF.js";import{k as n}from"./chunk.J2M2MXP2.js";import{d as l}from"./chunk.M3QDAYD2.js";var _='<template><div class="forge-chip-set" part="root"><slot></slot></div></template>',f=":host{display:inline-block}:host([hidden]){display:none}.forge-chip-set{--_chip-set-spacing:var(--forge-chip-set-spacing, var(--forge-spacing-xsmall, 8px))}.forge-chip-set{display:-webkit-box;display:flex;flex-wrap:wrap;gap:var(--_chip-set-spacing)}:host([vertical]) .forge-chip-set{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}",r=class extends m{constructor(){super();this._vertical=!1;this._type=p.defaults.TYPE;this._dense=!1;this._disabled=!1;this._invalid=!1;this._theme=p.defaults.THEME;c(this,_,f)}static get observedAttributes(){return Object.values(t.observedAttributes)}connectedCallback(){this.addEventListener(p.events.NAVIGATE,this._onChipNavigate.bind(this))}attributeChangedCallback(e,o,i){switch(e){case t.observedAttributes.VERTICAL:this.vertical=n(i);break;case t.observedAttributes.TYPE:this.type=i;break;case t.observedAttributes.DENSE:this.dense=n(i);break;case t.observedAttributes.DISABLED:this.disabled=n(i);break;case t.observedAttributes.INVALID:this.invalid=n(i);break;case t.observedAttributes.THEME:this.theme=i;break}}_onChipNavigate(e){let o=this._findChipDescendants().filter(h=>!h.disabled),i=o.findIndex(h=>h===e.target),a=e.detail.direction==="previous"?i-1:i+1;a>o.length-1&&(a=0);let s=o.at(a);(s==null?void 0:s.type)==="input"&&e.detail.direction==="previous"?s.focusRemoveButton():s==null||s.focus()}_findChipDescendants(){return Array.from(this.querySelectorAll(p.elementName))}_syncChipsProperty(e,o){this._findChipDescendants().forEach(a=>a[e]=o)}get vertical(){return this._vertical}set vertical(e){e=!!e,this._vertical!==e&&(this._vertical=e,this.toggleAttribute(t.attributes.VERTICAL,this._vertical))}get type(){return this._type}set type(e){this._type!==e&&(this._type=e,this._syncChipsProperty("type",this._type),this.setAttribute(t.attributes.TYPE,this._type))}get dense(){return this._dense}set dense(e){e=!!e,this._dense!==e&&(this._dense=e,this._syncChipsProperty("dense",this._dense),this.toggleAttribute(t.attributes.DENSE,this._dense))}get disabled(){return this._disabled}set disabled(e){e=!!e,this._disabled!==e&&(this._disabled=e,this._syncChipsProperty("disabled",this._disabled),this.toggleAttribute(t.attributes.DISABLED,this._disabled))}get invalid(){return this._invalid}set invalid(e){e=!!e,this._invalid!==e&&(this._invalid=e,this._syncChipsProperty("invalid",this._invalid),this.toggleAttribute(t.attributes.INVALID,this._invalid))}get theme(){return this._theme}set theme(e){this._theme!==e&&(this._theme=e,this._syncChipsProperty("theme",this._theme),this.setAttribute(t.attributes.THEME,this._theme))}};r=l([b({name:t.elementName,dependencies:[C]})],r);function H(){d(r)}export{r as a,H as b};
|
|
7
|
+
//# sourceMappingURL=chunk.2W276VOR.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/chips/chip-set/chip-set.ts", "../../src/chips/chip-set/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { attachShadowTemplate, coerceBoolean, CustomElement } from '@tylertech/forge-core';\r\nimport { BaseComponent, IBaseComponent } from '../../core/base/base-component';\r\nimport { ChipComponent, IChipComponent } from '../chip/chip';\r\nimport { ChipTheme, ChipType, CHIP_CONSTANTS, IChipNavigateEventData } from '../chip/chip-constants';\r\nimport { CHIP_SET_CONSTANTS } from './chip-set-constants';\r\n\r\nconst template = '<template><div class=\\\"forge-chip-set\\\" part=\\\"root\\\"><slot></slot></div></template>';\r\nconst styles = ':host{display:inline-block}:host([hidden]){display:none}.forge-chip-set{--_chip-set-spacing:var(--forge-chip-set-spacing, var(--forge-spacing-xsmall, 8px))}.forge-chip-set{display:-webkit-box;display:flex;flex-wrap:wrap;gap:var(--_chip-set-spacing)}:host([vertical]) .forge-chip-set{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}';\r\n\r\nexport interface IChipSetComponent extends IBaseComponent {\r\n vertical: boolean;\r\n type: ChipType;\r\n dense: boolean;\r\n disabled: boolean;\r\n invalid: boolean;\r\n theme: ChipTheme;\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n 'forge-chip-set': IChipSetComponent;\r\n }\r\n}\r\n\r\n/**\r\n * @tag forge-chip-set\r\n * \r\n * @summary Chips sets are used to group multiple chips together and orchestrate their behavior.\r\n * \r\n * @property {boolean} [vertical=false] - Whether the chip set is vertical.\r\n * @property {ChipType} [type='action'] - The type of chip.\r\n * @property {boolean} [dense=false] - Whether the chip set is dense.\r\n * @property {boolean} [disabled=false] - Whether the chip set is disabled.\r\n * @property {boolean} [invalid=false] - Whether the chip set is invalid.\r\n * @property {ChipTheme} [theme='primary'] - The theme of the chip set.\r\n * \r\n * @attribute {boolean} [vertical] - Whether the chip set is vertically oriented.\r\n * @attribute {ChipType} [type] - The type of chips.\r\n * @attribute {boolean} [dense] - Whether all chips in the chip set are dense.\r\n * @attribute {boolean} [disabled] - Whether all chips in the chip set are disabled.\r\n * @attribute {boolean} [invalid] - Whether all chips in the chip set are invalid.\r\n * @attribute {ChipTheme} [theme] - The theme of the chips.\r\n * \r\n * @cssproperty --forge-chip-set-spacing - The spacing between chips.\r\n * \r\n * @csspart root - The component's root element.\r\n * \r\n * @slot - The chips to display in the chip set.\r\n */\r\n@CustomElement({\r\n name: CHIP_SET_CONSTANTS.elementName,\r\n dependencies: [ChipComponent]\r\n})\r\nexport class ChipSetComponent extends BaseComponent implements IChipSetComponent {\r\n public static get observedAttributes(): string[] {\r\n return Object.values(CHIP_SET_CONSTANTS.observedAttributes);\r\n }\r\n \r\n private _vertical = false;\r\n private _type = CHIP_CONSTANTS.defaults.TYPE;\r\n private _dense = false;\r\n private _disabled = false;\r\n private _invalid = false;\r\n private _theme = CHIP_CONSTANTS.defaults.THEME;\r\n\r\n constructor() {\r\n super();\r\n attachShadowTemplate(this, template, styles);\r\n }\r\n\r\n public connectedCallback(): void {\r\n this.addEventListener(CHIP_CONSTANTS.events.NAVIGATE, this._onChipNavigate.bind(this));\r\n }\r\n\r\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\r\n switch (name) {\r\n case CHIP_SET_CONSTANTS.observedAttributes.VERTICAL:\r\n this.vertical = coerceBoolean(newValue);\r\n break;\r\n case CHIP_SET_CONSTANTS.observedAttributes.TYPE:\r\n this.type = newValue as ChipType;\r\n break;\r\n case CHIP_SET_CONSTANTS.observedAttributes.DENSE:\r\n this.dense = coerceBoolean(newValue);\r\n break;\r\n case CHIP_SET_CONSTANTS.observedAttributes.DISABLED:\r\n this.disabled = coerceBoolean(newValue);\r\n break;\r\n case CHIP_SET_CONSTANTS.observedAttributes.INVALID:\r\n this.invalid = coerceBoolean(newValue);\r\n break;\r\n case CHIP_SET_CONSTANTS.observedAttributes.THEME:\r\n this.theme = newValue as ChipTheme;\r\n break;\r\n }\r\n }\r\n\r\n private _onChipNavigate(evt: CustomEvent<IChipNavigateEventData>): void {\r\n const focusableChips = this._findChipDescendants().filter(chip => !chip.disabled);\r\n const activeChipIndex = focusableChips.findIndex(chip => chip === evt.target);\r\n let index = evt.detail.direction === 'previous' ? activeChipIndex - 1 : activeChipIndex + 1;\r\n if (index > focusableChips.length - 1) {\r\n index = 0;\r\n }\r\n \r\n const nextChip = focusableChips.at(index);\r\n\r\n if (nextChip?.type === 'input' && evt.detail.direction === 'previous') {\r\n nextChip.focusRemoveButton();\r\n } else {\r\n nextChip?.focus();\r\n }\r\n }\r\n\r\n private _findChipDescendants(): IChipComponent[] {\r\n return Array.from(this.querySelectorAll(CHIP_CONSTANTS.elementName));\r\n }\r\n\r\n private _syncChipsProperty<T extends keyof IChipComponent>(property: T, value: IChipComponent[T]): void {\r\n const chips = this._findChipDescendants();\r\n chips.forEach(c => c[property] = value);\r\n }\r\n\r\n public get vertical(): boolean {\r\n return this._vertical;\r\n }\r\n public set vertical(value: boolean) {\r\n value = Boolean(value);\r\n if (this._vertical !== value) {\r\n this._vertical = value;\r\n this.toggleAttribute(CHIP_SET_CONSTANTS.attributes.VERTICAL, this._vertical);\r\n }\r\n }\r\n\r\n public get type(): ChipType {\r\n return this._type;\r\n }\r\n public set type(value: ChipType) {\r\n if (this._type !== value) {\r\n this._type = value;\r\n this._syncChipsProperty('type', this._type);\r\n this.setAttribute(CHIP_SET_CONSTANTS.attributes.TYPE, this._type);\r\n }\r\n }\r\n\r\n public get dense(): boolean {\r\n return this._dense;\r\n }\r\n public set dense(value: boolean) {\r\n value = Boolean(value);\r\n if (this._dense !== value) {\r\n this._dense = value;\r\n this._syncChipsProperty('dense', this._dense);\r\n this.toggleAttribute(CHIP_SET_CONSTANTS.attributes.DENSE, this._dense);\r\n }\r\n }\r\n\r\n public get disabled(): boolean {\r\n return this._disabled;\r\n }\r\n public set disabled(value: boolean) {\r\n value = Boolean(value);\r\n if (this._disabled !== value) {\r\n this._disabled = value;\r\n this._syncChipsProperty('disabled', this._disabled);\r\n this.toggleAttribute(CHIP_SET_CONSTANTS.attributes.DISABLED, this._disabled);\r\n }\r\n }\r\n\r\n public get invalid(): boolean {\r\n return this._invalid;\r\n }\r\n public set invalid(value: boolean) {\r\n value = Boolean(value);\r\n if (this._invalid !== value) {\r\n this._invalid = value;\r\n this._syncChipsProperty('invalid', this._invalid);\r\n this.toggleAttribute(CHIP_SET_CONSTANTS.attributes.INVALID, this._invalid);\r\n }\r\n }\r\n\r\n public get theme(): ChipTheme {\r\n return this._theme;\r\n }\r\n public set theme(value: ChipTheme) {\r\n if (this._theme !== value) {\r\n this._theme = value;\r\n this._syncChipsProperty('theme', this._theme);\r\n this.setAttribute(CHIP_SET_CONSTANTS.attributes.THEME, this._theme);\r\n }\r\n }\r\n}\r\n", "import { defineCustomElement } from '@tylertech/forge-core';\r\n\r\nimport { ChipSetComponent } from './chip-set';\r\n\r\nexport * from './chip-set-constants';\r\nexport * from './chip-set';\r\n\r\nexport function defineChipSetComponent(): void {\r\n defineCustomElement(ChipSetComponent);\r\n}\r\n"],
|
|
5
|
+
"mappings": "oOAMA,IAAMA,EAAW,mFACXC,EAAS,6WA8CFC,EAAN,cAA+BC,CAA2C,CAY/E,aAAc,CACZ,MAAM,EARR,KAAQ,UAAY,GACpB,KAAQ,MAAQC,EAAe,SAAS,KACxC,KAAQ,OAAS,GACjB,KAAQ,UAAY,GACpB,KAAQ,SAAW,GACnB,KAAQ,OAASA,EAAe,SAAS,MAIvCC,EAAqB,KAAML,EAAUC,CAAM,CAC7C,CAdA,WAAkB,oBAA+B,CAC/C,OAAO,OAAO,OAAOK,EAAmB,kBAAkB,CAC5D,CAcO,mBAA0B,CAC/B,KAAK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,aAAc,CAACgB,CAAa,CAC9B,CAAC,GACYpB,GC9CN,SAASqB,GAA+B,CAC7CC,EAAoBC,CAAgB,CACtC",
|
|
6
|
+
"names": ["template", "styles", "ChipSetComponent", "BaseComponent", "CHIP_CONSTANTS", "attachShadowTemplate", "CHIP_SET_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "evt", "focusableChips", "chip", "activeChipIndex", "index", "nextChip", "property", "value", "c", "__decorateClass", "CustomElement", "ChipComponent", "defineChipSetComponent", "defineCustomElement", "ChipSetComponent"]
|
|
7
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{j as t,m as c}from"./chunk.
|
|
6
|
+
import{j as t,m as c}from"./chunk.UQQQSJVM.js";import{b as u}from"./chunk.NHOGZDLN.js";import{u as s}from"./chunk.DCCFF327.js";function b(a){class r extends a{constructor(...e){super(...e);this[t]=this.attachInternals()}}return t,r}function p(a){return a.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}function d(a,r,o,{setAttribute:i}={setAttribute:!0}){Object.entries(o).forEach(([e,n])=>{u()&&(r[e]=n);let l=p(e);(i||!a.hasAttribute(l))&&s(a,n!=null,l,n)})}function M(a){class r extends a{[c](i,e){d(this,this[t],i,e)}}return r}export{b as a,M as b};
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2023 Google LLC
|
|
@@ -12,4 +12,4 @@ import{j as t,m as c}from"./chunk.UVXKHQQZ.js";import{b as u}from"./chunk.NHOGZD
|
|
|
12
12
|
* Adapted and influenced from [Material Web](https://github.com/material-components/material-web).
|
|
13
13
|
* The original source code can be found at: [GitHub](https://github.com/material-components/material-web/blob/main/internal/aria/aria.ts)
|
|
14
14
|
*/
|
|
15
|
-
//# sourceMappingURL=chunk.
|
|
15
|
+
//# sourceMappingURL=chunk.2WRAXA3H.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{b as u}from"./chunk.F3FWXBDS.js";import{a as x}from"./chunk.KIQZLNDG.js";import{l as d}from"./chunk.4SP42UG3.js";import{a as E}from"./chunk.ZY3ETQ3D.js";import{a as p}from"./chunk.NVUMRW44.js";import{a as _,b as v}from"./chunk.UVXKHQQZ.js";import{a as b,e as f,f as s,k as T}from"./chunk.TPXXHX5J.js";import{a as c,d as o}from"./chunk.M3QDAYD2.js";var A=`${v}app-bar`,y={TITLE_TEXT:"title-text",ELEVATION:"elevation",THEME:"theme",HREF:"href",TARGET:"target"},C=c({},y),w={NO_CENTER:"no-center",LOGO_TITLE_CONTAINER:"logo-title-container"},N={ROOT:".forge-app-bar",TITLE:".title",LOGO_TITLE_CONTAINER:".logo-title-container",CENTER_SLOT:"slot[name=center]",CENTER_SECTION:"#center-section"},e={elementName:A,selectors:N,attributes:C,classes:w};var l=class extends E{constructor(r){super(r);this._rootElement=s(r,e.selectors.ROOT),this._titleElement=s(r,e.selectors.TITLE),this._logoTitleContainerElement=s(r,e.selectors.LOGO_TITLE_CONTAINER),this._centerSectionElement=s(r,e.selectors.CENTER_SECTION),this._centerSlotElement=s(r,e.selectors.CENTER_SLOT)}initialize(){this._component.hasAttribute("role")||this._component.setAttribute("role","banner")}setTitleText(r){this._titleElement.textContent=r}setHref(r){var a,m;let n=this._logoTitleContainerElement.tagName==="A";r?(n||this._createAnchorElement(),this._logoTitleContainerElement.href=r):n&&(this._logoTitleContainerElement=d(this._logoTitleContainerElement,document.createElement("div")),this._logoTitleContainerElement.classList.add(e.classes.LOGO_TITLE_CONTAINER),(a=this._logoTitleContainerElement.querySelector(x.elementName))==null||a.remove(),(m=this._logoTitleContainerElement.querySelector(u.elementName))==null||m.remove())}setTarget(r){this._logoTitleContainerElement.tagName==="A"&&(this._logoTitleContainerElement.target=r)}addCenterSlotListener(r){this._centerSlotElement.addEventListener("slotchange",r)}setCenterSlotVisibility(){this._centerSlotElement.assignedNodes().length?(this._centerSectionElement.style.removeProperty("display"),this._rootElement.classList.remove(e.classes.NO_CENTER)):(this._centerSectionElement.style.display="none",this._rootElement.classList.add(e.classes.NO_CENTER))}_createAnchorElement(){this._logoTitleContainerElement=d(this._logoTitleContainerElement,document.createElement("a")),this._logoTitleContainerElement.classList.add(e.classes.LOGO_TITLE_CONTAINER);let r=document.createElement("forge-state-layer"),n=document.createElement("forge-focus-indicator");n.inward=!0,this._logoTitleContainerElement.append(r,n)}};var g=class{constructor(t){this._adapter=t;this._titleText="";this._elevation="raised";this._href="";this._target="";this._centerSlotListener=t=>this._adapter.setCenterSlotVisibility()}initialize(){this._adapter.initialize(),this._adapter.addCenterSlotListener(this._centerSlotListener),this._adapter.setCenterSlotVisibility()}get titleText(){return this._titleText}set titleText(t){this._titleText!==t&&(this._titleText=t!=null?t:"",this._adapter.setTitleText(this._titleText),this._adapter.setHostAttribute(e.attributes.TITLE_TEXT,t))}get elevation(){return this._elevation}set elevation(t){this._elevation!==t&&(this._elevation=t,this._adapter.setHostAttribute(e.attributes.ELEVATION,t))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t!=null?t:"",this._adapter.toggleHostAttribute(e.attributes.THEME,!!this._theme,this._theme))}get href(){var t;return(t=this._href)!=null?t:""}set href(t){this._href!==t&&(this._href=t!=null&&t.trim().length?t.trim():"",this._adapter.setHref(this._href),this._adapter.toggleHostAttribute(e.attributes.HREF,!!this._href,this._href))}get target(){var t;return(t=this._target)!=null?t:""}set target(t){this._target!==t&&(this._target=t!=null&&t.trim().length?t.trim():"",this._adapter.setTarget(this._target),this._adapter.toggleHostAttribute(e.attributes.TARGET,!!this._target,this._target))}};var L='<template><div class="forge-app-bar" part="root"><div class="row"><div class="section"><slot name="start"></slot><div class="logo-title-container"><slot name="logo"></slot><slot name="title"><h1 class="title" part="title"></h1></slot></div></div><div id="center-section" class="section"><slot name="center"></slot></div><div class="section"><slot name="end"></slot></div></div><div><slot name="bottom"></slot></div></div></template>',I=':host{--_app-bar-background:var(--forge-app-bar-background, var(--forge-theme-brand, #283593));--_app-bar-foreground:var(--forge-app-bar-foreground, var(--forge-theme-on-brand, #ffffff))}:host{display:block}:host([hidden]){display:none}:host(:not(theme)){--forge-theme-primary:var(--_app-bar-foreground);--forge-theme-on-primary:rgba(0, 0, 0, 0.87);--forge-theme-text-high:rgba(255, 255, 255, 0.87);--forge-theme-text-medium:rgba(255, 255, 255, 0.54);--forge-theme-text-low:rgba(255, 255, 255, 0.38)}.forge-app-bar{--_app-bar-z-index:var(--forge-app-bar-z-index, var(--forge-z-index-header, 4));--_app-bar-elevation:var(--forge-app-bar-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_app-bar-height:var(--forge-app-bar-height, 56px);--_app-bar-row-padding:var(--forge-app-bar-row-padding, var(--forge-spacing-xxsmall, 4px));--_app-bar-logo-gap:var(--forge-app-bar-logo-gap, var(--forge-spacing-medium, 16px));--_app-bar-logo-font-size:var(--forge-app-bar-logo-font-size, calc(var(--forge-typography-font-size, 1rem) * 2.5));--_app-bar-title-padding:var(--forge-app-bar-title-padding, var(--forge-spacing-xsmall, 8px));--_app-bar-transition-duration:var(--forge-app-bar-transition-duration, var(--forge-animation-duration-short4, 200ms));--_app-bar-transition-timing:var(--forge-app-bar-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-app-bar{background:var(--_app-bar-background);color:var(--_app-bar-foreground);position:relative;z-index:var(--_app-bar-z-index);display:grid;grid-template-rows:1fr auto;-webkit-transition-property:background-color,-webkit-box-shadow;transition-property:background-color,-webkit-box-shadow;transition-property:box-shadow,background-color;transition-property:box-shadow,background-color,-webkit-box-shadow;-webkit-transition-duration:var(--_app-bar-transition-duration);transition-duration:var(--_app-bar-transition-duration);-webkit-transition-timing-function:var(--_app-bar-transition-timing);transition-timing-function:var(--_app-bar-transition-timing);-webkit-box-sizing:border-box;box-sizing:border-box;width:100%}.forge-app-bar .row{display:grid;-webkit-box-align:center;align-items:center;grid-template-columns:1fr 1fr 1fr;height:var(--_app-bar-height);padding-inline:var(--_app-bar-row-padding)}.forge-app-bar.no-center .row{grid-template-columns:1fr auto}.forge-app-bar .section{display:-webkit-inline-box;display:inline-flex;-webkit-box-flex:1;flex:1 1 auto;-webkit-box-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;min-width:0;height:100%}.forge-app-bar .section:not(:last-child):not(:first-child){-webkit-box-pack:center;justify-content:center}.forge-app-bar .section:last-child{justify-self:end}.forge-app-bar h1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading4-font-size-scale, 1.25)));font-weight:var(--forge-typography-heading4-font-weight,500);line-height:var(--forge-typography-heading4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading4-line-height-scale, 1.5)));letter-spacing:var(--forge-typography-heading4-letter-spacing, .005em);text-transform:var(--forge-typography-heading4-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-heading4-text-decoration,inherit);text-decoration:var(--forge-typography-heading4-text-decoration,inherit);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forge-app-bar a{outline:0;text-decoration:none;color:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%}.forge-app-bar a forge-state-layer{--forge-state-layer-color:var(--_app-bar-foreground)}.forge-app-bar a forge-focus-indicator{--forge-focus-indicator-color:var(--_app-bar-foreground);--forge-focus-indicator-shape:4px;--forge-focus-indicator-offset-block:4px}.forge-app-bar .logo-title-container{position:relative;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;gap:var(--_app-bar-logo-gap);min-width:0;padding-inline:var(--_app-bar-title-padding)}:host(:is(:not([elevation]),[elevation=raised])) .forge-app-bar{-webkit-box-shadow:var(--_app-bar-elevation);box-shadow:var(--_app-bar-elevation)}::slotted(forge-tab-bar){--forge-tab-bar-divider-thickness:0}::slotted([slot=logo]){font-size:var(--_app-bar-logo-font-size);height:1em;width:1em}::slotted(forge-app-bar-search[slot=center]){width:100%}:host([theme=white]){--forge-theme-primary:black;--forge-theme-on-primary:rgba(255, 255, 255, 0.87);--forge-theme-text-medium:rgba(0, 0, 0, 0.54)}:host([theme=white]) .forge-app-bar{--_app-bar-background:var(--forge-app-bar-background, white);--_app-bar-foreground:var(--forge-app-bar-foreground, black)}',i=class extends T{constructor(){super();f(this,L,I),this._foundation=new g(new l(this))}static get observedAttributes(){return[e.attributes.TITLE_TEXT,e.attributes.ELEVATION,e.attributes.THEME,e.attributes.HREF,e.attributes.TARGET]}connectedCallback(){this._foundation.initialize()}attributeChangedCallback(r,n,a){switch(r){case e.attributes.TITLE_TEXT:this.titleText=a;break;case e.attributes.ELEVATION:this.elevation=a;break;case e.attributes.THEME:this.theme=a;break;case e.attributes.HREF:this.href=a;break;case e.attributes.TARGET:this.target=a;break}}};o([p()],i.prototype,"titleText",2),o([p()],i.prototype,"elevation",2),o([p()],i.prototype,"theme",2),o([p()],i.prototype,"href",2),o([p()],i.prototype,"target",2),i=o([_({name:e.elementName})],i);function it(){b(i)}export{A as a,e as b,l as c,g as d,i as e,it as f};
|
|
7
|
-
//# sourceMappingURL=chunk.
|
|
6
|
+
import{b as u}from"./chunk.VBJ4WUVH.js";import{a as x}from"./chunk.AN2E2SSN.js";import{l as d}from"./chunk.SB2LOK2R.js";import{a as E}from"./chunk.6GSVB5NB.js";import{a as p}from"./chunk.NVUMRW44.js";import{a as _,b as v}from"./chunk.UQQQSJVM.js";import{a as b,e as f,f as s,k as T}from"./chunk.BIQTNLIF.js";import{a as c,d as o}from"./chunk.M3QDAYD2.js";var A=`${v}app-bar`,y={TITLE_TEXT:"title-text",ELEVATION:"elevation",THEME:"theme",HREF:"href",TARGET:"target"},C=c({},y),w={NO_CENTER:"no-center",LOGO_TITLE_CONTAINER:"logo-title-container"},N={ROOT:".forge-app-bar",TITLE:".title",LOGO_TITLE_CONTAINER:".logo-title-container",CENTER_SLOT:"slot[name=center]",CENTER_SECTION:"#center-section"},e={elementName:A,selectors:N,attributes:C,classes:w};var l=class extends E{constructor(r){super(r);this._rootElement=s(r,e.selectors.ROOT),this._titleElement=s(r,e.selectors.TITLE),this._logoTitleContainerElement=s(r,e.selectors.LOGO_TITLE_CONTAINER),this._centerSectionElement=s(r,e.selectors.CENTER_SECTION),this._centerSlotElement=s(r,e.selectors.CENTER_SLOT)}initialize(){this._component.hasAttribute("role")||this._component.setAttribute("role","banner")}setTitleText(r){this._titleElement.textContent=r}setHref(r){var a,m;let n=this._logoTitleContainerElement.tagName==="A";r?(n||this._createAnchorElement(),this._logoTitleContainerElement.href=r):n&&(this._logoTitleContainerElement=d(this._logoTitleContainerElement,document.createElement("div")),this._logoTitleContainerElement.classList.add(e.classes.LOGO_TITLE_CONTAINER),(a=this._logoTitleContainerElement.querySelector(x.elementName))==null||a.remove(),(m=this._logoTitleContainerElement.querySelector(u.elementName))==null||m.remove())}setTarget(r){this._logoTitleContainerElement.tagName==="A"&&(this._logoTitleContainerElement.target=r)}addCenterSlotListener(r){this._centerSlotElement.addEventListener("slotchange",r)}setCenterSlotVisibility(){this._centerSlotElement.assignedNodes().length?(this._centerSectionElement.style.removeProperty("display"),this._rootElement.classList.remove(e.classes.NO_CENTER)):(this._centerSectionElement.style.display="none",this._rootElement.classList.add(e.classes.NO_CENTER))}_createAnchorElement(){this._logoTitleContainerElement=d(this._logoTitleContainerElement,document.createElement("a")),this._logoTitleContainerElement.classList.add(e.classes.LOGO_TITLE_CONTAINER);let r=document.createElement("forge-state-layer"),n=document.createElement("forge-focus-indicator");n.inward=!0,this._logoTitleContainerElement.append(r,n)}};var g=class{constructor(t){this._adapter=t;this._titleText="";this._elevation="raised";this._href="";this._target="";this._centerSlotListener=t=>this._adapter.setCenterSlotVisibility()}initialize(){this._adapter.initialize(),this._adapter.addCenterSlotListener(this._centerSlotListener),this._adapter.setCenterSlotVisibility()}get titleText(){return this._titleText}set titleText(t){this._titleText!==t&&(this._titleText=t!=null?t:"",this._adapter.setTitleText(this._titleText),this._adapter.setHostAttribute(e.attributes.TITLE_TEXT,t))}get elevation(){return this._elevation}set elevation(t){this._elevation!==t&&(this._elevation=t,this._adapter.setHostAttribute(e.attributes.ELEVATION,t))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t!=null?t:"",this._adapter.toggleHostAttribute(e.attributes.THEME,!!this._theme,this._theme))}get href(){var t;return(t=this._href)!=null?t:""}set href(t){this._href!==t&&(this._href=t!=null&&t.trim().length?t.trim():"",this._adapter.setHref(this._href),this._adapter.toggleHostAttribute(e.attributes.HREF,!!this._href,this._href))}get target(){var t;return(t=this._target)!=null?t:""}set target(t){this._target!==t&&(this._target=t!=null&&t.trim().length?t.trim():"",this._adapter.setTarget(this._target),this._adapter.toggleHostAttribute(e.attributes.TARGET,!!this._target,this._target))}};var L='<template><div class="forge-app-bar" part="root"><div class="row"><div class="section"><slot name="start"></slot><div class="logo-title-container"><slot name="logo"></slot><slot name="title"><h1 class="title" part="title"></h1></slot></div></div><div id="center-section" class="section"><slot name="center"></slot></div><div class="section"><slot name="end"></slot></div></div><div><slot name="bottom"></slot></div></div></template>',I=':host{--_app-bar-background:var(--forge-app-bar-background, var(--forge-theme-brand, #283593));--_app-bar-foreground:var(--forge-app-bar-foreground, var(--forge-theme-on-brand, #ffffff))}:host{display:block}:host([hidden]){display:none}:host(:not(theme)){--forge-theme-primary:var(--_app-bar-foreground);--forge-theme-on-primary:rgba(0, 0, 0, 0.87);--forge-theme-text-high:rgba(255, 255, 255, 0.87);--forge-theme-text-medium:rgba(255, 255, 255, 0.54);--forge-theme-text-low:rgba(255, 255, 255, 0.38)}.forge-app-bar{--_app-bar-z-index:var(--forge-app-bar-z-index, var(--forge-z-index-header, 4));--_app-bar-elevation:var(--forge-app-bar-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_app-bar-height:var(--forge-app-bar-height, 56px);--_app-bar-row-padding:var(--forge-app-bar-row-padding, var(--forge-spacing-xxsmall, 4px));--_app-bar-logo-gap:var(--forge-app-bar-logo-gap, var(--forge-spacing-medium, 16px));--_app-bar-logo-font-size:var(--forge-app-bar-logo-font-size, calc(var(--forge-typography-font-size, 1rem) * 2.5));--_app-bar-title-padding:var(--forge-app-bar-title-padding, var(--forge-spacing-xsmall, 8px));--_app-bar-transition-duration:var(--forge-app-bar-transition-duration, var(--forge-animation-duration-short4, 200ms));--_app-bar-transition-timing:var(--forge-app-bar-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-app-bar{background:var(--_app-bar-background);color:var(--_app-bar-foreground);position:relative;z-index:var(--_app-bar-z-index);display:grid;grid-template-rows:1fr auto;-webkit-transition-property:background-color,-webkit-box-shadow;transition-property:background-color,-webkit-box-shadow;transition-property:box-shadow,background-color;transition-property:box-shadow,background-color,-webkit-box-shadow;-webkit-transition-duration:var(--_app-bar-transition-duration);transition-duration:var(--_app-bar-transition-duration);-webkit-transition-timing-function:var(--_app-bar-transition-timing);transition-timing-function:var(--_app-bar-transition-timing);-webkit-box-sizing:border-box;box-sizing:border-box;width:100%}.forge-app-bar .row{display:grid;-webkit-box-align:center;align-items:center;grid-template-columns:1fr 1fr 1fr;height:var(--_app-bar-height);padding-inline:var(--_app-bar-row-padding)}.forge-app-bar.no-center .row{grid-template-columns:1fr auto}.forge-app-bar .section{display:-webkit-inline-box;display:inline-flex;-webkit-box-flex:1;flex:1 1 auto;-webkit-box-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;min-width:0;height:100%}.forge-app-bar .section:not(:last-child):not(:first-child){-webkit-box-pack:center;justify-content:center}.forge-app-bar .section:last-child{justify-self:end}.forge-app-bar h1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading4-font-size-scale, 1.25)));font-weight:var(--forge-typography-heading4-font-weight,500);line-height:var(--forge-typography-heading4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading4-line-height-scale, 1.5)));letter-spacing:var(--forge-typography-heading4-letter-spacing, .005em);text-transform:var(--forge-typography-heading4-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-heading4-text-decoration,inherit);text-decoration:var(--forge-typography-heading4-text-decoration,inherit);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forge-app-bar a{outline:0;text-decoration:none;color:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%}.forge-app-bar a forge-state-layer{--forge-state-layer-color:var(--_app-bar-foreground)}.forge-app-bar a forge-focus-indicator{--forge-focus-indicator-color:var(--_app-bar-foreground);--forge-focus-indicator-shape:4px;--forge-focus-indicator-offset-block:4px}.forge-app-bar .logo-title-container{position:relative;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;gap:var(--_app-bar-logo-gap);min-width:0;padding-inline:var(--_app-bar-title-padding)}:host(:is(:not([elevation]),[elevation=raised])) .forge-app-bar{-webkit-box-shadow:var(--_app-bar-elevation);box-shadow:var(--_app-bar-elevation)}::slotted(forge-tab-bar){--forge-tab-bar-divider-thickness:0}::slotted([slot=logo]){font-size:var(--_app-bar-logo-font-size);height:1em;width:1em}::slotted(forge-app-bar-search[slot=center]){width:100%}:host([theme=white]){--forge-theme-primary:black;--forge-theme-on-primary:rgba(255, 255, 255, 0.87);--forge-theme-text-medium:rgba(0, 0, 0, 0.54)}:host([theme=white]) .forge-app-bar{--_app-bar-background:var(--forge-app-bar-background, white);--_app-bar-foreground:var(--forge-app-bar-foreground, black)}',i=class extends T{constructor(){super();f(this,L,I),this._foundation=new g(new l(this))}static get observedAttributes(){return[e.attributes.TITLE_TEXT,e.attributes.ELEVATION,e.attributes.THEME,e.attributes.HREF,e.attributes.TARGET]}connectedCallback(){this._foundation.initialize()}attributeChangedCallback(r,n,a){switch(r){case e.attributes.TITLE_TEXT:this.titleText=a;break;case e.attributes.ELEVATION:this.elevation=a;break;case e.attributes.THEME:this.theme=a;break;case e.attributes.HREF:this.href=a;break;case e.attributes.TARGET:this.target=a;break}}};o([p()],i.prototype,"titleText",2),o([p()],i.prototype,"elevation",2),o([p()],i.prototype,"theme",2),o([p()],i.prototype,"href",2),o([p()],i.prototype,"target",2),i=o([_({name:e.elementName})],i);function it(){b(i)}export{A as a,e as b,l as c,g as d,i as e,it as f};
|
|
7
|
+
//# sourceMappingURL=chunk.2XPAYTK4.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
|
+
* License: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import{a as d,b}from"./chunk.UQQQSJVM.js";import{a as n,e as s,k as l}from"./chunk.BIQTNLIF.js";import{k as i}from"./chunk.J2M2MXP2.js";import{a as r,d as a}from"./chunk.M3QDAYD2.js";var v=`${b}toolbar`,p={INVERTED:"inverted"},h=r({},p),c={TOOLBAR:"forge-toolbar"},f={TOOLBAR:`.${c.TOOLBAR}`,BEFORE_START:"slot[name=before-start]",START_SLOT:"slot[name=start]",CENTER_SLOT:"slot[name=center]",END_SLOT:"slot[name=end]",AFTER_END:"slot[name=after-end]"},e={elementName:v,observedAttributes:p,attributes:h,classes:c,selectors:f};var m='<template><div class="forge-toolbar" part="root"><div class="section" part="before-section-start"><slot name="before-start"></slot></div><div class="inner center" part="inner"><div class="section" part="section-start"><slot name="start"></slot><slot></slot></div><div class="section center" part="section-center"><slot name="center"></slot></div><div class="section end" part="section-end"><slot name="end"></slot></div></div><div class="section end" part="before-section-start"><slot name="after-end"></slot></div></div></template>',_=":host{display:block;contain:layout}:host([hidden]){display:none}.forge-toolbar{--_toolbar-background:var(--forge-toolbar-background, var(--forge-theme-surface, #ffffff));--_toolbar-height:var(--forge-toolbar-height, 56px);--_toolbar-min-height:var(--forge-toolbar-min-height, var(--_toolbar-height));--_toolbar-divider-width:var(--forge-toolbar-divider-width, var(--forge-border-thin, 1px));--_toolbar-divider-style:var(--forge-toolbar-divider-style, solid);--_toolbar-divider-color:var(--forge-toolbar-divider-color, var(--forge-theme-outline, #e0e0e0));--_toolbar-shape:var(--forge-toolbar-shape, var(--forge-shape-medium, 4px));--_toolbar-start-start-shape:var(--forge-toolbar-start-start-shape, var(--_toolbar-shape));--_toolbar-start-end-shape:var(--forge-toolbar-start-end-shape, var(--_toolbar-shape));--_toolbar-end-start-shape:var(--forge-toolbar-end-start-shape, 0);--_toolbar-end-end-shape:var(--forge-toolbar-end-end-shape, 0);--_toolbar-padding:var(--forge-toolbar-padding, var(--forge-spacing-medium, 16px));--_toolbar-padding-block:var(--forge-toolbar-padding-block, 0);--_toolbar-padding-inline:var(--forge-toolbar-padding-inline, var(--_toolbar-padding))}.forge-toolbar{display:grid;grid-template-columns:auto 1fr auto;height:var(--_toolbar-height);min-height:var(--_toolbar-min-height);-webkit-box-sizing:border-box;box-sizing:border-box;padding-inline:0;border-block-end-width:var(--_toolbar-divider-width);border-block-end-style:var(--_toolbar-divider-style);border-block-end-color:var(--_toolbar-divider-color);border-start-start-radius:var(--_toolbar-start-start-shape);border-start-end-radius:var(--_toolbar-start-end-shape);border-end-start-radius:var(--_toolbar-end-start-shape);border-end-end-radius:var(--_toolbar-end-end-shape);background:var(--_toolbar-background)}.inner{display:grid;grid-template-columns:auto 1fr auto;padding-inline:var(--_toolbar-padding-inline);padding-block:var(--_toolbar-padding-block);-webkit-box-sizing:border-box;box-sizing:border-box}.section{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.section.center{-webkit-box-pack:center;justify-content:center}.section.end{-webkit-box-pack:end;justify-content:end}:host([inverted]) .forge-toolbar{--_toolbar-start-start-shape:var(--forge-toolbar-start-start-shape, 0);--_toolbar-start-end-shape:var(--forge-toolbar-start-end-shape, 0);--_toolbar-end-start-shape:var(--_toolbar-shape);--_toolbar-end-end-shape:var(--_toolbar-shape);-webkit-border-after:none;border-block-end:none;border-block-start-width:var(--_toolbar-divider-width);border-block-start-style:var(--_toolbar-divider-style);border-block-start-color:var(--_toolbar-divider-color)}:host(:is([no-divider],[no-border])) .forge-toolbar{border:none}:host([no-padding]) .forge-toolbar{--_toolbar-padding:var(--forge-toolbar-padding, 0)}:host([auto-height]) .forge-toolbar{--_toolbar-height:var(--forge-toolbar-height, auto)}::slotted(:is(h1,h2,h3,h4,h5,h6,p)){margin:0}",o=class extends l{constructor(){super();this._inverted=!1;s(this,m,_)}static get observedAttributes(){return Object.values(e.observedAttributes)}attributeChangedCallback(t,x,g){switch(t){case e.observedAttributes.INVERTED:this.inverted=i(g);break}}get inverted(){return this._inverted}set inverted(t){this._inverted!==t&&(this._inverted=t,this.toggleAttribute(e.attributes.INVERTED,this._inverted))}};o=a([d({name:e.elementName})],o);function S(){n(o)}export{e as a,o as b,S as c};
|
|
7
|
+
//# sourceMappingURL=chunk.35MHQH7Z.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/toolbar/toolbar-constants.ts", "../../src/toolbar/toolbar.ts", "../../src/toolbar/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../constants';\r\n\r\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}toolbar`;\r\n\r\nconst observedAttributes = {\r\n INVERTED: 'inverted'\r\n};\r\n\r\nconst attributes = {\r\n ...observedAttributes\r\n};\r\n\r\nconst classes = {\r\n TOOLBAR: 'forge-toolbar'\r\n};\r\n\r\nconst selectors = {\r\n TOOLBAR: `.${classes.TOOLBAR}`,\r\n BEFORE_START: `slot[name=before-start]`,\r\n START_SLOT: `slot[name=start]`,\r\n CENTER_SLOT: `slot[name=center]`,\r\n END_SLOT: `slot[name=end]`,\r\n AFTER_END: `slot[name=after-end]`\r\n};\r\n\r\nexport const TOOLBAR_CONSTANTS = {\r\n elementName,\r\n observedAttributes,\r\n attributes,\r\n classes,\r\n selectors\r\n};\r\n", "import { CustomElement, attachShadowTemplate, coerceBoolean } from '@tylertech/forge-core';\r\nimport { BaseComponent, IBaseComponent } from '../core/base/base-component';\r\n\r\nimport { TOOLBAR_CONSTANTS } from './toolbar-constants';\r\n\r\nconst template = '<template><div class=\\\"forge-toolbar\\\" part=\\\"root\\\"><div class=\\\"section\\\" part=\\\"before-section-start\\\"><slot name=\\\"before-start\\\"></slot></div><div class=\\\"inner center\\\" part=\\\"inner\\\"><div class=\\\"section\\\" part=\\\"section-start\\\"><slot name=\\\"start\\\"></slot><slot></slot></div><div class=\\\"section center\\\" part=\\\"section-center\\\"><slot name=\\\"center\\\"></slot></div><div class=\\\"section end\\\" part=\\\"section-end\\\"><slot name=\\\"end\\\"></slot></div></div><div class=\\\"section end\\\" part=\\\"before-section-start\\\"><slot name=\\\"after-end\\\"></slot></div></div></template>';\r\nconst styles = ':host{display:block;contain:layout}:host([hidden]){display:none}.forge-toolbar{--_toolbar-background:var(--forge-toolbar-background, var(--forge-theme-surface, #ffffff));--_toolbar-height:var(--forge-toolbar-height, 56px);--_toolbar-min-height:var(--forge-toolbar-min-height, var(--_toolbar-height));--_toolbar-divider-width:var(--forge-toolbar-divider-width, var(--forge-border-thin, 1px));--_toolbar-divider-style:var(--forge-toolbar-divider-style, solid);--_toolbar-divider-color:var(--forge-toolbar-divider-color, var(--forge-theme-outline, #e0e0e0));--_toolbar-shape:var(--forge-toolbar-shape, var(--forge-shape-medium, 4px));--_toolbar-start-start-shape:var(--forge-toolbar-start-start-shape, var(--_toolbar-shape));--_toolbar-start-end-shape:var(--forge-toolbar-start-end-shape, var(--_toolbar-shape));--_toolbar-end-start-shape:var(--forge-toolbar-end-start-shape, 0);--_toolbar-end-end-shape:var(--forge-toolbar-end-end-shape, 0);--_toolbar-padding:var(--forge-toolbar-padding, var(--forge-spacing-medium, 16px));--_toolbar-padding-block:var(--forge-toolbar-padding-block, 0);--_toolbar-padding-inline:var(--forge-toolbar-padding-inline, var(--_toolbar-padding))}.forge-toolbar{display:grid;grid-template-columns:auto 1fr auto;height:var(--_toolbar-height);min-height:var(--_toolbar-min-height);-webkit-box-sizing:border-box;box-sizing:border-box;padding-inline:0;border-block-end-width:var(--_toolbar-divider-width);border-block-end-style:var(--_toolbar-divider-style);border-block-end-color:var(--_toolbar-divider-color);border-start-start-radius:var(--_toolbar-start-start-shape);border-start-end-radius:var(--_toolbar-start-end-shape);border-end-start-radius:var(--_toolbar-end-start-shape);border-end-end-radius:var(--_toolbar-end-end-shape);background:var(--_toolbar-background)}.inner{display:grid;grid-template-columns:auto 1fr auto;padding-inline:var(--_toolbar-padding-inline);padding-block:var(--_toolbar-padding-block);-webkit-box-sizing:border-box;box-sizing:border-box}.section{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.section.center{-webkit-box-pack:center;justify-content:center}.section.end{-webkit-box-pack:end;justify-content:end}:host([inverted]) .forge-toolbar{--_toolbar-start-start-shape:var(--forge-toolbar-start-start-shape, 0);--_toolbar-start-end-shape:var(--forge-toolbar-start-end-shape, 0);--_toolbar-end-start-shape:var(--_toolbar-shape);--_toolbar-end-end-shape:var(--_toolbar-shape);-webkit-border-after:none;border-block-end:none;border-block-start-width:var(--_toolbar-divider-width);border-block-start-style:var(--_toolbar-divider-style);border-block-start-color:var(--_toolbar-divider-color)}:host(:is([no-divider],[no-border])) .forge-toolbar{border:none}:host([no-padding]) .forge-toolbar{--_toolbar-padding:var(--forge-toolbar-padding, 0)}:host([auto-height]) .forge-toolbar{--_toolbar-height:var(--forge-toolbar-height, auto)}::slotted(:is(h1,h2,h3,h4,h5,h6,p)){margin:0}';\r\n\r\nexport interface IToolbarComponent extends IBaseComponent {\r\n inverted: boolean;\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n 'forge-toolbar': IToolbarComponent;\r\n }\r\n}\r\n\r\n/**\r\n * @tag forge-toolbar\r\n * \r\n * @summary\r\n * Toolbars allow you to place titles and actions within a container and align them to the start, center, or end of the toolbar.\r\n * This component is useful as headers and footers within pages, dialogs, sections... etc. to ensure consistent layout and alignment.\r\n * \r\n * @property {boolean} inverted - Controls whether a bottom divider (default) or top divider (true) is used.\r\n * \r\n * @attribute {boolean} inverted - Controls whether a bottom divider (default) or top divider (true) is used.\r\n * @attribute {boolean} no-divider - Hides the internal divider.\r\n * @attribute {boolean} no-border - Deprecated. Use no-divider instead.\r\n * @attribute {boolean} no-padding - Sets the internal padding style to 0.\r\n * @attribute {boolean} auto-height - Forces the internal container to use height: auto for dynamic content that doesn't fit the static height.\r\n * \r\n * @cssproperty --forge-theme-height - Controls the height.\r\n * @cssproperty --forge-theme-min-height - Controls the minimum height.\r\n * @cssproperty --forge-theme-surface - Controls the background-color of the toolbar.\r\n * @cssproperty --forge-toolbar-divider-width - Controls the divider width.\r\n * @cssproperty --forge-toolbar-divider-style - Controls the divider style.\r\n * @cssproperty --forge-toolbar-divider-color - Controls the divider color.\r\n * @cssproperty --forge-toolbar-shape - Controls the border radius of the toolbar.\r\n * @cssproperty --forge-toolbar-start-start-shape - Controls the border radius of the top left corner.\r\n * @cssproperty --forge-toolbar-start-end-shape - Controls the border radius of the top right corner.\r\n * @cssproperty --forge-toolbar-end-start-shape - Controls the border radius of the bottom left corner.\r\n * @cssproperty --forge-toolbar-end-end-shape - Controls the border radius of the bottom right corner.\r\n * @cssproperty --forge-toolbar-padding - Controls the left and right padding using the padding-inline style.\r\n * @cssproperty --forge-toolbar-padding-block - Controls the top and bottom padding using the padding-block style.\r\n * @cssproperty --forge-toolbar-padding-inline - Controls the left and right padding using the padding-block style.\r\n * \r\n * @csspart root - The root container element wrapping all slots and content.\r\n * @csspart inner - The internal container element for the start, center, and end slots.\r\n * @csspart before-section-start - The container element for the before-start slot.\r\n * @csspart section-start - The container element for the start slot.\r\n * @csspart section-center - The container element for the center slot.\r\n * @csspart section-end - The container element for the end slot.\r\n * @csspart after-section-end - The container element for the after-end slot.\r\n */\r\n@CustomElement({\r\n name: TOOLBAR_CONSTANTS.elementName\r\n})\r\nexport class ToolbarComponent extends BaseComponent implements IToolbarComponent {\r\n public static get observedAttributes(): string[] {\r\n return Object.values(TOOLBAR_CONSTANTS.observedAttributes);\r\n }\r\n\r\n private _inverted = false;\r\n\r\n constructor() {\r\n super();\r\n attachShadowTemplate(this, template, styles);\r\n }\r\n\r\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\r\n switch (name) {\r\n case TOOLBAR_CONSTANTS.observedAttributes.INVERTED:\r\n this.inverted = coerceBoolean(newValue);\r\n break;\r\n }\r\n }\r\n \r\n public get inverted(): boolean {\r\n return this._inverted;\r\n }\r\n public set inverted(value: boolean) {\r\n if (this._inverted !== value) {\r\n this._inverted = value;\r\n this.toggleAttribute(TOOLBAR_CONSTANTS.attributes.INVERTED, this._inverted);\r\n }\r\n }\r\n}\r\n", "import { defineCustomElement } from '@tylertech/forge-core';\r\n\r\nimport { ToolbarComponent } from './toolbar';\r\n\r\nexport * from './toolbar-constants';\r\nexport * from './toolbar';\r\n\r\nexport function defineToolbarComponent(): void {\r\n defineCustomElement(ToolbarComponent);\r\n}\r\n"],
|
|
5
|
+
"mappings": "uLAEA,IAAMA,EAA2C,GAAGC,WAE9CC,EAAqB,CACzB,SAAU,UACZ,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAU,CACd,QAAS,eACX,EAEMC,EAAY,CAChB,QAAS,IAAID,EAAQ,UACrB,aAAc,0BACd,WAAY,mBACZ,YAAa,oBACb,SAAU,iBACV,UAAW,sBACb,EAEaE,EAAoB,CAC/B,YAAAP,EACA,mBAAAE,EACA,WAAAC,EACA,QAAAE,EACA,UAAAC,CACF,EC1BA,IAAME,EAAW,uhBACXC,EAAS,g9FAqDFC,EAAN,cAA+BC,CAA2C,CAO/E,aAAc,CACZ,MAAM,EAHR,KAAQ,UAAY,GAIlBC,EAAqB,KAAMJ,EAAUC,CAAM,CAC7C,CATA,WAAkB,oBAA+B,CAC/C,OAAO,OAAO,OAAOI,EAAkB,kBAAkB,CAC3D,CASO,yBAAyBC,EAAcC,EAAkBC,EAAwB,CACtF,OAAQF,EAAM,CACZ,KAAKD,EAAkB,mBAAmB,SACxC,KAAK,SAAWI,EAAcD,CAAQ,EACtC,KACJ,CACF,CAEA,IAAW,UAAoB,CAC7B,OAAO,KAAK,SACd,CACA,IAAW,SAASE,EAAgB,CAC9B,KAAK,YAAcA,IACrB,KAAK,UAAYA,EACjB,KAAK,gBAAgBL,EAAkB,WAAW,SAAU,KAAK,SAAS,EAE9E,CACF,EA7BaH,EAANS,EAAA,CAHNC,EAAc,CACb,KAAMP,EAAkB,WAC1B,CAAC,GACYH,GCpDN,SAASW,GAA+B,CAC7CC,EAAoBC,CAAgB,CACtC",
|
|
6
|
+
"names": ["elementName", "COMPONENT_NAME_PREFIX", "observedAttributes", "attributes", "__spreadValues", "classes", "selectors", "TOOLBAR_CONSTANTS", "template", "styles", "ToolbarComponent", "BaseComponent", "attachShadowTemplate", "TOOLBAR_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "value", "__decorateClass", "CustomElement", "defineToolbarComponent", "defineCustomElement", "ToolbarComponent"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
|
+
* License: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import{a as c}from"./chunk.INQZNXG6.js";import{a as b}from"./chunk.6GSVB5NB.js";import{a as o}from"./chunk.NVUMRW44.js";import{k as p}from"./chunk.BIQTNLIF.js";import{k as s}from"./chunk.J2M2MXP2.js";import{a as d,d as l}from"./chunk.M3QDAYD2.js";var h={LABEL_POSITION:"label-position",LABEL_ALIGNMENT:"label-alignment",INVALID:"invalid",REQUIRED:"required",OPTIONAL:"optional",DISABLED:"disabled",FLOAT_LABEL:"float-label",VARIANT:"variant",THEME:"theme",SHAPE:"shape",DENSITY:"density",DENSE:"dense",POPOVER_ICON:"popover-icon",SUPPORT_TEXT_INSET:"support-text-inset"},F=d({},h),m={DEFAULT_VARIANT:"outlined",DEFAULT_THEME:"default",DEFAULT_SHAPE:"default",DEFAULT_DENSITY:"medium",DEFAULT_LABEL_POSITION:"inset",DEFAULT_LABEL_ALIGNMENT:"default",DEFAULT_SUPPORT_TEXT_INSET:"none"},t={observedAttributes:h,attributes:F,defaults:m};var A=c(p),i=class extends A{constructor(){super()}static get observedAttributes(){return Object.values(t.observedAttributes)}attributeChangedCallback(r,L,a){switch(r){case t.observedAttributes.LABEL_POSITION:this.labelPosition=a;return;case t.observedAttributes.LABEL_ALIGNMENT:this.labelAlignment=a;return;case t.observedAttributes.INVALID:this.invalid=s(a);return;case t.observedAttributes.REQUIRED:this.required=s(a);return;case t.observedAttributes.OPTIONAL:this.optional=s(a);return;case t.observedAttributes.DISABLED:this.disabled=s(a);return;case t.observedAttributes.FLOAT_LABEL:this.floatLabel=s(a);return;case t.observedAttributes.VARIANT:this.variant=a;return;case t.observedAttributes.THEME:this.theme=a;return;case t.observedAttributes.SHAPE:this.shape=a;return;case t.observedAttributes.DENSITY:this.density=a;return;case t.observedAttributes.DENSE:this.dense=s(a);return;case t.observedAttributes.POPOVER_ICON:this.popoverIcon=s(a);return;case t.observedAttributes.SUPPORT_TEXT_INSET:this.supportTextInset=a;return}}labelClickedCallback(){this._foundation.click()}labelChangedCallback(r){this._foundation.applyLabel(r)}floatLabelWithoutAnimation(r){this._foundation.floatLabelWithoutAnimation(r)}};l([o()],i.prototype,"labelPosition",2),l([o()],i.prototype,"labelAlignment",2),l([o()],i.prototype,"invalid",2),l([o()],i.prototype,"required",2),l([o()],i.prototype,"optional",2),l([o()],i.prototype,"disabled",2),l([o({name:"permanentlyFloatLabel"})],i.prototype,"floatLabel",2),l([o()],i.prototype,"variant",2),l([o()],i.prototype,"theme",2),l([o()],i.prototype,"shape",2),l([o()],i.prototype,"density",2),l([o()],i.prototype,"dense",2),l([o()],i.prototype,"popoverIcon",2),l([o()],i.prototype,"supportTextInset",2);var u=class extends b{setFieldProperty(e,r){this._fieldElement[e]=r}floatLabelWithoutAnimation(e){this._fieldElement.floatLabelWithoutAnimation(e)}};var _=class{constructor(e){this._adapter=e;this._labelPosition=t.defaults.DEFAULT_LABEL_POSITION;this._labelAlignment=t.defaults.DEFAULT_LABEL_ALIGNMENT;this._invalid=!1;this._required=!1;this._optional=!1;this._disabled=!1;this._variant=t.defaults.DEFAULT_VARIANT;this._theme=t.defaults.DEFAULT_THEME;this._shape=t.defaults.DEFAULT_SHAPE;this._density=t.defaults.DEFAULT_DENSITY;this._dense=!1;this._popoverIcon=!1;this._supportTextInset=t.defaults.DEFAULT_SUPPORT_TEXT_INSET;this._permanentlyFloatLabel=!1}get _hasValue(){return this._adapter.hasValue}get _hasPlaceholder(){return this._adapter.hasPlaceholder}click(){this._adapter.click()}applyLabel(e){this._adapter.applyLabel(e)}floatLabelWithoutAnimation(e){this._adapter.floatLabelWithoutAnimation(this._hasValue||this._hasPlaceholder||e)}_tryFloatLabel(e){if(!this._permanentlyFloatLabel){if(this._labelPosition!=="inset"){this._adapter.tryFloatLabel(!1);return}this._adapter.tryFloatLabel(e)}}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition!==e&&(this._labelPosition=e,this._adapter.setFieldProperty("labelPosition",e))}get labelAlignment(){return this._labelAlignment}set labelAlignment(e){this._labelAlignment!==e&&(this._labelAlignment=e,this._adapter.setFieldProperty("labelAlignment",e))}get invalid(){return this._invalid}set invalid(e){this._invalid!==e&&(this._invalid=e,this._adapter.setFieldProperty("invalid",e))}get required(){return this._required}set required(e){this._required!==e&&(this._required=e,this._adapter.setFieldProperty("required",e))}get optional(){return this._optional}set optional(e){this._optional!==e&&(this._optional=e,this._adapter.setFieldProperty("optional",e))}get disabled(){return this._disabled}set disabled(e){this._disabled!==e&&(this._disabled=e,this._adapter.setFieldProperty("disabled",e))}get permanentlyFloatLabel(){return this._permanentlyFloatLabel}set permanentlyFloatLabel(e){this._permanentlyFloatLabel!==e&&(this._permanentlyFloatLabel=e,this._adapter.setFieldProperty("floatLabel",e||this._hasValue||this._hasPlaceholder))}get variant(){return this._variant}set variant(e){this._variant!==e&&(this._variant=e,this._adapter.setFieldProperty("variant",e))}get theme(){return this._theme}set theme(e){this._theme!==e&&(this._theme=e,this._adapter.setFieldProperty("theme",e))}get shape(){return this._shape}set shape(e){this._shape!==e&&(this._shape=e,this._adapter.setFieldProperty("shape",e))}get density(){return this._density}set density(e){this._density!==e&&(this._density=e,this._adapter.setFieldProperty("density",e))}get dense(){return this._dense}set dense(e){this._dense!==e&&(this._dense=e,this._adapter.setFieldProperty("dense",e))}get popoverIcon(){return this._popoverIcon}set popoverIcon(e){this._popoverIcon!==e&&(this._popoverIcon=e,this._adapter.setFieldProperty("popoverIcon",e))}get supportTextInset(){return this._supportTextInset}set supportTextInset(e){this._supportTextInset!==e&&(this._supportTextInset=e,this._adapter.setFieldProperty("supportTextInset",e))}};export{t as a,i as b,u as c,_ as d};
|
|
7
|
+
//# sourceMappingURL=chunk.3TIBP6QT.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/field-next/base/base-field-constants.ts", "../../src/field-next/base/base-field.ts", "../../src/field-next/base/base-field-adapter.ts", "../../src/field-next/base/base-field-foundation.ts"],
|
|
4
|
+
"sourcesContent": ["import { Density, Theme } from '../../constants';\n\nconst observedAttributes = {\n LABEL_POSITION: 'label-position',\n LABEL_ALIGNMENT: 'label-alignment',\n INVALID: 'invalid',\n REQUIRED: 'required',\n OPTIONAL: 'optional',\n DISABLED: 'disabled',\n FLOAT_LABEL: 'float-label',\n VARIANT: 'variant',\n THEME: 'theme',\n SHAPE: 'shape',\n DENSITY: 'density',\n DENSE: 'dense',\n POPOVER_ICON: 'popover-icon',\n SUPPORT_TEXT_INSET: 'support-text-inset'\n};\n\nconst attributes = {\n ...observedAttributes\n};\n\nconst defaults = {\n DEFAULT_VARIANT: 'outlined' as FieldVariant,\n DEFAULT_THEME: 'default' as FieldTheme,\n DEFAULT_SHAPE: 'default' as FieldShape,\n DEFAULT_DENSITY: 'medium' as FieldDensity,\n DEFAULT_LABEL_POSITION: 'inset' as FieldLabelPosition,\n DEFAULT_LABEL_ALIGNMENT: 'default' as FieldLabelAlignment,\n DEFAULT_SUPPORT_TEXT_INSET: 'none' as FieldSupportTextInset\n};\n\nexport const BASE_FIELD_CONSTANTS = {\n observedAttributes,\n attributes,\n defaults\n};\n\nexport type FieldVariant = 'plain' | 'outlined' | 'tonal' | 'filled' | 'raised';\nexport type FieldTheme = Theme | 'default';\nexport type FieldShape = 'default' | 'rounded' | 'squared';\nexport type FieldDensity = Density | 'extra-small' | 'extra-large';\nexport type FieldLabelPosition = 'inline-start' | 'inline-end' | 'block-start' | 'inset' | 'none';\nexport type FieldLabelAlignment = 'default' | 'center' | 'baseline' | 'start' | 'end';\nexport type FieldSupportTextInset = 'start' | 'end' | 'both' | 'none';\n", "import { coerceBoolean, FoundationProperty } from '@tylertech/forge-core';\nimport { BaseComponent } from '../../core/base/base-component';\nimport { IWithLabelAwareness, WithLabelAwareness } from '../../core/mixins/label/with-label-aware';\nimport { IBaseFieldAdapter } from './base-field-adapter';\nimport { BASE_FIELD_CONSTANTS, FieldDensity, FieldLabelAlignment, FieldLabelPosition, FieldShape, FieldSupportTextInset, FieldTheme, FieldVariant } from './base-field-constants';\nimport { BaseFieldFoundation } from './base-field-foundation';\n\nexport interface IBaseField extends IWithLabelAwareness {\n labelPosition: FieldLabelPosition;\n labelAlignment: FieldLabelAlignment;\n invalid: boolean;\n required: boolean;\n optional: boolean;\n disabled: boolean;\n floatLabel: boolean;\n variant: FieldVariant;\n theme: FieldTheme;\n shape: FieldShape;\n density: FieldDensity;\n dense: boolean;\n popoverIcon: boolean;\n supportTextInset: FieldSupportTextInset;\n floatLabelWithoutAnimation(value: boolean): void;\n}\n\nconst BaseFieldClass = WithLabelAwareness(BaseComponent);\n\nexport abstract class BaseField<T extends BaseFieldFoundation<IBaseFieldAdapter>> extends BaseFieldClass implements IBaseField {\n public static get observedAttributes(): string[] {\n return Object.values(BASE_FIELD_CONSTANTS.observedAttributes);\n }\n\n protected abstract _foundation: T;\n\n constructor() {\n super();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case BASE_FIELD_CONSTANTS.observedAttributes.LABEL_POSITION:\n this.labelPosition = newValue as FieldLabelPosition;\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.LABEL_ALIGNMENT:\n this.labelAlignment = newValue as FieldLabelAlignment;\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.INVALID:\n this.invalid = coerceBoolean(newValue);\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.REQUIRED:\n this.required = coerceBoolean(newValue);\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.OPTIONAL:\n this.optional = coerceBoolean(newValue);\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.DISABLED:\n this.disabled = coerceBoolean(newValue);\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.FLOAT_LABEL:\n this.floatLabel = coerceBoolean(newValue);\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.VARIANT:\n this.variant = newValue as FieldVariant;\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.THEME:\n this.theme = newValue as FieldTheme;\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.SHAPE:\n this.shape = newValue as FieldShape;\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.DENSITY:\n this.density = newValue as FieldDensity;\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.DENSE:\n this.dense = coerceBoolean(newValue);\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.POPOVER_ICON:\n this.popoverIcon = coerceBoolean(newValue);\n return;\n case BASE_FIELD_CONSTANTS.observedAttributes.SUPPORT_TEXT_INSET:\n this.supportTextInset = newValue as FieldSupportTextInset;\n return;\n }\n }\n\n public labelClickedCallback(): void {\n this._foundation.click();\n }\n\n public labelChangedCallback(value: string | null): void {\n this._foundation.applyLabel(value);\n }\n\n @FoundationProperty()\n public declare labelPosition: FieldLabelPosition;\n\n @FoundationProperty()\n public declare labelAlignment: FieldLabelAlignment;\n\n @FoundationProperty()\n public declare invalid: boolean;\n\n @FoundationProperty()\n public declare required: boolean;\n\n @FoundationProperty()\n public declare optional: boolean;\n\n @FoundationProperty()\n public declare disabled: boolean;\n\n @FoundationProperty({ name: 'permanentlyFloatLabel' })\n public declare floatLabel: boolean;\n\n @FoundationProperty()\n public declare variant: FieldVariant;\n\n @FoundationProperty()\n public declare theme: FieldTheme;\n\n @FoundationProperty()\n public declare shape: FieldShape;\n\n @FoundationProperty()\n public declare density: FieldDensity;\n\n @FoundationProperty()\n public declare dense: boolean;\n\n @FoundationProperty()\n public declare popoverIcon: boolean;\n\n @FoundationProperty()\n public declare supportTextInset: FieldSupportTextInset;\n\n public floatLabelWithoutAnimation(value: boolean): void {\n this._foundation.floatLabelWithoutAnimation(value);\n }\n}\n", "import { BaseAdapter, IBaseAdapter } from '../../core/base/base-adapter';\nimport { IFieldComponent } from '../field';\nimport { IBaseField } from './base-field';\n\nexport interface IBaseFieldAdapter extends IBaseAdapter {\n click(): void;\n applyLabel(value: string | null): void;\n setFieldProperty<K extends keyof IFieldComponent>(name: K, value: IFieldComponent[K]): void;\n floatLabelWithoutAnimation(value: boolean): void;\n tryFloatLabel(force?: boolean): void;\n readonly hasValue: boolean;\n readonly hasPlaceholder: boolean;\n}\n\nexport abstract class BaseFieldAdapter extends BaseAdapter<IBaseField> implements IBaseFieldAdapter {\n protected abstract _fieldElement: IFieldComponent;\n\n public abstract click(): void;\n public abstract applyLabel(value: string | null): void;\n public abstract tryFloatLabel(force?: boolean): void;\n public abstract get hasValue(): boolean;\n public abstract get hasPlaceholder(): boolean;\n \n public setFieldProperty<K extends keyof IFieldComponent>(name: K, value: IFieldComponent[K]): void {\n this._fieldElement[name] = value;\n }\n\n public floatLabelWithoutAnimation(value: boolean): void {\n this._fieldElement.floatLabelWithoutAnimation(value);\n }\n}\n", "import { ICustomElementFoundation } from '@tylertech/forge-core';\nimport { IBaseFieldAdapter } from './base-field-adapter';\nimport { BASE_FIELD_CONSTANTS, FieldDensity, FieldLabelAlignment, FieldLabelPosition, FieldShape, FieldSupportTextInset, FieldTheme, FieldVariant } from './base-field-constants';\n\nexport interface IBaseFieldFoundation extends ICustomElementFoundation {\n labelPosition: string;\n labelAlignment: string;\n invalid: boolean;\n required: boolean;\n optional: boolean;\n disabled: boolean;\n permanentlyFloatLabel: boolean;\n variant: string;\n theme: string;\n shape: string;\n density: string;\n dense: boolean;\n popoverIcon: boolean;\n supportTextInset: string;\n click(): void;\n applyLabel(value: string | null): void;\n floatLabelWithoutAnimation(value: boolean): void;\n}\n\nexport abstract class BaseFieldFoundation<T extends IBaseFieldAdapter> implements IBaseFieldFoundation {\n protected _labelPosition = BASE_FIELD_CONSTANTS.defaults.DEFAULT_LABEL_POSITION;\n protected _labelAlignment = BASE_FIELD_CONSTANTS.defaults.DEFAULT_LABEL_ALIGNMENT;\n protected _invalid = false;\n protected _required = false;\n protected _optional = false;\n protected _disabled = false;\n protected _variant = BASE_FIELD_CONSTANTS.defaults.DEFAULT_VARIANT;\n protected _theme = BASE_FIELD_CONSTANTS.defaults.DEFAULT_THEME;\n protected _shape = BASE_FIELD_CONSTANTS.defaults.DEFAULT_SHAPE;\n protected _density = BASE_FIELD_CONSTANTS.defaults.DEFAULT_DENSITY;\n protected _dense = false;\n protected _popoverIcon = false;\n protected _supportTextInset = BASE_FIELD_CONSTANTS.defaults.DEFAULT_SUPPORT_TEXT_INSET;\n protected _permanentlyFloatLabel = false;\n \n protected get _hasValue(): boolean {\n return this._adapter.hasValue;\n }\n protected get _hasPlaceholder(): boolean {\n return this._adapter.hasPlaceholder;\n }\n\n constructor(protected _adapter: T) {}\n\n public click(): void {\n this._adapter.click();\n }\n\n public applyLabel(value: string | null): void {\n this._adapter.applyLabel(value);\n }\n\n public floatLabelWithoutAnimation(value: boolean): void {\n this._adapter.floatLabelWithoutAnimation(this._hasValue || this._hasPlaceholder || value);\n }\n\n protected _tryFloatLabel(force?: boolean): void {\n if (this._permanentlyFloatLabel) {\n return;\n }\n if (this._labelPosition !== 'inset') {\n this._adapter.tryFloatLabel(false);\n return;\n }\n this._adapter.tryFloatLabel(force);\n }\n\n public get labelPosition(): FieldLabelPosition {\n return this._labelPosition;\n }\n public set labelPosition(value: FieldLabelPosition) {\n if (this._labelPosition !== value) {\n this._labelPosition = value;\n this._adapter.setFieldProperty('labelPosition', value);\n }\n }\n\n public get labelAlignment(): FieldLabelAlignment {\n return this._labelAlignment;\n }\n public set labelAlignment(value: FieldLabelAlignment) {\n if (this._labelAlignment !== value) {\n this._labelAlignment = value;\n this._adapter.setFieldProperty('labelAlignment', value);\n }\n }\n\n public get invalid(): boolean {\n return this._invalid;\n }\n public set invalid(value: boolean) {\n if (this._invalid !== value) {\n this._invalid = value;\n this._adapter.setFieldProperty('invalid', value);\n }\n }\n\n public get required(): boolean {\n return this._required;\n }\n public set required(value: boolean) {\n if (this._required !== value) {\n this._required = value;\n this._adapter.setFieldProperty('required', value);\n }\n }\n\n public get optional(): boolean {\n return this._optional;\n }\n public set optional(value: boolean) {\n if (this._optional !== value) {\n this._optional = value;\n this._adapter.setFieldProperty('optional', value);\n }\n }\n\n public get disabled(): boolean {\n return this._disabled;\n }\n public set disabled(value: boolean) {\n if (this._disabled !== value) {\n this._disabled = value;\n this._adapter.setFieldProperty('disabled', value);\n }\n }\n\n public get permanentlyFloatLabel(): boolean {\n return this._permanentlyFloatLabel;\n }\n public set permanentlyFloatLabel(value: boolean) {\n if (this._permanentlyFloatLabel !== value) {\n this._permanentlyFloatLabel = value;\n this._adapter.setFieldProperty('floatLabel', value || this._hasValue || this._hasPlaceholder);\n }\n }\n\n public get variant(): FieldVariant {\n return this._variant;\n }\n public set variant(value: FieldVariant) {\n if (this._variant !== value) {\n this._variant = value;\n this._adapter.setFieldProperty('variant', value);\n }\n }\n\n public get theme(): FieldTheme {\n return this._theme;\n }\n public set theme(value: FieldTheme) {\n if (this._theme !== value) {\n this._theme = value;\n this._adapter.setFieldProperty('theme', value);\n }\n }\n\n public get shape(): FieldShape {\n return this._shape;\n }\n public set shape(value: FieldShape) {\n if (this._shape !== value) {\n this._shape = value;\n this._adapter.setFieldProperty('shape', value);\n }\n }\n\n public get density(): FieldDensity {\n return this._density;\n }\n public set density(value: FieldDensity) {\n if (this._density !== value) {\n this._density = value;\n this._adapter.setFieldProperty('density', value);\n }\n }\n\n public get dense(): boolean {\n return this._dense;\n }\n public set dense(value: boolean) {\n if (this._dense !== value) {\n this._dense = value;\n this._adapter.setFieldProperty('dense', value);\n }\n }\n\n public get popoverIcon(): boolean {\n return this._popoverIcon;\n }\n public set popoverIcon(value: boolean) {\n if (this._popoverIcon !== value) {\n this._popoverIcon = value;\n this._adapter.setFieldProperty('popoverIcon', value);\n }\n }\n\n public get supportTextInset(): FieldSupportTextInset {\n return this._supportTextInset;\n }\n public set supportTextInset(value: FieldSupportTextInset) {\n if (this._supportTextInset !== value) {\n this._supportTextInset = value;\n this._adapter.setFieldProperty('supportTextInset', value);\n }\n }\n}\n"],
|
|
5
|
+
"mappings": "uPAEA,IAAMA,EAAqB,CACzB,eAAgB,iBAChB,gBAAiB,kBACjB,QAAS,UACT,SAAU,WACV,SAAU,WACV,SA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ACpB,KAAK,SAAWA,EAChB,KAAK,SAAS,iBAAiB,UAAWA,CAAK,EAEnD,CAEA,IAAW,OAAiB,CAC1B,OAAO,KAAK,MACd,CACA,IAAW,MAAMA,EAAgB,CAC3B,KAAK,SAAWA,IAClB,KAAK,OAASA,EACd,KAAK,SAAS,iBAAiB,QAASA,CAAK,EAEjD,CAEA,IAAW,aAAuB,CAChC,OAAO,KAAK,YACd,CACA,IAAW,YAAYA,EAAgB,CACjC,KAAK,eAAiBA,IACxB,KAAK,aAAeA,EACpB,KAAK,SAAS,iBAAiB,cAAeA,CAAK,EAEvD,CAEA,IAAW,kBAA0C,CACnD,OAAO,KAAK,iBACd,CACA,IAAW,iBAAiBA,EAA8B,CACpD,KAAK,oBAAsBA,IAC7B,KAAK,kBAAoBA,EACzB,KAAK,SAAS,iBAAiB,mBAAoBA,CAAK,EAE5D,CACF",
|
|
6
|
+
"names": ["observedAttributes", "attributes", "__spreadValues", "defaults", "BASE_FIELD_CONSTANTS", "BaseFieldClass", "WithLabelAwareness", "BaseComponent", "BaseField", "BASE_FIELD_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "value", "__decorateClass", "FoundationProperty", "BaseFieldAdapter", "BaseAdapter", "name", "value", "BaseFieldFoundation", "_adapter", "BASE_FIELD_CONSTANTS", "value", "force"]
|
|
7
|
+
}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{d as y}from"./chunk.CLODJYSW.js";import{b as N}from"./chunk.2UVBQKJI.js";import{d as B}from"./chunk.LNMQ5A25.js";import{a as E}from"./chunk.OR5GB6X3.js";import{l as I}from"./chunk.L7BSLZCB.js";import{a as A}from"./chunk.ZY3ETQ3D.js";import{a as o}from"./chunk.NVUMRW44.js";import{a as T,b as x}from"./chunk.UVXKHQQZ.js";import{a as v,e as b,f as n,k as O}from"./chunk.TPXXHX5J.js";import{d}from"./chunk.HZUQXCOQ.js";import{k as f,l as m}from"./chunk.J2M2MXP2.js";import{a as p,b as g,d as a}from"./chunk.M3QDAYD2.js";var h=`${x}profile-card`,L={FULL_NAME:"full-name",EMAIL:"email",SIGN_OUT:"sign-out",PROFILE:"profile",SIGN_OUT_TEXT:"sign-out-text",PROFILE_TEXT:"profile-text",AVATAR_TEXT:"avatar-text",AVATAR_ICON:"avatar-icon",AVATAR_IMAGE_URL:"avatar-image-url",AVATAR_LETTER_COUNT:"avatar-letter-count"},C={FULL_NAME:".full-name",EMAIL:".email",AVATAR:".avatar > forge-avatar",ACTION_TOOLBAR:"#action-toolbar",PROFILE_BUTTON:"#profile-button",SIGN_OUT_BUTTON:"#sign-out-button"},U={SHOW_SIGN_OUT_BUTTON:!0,SHOW_PROFILE_BUTTON:!1,SIGN_OUT_BUTTON_TEXT:"Sign out",PROFILE_BUTTON_TEXT:"Profile"},P={SIGN_OUT:`${h}-sign-out`,PROFILE:`${h}-profile`},i={elementName:h,attributes:L,selectors:C,defaults:U,events:P};var l=class extends A{constructor(e){super(e);this._fullNameElement=n(e,i.selectors.FULL_NAME),this._emailElement=n(e,i.selectors.EMAIL),this._avatarElement=n(e,i.selectors.AVATAR),this._actionToolbar=n(e,i.selectors.ACTION_TOOLBAR),this._profileButton=n(e,i.selectors.PROFILE_BUTTON),this._signOutButton=n(e,i.selectors.SIGN_OUT_BUTTON)}setFullName(e){this._fullNameElement.textContent=e}setEmail(e){this._emailElement.textContent=e}setAvatarText(e){d(this._avatarElement),this._avatarElement.text=e}setAvatarIcon(e){if(e){let c=new E({props:{name:e}});this._avatarElement.replaceChildren(c.element)}else d(this._avatarElement)}setAvatarImageUrl(e){this._avatarElement.imageUrl=e}setAvatarLetterCount(e){this._avatarElement.letterCount=e}setActionToolbarVisibility(e){e?this._actionToolbar.style.removeProperty("display"):this._actionToolbar.style.display="none"}setProfileButtonVisibility(e){e?this._profileButton.style.removeProperty("display"):this._profileButton.style.display="none"}setSignOutButtonVisibility(e){e?this._signOutButton.style.removeProperty("display"):this._signOutButton.style.display="none"}setSignOutButtonText(e){this._signOutButton.textContent=e}setProfileButtonText(e){this._profileButton.textContent=e}setProfileButtonListener(e){this._profileButton.addEventListener("click",e)}setSignOutButtonListener(e){this._signOutButton.addEventListener("click",e)}requestProfileButtonFocus(e){window.requestAnimationFrame(()=>this._profileButton.focus(e))}requestSignOutButtonFocus(e){window.requestAnimationFrame(()=>this._signOutButton.focus(e))}};var u=class{constructor(t){this._adapter=t;this._showSignOutButton=i.defaults.SHOW_SIGN_OUT_BUTTON;this._showProfileButton=i.defaults.SHOW_PROFILE_BUTTON;this._signOutButtonText=i.defaults.SIGN_OUT_BUTTON_TEXT;this._profileButtonText=i.defaults.PROFILE_BUTTON_TEXT;this._profileListener=e=>this._onProfileButtonClick(e),this._signOutListener=e=>this._onSignOutButtonClick(e)}initialize(){this._adapter.setProfileButtonListener(this._profileListener),this._adapter.setSignOutButtonListener(this._signOutListener)}focus(t){this._showSignOutButton?this._adapter.requestSignOutButtonFocus(g(p({},t),{focusVisible:!0})):this._showProfileButton&&this._adapter.requestProfileButtonFocus(g(p({},t),{focusVisible:!0}))}_setActionVisibility(){let t=this._showSignOutButton||this._showProfileButton;this._adapter.setActionToolbarVisibility(t),this._adapter.setSignOutButtonVisibility(this._showSignOutButton),this._adapter.setProfileButtonVisibility(this._showProfileButton)}_onProfileButtonClick(t){t.stopPropagation(),this._adapter.emitHostEvent(i.events.PROFILE)}_onSignOutButtonClick(t){t.stopPropagation(),this._adapter.emitHostEvent(i.events.SIGN_OUT)}get fullName(){return this._fullName}set fullName(t){this._fullName!==t&&(this._fullName=t!=null?t:"",this._adapter.setFullName(this._fullName),this._avatarText||this._adapter.setAvatarText(this._fullName),this._adapter.toggleHostAttribute(i.attributes.FULL_NAME,!!this._fullName,this._fullName))}get email(){return this._email}set email(t){this._email!==t&&(this._email=t!=null?t:"",this._adapter.setEmail(this._email),this._adapter.toggleHostAttribute(i.attributes.EMAIL,!!this._email,this._email))}get avatarText(){return this._avatarText}set avatarText(t){this._avatarText!==t&&(this._avatarText=t!=null?t:"",this._adapter.setAvatarText(this._avatarText),this._adapter.toggleHostAttribute(i.attributes.AVATAR_TEXT,!!this._avatarText,this._avatarText))}get avatarIcon(){return this._avatarIcon}set avatarIcon(t){this._avatarIcon!==t&&(this._avatarIcon=t!=null?t:"",this._adapter.setAvatarIcon(this._avatarIcon),this._adapter.toggleHostAttribute(i.attributes.AVATAR_ICON,!!this._avatarIcon,this._avatarIcon))}get avatarImageUrl(){return this._avatarImageUrl}set avatarImageUrl(t){this._avatarImageUrl!==t&&(this._avatarImageUrl=t,this._adapter.setAvatarImageUrl(this._avatarImageUrl),this._adapter.toggleHostAttribute(i.attributes.AVATAR_IMAGE_URL,!!this._avatarImageUrl,this._avatarImageUrl))}get avatarLetterCount(){return this._avatarLetterCount}set avatarLetterCount(t){this._avatarLetterCount!==t&&(this._avatarLetterCount=t,this._adapter.setAvatarLetterCount(this._avatarLetterCount),this._adapter.toggleHostAttribute(i.attributes.AVATAR_LETTER_COUNT,!!this._avatarLetterCount,`${this._avatarLetterCount}`))}get signOut(){return this._showSignOutButton}set signOut(t){t=!!t,this._showSignOutButton!==t&&(this._showSignOutButton=t,this._setActionVisibility(),this._adapter.toggleHostAttribute(i.attributes.SIGN_OUT,this._showSignOutButton))}get profile(){return this._showProfileButton}set profile(t){t=!!t,this._showProfileButton!==t&&(this._showProfileButton=t,this._setActionVisibility(),this._adapter.toggleHostAttribute(i.attributes.PROFILE,this._showProfileButton))}get signOutText(){return this._signOutButtonText}set signOutText(t){if(this._signOutButtonText!==t){this._signOutButtonText=t||i.defaults.SIGN_OUT_BUTTON_TEXT,this._adapter.setSignOutButtonText(this._signOutButtonText);let e=this._signOutButtonText!==i.defaults.SIGN_OUT_BUTTON_TEXT;this._adapter.toggleHostAttribute(i.attributes.SIGN_OUT_TEXT,e,this._signOutButtonText)}}get profileText(){return this._profileButtonText}set profileText(t){if(this._profileButtonText!==t){this._profileButtonText=t||i.defaults.PROFILE_BUTTON_TEXT,this._adapter.setProfileButtonText(this._profileButtonText);let e=t!==i.defaults.PROFILE_BUTTON_TEXT;this._adapter.toggleHostAttribute(i.attributes.PROFILE_TEXT,e,this._profileButtonText)}}};var R='<template><div class="forge-profile-card" part="root"><div class="info-container"><div class="avatar"><forge-avatar part="avatar"></forge-avatar></div><div class="info-text"><div class="full-name" part="name"></div><div class="email" part="email"></div></div></div><slot></slot><forge-toolbar inverted id="action-toolbar"><forge-button variant="outlined" slot="end" style="display: none;" part="profile-button" id="profile-button">Profile</forge-button><forge-button slot="end" part="sign-out-button" id="sign-out-button">Sign out</forge-button></forge-toolbar></div></template>',S=':host{display:block}:host([hidden]){display:none}.forge-profile-card{--_profile-card-min-width:var(--forge-profile-card-min-width, 360px);--_profile-card-shape:var(--forge-profile-card-shape, var(--forge-shape-medium, 4px));--_profile-card-avatar-size:var(--forge-profile-card-avatar-size, 56px)}.forge-profile-card{min-width:var(--_profile-card-min-width);border-radius:var(--_profile-card-shape)}@media (max-width:399px){.forge-profile-card{width:100vw;min-width:unset;overflow:auto}}.forge-profile-card .info-container{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;padding-block:var(--forge-spacing-xsmall,8px);padding-inline:var(--forge-spacing-medium,16px)}.forge-profile-card .avatar{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;padding:var(--forge-spacing-xsmall,8px);-webkit-margin-end:var(--forge-spacing-medium,16px);margin-inline-end:var(--forge-spacing-medium,16px);--forge-avatar-size:var(--_profile-card-avatar-size)}.forge-profile-card .text{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.forge-profile-card .full-name{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading2-font-size-scale, 1)));font-weight:var(--forge-typography-heading2-font-weight,500);line-height:var(--forge-typography-heading2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading2-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-heading2-letter-spacing, .0125em);text-transform:var(--forge-typography-heading2-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-heading2-text-decoration,inherit);text-decoration:var(--forge-typography-heading2-text-decoration,inherit)}.forge-profile-card .email{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-subheading1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-subheading1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-subheading1-font-size-scale, .875)));font-weight:var(--forge-typography-subheading1-font-weight,400);line-height:var(--forge-typography-subheading1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-subheading1-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-subheading1-letter-spacing, normal);text-transform:var(--forge-typography-subheading1-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-subheading1-text-decoration,inherit);text-decoration:var(--forge-typography-subheading1-text-decoration,inherit);color:var(--forge-theme-text-medium,rgba(0,0,0,.6))}#action-toolbar{--forge-toolbar-padding:8px}#action-toolbar forge-button:not(:last-of-type){-webkit-margin-end:8px;margin-inline-end:8px}',r=class extends O{constructor(){super();b(this,R,S),this._foundation=new u(new l(this))}static get observedAttributes(){return[i.attributes.FULL_NAME,i.attributes.EMAIL,i.attributes.SIGN_OUT,i.attributes.PROFILE,i.attributes.SIGN_OUT_TEXT,i.attributes.PROFILE_TEXT,i.attributes.AVATAR_TEXT,i.attributes.AVATAR_ICON,i.attributes.AVATAR_IMAGE_URL,i.attributes.AVATAR_LETTER_COUNT]}connectedCallback(){this._foundation.initialize()}attributeChangedCallback(e,c,s){switch(e){case i.attributes.FULL_NAME:this.fullName=s;break;case i.attributes.EMAIL:this.email=s;break;case i.attributes.SIGN_OUT:this.signOut=f(s);break;case i.attributes.PROFILE:this.profile=f(s);break;case i.attributes.SIGN_OUT_TEXT:this.signOutText=s;break;case i.attributes.PROFILE_TEXT:this.profileText=s;break;case i.attributes.AVATAR_TEXT:this.avatarText=s;break;case i.attributes.AVATAR_ICON:this.avatarIcon=s;break;case i.attributes.AVATAR_IMAGE_URL:this.avatarImageUrl=s;break;case i.attributes.AVATAR_LETTER_COUNT:this.avatarLetterCount=m(s);break}}focus(e){this._foundation.focus(e)}};a([o()],r.prototype,"fullName",2),a([o()],r.prototype,"email",2),a([o()],r.prototype,"signOut",2),a([o()],r.prototype,"profile",2),a([o()],r.prototype,"signOutText",2),a([o()],r.prototype,"profileText",2),a([o()],r.prototype,"avatarText",2),a([o()],r.prototype,"avatarIcon",2),a([o()],r.prototype,"avatarImageUrl",2),a([o()],r.prototype,"avatarLetterCount",2),r=a([T({name:i.elementName,dependencies:[N,B,I,y]})],r);function st(){v(r)}export{i as a,l as b,u as c,r as d,st as e};
|
|
7
|
-
//# sourceMappingURL=chunk.
|
|
6
|
+
import{d as y}from"./chunk.BSV27GU7.js";import{b as N}from"./chunk.35MHQH7Z.js";import{d as B}from"./chunk.R3AWIPPK.js";import{a as E}from"./chunk.SOKORSUV.js";import{l as I}from"./chunk.CIUPY66Y.js";import{a as A}from"./chunk.6GSVB5NB.js";import{a as o}from"./chunk.NVUMRW44.js";import{a as T,b as x}from"./chunk.UQQQSJVM.js";import{a as v,e as b,f as n,k as O}from"./chunk.BIQTNLIF.js";import{d}from"./chunk.DCCFF327.js";import{k as f,l as m}from"./chunk.J2M2MXP2.js";import{a as p,b as g,d as a}from"./chunk.M3QDAYD2.js";var h=`${x}profile-card`,L={FULL_NAME:"full-name",EMAIL:"email",SIGN_OUT:"sign-out",PROFILE:"profile",SIGN_OUT_TEXT:"sign-out-text",PROFILE_TEXT:"profile-text",AVATAR_TEXT:"avatar-text",AVATAR_ICON:"avatar-icon",AVATAR_IMAGE_URL:"avatar-image-url",AVATAR_LETTER_COUNT:"avatar-letter-count"},C={FULL_NAME:".full-name",EMAIL:".email",AVATAR:".avatar > forge-avatar",ACTION_TOOLBAR:"#action-toolbar",PROFILE_BUTTON:"#profile-button",SIGN_OUT_BUTTON:"#sign-out-button"},U={SHOW_SIGN_OUT_BUTTON:!0,SHOW_PROFILE_BUTTON:!1,SIGN_OUT_BUTTON_TEXT:"Sign out",PROFILE_BUTTON_TEXT:"Profile"},P={SIGN_OUT:`${h}-sign-out`,PROFILE:`${h}-profile`},i={elementName:h,attributes:L,selectors:C,defaults:U,events:P};var l=class extends A{constructor(e){super(e);this._fullNameElement=n(e,i.selectors.FULL_NAME),this._emailElement=n(e,i.selectors.EMAIL),this._avatarElement=n(e,i.selectors.AVATAR),this._actionToolbar=n(e,i.selectors.ACTION_TOOLBAR),this._profileButton=n(e,i.selectors.PROFILE_BUTTON),this._signOutButton=n(e,i.selectors.SIGN_OUT_BUTTON)}setFullName(e){this._fullNameElement.textContent=e}setEmail(e){this._emailElement.textContent=e}setAvatarText(e){d(this._avatarElement),this._avatarElement.text=e}setAvatarIcon(e){if(e){let _=new E({props:{name:e}});this._avatarElement.replaceChildren(_.element)}else d(this._avatarElement)}setAvatarImageUrl(e){this._avatarElement.imageUrl=e}setAvatarLetterCount(e){this._avatarElement.letterCount=e}setActionToolbarVisibility(e){e?this._actionToolbar.style.removeProperty("display"):this._actionToolbar.style.display="none"}setProfileButtonVisibility(e){e?this._profileButton.style.removeProperty("display"):this._profileButton.style.display="none"}setSignOutButtonVisibility(e){e?this._signOutButton.style.removeProperty("display"):this._signOutButton.style.display="none"}setSignOutButtonText(e){this._signOutButton.textContent=e}setProfileButtonText(e){this._profileButton.textContent=e}setProfileButtonListener(e){this._profileButton.addEventListener("click",e)}setSignOutButtonListener(e){this._signOutButton.addEventListener("click",e)}requestProfileButtonFocus(e){window.requestAnimationFrame(()=>this._profileButton.focus(e))}requestSignOutButtonFocus(e){window.requestAnimationFrame(()=>this._signOutButton.focus(e))}};var u=class{constructor(t){this._adapter=t;this._showSignOutButton=i.defaults.SHOW_SIGN_OUT_BUTTON;this._showProfileButton=i.defaults.SHOW_PROFILE_BUTTON;this._signOutButtonText=i.defaults.SIGN_OUT_BUTTON_TEXT;this._profileButtonText=i.defaults.PROFILE_BUTTON_TEXT;this._profileListener=e=>this._onProfileButtonClick(e),this._signOutListener=e=>this._onSignOutButtonClick(e)}initialize(){this._adapter.setProfileButtonListener(this._profileListener),this._adapter.setSignOutButtonListener(this._signOutListener)}focus(t){this._showSignOutButton?this._adapter.requestSignOutButtonFocus(g(p({},t),{focusVisible:!0})):this._showProfileButton&&this._adapter.requestProfileButtonFocus(g(p({},t),{focusVisible:!0}))}_setActionVisibility(){let t=this._showSignOutButton||this._showProfileButton;this._adapter.setActionToolbarVisibility(t),this._adapter.setSignOutButtonVisibility(this._showSignOutButton),this._adapter.setProfileButtonVisibility(this._showProfileButton)}_onProfileButtonClick(t){t.stopPropagation(),this._adapter.emitHostEvent(i.events.PROFILE)}_onSignOutButtonClick(t){t.stopPropagation(),this._adapter.emitHostEvent(i.events.SIGN_OUT)}get fullName(){return this._fullName}set fullName(t){this._fullName!==t&&(this._fullName=t!=null?t:"",this._adapter.setFullName(this._fullName),this._avatarText||this._adapter.setAvatarText(this._fullName),this._adapter.toggleHostAttribute(i.attributes.FULL_NAME,!!this._fullName,this._fullName))}get email(){return this._email}set email(t){this._email!==t&&(this._email=t!=null?t:"",this._adapter.setEmail(this._email),this._adapter.toggleHostAttribute(i.attributes.EMAIL,!!this._email,this._email))}get avatarText(){return this._avatarText}set avatarText(t){this._avatarText!==t&&(this._avatarText=t!=null?t:"",this._adapter.setAvatarText(this._avatarText),this._adapter.toggleHostAttribute(i.attributes.AVATAR_TEXT,!!this._avatarText,this._avatarText))}get avatarIcon(){return this._avatarIcon}set avatarIcon(t){this._avatarIcon!==t&&(this._avatarIcon=t!=null?t:"",this._adapter.setAvatarIcon(this._avatarIcon),this._adapter.toggleHostAttribute(i.attributes.AVATAR_ICON,!!this._avatarIcon,this._avatarIcon))}get avatarImageUrl(){return this._avatarImageUrl}set avatarImageUrl(t){this._avatarImageUrl!==t&&(this._avatarImageUrl=t,this._adapter.setAvatarImageUrl(this._avatarImageUrl),this._adapter.toggleHostAttribute(i.attributes.AVATAR_IMAGE_URL,!!this._avatarImageUrl,this._avatarImageUrl))}get avatarLetterCount(){return this._avatarLetterCount}set avatarLetterCount(t){this._avatarLetterCount!==t&&(this._avatarLetterCount=t,this._adapter.setAvatarLetterCount(this._avatarLetterCount),this._adapter.toggleHostAttribute(i.attributes.AVATAR_LETTER_COUNT,!!this._avatarLetterCount,`${this._avatarLetterCount}`))}get signOut(){return this._showSignOutButton}set signOut(t){t=!!t,this._showSignOutButton!==t&&(this._showSignOutButton=t,this._setActionVisibility(),this._adapter.toggleHostAttribute(i.attributes.SIGN_OUT,this._showSignOutButton))}get profile(){return this._showProfileButton}set profile(t){t=!!t,this._showProfileButton!==t&&(this._showProfileButton=t,this._setActionVisibility(),this._adapter.toggleHostAttribute(i.attributes.PROFILE,this._showProfileButton))}get signOutText(){return this._signOutButtonText}set signOutText(t){if(this._signOutButtonText!==t){this._signOutButtonText=t||i.defaults.SIGN_OUT_BUTTON_TEXT,this._adapter.setSignOutButtonText(this._signOutButtonText);let e=this._signOutButtonText!==i.defaults.SIGN_OUT_BUTTON_TEXT;this._adapter.toggleHostAttribute(i.attributes.SIGN_OUT_TEXT,e,this._signOutButtonText)}}get profileText(){return this._profileButtonText}set profileText(t){if(this._profileButtonText!==t){this._profileButtonText=t||i.defaults.PROFILE_BUTTON_TEXT,this._adapter.setProfileButtonText(this._profileButtonText);let e=t!==i.defaults.PROFILE_BUTTON_TEXT;this._adapter.toggleHostAttribute(i.attributes.PROFILE_TEXT,e,this._profileButtonText)}}};var R='<template><div class="forge-profile-card" part="root"><div class="info-container"><div class="avatar"><forge-avatar part="avatar"></forge-avatar></div><div class="info-text"><div class="full-name" part="name"></div><div class="email" part="email"></div></div></div><slot></slot><forge-toolbar inverted id="action-toolbar"><forge-button variant="outlined" slot="end" style="display: none;" part="profile-button" id="profile-button">Profile</forge-button><forge-button slot="end" part="sign-out-button" id="sign-out-button">Sign out</forge-button></forge-toolbar></div></template>',S=':host{display:block}:host([hidden]){display:none}.forge-profile-card{--_profile-card-min-width:var(--forge-profile-card-min-width, 360px);--_profile-card-shape:var(--forge-profile-card-shape, var(--forge-shape-medium, 4px));--_profile-card-avatar-size:var(--forge-profile-card-avatar-size, 56px)}.forge-profile-card{min-width:var(--_profile-card-min-width);border-radius:var(--_profile-card-shape)}@media (max-width:399px){.forge-profile-card{width:100vw;min-width:unset;overflow:auto}}.forge-profile-card .info-container{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;padding-block:var(--forge-spacing-xsmall,8px);padding-inline:var(--forge-spacing-medium,16px)}.forge-profile-card .avatar{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;padding:var(--forge-spacing-xsmall,8px);-webkit-margin-end:var(--forge-spacing-medium,16px);margin-inline-end:var(--forge-spacing-medium,16px);--forge-avatar-size:var(--_profile-card-avatar-size)}.forge-profile-card .text{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.forge-profile-card .full-name{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading2-font-size-scale, 1)));font-weight:var(--forge-typography-heading2-font-weight,500);line-height:var(--forge-typography-heading2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading2-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-heading2-letter-spacing, .0125em);text-transform:var(--forge-typography-heading2-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-heading2-text-decoration,inherit);text-decoration:var(--forge-typography-heading2-text-decoration,inherit)}.forge-profile-card .email{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-subheading1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-subheading1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-subheading1-font-size-scale, .875)));font-weight:var(--forge-typography-subheading1-font-weight,400);line-height:var(--forge-typography-subheading1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-subheading1-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-subheading1-letter-spacing, normal);text-transform:var(--forge-typography-subheading1-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-subheading1-text-decoration,inherit);text-decoration:var(--forge-typography-subheading1-text-decoration,inherit);color:var(--forge-theme-text-medium,rgba(0,0,0,.6))}#action-toolbar{--forge-toolbar-background:var(--forge-theme-surface-bright, #ffffff);--forge-toolbar-padding:8px}#action-toolbar forge-button:not(:last-of-type){-webkit-margin-end:8px;margin-inline-end:8px}',r=class extends O{constructor(){super();b(this,R,S),this._foundation=new u(new l(this))}static get observedAttributes(){return[i.attributes.FULL_NAME,i.attributes.EMAIL,i.attributes.SIGN_OUT,i.attributes.PROFILE,i.attributes.SIGN_OUT_TEXT,i.attributes.PROFILE_TEXT,i.attributes.AVATAR_TEXT,i.attributes.AVATAR_ICON,i.attributes.AVATAR_IMAGE_URL,i.attributes.AVATAR_LETTER_COUNT]}connectedCallback(){this._foundation.initialize()}attributeChangedCallback(e,_,s){switch(e){case i.attributes.FULL_NAME:this.fullName=s;break;case i.attributes.EMAIL:this.email=s;break;case i.attributes.SIGN_OUT:this.signOut=f(s);break;case i.attributes.PROFILE:this.profile=f(s);break;case i.attributes.SIGN_OUT_TEXT:this.signOutText=s;break;case i.attributes.PROFILE_TEXT:this.profileText=s;break;case i.attributes.AVATAR_TEXT:this.avatarText=s;break;case i.attributes.AVATAR_ICON:this.avatarIcon=s;break;case i.attributes.AVATAR_IMAGE_URL:this.avatarImageUrl=s;break;case i.attributes.AVATAR_LETTER_COUNT:this.avatarLetterCount=m(s);break}}focus(e){this._foundation.focus(e)}};a([o()],r.prototype,"fullName",2),a([o()],r.prototype,"email",2),a([o()],r.prototype,"signOut",2),a([o()],r.prototype,"profile",2),a([o()],r.prototype,"signOutText",2),a([o()],r.prototype,"profileText",2),a([o()],r.prototype,"avatarText",2),a([o()],r.prototype,"avatarIcon",2),a([o()],r.prototype,"avatarImageUrl",2),a([o()],r.prototype,"avatarLetterCount",2),r=a([T({name:i.elementName,dependencies:[N,B,I,y]})],r);function st(){v(r)}export{i as a,l as b,u as c,r as d,st as e};
|
|
7
|
+
//# sourceMappingURL=chunk.3U222LE4.js.map
|