@tylertech/forge 2.7.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +4428 -86
- package/dist/esm/accordion/index.js +7 -7
- package/dist/esm/app-bar/help-button/index.js +9 -9
- package/dist/esm/app-bar/index.js +15 -15
- package/dist/esm/app-bar/menu-button/index.js +6 -6
- package/dist/esm/app-bar/notification-button/index.js +6 -6
- package/dist/esm/app-bar/profile-button/index.js +7 -7
- package/dist/esm/app-bar/search/index.js +5 -5
- package/dist/esm/autocomplete/index.js +13 -13
- package/dist/esm/banner/index.js +6 -6
- package/dist/esm/bottom-sheet/index.js +5 -5
- package/dist/esm/busy-indicator/index.js +4 -4
- package/dist/esm/button/index.js +3 -3
- package/dist/esm/calendar/calendar-dropdown/index.js +2 -2
- package/dist/esm/calendar/calendar-menu/index.js +2 -2
- package/dist/esm/calendar/index.js +7 -7
- package/dist/esm/checkbox/index.js +2 -2
- package/dist/esm/chip-field/index.js +9 -9
- package/dist/esm/chips/chip/index.js +6 -6
- package/dist/esm/chips/chip-set/index.js +6 -6
- package/dist/esm/chips/index.js +7 -7
- package/dist/esm/chunks/{chunk.VXVE7KEM.js → chunk.2QB3WXEH.js} +4 -4
- package/dist/esm/chunks/{chunk.VXVE7KEM.js.map → chunk.2QB3WXEH.js.map} +0 -0
- package/dist/esm/chunks/{chunk.3QXCVTCP.js → chunk.2Z23LQVW.js} +2 -2
- package/dist/esm/chunks/{chunk.3QXCVTCP.js.map → chunk.2Z23LQVW.js.map} +0 -0
- package/dist/esm/chunks/{chunk.GL72QT42.js → chunk.35BJJH5E.js} +2 -2
- package/dist/esm/chunks/{chunk.GL72QT42.js.map → chunk.35BJJH5E.js.map} +1 -1
- package/dist/esm/chunks/{chunk.BEAJZPWS.js → chunk.3TFBNPQF.js} +2 -2
- package/dist/esm/chunks/{chunk.BEAJZPWS.js.map → chunk.3TFBNPQF.js.map} +0 -0
- package/dist/esm/chunks/{chunk.2MBI5DLT.js → chunk.3ULPDQ2I.js} +71 -15
- package/dist/esm/chunks/chunk.3ULPDQ2I.js.map +7 -0
- package/dist/esm/chunks/{chunk.JC2PZ4TS.js → chunk.5DJS3K7V.js} +10 -8
- package/dist/esm/chunks/chunk.5DJS3K7V.js.map +7 -0
- package/dist/esm/chunks/{chunk.GHZ75UPO.js → chunk.5EBM357P.js} +3 -3
- package/dist/esm/chunks/{chunk.GHZ75UPO.js.map → chunk.5EBM357P.js.map} +0 -0
- package/dist/esm/chunks/{chunk.J5NUYQ4D.js → chunk.5XUOWRCK.js} +3 -3
- package/dist/esm/chunks/{chunk.J5NUYQ4D.js.map → chunk.5XUOWRCK.js.map} +0 -0
- package/dist/esm/chunks/{chunk.6EGTLHJS.js → chunk.65ZCTZEM.js} +6 -2
- package/dist/esm/chunks/{chunk.6EGTLHJS.js.map → chunk.65ZCTZEM.js.map} +2 -2
- package/dist/esm/chunks/chunk.A5GIQB6E.js +20 -0
- package/dist/esm/chunks/{chunk.JUXKYUD4.js.map → chunk.A5GIQB6E.js.map} +3 -3
- package/dist/esm/chunks/{chunk.PM7D2SUE.js → chunk.A6YZB7UK.js} +33 -2
- package/dist/esm/chunks/{chunk.PM7D2SUE.js.map → chunk.A6YZB7UK.js.map} +2 -2
- package/dist/esm/chunks/chunk.AJJILT3A.js +6 -0
- package/dist/esm/chunks/chunk.AJJILT3A.js.map +7 -0
- package/dist/esm/chunks/chunk.CGKWQIL3.js +1236 -0
- package/dist/esm/chunks/chunk.CGKWQIL3.js.map +7 -0
- package/dist/esm/chunks/chunk.CGOYP37Z.js +345 -0
- package/dist/esm/chunks/chunk.CGOYP37Z.js.map +7 -0
- package/dist/esm/chunks/{chunk.QYWAZCBX.js → chunk.CTMCTMRO.js} +2 -2
- package/dist/esm/chunks/{chunk.QYWAZCBX.js.map → chunk.CTMCTMRO.js.map} +0 -0
- package/dist/esm/chunks/{chunk.JUXKYUD4.js → chunk.D2AL6QLF.js} +60 -40
- package/dist/esm/chunks/chunk.D2AL6QLF.js.map +7 -0
- package/dist/esm/chunks/{chunk.U5ECVIX5.js → chunk.D3MXPNTL.js} +2 -2
- package/dist/esm/chunks/{chunk.U5ECVIX5.js.map → chunk.D3MXPNTL.js.map} +0 -0
- package/dist/esm/chunks/{chunk.HAWYW54W.js → chunk.D45QN7JA.js} +5 -5
- package/dist/esm/chunks/{chunk.HAWYW54W.js.map → chunk.D45QN7JA.js.map} +0 -0
- package/dist/esm/chunks/{chunk.2WBHHTUM.js → chunk.EFQZGAM5.js} +2 -2
- package/dist/esm/chunks/{chunk.2WBHHTUM.js.map → chunk.EFQZGAM5.js.map} +0 -0
- package/dist/esm/chunks/{chunk.L344BPCW.js → chunk.F5O63UF4.js} +2 -2
- package/dist/esm/chunks/{chunk.L344BPCW.js.map → chunk.F5O63UF4.js.map} +0 -0
- package/dist/esm/chunks/{chunk.RL7ZFLMG.js → chunk.FRT7RD5L.js} +2 -2
- package/dist/esm/chunks/{chunk.RL7ZFLMG.js.map → chunk.FRT7RD5L.js.map} +0 -0
- package/dist/esm/chunks/{chunk.LK2DN5KX.js → chunk.GG3O42UP.js} +4 -4
- package/dist/esm/chunks/{chunk.LK2DN5KX.js.map → chunk.GG3O42UP.js.map} +0 -0
- package/dist/esm/chunks/{chunk.WSH4S3GM.js → chunk.GVR5LXMJ.js} +2 -2
- package/dist/esm/chunks/{chunk.WSH4S3GM.js.map → chunk.GVR5LXMJ.js.map} +0 -0
- package/dist/esm/chunks/{chunk.LHWZ4KZU.js → chunk.HL2ORG3A.js} +4 -4
- package/dist/esm/chunks/{chunk.LHWZ4KZU.js.map → chunk.HL2ORG3A.js.map} +1 -1
- package/dist/esm/chunks/{chunk.65GHMPX2.js → chunk.J2FCOFOE.js} +6 -6
- package/dist/esm/chunks/chunk.J2FCOFOE.js.map +7 -0
- package/dist/esm/chunks/{chunk.PKZ43JNW.js → chunk.JM6SZSUI.js} +50 -4
- package/dist/esm/chunks/{chunk.PKZ43JNW.js.map → chunk.JM6SZSUI.js.map} +2 -2
- package/dist/esm/chunks/{chunk.VXAPRFMK.js → chunk.K4B7NJ2G.js} +4 -4
- package/dist/esm/chunks/{chunk.VXAPRFMK.js.map → chunk.K4B7NJ2G.js.map} +0 -0
- package/dist/esm/chunks/{chunk.67B6JDOJ.js → chunk.KVOXJKCU.js} +3 -3
- package/dist/esm/chunks/{chunk.67B6JDOJ.js.map → chunk.KVOXJKCU.js.map} +0 -0
- package/dist/esm/chunks/{chunk.ITQ55IPH.js → chunk.LTN47GWQ.js} +4 -4
- package/dist/esm/chunks/{chunk.ITQ55IPH.js.map → chunk.LTN47GWQ.js.map} +0 -0
- package/dist/esm/chunks/{chunk.UPW5HUKB.js → chunk.NU3XRT37.js} +5 -5
- package/dist/esm/chunks/{chunk.UPW5HUKB.js.map → chunk.NU3XRT37.js.map} +0 -0
- package/dist/esm/chunks/{chunk.I6PJGNJS.js → chunk.NWPH4FRE.js} +6 -6
- package/dist/esm/chunks/chunk.NWPH4FRE.js.map +7 -0
- package/dist/esm/chunks/{chunk.KNR5DXE4.js → chunk.OTJJU35B.js} +2 -2
- package/dist/esm/chunks/{chunk.KNR5DXE4.js.map → chunk.OTJJU35B.js.map} +0 -0
- package/dist/esm/chunks/{chunk.BVGJFMEG.js → chunk.PRRL5C6Z.js} +7 -7
- package/dist/esm/chunks/{chunk.BVGJFMEG.js.map → chunk.PRRL5C6Z.js.map} +0 -0
- package/dist/esm/chunks/{chunk.TIUNGGBF.js → chunk.QFG7SPQV.js} +3 -3
- package/dist/esm/chunks/{chunk.TIUNGGBF.js.map → chunk.QFG7SPQV.js.map} +0 -0
- package/dist/esm/chunks/{chunk.C73AZRT4.js → chunk.QKCIMRRG.js} +36 -19
- package/dist/esm/chunks/chunk.QKCIMRRG.js.map +7 -0
- package/dist/esm/chunks/{chunk.IGBDDH3J.js → chunk.QRGWP6Z2.js} +3 -3
- package/dist/esm/chunks/chunk.QRGWP6Z2.js.map +7 -0
- package/dist/esm/chunks/{chunk.MUP3NY6M.js → chunk.QSFE3J74.js} +5 -5
- package/dist/esm/chunks/{chunk.MUP3NY6M.js.map → chunk.QSFE3J74.js.map} +0 -0
- package/dist/esm/chunks/{chunk.ZXMJB7OW.js → chunk.R357QRWX.js} +54 -50
- package/dist/esm/chunks/chunk.R357QRWX.js.map +7 -0
- package/dist/esm/chunks/{chunk.46BED43J.js → chunk.SVS3G6Y7.js} +5 -19
- package/dist/esm/chunks/chunk.SVS3G6Y7.js.map +7 -0
- package/dist/esm/chunks/{chunk.S3UVF647.js → chunk.TBQ72CBS.js} +3 -3
- package/dist/esm/chunks/{chunk.S3UVF647.js.map → chunk.TBQ72CBS.js.map} +0 -0
- package/dist/esm/chunks/{chunk.MF3IZXQG.js → chunk.TSHHEAIC.js} +2 -2
- package/dist/esm/chunks/{chunk.MF3IZXQG.js.map → chunk.TSHHEAIC.js.map} +0 -0
- package/dist/esm/chunks/{chunk.EBC2HGO3.js → chunk.UAW46BWM.js} +3 -3
- package/dist/esm/chunks/{chunk.EBC2HGO3.js.map → chunk.UAW46BWM.js.map} +0 -0
- package/dist/esm/chunks/{chunk.FJJVIMZ2.js → chunk.V6ESTGWD.js} +5 -5
- package/dist/esm/chunks/chunk.V6ESTGWD.js.map +7 -0
- package/dist/esm/chunks/{chunk.5OYAJ36F.js → chunk.VLAUYV76.js} +2 -2
- package/dist/esm/chunks/{chunk.5OYAJ36F.js.map → chunk.VLAUYV76.js.map} +0 -0
- package/dist/esm/chunks/{chunk.L4OUV7W6.js → chunk.VSKPHQZE.js} +4 -4
- package/dist/esm/chunks/{chunk.L4OUV7W6.js.map → chunk.VSKPHQZE.js.map} +0 -0
- package/dist/esm/chunks/{chunk.GS2AXUCN.js → chunk.WOL4KRZK.js} +6 -1
- package/dist/esm/chunks/{chunk.GS2AXUCN.js.map → chunk.WOL4KRZK.js.map} +1 -1
- package/dist/esm/chunks/{chunk.TM46MNYN.js → chunk.WQRR5OGK.js} +5 -5
- package/dist/esm/chunks/{chunk.TM46MNYN.js.map → chunk.WQRR5OGK.js.map} +0 -0
- package/dist/esm/chunks/chunk.X2RP4QW3.js +6 -0
- package/dist/esm/chunks/chunk.X2RP4QW3.js.map +7 -0
- package/dist/esm/chunks/{chunk.GOWHXADJ.js → chunk.X3TV6IHS.js} +23 -15
- package/dist/esm/chunks/chunk.X3TV6IHS.js.map +7 -0
- package/dist/esm/chunks/{chunk.U37G47LH.js → chunk.XC56O73Q.js} +6 -6
- package/dist/esm/chunks/{chunk.U37G47LH.js.map → chunk.XC56O73Q.js.map} +0 -0
- package/dist/esm/chunks/{chunk.QWW6A7AF.js → chunk.XRK62M5E.js} +2 -2
- package/dist/esm/chunks/{chunk.QWW6A7AF.js.map → chunk.XRK62M5E.js.map} +0 -0
- package/dist/esm/chunks/{chunk.ZLF2G3YT.js → chunk.XSS7BYJS.js} +3 -3
- package/dist/esm/chunks/{chunk.ZLF2G3YT.js.map → chunk.XSS7BYJS.js.map} +0 -0
- package/dist/esm/chunks/{chunk.XHMNHBZD.js → chunk.YCHKXJLN.js} +3 -3
- package/dist/esm/chunks/{chunk.XHMNHBZD.js.map → chunk.YCHKXJLN.js.map} +1 -1
- package/dist/esm/chunks/{chunk.UQ3QTUUB.js → chunk.YMP3JQQQ.js} +2 -2
- package/dist/esm/chunks/{chunk.UQ3QTUUB.js.map → chunk.YMP3JQQQ.js.map} +0 -0
- package/dist/esm/chunks/{chunk.7I2XNJBL.js → chunk.YTFOQNFU.js} +6 -16
- package/dist/esm/chunks/chunk.YTFOQNFU.js.map +7 -0
- package/dist/esm/chunks/{chunk.IJW2YKP3.js → chunk.Z5KLXKMB.js} +21 -15
- package/dist/esm/chunks/chunk.Z5KLXKMB.js.map +7 -0
- package/dist/esm/chunks/{chunk.MBZLA635.js → chunk.ZIZGRSAX.js} +6 -6
- package/dist/esm/chunks/{chunk.MBZLA635.js.map → chunk.ZIZGRSAX.js.map} +1 -1
- package/dist/esm/chunks/{chunk.CLEUHAZ6.js → chunk.ZLX3L6KW.js} +2 -2
- package/dist/esm/chunks/{chunk.CLEUHAZ6.js.map → chunk.ZLX3L6KW.js.map} +0 -0
- package/dist/esm/color-picker/index.js +6 -6
- package/dist/esm/core/index.js +14 -2
- package/dist/esm/core/utils/index.js +14 -2
- package/dist/esm/date-picker/index.js +11 -11
- package/dist/esm/date-range-picker/index.js +11 -11
- package/dist/esm/dialog/index.js +5 -5
- package/dist/esm/drawer/base/index.js +2 -2
- package/dist/esm/drawer/drawer/index.js +3 -3
- package/dist/esm/drawer/index.js +5 -5
- package/dist/esm/drawer/mini-drawer/index.js +3 -3
- package/dist/esm/drawer/modal-drawer/index.js +3 -3
- package/dist/esm/expansion-panel/index.js +6 -6
- package/dist/esm/file-picker/index.js +4 -4
- package/dist/esm/icon/index.js +3 -3
- package/dist/esm/icon-button/index.js +4 -4
- package/dist/esm/index.js +169 -94
- package/dist/esm/inline-message/index.js +1 -1
- package/dist/esm/list-dropdown/index.js +5 -5
- package/dist/esm/menu/index.js +7 -7
- package/dist/esm/open-icon/index.js +5 -5
- package/dist/esm/paginator/index.js +12 -12
- package/dist/esm/profile-card/index.js +4 -4
- package/dist/esm/quantity-field/index.js +6 -7
- package/dist/esm/select/core/index.js +7 -7
- package/dist/esm/select/index.js +11 -11
- package/dist/esm/select/select/index.js +9 -9
- package/dist/esm/select/select-dropdown/index.js +9 -9
- package/dist/esm/slider/index.js +2 -2
- package/dist/esm/split-view/core/index.js +7 -0
- package/dist/esm/split-view/core/index.js.map +7 -0
- package/dist/esm/split-view/index.js +92 -0
- package/dist/esm/split-view/index.js.map +7 -0
- package/dist/esm/split-view/split-view/index.js +44 -0
- package/dist/esm/split-view/split-view/index.js.map +7 -0
- package/dist/esm/split-view/split-view-panel/index.js +78 -0
- package/dist/esm/split-view/split-view-panel/index.js.map +7 -0
- package/dist/esm/stepper/index.js +6 -6
- package/dist/esm/stepper/step/index.js +5 -5
- package/dist/esm/stepper/stepper/index.js +6 -6
- package/dist/esm/switch/index.js +2 -2
- package/dist/esm/table/index.js +7 -7
- package/dist/esm/tabs/index.js +6 -6
- package/dist/esm/tabs/tab-bar/index.js +6 -6
- package/dist/esm/text-field/index.js +2 -2
- package/dist/esm/time-picker/index.js +11 -10
- package/dist/esm/toast/index.js +7 -7
- package/esm/app-bar/profile-button/app-bar-profile-button-adapter.d.ts +6 -1
- package/esm/app-bar/profile-button/app-bar-profile-button-adapter.js +30 -12
- package/esm/app-bar/profile-button/app-bar-profile-button-constants.d.ts +4 -0
- package/esm/app-bar/profile-button/app-bar-profile-button-constants.js +2 -0
- package/esm/app-bar/profile-button/app-bar-profile-button-foundation.d.ts +8 -0
- package/esm/app-bar/profile-button/app-bar-profile-button-foundation.js +22 -0
- package/esm/app-bar/profile-button/app-bar-profile-button.d.ts +4 -0
- package/esm/app-bar/profile-button/app-bar-profile-button.js +14 -0
- package/esm/autocomplete/autocomplete-adapter.d.ts +2 -0
- package/esm/autocomplete/autocomplete-adapter.js +4 -0
- package/esm/autocomplete/autocomplete-foundation.js +10 -7
- package/esm/chip-field/chip-field-adapter.d.ts +1 -1
- package/esm/chip-field/chip-field-adapter.js +2 -2
- package/esm/chip-field/chip-field.js +1 -1
- package/esm/chips/chip/chip.js +1 -1
- package/esm/core/utils/event-utils.d.ts +1 -0
- package/esm/core/utils/event-utils.js +3 -0
- package/esm/core/utils/utils.d.ts +36 -0
- package/esm/core/utils/utils.js +57 -0
- package/esm/date-picker/date-picker-foundation.js +3 -1
- package/esm/drawer/base/base-drawer-foundation.d.ts +4 -2
- package/esm/drawer/base/base-drawer-foundation.js +22 -14
- package/esm/drawer/modal-drawer/modal-drawer-foundation.d.ts +2 -2
- package/esm/drawer/modal-drawer/modal-drawer-foundation.js +4 -4
- package/esm/field/field-adapter.d.ts +4 -4
- package/esm/field/field-adapter.js +4 -13
- package/esm/field/field-foundation.js +2 -2
- package/esm/file-picker/file-picker.js +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +3 -0
- package/esm/inline-message/inline-message.js +1 -1
- package/esm/profile-card/profile-card-adapter.d.ts +4 -0
- package/esm/profile-card/profile-card-adapter.js +6 -0
- package/esm/profile-card/profile-card-constants.d.ts +4 -0
- package/esm/profile-card/profile-card-constants.js +5 -1
- package/esm/profile-card/profile-card-foundation.d.ts +6 -0
- package/esm/profile-card/profile-card-foundation.js +22 -0
- package/esm/profile-card/profile-card.d.ts +4 -0
- package/esm/profile-card/profile-card.js +15 -1
- package/esm/quantity-field/quantity-field-adapter.d.ts +0 -2
- package/esm/quantity-field/quantity-field-adapter.js +1 -13
- package/esm/quantity-field/quantity-field-foundation.js +0 -1
- package/esm/quantity-field/quantity-field.js +1 -1
- package/esm/select/select/select.js +1 -1
- package/esm/split-view/core/index.d.ts +6 -0
- package/esm/split-view/core/index.js +6 -0
- package/esm/split-view/core/split-view-base.d.ts +14 -0
- package/esm/split-view/core/split-view-base.js +6 -0
- package/esm/split-view/index.d.ts +8 -0
- package/esm/split-view/index.js +8 -0
- package/esm/split-view/split-view/index.d.ts +10 -0
- package/esm/split-view/split-view/index.js +14 -0
- package/esm/split-view/split-view/split-view-adapter.d.ts +29 -0
- package/esm/split-view/split-view/split-view-adapter.js +62 -0
- package/esm/split-view/split-view/split-view-constants.d.ts +41 -0
- package/esm/split-view/split-view/split-view-constants.js +40 -0
- package/esm/split-view/split-view/split-view-foundation.d.ts +86 -0
- package/esm/split-view/split-view/split-view-foundation.js +179 -0
- package/esm/split-view/split-view/split-view.d.ts +67 -0
- package/esm/split-view/split-view/split-view.js +103 -0
- package/esm/split-view/split-view-panel/index.d.ts +11 -0
- package/esm/split-view/split-view-panel/index.js +15 -0
- package/esm/split-view/split-view-panel/split-view-panel-adapter.d.ts +171 -0
- package/esm/split-view/split-view-panel/split-view-panel-adapter.js +295 -0
- package/esm/split-view/split-view-panel/split-view-panel-constants.d.ts +97 -0
- package/esm/split-view/split-view-panel/split-view-panel-constants.js +78 -0
- package/esm/split-view/split-view-panel/split-view-panel-foundation.d.ts +235 -0
- package/esm/split-view/split-view-panel/split-view-panel-foundation.js +667 -0
- package/esm/split-view/split-view-panel/split-view-panel-utils.d.ts +130 -0
- package/esm/split-view/split-view-panel/split-view-panel-utils.js +300 -0
- package/esm/split-view/split-view-panel/split-view-panel.d.ts +105 -0
- package/esm/split-view/split-view-panel/split-view-panel.js +173 -0
- package/esm/table/table-utils.d.ts +2 -2
- package/esm/table/table-utils.js +30 -14
- package/esm/table/table.js +3 -1
- package/esm/text-field/text-field-adapter.d.ts +1 -1
- package/esm/text-field/text-field-adapter.js +2 -2
- package/esm/text-field/text-field.js +1 -1
- package/esm/time-picker/time-picker-constants.d.ts +1 -0
- package/esm/time-picker/time-picker-constants.js +1 -0
- package/esm/time-picker/time-picker-foundation.d.ts +4 -0
- package/esm/time-picker/time-picker-foundation.js +44 -29
- package/esm/time-picker/time-picker.d.ts +3 -0
- package/esm/time-picker/time-picker.js +7 -0
- package/package.json +2 -2
- package/styles/chip-field/_base.scss +2 -2
- package/styles/chip-field/_selector.scss +1 -1
- package/styles/chip-field/_variables.scss +1 -1
- package/styles/chips/chip/_mixins.scss +4 -3
- package/styles/chips/chip/_variables.scss +3 -2
- package/styles/field/_base.scss +16 -4
- package/styles/field/_selector.scss +4 -4
- package/styles/file-picker/_mixins.scss +3 -1
- package/styles/inline-message/inline-message.scss +4 -0
- package/styles/quantity-field/_mixins.scss +1 -1
- package/styles/select/select/_selector.scss +1 -1
- package/styles/split-view/split-view/_mixins.scss +48 -0
- package/styles/split-view/split-view/split-view.scss +25 -0
- package/styles/split-view/split-view-panel/_mixins.scss +260 -0
- package/styles/split-view/split-view-panel/_variables.scss +7 -0
- package/styles/split-view/split-view-panel/split-view-panel.scss +23 -0
- package/dist/esm/chunks/chunk.2MBI5DLT.js.map +0 -7
- package/dist/esm/chunks/chunk.46BED43J.js.map +0 -7
- package/dist/esm/chunks/chunk.65GHMPX2.js.map +0 -7
- package/dist/esm/chunks/chunk.7I2XNJBL.js.map +0 -7
- package/dist/esm/chunks/chunk.C73AZRT4.js.map +0 -7
- package/dist/esm/chunks/chunk.FJJVIMZ2.js.map +0 -7
- package/dist/esm/chunks/chunk.GOWHXADJ.js.map +0 -7
- package/dist/esm/chunks/chunk.I6PJGNJS.js.map +0 -7
- package/dist/esm/chunks/chunk.IGBDDH3J.js.map +0 -7
- package/dist/esm/chunks/chunk.IJW2YKP3.js.map +0 -7
- package/dist/esm/chunks/chunk.JC2PZ4TS.js.map +0 -7
- package/dist/esm/chunks/chunk.ZXMJB7OW.js.map +0 -7
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Tyler Technologies, Inc.
|
|
4
|
+
* License: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { BaseAdapter, IBaseAdapter } from '../../core/base/base-adapter';
|
|
7
|
+
import { ISplitViewPanelComponent } from './split-view-panel';
|
|
8
|
+
import { ISplitViewPanelCursorConfig, ISplitViewPanelOpenEvent, SplitViewPanelResizable } from './split-view-panel-constants';
|
|
9
|
+
import { ISplitViewUpdateConfig, SplitViewOrientation } from '../split-view/split-view-constants';
|
|
10
|
+
import { ISplitViewComponent } from '../split-view/split-view';
|
|
11
|
+
export interface ISplitViewPanelAdapter extends IBaseAdapter {
|
|
12
|
+
initialize(): void;
|
|
13
|
+
setPointerdownListener(listener: (evt: PointerEvent) => void): void;
|
|
14
|
+
setPointerupListener(listener: (evt: PointerEvent) => void): void;
|
|
15
|
+
removePointerupListener(listener: (evt: PointerEvent) => void): void;
|
|
16
|
+
setPointermoveListener(listener: (evt: PointerEvent) => void): void;
|
|
17
|
+
removePointermoveListener(listener: (evt: PointerEvent) => void): void;
|
|
18
|
+
setKeydownListener(listener: (evt: KeyboardEvent) => void): void;
|
|
19
|
+
setKeyupListener(listener: (evt: KeyboardEvent) => void): void;
|
|
20
|
+
removeKeyupListener(listener: (evt: KeyboardEvent) => void): void;
|
|
21
|
+
getParentProperty(name: keyof ISplitViewComponent): unknown;
|
|
22
|
+
setAccessibleLabel(value: string): void;
|
|
23
|
+
setDisabled(value: boolean): void;
|
|
24
|
+
setResizable(value: SplitViewPanelResizable): void;
|
|
25
|
+
setOrientation(value: SplitViewOrientation): void;
|
|
26
|
+
setOpen(value: boolean, withAnimation?: boolean, event?: ISplitViewPanelOpenEvent): void;
|
|
27
|
+
setGrabbed(value: boolean): void;
|
|
28
|
+
setHandleCursor(orientation?: SplitViewOrientation, config?: ISplitViewPanelCursorConfig): void;
|
|
29
|
+
setBodyCursor(orientation: SplitViewOrientation, config?: ISplitViewPanelCursorConfig): void;
|
|
30
|
+
getContentSize(orientation: SplitViewOrientation): number;
|
|
31
|
+
setContentSize(value: number): void;
|
|
32
|
+
setValuenow(value: number): void;
|
|
33
|
+
focusHandle(): void;
|
|
34
|
+
getAvailableSpace(orientation: SplitViewOrientation, resizable: SplitViewPanelResizable): number;
|
|
35
|
+
getSiblingContentSize(): number;
|
|
36
|
+
setSiblingContentSize(value: number): void;
|
|
37
|
+
activateRipple(defaultActivated: boolean): void;
|
|
38
|
+
deactivateRipple(): void;
|
|
39
|
+
getParentSize(orientation: SplitViewOrientation): number;
|
|
40
|
+
updateParent(config: ISplitViewUpdateConfig): void;
|
|
41
|
+
}
|
|
42
|
+
export declare class SplitViewPanelAdapter extends BaseAdapter<ISplitViewPanelComponent> implements ISplitViewPanelAdapter {
|
|
43
|
+
private _root;
|
|
44
|
+
private _handle;
|
|
45
|
+
private _icon;
|
|
46
|
+
private _ripple;
|
|
47
|
+
private _content;
|
|
48
|
+
private _parent?;
|
|
49
|
+
constructor(component: ISplitViewPanelComponent);
|
|
50
|
+
initialize(): void;
|
|
51
|
+
setPointerdownListener(listener: (evt: PointerEvent) => void): void;
|
|
52
|
+
setPointerupListener(listener: (evt: PointerEvent) => void): void;
|
|
53
|
+
removePointerupListener(listener: (evt: PointerEvent) => void): void;
|
|
54
|
+
setPointermoveListener(listener: (evt: PointerEvent) => void): void;
|
|
55
|
+
removePointermoveListener(listener: (evt: PointerEvent) => void): void;
|
|
56
|
+
setKeydownListener(listener: (evt: KeyboardEvent) => void): void;
|
|
57
|
+
setKeyupListener(listener: (evt: KeyboardEvent) => void): void;
|
|
58
|
+
removeKeyupListener(listener: (evt: KeyboardEvent) => void): void;
|
|
59
|
+
/**
|
|
60
|
+
* Gets the specified property value from the parent split view.
|
|
61
|
+
* @param name The property name.
|
|
62
|
+
* @returns The value of the property.
|
|
63
|
+
*/
|
|
64
|
+
getParentProperty(name: keyof ISplitViewComponent): unknown;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the accessible label of the resize handle.
|
|
67
|
+
* @param value The label text.
|
|
68
|
+
*/
|
|
69
|
+
setAccessibleLabel(value: string): void;
|
|
70
|
+
/**
|
|
71
|
+
* Sets the disabled state of the component.
|
|
72
|
+
* @param value Whether the component is disabled.
|
|
73
|
+
*/
|
|
74
|
+
setDisabled(value: boolean): void;
|
|
75
|
+
/**
|
|
76
|
+
* Sets the whether the component's handle is present and at its start or end.
|
|
77
|
+
* @param value The component's resizable value.
|
|
78
|
+
*/
|
|
79
|
+
setResizable(value: SplitViewPanelResizable): void;
|
|
80
|
+
/**
|
|
81
|
+
* Sets the orientation of the component including ARIA attributes and the resize handle icon.
|
|
82
|
+
* @param value The component's orientation.
|
|
83
|
+
*/
|
|
84
|
+
setOrientation(value: SplitViewOrientation): void;
|
|
85
|
+
/**
|
|
86
|
+
* Opens or closes the component.
|
|
87
|
+
* @param value Whether the component is open.
|
|
88
|
+
* @param withAnimation Whether to use the animation. Defaults to `true`.
|
|
89
|
+
*/
|
|
90
|
+
setOpen(value: boolean, withAnimation?: boolean, event?: ISplitViewPanelOpenEvent): void;
|
|
91
|
+
/**
|
|
92
|
+
* Sets the components appearance and accessibility to indicated whether it is currently grabbed
|
|
93
|
+
* by the user. Applies a cursor style to the document body.
|
|
94
|
+
* @param value Whether the component is currently being resized via pointer interaction.
|
|
95
|
+
*/
|
|
96
|
+
setGrabbed(value: boolean): void;
|
|
97
|
+
/**
|
|
98
|
+
* Applies a cursor style to the resize handle.
|
|
99
|
+
* @param orientation The component's orientation. If absent the cursor will be removed.
|
|
100
|
+
* @param config The component's resizable value and whether it's at the min or max value.
|
|
101
|
+
*/
|
|
102
|
+
setHandleCursor(orientation?: SplitViewOrientation, config?: ISplitViewPanelCursorConfig): void;
|
|
103
|
+
/**
|
|
104
|
+
* Applies a cursor style to the document body.
|
|
105
|
+
* @param orientation The component's orientation.
|
|
106
|
+
* @param config The component's resizable value and whether it's at the min or max value.
|
|
107
|
+
*/
|
|
108
|
+
setBodyCursor(orientation: SplitViewOrientation, config?: ISplitViewPanelCursorConfig): void;
|
|
109
|
+
/**
|
|
110
|
+
* Gets the size of the content along the orientation axis. Does not include the resize handle.
|
|
111
|
+
* @param orientation The component's orientation.
|
|
112
|
+
* @returns The width or height of the content in pixels.
|
|
113
|
+
*/
|
|
114
|
+
getContentSize(orientation: SplitViewOrientation): number;
|
|
115
|
+
/**
|
|
116
|
+
* Sets the size of the content not including the resize handle.
|
|
117
|
+
* @param value The width or height of the content in pixels.
|
|
118
|
+
*/
|
|
119
|
+
setContentSize(value: number): void;
|
|
120
|
+
/**
|
|
121
|
+
* Sets the ARIA attribute representing the size of the content compared to its min and max.
|
|
122
|
+
* @param value The content size scaled from 0 to 100.
|
|
123
|
+
*/
|
|
124
|
+
setValuenow(value: number): void;
|
|
125
|
+
/**
|
|
126
|
+
* Sets focus on the handle element.
|
|
127
|
+
*/
|
|
128
|
+
focusHandle(): void;
|
|
129
|
+
/**
|
|
130
|
+
* Gets the amount of space that the component is allowed to take. This includes the current
|
|
131
|
+
* size of the component and the size of the sibling it resizes into along the axis of
|
|
132
|
+
* orientation. The sibling's min and max values are taken into account but the component's are
|
|
133
|
+
* not.
|
|
134
|
+
* @param orientation The component's orientation.
|
|
135
|
+
* @param resizable The component's resizable value.
|
|
136
|
+
* @returns The amount of space available for the component to resize into in pixels.
|
|
137
|
+
*/
|
|
138
|
+
getAvailableSpace(orientation: SplitViewOrientation, resizable: SplitViewPanelResizable): number;
|
|
139
|
+
/**
|
|
140
|
+
* Gets the content size of the sibling panel the component resizes into along its axis of
|
|
141
|
+
* orientation.
|
|
142
|
+
* @returns The sibling's content size in pixels or 0 if the sibling does not exist.
|
|
143
|
+
*/
|
|
144
|
+
getSiblingContentSize(): number;
|
|
145
|
+
/**
|
|
146
|
+
* Sets the content size of the sibling panel the component resizes into along its axis of
|
|
147
|
+
* orientation.
|
|
148
|
+
* @returns The sibling's content size in pixels.
|
|
149
|
+
*/
|
|
150
|
+
setSiblingContentSize(value: number): void;
|
|
151
|
+
/**
|
|
152
|
+
* Runs the ripple animation.
|
|
153
|
+
* @param fromActivated Whether the ripple starts from and should end in an activated state.
|
|
154
|
+
*/
|
|
155
|
+
activateRipple(fromActivated: boolean): void;
|
|
156
|
+
/**
|
|
157
|
+
* Deactivates the ripple.
|
|
158
|
+
*/
|
|
159
|
+
deactivateRipple(): void;
|
|
160
|
+
/**
|
|
161
|
+
* Gets the size of the parent split view along the axis of orientation.
|
|
162
|
+
* @param orientation The component's orientation.
|
|
163
|
+
* @returns The parent's size in pixels.
|
|
164
|
+
*/
|
|
165
|
+
getParentSize(orientation: SplitViewOrientation): number;
|
|
166
|
+
/**
|
|
167
|
+
* Updates the provided characteristics of all panels.
|
|
168
|
+
* @param config An update configuration.
|
|
169
|
+
*/
|
|
170
|
+
updateParent(config: ISplitViewUpdateConfig): void;
|
|
171
|
+
}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Tyler Technologies, Inc.
|
|
4
|
+
* License: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { getShadowElement, playKeyframeAnimation, toggleAttribute } from '@tylertech/forge-core';
|
|
7
|
+
import { BaseAdapter } from '../../core/base/base-adapter';
|
|
8
|
+
import { SPLIT_VIEW_PANEL_CONSTANTS } from './split-view-panel-constants';
|
|
9
|
+
import { SPLIT_VIEW_CONSTANTS } from '../split-view/split-view-constants';
|
|
10
|
+
import { getCursor, getHandleIcon, getSplitViewPanelSibling } from './split-view-panel-utils';
|
|
11
|
+
export class SplitViewPanelAdapter extends BaseAdapter {
|
|
12
|
+
constructor(component) {
|
|
13
|
+
super(component);
|
|
14
|
+
this._root = getShadowElement(component, SPLIT_VIEW_PANEL_CONSTANTS.selectors.ROOT);
|
|
15
|
+
this._handle = getShadowElement(component, SPLIT_VIEW_PANEL_CONSTANTS.selectors.HANDLE);
|
|
16
|
+
this._icon = getShadowElement(component, SPLIT_VIEW_PANEL_CONSTANTS.selectors.ICON);
|
|
17
|
+
this._ripple = getShadowElement(component, SPLIT_VIEW_PANEL_CONSTANTS.selectors.RIPPLE);
|
|
18
|
+
this._content = getShadowElement(component, SPLIT_VIEW_PANEL_CONSTANTS.selectors.CONTENT);
|
|
19
|
+
}
|
|
20
|
+
initialize() {
|
|
21
|
+
// Set the parent split view
|
|
22
|
+
const parent = this._component.parentElement;
|
|
23
|
+
if ((parent === null || parent === void 0 ? void 0 : parent.tagName.toLowerCase()) === SPLIT_VIEW_CONSTANTS.elementName) {
|
|
24
|
+
this._parent = parent;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
setPointerdownListener(listener) {
|
|
28
|
+
this._handle.addEventListener('pointerdown', listener);
|
|
29
|
+
}
|
|
30
|
+
setPointerupListener(listener) {
|
|
31
|
+
document.addEventListener('pointerup', listener);
|
|
32
|
+
}
|
|
33
|
+
removePointerupListener(listener) {
|
|
34
|
+
document.removeEventListener('pointerup', listener);
|
|
35
|
+
}
|
|
36
|
+
setPointermoveListener(listener) {
|
|
37
|
+
document.addEventListener('pointermove', listener);
|
|
38
|
+
}
|
|
39
|
+
removePointermoveListener(listener) {
|
|
40
|
+
document.removeEventListener('pointermove', listener);
|
|
41
|
+
}
|
|
42
|
+
setKeydownListener(listener) {
|
|
43
|
+
this._handle.addEventListener('keydown', listener);
|
|
44
|
+
}
|
|
45
|
+
setKeyupListener(listener) {
|
|
46
|
+
this._handle.addEventListener('keyup', listener);
|
|
47
|
+
}
|
|
48
|
+
removeKeyupListener(listener) {
|
|
49
|
+
this._handle.removeEventListener('keyup', listener);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Gets the specified property value from the parent split view.
|
|
53
|
+
* @param name The property name.
|
|
54
|
+
* @returns The value of the property.
|
|
55
|
+
*/
|
|
56
|
+
getParentProperty(name) {
|
|
57
|
+
var _a;
|
|
58
|
+
return (_a = this._parent) === null || _a === void 0 ? void 0 : _a[name];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Sets the accessible label of the resize handle.
|
|
62
|
+
* @param value The label text.
|
|
63
|
+
*/
|
|
64
|
+
setAccessibleLabel(value) {
|
|
65
|
+
this._handle.setAttribute('aria-label', value);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Sets the disabled state of the component.
|
|
69
|
+
* @param value Whether the component is disabled.
|
|
70
|
+
*/
|
|
71
|
+
setDisabled(value) {
|
|
72
|
+
this._root.classList.toggle(SPLIT_VIEW_PANEL_CONSTANTS.classes.DISABLED, value);
|
|
73
|
+
if (this._handle) {
|
|
74
|
+
this._handle.setAttribute('tabindex', value ? '-1' : '0');
|
|
75
|
+
toggleAttribute(this._handle, value, 'aria-disabled', 'true');
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Sets the whether the component's handle is present and at its start or end.
|
|
80
|
+
* @param value The component's resizable value.
|
|
81
|
+
*/
|
|
82
|
+
setResizable(value) {
|
|
83
|
+
this._root.setAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.RESIZABLE, value.toString());
|
|
84
|
+
toggleAttribute(this._handle, value !== 'off', 'aria-valuemin', '0');
|
|
85
|
+
toggleAttribute(this._handle, value !== 'off', 'aria-valuemax', '100');
|
|
86
|
+
if (value === 'off') {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
this._handle.remove();
|
|
90
|
+
if (value === 'end') {
|
|
91
|
+
// Place the handle after the content
|
|
92
|
+
this._root.append(this._handle);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
// Place the handle before the content
|
|
96
|
+
this._root.prepend(this._handle);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Sets the orientation of the component including ARIA attributes and the resize handle icon.
|
|
101
|
+
* @param value The component's orientation.
|
|
102
|
+
*/
|
|
103
|
+
setOrientation(value) {
|
|
104
|
+
this._root.setAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.ORIENTATION, value);
|
|
105
|
+
// The divider's orientation is perpendicular to the layout of the component
|
|
106
|
+
this._handle.setAttribute('aria-orientation', value === 'horizontal' ? 'vertical' : 'horizontal');
|
|
107
|
+
this._icon.setAttribute('name', getHandleIcon(value));
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Opens or closes the component.
|
|
111
|
+
* @param value Whether the component is open.
|
|
112
|
+
* @param withAnimation Whether to use the animation. Defaults to `true`.
|
|
113
|
+
*/
|
|
114
|
+
setOpen(value, withAnimation = true, event) {
|
|
115
|
+
var _a, _b;
|
|
116
|
+
const finish = () => {
|
|
117
|
+
var _a, _b;
|
|
118
|
+
if (!value) {
|
|
119
|
+
this._root.classList.add(SPLIT_VIEW_PANEL_CONSTANTS.classes.CLOSED);
|
|
120
|
+
}
|
|
121
|
+
if (event) {
|
|
122
|
+
this.emitHostEvent(value ? SPLIT_VIEW_PANEL_CONSTANTS.events.DID_OPEN : SPLIT_VIEW_PANEL_CONSTANTS.events.DID_CLOSE, event);
|
|
123
|
+
}
|
|
124
|
+
(_a = this._parent) === null || _a === void 0 ? void 0 : _a.unlayerSlottedPanels();
|
|
125
|
+
(_b = this._parent) === null || _b === void 0 ? void 0 : _b.update({ accessibility: true, cursor: true });
|
|
126
|
+
};
|
|
127
|
+
if (value && this._root.classList.contains(SPLIT_VIEW_PANEL_CONSTANTS.classes.CLOSED)) {
|
|
128
|
+
this._root.classList.remove(SPLIT_VIEW_PANEL_CONSTANTS.classes.CLOSED);
|
|
129
|
+
if (!withAnimation) {
|
|
130
|
+
finish();
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
(_a = this._parent) === null || _a === void 0 ? void 0 : _a.layerSlottedPanels(this._component);
|
|
134
|
+
playKeyframeAnimation(this._root, SPLIT_VIEW_PANEL_CONSTANTS.classes.OPENING, true).then(() => {
|
|
135
|
+
finish();
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
else if (!value && !this._root.classList.contains(SPLIT_VIEW_PANEL_CONSTANTS.classes.CLOSED)) {
|
|
139
|
+
if (!withAnimation) {
|
|
140
|
+
finish();
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
(_b = this._parent) === null || _b === void 0 ? void 0 : _b.layerSlottedPanels(this._component);
|
|
144
|
+
playKeyframeAnimation(this._root, SPLIT_VIEW_PANEL_CONSTANTS.classes.CLOSING, true).then(() => {
|
|
145
|
+
finish();
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Sets the components appearance and accessibility to indicated whether it is currently grabbed
|
|
151
|
+
* by the user. Applies a cursor style to the document body.
|
|
152
|
+
* @param value Whether the component is currently being resized via pointer interaction.
|
|
153
|
+
*/
|
|
154
|
+
setGrabbed(value) {
|
|
155
|
+
var _a;
|
|
156
|
+
this._root.classList.toggle(SPLIT_VIEW_PANEL_CONSTANTS.classes.GRABBED, value);
|
|
157
|
+
this._handle.setAttribute('aria-grabbed', value.toString());
|
|
158
|
+
(_a = this._parent) === null || _a === void 0 ? void 0 : _a.update({ clearCursor: true });
|
|
159
|
+
if (!value) {
|
|
160
|
+
document.body.style.removeProperty('cursor');
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Applies a cursor style to the resize handle.
|
|
165
|
+
* @param orientation The component's orientation. If absent the cursor will be removed.
|
|
166
|
+
* @param config The component's resizable value and whether it's at the min or max value.
|
|
167
|
+
*/
|
|
168
|
+
setHandleCursor(orientation, config) {
|
|
169
|
+
if (orientation) {
|
|
170
|
+
this._root.style.setProperty(SPLIT_VIEW_PANEL_CONSTANTS.customCssProperties.CURSOR, getCursor(orientation, config));
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
this._root.style.removeProperty(SPLIT_VIEW_PANEL_CONSTANTS.customCssProperties.CURSOR);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Applies a cursor style to the document body.
|
|
178
|
+
* @param orientation The component's orientation.
|
|
179
|
+
* @param config The component's resizable value and whether it's at the min or max value.
|
|
180
|
+
*/
|
|
181
|
+
setBodyCursor(orientation, config) {
|
|
182
|
+
document.body.style.setProperty('cursor', getCursor(orientation, config));
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Gets the size of the content along the orientation axis. Does not include the resize handle.
|
|
186
|
+
* @param orientation The component's orientation.
|
|
187
|
+
* @returns The width or height of the content in pixels.
|
|
188
|
+
*/
|
|
189
|
+
getContentSize(orientation) {
|
|
190
|
+
return orientation === 'horizontal' ? this._content.clientWidth : this._content.clientHeight;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Sets the size of the content not including the resize handle.
|
|
194
|
+
* @param value The width or height of the content in pixels.
|
|
195
|
+
*/
|
|
196
|
+
setContentSize(value) {
|
|
197
|
+
this._component.style.setProperty(SPLIT_VIEW_PANEL_CONSTANTS.customCssProperties.SIZE, `${value}px`);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Sets the ARIA attribute representing the size of the content compared to its min and max.
|
|
201
|
+
* @param value The content size scaled from 0 to 100.
|
|
202
|
+
*/
|
|
203
|
+
setValuenow(value) {
|
|
204
|
+
this._handle.setAttribute('aria-valuenow', value.toFixed(2));
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Sets focus on the handle element.
|
|
208
|
+
*/
|
|
209
|
+
focusHandle() {
|
|
210
|
+
this._handle.focus();
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Gets the amount of space that the component is allowed to take. This includes the current
|
|
214
|
+
* size of the component and the size of the sibling it resizes into along the axis of
|
|
215
|
+
* orientation. The sibling's min and max values are taken into account but the component's are
|
|
216
|
+
* not.
|
|
217
|
+
* @param orientation The component's orientation.
|
|
218
|
+
* @param resizable The component's resizable value.
|
|
219
|
+
* @returns The amount of space available for the component to resize into in pixels.
|
|
220
|
+
*/
|
|
221
|
+
getAvailableSpace(orientation, resizable) {
|
|
222
|
+
if (resizable === 'off') {
|
|
223
|
+
// Return -1 if the panel is static (i.e. can't be user resized)
|
|
224
|
+
return -1;
|
|
225
|
+
}
|
|
226
|
+
const sibling = getSplitViewPanelSibling(this._component);
|
|
227
|
+
if (sibling) {
|
|
228
|
+
const siblingSize = sibling.getCollapsibleSize();
|
|
229
|
+
return siblingSize + this.getContentSize(orientation);
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
return this.getParentSize(orientation);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Gets the content size of the sibling panel the component resizes into along its axis of
|
|
237
|
+
* orientation.
|
|
238
|
+
* @returns The sibling's content size in pixels or 0 if the sibling does not exist.
|
|
239
|
+
*/
|
|
240
|
+
getSiblingContentSize() {
|
|
241
|
+
var _a;
|
|
242
|
+
const sibling = getSplitViewPanelSibling(this._component);
|
|
243
|
+
return (_a = sibling === null || sibling === void 0 ? void 0 : sibling.getContentSize()) !== null && _a !== void 0 ? _a : 0;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Sets the content size of the sibling panel the component resizes into along its axis of
|
|
247
|
+
* orientation.
|
|
248
|
+
* @returns The sibling's content size in pixels.
|
|
249
|
+
*/
|
|
250
|
+
setSiblingContentSize(value) {
|
|
251
|
+
const sibling = getSplitViewPanelSibling(this._component);
|
|
252
|
+
sibling === null || sibling === void 0 ? void 0 : sibling.setContentSize(value);
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Runs the ripple animation.
|
|
256
|
+
* @param fromActivated Whether the ripple starts from and should end in an activated state.
|
|
257
|
+
*/
|
|
258
|
+
activateRipple(fromActivated) {
|
|
259
|
+
if (fromActivated) {
|
|
260
|
+
this._ripple.deactivate();
|
|
261
|
+
// Wait a short amount of time so the animation is distinguishable
|
|
262
|
+
window.setTimeout(() => {
|
|
263
|
+
this._ripple.activate();
|
|
264
|
+
}, SPLIT_VIEW_PANEL_CONSTANTS.numbers.RIPPLE_ACTIVATION_WAIT);
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
this._ripple.activate();
|
|
268
|
+
this._ripple.deactivate();
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Deactivates the ripple.
|
|
273
|
+
*/
|
|
274
|
+
deactivateRipple() {
|
|
275
|
+
this._ripple.deactivate();
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Gets the size of the parent split view along the axis of orientation.
|
|
279
|
+
* @param orientation The component's orientation.
|
|
280
|
+
* @returns The parent's size in pixels.
|
|
281
|
+
*/
|
|
282
|
+
getParentSize(orientation) {
|
|
283
|
+
var _a, _b;
|
|
284
|
+
const parentSize = orientation === 'horizontal' ? (_a = this._parent) === null || _a === void 0 ? void 0 : _a.clientWidth : (_b = this._parent) === null || _b === void 0 ? void 0 : _b.clientHeight;
|
|
285
|
+
return parentSize !== null && parentSize !== void 0 ? parentSize : 0;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Updates the provided characteristics of all panels.
|
|
289
|
+
* @param config An update configuration.
|
|
290
|
+
*/
|
|
291
|
+
updateParent(config) {
|
|
292
|
+
var _a;
|
|
293
|
+
(_a = this._parent) === null || _a === void 0 ? void 0 : _a.update(config);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Tyler Technologies, Inc.
|
|
4
|
+
* License: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { SplitViewOrientation } from '../split-view/split-view-constants';
|
|
7
|
+
export declare const SPLIT_VIEW_PANEL_CONSTANTS: {
|
|
8
|
+
elementName: "forge-split-view-panel";
|
|
9
|
+
attributes: {
|
|
10
|
+
RESIZABLE: string;
|
|
11
|
+
SIZE: string;
|
|
12
|
+
MIN: string;
|
|
13
|
+
MAX: string;
|
|
14
|
+
OPEN: string;
|
|
15
|
+
ACCESSIBLE_LABEL: string;
|
|
16
|
+
DISABLED: string;
|
|
17
|
+
ALLOW_CLOSE: string;
|
|
18
|
+
AUTO_CLOSE: string;
|
|
19
|
+
AUTO_CLOSE_THRESHOLD: string;
|
|
20
|
+
ORIENTATION: string;
|
|
21
|
+
};
|
|
22
|
+
classes: {
|
|
23
|
+
ROOT: string;
|
|
24
|
+
GRABBED: string;
|
|
25
|
+
HANDLE: string;
|
|
26
|
+
ICON: string;
|
|
27
|
+
CONTENT: string;
|
|
28
|
+
CLOSED: string;
|
|
29
|
+
CLOSING: string;
|
|
30
|
+
OPENING: string;
|
|
31
|
+
DISABLED: string;
|
|
32
|
+
};
|
|
33
|
+
ids: {
|
|
34
|
+
ROOT: string;
|
|
35
|
+
HANDLE: string;
|
|
36
|
+
ICON: string;
|
|
37
|
+
RIPPLE: string;
|
|
38
|
+
CONTENT: string;
|
|
39
|
+
};
|
|
40
|
+
selectors: {
|
|
41
|
+
ROOT: string;
|
|
42
|
+
HANDLE: string;
|
|
43
|
+
ICON: string;
|
|
44
|
+
RIPPLE: string;
|
|
45
|
+
CONTENT: string;
|
|
46
|
+
};
|
|
47
|
+
events: {
|
|
48
|
+
WILL_RESIZE: string;
|
|
49
|
+
RESIZE_START: string;
|
|
50
|
+
RESIZE_END: string;
|
|
51
|
+
RESIZE: string;
|
|
52
|
+
DID_OPEN: string;
|
|
53
|
+
DID_CLOSE: string;
|
|
54
|
+
WILL_OPEN: string;
|
|
55
|
+
WILL_CLOSE: string;
|
|
56
|
+
};
|
|
57
|
+
numbers: {
|
|
58
|
+
RIPPLE_ACTIVATION_WAIT: number;
|
|
59
|
+
};
|
|
60
|
+
customCssProperties: {
|
|
61
|
+
SIZE: string;
|
|
62
|
+
CURSOR: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export declare type SplitViewPanelResizable = 'start' | 'end' | 'off';
|
|
66
|
+
export declare type SplitViewInputDeviceType = 'pointer' | 'keyboard';
|
|
67
|
+
export declare enum SplitViewAnimatingLayer {
|
|
68
|
+
Under = 1,
|
|
69
|
+
Active = 2,
|
|
70
|
+
Above = 3
|
|
71
|
+
}
|
|
72
|
+
export interface ISplitViewPanelCursorConfig {
|
|
73
|
+
resizable: SplitViewPanelResizable;
|
|
74
|
+
boundary: 'min' | 'max' | 'none';
|
|
75
|
+
}
|
|
76
|
+
export interface ISplitViewPanelState {
|
|
77
|
+
orientation: SplitViewOrientation;
|
|
78
|
+
resizable: SplitViewPanelResizable;
|
|
79
|
+
arrowKeyHeld: boolean;
|
|
80
|
+
startPoint?: number;
|
|
81
|
+
startSize?: number;
|
|
82
|
+
currentSize?: number;
|
|
83
|
+
availableSpace?: number;
|
|
84
|
+
siblingSize?: number;
|
|
85
|
+
keyboardDelta: number;
|
|
86
|
+
isAtMin: boolean;
|
|
87
|
+
isAtMax: boolean;
|
|
88
|
+
min: number;
|
|
89
|
+
max?: number;
|
|
90
|
+
}
|
|
91
|
+
export interface ISplitViewPanelWillResizeEvent {
|
|
92
|
+
inputDeviceType: SplitViewInputDeviceType;
|
|
93
|
+
}
|
|
94
|
+
export interface ISplitViewPanelOpenEvent {
|
|
95
|
+
auto: boolean;
|
|
96
|
+
userInitiated: boolean;
|
|
97
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Tyler Technologies, Inc.
|
|
4
|
+
* License: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { COMPONENT_NAME_PREFIX } from '../../constants';
|
|
7
|
+
const elementName = `${COMPONENT_NAME_PREFIX}split-view-panel`;
|
|
8
|
+
const attributes = {
|
|
9
|
+
RESIZABLE: 'resizable',
|
|
10
|
+
SIZE: 'size',
|
|
11
|
+
MIN: 'min',
|
|
12
|
+
MAX: 'max',
|
|
13
|
+
OPEN: 'open',
|
|
14
|
+
ACCESSIBLE_LABEL: 'accessible-label',
|
|
15
|
+
DISABLED: 'disabled',
|
|
16
|
+
ALLOW_CLOSE: 'allow-close',
|
|
17
|
+
AUTO_CLOSE: 'auto-close',
|
|
18
|
+
AUTO_CLOSE_THRESHOLD: 'auto-close-threshold',
|
|
19
|
+
ORIENTATION: 'orientation'
|
|
20
|
+
};
|
|
21
|
+
const classes = {
|
|
22
|
+
ROOT: 'forge-split-view-panel',
|
|
23
|
+
GRABBED: 'forge-split-view-panel--grabbed',
|
|
24
|
+
HANDLE: 'forge-split-view-panel__handle',
|
|
25
|
+
ICON: 'forge-split-view-panel__icon',
|
|
26
|
+
CONTENT: 'forge-split-view-panel__content',
|
|
27
|
+
CLOSED: 'forge-split-view-panel--closed',
|
|
28
|
+
CLOSING: 'forge-split-view-panel--closing',
|
|
29
|
+
OPENING: 'forge-split-view-panel--opening',
|
|
30
|
+
DISABLED: 'forge-split-view-panel--disabled'
|
|
31
|
+
};
|
|
32
|
+
const ids = {
|
|
33
|
+
ROOT: 'root',
|
|
34
|
+
HANDLE: 'handle',
|
|
35
|
+
ICON: 'icon',
|
|
36
|
+
RIPPLE: 'ripple',
|
|
37
|
+
CONTENT: 'content'
|
|
38
|
+
};
|
|
39
|
+
const selectors = {
|
|
40
|
+
ROOT: `#${ids.ROOT}`,
|
|
41
|
+
HANDLE: `#${ids.HANDLE}`,
|
|
42
|
+
ICON: `#${ids.ICON}`,
|
|
43
|
+
RIPPLE: `#${ids.RIPPLE}`,
|
|
44
|
+
CONTENT: `#${ids.CONTENT}`
|
|
45
|
+
};
|
|
46
|
+
const events = {
|
|
47
|
+
WILL_RESIZE: `${elementName}-will-resize`,
|
|
48
|
+
RESIZE_START: `${elementName}-resize-start`,
|
|
49
|
+
RESIZE_END: `${elementName}-resize-end`,
|
|
50
|
+
RESIZE: `${elementName}-resize`,
|
|
51
|
+
DID_OPEN: `${elementName}-did-open`,
|
|
52
|
+
DID_CLOSE: `${elementName}-did-close`,
|
|
53
|
+
WILL_OPEN: `${elementName}-will-open`,
|
|
54
|
+
WILL_CLOSE: `${elementName}-will-close`
|
|
55
|
+
};
|
|
56
|
+
const numbers = {
|
|
57
|
+
RIPPLE_ACTIVATION_WAIT: 200
|
|
58
|
+
};
|
|
59
|
+
const customCssProperties = {
|
|
60
|
+
SIZE: '--forge-split-view-panel-size',
|
|
61
|
+
CURSOR: '--forge-split-view-panel-cursor'
|
|
62
|
+
};
|
|
63
|
+
export const SPLIT_VIEW_PANEL_CONSTANTS = {
|
|
64
|
+
elementName,
|
|
65
|
+
attributes,
|
|
66
|
+
classes,
|
|
67
|
+
ids,
|
|
68
|
+
selectors,
|
|
69
|
+
events,
|
|
70
|
+
numbers,
|
|
71
|
+
customCssProperties
|
|
72
|
+
};
|
|
73
|
+
export var SplitViewAnimatingLayer;
|
|
74
|
+
(function (SplitViewAnimatingLayer) {
|
|
75
|
+
SplitViewAnimatingLayer[SplitViewAnimatingLayer["Under"] = 1] = "Under";
|
|
76
|
+
SplitViewAnimatingLayer[SplitViewAnimatingLayer["Active"] = 2] = "Active";
|
|
77
|
+
SplitViewAnimatingLayer[SplitViewAnimatingLayer["Above"] = 3] = "Above";
|
|
78
|
+
})(SplitViewAnimatingLayer || (SplitViewAnimatingLayer = {}));
|