@tylertech/forge 2.24.0 → 2.24.2
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 +93 -108
- package/dist/esm/accordion/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/banner/index.js +1 -1
- package/dist/esm/bottom-sheet/index.js +1 -1
- package/dist/esm/busy-indicator/index.js +1 -1
- package/dist/esm/button/index.js +1 -1
- package/dist/esm/button-area/index.js +1 -1
- package/dist/esm/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/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.UUBAUAER.js → chunk.3MMDUUTN.js} +2 -2
- package/dist/esm/chunks/{chunk.KZDQFUNT.js → chunk.3V2VDOOP.js} +2 -2
- package/dist/esm/chunks/{chunk.Q2PGK4IA.js → chunk.4KKMVMPN.js} +2 -2
- package/dist/esm/chunks/{chunk.WLBRU5HI.js → chunk.5SM7UG6C.js} +2 -2
- package/dist/esm/chunks/{chunk.KNNT4CGL.js → chunk.6DVJ22IK.js} +2 -2
- package/dist/esm/chunks/{chunk.QRWYYBZC.js → chunk.6NARYF7U.js} +2 -2
- package/dist/esm/chunks/{chunk.QRWYYBZC.js.map → chunk.6NARYF7U.js.map} +3 -3
- package/dist/esm/chunks/{chunk.4APGDQHF.js → chunk.AFW54X3W.js} +2 -2
- package/dist/esm/chunks/chunk.AH4YGLZ4.js +7 -0
- package/dist/esm/chunks/chunk.AH4YGLZ4.js.map +7 -0
- package/dist/esm/chunks/chunk.AJTQHK25.js +7 -0
- package/dist/esm/chunks/chunk.AJTQHK25.js.map +7 -0
- package/dist/esm/chunks/{chunk.KMMOZ2SF.js → chunk.C3G25JFG.js} +2 -2
- package/dist/esm/chunks/chunk.CL4FTBLR.js +7 -0
- package/dist/esm/chunks/chunk.CL4FTBLR.js.map +7 -0
- package/dist/esm/chunks/{chunk.POBCKMFO.js → chunk.CYLDP7ML.js} +2 -2
- package/dist/esm/chunks/{chunk.HDHGU4L2.js → chunk.E3K6KM57.js} +2 -2
- package/dist/esm/chunks/{chunk.PTEWJ5PZ.js → chunk.EQEMCHMB.js} +2 -2
- package/dist/esm/chunks/{chunk.QBST3QSM.js → chunk.FEU4FTVQ.js} +2 -2
- package/dist/esm/chunks/{chunk.ZN6U7WVM.js → chunk.FIZVVCUB.js} +2 -2
- package/dist/esm/chunks/{chunk.BQRXAJTH.js → chunk.JFAOCIGZ.js} +2 -2
- package/dist/esm/chunks/{chunk.4QVF44G5.js → chunk.K57IO236.js} +2 -2
- package/dist/esm/chunks/{chunk.K2O3KSP7.js → chunk.KGMCBPGV.js} +2 -2
- package/dist/esm/chunks/chunk.KYH5GKVI.js +7 -0
- package/dist/esm/chunks/chunk.KYH5GKVI.js.map +7 -0
- package/dist/esm/chunks/chunk.LEINPSKL.js +7 -0
- package/dist/esm/chunks/chunk.LEINPSKL.js.map +7 -0
- package/dist/esm/chunks/{chunk.V5L5DKNF.js → chunk.LFBYFJTX.js} +2 -2
- package/dist/esm/chunks/chunk.MKHU4IPO.js +7 -0
- package/dist/esm/chunks/chunk.MKHU4IPO.js.map +7 -0
- package/dist/esm/chunks/chunk.N6MAUMFI.js +7 -0
- package/dist/esm/chunks/chunk.N6MAUMFI.js.map +7 -0
- package/dist/esm/chunks/{chunk.USKQFX4N.js → chunk.OBBYRQCY.js} +2 -2
- package/dist/esm/chunks/chunk.OJ54J4L3.js +7 -0
- package/dist/esm/chunks/chunk.OJ54J4L3.js.map +7 -0
- package/dist/esm/chunks/chunk.OML7MHH6.js +29 -0
- package/dist/esm/chunks/chunk.OML7MHH6.js.map +7 -0
- package/dist/esm/chunks/chunk.OUORLMTZ.js +12 -0
- package/dist/esm/chunks/chunk.QIGNMZRL.js +7 -0
- package/dist/esm/chunks/chunk.QIGNMZRL.js.map +7 -0
- package/dist/esm/chunks/{chunk.DNWMURCG.js → chunk.RHXQ2GMV.js} +2 -2
- package/dist/esm/chunks/{chunk.OLNY6ZNB.js → chunk.TLXWXBQO.js} +2 -2
- package/dist/esm/chunks/chunk.TMEYQXRR.js +7 -0
- package/dist/esm/chunks/chunk.TMEYQXRR.js.map +7 -0
- package/dist/esm/chunks/{chunk.NHZTE4I4.js → chunk.TUQWDTRA.js} +2 -2
- package/dist/esm/chunks/{chunk.NHZTE4I4.js.map → chunk.TUQWDTRA.js.map} +1 -1
- package/dist/esm/chunks/{chunk.EPFMWAIO.js → chunk.TVWUZYVG.js} +2 -2
- package/dist/esm/chunks/{chunk.AITARMT3.js → chunk.UNFOIEF6.js} +2 -2
- package/dist/esm/chunks/{chunk.AITARMT3.js.map → chunk.UNFOIEF6.js.map} +2 -2
- package/dist/esm/chunks/{chunk.32AY5G4D.js → chunk.W3DFKTAX.js} +2 -2
- package/dist/esm/chunks/{chunk.ATJJ6NAY.js → chunk.WF24FWAT.js} +2 -2
- package/dist/esm/chunks/chunk.XINI6PNZ.js +7 -0
- package/dist/esm/chunks/chunk.XINI6PNZ.js.map +7 -0
- package/dist/esm/chunks/{chunk.WVU4LCVC.js → chunk.XKX2BE6Z.js} +2 -2
- package/dist/esm/chunks/{chunk.ZVHFSAID.js → chunk.YVXZ753Q.js} +2 -2
- package/dist/esm/chunks/{chunk.QFMQPAT2.js → chunk.Z7Y2RA4P.js} +2 -2
- package/dist/esm/color-picker/index.js +1 -1
- package/dist/esm/core/index.js +1 -1
- package/dist/esm/core/utils/index.js +1 -1
- package/dist/esm/date-picker/index.js +1 -1
- package/dist/esm/date-range-picker/index.js +1 -1
- package/dist/esm/expansion-panel/index.js +1 -1
- package/dist/esm/file-picker/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/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/paginator/index.js +1 -1
- package/dist/esm/profile-card/index.js +1 -1
- package/dist/esm/quantity-field/index.js +1 -1
- package/dist/esm/radio/index.js +1 -1
- package/dist/esm/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/select/index.js +1 -1
- package/dist/esm/select/select-dropdown/index.js +1 -1
- package/dist/esm/slider/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/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/time-picker/index.js +1 -1
- package/dist/esm/toast/index.js +1 -1
- package/esm/app-bar/notification-button/app-bar-notification-button-adapter.d.ts +2 -2
- package/esm/app-bar/notification-button/app-bar-notification-button-adapter.js +1 -1
- package/esm/app-bar/notification-button/app-bar-notification-button-foundation.d.ts +3 -3
- package/esm/app-bar/notification-button/app-bar-notification-button-foundation.js +12 -4
- package/esm/app-bar/notification-button/app-bar-notification-button.d.ts +2 -2
- package/esm/app-bar/notification-button/app-bar-notification-button.js +2 -2
- package/esm/autocomplete/autocomplete-adapter.d.ts +2 -0
- package/esm/autocomplete/autocomplete-adapter.js +6 -0
- package/esm/autocomplete/autocomplete-foundation.js +1 -0
- package/esm/core/utils/utils.d.ts +9 -0
- package/esm/core/utils/utils.js +22 -0
- package/esm/date-picker/date-picker-adapter.js +3 -0
- package/esm/date-range-picker/date-range-picker-adapter.js +6 -1
- package/esm/list/list-item/list-item-adapter.js +3 -1
- package/esm/list-dropdown/list-dropdown-constants.d.ts +1 -0
- package/esm/list-dropdown/list-dropdown-utils.js +16 -3
- package/esm/menu/menu-adapter.d.ts +2 -0
- package/esm/menu/menu-adapter.js +3 -0
- package/esm/menu/menu-foundation.js +2 -5
- package/esm/select/core/base-select-adapter.d.ts +0 -2
- package/esm/select/core/base-select-foundation.js +1 -2
- package/esm/select/option/option.d.ts +0 -1
- package/esm/select/option/option.js +0 -5
- package/esm/select/select/select-adapter.d.ts +0 -1
- package/esm/select/select/select-adapter.js +4 -9
- package/esm/select/select/select-foundation.js +0 -1
- package/esm/select/select-dropdown/select-dropdown-adapter.d.ts +0 -1
- package/esm/select/select-dropdown/select-dropdown-adapter.js +0 -11
- package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
- package/esm/tabs/tab/tab-adapter.d.ts +1 -3
- package/esm/tabs/tab/tab-adapter.js +13 -14
- package/esm/tabs/tab/tab-constants.d.ts +2 -1
- package/esm/tabs/tab/tab-constants.js +2 -1
- package/esm/tabs/tab/tab-foundation.d.ts +0 -2
- package/esm/tabs/tab/tab-foundation.js +3 -3
- package/esm/tabs/tab/tab.d.ts +0 -1
- package/esm/tabs/tab/tab.js +2 -5
- package/esm/time-picker/time-picker-adapter.d.ts +2 -0
- package/esm/time-picker/time-picker-adapter.js +7 -2
- package/esm/time-picker/time-picker-foundation.js +1 -0
- package/package.json +1 -1
- package/styles/tabs/tab/_mixins.scss +3 -7
- package/styles/tabs/tab/tab.scss +4 -0
- package/dist/esm/chunks/chunk.36RT7UOR.js +0 -7
- package/dist/esm/chunks/chunk.36RT7UOR.js.map +0 -7
- package/dist/esm/chunks/chunk.7NUOX3JD.js +0 -12
- package/dist/esm/chunks/chunk.E6FHH3CM.js +0 -7
- package/dist/esm/chunks/chunk.E6FHH3CM.js.map +0 -7
- package/dist/esm/chunks/chunk.F6DMKNFU.js +0 -29
- package/dist/esm/chunks/chunk.F6DMKNFU.js.map +0 -7
- package/dist/esm/chunks/chunk.HSUOYMJT.js +0 -7
- package/dist/esm/chunks/chunk.HSUOYMJT.js.map +0 -7
- package/dist/esm/chunks/chunk.HVYDNI2O.js +0 -7
- package/dist/esm/chunks/chunk.HVYDNI2O.js.map +0 -7
- package/dist/esm/chunks/chunk.KZJYLYWN.js +0 -7
- package/dist/esm/chunks/chunk.KZJYLYWN.js.map +0 -7
- package/dist/esm/chunks/chunk.LZOAYM6V.js +0 -7
- package/dist/esm/chunks/chunk.LZOAYM6V.js.map +0 -7
- package/dist/esm/chunks/chunk.M5QM2CPF.js +0 -7
- package/dist/esm/chunks/chunk.M5QM2CPF.js.map +0 -7
- package/dist/esm/chunks/chunk.MA2P7CG4.js +0 -7
- package/dist/esm/chunks/chunk.MA2P7CG4.js.map +0 -7
- package/dist/esm/chunks/chunk.MSOMQ4HD.js +0 -7
- package/dist/esm/chunks/chunk.MSOMQ4HD.js.map +0 -7
- package/dist/esm/chunks/chunk.QRSFRMBF.js +0 -7
- package/dist/esm/chunks/chunk.QRSFRMBF.js.map +0 -7
- package/dist/esm/chunks/chunk.SDZC7JIX.js +0 -7
- package/dist/esm/chunks/chunk.SDZC7JIX.js.map +0 -7
- /package/dist/esm/chunks/{chunk.UUBAUAER.js.map → chunk.3MMDUUTN.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KZDQFUNT.js.map → chunk.3V2VDOOP.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.Q2PGK4IA.js.map → chunk.4KKMVMPN.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.WLBRU5HI.js.map → chunk.5SM7UG6C.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KNNT4CGL.js.map → chunk.6DVJ22IK.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.4APGDQHF.js.map → chunk.AFW54X3W.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KMMOZ2SF.js.map → chunk.C3G25JFG.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.POBCKMFO.js.map → chunk.CYLDP7ML.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.HDHGU4L2.js.map → chunk.E3K6KM57.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.PTEWJ5PZ.js.map → chunk.EQEMCHMB.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QBST3QSM.js.map → chunk.FEU4FTVQ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ZN6U7WVM.js.map → chunk.FIZVVCUB.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.BQRXAJTH.js.map → chunk.JFAOCIGZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.4QVF44G5.js.map → chunk.K57IO236.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.K2O3KSP7.js.map → chunk.KGMCBPGV.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.V5L5DKNF.js.map → chunk.LFBYFJTX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.USKQFX4N.js.map → chunk.OBBYRQCY.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.7NUOX3JD.js.map → chunk.OUORLMTZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.DNWMURCG.js.map → chunk.RHXQ2GMV.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.OLNY6ZNB.js.map → chunk.TLXWXBQO.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.EPFMWAIO.js.map → chunk.TVWUZYVG.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.32AY5G4D.js.map → chunk.W3DFKTAX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ATJJ6NAY.js.map → chunk.WF24FWAT.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.WVU4LCVC.js.map → chunk.XKX2BE6Z.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ZVHFSAID.js.map → chunk.YVXZ753Q.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QFMQPAT2.js.map → chunk.Z7Y2RA4P.js.map} +0 -0
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a,b,c,d,e}from"../../chunks/chunk.M5AHW6YM.js";import"../../chunks/chunk.POYFRYFF.js";import"../../chunks/chunk.SXQ22MNR.js";import"../../chunks/chunk.47EUT2BJ.js";import"../../chunks/chunk.4DAIIJ37.js";import"../../chunks/chunk.EC5JFSHR.js";import"../../chunks/chunk.2DXG2R3M.js";import"../../chunks/chunk.F3MP6AXF.js";import"../../chunks/chunk.MZLPUI6R.js";import"../../chunks/chunk.YI4JTY4T.js";import"../../chunks/chunk.WHQZNZHW.js";import"../../chunks/chunk.6KTLOA7V.js";import"../../chunks/chunk.U6FJJGO3.js";import"../../chunks/chunk.SKLCDWYQ.js";import"../../chunks/chunk.2KXSGD3S.js";import"../../chunks/chunk.FVRSGKJD.js";import"../../chunks/chunk.U6WGJELL.js";import"../../chunks/chunk.7XFU2W25.js";import"../../chunks/chunk.
|
|
6
|
+
import{a,b,c,d,e}from"../../chunks/chunk.M5AHW6YM.js";import"../../chunks/chunk.POYFRYFF.js";import"../../chunks/chunk.SXQ22MNR.js";import"../../chunks/chunk.47EUT2BJ.js";import"../../chunks/chunk.4DAIIJ37.js";import"../../chunks/chunk.EC5JFSHR.js";import"../../chunks/chunk.2DXG2R3M.js";import"../../chunks/chunk.F3MP6AXF.js";import"../../chunks/chunk.MZLPUI6R.js";import"../../chunks/chunk.YI4JTY4T.js";import"../../chunks/chunk.WHQZNZHW.js";import"../../chunks/chunk.6KTLOA7V.js";import"../../chunks/chunk.U6FJJGO3.js";import"../../chunks/chunk.SKLCDWYQ.js";import"../../chunks/chunk.2KXSGD3S.js";import"../../chunks/chunk.FVRSGKJD.js";import"../../chunks/chunk.U6WGJELL.js";import"../../chunks/chunk.7XFU2W25.js";import"../../chunks/chunk.KYH5GKVI.js";import"../../chunks/chunk.BESB4RGK.js";import"../../chunks/chunk.UWYANU5D.js";import"../../chunks/chunk.KTGSZEAG.js";import"../../chunks/chunk.DL7NX432.js";import"../../chunks/chunk.LJLEPTLU.js";import"../../chunks/chunk.4LA6HEA7.js";import"../../chunks/chunk.J2M2MXP2.js";import"../../chunks/chunk.MCIQXNKY.js";export{a as STEPPER_CONSTANTS,b as StepperAdapter,d as StepperComponent,c as StepperFoundation,e as defineStepperComponent};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/switch/index.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a as b,b as c,c as d}from"../chunks/chunk.
|
|
6
|
+
import{a as b,b as c,c as d}from"../chunks/chunk.XKX2BE6Z.js";import{a}from"../chunks/chunk.VS7NFAGM.js";import"../chunks/chunk.2DXG2R3M.js";import"../chunks/chunk.F3MP6AXF.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.2KXSGD3S.js";import"../chunks/chunk.FVRSGKJD.js";import"../chunks/chunk.U6WGJELL.js";import"../chunks/chunk.7XFU2W25.js";import"../chunks/chunk.KYH5GKVI.js";import"../chunks/chunk.BESB4RGK.js";import"../chunks/chunk.UWYANU5D.js";import"../chunks/chunk.DL7NX432.js";import"../chunks/chunk.LJLEPTLU.js";import"../chunks/chunk.4LA6HEA7.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.MCIQXNKY.js";export{a as SWITCH_CONSTANTS,b as SwitchComponent,c as SwitchComponentDelegate,d as defineSwitchComponent};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/table/index.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a,b,c,d,e,f,g,h,i}from"../chunks/chunk.
|
|
6
|
+
import{a,b,c,d,e,f,g,h,i}from"../chunks/chunk.TLXWXBQO.js";import"../chunks/chunk.DONAMICM.js";import"../chunks/chunk.YVXZ753Q.js";import"../chunks/chunk.M4PI24CI.js";import"../chunks/chunk.SXQ22MNR.js";import"../chunks/chunk.47EUT2BJ.js";import"../chunks/chunk.4DAIIJ37.js";import"../chunks/chunk.EC5JFSHR.js";import"../chunks/chunk.2DXG2R3M.js";import"../chunks/chunk.F3MP6AXF.js";import"../chunks/chunk.MZLPUI6R.js";import"../chunks/chunk.TEHQWMFI.js";import"../chunks/chunk.SYHVVXRW.js";import"../chunks/chunk.YI4JTY4T.js";import"../chunks/chunk.3KQL7VAZ.js";import"../chunks/chunk.WHQZNZHW.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.2KXSGD3S.js";import"../chunks/chunk.FVRSGKJD.js";import"../chunks/chunk.U6WGJELL.js";import"../chunks/chunk.7XFU2W25.js";import"../chunks/chunk.KYH5GKVI.js";import"../chunks/chunk.BESB4RGK.js";import"../chunks/chunk.UWYANU5D.js";import"../chunks/chunk.KTGSZEAG.js";import"../chunks/chunk.DL7NX432.js";import"../chunks/chunk.LJLEPTLU.js";import"../chunks/chunk.4LA6HEA7.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.MCIQXNKY.js";export{b as CellAlign,c as SortDirection,a as TABLE_CONSTANTS,e as TableAdapter,h as TableComponent,d as TableFilterType,g as TableFoundation,f as TableRow,i as defineTableComponent};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/tabs/index.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import"../chunks/chunk.TLCGGWBO.js";import{a as f,b as g,c as h,d as i,e as j,f as k,g as l}from"../chunks/chunk.
|
|
6
|
+
import"../chunks/chunk.TLCGGWBO.js";import{a as f,b as g,c as h,d as i,e as j,f as k,g as l}from"../chunks/chunk.4KKMVMPN.js";import{a as e}from"../chunks/chunk.3V2VDOOP.js";import{a,b,c,d}from"../chunks/chunk.OML7MHH6.js";import"../chunks/chunk.E3K6KM57.js";import"../chunks/chunk.MV327MYK.js";import"../chunks/chunk.EC5JFSHR.js";import"../chunks/chunk.2DXG2R3M.js";import"../chunks/chunk.F3MP6AXF.js";import"../chunks/chunk.MZLPUI6R.js";import"../chunks/chunk.YI4JTY4T.js";import"../chunks/chunk.WHQZNZHW.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.2KXSGD3S.js";import"../chunks/chunk.FVRSGKJD.js";import"../chunks/chunk.U6WGJELL.js";import"../chunks/chunk.7XFU2W25.js";import"../chunks/chunk.KYH5GKVI.js";import"../chunks/chunk.BESB4RGK.js";import"../chunks/chunk.UWYANU5D.js";import"../chunks/chunk.KTGSZEAG.js";import"../chunks/chunk.DL7NX432.js";import"../chunks/chunk.LJLEPTLU.js";import"../chunks/chunk.4LA6HEA7.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.MCIQXNKY.js";export{g as ACCEPTABLE_KEYS,h as KEYCODE_MAP,f as TAB_BAR_CONSTANTS,a as TAB_CONSTANTS,b as TabAdapter,j as TabBarAdapter,k as TabBarComponent,i as TabBarFoundation,d as TabComponent,c as TabFoundation,l as defineTabBarComponent,e as defineTabComponent};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a as e}from"../../chunks/chunk.
|
|
6
|
+
import{a as e}from"../../chunks/chunk.3V2VDOOP.js";import{a,b,c,d}from"../../chunks/chunk.OML7MHH6.js";import"../../chunks/chunk.EC5JFSHR.js";import"../../chunks/chunk.2DXG2R3M.js";import"../../chunks/chunk.F3MP6AXF.js";import"../../chunks/chunk.UWYANU5D.js";import"../../chunks/chunk.KTGSZEAG.js";import"../../chunks/chunk.DL7NX432.js";import"../../chunks/chunk.LJLEPTLU.js";import"../../chunks/chunk.4LA6HEA7.js";import"../../chunks/chunk.J2M2MXP2.js";import"../../chunks/chunk.MCIQXNKY.js";export{a as TAB_CONSTANTS,b as TabAdapter,d as TabComponent,c as TabFoundation,e as defineTabComponent};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a,b,c,d,e,f,g}from"../../chunks/chunk.
|
|
6
|
+
import{a,b,c,d,e,f,g}from"../../chunks/chunk.4KKMVMPN.js";import"../../chunks/chunk.OML7MHH6.js";import"../../chunks/chunk.E3K6KM57.js";import"../../chunks/chunk.MV327MYK.js";import"../../chunks/chunk.EC5JFSHR.js";import"../../chunks/chunk.2DXG2R3M.js";import"../../chunks/chunk.F3MP6AXF.js";import"../../chunks/chunk.MZLPUI6R.js";import"../../chunks/chunk.YI4JTY4T.js";import"../../chunks/chunk.WHQZNZHW.js";import"../../chunks/chunk.6KTLOA7V.js";import"../../chunks/chunk.U6FJJGO3.js";import"../../chunks/chunk.SKLCDWYQ.js";import"../../chunks/chunk.2KXSGD3S.js";import"../../chunks/chunk.FVRSGKJD.js";import"../../chunks/chunk.U6WGJELL.js";import"../../chunks/chunk.7XFU2W25.js";import"../../chunks/chunk.KYH5GKVI.js";import"../../chunks/chunk.BESB4RGK.js";import"../../chunks/chunk.UWYANU5D.js";import"../../chunks/chunk.KTGSZEAG.js";import"../../chunks/chunk.DL7NX432.js";import"../../chunks/chunk.LJLEPTLU.js";import"../../chunks/chunk.4LA6HEA7.js";import"../../chunks/chunk.J2M2MXP2.js";import"../../chunks/chunk.MCIQXNKY.js";export{b as ACCEPTABLE_KEYS,c as KEYCODE_MAP,a as TAB_BAR_CONSTANTS,e as TabBarAdapter,f as TabBarComponent,d as TabBarFoundation,g as defineTabBarComponent};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s}from"../chunks/chunk.
|
|
6
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s}from"../chunks/chunk.XINI6PNZ.js";import"../chunks/chunk.LIKJD4SK.js";import"../chunks/chunk.TDWRBHQW.js";import"../chunks/chunk.VDF5MWGC.js";import"../chunks/chunk.EYGSUZWX.js";import"../chunks/chunk.DK6EGV4J.js";import"../chunks/chunk.DONAMICM.js";import"../chunks/chunk.DBKVUCUQ.js";import"../chunks/chunk.IX2UHMIM.js";import"../chunks/chunk.VS7NFAGM.js";import"../chunks/chunk.KNKTQDLS.js";import"../chunks/chunk.M4PI24CI.js";import"../chunks/chunk.7C7XCT32.js";import"../chunks/chunk.LEINPSKL.js";import"../chunks/chunk.RQG6GVOI.js";import"../chunks/chunk.FZQCBRPK.js";import"../chunks/chunk.K57IO236.js";import"../chunks/chunk.AJTQHK25.js";import"../chunks/chunk.6YPD6CQM.js";import"../chunks/chunk.P73BXRKY.js";import"../chunks/chunk.V4TCOZLK.js";import"../chunks/chunk.4DAIIJ37.js";import"../chunks/chunk.WCSVKQR2.js";import"../chunks/chunk.E3K6KM57.js";import"../chunks/chunk.MV327MYK.js";import"../chunks/chunk.EC5JFSHR.js";import"../chunks/chunk.2DXG2R3M.js";import"../chunks/chunk.F3MP6AXF.js";import"../chunks/chunk.MZLPUI6R.js";import"../chunks/chunk.YI4JTY4T.js";import"../chunks/chunk.3KQL7VAZ.js";import"../chunks/chunk.WHQZNZHW.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.2KXSGD3S.js";import"../chunks/chunk.FVRSGKJD.js";import"../chunks/chunk.U6WGJELL.js";import"../chunks/chunk.7XFU2W25.js";import"../chunks/chunk.KYH5GKVI.js";import"../chunks/chunk.BESB4RGK.js";import"../chunks/chunk.UWYANU5D.js";import"../chunks/chunk.KTGSZEAG.js";import"../chunks/chunk.DL7NX432.js";import"../chunks/chunk.LJLEPTLU.js";import"../chunks/chunk.4LA6HEA7.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.MCIQXNKY.js";export{a as TIME_PICKER_CONSTANTS,b as TimePickerAdapter,q as TimePickerComponent,r as TimePickerComponentDelegate,p as TimePickerFoundation,s as defineTimePickerComponent,n as getCurrentTimeOfDayMillis,j as hoursToMillis,o as mergeDateWithTime,e as millisToHours,g as millisToMinutes,f as millisToMinutesClamped,i as millisToSeconds,h as millisToSecondsClamped,d as millisToTimeString,k as minutesToMillis,l as secondsToMillis,m as stripSecondsFromMillis,c as timeStringToMillis};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/toast/index.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a,b,c,d,e}from"../chunks/chunk.
|
|
6
|
+
import{a,b,c,d,e}from"../chunks/chunk.JFAOCIGZ.js";import"../chunks/chunk.RHXQ2GMV.js";import"../chunks/chunk.E3K6KM57.js";import"../chunks/chunk.MV327MYK.js";import"../chunks/chunk.EC5JFSHR.js";import"../chunks/chunk.2DXG2R3M.js";import"../chunks/chunk.F3MP6AXF.js";import"../chunks/chunk.MZLPUI6R.js";import"../chunks/chunk.WHQZNZHW.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.2KXSGD3S.js";import"../chunks/chunk.FVRSGKJD.js";import"../chunks/chunk.U6WGJELL.js";import"../chunks/chunk.7XFU2W25.js";import"../chunks/chunk.KYH5GKVI.js";import"../chunks/chunk.BESB4RGK.js";import"../chunks/chunk.UWYANU5D.js";import"../chunks/chunk.KTGSZEAG.js";import"../chunks/chunk.DL7NX432.js";import"../chunks/chunk.LJLEPTLU.js";import"../chunks/chunk.4LA6HEA7.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.MCIQXNKY.js";export{a as TOAST_CONSTANTS,b as ToastAdapter,d as ToastComponent,c as ToastFoundation,e as defineToastComponent};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,7 +8,7 @@ import { IAppBarNotificationButtonComponent } from './app-bar-notification-butto
|
|
|
8
8
|
export interface IAppBarNotificationButtonAdapter extends IBaseAdapter {
|
|
9
9
|
initialize(): void;
|
|
10
10
|
setIcon(icon: string): void;
|
|
11
|
-
setCount(value: number): void;
|
|
11
|
+
setCount(value: string | number | null | undefined): void;
|
|
12
12
|
setBadgeType(dot: boolean): void;
|
|
13
13
|
setBadgeTheme(theme: string): void;
|
|
14
14
|
setBadgeVisible(isVisible: boolean): void;
|
|
@@ -19,7 +19,7 @@ export declare class AppBarNotificationButtonAdapter extends BaseAdapter<IAppBar
|
|
|
19
19
|
constructor(component: IAppBarNotificationButtonComponent);
|
|
20
20
|
setIcon(icon: string): void;
|
|
21
21
|
initialize(): void;
|
|
22
|
-
setCount(value: number): void;
|
|
22
|
+
setCount(value: string | number | undefined | null): void;
|
|
23
23
|
setBadgeType(dot: boolean): void;
|
|
24
24
|
setBadgeTheme(theme: string): void;
|
|
25
25
|
setBadgeVisible(isVisible: boolean): void;
|
|
@@ -19,7 +19,7 @@ export class AppBarNotificationButtonAdapter extends BaseAdapter {
|
|
|
19
19
|
this._iconElement = getLightElement(this._component, ICON_CONSTANTS.elementName);
|
|
20
20
|
}
|
|
21
21
|
setCount(value) {
|
|
22
|
-
this._badgeElement.textContent = value;
|
|
22
|
+
this._badgeElement.textContent = value != null ? String(value) : '';
|
|
23
23
|
}
|
|
24
24
|
setBadgeType(dot) {
|
|
25
25
|
this._badgeElement.dot = dot;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { ICustomElementFoundation } from '@tylertech/forge-core';
|
|
7
7
|
import { IAppBarNotificationButtonAdapter } from './app-bar-notification-button-adapter';
|
|
8
8
|
export interface IAppBarNotificationButtonFoundation extends ICustomElementFoundation {
|
|
9
|
-
count: number;
|
|
9
|
+
count: string | number | null | undefined;
|
|
10
10
|
dot: boolean;
|
|
11
11
|
theme: string;
|
|
12
12
|
showBadge: boolean;
|
|
@@ -25,8 +25,8 @@ export declare class AppBarNotificationButtonFoundation implements IAppBarNotifi
|
|
|
25
25
|
disconnect(): void;
|
|
26
26
|
get icon(): string;
|
|
27
27
|
set icon(value: string);
|
|
28
|
-
get count(): number;
|
|
29
|
-
set count(value: number);
|
|
28
|
+
get count(): string | number | null | undefined;
|
|
29
|
+
set count(value: string | number | null | undefined);
|
|
30
30
|
get dot(): boolean;
|
|
31
31
|
set dot(value: boolean);
|
|
32
32
|
get theme(): string;
|
|
@@ -44,8 +44,15 @@ export class AppBarNotificationButtonFoundation {
|
|
|
44
44
|
if (this._count !== value) {
|
|
45
45
|
this._count = value;
|
|
46
46
|
if (this._isInitialized) {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
if (!this._dot) {
|
|
48
|
+
this._adapter.setCount(this._count);
|
|
49
|
+
}
|
|
50
|
+
if (typeof this._count === 'string') {
|
|
51
|
+
this._adapter.setHostAttribute(APP_BAR_NOTIFICATION_BUTTON_CONSTANTS.attributes.COUNT, this._count);
|
|
52
|
+
}
|
|
53
|
+
else if (value == null) {
|
|
54
|
+
this._adapter.removeHostAttribute(APP_BAR_NOTIFICATION_BUTTON_CONSTANTS.attributes.COUNT);
|
|
55
|
+
}
|
|
49
56
|
}
|
|
50
57
|
}
|
|
51
58
|
}
|
|
@@ -58,11 +65,12 @@ export class AppBarNotificationButtonFoundation {
|
|
|
58
65
|
if (this._isInitialized) {
|
|
59
66
|
this._adapter.setBadgeType(this._dot);
|
|
60
67
|
if (this._dot) {
|
|
61
|
-
this._adapter.
|
|
68
|
+
this._adapter.setCount(null);
|
|
62
69
|
}
|
|
63
70
|
else {
|
|
64
|
-
this._adapter.
|
|
71
|
+
this._adapter.setCount(this._count);
|
|
65
72
|
}
|
|
73
|
+
this._adapter.toggleHostAttribute(APP_BAR_NOTIFICATION_BUTTON_CONSTANTS.attributes.DOT, this._dot);
|
|
66
74
|
}
|
|
67
75
|
}
|
|
68
76
|
}
|
|
@@ -10,7 +10,7 @@ declare global {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
export interface IAppBarNotificationButtonComponent extends IBaseComponent {
|
|
13
|
-
count: number;
|
|
13
|
+
count: string | number | null | undefined;
|
|
14
14
|
dot: boolean;
|
|
15
15
|
showBadge: boolean;
|
|
16
16
|
theme: string;
|
|
@@ -28,7 +28,7 @@ export declare class AppBarNotificationButtonComponent extends BaseComponent imp
|
|
|
28
28
|
initializedCallback(): void;
|
|
29
29
|
connectedCallback(): void;
|
|
30
30
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
31
|
-
count: number;
|
|
31
|
+
count: string | number | null | undefined;
|
|
32
32
|
dot: boolean;
|
|
33
33
|
theme: string;
|
|
34
34
|
icon: string;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { __decorate } from "tslib";
|
|
7
|
-
import { attachLightTemplate, coerceBoolean,
|
|
7
|
+
import { attachLightTemplate, coerceBoolean, CustomElement, FoundationProperty } from '@tylertech/forge-core';
|
|
8
8
|
import { tylIconNotifications } from '@tylertech/tyler-icons/standard';
|
|
9
9
|
import { BadgeComponent } from '../../badge';
|
|
10
10
|
import { BaseComponent } from '../../core/base/base-component';
|
|
@@ -44,7 +44,7 @@ let AppBarNotificationButtonComponent = class AppBarNotificationButtonComponent
|
|
|
44
44
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
45
45
|
switch (name) {
|
|
46
46
|
case APP_BAR_NOTIFICATION_BUTTON_CONSTANTS.attributes.COUNT:
|
|
47
|
-
this.count =
|
|
47
|
+
this.count = newValue;
|
|
48
48
|
break;
|
|
49
49
|
case APP_BAR_NOTIFICATION_BUTTON_CONSTANTS.attributes.DOT:
|
|
50
50
|
this.dot = coerceBoolean(newValue);
|
|
@@ -8,6 +8,7 @@ import { IAutocompleteComponent } from './autocomplete';
|
|
|
8
8
|
import { IAutocompleteOption, IAutocompleteOptionGroup } from './autocomplete-constants';
|
|
9
9
|
import { IListDropdownConfig } from '../list-dropdown';
|
|
10
10
|
export interface IAutocompleteAdapter extends IBaseAdapter {
|
|
11
|
+
readonly inputElement: HTMLInputElement;
|
|
11
12
|
setInputElement(): HTMLInputElement;
|
|
12
13
|
setInputAttribute(name: string, value: string): void;
|
|
13
14
|
addInputListener(type: string, listener: (evt: Event) => void): void;
|
|
@@ -52,6 +53,7 @@ export declare class AutocompleteAdapter extends BaseAdapter<IAutocompleteCompon
|
|
|
52
53
|
private _listDropdown?;
|
|
53
54
|
private _targetElement?;
|
|
54
55
|
constructor(component: IAutocompleteComponent);
|
|
56
|
+
get inputElement(): HTMLInputElement;
|
|
55
57
|
setInputElement(): HTMLInputElement;
|
|
56
58
|
setInputAttribute(name: string, value: string): void;
|
|
57
59
|
addInputListener(type: string, listener: (evt: Event) => void): void;
|
|
@@ -10,6 +10,7 @@ import { TEXT_FIELD_CONSTANTS } from '../text-field';
|
|
|
10
10
|
import { ListDropdown } from '../list-dropdown';
|
|
11
11
|
import { CHIP_FIELD_CONSTANTS } from '../chip-field';
|
|
12
12
|
import { POPUP_CONSTANTS } from '../popup';
|
|
13
|
+
import { setAriaControls, tryCreateAriaControlsPlaceholder } from '../core';
|
|
13
14
|
/**
|
|
14
15
|
* The DOM adapter for the `<forge-autocomplete>` element.
|
|
15
16
|
*/
|
|
@@ -18,6 +19,9 @@ export class AutocompleteAdapter extends BaseAdapter {
|
|
|
18
19
|
super(component);
|
|
19
20
|
this.setInputElement();
|
|
20
21
|
}
|
|
22
|
+
get inputElement() {
|
|
23
|
+
return this._inputElement;
|
|
24
|
+
}
|
|
21
25
|
setInputElement() {
|
|
22
26
|
const inputElements = deepQuerySelectorAll(this._component, AUTOCOMPLETE_CONSTANTS.selectors.INPUT, false);
|
|
23
27
|
if (inputElements.length) {
|
|
@@ -42,6 +46,8 @@ export class AutocompleteAdapter extends BaseAdapter {
|
|
|
42
46
|
this._inputElement.setAttribute('aria-haspopup', 'true');
|
|
43
47
|
this._inputElement.setAttribute('aria-expanded', 'false');
|
|
44
48
|
this._inputElement.setAttribute('aria-autocomplete', 'list');
|
|
49
|
+
tryCreateAriaControlsPlaceholder();
|
|
50
|
+
setAriaControls(this._inputElement);
|
|
45
51
|
}
|
|
46
52
|
isWrappingChipField() {
|
|
47
53
|
return !!this._component.querySelector(CHIP_FIELD_CONSTANTS.elementName);
|
|
@@ -347,6 +347,7 @@ export class AutocompleteFoundation extends ListDropdownAwareFoundation {
|
|
|
347
347
|
}
|
|
348
348
|
const config = {
|
|
349
349
|
options: this._options,
|
|
350
|
+
referenceElement: this._adapter.inputElement,
|
|
350
351
|
multiple: this._multiple,
|
|
351
352
|
selectedValues: [...this._values],
|
|
352
353
|
id: `forge-autocomplete-${this._identifier}`,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
export declare const ARIA_CONTROLS_PLACEHOLDER_ID = "forge-aria-controls-placeholder";
|
|
6
7
|
/**
|
|
7
8
|
* Highlights text in the given label by converting it to HTML and using a `<span>` tag to show the highlighted text within the original label.
|
|
8
9
|
* @param label The full text.
|
|
@@ -62,3 +63,11 @@ export declare function safeMin(...args: (number | undefined)[]): number;
|
|
|
62
63
|
* @returns The max value or `Number.NEGATIVE_INFINITY` if all values are `undefined`.
|
|
63
64
|
*/
|
|
64
65
|
export declare function safeMax(...args: (number | undefined)[]): number;
|
|
66
|
+
/**
|
|
67
|
+
* Creates a div as a temporary aria-controls placeholder for various components that use a dynamic popup.
|
|
68
|
+
*/
|
|
69
|
+
export declare function tryCreateAriaControlsPlaceholder(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Sets the aria-controls attribute of an element to the placeholder div
|
|
72
|
+
*/
|
|
73
|
+
export declare function setAriaControls(component: HTMLElement): void;
|
package/esm/core/utils/utils.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
export const ARIA_CONTROLS_PLACEHOLDER_ID = 'forge-aria-controls-placeholder';
|
|
6
7
|
/**
|
|
7
8
|
* Highlights text in the given label by converting it to HTML and using a `<span>` tag to show the highlighted text within the original label.
|
|
8
9
|
* @param label The full text.
|
|
@@ -128,3 +129,24 @@ export function safeMin(...args) {
|
|
|
128
129
|
export function safeMax(...args) {
|
|
129
130
|
return Math.max(...args.map(arg => arg !== null && arg !== void 0 ? arg : Number.NEGATIVE_INFINITY));
|
|
130
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* Creates a div as a temporary aria-controls placeholder for various components that use a dynamic popup.
|
|
134
|
+
*/
|
|
135
|
+
export function tryCreateAriaControlsPlaceholder() {
|
|
136
|
+
const hasDiv = document.getElementById(ARIA_CONTROLS_PLACEHOLDER_ID);
|
|
137
|
+
if (hasDiv) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
const placeholderDiv = document.createElement('div');
|
|
141
|
+
placeholderDiv.id = ARIA_CONTROLS_PLACEHOLDER_ID;
|
|
142
|
+
document.body.appendChild(placeholderDiv);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Sets the aria-controls attribute of an element to the placeholder div
|
|
146
|
+
*/
|
|
147
|
+
export function setAriaControls(component) {
|
|
148
|
+
const placeholderDiv = document.getElementById(ARIA_CONTROLS_PLACEHOLDER_ID);
|
|
149
|
+
if (placeholderDiv) {
|
|
150
|
+
component.setAttribute('aria-controls', placeholderDiv.id);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -8,6 +8,7 @@ import { CalendarDropdown } from '../calendar/calendar-dropdown/calendar-dropdow
|
|
|
8
8
|
import { DateInputMask } from '../core/mask/date-input-mask';
|
|
9
9
|
import { BaseDatePickerAdapter } from './base/base-date-picker-adapter';
|
|
10
10
|
import { DATE_PICKER_CONSTANTS } from './date-picker-constants';
|
|
11
|
+
import { setAriaControls, tryCreateAriaControlsPlaceholder } from '../core';
|
|
11
12
|
export class DatePickerAdapter extends BaseDatePickerAdapter {
|
|
12
13
|
constructor(component) {
|
|
13
14
|
super(component);
|
|
@@ -41,6 +42,8 @@ export class DatePickerAdapter extends BaseDatePickerAdapter {
|
|
|
41
42
|
this._inputElement.setAttribute('aria-haspopup', 'true');
|
|
42
43
|
this._inputElement.setAttribute('aria-expanded', 'false');
|
|
43
44
|
this._inputElement.setAttribute('aria-owns', this._dropdownIdentifier);
|
|
45
|
+
tryCreateAriaControlsPlaceholder();
|
|
46
|
+
setAriaControls(this._inputElement);
|
|
44
47
|
}
|
|
45
48
|
addInputListener(type, listener, capture) {
|
|
46
49
|
var _a;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { emitEvent, listenOwnProperty, getActiveElement } from '@tylertech/forge-core';
|
|
7
7
|
import { CalendarDropdown } from '../calendar/calendar-dropdown';
|
|
8
|
-
import { DateInputMask } from '../core';
|
|
8
|
+
import { DateInputMask, setAriaControls, tryCreateAriaControlsPlaceholder } from '../core';
|
|
9
9
|
import { BaseDatePickerAdapter } from '../date-picker/base/base-date-picker-adapter';
|
|
10
10
|
import { createToggleElement } from '../date-picker/base/base-date-picker-utils';
|
|
11
11
|
import { DATE_RANGE_PICKER_CONSTANTS } from './date-range-picker-constants';
|
|
@@ -65,6 +65,11 @@ export class DateRangePickerAdapter extends BaseDatePickerAdapter {
|
|
|
65
65
|
this._applyToInputs(input => input.setAttribute('aria-haspopup', 'true'));
|
|
66
66
|
this._applyToInputs(input => input.setAttribute('aria-expanded', 'false'));
|
|
67
67
|
this._applyToInputs(input => input.setAttribute('aria-owns', this._dropdownIdentifier));
|
|
68
|
+
if (!this._toInputElement.hasAttribute('aria-label')) {
|
|
69
|
+
this._toInputElement.setAttribute('aria-label', 'To date');
|
|
70
|
+
}
|
|
71
|
+
tryCreateAriaControlsPlaceholder();
|
|
72
|
+
this._applyToInputs(input => setAriaControls(input));
|
|
68
73
|
}
|
|
69
74
|
addInputListener(type, listener, capture) {
|
|
70
75
|
var _a;
|
|
@@ -59,7 +59,9 @@ export class ListItemAdapter extends BaseAdapter {
|
|
|
59
59
|
addClass(LIST_ITEM_CONSTANTS.classes.STATIC, this._listItemElement);
|
|
60
60
|
}
|
|
61
61
|
else {
|
|
62
|
-
this._listItemElement.
|
|
62
|
+
if (this._listItemElement.hasAttribute('tabindex')) {
|
|
63
|
+
this._listItemElement.tabIndex = 0;
|
|
64
|
+
}
|
|
63
65
|
removeClass(LIST_ITEM_CONSTANTS.classes.STATIC, this._listItemElement);
|
|
64
66
|
}
|
|
65
67
|
}
|
|
@@ -60,6 +60,7 @@ export interface IListDropdownSelectEventData {
|
|
|
60
60
|
}
|
|
61
61
|
export interface IListDropdownConfig<T = any> {
|
|
62
62
|
id: string;
|
|
63
|
+
referenceElement: HTMLElement;
|
|
63
64
|
options: Array<IListDropdownOption | IListDropdownOptionGroup>;
|
|
64
65
|
selectCallback: (value: T) => void;
|
|
65
66
|
activeChangeCallback?: (id: string) => void;
|
|
@@ -11,6 +11,7 @@ import { LIST_CONSTANTS } from '../list/list';
|
|
|
11
11
|
import { PopupAnimationType, POPUP_CONSTANTS } from '../popup';
|
|
12
12
|
import { SKELETON_CONSTANTS } from '../skeleton';
|
|
13
13
|
import { ListDropdownAsyncStyle, ListDropdownType, LIST_DROPDOWN_CONSTANTS } from './list-dropdown-constants';
|
|
14
|
+
import { LIST_ITEM_CONSTANTS } from '../list/list-item';
|
|
14
15
|
export var ListDropdownOptionType;
|
|
15
16
|
(function (ListDropdownOptionType) {
|
|
16
17
|
ListDropdownOptionType[ListDropdownOptionType["Option"] = 0] = "Option";
|
|
@@ -45,6 +46,9 @@ export function createDropdown(config, targetElement) {
|
|
|
45
46
|
break;
|
|
46
47
|
default:
|
|
47
48
|
dropdownElement.setAttribute('role', 'listbox');
|
|
49
|
+
if (config.multiple) {
|
|
50
|
+
dropdownElement.setAttribute('aria-multiselectable', 'true');
|
|
51
|
+
}
|
|
48
52
|
}
|
|
49
53
|
if (config.id) {
|
|
50
54
|
dropdownElement.id = dropdownId;
|
|
@@ -55,13 +59,16 @@ export function createDropdown(config, targetElement) {
|
|
|
55
59
|
return dropdownElement;
|
|
56
60
|
}
|
|
57
61
|
export function createPopupDropdown(config, targetElement) {
|
|
58
|
-
var _a;
|
|
62
|
+
var _a, _b;
|
|
59
63
|
const popupElement = document.createElement('forge-popup');
|
|
60
64
|
popupElement.targetElement = targetElement;
|
|
61
65
|
popupElement.placement = config.popupPlacement || 'bottom-start';
|
|
62
66
|
popupElement.manageFocus = false;
|
|
63
67
|
popupElement.static = !!config.popupStatic;
|
|
64
|
-
if ((_a = config.
|
|
68
|
+
if ((_a = config === null || config === void 0 ? void 0 : config.referenceElement) === null || _a === void 0 ? void 0 : _a.id) {
|
|
69
|
+
popupElement.setAttribute('aria-labelledby', config.referenceElement.id);
|
|
70
|
+
}
|
|
71
|
+
if ((_b = config.popupFallbackPlacements) === null || _b === void 0 ? void 0 : _b.length) {
|
|
65
72
|
popupElement.fallbackPlacements = config.popupFallbackPlacements;
|
|
66
73
|
}
|
|
67
74
|
if (config.constrainViewportWidth) {
|
|
@@ -87,6 +94,7 @@ export function createList(config) {
|
|
|
87
94
|
const listElement = document.createElement(LIST_CONSTANTS.elementName);
|
|
88
95
|
listElement.id = `list-dropdown-list-${config.id}`;
|
|
89
96
|
listElement.propagateClick = false;
|
|
97
|
+
listElement.setAttribute('role', 'presentation');
|
|
90
98
|
return listElement;
|
|
91
99
|
}
|
|
92
100
|
/**
|
|
@@ -94,6 +102,7 @@ export function createList(config) {
|
|
|
94
102
|
* @param config
|
|
95
103
|
*/
|
|
96
104
|
export function createListItems(config, listElement, options, startIndex = 0, renderSelected = true) {
|
|
105
|
+
var _a, _b;
|
|
97
106
|
// Ensure the options are provided in the form a group (if no groups provided, then we have one anonymous group of options)
|
|
98
107
|
const groups = getOptionsByGroup(options || config.options);
|
|
99
108
|
const flatOptions = getFlattenedOptions(groups);
|
|
@@ -158,6 +167,8 @@ export function createListItems(config, listElement, options, startIndex = 0, re
|
|
|
158
167
|
listItemElement.value = option.value;
|
|
159
168
|
listItemElement.id = `list-dropdown-option-${config.id}-${optionIdIndex++}`;
|
|
160
169
|
listItemElement.style.cursor = 'pointer';
|
|
170
|
+
(_b = (_a = listItemElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(LIST_ITEM_CONSTANTS.selectors.LIST_ITEM)) === null || _b === void 0 ? void 0 : _b.removeAttribute('tabindex');
|
|
171
|
+
listItemElement.tabIndex = 0;
|
|
161
172
|
if (config.wrapOptionText) {
|
|
162
173
|
listItemElement.wrap = true;
|
|
163
174
|
}
|
|
@@ -263,7 +274,9 @@ export function createListItems(config, listElement, options, startIndex = 0, re
|
|
|
263
274
|
if (isSelected) {
|
|
264
275
|
listItemElement.selected = true;
|
|
265
276
|
}
|
|
266
|
-
|
|
277
|
+
if (config.type === ListDropdownType.Standard) {
|
|
278
|
+
listItemElement.setAttribute('aria-selected', isSelected ? 'true' : 'false');
|
|
279
|
+
}
|
|
267
280
|
// If we have any child options, we need to render a child menu for this list item
|
|
268
281
|
if (!option.disabled && typeof config.cascadingElementFactory === 'function' && Array.isArray(option.options) && option.options.length) {
|
|
269
282
|
// Create the trailing indicator icon to show that a child menu exists for this option.
|
|
@@ -9,6 +9,7 @@ import { IMenuComponent } from './menu';
|
|
|
9
9
|
import { IMenuSelectEventData, IMenuOptionGroup } from './menu-constants';
|
|
10
10
|
import { IListDropdownConfig } from '../list-dropdown';
|
|
11
11
|
export interface IMenuAdapter extends IBaseAdapter {
|
|
12
|
+
readonly targetElement: HTMLElement | null;
|
|
12
13
|
getDropdownElement(): HTMLElement | null;
|
|
13
14
|
initializeTarget(): void;
|
|
14
15
|
initializeAccessibility(id: string): void;
|
|
@@ -39,6 +40,7 @@ export declare class MenuAdapter extends BaseAdapter<IMenuComponent> implements
|
|
|
39
40
|
private _listDropdown?;
|
|
40
41
|
private _childMenus;
|
|
41
42
|
constructor(component: IMenuComponent);
|
|
43
|
+
get targetElement(): HTMLElement | null;
|
|
42
44
|
getDropdownElement(): HTMLElement | null;
|
|
43
45
|
hasTargetElement(): boolean;
|
|
44
46
|
initializeTarget(): void;
|
package/esm/menu/menu-adapter.js
CHANGED
|
@@ -12,6 +12,9 @@ export class MenuAdapter extends BaseAdapter {
|
|
|
12
12
|
super(component);
|
|
13
13
|
this._childMenus = new Map();
|
|
14
14
|
}
|
|
15
|
+
get targetElement() {
|
|
16
|
+
return this._targetElement;
|
|
17
|
+
}
|
|
15
18
|
getDropdownElement() {
|
|
16
19
|
var _a, _b;
|
|
17
20
|
return (_b = (_a = this._listDropdown) === null || _a === void 0 ? void 0 : _a.dropdownElement) !== null && _b !== void 0 ? _b : null;
|
|
@@ -127,11 +127,6 @@ export class MenuFoundation extends CascadingListDropdownAwareFoundation {
|
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
129
|
switch (evt.code) {
|
|
130
|
-
case 'Tab':
|
|
131
|
-
if (this._open) {
|
|
132
|
-
this._selectActiveOption();
|
|
133
|
-
}
|
|
134
|
-
break;
|
|
135
130
|
case 'Escape':
|
|
136
131
|
if (this._open) {
|
|
137
132
|
evt.preventDefault();
|
|
@@ -228,6 +223,8 @@ export class MenuFoundation extends CascadingListDropdownAwareFoundation {
|
|
|
228
223
|
const selectedValues = this._persistSelection ? this._getSelectedValues() : [];
|
|
229
224
|
const config = {
|
|
230
225
|
id: this._identifier,
|
|
226
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
227
|
+
referenceElement: this._adapter.targetElement,
|
|
231
228
|
type: ListDropdownType.Menu,
|
|
232
229
|
options: this._options,
|
|
233
230
|
selectedValues,
|
|
@@ -29,7 +29,6 @@ export interface IBaseSelectAdapter extends IBaseAdapter {
|
|
|
29
29
|
setOptionsListener(listener: (options: ISelectOption[] | ISelectOptionGroup[]) => void): SelectOptionListenerDestructor;
|
|
30
30
|
setDropdownOptions(options: ISelectOption[] | ISelectOptionGroup[]): void;
|
|
31
31
|
appendDropdownOptions(options: ISelectOption[] | ISelectOptionGroup[]): void;
|
|
32
|
-
setMultiple(multiple: boolean): void;
|
|
33
32
|
isFocusWithinPopup(target: HTMLElement): boolean;
|
|
34
33
|
queueDropdownPositionUpdate(): void;
|
|
35
34
|
popupElement: HTMLElement | undefined;
|
|
@@ -44,7 +43,6 @@ export declare abstract class BaseSelectAdapter extends BaseAdapter<IBaseSelectC
|
|
|
44
43
|
abstract removeClickListener(listener: (evt: Event) => void): void;
|
|
45
44
|
abstract addTargetListener(type: string, listener: (evt: Event) => void): void;
|
|
46
45
|
abstract removeTargetListener(type: string, listener: (evt: Event) => void): void;
|
|
47
|
-
abstract setMultiple(multiple: boolean): void;
|
|
48
46
|
get popupElement(): HTMLElement | undefined;
|
|
49
47
|
getOptions(): ISelectOption[] | ISelectOptionGroup[];
|
|
50
48
|
private _createOptionsFromElements;
|
|
@@ -39,7 +39,6 @@ export class BaseSelectFoundation extends ListDropdownAwareFoundation {
|
|
|
39
39
|
}
|
|
40
40
|
initializeTarget() {
|
|
41
41
|
this._adapter.initializeAccessibility();
|
|
42
|
-
this._adapter.setMultiple(this._multiple);
|
|
43
42
|
this._adapter.addClickListener(this._clickListener);
|
|
44
43
|
this._adapter.addTargetListener('blur', this._blurListener);
|
|
45
44
|
this._adapter.addTargetListener('focus', this._focusListener);
|
|
@@ -116,6 +115,7 @@ export class BaseSelectFoundation extends ListDropdownAwareFoundation {
|
|
|
116
115
|
this._open = true;
|
|
117
116
|
const config = {
|
|
118
117
|
options: this._options,
|
|
118
|
+
referenceElement: this._adapter.hostElement,
|
|
119
119
|
multiple: this._multiple,
|
|
120
120
|
selectedValues: [...this._selectedValues],
|
|
121
121
|
id: this._identifier,
|
|
@@ -537,7 +537,6 @@ export class BaseSelectFoundation extends ListDropdownAwareFoundation {
|
|
|
537
537
|
if (this._open) {
|
|
538
538
|
this._closeDropdown();
|
|
539
539
|
}
|
|
540
|
-
this._adapter.setMultiple(this._multiple);
|
|
541
540
|
}
|
|
542
541
|
}
|
|
543
542
|
/** Gets/sets the open state of the dropdown. */
|
|
@@ -23,7 +23,6 @@ export declare class OptionComponent extends BaseComponent implements IOptionCom
|
|
|
23
23
|
static get observedAttributes(): string[];
|
|
24
24
|
private _foundation;
|
|
25
25
|
constructor();
|
|
26
|
-
initializedCallback(): void;
|
|
27
26
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
28
27
|
/** Gets/sets the value of this option. */
|
|
29
28
|
value: any;
|
|
@@ -35,11 +35,6 @@ let OptionComponent = class OptionComponent extends BaseComponent {
|
|
|
35
35
|
OPTION_CONSTANTS.attributes.TRAILING_ICON_TYPE
|
|
36
36
|
];
|
|
37
37
|
}
|
|
38
|
-
initializedCallback() {
|
|
39
|
-
if (!this.hasAttribute('role')) {
|
|
40
|
-
this.setAttribute('role', 'option');
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
38
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
44
39
|
switch (name) {
|
|
45
40
|
case OPTION_CONSTANTS.attributes.VALUE:
|
|
@@ -75,7 +75,6 @@ export declare class SelectAdapter extends BaseSelectAdapter implements ISelectA
|
|
|
75
75
|
setRequired(isRequired: boolean): void;
|
|
76
76
|
setRoomy(isRoomy: boolean): void;
|
|
77
77
|
setDense(isDense: boolean): void;
|
|
78
|
-
setMultiple(multiple: boolean): void;
|
|
79
78
|
getLabelWidth(fontSize: number, fontFamily: string): number;
|
|
80
79
|
getLabelFontMetrics(): IFontInfo;
|
|
81
80
|
getTargetWidth(): number;
|