@tylertech/forge 3.0.0-next.22 → 3.0.0-next.24
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 +28789 -33252
- 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/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.AOVXNX7P.js → chunk.24L6GVJK.js} +2 -2
- package/dist/esm/chunks/{chunk.WMJSYYXQ.js → chunk.27YQZWEJ.js} +2 -2
- package/dist/esm/chunks/{chunk.AG6IRMLZ.js → chunk.2CP5CIRB.js} +2 -2
- package/dist/esm/chunks/chunk.2FF7EQQ3.js +7 -0
- package/dist/esm/chunks/chunk.2FF7EQQ3.js.map +7 -0
- package/dist/esm/chunks/{chunk.USTVZ6MZ.js → chunk.345JBXIL.js} +2 -2
- package/dist/esm/chunks/{chunk.USTVZ6MZ.js.map → chunk.345JBXIL.js.map} +2 -2
- package/dist/esm/chunks/chunk.3B573FQF.js +7 -0
- package/dist/esm/chunks/chunk.3B573FQF.js.map +7 -0
- package/dist/esm/chunks/{chunk.H4VQXV2H.js → chunk.3CXCYRCE.js} +2 -2
- package/dist/esm/chunks/{chunk.MTIPIEXA.js → chunk.3LNZRQAL.js} +2 -2
- package/dist/esm/chunks/{chunk.BQ52JYLA.js → chunk.3LUG3LPU.js} +2 -2
- package/dist/esm/chunks/{chunk.IL4S57WO.js → chunk.3ODT27TD.js} +2 -2
- package/dist/esm/chunks/chunk.3S3NH5P4.js +7 -0
- package/dist/esm/chunks/chunk.3S3NH5P4.js.map +7 -0
- package/dist/esm/chunks/{chunk.A2NB7CIK.js → chunk.45N7ZZVL.js} +2 -2
- package/dist/esm/chunks/{chunk.YWJVZVZX.js → chunk.4GFUXXXH.js} +2 -2
- package/dist/esm/chunks/chunk.4UMFAYZH.js +7 -0
- package/dist/esm/chunks/chunk.4UMFAYZH.js.map +7 -0
- package/dist/esm/chunks/{chunk.ZA7JY3AY.js → chunk.5DDR6QSF.js} +2 -2
- package/dist/esm/chunks/{chunk.3KAKJGUS.js → chunk.5NEWFXFX.js} +2 -2
- package/dist/esm/chunks/{chunk.VRSPT7WX.js → chunk.5OT53ZJM.js} +2 -2
- package/dist/esm/chunks/{chunk.EHVCEEV2.js → chunk.6DWRGYKV.js} +2 -2
- package/dist/esm/chunks/{chunk.IEABOPNB.js → chunk.6T7KPDCD.js} +2 -2
- package/dist/esm/chunks/chunk.6TQDZAMD.js +7 -0
- package/dist/esm/chunks/chunk.6TQDZAMD.js.map +7 -0
- package/dist/esm/chunks/chunk.6V6VLKIK.js +7 -0
- package/dist/esm/chunks/chunk.6V6VLKIK.js.map +7 -0
- package/dist/esm/chunks/{chunk.SROEDYPL.js → chunk.7JO5MB55.js} +2 -2
- package/dist/esm/chunks/{chunk.3IUQ4C47.js → chunk.7TE74NJZ.js} +2 -2
- package/dist/esm/chunks/{chunk.AGLI4WR4.js → chunk.AJLS5C7O.js} +2 -2
- package/dist/esm/chunks/{chunk.KTPEFU7V.js → chunk.BURDWL57.js} +2 -2
- package/dist/esm/chunks/chunk.BYSMPFWQ.js +7 -0
- package/dist/esm/chunks/chunk.BYSMPFWQ.js.map +7 -0
- package/dist/esm/chunks/{chunk.BHE6Z5Y2.js → chunk.CQ4XBOX5.js} +2 -2
- package/dist/esm/chunks/{chunk.NEQX2QVX.js → chunk.DJQXJO3T.js} +2 -2
- package/dist/esm/chunks/chunk.DN6Y3VXC.js +7 -0
- package/dist/esm/chunks/{chunk.RLQB7224.js.map → chunk.DN6Y3VXC.js.map} +2 -2
- package/dist/esm/chunks/{chunk.XTJGWT5F.js → chunk.DPJJB67L.js} +2 -2
- package/dist/esm/chunks/{chunk.7Y3BUR7Q.js → chunk.EBRMG6N3.js} +2 -2
- package/dist/esm/chunks/{chunk.7Y3BUR7Q.js.map → chunk.EBRMG6N3.js.map} +2 -2
- package/dist/esm/chunks/chunk.EPMDEQF7.js +7 -0
- package/dist/esm/chunks/chunk.EPMDEQF7.js.map +7 -0
- package/dist/esm/chunks/{chunk.OOAJHLW4.js → chunk.EZIABLIR.js} +2 -2
- package/dist/esm/chunks/{chunk.ZG6YF2HI.js → chunk.F53DSRUO.js} +2 -2
- package/dist/esm/chunks/{chunk.7AAICE77.js → chunk.FIO22U2C.js} +2 -2
- package/dist/esm/chunks/{chunk.U6J4VHU6.js → chunk.FKMTIOBA.js} +2 -2
- package/dist/esm/chunks/chunk.FMDUCGOU.js +7 -0
- package/dist/esm/chunks/{chunk.5A665C5E.js.map → chunk.FMDUCGOU.js.map} +1 -1
- package/dist/esm/chunks/{chunk.W4HANHUO.js → chunk.FMGBPF7B.js} +2 -2
- package/dist/esm/chunks/{chunk.5MB6CTBA.js → chunk.FVFPDWA4.js} +2 -2
- package/dist/esm/chunks/{chunk.ENUKGA2U.js → chunk.FYPIHFXD.js} +2 -2
- package/dist/esm/chunks/chunk.GNQ24XWK.js +7 -0
- package/dist/esm/chunks/chunk.GNQ24XWK.js.map +7 -0
- package/dist/esm/chunks/chunk.GP6LHJDA.js +7 -0
- package/dist/esm/chunks/chunk.GP6LHJDA.js.map +7 -0
- package/dist/esm/chunks/{chunk.CE35CVDV.js → chunk.GQ33JZVE.js} +2 -2
- package/dist/esm/chunks/{chunk.5ADUSMC7.js → chunk.GUBLRHCG.js} +2 -2
- package/dist/esm/chunks/{chunk.473WRJ5G.js → chunk.HJUXBSFZ.js} +2 -2
- package/dist/esm/chunks/chunk.HJUXBSFZ.js.map +7 -0
- package/dist/esm/chunks/{chunk.37B332ZK.js → chunk.HSNVTV7K.js} +2 -2
- package/dist/esm/chunks/{chunk.PC6TW5XE.js → chunk.HXNNWUI3.js} +2 -2
- package/dist/esm/chunks/{chunk.QCPV5DEG.js → chunk.IOGCI64X.js} +2 -2
- package/dist/esm/chunks/chunk.JB2F2HQE.js +7 -0
- package/dist/esm/chunks/chunk.JB2F2HQE.js.map +7 -0
- package/dist/esm/chunks/chunk.JGPWKCAU.js +7 -0
- package/dist/esm/chunks/chunk.JGPWKCAU.js.map +7 -0
- package/dist/esm/chunks/chunk.JU76GN6C.js +7 -0
- package/dist/esm/chunks/{chunk.KLU54MDQ.js.map → chunk.JU76GN6C.js.map} +2 -2
- package/dist/esm/chunks/chunk.K7I5FWBT.js +7 -0
- package/dist/esm/chunks/chunk.K7I5FWBT.js.map +7 -0
- package/dist/esm/chunks/{chunk.5UOX22ML.js → chunk.KKVQNKMV.js} +2 -2
- package/dist/esm/chunks/{chunk.YPNSK2CK.js → chunk.KW5A2U5U.js} +2 -2
- package/dist/esm/chunks/chunk.L6L3CPBH.js +7 -0
- package/dist/esm/chunks/chunk.L6L3CPBH.js.map +7 -0
- package/dist/esm/chunks/{chunk.KO6ODCZC.js → chunk.LIJE4T3D.js} +2 -2
- package/dist/esm/chunks/{chunk.KEOLH7G3.js → chunk.LQN5U4QH.js} +2 -2
- package/dist/esm/chunks/{chunk.24SQJBSQ.js → chunk.LSUIJDFO.js} +2 -2
- package/dist/esm/chunks/{chunk.77C7S7ZS.js → chunk.N65CAIE5.js} +2 -2
- package/dist/esm/chunks/{chunk.UKBE2FMZ.js → chunk.NNLZKMFX.js} +2 -2
- package/dist/esm/chunks/{chunk.EO3GP6DP.js → chunk.ON6FFHRE.js} +2 -2
- package/dist/esm/chunks/{chunk.OVXEOEJF.js → chunk.ONFZ3H7M.js} +2 -2
- package/dist/esm/chunks/{chunk.XATVDHDW.js → chunk.OVVBXM6K.js} +2 -2
- package/dist/esm/chunks/{chunk.FLBYVCQ6.js → chunk.P3Q3IVVX.js} +2 -2
- package/dist/esm/chunks/{chunk.FLBYVCQ6.js.map → chunk.P3Q3IVVX.js.map} +2 -2
- package/dist/esm/chunks/{chunk.DKERDHXH.js → chunk.P74RZEWP.js} +2 -2
- package/dist/esm/chunks/{chunk.QLGJS37N.js → chunk.PBORL6KX.js} +2 -2
- package/dist/esm/chunks/chunk.PDJ2H5ZG.js +7 -0
- package/dist/esm/chunks/{chunk.UPSXYWPD.js.map → chunk.PDJ2H5ZG.js.map} +3 -3
- package/dist/esm/chunks/{chunk.JGURMVW7.js → chunk.PGMOAILY.js} +2 -2
- package/dist/esm/chunks/{chunk.OEI35LFU.js → chunk.PKCMTSWR.js} +2 -2
- package/dist/esm/chunks/{chunk.QUXMLWBJ.js → chunk.Q3Z6VZUD.js} +2 -2
- package/dist/esm/chunks/{chunk.TQWZDM6T.js → chunk.QBHJFCLL.js} +2 -2
- package/dist/esm/chunks/{chunk.WXVVOFNK.js → chunk.QDG6TP2Z.js} +2 -2
- package/dist/esm/chunks/{chunk.H5RW3A4M.js → chunk.QH27OIAK.js} +2 -2
- package/dist/esm/chunks/chunk.QKCPE4LW.js +7 -0
- package/dist/esm/chunks/{chunk.2GUWHBUU.js → chunk.QM32CJAX.js} +2 -2
- package/dist/esm/chunks/{chunk.2GUWHBUU.js.map → chunk.QM32CJAX.js.map} +2 -2
- package/dist/esm/chunks/{chunk.FLF5RTYO.js → chunk.R2CJMM2F.js} +2 -2
- package/dist/esm/chunks/{chunk.IQYOLMPG.js → chunk.RGDLRUSM.js} +2 -2
- package/dist/esm/chunks/{chunk.QIZBZGYT.js → chunk.RKPWFEFJ.js} +2 -2
- package/dist/esm/chunks/{chunk.RXBLU4OJ.js → chunk.S5EU72NR.js} +2 -2
- package/dist/esm/chunks/chunk.SJYEDGBN.js +7 -0
- package/dist/esm/chunks/chunk.SJYEDGBN.js.map +7 -0
- package/dist/esm/chunks/{chunk.T7NWP7DB.js → chunk.SW6JDC2Y.js} +2 -2
- package/dist/esm/chunks/{chunk.7IPAW4D2.js → chunk.TAQRHBGS.js} +2 -2
- package/dist/esm/chunks/{chunk.MFQRXVKO.js → chunk.TEZFEC5B.js} +2 -2
- package/dist/esm/chunks/{chunk.MX4JX4GT.js → chunk.THIUQ2AU.js} +2 -2
- package/dist/esm/chunks/{chunk.JE5LSPXG.js → chunk.TQMT7BIZ.js} +2 -2
- package/dist/esm/chunks/{chunk.GIENHEMN.js → chunk.TR45SGWL.js} +2 -2
- package/dist/esm/chunks/chunk.TZHVZMOB.js +12 -0
- package/dist/esm/chunks/chunk.TZHVZMOB.js.map +7 -0
- package/dist/esm/chunks/{chunk.CFAI4K3E.js → chunk.UBVWYWO7.js} +2 -2
- package/dist/esm/chunks/{chunk.NWVQ5HK2.js → chunk.UHPODZWA.js} +2 -2
- package/dist/esm/chunks/{chunk.3PMONORO.js → chunk.V4R7FCZ2.js} +2 -2
- package/dist/esm/chunks/chunk.V5YGDB7V.js +7 -0
- package/dist/esm/chunks/{chunk.ISLJNJEE.js.map → chunk.V5YGDB7V.js.map} +2 -2
- package/dist/esm/chunks/chunk.VAE5IFEM.js +7 -0
- package/dist/esm/chunks/{chunk.GBAVJILM.js.map → chunk.VAE5IFEM.js.map} +4 -4
- package/dist/esm/chunks/{chunk.QTY25OTN.js → chunk.VCASLYVR.js} +2 -2
- package/dist/esm/chunks/{chunk.QTY25OTN.js.map → chunk.VCASLYVR.js.map} +2 -2
- package/dist/esm/chunks/chunk.W4CL56G7.js +7 -0
- package/dist/esm/chunks/{chunk.BQZKOIAW.js.map → chunk.W4CL56G7.js.map} +2 -2
- package/dist/esm/chunks/{chunk.BEFAXPXJ.js → chunk.WNX3GGYT.js} +2 -2
- package/dist/esm/chunks/chunk.X4NHJE7S.js +7 -0
- package/dist/esm/chunks/chunk.X4NHJE7S.js.map +7 -0
- package/dist/esm/chunks/{chunk.I7YON2TC.js → chunk.X5MI5OFS.js} +2 -2
- package/dist/esm/chunks/{chunk.QKTK5XUE.js → chunk.XHRBFPZ2.js} +2 -2
- package/dist/esm/chunks/{chunk.ASLHRT3N.js → chunk.XT6RPXTM.js} +2 -2
- package/dist/esm/chunks/{chunk.VGIRVTBJ.js → chunk.XWVFJVBN.js} +2 -2
- package/dist/esm/chunks/{chunk.YNCTSMT6.js → chunk.YXFGOJ5Z.js} +2 -2
- package/dist/esm/chunks/chunk.YZ26YDCO.js +7 -0
- package/dist/esm/chunks/{chunk.A7BCLPP4.js.map → chunk.YZ26YDCO.js.map} +2 -2
- package/dist/esm/chunks/chunk.Z6G2RUC2.js +7 -0
- package/dist/esm/chunks/chunk.Z6G2RUC2.js.map +7 -0
- package/dist/esm/chunks/{chunk.K6GJNDTY.js → chunk.Z7IUKJHZ.js} +2 -2
- package/dist/esm/chunks/{chunk.K6GJNDTY.js.map → chunk.Z7IUKJHZ.js.map} +1 -1
- package/dist/esm/chunks/{chunk.GG7IQL46.js → chunk.ZPH3TMNA.js} +2 -2
- package/dist/esm/chunks/chunk.ZSHPKAXP.js +7 -0
- package/dist/esm/chunks/chunk.ZSHPKAXP.js.map +7 -0
- package/dist/esm/chunks/{chunk.CEGBMUSR.js → chunk.ZWELGTD7.js} +2 -2
- package/dist/esm/circular-progress/index.js +1 -1
- package/dist/esm/color-picker/index.js +1 -1
- package/dist/esm/core/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/icon-button/index.js +7 -0
- 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/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/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/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/profile-card/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/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/utils/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-tokens.css +6 -0
- package/dist/forge.css +1 -1
- package/dist/table/forge-table.css +1 -1
- package/dist/theme/forge-theme.css +1 -1
- package/dist/typography/forge-typography.css +1 -1
- package/esm/app-bar/search/app-bar-search.d.ts +3 -3
- package/esm/app-bar/search/app-bar-search.js +3 -3
- package/esm/avatar/avatar-constants.d.ts +0 -1
- package/esm/avatar/avatar-constants.js +0 -2
- package/esm/bottom-sheet/bottom-sheet-adapter.d.ts +26 -42
- package/esm/bottom-sheet/bottom-sheet-adapter.js +46 -85
- package/esm/bottom-sheet/bottom-sheet-constants.d.ts +16 -13
- package/esm/bottom-sheet/bottom-sheet-constants.js +24 -27
- package/esm/bottom-sheet/bottom-sheet-foundation.d.ts +17 -43
- package/esm/bottom-sheet/bottom-sheet-foundation.js +106 -213
- package/esm/bottom-sheet/bottom-sheet.d.ts +42 -29
- package/esm/bottom-sheet/bottom-sheet.js +52 -41
- package/esm/calendar/calendar-constants.d.ts +0 -1
- package/esm/calendar/calendar-constants.js +0 -1
- package/esm/calendar/calendar-dom-utils.js +10 -4
- package/esm/calendar/calendar-menu/calendar-menu-adapter.js +9 -2
- package/esm/calendar/calendar-menu/calendar-menu-constants.d.ts +0 -1
- package/esm/calendar/calendar-menu/calendar-menu-constants.js +0 -1
- package/esm/calendar/calendar-menu/calendar-menu-utils.js +10 -0
- package/esm/calendar/calendar-menu/calendar-menu.js +8 -2
- package/esm/calendar/calendar.js +6 -2
- package/esm/checkbox/checkbox-foundation.js +9 -9
- package/esm/checkbox/checkbox.js +1 -1
- package/esm/color-picker/color-picker.js +1 -1
- package/esm/deprecated/icon-button/deprecated-icon-button-component-delegate.d.ts +38 -0
- package/esm/deprecated/icon-button/deprecated-icon-button-component-delegate.js +93 -0
- package/esm/deprecated/icon-button/deprecated-icon-button-constants.d.ts +28 -0
- package/esm/deprecated/icon-button/deprecated-icon-button-constants.js +28 -0
- package/esm/deprecated/icon-button/deprecated-icon-button.d.ts +62 -0
- package/esm/deprecated/icon-button/deprecated-icon-button.js +208 -0
- package/esm/deprecated/icon-button/index.d.ts +12 -0
- package/esm/deprecated/icon-button/index.js +16 -0
- package/esm/dialog/dialog.js +1 -1
- 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/field/field.js +1 -1
- package/esm/index.d.ts +1 -3
- package/esm/index.js +4 -8
- package/esm/list/list/list.js +1 -1
- package/esm/list/list-item/list-item-adapter.js +4 -0
- package/esm/list/list-item/list-item.d.ts +6 -4
- package/esm/list/list-item/list-item.js +7 -5
- package/esm/open-icon/index.d.ts +0 -2
- package/esm/open-icon/index.js +0 -2
- package/esm/open-icon/open-icon-constants.d.ts +10 -6
- package/esm/open-icon/open-icon-constants.js +9 -11
- package/esm/open-icon/open-icon.d.ts +37 -12
- package/esm/open-icon/open-icon.js +67 -22
- package/esm/paginator/paginator-adapter.d.ts +19 -52
- package/esm/paginator/paginator-adapter.js +25 -106
- package/esm/paginator/paginator-constants.d.ts +22 -35
- package/esm/paginator/paginator-constants.js +17 -40
- package/esm/paginator/paginator-foundation.d.ts +10 -12
- package/esm/paginator/paginator-foundation.js +39 -51
- package/esm/paginator/paginator.d.ts +4 -7
- package/esm/paginator/paginator.js +24 -45
- package/esm/popover/popover.js +1 -1
- package/esm/profile-card/profile-card.js +1 -1
- package/esm/radio/radio/radio-foundation.js +2 -2
- package/esm/radio/radio/radio.js +1 -1
- package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
- package/esm/stepper/step/step.js +1 -1
- package/esm/switch/switch-foundation.js +6 -6
- package/esm/switch/switch.js +1 -1
- package/esm/table/table-constants.d.ts +1 -0
- package/esm/table/table-constants.js +4 -3
- package/esm/table/table-foundation.js +2 -2
- package/esm/table/table-utils.js +31 -14
- package/esm/tooltip/tooltip.js +1 -1
- package/esm/utils/color-utils.d.ts +0 -4
- package/esm/utils/color-utils.js +0 -19
- package/esm/view-switcher/view-switcher.js +1 -1
- package/package.json +1 -12
- package/styles/bottom-sheet/_core.scss +19 -0
- package/styles/bottom-sheet/_token-utils.scss +30 -0
- package/styles/bottom-sheet/bottom-sheet.scss +59 -3
- package/styles/{color-picker/_variables.scss → bottom-sheet/index.scss} +1 -1
- package/styles/calendar/_mixins.scss +33 -56
- package/styles/calendar/_variables.scss +39 -39
- package/styles/calendar/calendar-menu/_mixins.scss +25 -84
- package/styles/color-picker/_mixins.scss +15 -21
- package/styles/color-picker/color-picker.scss +0 -1
- package/styles/core/styles/animation/index.scss +22 -0
- package/styles/core/styles/border/index.scss +10 -1
- package/styles/core/styles/elevation/index.scss +19 -26
- package/styles/core/styles/shape/index.scss +9 -0
- package/styles/core/styles/spacing/index.scss +9 -0
- package/styles/core/styles/theme/index.scss +2 -13
- package/styles/core/styles/tokens/bottom-sheet/_tokens.scss +21 -0
- package/styles/core/styles/tokens/checkbox/_tokens.scss +1 -1
- package/styles/core/styles/tokens/elevation/_tokens.scss +35 -84
- package/styles/core/styles/tokens/list/list/_tokens.scss +14 -1
- package/styles/core/styles/tokens/list/list-item/_tokens.scss +6 -6
- package/styles/core/styles/tokens/open-icon/_tokens.scss +25 -0
- package/styles/core/styles/tokens/popover/_tokens.scss +1 -1
- package/styles/core/styles/tokens/radio/_tokens.scss +1 -1
- package/styles/core/styles/tokens/switch/_tokens.scss +1 -1
- package/styles/core/styles/tokens/theme/_tokens.core.scss +60 -30
- package/styles/core/styles/tokens/theme/_tokens.scss +1 -48
- package/styles/core/styles/tokens/theme/_tokens.status.scss +78 -32
- package/styles/core/styles/tokens/theme/_tokens.surface.scss +33 -51
- package/styles/core/styles/tokens/theme/_tokens.text.scss +20 -26
- package/styles/core/styles/tokens/theme/_tokens.utilities.scss +13 -23
- package/styles/core/styles/tokens/tooltip/_tokens.scss +1 -1
- package/styles/deprecated/icon-button/deprecated-icon-button.scss +114 -0
- package/styles/dialog/_core.scss +3 -1
- package/styles/dialog/dialog.scss +1 -1
- package/styles/drawer/base/_mixins.scss +11 -10
- package/styles/drawer/base/_variables.scss +6 -5
- package/styles/drawer/drawer/_variables.scss +6 -5
- package/styles/drawer/mini-drawer/_mixins.scss +11 -14
- package/styles/drawer/modal-drawer/_mixins.scss +4 -9
- package/styles/field/_core.variant.scss +0 -1
- package/styles/forge-tokens.scss +40 -0
- package/styles/forge.scss +1 -10
- package/styles/linear-progress/_core.scss +0 -1
- package/styles/list/list/list.scss +23 -7
- package/styles/list/list-item/_core.scss +10 -10
- package/styles/list/list-item/list-item.scss +4 -4
- package/styles/open-icon/_core.scss +26 -0
- package/styles/open-icon/_token-utils.scss +30 -0
- package/styles/{paginator/_variables.scss → open-icon/index.scss} +1 -1
- package/styles/open-icon/open-icon.scss +75 -3
- package/styles/paginator/_core.scss +42 -0
- package/styles/{typography/_index.scss → paginator/index.scss} +1 -2
- package/styles/paginator/paginator.scss +49 -5
- package/styles/profile-card/profile-card.scss +0 -1
- package/styles/split-view/split-view/_mixins.scss +0 -2
- package/styles/split-view/split-view-panel/_mixins.scss +12 -16
- package/styles/split-view/split-view-panel/_variables.scss +0 -1
- package/styles/table/_core.scss +333 -0
- package/styles/table/_variables.scss +22 -37
- package/styles/table/forge-table.scss +217 -3
- package/styles/{theme/_index.scss → table/index.scss} +1 -2
- package/styles/theme/_theme-dark.scss +0 -5
- package/styles/theme/forge-theme.scss +0 -7
- package/styles/typography/forge-typography.scss +0 -3
- package/styles/view-switcher/_mixins.scss +8 -8
- package/dist/busy-indicator/forge-busy-indicator.css +0 -6
- package/dist/esm/busy-indicator/index.js +0 -7
- package/dist/esm/chunks/chunk.3CTKWBV2.js +0 -7
- package/dist/esm/chunks/chunk.3CTKWBV2.js.map +0 -7
- package/dist/esm/chunks/chunk.5A665C5E.js +0 -7
- package/dist/esm/chunks/chunk.6E5WHIPF.js +0 -7
- package/dist/esm/chunks/chunk.6E5WHIPF.js.map +0 -7
- package/dist/esm/chunks/chunk.6VS3LYAF.js +0 -7
- package/dist/esm/chunks/chunk.6VS3LYAF.js.map +0 -7
- package/dist/esm/chunks/chunk.A7BCLPP4.js +0 -7
- package/dist/esm/chunks/chunk.AFWWND2C.js +0 -7
- package/dist/esm/chunks/chunk.AFWWND2C.js.map +0 -7
- package/dist/esm/chunks/chunk.BQZKOIAW.js +0 -7
- package/dist/esm/chunks/chunk.BV7EAQST.js +0 -7
- package/dist/esm/chunks/chunk.BV7EAQST.js.map +0 -7
- package/dist/esm/chunks/chunk.CGFSMACZ.js +0 -7
- package/dist/esm/chunks/chunk.CGFSMACZ.js.map +0 -7
- package/dist/esm/chunks/chunk.DZJ6HBAG.js +0 -7
- package/dist/esm/chunks/chunk.DZJ6HBAG.js.map +0 -7
- package/dist/esm/chunks/chunk.E2BE52ME.js +0 -7
- package/dist/esm/chunks/chunk.E2BE52ME.js.map +0 -7
- package/dist/esm/chunks/chunk.EUJBIOGT.js +0 -7
- package/dist/esm/chunks/chunk.EUJBIOGT.js.map +0 -7
- package/dist/esm/chunks/chunk.GBAVJILM.js +0 -7
- package/dist/esm/chunks/chunk.HG4IDRAC.js +0 -7
- package/dist/esm/chunks/chunk.HG4IDRAC.js.map +0 -7
- package/dist/esm/chunks/chunk.ISLJNJEE.js +0 -7
- package/dist/esm/chunks/chunk.KLU54MDQ.js +0 -7
- package/dist/esm/chunks/chunk.LGSCBWNR.js +0 -7
- package/dist/esm/chunks/chunk.LGSCBWNR.js.map +0 -7
- package/dist/esm/chunks/chunk.LSMHIVX2.js +0 -7
- package/dist/esm/chunks/chunk.LSMHIVX2.js.map +0 -7
- package/dist/esm/chunks/chunk.O5WAQQNR.js +0 -7
- package/dist/esm/chunks/chunk.O5WAQQNR.js.map +0 -7
- package/dist/esm/chunks/chunk.PFIIBXTS.js +0 -7
- package/dist/esm/chunks/chunk.PFIIBXTS.js.map +0 -7
- package/dist/esm/chunks/chunk.Q7TBWGKN.js +0 -12
- package/dist/esm/chunks/chunk.Q7TBWGKN.js.map +0 -7
- package/dist/esm/chunks/chunk.QVATEY5S.js +0 -7
- package/dist/esm/chunks/chunk.QVATEY5S.js.map +0 -7
- package/dist/esm/chunks/chunk.RFT3BAJ2.js +0 -7
- package/dist/esm/chunks/chunk.RFT3BAJ2.js.map +0 -7
- package/dist/esm/chunks/chunk.RKIJTSSL.js +0 -7
- package/dist/esm/chunks/chunk.RKIJTSSL.js.map +0 -7
- package/dist/esm/chunks/chunk.RLQB7224.js +0 -7
- package/dist/esm/chunks/chunk.RONMNRSH.js +0 -7
- package/dist/esm/chunks/chunk.RONMNRSH.js.map +0 -7
- package/dist/esm/chunks/chunk.RSYEG2RW.js +0 -7
- package/dist/esm/chunks/chunk.RSYEG2RW.js.map +0 -7
- package/dist/esm/chunks/chunk.UPSXYWPD.js +0 -7
- package/dist/esm/chunks/chunk.W6FT6MKN.js +0 -7
- package/dist/esm/chunks/chunk.W6FT6MKN.js.map +0 -7
- package/dist/esm/chunks/chunk.YRAEFQJW.js +0 -7
- package/dist/esm/chunks/chunk.YRAEFQJW.js.map +0 -7
- package/dist/esm/quantity-field/index.js +0 -7
- package/dist/esm/quantity-field/index.js.map +0 -7
- package/dist/esm/theme/index.js +0 -7
- package/dist/esm/theme/index.js.map +0 -7
- package/dist/quantity-field/forge-quantity-field.css +0 -6
- package/dist/typography/forge-typography-legacy.css +0 -6
- package/dist/utils/forge-utils.css +0 -6
- package/esm/busy-indicator/busy-indicator-adapter.d.ts +0 -155
- package/esm/busy-indicator/busy-indicator-adapter.js +0 -203
- package/esm/busy-indicator/busy-indicator-constants.d.ts +0 -49
- package/esm/busy-indicator/busy-indicator-constants.js +0 -58
- package/esm/busy-indicator/busy-indicator-foundation.d.ts +0 -97
- package/esm/busy-indicator/busy-indicator-foundation.js +0 -268
- package/esm/busy-indicator/busy-indicator.d.ts +0 -77
- package/esm/busy-indicator/busy-indicator.js +0 -115
- package/esm/busy-indicator/index.d.ts +0 -10
- package/esm/busy-indicator/index.js +0 -14
- package/esm/open-icon/open-icon-adapter.d.ts +0 -18
- package/esm/open-icon/open-icon-adapter.js +0 -27
- package/esm/open-icon/open-icon-foundation.d.ts +0 -22
- package/esm/open-icon/open-icon-foundation.js +0 -35
- package/esm/quantity-field/index.d.ts +0 -11
- package/esm/quantity-field/index.js +0 -15
- package/esm/quantity-field/quantity-field-adapter.d.ts +0 -77
- package/esm/quantity-field/quantity-field-adapter.js +0 -221
- package/esm/quantity-field/quantity-field-component-delegate.d.ts +0 -44
- package/esm/quantity-field/quantity-field-component-delegate.js +0 -129
- package/esm/quantity-field/quantity-field-constants.d.ts +0 -35
- package/esm/quantity-field/quantity-field-constants.js +0 -41
- package/esm/quantity-field/quantity-field-foundation.d.ts +0 -36
- package/esm/quantity-field/quantity-field-foundation.js +0 -100
- package/esm/quantity-field/quantity-field.d.ts +0 -34
- package/esm/quantity-field/quantity-field.js +0 -100
- package/esm/theme/color-constants.d.ts +0 -313
- package/esm/theme/color-constants.js +0 -363
- package/esm/theme/index.d.ts +0 -7
- package/esm/theme/index.js +0 -7
- package/esm/theme/theme-utils.d.ts +0 -9
- package/esm/theme/theme-utils.js +0 -68
- package/styles/bottom-sheet/_mixins.scss +0 -93
- package/styles/bottom-sheet/_variables.scss +0 -7
- package/styles/busy-indicator/_mixins.scss +0 -185
- package/styles/busy-indicator/_variables.scss +0 -9
- package/styles/busy-indicator/busy-indicator.scss +0 -22
- package/styles/busy-indicator/forge-busy-indicator.scss +0 -8
- package/styles/open-icon/_mixins.scss +0 -39
- package/styles/open-icon/_variables.scss +0 -8
- package/styles/paginator/_mixins.scss +0 -136
- package/styles/quantity-field/_mixins.scss +0 -116
- package/styles/quantity-field/forge-quantity-field.scss +0 -18
- package/styles/quantity-field/quantity-field.scss +0 -16
- package/styles/table/_mixins.scss +0 -547
- package/styles/theme/_custom-properties.scss +0 -311
- package/styles/theme/_keys.scss +0 -477
- package/styles/theme/_theme-utils.scss +0 -23
- package/styles/theme/_theme-values.scss +0 -246
- package/styles/theme/_theme.scss +0 -279
- package/styles/typography/_mixins.scss +0 -73
- package/styles/typography/_variables.scss +0 -100
- package/styles/typography/forge-typography-legacy.scss +0 -8
- package/styles/utils/forge-utils.scss +0 -45
- /package/dist/esm/chunks/{chunk.AOVXNX7P.js.map → chunk.24L6GVJK.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.WMJSYYXQ.js.map → chunk.27YQZWEJ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.AG6IRMLZ.js.map → chunk.2CP5CIRB.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.H4VQXV2H.js.map → chunk.3CXCYRCE.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.MTIPIEXA.js.map → chunk.3LNZRQAL.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.BQ52JYLA.js.map → chunk.3LUG3LPU.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IL4S57WO.js.map → chunk.3ODT27TD.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.A2NB7CIK.js.map → chunk.45N7ZZVL.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.YWJVZVZX.js.map → chunk.4GFUXXXH.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ZA7JY3AY.js.map → chunk.5DDR6QSF.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.3KAKJGUS.js.map → chunk.5NEWFXFX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.VRSPT7WX.js.map → chunk.5OT53ZJM.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.EHVCEEV2.js.map → chunk.6DWRGYKV.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IEABOPNB.js.map → chunk.6T7KPDCD.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.SROEDYPL.js.map → chunk.7JO5MB55.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.3IUQ4C47.js.map → chunk.7TE74NJZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.AGLI4WR4.js.map → chunk.AJLS5C7O.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KTPEFU7V.js.map → chunk.BURDWL57.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.BHE6Z5Y2.js.map → chunk.CQ4XBOX5.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.NEQX2QVX.js.map → chunk.DJQXJO3T.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.XTJGWT5F.js.map → chunk.DPJJB67L.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.OOAJHLW4.js.map → chunk.EZIABLIR.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ZG6YF2HI.js.map → chunk.F53DSRUO.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.7AAICE77.js.map → chunk.FIO22U2C.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.U6J4VHU6.js.map → chunk.FKMTIOBA.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.W4HANHUO.js.map → chunk.FMGBPF7B.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.5MB6CTBA.js.map → chunk.FVFPDWA4.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ENUKGA2U.js.map → chunk.FYPIHFXD.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.CE35CVDV.js.map → chunk.GQ33JZVE.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.5ADUSMC7.js.map → chunk.GUBLRHCG.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.37B332ZK.js.map → chunk.HSNVTV7K.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.PC6TW5XE.js.map → chunk.HXNNWUI3.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.77C7S7ZS.js.map → chunk.IOGCI64X.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.5UOX22ML.js.map → chunk.KKVQNKMV.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.YPNSK2CK.js.map → chunk.KW5A2U5U.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KO6ODCZC.js.map → chunk.LIJE4T3D.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KEOLH7G3.js.map → chunk.LQN5U4QH.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.24SQJBSQ.js.map → chunk.LSUIJDFO.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QCPV5DEG.js.map → chunk.N65CAIE5.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.UKBE2FMZ.js.map → chunk.NNLZKMFX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.EO3GP6DP.js.map → chunk.ON6FFHRE.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.OVXEOEJF.js.map → chunk.ONFZ3H7M.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.XATVDHDW.js.map → chunk.OVVBXM6K.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.DKERDHXH.js.map → chunk.P74RZEWP.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QLGJS37N.js.map → chunk.PBORL6KX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.JGURMVW7.js.map → chunk.PGMOAILY.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.OEI35LFU.js.map → chunk.PKCMTSWR.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QUXMLWBJ.js.map → chunk.Q3Z6VZUD.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.TQWZDM6T.js.map → chunk.QBHJFCLL.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.WXVVOFNK.js.map → chunk.QDG6TP2Z.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.H5RW3A4M.js.map → chunk.QH27OIAK.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.473WRJ5G.js.map → chunk.QKCPE4LW.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.FLF5RTYO.js.map → chunk.R2CJMM2F.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IQYOLMPG.js.map → chunk.RGDLRUSM.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QIZBZGYT.js.map → chunk.RKPWFEFJ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.RXBLU4OJ.js.map → chunk.S5EU72NR.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.T7NWP7DB.js.map → chunk.SW6JDC2Y.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.7IPAW4D2.js.map → chunk.TAQRHBGS.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.MFQRXVKO.js.map → chunk.TEZFEC5B.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.MX4JX4GT.js.map → chunk.THIUQ2AU.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.JE5LSPXG.js.map → chunk.TQMT7BIZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.GIENHEMN.js.map → chunk.TR45SGWL.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.CFAI4K3E.js.map → chunk.UBVWYWO7.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.NWVQ5HK2.js.map → chunk.UHPODZWA.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.3PMONORO.js.map → chunk.V4R7FCZ2.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.BEFAXPXJ.js.map → chunk.WNX3GGYT.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.I7YON2TC.js.map → chunk.X5MI5OFS.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QKTK5XUE.js.map → chunk.XHRBFPZ2.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ASLHRT3N.js.map → chunk.XT6RPXTM.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.VGIRVTBJ.js.map → chunk.XWVFJVBN.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.YNCTSMT6.js.map → chunk.YXFGOJ5Z.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.GG7IQL46.js.map → chunk.ZPH3TMNA.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.CEGBMUSR.js.map → chunk.ZWELGTD7.js.map} +0 -0
- /package/dist/esm/{busy-indicator → deprecated/icon-button}/index.js.map +0 -0
|
@@ -5,30 +5,19 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { ICustomElementFoundation } from '@tylertech/forge-core';
|
|
7
7
|
import { IBottomSheetAdapter } from './bottom-sheet-adapter';
|
|
8
|
+
import { BottomSheetMode } from './bottom-sheet-constants';
|
|
8
9
|
export interface IBottomSheetFoundation extends ICustomElementFoundation {
|
|
9
|
-
|
|
10
|
-
escapeClose: boolean;
|
|
10
|
+
mode: BottomSheetMode;
|
|
11
11
|
open: boolean;
|
|
12
|
+
persistent: boolean;
|
|
12
13
|
fullscreen: boolean;
|
|
13
|
-
showBackdrop: boolean;
|
|
14
|
-
openCallback: () => void | Promise<void>;
|
|
15
|
-
closeCallback: () => void | Promise<void>;
|
|
16
|
-
beforeCloseCallback: () => boolean | Promise<boolean>;
|
|
17
14
|
}
|
|
18
15
|
export declare class BottomSheetFoundation implements IBottomSheetFoundation {
|
|
19
16
|
_adapter: IBottomSheetAdapter;
|
|
20
17
|
private _open;
|
|
21
|
-
private
|
|
22
|
-
private
|
|
18
|
+
private _mode;
|
|
19
|
+
private _persistent;
|
|
23
20
|
private _fullscreen;
|
|
24
|
-
private _showBackdrop;
|
|
25
|
-
private _openCallback;
|
|
26
|
-
private _closeCallback;
|
|
27
|
-
private _beforeCloseCallback;
|
|
28
|
-
private _openTransitionEndHandler;
|
|
29
|
-
private _closeTransitionEndHandler;
|
|
30
|
-
private _documentKeydownHandler;
|
|
31
|
-
private _backdropClickHandler;
|
|
32
21
|
private _isDragging;
|
|
33
22
|
private _dragContext;
|
|
34
23
|
private _lastPosition;
|
|
@@ -37,37 +26,14 @@ export declare class BottomSheetFoundation implements IBottomSheetFoundation {
|
|
|
37
26
|
private _dragMoveHandler;
|
|
38
27
|
private _dragEndHandler;
|
|
39
28
|
private _dragCancelHandler;
|
|
29
|
+
private _dialogDismissListener;
|
|
30
|
+
private _dialogBeforeCloseListener;
|
|
40
31
|
constructor(_adapter: IBottomSheetAdapter);
|
|
41
32
|
initialize(): void;
|
|
42
|
-
destroy(): void;
|
|
43
|
-
private _setOpen;
|
|
44
33
|
private _openBottomSheet;
|
|
45
34
|
private _closeBottomSheet;
|
|
46
|
-
private
|
|
47
|
-
private
|
|
48
|
-
private _onDocumentKeydown;
|
|
49
|
-
private _onBackdropClick;
|
|
50
|
-
private _tryClose;
|
|
51
|
-
private _setBackdropClickListener;
|
|
52
|
-
private _setDocumentKeydownListener;
|
|
53
|
-
/** Controls whether clicking the backdrop closes the bottom sheet or not. */
|
|
54
|
-
set backdropClose(value: boolean);
|
|
55
|
-
get backdropClose(): boolean;
|
|
56
|
-
/** Controls whether pressing the escape key closes the sheet or not. */
|
|
57
|
-
set escapeClose(value: boolean);
|
|
58
|
-
get escapeClose(): boolean;
|
|
59
|
-
get open(): boolean;
|
|
60
|
-
set open(value: boolean);
|
|
61
|
-
get fullscreen(): boolean;
|
|
62
|
-
set fullscreen(value: boolean);
|
|
63
|
-
get showBackdrop(): boolean;
|
|
64
|
-
set showBackdrop(value: boolean);
|
|
65
|
-
get openCallback(): () => void | Promise<void>;
|
|
66
|
-
set openCallback(callback: () => void | Promise<void>);
|
|
67
|
-
get closeCallback(): () => void | Promise<void>;
|
|
68
|
-
set closeCallback(callback: () => void | Promise<void>);
|
|
69
|
-
get beforeCloseCallback(): () => boolean | Promise<boolean>;
|
|
70
|
-
set beforeCloseCallback(callback: () => boolean | Promise<boolean>);
|
|
35
|
+
private _onDialogDismiss;
|
|
36
|
+
private _onDialogBeforeClose;
|
|
71
37
|
/** If scrollable, allow drag to/from fullscreen, and make fullscreen on scroll. */
|
|
72
38
|
private _initScrollableHandlers;
|
|
73
39
|
private _onBodyScroll;
|
|
@@ -76,4 +42,12 @@ export declare class BottomSheetFoundation implements IBottomSheetFoundation {
|
|
|
76
42
|
private _onDragEnd;
|
|
77
43
|
private _onDragCancel;
|
|
78
44
|
private _dragComplete;
|
|
45
|
+
get open(): boolean;
|
|
46
|
+
set open(value: boolean);
|
|
47
|
+
get mode(): BottomSheetMode;
|
|
48
|
+
set mode(value: BottomSheetMode);
|
|
49
|
+
get persistent(): boolean;
|
|
50
|
+
set persistent(value: boolean);
|
|
51
|
+
get fullscreen(): boolean;
|
|
52
|
+
set fullscreen(value: boolean);
|
|
79
53
|
}
|
|
@@ -4,239 +4,78 @@
|
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { getEventPath } from '@tylertech/forge-core';
|
|
7
|
+
import { DIALOG_CONSTANTS } from '../dialog';
|
|
7
8
|
import { BOTTOM_SHEET_CONSTANTS } from './bottom-sheet-constants';
|
|
8
9
|
export class BottomSheetFoundation {
|
|
9
10
|
constructor(_adapter) {
|
|
10
11
|
this._adapter = _adapter;
|
|
11
12
|
this._open = false;
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
13
|
+
this._mode = 'nonmodal';
|
|
14
|
+
this._persistent = false;
|
|
14
15
|
this._fullscreen = false;
|
|
15
|
-
this._showBackdrop = false;
|
|
16
16
|
this._isDragging = false;
|
|
17
17
|
this._bodyScrollHandler = () => this._onBodyScroll();
|
|
18
|
-
this._dragStartHandler =
|
|
19
|
-
this._dragMoveHandler =
|
|
20
|
-
this._dragEndHandler =
|
|
21
|
-
this._dragCancelHandler =
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
24
|
-
this._documentKeydownHandler = (evt) => this._onDocumentKeydown(evt);
|
|
25
|
-
this._backdropClickHandler = (evt) => this._onBackdropClick(evt);
|
|
18
|
+
this._dragStartHandler = this._onDragStart.bind(this);
|
|
19
|
+
this._dragMoveHandler = this._onDragMove.bind(this);
|
|
20
|
+
this._dragEndHandler = this._onDragEnd.bind(this);
|
|
21
|
+
this._dragCancelHandler = this._onDragCancel.bind(this);
|
|
22
|
+
this._dialogDismissListener = this._onDialogDismiss.bind(this);
|
|
23
|
+
this._dialogBeforeCloseListener = this._onDialogBeforeClose.bind(this);
|
|
26
24
|
}
|
|
27
25
|
initialize() {
|
|
28
|
-
this._adapter.
|
|
29
|
-
}
|
|
30
|
-
destroy() {
|
|
31
|
-
if (this._open) {
|
|
32
|
-
this._adapter.deregisterTransitionEndHandler(this._openTransitionEndHandler);
|
|
33
|
-
this._adapter.removeDocumentListener('keydown', this._documentKeydownHandler);
|
|
34
|
-
this._adapter.deregisterBackdropClickHandler(this._backdropClickHandler);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
_setOpen(open) {
|
|
38
|
-
this._open = open;
|
|
26
|
+
this._adapter.initialize();
|
|
39
27
|
if (this._open) {
|
|
40
28
|
this._openBottomSheet();
|
|
41
29
|
}
|
|
42
|
-
else {
|
|
43
|
-
this._closeBottomSheet();
|
|
44
|
-
}
|
|
45
|
-
this._adapter.toggleHostAttribute(BOTTOM_SHEET_CONSTANTS.attributes.OPEN, this._open);
|
|
46
30
|
}
|
|
47
31
|
_openBottomSheet() {
|
|
48
|
-
this.
|
|
49
|
-
|
|
50
|
-
this._adapter.registerTransitionEndHandler(this._openTransitionEndHandler);
|
|
51
|
-
this._setDocumentKeydownListener(this._escapeClose);
|
|
52
|
-
this._setBackdropClickListener(this._backdropClose);
|
|
53
|
-
// Ensure transitions are triggered properly
|
|
54
|
-
window.requestAnimationFrame(() => {
|
|
55
|
-
window.requestAnimationFrame(() => {
|
|
56
|
-
this._adapter.setVisibility(true);
|
|
57
|
-
this._adapter.emitHostEvent(BOTTOM_SHEET_CONSTANTS.events.OPEN);
|
|
58
|
-
this._adapter.trySetInitialFocus();
|
|
59
|
-
this._adapter.initScrollable();
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
_closeBottomSheet() {
|
|
64
|
-
this._adapter.deregisterTransitionEndHandler(this._openTransitionEndHandler);
|
|
65
|
-
this._adapter.removeDocumentListener('keydown', this._documentKeydownHandler);
|
|
66
|
-
this._adapter.deregisterBackdropClickHandler(this._backdropClickHandler);
|
|
67
|
-
this._adapter.registerTransitionEndHandler(this._closeTransitionEndHandler);
|
|
68
|
-
this._adapter.setVisibility(false);
|
|
69
|
-
}
|
|
70
|
-
_onCloseTransitionEnd() {
|
|
71
|
-
this._adapter.emitHostEvent(BOTTOM_SHEET_CONSTANTS.events.CLOSE);
|
|
72
|
-
this._adapter.detach();
|
|
73
|
-
const openBottomSheets = this._adapter.getOpenBottomSheets(BOTTOM_SHEET_CONSTANTS.elementName);
|
|
74
|
-
if (!openBottomSheets.length) {
|
|
75
|
-
this._adapter.removeBodyAttribute(BOTTOM_SHEET_CONSTANTS.attributes.OPEN);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
_onOpenTransitionEnd() {
|
|
79
|
-
if (!this._open) {
|
|
80
|
-
return;
|
|
32
|
+
if (this._fullscreen) {
|
|
33
|
+
this._adapter.setFullscreen(true);
|
|
81
34
|
}
|
|
82
|
-
this._adapter.
|
|
83
|
-
this._adapter.
|
|
84
|
-
this._adapter.
|
|
35
|
+
this._adapter.addDialogListener(DIALOG_CONSTANTS.events.BEFORE_CLOSE, this._dialogBeforeCloseListener);
|
|
36
|
+
this._adapter.addDialogListener(DIALOG_CONSTANTS.events.CLOSE, this._dialogDismissListener);
|
|
37
|
+
this._adapter.open();
|
|
85
38
|
if (this._adapter.isScrollable()) {
|
|
86
39
|
this._initScrollableHandlers();
|
|
87
40
|
}
|
|
41
|
+
this._adapter.trySetInitialFocus();
|
|
42
|
+
this._adapter.setBodyAttribute(BOTTOM_SHEET_CONSTANTS.attributes.OPEN, 'true');
|
|
43
|
+
this._adapter.dispatchHostEvent(new CustomEvent(BOTTOM_SHEET_CONSTANTS.events.OPEN, { bubbles: true }));
|
|
88
44
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
evt.stopPropagation();
|
|
97
|
-
this._tryClose();
|
|
98
|
-
}
|
|
99
|
-
async _tryClose() {
|
|
100
|
-
const isCancelled = !this._adapter.emitHostEvent(BOTTOM_SHEET_CONSTANTS.events.BEFORE_CLOSE, undefined, undefined, true);
|
|
101
|
-
if (isCancelled) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
if (!this._beforeCloseCallback) {
|
|
105
|
-
this.open = false;
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
try {
|
|
109
|
-
const shouldClose = await Promise.resolve(this._beforeCloseCallback());
|
|
110
|
-
if (shouldClose) {
|
|
111
|
-
this.open = false;
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
catch (err) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
_setBackdropClickListener(attach) {
|
|
120
|
-
if (!this._open) {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
if (attach) {
|
|
124
|
-
this._adapter.registerBackdropClickHandler(this._backdropClickHandler);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
this._adapter.deregisterBackdropClickHandler(this._backdropClickHandler);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
_setDocumentKeydownListener(attach) {
|
|
131
|
-
if (!this._open) {
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
if (attach) {
|
|
135
|
-
this._adapter.addDocumentListener('keydown', this._documentKeydownHandler);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
this._adapter.removeDocumentListener('keydown', this._documentKeydownHandler);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
/** Controls whether clicking the backdrop closes the bottom sheet or not. */
|
|
142
|
-
set backdropClose(value) {
|
|
143
|
-
value = Boolean(value);
|
|
144
|
-
if (this._backdropClose !== value) {
|
|
145
|
-
this._backdropClose = value;
|
|
146
|
-
this._setBackdropClickListener(this._backdropClose);
|
|
147
|
-
this._adapter.toggleHostAttribute(BOTTOM_SHEET_CONSTANTS.attributes.BACKDROP_CLOSE, this._backdropClose);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
get backdropClose() {
|
|
151
|
-
return this._backdropClose;
|
|
152
|
-
}
|
|
153
|
-
/** Controls whether pressing the escape key closes the sheet or not. */
|
|
154
|
-
set escapeClose(value) {
|
|
155
|
-
value = Boolean(value);
|
|
156
|
-
if (this._escapeClose !== value) {
|
|
157
|
-
this._escapeClose = value;
|
|
158
|
-
this._setDocumentKeydownListener(this._escapeClose);
|
|
159
|
-
this._adapter.toggleHostAttribute(BOTTOM_SHEET_CONSTANTS.attributes.ESCAPE_CLOSE, this._escapeClose);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
get escapeClose() {
|
|
163
|
-
return this._escapeClose;
|
|
164
|
-
}
|
|
165
|
-
get open() {
|
|
166
|
-
return this._open;
|
|
167
|
-
}
|
|
168
|
-
set open(value) {
|
|
169
|
-
if (this._open !== value) {
|
|
170
|
-
value = Boolean(value);
|
|
171
|
-
if (value !== this._open) {
|
|
172
|
-
const callback = value ? this._openCallback : this._closeCallback;
|
|
173
|
-
if (callback) {
|
|
174
|
-
Promise.resolve(callback())
|
|
175
|
-
.then(() => {
|
|
176
|
-
this._setOpen(value);
|
|
177
|
-
})
|
|
178
|
-
.catch(() => { });
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
this._setOpen(value);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
get fullscreen() {
|
|
187
|
-
return this._fullscreen;
|
|
188
|
-
}
|
|
189
|
-
set fullscreen(value) {
|
|
190
|
-
if (this._fullscreen !== value) {
|
|
191
|
-
this._fullscreen = value;
|
|
192
|
-
this._adapter.setFullscreen(this._fullscreen);
|
|
193
|
-
this._adapter.toggleHostAttribute(BOTTOM_SHEET_CONSTANTS.attributes.FULLSCREEN, this._fullscreen);
|
|
194
|
-
}
|
|
45
|
+
_closeBottomSheet() {
|
|
46
|
+
this._adapter.removeDialogListener(DIALOG_CONSTANTS.events.BEFORE_CLOSE, this._dialogBeforeCloseListener);
|
|
47
|
+
this._adapter.removeDialogListener(DIALOG_CONSTANTS.events.CLOSE, this._dialogDismissListener);
|
|
48
|
+
this._adapter.close();
|
|
49
|
+
this._adapter.dispatchHostEvent(new CustomEvent(BOTTOM_SHEET_CONSTANTS.events.CLOSE, { bubbles: true }));
|
|
50
|
+
this._open = false;
|
|
51
|
+
this._adapter.setFullscreen(false);
|
|
195
52
|
}
|
|
196
|
-
|
|
197
|
-
|
|
53
|
+
_onDialogDismiss() {
|
|
54
|
+
this._closeBottomSheet();
|
|
198
55
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
56
|
+
_onDialogBeforeClose(evt) {
|
|
57
|
+
const beforeCloseEvent = new CustomEvent(BOTTOM_SHEET_CONSTANTS.events.BEFORE_CLOSE, { bubbles: true, cancelable: true });
|
|
58
|
+
this._adapter.dispatchHostEvent(beforeCloseEvent);
|
|
59
|
+
if (beforeCloseEvent.defaultPrevented) {
|
|
60
|
+
evt.preventDefault();
|
|
204
61
|
}
|
|
205
62
|
}
|
|
206
|
-
get openCallback() {
|
|
207
|
-
return this._openCallback;
|
|
208
|
-
}
|
|
209
|
-
set openCallback(callback) {
|
|
210
|
-
this._openCallback = callback;
|
|
211
|
-
}
|
|
212
|
-
get closeCallback() {
|
|
213
|
-
return this._closeCallback;
|
|
214
|
-
}
|
|
215
|
-
set closeCallback(callback) {
|
|
216
|
-
this._closeCallback = callback;
|
|
217
|
-
}
|
|
218
|
-
get beforeCloseCallback() {
|
|
219
|
-
return this._beforeCloseCallback;
|
|
220
|
-
}
|
|
221
|
-
set beforeCloseCallback(callback) {
|
|
222
|
-
this._beforeCloseCallback = callback;
|
|
223
|
-
}
|
|
224
63
|
/** If scrollable, allow drag to/from fullscreen, and make fullscreen on scroll. */
|
|
225
64
|
_initScrollableHandlers() {
|
|
226
|
-
if (!this.
|
|
65
|
+
if (!this._adapter.isFullscreen() && this._adapter.isScrollable()) {
|
|
227
66
|
this._adapter.setDragTargetHandler('mousedown', this._dragStartHandler);
|
|
228
67
|
this._adapter.setDragTargetHandler('touchstart', this._dragStartHandler);
|
|
229
68
|
this._adapter.setBodyScrollHandler(this._bodyScrollHandler);
|
|
230
69
|
}
|
|
231
70
|
}
|
|
232
71
|
_onBodyScroll() {
|
|
233
|
-
if (!this.
|
|
234
|
-
this.
|
|
235
|
-
this._adapter.
|
|
72
|
+
if (!this._adapter.isFullscreen() && !this._isDragging) {
|
|
73
|
+
this._adapter.setFullscreen(true);
|
|
74
|
+
this._adapter.dispatchHostEvent(new CustomEvent(BOTTOM_SHEET_CONSTANTS.events.FULLSCREEN, { bubbles: true, detail: true }));
|
|
236
75
|
}
|
|
237
76
|
}
|
|
238
77
|
_onDragStart(evt) {
|
|
239
|
-
if (this.
|
|
78
|
+
if (this._adapter.isFullscreen()) {
|
|
240
79
|
const eventPath = getEventPath(evt);
|
|
241
80
|
const isWithinScrollContainer = this._adapter.isScrollable() && this._adapter.isContentChild(eventPath[0]);
|
|
242
81
|
if (isWithinScrollContainer) {
|
|
@@ -269,21 +108,24 @@ export class BottomSheetFoundation {
|
|
|
269
108
|
// then update the surface position if not prevented
|
|
270
109
|
if (!this._isDragging) {
|
|
271
110
|
this._isDragging = true;
|
|
272
|
-
const
|
|
273
|
-
|
|
111
|
+
const dragStartEvt = new CustomEvent(BOTTOM_SHEET_CONSTANTS.events.DRAG_START, { bubbles: true, detail: height, cancelable: true });
|
|
112
|
+
this._adapter.dispatchHostEvent(dragStartEvt);
|
|
113
|
+
if (dragStartEvt.defaultPrevented) {
|
|
274
114
|
return;
|
|
275
115
|
}
|
|
276
116
|
this._adapter.setDragging(true);
|
|
277
117
|
}
|
|
278
118
|
// If not fullscreen, clamp to minimum of original height.
|
|
279
|
-
const newPosition = this.
|
|
119
|
+
const newPosition = this._adapter.isFullscreen() ? height : { y: Math.max(height.y, this._dragContext.height) };
|
|
280
120
|
// Only update the position if it actually changed
|
|
281
121
|
if (!this._lastPosition || newPosition.y !== this._lastPosition.y) {
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
122
|
+
const dragMoveEvt = new CustomEvent(BOTTOM_SHEET_CONSTANTS.events.DRAGGED, { bubbles: true, detail: newPosition, cancelable: true });
|
|
123
|
+
this._adapter.dispatchHostEvent(dragMoveEvt);
|
|
124
|
+
if (dragMoveEvt.defaultPrevented) {
|
|
125
|
+
return;
|
|
286
126
|
}
|
|
127
|
+
this._lastPosition = Object.assign(Object.assign({}, newPosition), { clientY });
|
|
128
|
+
this._adapter.setContainerHeight(newPosition.y);
|
|
287
129
|
}
|
|
288
130
|
}
|
|
289
131
|
_onDragEnd() {
|
|
@@ -291,24 +133,27 @@ export class BottomSheetFoundation {
|
|
|
291
133
|
const clientY = this._lastPosition.clientY;
|
|
292
134
|
const dragContext = this._dragContext;
|
|
293
135
|
if (dragContext) {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
this._adapter.
|
|
136
|
+
const isFullscreen = this._adapter.isFullscreen();
|
|
137
|
+
if (isFullscreen && clientY > 0) {
|
|
138
|
+
this._adapter.setFullscreen(false);
|
|
297
139
|
}
|
|
298
|
-
else if (!
|
|
299
|
-
this.
|
|
300
|
-
this._adapter.emitHostEvent(BOTTOM_SHEET_CONSTANTS.events.FULLSCREEN, this._fullscreen);
|
|
140
|
+
else if (!isFullscreen && clientY < dragContext.height + dragContext.top) {
|
|
141
|
+
this._adapter.setFullscreen(true);
|
|
301
142
|
}
|
|
143
|
+
const fullscreenEvt = new CustomEvent(BOTTOM_SHEET_CONSTANTS.events.FULLSCREEN, { bubbles: true, detail: isFullscreen });
|
|
144
|
+
this._adapter.dispatchHostEvent(fullscreenEvt);
|
|
302
145
|
}
|
|
303
146
|
}
|
|
304
147
|
if (this._isDragging) {
|
|
305
|
-
|
|
148
|
+
const dragEndEvt = new CustomEvent(BOTTOM_SHEET_CONSTANTS.events.DRAG_END, { bubbles: true });
|
|
149
|
+
this._adapter.dispatchHostEvent(dragEndEvt);
|
|
306
150
|
}
|
|
307
151
|
this._dragComplete();
|
|
308
152
|
}
|
|
309
153
|
_onDragCancel() {
|
|
310
154
|
if (this._isDragging) {
|
|
311
|
-
|
|
155
|
+
const dragCancelEvt = new CustomEvent(BOTTOM_SHEET_CONSTANTS.events.DRAG_CANCEL, { bubbles: true });
|
|
156
|
+
this._adapter.dispatchHostEvent(dragCancelEvt);
|
|
312
157
|
}
|
|
313
158
|
this._dragComplete();
|
|
314
159
|
}
|
|
@@ -324,4 +169,52 @@ export class BottomSheetFoundation {
|
|
|
324
169
|
this._dragContext = undefined;
|
|
325
170
|
this._isDragging = false;
|
|
326
171
|
}
|
|
172
|
+
get open() {
|
|
173
|
+
return this._open;
|
|
174
|
+
}
|
|
175
|
+
set open(value) {
|
|
176
|
+
value = Boolean(value);
|
|
177
|
+
if (this._open !== value) {
|
|
178
|
+
this._open = value;
|
|
179
|
+
if (this._adapter.isConnected) {
|
|
180
|
+
if (this._open) {
|
|
181
|
+
this._openBottomSheet();
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
this._closeBottomSheet();
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
this._adapter.toggleHostAttribute(BOTTOM_SHEET_CONSTANTS.attributes.OPEN, value);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
get mode() {
|
|
191
|
+
return this._mode;
|
|
192
|
+
}
|
|
193
|
+
set mode(value) {
|
|
194
|
+
if (this._mode !== value) {
|
|
195
|
+
this._mode = value;
|
|
196
|
+
this._adapter.setDialogProperty('mode', this._mode);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
get persistent() {
|
|
200
|
+
return this._persistent;
|
|
201
|
+
}
|
|
202
|
+
set persistent(value) {
|
|
203
|
+
value = Boolean(value);
|
|
204
|
+
if (this._persistent !== value) {
|
|
205
|
+
this._persistent = value;
|
|
206
|
+
this._adapter.setDialogProperty('persistent', this._persistent);
|
|
207
|
+
this._adapter.toggleHostAttribute(BOTTOM_SHEET_CONSTANTS.attributes.PERSISTENT, this._persistent);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
get fullscreen() {
|
|
211
|
+
return this._fullscreen;
|
|
212
|
+
}
|
|
213
|
+
set fullscreen(value) {
|
|
214
|
+
if (this._fullscreen !== value) {
|
|
215
|
+
this._fullscreen = value;
|
|
216
|
+
this._adapter.setFullscreen(this._fullscreen);
|
|
217
|
+
this._adapter.toggleHostAttribute(BOTTOM_SHEET_CONSTANTS.attributes.FULLSCREEN, this._fullscreen);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
327
220
|
}
|
|
@@ -4,27 +4,22 @@
|
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { ICustomElement } from '@tylertech/forge-core';
|
|
7
|
-
import {
|
|
7
|
+
import { BaseComponent } from '../core/base/base-component';
|
|
8
|
+
import { BottomSheetMode, IBottomSheetDragEventData, IBottomSheetDragStartEventData } from './bottom-sheet-constants';
|
|
8
9
|
export interface IBottomSheetComponent extends ICustomElement {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
escapeClose: boolean;
|
|
10
|
+
mode: BottomSheetMode;
|
|
11
|
+
persistent: boolean;
|
|
12
12
|
open: boolean;
|
|
13
13
|
fullscreen: boolean;
|
|
14
|
-
openCallback: () => void | Promise<void>;
|
|
15
|
-
closeCallback: () => void | Promise<void>;
|
|
16
|
-
beforeCloseCallback: () => boolean | Promise<boolean>;
|
|
17
14
|
}
|
|
18
15
|
declare global {
|
|
19
16
|
interface HTMLElementTagNameMap {
|
|
20
17
|
'forge-bottom-sheet': IBottomSheetComponent;
|
|
21
18
|
}
|
|
22
19
|
interface HTMLElementEventMap {
|
|
23
|
-
'forge-bottom-sheet-open': CustomEvent<void>;
|
|
24
|
-
'forge-bottom-sheet-close': CustomEvent<void>;
|
|
25
20
|
'forge-bottom-sheet-before-close': CustomEvent<void>;
|
|
26
|
-
'forge-bottom-sheet-
|
|
27
|
-
'forge-bottom-sheet-
|
|
21
|
+
'forge-bottom-sheet-close': CustomEvent<void>;
|
|
22
|
+
'forge-bottom-sheet-open': CustomEvent<void>;
|
|
28
23
|
'forge-bottom-sheet-drag-start': CustomEvent<IBottomSheetDragStartEventData>;
|
|
29
24
|
'forge-bottom-sheet-dragged': CustomEvent<IBottomSheetDragEventData>;
|
|
30
25
|
'forge-bottom-sheet-drag-end': CustomEvent<void>;
|
|
@@ -32,32 +27,50 @@ declare global {
|
|
|
32
27
|
'forge-bottom-sheet-fullscreen': CustomEvent<boolean>;
|
|
33
28
|
}
|
|
34
29
|
}
|
|
30
|
+
declare const BaseClass: import("..").AbstractConstructor<import("../core/mixins/internals/with-element-internals").WithElementInternalsContract> & import("..").AbstractConstructor<import("../core/mixins/internals/with-default-aria").WithDefaultAriaContract> & typeof BaseComponent;
|
|
35
31
|
/**
|
|
36
|
-
* The web component class behind the `<forge-bottom-sheet>` custom element.
|
|
37
|
-
*
|
|
38
32
|
* @tag forge-bottom-sheet
|
|
33
|
+
*
|
|
34
|
+
* @summary Bottom sheets slide up from the bottom of the screen to reveal more content and/or actions that the user can take.
|
|
35
|
+
*
|
|
36
|
+
* @property {boolean} open - Whether the bottom sheet is open.
|
|
37
|
+
* @property {BottomSheetMode} mode - The mode of the bottom sheet. Defaults to non-modal.
|
|
38
|
+
* @property {boolean} persistent - Whether the bottom sheet is persistent.
|
|
39
|
+
* @property {boolean} fullscreen - Whether the bottom sheet is fullscreen.
|
|
40
|
+
*
|
|
41
|
+
* @attribute {boolean} open - Whether the bottom sheet is open.
|
|
42
|
+
* @attribute {BottomSheetMode} mode - The mode of the bottom sheet. Defaults to non-modal.
|
|
43
|
+
* @attribute {boolean} persistent - Whether the bottom sheet is persistent.
|
|
44
|
+
* @attribute {boolean} fullscreen - Whether the bottom sheet is fullscreen.
|
|
45
|
+
*
|
|
46
|
+
* @event {CustomEvent<void>} forge-bottom-sheet-before-close - Fires before the bottom sheet closes.
|
|
47
|
+
* @event {CustomEvent<void>} forge-bottom-sheet-close - Fires after the bottom sheet closes.
|
|
48
|
+
* @event {CustomEvent<void>} forge-bottom-sheet-open - Fires after the bottom sheet opens.
|
|
49
|
+
* @event {CustomEvent<IBottomSheetDragStartEventData>} forge-bottom-sheet-drag-start - Fires when the bottom sheet starts to be dragged.
|
|
50
|
+
* @event {CustomEvent<IBottomSheetDragEventData>} forge-bottom-sheet-dragged - Fires when the bottom sheet is dragged.
|
|
51
|
+
* @event {CustomEvent<void>} forge-bottom-sheet-drag-end - Fires when the bottom sheet drag ends.
|
|
52
|
+
* @event {CustomEvent<void>} forge-bottom-sheet-drag-cancel - Fires when the bottom sheet drag is cancelled.
|
|
53
|
+
* @event {CustomEvent<boolean>} forge-bottom-sheet-fullscreen - Fires when the bottom sheet is toggled to fullscreen.
|
|
54
|
+
*
|
|
55
|
+
* @cssproperty --forge-bottom-sheet-desktop-max-width - The maximum width of the bottom sheet on desktop.
|
|
56
|
+
* @cssproperty --forge-bottom-sheet-desktop-min-width - The minimum width of the bottom sheet on desktop.
|
|
57
|
+
* @cssproperty --forge-bottom-sheet-animation-duration - The duration of the bottom sheet animation to fullscreen.
|
|
58
|
+
* @cssproperty --forge-bottom-sheet-animation-timing - The timing function of the bottom sheet animation to fullscreen.
|
|
59
|
+
*
|
|
60
|
+
* @csspart root - The root element of the bottom sheet.
|
|
61
|
+
* @csspart surface - The surface element of the bottom sheet within th dialog.
|
|
62
|
+
*
|
|
63
|
+
* @slot - The content of the bottom sheet. This is a passthrough slot to the dialog surface.
|
|
39
64
|
*/
|
|
40
|
-
export declare class BottomSheetComponent extends
|
|
65
|
+
export declare class BottomSheetComponent extends BaseClass implements IBottomSheetComponent {
|
|
41
66
|
static get observedAttributes(): string[];
|
|
42
67
|
private _foundation;
|
|
43
68
|
constructor();
|
|
44
69
|
connectedCallback(): void;
|
|
45
|
-
disconnectedCallback(): void;
|
|
46
70
|
attributeChangedCallback(name: string, _oldValue: string, newValue: string): void;
|
|
47
|
-
/** Controls whether clicking the backdrop closes the bottom-sheet or not. Default is true. */
|
|
48
|
-
backdropClose: boolean;
|
|
49
|
-
/** Controls whether pressing the escape key closes the bottom-sheet or not. Default is true. */
|
|
50
|
-
escapeClose: boolean;
|
|
51
|
-
/** Controls whether the bottom-sheet is open or not. Default is false. */
|
|
52
71
|
open: boolean;
|
|
53
|
-
|
|
72
|
+
mode: BottomSheetMode;
|
|
73
|
+
persistent: boolean;
|
|
54
74
|
fullscreen: boolean;
|
|
55
|
-
/** Shows a backdrop to prevent interacting with other content until the bottom sheet is dismissed. Default is false. */
|
|
56
|
-
showBackdrop: boolean;
|
|
57
|
-
/** The function to call when the bottom-sheet wants to open. */
|
|
58
|
-
openCallback: () => void | Promise<void>;
|
|
59
|
-
/** the function to call when the bottom-sheet wants to close. */
|
|
60
|
-
closeCallback: () => void | Promise<void>;
|
|
61
|
-
/** the function to call when the bottom-sheet wants to close. */
|
|
62
|
-
beforeCloseCallback: () => boolean | Promise<boolean>;
|
|
63
75
|
}
|
|
76
|
+
export {};
|