@tylertech/forge 3.0.0-next.13 → 3.0.0-next.14
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 +27366 -24598
- package/dist/esm/accordion/index.js +1 -1
- package/dist/esm/app-bar/app-bar/index.js +7 -0
- package/dist/esm/app-bar/app-bar/index.js.map +7 -0
- 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.FLWNOP42.js → chunk.26E4L52W.js} +2 -2
- package/dist/esm/chunks/chunk.2GJ54C3Q.js +7 -0
- package/dist/esm/chunks/chunk.2GJ54C3Q.js.map +7 -0
- package/dist/esm/chunks/{chunk.ZRSDTCSD.js → chunk.2GYZM6ZG.js} +2 -2
- package/dist/esm/chunks/chunk.2YDKRTKP.js +7 -0
- package/dist/esm/chunks/chunk.2YDKRTKP.js.map +7 -0
- package/dist/esm/chunks/chunk.3JCHXLPT.js +7 -0
- package/dist/esm/chunks/{chunk.LUNKNRRH.js.map → chunk.3JCHXLPT.js.map} +3 -3
- package/dist/esm/chunks/chunk.3PKNBYMG.js +6 -0
- package/dist/esm/chunks/chunk.3PKNBYMG.js.map +7 -0
- package/dist/esm/chunks/chunk.3RMBFRGC.js +7 -0
- package/dist/esm/chunks/{chunk.DTLZOIUQ.js → chunk.3UO6S3IK.js} +2 -2
- package/dist/esm/chunks/chunk.3ZRQFXQU.js +7 -0
- package/dist/esm/chunks/{chunk.XNFS7YIB.js.map → chunk.3ZRQFXQU.js.map} +1 -1
- package/dist/esm/chunks/{chunk.MWYQRG5W.js → chunk.4B5IOZAT.js} +2 -2
- package/dist/esm/chunks/{chunk.IDMDBMBR.js → chunk.4QDN5PM6.js} +2 -2
- package/dist/esm/chunks/{chunk.Z5RROENA.js → chunk.543K5Y4E.js} +2 -2
- package/dist/esm/chunks/{chunk.W2LN45WY.js → chunk.57PXXJA6.js} +2 -2
- package/dist/esm/chunks/{chunk.675V42JS.js → chunk.5C24LZNU.js} +2 -2
- package/dist/esm/chunks/{chunk.V24M62MC.js → chunk.5H4G6BWX.js} +2 -2
- package/dist/esm/chunks/{chunk.QLCVRJ3Q.js → chunk.5VHUMZYS.js} +2 -2
- package/dist/esm/chunks/{chunk.OWZREAT6.js → chunk.6DXDNQUR.js} +2 -2
- package/dist/esm/chunks/{chunk.7VMJLHQY.js → chunk.6Q3SV2R2.js} +2 -2
- package/dist/esm/chunks/chunk.6Y45DLA6.js +7 -0
- package/dist/esm/chunks/chunk.6Y45DLA6.js.map +7 -0
- package/dist/esm/chunks/{chunk.IHAHJPMB.js → chunk.7ABZUBTT.js} +2 -2
- package/dist/esm/chunks/{chunk.Z5ZLKM7W.js → chunk.7BGOH44S.js} +2 -2
- package/dist/esm/chunks/{chunk.LOG6GQOK.js → chunk.7DHDFH5L.js} +2 -2
- package/dist/esm/chunks/{chunk.3R4BUIQP.js → chunk.7PP6QHOM.js} +2 -2
- package/dist/esm/chunks/{chunk.YBZK6LJZ.js → chunk.7UXLLUTN.js} +2 -2
- package/dist/esm/chunks/{chunk.5RM65QPN.js → chunk.7W2UWAZX.js} +2 -2
- package/dist/esm/chunks/chunk.A72W7RW7.js +7 -0
- package/dist/esm/chunks/{chunk.STB2FEUA.js.map → chunk.A72W7RW7.js.map} +2 -2
- package/dist/esm/chunks/{chunk.6NTYTHAL.js → chunk.AEJGC4YG.js} +2 -2
- package/dist/esm/chunks/{chunk.BTXY3XMJ.js → chunk.B46Q3AFP.js} +2 -2
- package/dist/esm/chunks/{chunk.QJCNMYD3.js → chunk.BFUGFHEH.js} +2 -2
- package/dist/esm/chunks/chunk.BLW6QESQ.js +12 -0
- package/dist/esm/chunks/chunk.BLW6QESQ.js.map +7 -0
- package/dist/esm/chunks/{chunk.2ZU6LWHE.js → chunk.BMQYEYCT.js} +2 -2
- package/dist/esm/chunks/{chunk.HOLCNJXC.js → chunk.C5IB44HX.js} +2 -2
- package/dist/esm/chunks/chunk.CNRFOWHY.js +7 -0
- package/dist/esm/chunks/{chunk.QQRPV4RN.js.map → chunk.CNRFOWHY.js.map} +2 -2
- package/dist/esm/chunks/{chunk.G73KL7P2.js → chunk.CTZ3AWDW.js} +2 -2
- package/dist/esm/chunks/{chunk.YA3RDJCV.js → chunk.CZOABXEQ.js} +2 -2
- package/dist/esm/chunks/{chunk.YA3RDJCV.js.map → chunk.CZOABXEQ.js.map} +2 -2
- package/dist/esm/chunks/{chunk.QLOYOZN3.js → chunk.DD35U4AA.js} +2 -2
- package/dist/esm/chunks/{chunk.XEFWZKHQ.js → chunk.DDXIHZFX.js} +2 -2
- package/dist/esm/chunks/{chunk.MKJCHUJH.js → chunk.DOEG3DWJ.js} +2 -2
- package/dist/esm/chunks/{chunk.2MSL7CYM.js → chunk.DTKFE7YB.js} +2 -2
- package/dist/esm/chunks/{chunk.FXIWCHLW.js → chunk.E3GVKR4E.js} +2 -2
- package/dist/esm/chunks/{chunk.FFHSUJFM.js → chunk.EBSBAFCX.js} +2 -2
- package/dist/esm/chunks/{chunk.RES7WDKH.js → chunk.F2EBSV5Z.js} +2 -2
- package/dist/esm/chunks/chunk.F6KM5FO6.js +7 -0
- package/dist/esm/chunks/{chunk.5WMYF27O.js.map → chunk.F6KM5FO6.js.map} +2 -2
- package/dist/esm/chunks/{chunk.BBCZNGT3.js → chunk.FB6ZLH6P.js} +2 -2
- package/dist/esm/chunks/{chunk.VFKHRAWD.js → chunk.FQSL747N.js} +2 -2
- package/dist/esm/chunks/{chunk.JVLJH6PR.js → chunk.G2BNY5QQ.js} +2 -2
- package/dist/esm/chunks/{chunk.URJQNB3S.js → chunk.GS72TBUD.js} +2 -2
- package/dist/esm/chunks/{chunk.5PG6WIIX.js → chunk.GT3VPSXY.js} +2 -2
- package/dist/esm/chunks/{chunk.IMLJD35R.js → chunk.GWJ4QCSW.js} +2 -2
- package/dist/esm/chunks/{chunk.IISWKFCX.js → chunk.H7GW57Q6.js} +2 -2
- package/dist/esm/chunks/{chunk.BB4UF5RX.js → chunk.HHHBS6FB.js} +2 -2
- package/dist/esm/chunks/{chunk.KPJWP77R.js → chunk.I3NHK2S3.js} +2 -2
- package/dist/esm/chunks/{chunk.5N4N6DL6.js → chunk.IEB5KRFQ.js} +2 -2
- package/dist/esm/chunks/chunk.IT66AOX7.js +7 -0
- package/dist/esm/chunks/chunk.IT66AOX7.js.map +7 -0
- package/dist/esm/chunks/{chunk.BQ2X5SBP.js → chunk.IVUK3W34.js} +2 -2
- package/dist/esm/chunks/{chunk.ZGRQDDHO.js → chunk.IW7HALLT.js} +2 -2
- package/dist/esm/chunks/chunk.J2KHTGSB.js +7 -0
- package/dist/esm/chunks/chunk.J2KHTGSB.js.map +7 -0
- package/dist/esm/chunks/{chunk.7ZROQ6D3.js → chunk.J3B5CWKT.js} +2 -2
- package/dist/esm/chunks/{chunk.TBGMJQYJ.js → chunk.JVK64JDZ.js} +2 -2
- package/dist/esm/chunks/chunk.KFDYMENL.js +7 -0
- package/dist/esm/chunks/chunk.KFDYMENL.js.map +7 -0
- package/dist/esm/chunks/{chunk.AUBOJZQ7.js → chunk.KLPF4CNX.js} +2 -2
- package/dist/esm/chunks/chunk.KTYYBWTN.js +7 -0
- package/dist/esm/chunks/{chunk.QN5T26HH.js.map → chunk.KTYYBWTN.js.map} +2 -2
- package/dist/esm/chunks/{chunk.IT7XPDAV.js → chunk.L4Y4RO5O.js} +2 -2
- package/dist/esm/chunks/{chunk.IAWYYNUU.js → chunk.LCNR2RPT.js} +2 -2
- package/dist/esm/chunks/{chunk.TU74SREL.js → chunk.LMIKNDBS.js} +2 -2
- package/dist/esm/chunks/{chunk.5A2PA7TL.js → chunk.LOBKFTRM.js} +2 -2
- package/dist/esm/chunks/chunk.LOBKFTRM.js.map +7 -0
- package/dist/esm/chunks/{chunk.HSI7B43D.js → chunk.LS7WRRT2.js} +2 -2
- package/dist/esm/chunks/{chunk.HSI7B43D.js.map → chunk.LS7WRRT2.js.map} +2 -2
- package/dist/esm/chunks/{chunk.VO6YJCEU.js → chunk.LSNAGIIH.js} +2 -2
- package/dist/esm/chunks/{chunk.ARQMMZJL.js → chunk.LXX3YZYS.js} +2 -2
- package/dist/esm/chunks/chunk.MZZJY5NX.js +7 -0
- package/dist/esm/chunks/chunk.MZZJY5NX.js.map +7 -0
- package/dist/esm/chunks/{chunk.AMLT6XJP.js → chunk.NG6UZ4OL.js} +2 -2
- package/dist/esm/chunks/{chunk.YKIBREM5.js → chunk.NYYXUH3X.js} +2 -2
- package/dist/esm/chunks/{chunk.HRRJIFC5.js → chunk.NZKIFXBU.js} +2 -2
- package/dist/esm/chunks/{chunk.YAERJVPL.js → chunk.OED5UCYT.js} +2 -2
- package/dist/esm/chunks/{chunk.72JVXGHF.js → chunk.OUACQISE.js} +2 -2
- package/dist/esm/chunks/{chunk.72JVXGHF.js.map → chunk.OUACQISE.js.map} +1 -1
- package/dist/esm/chunks/{chunk.RP674CRC.js → chunk.OYO5O3NF.js} +2 -2
- package/dist/esm/chunks/{chunk.LCR4YH3O.js → chunk.P7LC3YYW.js} +2 -2
- package/dist/esm/chunks/{chunk.KV5IKYG2.js → chunk.PK7R6WDF.js} +2 -2
- package/dist/esm/chunks/{chunk.PYR2OCCH.js → chunk.PQQVUUHU.js} +2 -2
- package/dist/esm/chunks/{chunk.SLJ6HDK7.js → chunk.PSTGTQVK.js} +2 -2
- package/dist/esm/chunks/chunk.Q5Z6F3PI.js +7 -0
- package/dist/esm/chunks/chunk.Q5Z6F3PI.js.map +7 -0
- package/dist/esm/chunks/{chunk.36C6SIPW.js → chunk.QFY23EWU.js} +2 -2
- package/dist/esm/chunks/{chunk.S5QL4SPT.js → chunk.RCSBJQ4G.js} +2 -2
- package/dist/esm/chunks/chunk.RDW7Z4W5.js +7 -0
- package/dist/esm/chunks/chunk.RDW7Z4W5.js.map +7 -0
- package/dist/esm/chunks/{chunk.FYVDTZLF.js → chunk.RYNQDXFA.js} +2 -2
- package/dist/esm/chunks/{chunk.HAKF2T2D.js → chunk.RZZBM3AW.js} +2 -2
- package/dist/esm/chunks/{chunk.3ZPSN2QG.js → chunk.SNF35Y6C.js} +2 -2
- package/dist/esm/chunks/chunk.SOLF23NC.js +7 -0
- package/dist/esm/chunks/chunk.SOLF23NC.js.map +7 -0
- package/dist/esm/chunks/{chunk.XYAZVLPR.js → chunk.T34DG7BU.js} +2 -2
- package/dist/esm/chunks/chunk.TA3MVDUU.js +7 -0
- package/dist/esm/chunks/chunk.TA3MVDUU.js.map +7 -0
- package/dist/esm/chunks/{chunk.3HCYRDRI.js → chunk.THWSN3X4.js} +2 -2
- package/dist/esm/chunks/chunk.TLFCQSJN.js +7 -0
- package/dist/esm/chunks/chunk.TLFCQSJN.js.map +7 -0
- package/dist/esm/chunks/{chunk.R6LQBI42.js → chunk.TZFUKJ24.js} +2 -2
- package/dist/esm/chunks/{chunk.SIRXAA3O.js → chunk.U5WMRBSC.js} +2 -2
- package/dist/esm/chunks/chunk.URCJO73M.js +7 -0
- package/dist/esm/chunks/{chunk.WY3E33CW.js.map → chunk.URCJO73M.js.map} +2 -2
- package/dist/esm/chunks/{chunk.GNDKQPDV.js → chunk.UWZWXNTW.js} +2 -2
- package/dist/esm/chunks/{chunk.KV67JXOC.js → chunk.VD5ZL5ZN.js} +2 -2
- package/dist/esm/chunks/{chunk.G7SMCLHQ.js → chunk.VDZ7HBKM.js} +2 -2
- package/dist/esm/chunks/{chunk.NUMKGUCK.js → chunk.W324TWF2.js} +2 -2
- package/dist/esm/chunks/chunk.WQGPIOL6.js +7 -0
- package/dist/esm/chunks/chunk.WQGPIOL6.js.map +7 -0
- package/dist/esm/chunks/chunk.XDANTL6C.js +7 -0
- package/dist/esm/chunks/chunk.XDANTL6C.js.map +7 -0
- package/dist/esm/chunks/chunk.XNCBGWE4.js +7 -0
- package/dist/esm/chunks/chunk.XNCBGWE4.js.map +7 -0
- package/dist/esm/chunks/{chunk.HDG2GHKC.js → chunk.YKZ25J6B.js} +2 -2
- package/dist/esm/chunks/{chunk.7V4BDSA5.js → chunk.Z2RB75TN.js} +2 -2
- package/dist/esm/chunks/chunk.Z7PBGV4K.js +7 -0
- package/dist/esm/chunks/{chunk.AMZZKEAE.js.map → chunk.Z7PBGV4K.js.map} +4 -4
- package/dist/esm/chunks/{chunk.O6V3YNMO.js → chunk.ZSD7MMVB.js} +2 -2
- package/dist/esm/chunks/chunk.ZVJMIBUM.js +7 -0
- package/dist/esm/chunks/chunk.ZVJMIBUM.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/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/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/file-picker/index.js +1 -1
- package/dist/esm/floating-action-button/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/page-state/index.js +1 -1
- package/dist/esm/paginator/index.js +1 -1
- package/dist/esm/popup/index.js +1 -1
- package/dist/esm/product-icon/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/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/theme/forge-theme.css +1 -1
- package/esm/app-bar/app-bar/app-bar-adapter.d.ts +30 -0
- package/esm/app-bar/app-bar/app-bar-adapter.js +71 -0
- package/esm/app-bar/{app-bar-constants.d.ts → app-bar/app-bar-constants.d.ts} +7 -11
- package/esm/app-bar/app-bar/app-bar-constants.js +32 -0
- package/esm/app-bar/{app-bar-foundation.d.ts → app-bar/app-bar-foundation.d.ts} +17 -16
- package/esm/app-bar/app-bar/app-bar-foundation.js +71 -0
- package/esm/app-bar/app-bar/app-bar.d.ts +66 -0
- package/esm/app-bar/app-bar/app-bar.js +107 -0
- package/esm/app-bar/app-bar/index.d.ts +10 -0
- package/esm/app-bar/app-bar/index.js +14 -0
- package/esm/app-bar/help-button/app-bar-help-button-adapter.d.ts +8 -1
- package/esm/app-bar/help-button/app-bar-help-button-adapter.js +22 -1
- package/esm/app-bar/help-button/app-bar-help-button-constants.d.ts +7 -0
- package/esm/app-bar/help-button/app-bar-help-button-constants.js +11 -1
- package/esm/app-bar/help-button/app-bar-help-button-foundation.d.ts +4 -0
- package/esm/app-bar/help-button/app-bar-help-button-foundation.js +16 -0
- package/esm/app-bar/help-button/app-bar-help-button.d.ts +13 -2
- package/esm/app-bar/help-button/app-bar-help-button.js +26 -5
- package/esm/app-bar/index.d.ts +0 -4
- package/esm/app-bar/index.js +0 -8
- package/esm/app-bar/menu-button/app-bar-menu-button-constants.d.ts +7 -0
- package/esm/app-bar/menu-button/app-bar-menu-button-constants.js +9 -1
- package/esm/app-bar/menu-button/app-bar-menu-button.d.ts +19 -2
- package/esm/app-bar/menu-button/app-bar-menu-button.js +57 -8
- package/esm/app-bar/notification-button/app-bar-notification-button-adapter.d.ts +6 -2
- package/esm/app-bar/notification-button/app-bar-notification-button-adapter.js +17 -1
- package/esm/app-bar/notification-button/app-bar-notification-button-constants.d.ts +1 -0
- package/esm/app-bar/notification-button/app-bar-notification-button-constants.js +3 -1
- package/esm/app-bar/notification-button/app-bar-notification-button-foundation.d.ts +4 -4
- package/esm/app-bar/notification-button/app-bar-notification-button-foundation.js +9 -11
- package/esm/app-bar/notification-button/app-bar-notification-button.d.ts +17 -4
- package/esm/app-bar/notification-button/app-bar-notification-button.js +20 -5
- package/esm/app-bar/profile-button/app-bar-profile-button-adapter.d.ts +7 -1
- package/esm/app-bar/profile-button/app-bar-profile-button-adapter.js +26 -3
- package/esm/app-bar/profile-button/app-bar-profile-button-constants.d.ts +1 -3
- package/esm/app-bar/profile-button/app-bar-profile-button-constants.js +2 -4
- package/esm/app-bar/profile-button/app-bar-profile-button-foundation.d.ts +5 -2
- package/esm/app-bar/profile-button/app-bar-profile-button-foundation.js +20 -22
- package/esm/app-bar/profile-button/app-bar-profile-button.d.ts +31 -2
- package/esm/app-bar/profile-button/app-bar-profile-button.js +33 -6
- package/esm/button/base/base-button-adapter.d.ts +4 -8
- package/esm/button/base/base-button-adapter.js +5 -17
- package/esm/button/base/base-button-constants.d.ts +3 -0
- package/esm/button/base/base-button-foundation.d.ts +6 -7
- package/esm/button/base/base-button-foundation.js +10 -4
- package/esm/button/base/base-button.d.ts +3 -1
- package/esm/button/base/base-button.js +6 -0
- package/esm/button/button.js +3 -5
- package/esm/checkbox/checkbox.js +1 -1
- package/esm/circular-progress/circular-progress-adapter.d.ts +2 -2
- package/esm/circular-progress/circular-progress-adapter.js +15 -6
- package/esm/circular-progress/circular-progress-constants.d.ts +1 -2
- package/esm/circular-progress/circular-progress-constants.js +1 -2
- package/esm/circular-progress/circular-progress-foundation.d.ts +0 -1
- package/esm/circular-progress/circular-progress-foundation.js +3 -5
- package/esm/circular-progress/circular-progress.d.ts +1 -2
- package/esm/circular-progress/circular-progress.js +6 -11
- package/esm/constants.d.ts +9 -0
- package/esm/core/base/base-adapter.js +1 -1
- package/esm/core/utils/utils.d.ts +1 -1
- package/esm/floating-action-button/floating-action-button-adapter.d.ts +20 -0
- package/esm/floating-action-button/floating-action-button-adapter.js +49 -0
- package/esm/floating-action-button/floating-action-button-component-delegate.d.ts +19 -3
- package/esm/floating-action-button/floating-action-button-component-delegate.js +62 -14
- package/esm/floating-action-button/floating-action-button-constants.d.ts +19 -14
- package/esm/floating-action-button/floating-action-button-constants.js +15 -15
- package/esm/floating-action-button/floating-action-button-foundation.d.ts +27 -0
- package/esm/floating-action-button/floating-action-button-foundation.js +48 -0
- package/esm/floating-action-button/floating-action-button.d.ts +86 -25
- package/esm/floating-action-button/floating-action-button.js +117 -104
- package/esm/floating-action-button/index.d.ts +3 -1
- package/esm/floating-action-button/index.js +5 -3
- package/esm/focus-indicator/focus-indicator.js +2 -2
- package/esm/icon-button/icon-button-constants.d.ts +3 -3
- package/esm/icon-button/icon-button.d.ts +51 -0
- package/esm/icon-button/icon-button.js +54 -5
- package/esm/icon-button/index.d.ts +3 -1
- package/esm/icon-button/index.js +3 -1
- package/esm/index.js +2 -2
- package/esm/label/label-foundation.js +4 -2
- package/esm/linear-progress/linear-progress-adapter.d.ts +2 -2
- package/esm/linear-progress/linear-progress-adapter.js +14 -6
- package/esm/linear-progress/linear-progress-constants.d.ts +0 -1
- package/esm/linear-progress/linear-progress-constants.js +1 -2
- package/esm/linear-progress/linear-progress-foundation.d.ts +1 -1
- package/esm/linear-progress/linear-progress-foundation.js +2 -2
- package/esm/linear-progress/linear-progress.d.ts +1 -1
- package/esm/linear-progress/linear-progress.js +5 -7
- package/esm/list/list-item/list-item.js +2 -2
- package/esm/menu/menu-constants.js +1 -1
- package/esm/profile-card/profile-card-adapter.d.ts +5 -8
- package/esm/profile-card/profile-card-adapter.js +5 -16
- package/esm/profile-card/profile-card-constants.js +3 -3
- package/esm/profile-card/profile-card-foundation.d.ts +4 -1
- package/esm/profile-card/profile-card-foundation.js +24 -13
- package/esm/profile-card/profile-card.d.ts +1 -2
- package/esm/profile-card/profile-card.js +11 -8
- package/esm/slider/slider.js +1 -1
- package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
- package/esm/switch/switch.js +1 -1
- package/esm/tabs/tab/tab.js +1 -1
- package/esm/toolbar/toolbar.js +1 -1
- package/package.json +1 -2
- package/styles/app-bar/app-bar/_configuration.scss +16 -0
- package/styles/app-bar/app-bar/_core.scss +95 -0
- package/styles/app-bar/app-bar/_token-utils.scss +30 -0
- package/styles/app-bar/app-bar/app-bar.scss +142 -0
- package/styles/app-bar/app-bar/index.scss +8 -0
- package/styles/button/button.scss +18 -5
- package/styles/circular-progress/_core.scss +2 -0
- package/styles/circular-progress/circular-progress.scss +2 -2
- package/styles/core/styles/elevation/index.scss +10 -0
- package/styles/core/styles/spacing/index.scss +1 -1
- package/styles/core/styles/theme/index.scss +2 -0
- package/styles/core/styles/tokens/app-bar/app-bar/_tokens.scss +35 -0
- package/styles/core/styles/tokens/circular-progress/_tokens.scss +2 -1
- package/styles/core/styles/tokens/floating-action-button/_tokens.scss +66 -0
- package/styles/core/styles/tokens/icon-button/_tokens.scss +1 -1
- package/styles/core/styles/tokens/profile-card/_tokens.scss +19 -0
- package/styles/core/styles/tokens/shape/_tokens.scss +6 -0
- package/styles/core/styles/tokens/spacing/_tokens.scss +2 -0
- package/styles/core/styles/tokens/theme/_token-utils.scss +2 -2
- package/styles/core/styles/tokens/theme/_tokens.brand.scss +22 -0
- package/styles/core/styles/tokens/theme/_tokens.scss +3 -0
- package/styles/floating-action-button/_configuration.scss +16 -0
- package/styles/floating-action-button/_core.scss +103 -0
- package/styles/floating-action-button/_token-utils.scss +30 -0
- package/styles/floating-action-button/floating-action-button.scss +129 -0
- package/styles/floating-action-button/index.scss +8 -0
- package/styles/focus-indicator/focus-indicator.scss +11 -28
- package/styles/forge.scss +0 -1
- package/styles/icon-button/_core.scss +0 -4
- package/styles/icon-button/icon-button.scss +45 -11
- package/styles/list/list-item/list-item.scss +2 -0
- package/styles/profile-card/_configuration.scss +10 -0
- package/styles/profile-card/_core.scss +58 -0
- package/styles/profile-card/_token-utils.scss +30 -0
- package/styles/profile-card/index.scss +8 -0
- package/styles/profile-card/profile-card.scss +55 -6
- package/styles/theme/_theme-dark.scss +0 -3
- package/styles/toolbar/_mixins.scss +0 -1
- package/dist/esm/chunks/chunk.36F2GVWS.js +0 -7
- package/dist/esm/chunks/chunk.36F2GVWS.js.map +0 -7
- package/dist/esm/chunks/chunk.4SPEX2GJ.js +0 -7
- package/dist/esm/chunks/chunk.4SPEX2GJ.js.map +0 -7
- package/dist/esm/chunks/chunk.4YFJVHXN.js +0 -7
- package/dist/esm/chunks/chunk.4YFJVHXN.js.map +0 -7
- package/dist/esm/chunks/chunk.5A2PA7TL.js.map +0 -7
- package/dist/esm/chunks/chunk.5CSXPRL3.js +0 -7
- package/dist/esm/chunks/chunk.5CSXPRL3.js.map +0 -7
- package/dist/esm/chunks/chunk.5LVZVQXB.js +0 -7
- package/dist/esm/chunks/chunk.5LVZVQXB.js.map +0 -7
- package/dist/esm/chunks/chunk.5WMYF27O.js +0 -7
- package/dist/esm/chunks/chunk.6M27ERWW.js +0 -12
- package/dist/esm/chunks/chunk.6M27ERWW.js.map +0 -7
- package/dist/esm/chunks/chunk.6ZNBFKNP.js +0 -7
- package/dist/esm/chunks/chunk.6ZNBFKNP.js.map +0 -7
- package/dist/esm/chunks/chunk.AMZZKEAE.js +0 -7
- package/dist/esm/chunks/chunk.APPY5AYL.js +0 -7
- package/dist/esm/chunks/chunk.APPY5AYL.js.map +0 -7
- package/dist/esm/chunks/chunk.AUCBR6CC.js +0 -7
- package/dist/esm/chunks/chunk.AUCBR6CC.js.map +0 -7
- package/dist/esm/chunks/chunk.EJX6RI4I.js +0 -7
- package/dist/esm/chunks/chunk.EJX6RI4I.js.map +0 -7
- package/dist/esm/chunks/chunk.EWK76SPH.js +0 -7
- package/dist/esm/chunks/chunk.EWK76SPH.js.map +0 -7
- package/dist/esm/chunks/chunk.FAXYCG55.js +0 -7
- package/dist/esm/chunks/chunk.FAXYCG55.js.map +0 -7
- package/dist/esm/chunks/chunk.LUNKNRRH.js +0 -7
- package/dist/esm/chunks/chunk.PMYQY3D3.js +0 -7
- package/dist/esm/chunks/chunk.QN5T26HH.js +0 -7
- package/dist/esm/chunks/chunk.QQRPV4RN.js +0 -7
- package/dist/esm/chunks/chunk.STB2FEUA.js +0 -7
- package/dist/esm/chunks/chunk.WMVYRDUJ.js +0 -7
- package/dist/esm/chunks/chunk.WMVYRDUJ.js.map +0 -7
- package/dist/esm/chunks/chunk.WY3E33CW.js +0 -7
- package/dist/esm/chunks/chunk.XLL7L2UB.js +0 -7
- package/dist/esm/chunks/chunk.XLL7L2UB.js.map +0 -7
- package/dist/esm/chunks/chunk.XNFS7YIB.js +0 -7
- package/dist/esm/chunks/chunk.YWAUEUAH.js +0 -7
- package/dist/esm/chunks/chunk.YWAUEUAH.js.map +0 -7
- package/dist/esm/chunks/chunk.ZKM667OT.js +0 -7
- package/dist/esm/chunks/chunk.ZKM667OT.js.map +0 -7
- package/dist/floating-action-button/forge-floating-action-button.css +0 -6
- package/esm/app-bar/app-bar-adapter.d.ts +0 -43
- package/esm/app-bar/app-bar-adapter.js +0 -60
- package/esm/app-bar/app-bar-constants.js +0 -37
- package/esm/app-bar/app-bar-foundation.js +0 -70
- package/esm/app-bar/app-bar.d.ts +0 -38
- package/esm/app-bar/app-bar.js +0 -75
- package/styles/app-bar/_mixins.scss +0 -254
- package/styles/app-bar/_variables.scss +0 -34
- package/styles/app-bar/app-bar.scss +0 -22
- package/styles/floating-action-button/_extended-fab-theme.scss +0 -238
- package/styles/floating-action-button/_fab-custom-properties.scss +0 -29
- package/styles/floating-action-button/_fab-theme.scss +0 -541
- package/styles/floating-action-button/_fab.mixins.scss +0 -351
- package/styles/floating-action-button/forge-floating-action-button.scss +0 -16
- package/styles/profile-card/_mixins.scss +0 -83
- /package/dist/esm/chunks/{chunk.FLWNOP42.js.map → chunk.26E4L52W.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ZRSDTCSD.js.map → chunk.2GYZM6ZG.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.PMYQY3D3.js.map → chunk.3RMBFRGC.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.DTLZOIUQ.js.map → chunk.3UO6S3IK.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.MWYQRG5W.js.map → chunk.4B5IOZAT.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IDMDBMBR.js.map → chunk.4QDN5PM6.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.Z5RROENA.js.map → chunk.543K5Y4E.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.W2LN45WY.js.map → chunk.57PXXJA6.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.675V42JS.js.map → chunk.5C24LZNU.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.V24M62MC.js.map → chunk.5H4G6BWX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QLCVRJ3Q.js.map → chunk.5VHUMZYS.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.OWZREAT6.js.map → chunk.6DXDNQUR.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.7VMJLHQY.js.map → chunk.6Q3SV2R2.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IHAHJPMB.js.map → chunk.7ABZUBTT.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.Z5ZLKM7W.js.map → chunk.7BGOH44S.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.LOG6GQOK.js.map → chunk.7DHDFH5L.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.3R4BUIQP.js.map → chunk.7PP6QHOM.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.YBZK6LJZ.js.map → chunk.7UXLLUTN.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.5RM65QPN.js.map → chunk.7W2UWAZX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.6NTYTHAL.js.map → chunk.AEJGC4YG.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.BTXY3XMJ.js.map → chunk.B46Q3AFP.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QJCNMYD3.js.map → chunk.BFUGFHEH.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.2ZU6LWHE.js.map → chunk.BMQYEYCT.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.HOLCNJXC.js.map → chunk.C5IB44HX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.G73KL7P2.js.map → chunk.CTZ3AWDW.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QLOYOZN3.js.map → chunk.DD35U4AA.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.XEFWZKHQ.js.map → chunk.DDXIHZFX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.MKJCHUJH.js.map → chunk.DOEG3DWJ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.2MSL7CYM.js.map → chunk.DTKFE7YB.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.FXIWCHLW.js.map → chunk.E3GVKR4E.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.FFHSUJFM.js.map → chunk.EBSBAFCX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.RES7WDKH.js.map → chunk.F2EBSV5Z.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.BBCZNGT3.js.map → chunk.FB6ZLH6P.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.VFKHRAWD.js.map → chunk.FQSL747N.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.JVLJH6PR.js.map → chunk.G2BNY5QQ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.URJQNB3S.js.map → chunk.GS72TBUD.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.5PG6WIIX.js.map → chunk.GT3VPSXY.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IMLJD35R.js.map → chunk.GWJ4QCSW.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IISWKFCX.js.map → chunk.H7GW57Q6.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.BB4UF5RX.js.map → chunk.HHHBS6FB.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KPJWP77R.js.map → chunk.I3NHK2S3.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.5N4N6DL6.js.map → chunk.IEB5KRFQ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.BQ2X5SBP.js.map → chunk.IVUK3W34.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ZGRQDDHO.js.map → chunk.IW7HALLT.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.7ZROQ6D3.js.map → chunk.J3B5CWKT.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.TBGMJQYJ.js.map → chunk.JVK64JDZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.AUBOJZQ7.js.map → chunk.KLPF4CNX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IT7XPDAV.js.map → chunk.L4Y4RO5O.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IAWYYNUU.js.map → chunk.LCNR2RPT.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.TU74SREL.js.map → chunk.LMIKNDBS.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.VO6YJCEU.js.map → chunk.LSNAGIIH.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ARQMMZJL.js.map → chunk.LXX3YZYS.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.AMLT6XJP.js.map → chunk.NG6UZ4OL.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.YKIBREM5.js.map → chunk.NYYXUH3X.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.HRRJIFC5.js.map → chunk.NZKIFXBU.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.YAERJVPL.js.map → chunk.OED5UCYT.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.RP674CRC.js.map → chunk.OYO5O3NF.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.LCR4YH3O.js.map → chunk.P7LC3YYW.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KV5IKYG2.js.map → chunk.PK7R6WDF.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.PYR2OCCH.js.map → chunk.PQQVUUHU.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.SLJ6HDK7.js.map → chunk.PSTGTQVK.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.36C6SIPW.js.map → chunk.QFY23EWU.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.S5QL4SPT.js.map → chunk.RCSBJQ4G.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.FYVDTZLF.js.map → chunk.RYNQDXFA.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.HAKF2T2D.js.map → chunk.RZZBM3AW.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.3ZPSN2QG.js.map → chunk.SNF35Y6C.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.XYAZVLPR.js.map → chunk.T34DG7BU.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.3HCYRDRI.js.map → chunk.THWSN3X4.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.R6LQBI42.js.map → chunk.TZFUKJ24.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.SIRXAA3O.js.map → chunk.U5WMRBSC.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.GNDKQPDV.js.map → chunk.UWZWXNTW.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KV67JXOC.js.map → chunk.VD5ZL5ZN.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.G7SMCLHQ.js.map → chunk.VDZ7HBKM.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.NUMKGUCK.js.map → chunk.W324TWF2.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.HDG2GHKC.js.map → chunk.YKZ25J6B.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.7V4BDSA5.js.map → chunk.Z2RB75TN.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.O6V3YNMO.js.map → chunk.ZSD7MMVB.js.map} +0 -0
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import { ButtonTheme } from '../button';
|
|
7
|
+
import { BaseButton, IBaseButton } from '../button/base/base-button';
|
|
8
|
+
import { FloatingActionButtonDensity, FloatingActionButtonElevation } from './floating-action-button-constants';
|
|
9
|
+
import { FloatingActionButtonFoundation } from './floating-action-button-foundation';
|
|
10
|
+
export interface IFloatingActionButtonComponent extends IBaseButton {
|
|
11
|
+
theme: ButtonTheme;
|
|
12
|
+
density: FloatingActionButtonDensity;
|
|
13
|
+
elevation: FloatingActionButtonElevation;
|
|
11
14
|
}
|
|
12
15
|
declare global {
|
|
13
16
|
interface HTMLElementTagNameMap {
|
|
@@ -15,30 +18,88 @@ declare global {
|
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
|
-
* The custom element class behind the `<forge-fab>` element.
|
|
19
|
-
*
|
|
20
21
|
* @tag forge-fab
|
|
22
|
+
*
|
|
23
|
+
* @summary Floating action buttons are used to represent the most important action on a page.
|
|
24
|
+
*
|
|
25
|
+
* @property {ButtonTheme} theme - Sets the theme of the button.
|
|
26
|
+
* @property {FloatingActionButtonDensity} density - Sets the density of the button.
|
|
27
|
+
* @property {FloatingActionButtonElevation} elevation - Sets the elevation of the button.
|
|
28
|
+
* @property {string} type - The type of button. Defaults to `button`. Valid values are `button`, `submit`, and `reset`.
|
|
29
|
+
* @property {boolean} disabled - Whether or not the button is disabled.
|
|
30
|
+
* @property {boolean} popoverIcon - Whether or not the button shows a built-in popover icon.
|
|
31
|
+
* @property {string} name - The name of the button.
|
|
32
|
+
* @property {string} value - The form value of the button.
|
|
33
|
+
* @property {boolean} dense - Whether or not the button is dense.
|
|
34
|
+
* @property {boolean} anchor - Whether or not the button is an `<a>` element.
|
|
35
|
+
* @property {string} href - The href of the anchor.
|
|
36
|
+
* @property {string} target - The target of the anchor.
|
|
37
|
+
* @property {string} download - The download of the anchor.
|
|
38
|
+
* @property {string} rel - The rel of the anchor.
|
|
39
|
+
* @property {HTMLFormElement | null} form - The form reference of the button if within a `<form>` element.
|
|
40
|
+
*
|
|
41
|
+
* @attribute {string} theme - Sets the theme of the button.
|
|
42
|
+
* @attribute {string} density - Sets the density of the button.
|
|
43
|
+
* @attribute {string} elevation - Sets the elevation of the button.
|
|
44
|
+
* @attribute {string} type - The type of button. Defaults to `button`. Valid values are `button`, `submit`, and `reset`.
|
|
45
|
+
* @attribute {boolean} disabled - Whether or not the button is disabled.
|
|
46
|
+
* @attribute {boolean} popover-icon - Whether or not the button shows a built-in popover icon.
|
|
47
|
+
* @attribute {string} name - The name of the button.
|
|
48
|
+
* @attribute {string} value - The form value of the button.
|
|
49
|
+
* @attribute {boolean} dense - Whether or not the button is dense.
|
|
50
|
+
* @attribute {boolean} anchor - Whether or not the button is an `<a>` element.
|
|
51
|
+
* @attribute {string} href - The href of the anchor.
|
|
52
|
+
* @attribute {string} target - The target of the anchor.
|
|
53
|
+
* @attribute {string} download - The download of the anchor.
|
|
54
|
+
* @attribute {string} rel - The rel of the anchor.
|
|
55
|
+
*
|
|
56
|
+
* @fires click - Fires when the button is clicked.
|
|
57
|
+
*
|
|
58
|
+
* @cssproperty --forge-fab-background-display - The display property.
|
|
59
|
+
* @cssproperty --forge-fab-gap - The gap between the icon and the label.
|
|
60
|
+
* @cssproperty --forge-fab-background - The background color.
|
|
61
|
+
* @cssproperty --forge-fab-color - The text color.
|
|
62
|
+
* @cssproperty --forge-fab-size - The height and min-width of the button.
|
|
63
|
+
* @cssproperty --forge-fab-padding - The inline padding of the button.
|
|
64
|
+
* @cssproperty --forge-fab-shadow - The box shadow of the button.
|
|
65
|
+
* @cssproperty --forge-fab-hover-shadow - The box shadow of the button when hovered.
|
|
66
|
+
* @cssproperty --forge-fab-active-shadow - The box shadow of the button when active.
|
|
67
|
+
* @cssproperty --forge-fab-lowered-shadow - The box shadow of the button when lowered.
|
|
68
|
+
* @cssproperty --forge-fab-lowered-hover-shadow - The box shadow of the button when lowered and hovered.
|
|
69
|
+
* @cssproperty --forge-fab-lowered-active-shadow - The box shadow of the button when lowered and active.
|
|
70
|
+
* @cssproperty --forge-fab-transition-duration - The transition duration.
|
|
71
|
+
* @cssproperty --forge-fab-transition-timing - The transition timing function.
|
|
72
|
+
* @cssproperty --forge-fab-shape - The border radius of the button.
|
|
73
|
+
* @cssproperty --forge-fab-shape-start-start - The start-start border radius.
|
|
74
|
+
* @cssproperty --forge-fab-shape-start-end - The start-end border radius.
|
|
75
|
+
* @cssproperty --forge-fab-shape-end-start - The end-start border radius.
|
|
76
|
+
* @cssproperty --forge-fab-shape-end-end - The end-end border radius.
|
|
77
|
+
* @cssproperty --forge-fab-extended-padding - The inline padding of the extended button.
|
|
78
|
+
* @cssproperty --forge-fab-extended-min-width - The min-width of the extended button.
|
|
79
|
+
* @cssproperty --forge-fab-density-small-size - The height and min-width of the small density button.
|
|
80
|
+
* @cssproperty --forge-fab-density-medium-size - The height and min-width of the medium density (default) button.
|
|
81
|
+
* @cssproperty --forge-fab-density-large-size - The height and min-width of the large density button.
|
|
82
|
+
* @cssproperty --forge-fab-disabled-cursor - The cursor when disabled.
|
|
83
|
+
* @cssproperty --forge-fab-disabled-background - The background color when disabled.
|
|
84
|
+
* @cssproperty --forge-fab-disabled-color - The text color when disabled.
|
|
85
|
+
* @cssproperty --forge-fab-disabled-opacity - The opacity when disabled.
|
|
86
|
+
*
|
|
87
|
+
* @csspart root - The root container element.
|
|
88
|
+
* @csspart focus-indicator - The focus-indicator indicator element.
|
|
89
|
+
* @csspart state-layer - The state-layer surface element.
|
|
90
|
+
*
|
|
91
|
+
* @slot - This is a default/unnamed slot. Typically used for icon-only or label-only FABs. If the content forces the width to be large than the height, then the FAB will be in extended mode.
|
|
92
|
+
* @slot start - An element to logically render at the start of the button content.
|
|
93
|
+
* @slot label - Reserved specifically for label text. This forces the button into extended mode.
|
|
94
|
+
* @slot end - An element to logically render at the end of the button content.
|
|
21
95
|
*/
|
|
22
|
-
export declare class
|
|
96
|
+
export declare class FloatingActionButtonComponent extends BaseButton<FloatingActionButtonFoundation> implements IFloatingActionButtonComponent {
|
|
23
97
|
static get observedAttributes(): string[];
|
|
24
|
-
|
|
25
|
-
private _isExtended;
|
|
26
|
-
private _isMini;
|
|
27
|
-
private _isExited;
|
|
28
|
-
private _buttonElement;
|
|
98
|
+
protected readonly _foundation: FloatingActionButtonFoundation;
|
|
29
99
|
constructor();
|
|
30
|
-
connectedCallback(): void;
|
|
31
100
|
disconnectedCallback(): void;
|
|
32
101
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
set exited(value: boolean);
|
|
37
|
-
get exited(): boolean;
|
|
38
|
-
/** Gets/sets the mini state. */
|
|
39
|
-
set mini(value: boolean);
|
|
40
|
-
get mini(): boolean;
|
|
41
|
-
/** Gets/sets the extended state. */
|
|
42
|
-
set extended(value: boolean);
|
|
43
|
-
get extended(): boolean;
|
|
102
|
+
theme: ButtonTheme;
|
|
103
|
+
density: FloatingActionButtonDensity;
|
|
104
|
+
elevation: FloatingActionButtonElevation;
|
|
44
105
|
}
|
|
@@ -4,127 +4,140 @@
|
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { __decorate } from "tslib";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { attachShadowTemplate, CustomElement, FoundationProperty } from '@tylertech/forge-core';
|
|
8
|
+
import { BaseButton } from '../button/base/base-button';
|
|
9
|
+
import { BASE_BUTTON_CONSTANTS } from '../button/base/base-button-constants';
|
|
10
|
+
import { FocusIndicatorComponent } from '../focus-indicator';
|
|
11
|
+
import { IconComponent } from '../icon/icon';
|
|
12
|
+
import { StateLayerComponent } from '../state-layer';
|
|
13
|
+
import { FloatingActionButtonAdapter } from './floating-action-button-adapter';
|
|
10
14
|
import { FLOATING_ACTION_BUTTON_CONSTANTS } from './floating-action-button-constants';
|
|
15
|
+
import { FloatingActionButtonFoundation } from './floating-action-button-foundation';
|
|
16
|
+
const template = '<template><div class=\"forge-fab\" part=\"root\"><slot name=\"start\"></slot><slot></slot><slot name=\"label\"></slot><slot name=\"end\"></slot><forge-focus-indicator target=\":host\" part=\"focus-indicator\"></forge-focus-indicator><forge-state-layer target=\":host\" exportparts=\"surface:state-layer\"></forge-state-layer></div></template>';
|
|
17
|
+
const styles = ':host{--_fab-display:var(--forge-fab-display, inline-flex);--_fab-disabled-cursor:var(--forge-fab-disabled-cursor, not-allowed)}:host{display:var(--_fab-display);position:relative;outline:0;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}.forge-fab{--_fab-gap:var(--forge-fab-spacing, var(--forge-spacing-xsmall, 8px));--_fab-background:var(--forge-fab-background, var(--forge-theme-secondary, #ffc107));--_fab-color:var(--forge-fab-color, var(--forge-theme-on-secondary, #000000));--_fab-size:var(--forge-fab-size, 56px);--_fab-padding:var(--forge-fab-padding, var(--forge-spacing-xsmall, 8px));--_fab-shadow:var(--forge-fab-shadow, 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12));--_fab-hover-shadow:var(--forge-fab-hover-shadow, 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));--_fab-active-shadow:var(--forge-fab-active-shadow, 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12));--_fab-lowered-shadow:var(--forge-fab-lowered-shadow, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12));--_fab-lowered-hover-shadow:var(--forge-fab-lowered-hover-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_fab-lowered-active-shadow:var(--forge-fab-lowered-active-shadow, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12));--_fab-transition-duration:var(--forge-fab-transition-duration, var(--forge-animation-duration-short3, 150ms));--_fab-transition-timing:var(--forge-fab-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_fab-shape:var(--forge-fab-shape, var(--forge-shape-full, 9999px));--_fab-shape-start-start:var(--forge-fab-shape-start-start, var(--_fab-shape));--_fab-shape-start-end:var(--forge-fab-shape-start-end, var(--_fab-shape));--_fab-shape-end-start:var(--forge-fab-shape-end-start, var(--_fab-shape));--_fab-shape-end-end:var(--forge-fab-shape-end-end, var(--_fab-shape));--_fab-extended-padding:var(--forge-fab-extended-padding, var(--forge-spacing-medium-large, 20px));--_fab-extended-min-width:var(--forge-fab-extended-min-width, 96px);--_fab-density-small-size:var(--forge-fab-density-small-size, 40px);--_fab-density-medium-size:var(--forge-fab-density-medium-size, var(--_fab-size));--_fab-density-large-size:var(--forge-fab-density-large-size, 96px);--_fab-disabled-background:var(--forge-fab-disabled-background, var(--forge-theme-surface-container, #e0e0e0));--_fab-disabled-color:var(--forge-fab-disabled-color, var(--forge-theme-on-surface-container, #000000));--_fab-disabled-opacity:var(--forge-fab-disabled-opacity, 0.38)}.forge-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, \"Roboto\", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-button-text-decoration,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);position:relative;display:-webkit-inline-box;display:inline-flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;gap:var(--_fab-gap);z-index:0;background:var(--_fab-background);color:var(--_fab-color);cursor:pointer;-webkit-box-shadow:var(--_fab-shadow);box-shadow:var(--_fab-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--_fab-density-medium-size);min-width:var(--_fab-density-medium-size);padding-inline:var(--_fab-padding);border-width:medium;border-style:none;border-color:currentColor;border-top-left-radius:var(--_fab-shape-start-start);border-top-right-radius:var(--_fab-shape-start-end);border-bottom-left-radius:var(--_fab-shape-end-start);border-bottom-right-radius:var(--_fab-shape-end-end);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;-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(--_fab-transition-duration);transition-duration:var(--_fab-transition-duration);-webkit-transition-timing-function:var(--_fab-transition-timing);transition-timing-function:var(--_fab-transition-timing)}.forge-fab:hover{--_fab-shadow:var(--_fab-hover-shadow)}.forge-fab:active{--_fab-shadow:var(--_fab-active-shadow)}.forge-fab--extended{padding-inline:var(--_fab-extended-padding);min-width:var(--_fab-extended-min-width)}a{position:absolute;inset:0;text-decoration:none}forge-focus-indicator{--forge-focus-indicator-color:var(--_fab-background);--forge-focus-indicator-shape-start-start:var(--_fab-shape-start-start);--forge-focus-indicator-shape-start-end:var(--_fab-shape-start-end);--forge-focus-indicator-shape-end-start:var(--_fab-shape-end-start);--forge-focus-indicator-shape-end-end:var(--_fab-shape-end-end)}forge-state-layer{--forge-state-layer-color:var(--_fab-color)}:host(:is([dense],[density=small])) .forge-fab{--_fab-size:var(--_fab-density-small-size)}:host([density=large]) .forge-fab{--_fab-size:var(--_fab-density-large-size);--_fab-shape:var(--forge-fab-shape, var(--forge-shape-extra-large, 16px))}:host([elevation=lowered]) .forge-fab{--_fab-shadow:var(--_fab-lowered-shadow)}:host([elevation=lowered]) .forge-fab:hover{--_fab-shadow:var(--_fab-lowered-hover-shadow)}:host([elevation=lowered]) .forge-fab:active{--_fab-shadow:var(--_fab-lowered-active-shadow)}:host([disabled]){cursor:var(--_fab-disabled-cursor)}:host([disabled]) .forge-fab{--_fab-background:var(--_fab-disabled-background);--_fab-color:var(--_fab-disabled-color);pointer-events:none;opacity:var(--_fab-disabled-opacity)}:host([theme=primary]:not([disabled])) .forge-fab{--_fab-background:var(--forge-fab-background, var(--forge-theme-primary, #3f51b5));--_fab-color:var(--forge-fab-color, var(--forge-theme-on-primary, #ffffff))}:host([theme=tertiary]:not([disabled])) .forge-fab{--_fab-background:var(--forge-fab-background, var(--forge-theme-tertiary, #3d5afe));--_fab-color:var(--forge-fab-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=success]:not([disabled])) .forge-fab{--_fab-background:var(--forge-fab-background, var(--forge-theme-success, #2e7d32));--_fab-color:var(--forge-fab-color, var(--forge-theme-on-success, #ffffff))}:host([theme=error]:not([disabled])) .forge-fab{--_fab-background:var(--forge-fab-background, var(--forge-theme-error, #b00020));--_fab-color:var(--forge-fab-color, var(--forge-theme-on-error, #ffffff))}:host([theme=warning]:not([disabled])) .forge-fab{--_fab-background:var(--forge-fab-background, var(--forge-theme-warning, #d14900));--_fab-color:var(--forge-fab-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=info]:not([disabled])) .forge-fab{--_fab-background:var(--forge-fab-background, var(--forge-theme-info, #1565c0));--_fab-color:var(--forge-fab-color, var(--forge-theme-on-info, #ffffff))}';
|
|
11
18
|
/**
|
|
12
|
-
* The custom element class behind the `<forge-fab>` element.
|
|
13
|
-
*
|
|
14
19
|
* @tag forge-fab
|
|
20
|
+
*
|
|
21
|
+
* @summary Floating action buttons are used to represent the most important action on a page.
|
|
22
|
+
*
|
|
23
|
+
* @property {ButtonTheme} theme - Sets the theme of the button.
|
|
24
|
+
* @property {FloatingActionButtonDensity} density - Sets the density of the button.
|
|
25
|
+
* @property {FloatingActionButtonElevation} elevation - Sets the elevation of the button.
|
|
26
|
+
* @property {string} type - The type of button. Defaults to `button`. Valid values are `button`, `submit`, and `reset`.
|
|
27
|
+
* @property {boolean} disabled - Whether or not the button is disabled.
|
|
28
|
+
* @property {boolean} popoverIcon - Whether or not the button shows a built-in popover icon.
|
|
29
|
+
* @property {string} name - The name of the button.
|
|
30
|
+
* @property {string} value - The form value of the button.
|
|
31
|
+
* @property {boolean} dense - Whether or not the button is dense.
|
|
32
|
+
* @property {boolean} anchor - Whether or not the button is an `<a>` element.
|
|
33
|
+
* @property {string} href - The href of the anchor.
|
|
34
|
+
* @property {string} target - The target of the anchor.
|
|
35
|
+
* @property {string} download - The download of the anchor.
|
|
36
|
+
* @property {string} rel - The rel of the anchor.
|
|
37
|
+
* @property {HTMLFormElement | null} form - The form reference of the button if within a `<form>` element.
|
|
38
|
+
*
|
|
39
|
+
* @attribute {string} theme - Sets the theme of the button.
|
|
40
|
+
* @attribute {string} density - Sets the density of the button.
|
|
41
|
+
* @attribute {string} elevation - Sets the elevation of the button.
|
|
42
|
+
* @attribute {string} type - The type of button. Defaults to `button`. Valid values are `button`, `submit`, and `reset`.
|
|
43
|
+
* @attribute {boolean} disabled - Whether or not the button is disabled.
|
|
44
|
+
* @attribute {boolean} popover-icon - Whether or not the button shows a built-in popover icon.
|
|
45
|
+
* @attribute {string} name - The name of the button.
|
|
46
|
+
* @attribute {string} value - The form value of the button.
|
|
47
|
+
* @attribute {boolean} dense - Whether or not the button is dense.
|
|
48
|
+
* @attribute {boolean} anchor - Whether or not the button is an `<a>` element.
|
|
49
|
+
* @attribute {string} href - The href of the anchor.
|
|
50
|
+
* @attribute {string} target - The target of the anchor.
|
|
51
|
+
* @attribute {string} download - The download of the anchor.
|
|
52
|
+
* @attribute {string} rel - The rel of the anchor.
|
|
53
|
+
*
|
|
54
|
+
* @fires click - Fires when the button is clicked.
|
|
55
|
+
*
|
|
56
|
+
* @cssproperty --forge-fab-background-display - The display property.
|
|
57
|
+
* @cssproperty --forge-fab-gap - The gap between the icon and the label.
|
|
58
|
+
* @cssproperty --forge-fab-background - The background color.
|
|
59
|
+
* @cssproperty --forge-fab-color - The text color.
|
|
60
|
+
* @cssproperty --forge-fab-size - The height and min-width of the button.
|
|
61
|
+
* @cssproperty --forge-fab-padding - The inline padding of the button.
|
|
62
|
+
* @cssproperty --forge-fab-shadow - The box shadow of the button.
|
|
63
|
+
* @cssproperty --forge-fab-hover-shadow - The box shadow of the button when hovered.
|
|
64
|
+
* @cssproperty --forge-fab-active-shadow - The box shadow of the button when active.
|
|
65
|
+
* @cssproperty --forge-fab-lowered-shadow - The box shadow of the button when lowered.
|
|
66
|
+
* @cssproperty --forge-fab-lowered-hover-shadow - The box shadow of the button when lowered and hovered.
|
|
67
|
+
* @cssproperty --forge-fab-lowered-active-shadow - The box shadow of the button when lowered and active.
|
|
68
|
+
* @cssproperty --forge-fab-transition-duration - The transition duration.
|
|
69
|
+
* @cssproperty --forge-fab-transition-timing - The transition timing function.
|
|
70
|
+
* @cssproperty --forge-fab-shape - The border radius of the button.
|
|
71
|
+
* @cssproperty --forge-fab-shape-start-start - The start-start border radius.
|
|
72
|
+
* @cssproperty --forge-fab-shape-start-end - The start-end border radius.
|
|
73
|
+
* @cssproperty --forge-fab-shape-end-start - The end-start border radius.
|
|
74
|
+
* @cssproperty --forge-fab-shape-end-end - The end-end border radius.
|
|
75
|
+
* @cssproperty --forge-fab-extended-padding - The inline padding of the extended button.
|
|
76
|
+
* @cssproperty --forge-fab-extended-min-width - The min-width of the extended button.
|
|
77
|
+
* @cssproperty --forge-fab-density-small-size - The height and min-width of the small density button.
|
|
78
|
+
* @cssproperty --forge-fab-density-medium-size - The height and min-width of the medium density (default) button.
|
|
79
|
+
* @cssproperty --forge-fab-density-large-size - The height and min-width of the large density button.
|
|
80
|
+
* @cssproperty --forge-fab-disabled-cursor - The cursor when disabled.
|
|
81
|
+
* @cssproperty --forge-fab-disabled-background - The background color when disabled.
|
|
82
|
+
* @cssproperty --forge-fab-disabled-color - The text color when disabled.
|
|
83
|
+
* @cssproperty --forge-fab-disabled-opacity - The opacity when disabled.
|
|
84
|
+
*
|
|
85
|
+
* @csspart root - The root container element.
|
|
86
|
+
* @csspart focus-indicator - The focus-indicator indicator element.
|
|
87
|
+
* @csspart state-layer - The state-layer surface element.
|
|
88
|
+
*
|
|
89
|
+
* @slot - This is a default/unnamed slot. Typically used for icon-only or label-only FABs. If the content forces the width to be large than the height, then the FAB will be in extended mode.
|
|
90
|
+
* @slot start - An element to logically render at the start of the button content.
|
|
91
|
+
* @slot label - Reserved specifically for label text. This forces the button into extended mode.
|
|
92
|
+
* @slot end - An element to logically render at the end of the button content.
|
|
15
93
|
*/
|
|
16
|
-
let
|
|
94
|
+
let FloatingActionButtonComponent = class FloatingActionButtonComponent extends BaseButton {
|
|
17
95
|
static get observedAttributes() {
|
|
18
96
|
return [
|
|
19
|
-
|
|
20
|
-
FLOATING_ACTION_BUTTON_CONSTANTS.
|
|
21
|
-
FLOATING_ACTION_BUTTON_CONSTANTS.attributes.EXTENDED
|
|
97
|
+
...Object.values(BASE_BUTTON_CONSTANTS.observedAttributes),
|
|
98
|
+
...Object.values(FLOATING_ACTION_BUTTON_CONSTANTS.observedAttributes)
|
|
22
99
|
];
|
|
23
100
|
}
|
|
24
101
|
constructor() {
|
|
25
102
|
super();
|
|
26
|
-
this
|
|
27
|
-
this.
|
|
28
|
-
this._isExited = false;
|
|
29
|
-
}
|
|
30
|
-
connectedCallback() {
|
|
31
|
-
if (this.children.length) {
|
|
32
|
-
this._initialize();
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
ensureChildren(this).then(() => this._initialize());
|
|
36
|
-
}
|
|
103
|
+
attachShadowTemplate(this, template, styles);
|
|
104
|
+
this._foundation = new FloatingActionButtonFoundation(new FloatingActionButtonAdapter(this));
|
|
37
105
|
}
|
|
38
106
|
disconnectedCallback() {
|
|
39
|
-
|
|
40
|
-
this._rippleInstance.destroy();
|
|
41
|
-
}
|
|
107
|
+
this._foundation.destroy();
|
|
42
108
|
}
|
|
43
109
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
44
110
|
switch (name) {
|
|
45
|
-
case FLOATING_ACTION_BUTTON_CONSTANTS.attributes.
|
|
46
|
-
this.
|
|
47
|
-
|
|
48
|
-
case FLOATING_ACTION_BUTTON_CONSTANTS.attributes.
|
|
49
|
-
this.
|
|
50
|
-
|
|
51
|
-
case FLOATING_ACTION_BUTTON_CONSTANTS.attributes.
|
|
52
|
-
this.
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
_initialize() {
|
|
57
|
-
// Make sure we have a button element
|
|
58
|
-
this._buttonElement = this.querySelector(FLOATING_ACTION_BUTTON_CONSTANTS.selectors.BUTTON);
|
|
59
|
-
if (!this._buttonElement) {
|
|
60
|
-
return;
|
|
111
|
+
case FLOATING_ACTION_BUTTON_CONSTANTS.attributes.THEME:
|
|
112
|
+
this.theme = newValue;
|
|
113
|
+
return;
|
|
114
|
+
case FLOATING_ACTION_BUTTON_CONSTANTS.attributes.DENSITY:
|
|
115
|
+
this.density = newValue;
|
|
116
|
+
return;
|
|
117
|
+
case FLOATING_ACTION_BUTTON_CONSTANTS.attributes.ELEVATION:
|
|
118
|
+
this.elevation = newValue;
|
|
119
|
+
return;
|
|
61
120
|
}
|
|
62
|
-
|
|
63
|
-
const rippleElement = this._buttonElement.querySelector(`.${FLOATING_ACTION_BUTTON_CONSTANTS.classes.RIPPLE}`) || document.createElement('div');
|
|
64
|
-
rippleElement.classList.add(FLOATING_ACTION_BUTTON_CONSTANTS.classes.RIPPLE);
|
|
65
|
-
this._buttonElement.insertAdjacentElement('afterbegin', rippleElement);
|
|
66
|
-
this._sync();
|
|
67
|
-
if (this._rippleInstance) {
|
|
68
|
-
this._rippleInstance.destroy();
|
|
69
|
-
}
|
|
70
|
-
this._rippleInstance = new ForgeRipple(this._buttonElement);
|
|
71
|
-
}
|
|
72
|
-
_sync() {
|
|
73
|
-
if (!this._buttonElement) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
toggleClass(this._buttonElement, this._isExited, FLOATING_ACTION_BUTTON_CONSTANTS.classes.EXITED);
|
|
77
|
-
toggleClass(this._buttonElement, this._isMini, FLOATING_ACTION_BUTTON_CONSTANTS.classes.BUTTON_MINI);
|
|
78
|
-
toggleClass(this._buttonElement, this._isExtended, FLOATING_ACTION_BUTTON_CONSTANTS.classes.BUTTON_EXTENDED);
|
|
79
|
-
// Check if we need to set the label class
|
|
80
|
-
const labelElement = this.querySelector(FLOATING_ACTION_BUTTON_CONSTANTS.selectors.LABEL);
|
|
81
|
-
if (labelElement) {
|
|
82
|
-
labelElement.classList.add(FLOATING_ACTION_BUTTON_CONSTANTS.classes.LABEL);
|
|
83
|
-
}
|
|
84
|
-
// Check if we need to set the icon class
|
|
85
|
-
const iconElement = this.querySelector(FLOATING_ACTION_BUTTON_CONSTANTS.selectors.ICON);
|
|
86
|
-
if (iconElement) {
|
|
87
|
-
iconElement.classList.add(FLOATING_ACTION_BUTTON_CONSTANTS.classes.ICON);
|
|
88
|
-
iconElement.setAttribute('aria-hidden', 'true');
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
/** Gets/sets the exited state. */
|
|
92
|
-
set exited(value) {
|
|
93
|
-
if (this._isExited !== value) {
|
|
94
|
-
this._isExited = value;
|
|
95
|
-
this.setAttribute(FLOATING_ACTION_BUTTON_CONSTANTS.attributes.EXITED, this._isExited.toString());
|
|
96
|
-
this._sync();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
get exited() {
|
|
100
|
-
return this._isExited;
|
|
101
|
-
}
|
|
102
|
-
/** Gets/sets the mini state. */
|
|
103
|
-
set mini(value) {
|
|
104
|
-
if (this._isMini !== value) {
|
|
105
|
-
this._isMini = value;
|
|
106
|
-
this.setAttribute(FLOATING_ACTION_BUTTON_CONSTANTS.attributes.MINI, this._isMini.toString());
|
|
107
|
-
this._sync();
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
get mini() {
|
|
111
|
-
return this._isMini;
|
|
112
|
-
}
|
|
113
|
-
/** Gets/sets the extended state. */
|
|
114
|
-
set extended(value) {
|
|
115
|
-
if (this._isExtended !== value) {
|
|
116
|
-
this._isExtended = value;
|
|
117
|
-
this.setAttribute(FLOATING_ACTION_BUTTON_CONSTANTS.attributes.EXTENDED, this._isExtended.toString());
|
|
118
|
-
this._sync();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
get extended() {
|
|
122
|
-
return this._isExtended;
|
|
121
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
123
122
|
}
|
|
124
123
|
};
|
|
125
|
-
|
|
124
|
+
__decorate([
|
|
125
|
+
FoundationProperty()
|
|
126
|
+
], FloatingActionButtonComponent.prototype, "theme", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
FoundationProperty()
|
|
129
|
+
], FloatingActionButtonComponent.prototype, "density", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
FoundationProperty()
|
|
132
|
+
], FloatingActionButtonComponent.prototype, "elevation", void 0);
|
|
133
|
+
FloatingActionButtonComponent = __decorate([
|
|
126
134
|
CustomElement({
|
|
127
|
-
name: FLOATING_ACTION_BUTTON_CONSTANTS.elementName
|
|
135
|
+
name: FLOATING_ACTION_BUTTON_CONSTANTS.elementName,
|
|
136
|
+
dependencies: [
|
|
137
|
+
FocusIndicatorComponent,
|
|
138
|
+
StateLayerComponent,
|
|
139
|
+
IconComponent
|
|
140
|
+
]
|
|
128
141
|
})
|
|
129
|
-
],
|
|
130
|
-
export {
|
|
142
|
+
], FloatingActionButtonComponent);
|
|
143
|
+
export { FloatingActionButtonComponent };
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
export * from './floating-action-button-constants';
|
|
7
6
|
export * from './floating-action-button';
|
|
7
|
+
export * from './floating-action-button-adapter';
|
|
8
8
|
export * from './floating-action-button-component-delegate';
|
|
9
|
+
export * from './floating-action-button-constants';
|
|
10
|
+
export * from './floating-action-button-foundation';
|
|
9
11
|
export declare function defineFloatingActionButtonComponent(): void;
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { defineCustomElement } from '@tylertech/forge-core';
|
|
7
|
-
import {
|
|
8
|
-
export * from './floating-action-button-constants';
|
|
7
|
+
import { FloatingActionButtonComponent } from './floating-action-button';
|
|
9
8
|
export * from './floating-action-button';
|
|
9
|
+
export * from './floating-action-button-adapter';
|
|
10
10
|
export * from './floating-action-button-component-delegate';
|
|
11
|
+
export * from './floating-action-button-constants';
|
|
12
|
+
export * from './floating-action-button-foundation';
|
|
11
13
|
export function defineFloatingActionButtonComponent() {
|
|
12
|
-
defineCustomElement(
|
|
14
|
+
defineCustomElement(FloatingActionButtonComponent);
|
|
13
15
|
}
|
|
@@ -9,8 +9,8 @@ import { BaseComponent } from '../core/base/base-component';
|
|
|
9
9
|
import { FocusIndicatorAdapter } from './focus-indicator-adapter';
|
|
10
10
|
import { FOCUS_INDICATOR_CONSTANTS } from './focus-indicator-constants';
|
|
11
11
|
import { FocusIndicatorFoundation } from './focus-indicator-foundation';
|
|
12
|
-
const template = '<template
|
|
13
|
-
const styles = ':host{
|
|
12
|
+
const template = '<template></template>';
|
|
13
|
+
const styles = ':host{--_focus-indicator-width:var(--forge-focus-indicator-width, var(--forge-border-medium, 2px));--_focus-indicator-active-width:var(--forge-focus-indicator-active-width, 6px);--_focus-indicator-color:var(--forge-focus-indicator-color, var(--forge-theme-primary, #3f51b5));--_focus-indicator-shape:var(--forge-focus-indicator-shape, var(--forge-shape-extra-small, 1px));--_focus-indicator-duration:var(--forge-focus-indicator-duration, var(--forge-animation-duration-long4, 600ms));--_focus-indicator-easing:var(--forge-focus-indicator-easing, var(--forge-animation-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)));--_focus-indicator-shape-start-start:var(--forge-focus-indicator-shape-start-start, var(--_focus-indicator-shape));--_focus-indicator-shape-start-end:var(--forge-focus-indicator-shape-start-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-end:var(--forge-focus-indicator-shape-end-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-start:var(--forge-focus-indicator-shape-end-start, var(--_focus-indicator-shape));--_focus-indicator-outward-offset:var(--forge-focus-indicator-outward-offset, var(--forge-spacing-xxsmall, 4px));--_focus-indicator-inward-offset:var(--forge-focus-indicator-inward-offset, 0px);--_focus-indicator-offset-block:var(--forge-focus-indicator-offset-block, 0);--_focus-indicator-offset-inline:var(--forge-focus-indicator-offset-inline, 0)}:host{-webkit-animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);-webkit-animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);-webkit-animation-timing-function:var(--_focus-indicator-easing);animation-timing-function:var(--_focus-indicator-easing);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--_focus-indicator-color);display:none;pointer-events:none;position:absolute;margin-block:var(--_focus-indicator-offset-block);margin-inline:var(--_focus-indicator-offset-inline)}:host([hidden]){display:none}:host([active]){display:-webkit-box;display:flex}:host(:not([inward])){-webkit-animation-name:outward-grow,outward-shrink;animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) + var(--_focus-indicator-outward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) + var(--_focus-indicator-outward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) + var(--_focus-indicator-outward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) + var(--_focus-indicator-outward-offset));inset:calc(-1 * var(--_focus-indicator-outward-offset));outline:var(--_focus-indicator-width) solid currentColor}:host([inward]){-webkit-animation-name:inward-grow,inward-shrink;animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) - var(--_focus-indicator-inward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) - var(--_focus-indicator-inward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) - var(--_focus-indicator-inward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) - var(--_focus-indicator-inward-offset));border:var(--_focus-indicator-width) solid currentColor;inset:var(--_focus-indicator-inward-offset)}:host([circular]){--_focus-indicator-shape:var(--forge-focus-indicator-shape, 50%)}@-webkit-keyframes outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@keyframes outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@keyframes inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@media (prefers-reduced-motion){:host{-webkit-animation:none;animation:none}}';
|
|
14
14
|
/**
|
|
15
15
|
* @tag forge-focus-indicator
|
|
16
16
|
*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { Theme } from '../constants';
|
|
6
|
+
import { Density, Theme } from '../constants';
|
|
7
7
|
export declare const ICON_BUTTON_CONSTANTS: {
|
|
8
8
|
elementName: "forge-icon-button";
|
|
9
9
|
observedAttributes: {
|
|
@@ -30,10 +30,10 @@ export declare const ICON_BUTTON_CONSTANTS: {
|
|
|
30
30
|
DEFAULT_VARIANT: IconButtonVariant;
|
|
31
31
|
DEFAULT_THEME: Theme;
|
|
32
32
|
DEFAULT_SHAPE: IconButtonShape;
|
|
33
|
-
DEFAULT_DENSITY:
|
|
33
|
+
DEFAULT_DENSITY: Density;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
export type IconButtonVariant = 'icon' | 'outlined' | 'tonal' | 'filled' | 'raised';
|
|
37
37
|
export type IconButtonTheme = Theme;
|
|
38
38
|
export type IconButtonShape = 'circular' | 'squared';
|
|
39
|
-
export type IconButtonDensity =
|
|
39
|
+
export type IconButtonDensity = Density;
|
|
@@ -67,6 +67,56 @@ declare global {
|
|
|
67
67
|
* @event {Event} click - Fires when the button is clicked.
|
|
68
68
|
* @event {Event} forge-icon-button-toggle - Fires when the icon button is toggled.
|
|
69
69
|
*
|
|
70
|
+
* @cssproperty --forge-icon-button-display - The display property of the button.
|
|
71
|
+
* @cssproperty --forge-icon-button-size - The height and min-width of the button.
|
|
72
|
+
* @cssproperty --forge-icon-button-gap - The gap between the icon content.
|
|
73
|
+
* @cssproperty --forge-icon-button-icon-color - The color of the icon.
|
|
74
|
+
* @cssproperty --forge-icon-button-background-color - The background color of the button.
|
|
75
|
+
* @cssproperty --forge-icon-button-icon-size - The size of the icon.
|
|
76
|
+
* @cssproperty --forge-icon-button-cursor - The cursor of the button.
|
|
77
|
+
* @cssproperty --forge-icon-button-padding - The inline padding of the button.
|
|
78
|
+
* @cssproperty --forge-icon-button-border - The border of the button.
|
|
79
|
+
* @cssproperty --forge-icon-button-shadow - The shadow of the button.
|
|
80
|
+
* @cssproperty --forge-icon-button-transition-duration - The transition duration of the button.
|
|
81
|
+
* @cssproperty --forge-icon-button-transition-timing - The transition timing of the button.
|
|
82
|
+
* @cssproperty --forge-icon-button-shape - The shape of the button.
|
|
83
|
+
* @cssproperty --forge-icon-button-shape-start-start - The start-start border-radius of the button.
|
|
84
|
+
* @cssproperty --forge-icon-button-shape-start-end - The start-end border-radius of the button.
|
|
85
|
+
* @cssproperty --forge-icon-button-shape-end-start - The end-start border-radius of the button.
|
|
86
|
+
* @cssproperty --forge-icon-button-shape-end-end - The end-end border-radius of the button.
|
|
87
|
+
* @cssproperty --forge-icon-button-shape-squared - The squared border-radius of the button.
|
|
88
|
+
* @cssproperty --forge-icon-button-outlined-border-width - The border width when in the outlined variant.
|
|
89
|
+
* @cssproperty --forge-icon-button-outlined-border-style - The border style when in the outlined variant.
|
|
90
|
+
* @cssproperty --forge-icon-button-outlined-border-color - The border color when in the outlined variant.
|
|
91
|
+
* @cssproperty --forge-icon-button-tonal-icon-color - The icon color when in the tonal variant.
|
|
92
|
+
* @cssproperty --forge-icon-button-tonal-background-color - The background color when in the tonal variant.
|
|
93
|
+
* @cssproperty --forge-icon-button-filled-icon-color - The icon color when in the filled variant.
|
|
94
|
+
* @cssproperty --forge-icon-button-filled-background-color - The background color when in the filled variant.
|
|
95
|
+
* @cssproperty --forge-icon-button-raised-shadow - The shadow when in the raised variant.
|
|
96
|
+
* @cssproperty --forge-icon-button-raised-hover-shadow - The shadow when in the raised variant and hovered.
|
|
97
|
+
* @cssproperty --forge-icon-button-raised-active-shadow - The shadow when in the raised variant and active.
|
|
98
|
+
* @cssproperty --forge-icon-button-raised-disabled-shadow - The shadow when in the raised variant and disabled.
|
|
99
|
+
* @cssproperty --forge-icon-button-density-small-size - The size of the button when in the small density.
|
|
100
|
+
* @cssproperty --forge-icon-button-density-small-padding - The padding of the button when in the small density.
|
|
101
|
+
* @cssproperty --forge-icon-button-density-small-icon-size - The size of the icon when in the small density.
|
|
102
|
+
* @cssproperty --forge-icon-button-density-medium-size - The size of the button when in the medium density.
|
|
103
|
+
* @cssproperty --forge-icon-button-density-medium-padding - The padding of the button when in the medium density.
|
|
104
|
+
* @cssproperty --forge-icon-button-density-large-size - The size of the button when in the large density.
|
|
105
|
+
* @cssproperty --forge-icon-button-toggle-on-icon-color - The color of the icon when in toggle mode and toggled on.
|
|
106
|
+
* @cssproperty --forge-icon-button-outlined-toggle-on-background-color - The background color when in the outlined variant and toggled on.
|
|
107
|
+
* @cssproperty --forge-icon-button-outlined-toggle-on-icon-color - The icon color when in the outlined variant and toggled on.
|
|
108
|
+
* @cssproperty --forge-icon-button-tonal-toggle-background-color - The background color when in the tonal variant and toggled.
|
|
109
|
+
* @cssproperty --forge-icon-button-tonal-toggle-on-background-color - The background color when in the tonal variant and toggled on.
|
|
110
|
+
* @cssproperty --forge-icon-button-tonal-toggle-on-icon-color - The icon color when in the tonal variant and toggled on.
|
|
111
|
+
* @cssproperty --forge-icon-button-filled-toggle-background-color - The background color when in the filled variant and toggled.
|
|
112
|
+
* @cssproperty --forge-icon-button-filled-toggle-icon-color - The icon color when in the filled variant and toggled.
|
|
113
|
+
* @cssproperty --forge-icon-button-filled-toggle-on-background-color - The background color when in the filled variant and toggled on.
|
|
114
|
+
* @cssproperty --forge-icon-button-filled-toggle-on-icon-color - The icon color when in the filled variant and toggled on.
|
|
115
|
+
* @cssproperty --forge-icon-button-disabled-cursor - The cursor when the button is disabled.
|
|
116
|
+
* @cssproperty --forge-icon-button-disabled-opacity - The opacity when the button is disabled.
|
|
117
|
+
* @cssproperty --forge-icon-button-popover-icon-padding - The padding of the popover icon.
|
|
118
|
+
* @cssproperty --forge-icon-button-focus-indicator-color - The color of the focus indicator.
|
|
119
|
+
*
|
|
70
120
|
* @csspart root - The root container element.
|
|
71
121
|
* @csspart focus-indicator - The focus-indicator indicator element.
|
|
72
122
|
* @csspart state-layer - The state-layer surface element.
|
|
@@ -75,6 +125,7 @@ declare global {
|
|
|
75
125
|
* @slot on - The icon to show when in `toggle` mode when toggled "on".
|
|
76
126
|
* @slot start - Elements to logically render before the icon.
|
|
77
127
|
* @slot end - Elements to logically render after the icon.
|
|
128
|
+
* @slot badge - Absolutely positions the element in the top-end corner of the button (typically reserved for badge-like content).
|
|
78
129
|
*/
|
|
79
130
|
export declare class IconButtonComponent extends BaseButton<IconButtonFoundation> implements IIconButtonComponent {
|
|
80
131
|
static get observedAttributes(): string[];
|