@tylertech/forge 2.22.0 → 2.23.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.
Files changed (255) hide show
  1. package/custom-elements.json +4637 -2751
  2. package/dist/esm/accordion/index.js +1 -1
  3. package/dist/esm/app-bar/help-button/index.js +1 -1
  4. package/dist/esm/app-bar/index.js +1 -1
  5. package/dist/esm/app-bar/menu-button/index.js +1 -1
  6. package/dist/esm/app-bar/notification-button/index.js +1 -1
  7. package/dist/esm/app-bar/profile-button/index.js +1 -1
  8. package/dist/esm/app-bar/search/index.js +1 -1
  9. package/dist/esm/autocomplete/index.js +1 -1
  10. package/dist/esm/avatar/index.js +1 -1
  11. package/dist/esm/backdrop/index.js +1 -1
  12. package/dist/esm/badge/index.js +1 -1
  13. package/dist/esm/banner/index.js +1 -1
  14. package/dist/esm/bottom-sheet/index.js +1 -1
  15. package/dist/esm/busy-indicator/index.js +1 -1
  16. package/dist/esm/button-area/index.js +1 -1
  17. package/dist/esm/button-toggle/button-toggle/index.js +1 -1
  18. package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
  19. package/dist/esm/button-toggle/index.js +1 -1
  20. package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
  21. package/dist/esm/calendar/calendar-menu/index.js +1 -1
  22. package/dist/esm/calendar/index.js +1 -1
  23. package/dist/esm/checkbox/index.js +1 -1
  24. package/dist/esm/chip-field/index.js +1 -1
  25. package/dist/esm/chips/chip/index.js +1 -1
  26. package/dist/esm/chips/chip-set/index.js +1 -1
  27. package/dist/esm/chips/index.js +1 -1
  28. package/dist/esm/chunks/{chunk.CAVS4IZD.js → chunk.2MGNUJ3M.js} +2 -2
  29. package/dist/esm/chunks/{chunk.2MGFQWS6.js → chunk.32AY5G4D.js} +2 -2
  30. package/dist/esm/chunks/{chunk.BW7ZMZQ3.js → chunk.47EUT2BJ.js} +2 -2
  31. package/dist/esm/chunks/{chunk.H4YR36ID.js → chunk.5BJ473N2.js} +2 -2
  32. package/dist/esm/chunks/{chunk.TJNHRZ2A.js → chunk.6D5ERZ3Y.js} +2 -2
  33. package/dist/esm/chunks/chunk.6ENND42M.js +7 -0
  34. package/dist/esm/chunks/chunk.6ENND42M.js.map +7 -0
  35. package/dist/esm/chunks/{chunk.2QGMOZJ4.js → chunk.7C7XCT32.js} +2 -2
  36. package/dist/esm/chunks/{chunk.4A3TT6M7.js → chunk.7DS2AYTH.js} +2 -2
  37. package/dist/esm/chunks/{chunk.RFEKZKCP.js → chunk.AERZO3JD.js} +2 -2
  38. package/dist/esm/chunks/{chunk.5X4XFGED.js → chunk.AITARMT3.js} +2 -2
  39. package/dist/esm/chunks/{chunk.BKMQZWKT.js → chunk.AKVM7WU7.js} +2 -2
  40. package/dist/esm/chunks/{chunk.COJVSTL3.js → chunk.AM65KICK.js} +2 -2
  41. package/dist/esm/chunks/{chunk.GLLI6LUN.js → chunk.ATJJ6NAY.js} +2 -2
  42. package/dist/esm/chunks/{chunk.HPZPQEQO.js → chunk.AVEQLUJ2.js} +2 -2
  43. package/dist/esm/chunks/{chunk.SXCFFYSW.js → chunk.BQRXAJTH.js} +2 -2
  44. package/dist/esm/chunks/{chunk.PFLC356W.js → chunk.BRBYFLUJ.js} +2 -2
  45. package/dist/esm/chunks/{chunk.I2I5IB2J.js → chunk.CGWB5K7D.js} +2 -2
  46. package/dist/esm/chunks/{chunk.XUVOM67L.js → chunk.CTLT7PRY.js} +2 -2
  47. package/dist/esm/chunks/{chunk.R5CGGSWN.js → chunk.CYRAGLUX.js} +2 -2
  48. package/dist/esm/chunks/chunk.DD4LOZWG.js +12 -0
  49. package/dist/esm/chunks/{chunk.PXCD7GAU.js → chunk.DE65YGZ2.js} +2 -2
  50. package/dist/esm/chunks/{chunk.2DA6C7YP.js → chunk.DGWMH6BD.js} +2 -2
  51. package/dist/esm/chunks/chunk.DK6EGV4J.js +7 -0
  52. package/dist/esm/chunks/chunk.DK6EGV4J.js.map +7 -0
  53. package/dist/esm/chunks/{chunk.CXBJZFPQ.js → chunk.F6DMKNFU.js} +2 -2
  54. package/dist/esm/chunks/{chunk.WF5THLH4.js → chunk.FHCIRSN5.js} +2 -2
  55. package/dist/esm/chunks/{chunk.WF5THLH4.js.map → chunk.FHCIRSN5.js.map} +1 -1
  56. package/dist/esm/chunks/{chunk.ZYYEGG2Z.js → chunk.HDHGU4L2.js} +2 -2
  57. package/dist/esm/chunks/{chunk.PPBBEIG7.js → chunk.IRTZOSWK.js} +2 -2
  58. package/dist/esm/chunks/{chunk.YIF5CIAY.js → chunk.ISCCPFAB.js} +2 -2
  59. package/dist/esm/chunks/{chunk.CUYPIIVW.js → chunk.IY43YPCQ.js} +2 -2
  60. package/dist/esm/chunks/chunk.KJFXHFAX.js +7 -0
  61. package/dist/esm/chunks/chunk.KJFXHFAX.js.map +7 -0
  62. package/dist/esm/chunks/{chunk.3O5MGVPT.js → chunk.KMMOZ2SF.js} +2 -2
  63. package/dist/esm/chunks/{chunk.K3R6CELU.js → chunk.KTEM7SW7.js} +2 -2
  64. package/dist/esm/chunks/chunk.KTEM7SW7.js.map +7 -0
  65. package/dist/esm/chunks/{chunk.FAWO64B4.js → chunk.KUVFKOVR.js} +2 -2
  66. package/dist/esm/chunks/{chunk.ZNLB7I2C.js → chunk.KZDQFUNT.js} +2 -2
  67. package/dist/esm/chunks/{chunk.GGAQ7OYT.js → chunk.M5AHW6YM.js} +2 -2
  68. package/dist/esm/chunks/{chunk.7D3BQOND.js → chunk.M5QM2CPF.js} +2 -2
  69. package/dist/esm/chunks/{chunk.6FL7PGUA.js → chunk.MA573DEE.js} +2 -2
  70. package/dist/esm/chunks/{chunk.EP55QP2N.js → chunk.MBJGQYCF.js} +2 -2
  71. package/dist/esm/chunks/{chunk.YTUUR7RZ.js → chunk.OSB2SHDM.js} +2 -2
  72. package/dist/esm/chunks/{chunk.24PTHGK4.js → chunk.OZPV5ZJC.js} +2 -2
  73. package/dist/esm/chunks/{chunk.JF2PQLVF.js → chunk.PLTEMN6W.js} +2 -2
  74. package/dist/esm/chunks/{chunk.JRZK5VLL.js → chunk.POBCKMFO.js} +2 -2
  75. package/dist/esm/chunks/{chunk.F6EDGAQL.js → chunk.POYFRYFF.js} +2 -2
  76. package/dist/esm/chunks/{chunk.H2YBRNRH.js → chunk.Q2PGK4IA.js} +2 -2
  77. package/dist/esm/chunks/{chunk.FSBGEJ6H.js → chunk.QBKSRXQK.js} +2 -2
  78. package/dist/esm/chunks/{chunk.L34DJOES.js → chunk.QBST3QSM.js} +2 -2
  79. package/dist/esm/chunks/{chunk.ZCCNMTWC.js → chunk.QFMQPAT2.js} +2 -2
  80. package/dist/esm/chunks/{chunk.6HFT42UY.js → chunk.QRSFRMBF.js} +2 -2
  81. package/dist/esm/chunks/{chunk.RW4IRHKZ.js → chunk.RDETMQHP.js} +2 -2
  82. package/dist/esm/chunks/{chunk.HEDFBER6.js → chunk.S3XNIY4R.js} +2 -2
  83. package/dist/esm/chunks/{chunk.SKOMSAGJ.js → chunk.SBVZNHJ4.js} +2 -2
  84. package/dist/esm/chunks/{chunk.QFAPYIDC.js → chunk.SXQ22MNR.js} +2 -2
  85. package/dist/esm/chunks/{chunk.2AWJ5K5A.js → chunk.TDWRBHQW.js} +2 -2
  86. package/dist/esm/chunks/{chunk.CNBHQSMC.js → chunk.TEHQWMFI.js} +2 -2
  87. package/dist/esm/chunks/{chunk.ON3EQDKJ.js → chunk.TRIZ4QJI.js} +2 -2
  88. package/dist/esm/chunks/{chunk.UDS5LEZM.js → chunk.USKQFX4N.js} +2 -2
  89. package/dist/esm/chunks/{chunk.XYZOE4IZ.js → chunk.UUBAUAER.js} +2 -2
  90. package/dist/esm/chunks/chunk.UWYANU5D.js +7 -0
  91. package/dist/esm/chunks/chunk.UWYANU5D.js.map +7 -0
  92. package/dist/esm/chunks/{chunk.JSHESOOI.js → chunk.V5L5DKNF.js} +2 -2
  93. package/dist/esm/chunks/chunk.VDF5MWGC.js +7 -0
  94. package/dist/esm/chunks/chunk.VDF5MWGC.js.map +7 -0
  95. package/dist/esm/chunks/{chunk.LK6LMLFN.js → chunk.VFWFNY53.js} +2 -2
  96. package/dist/esm/chunks/{chunk.LXFTRP3G.js → chunk.VQYGXL7B.js} +2 -2
  97. package/dist/esm/chunks/{chunk.TCSHDF2Y.js → chunk.VXCPWDOQ.js} +2 -2
  98. package/dist/esm/chunks/{chunk.5FNTCP5H.js → chunk.WCSVKQR2.js} +2 -2
  99. package/dist/esm/chunks/{chunk.PPIMG5KT.js → chunk.WHQZNZHW.js} +2 -2
  100. package/dist/esm/chunks/{chunk.ALUK4H2X.js → chunk.WLBRU5HI.js} +2 -2
  101. package/dist/esm/chunks/{chunk.RBNVMLAN.js → chunk.WYUMHNVZ.js} +2 -2
  102. package/dist/esm/chunks/{chunk.OH3NZ4NO.js → chunk.XA3EJJBV.js} +2 -2
  103. package/dist/esm/chunks/{chunk.YGOCNNDU.js → chunk.XEZ7QJES.js} +2 -2
  104. package/dist/esm/chunks/{chunk.HUWXXN3H.js → chunk.XFZQ7ZUR.js} +2 -2
  105. package/dist/esm/chunks/{chunk.ETYBXRED.js → chunk.XYK4TAXA.js} +2 -2
  106. package/dist/esm/chunks/{chunk.73E6MXUV.js → chunk.Y37FW3B4.js} +2 -2
  107. package/dist/esm/chunks/{chunk.VWP73RWI.js → chunk.ZVHFSAID.js} +2 -2
  108. package/dist/esm/chunks/{chunk.4RCTVRWU.js → chunk.ZVPPLZUU.js} +2 -2
  109. package/dist/esm/color-picker/index.js +1 -1
  110. package/dist/esm/core/base/index.js +1 -1
  111. package/dist/esm/core/index.js +1 -1
  112. package/dist/esm/date-picker/index.js +1 -1
  113. package/dist/esm/date-range-picker/index.js +1 -1
  114. package/dist/esm/dialog/index.js +1 -1
  115. package/dist/esm/drawer/base/index.js +1 -1
  116. package/dist/esm/drawer/drawer/index.js +1 -1
  117. package/dist/esm/drawer/index.js +1 -1
  118. package/dist/esm/drawer/mini-drawer/index.js +1 -1
  119. package/dist/esm/drawer/modal-drawer/index.js +1 -1
  120. package/dist/esm/expansion-panel/index.js +1 -1
  121. package/dist/esm/file-picker/index.js +1 -1
  122. package/dist/esm/icon/index.js +1 -1
  123. package/dist/esm/icon-button/index.js +1 -1
  124. package/dist/esm/index.js +1 -1
  125. package/dist/esm/keyboard-shortcut/index.js +1 -1
  126. package/dist/esm/label-value/index.js +1 -1
  127. package/dist/esm/list/index.js +1 -1
  128. package/dist/esm/list/list/index.js +1 -1
  129. package/dist/esm/list/list-item/index.js +1 -1
  130. package/dist/esm/list-dropdown/index.js +1 -1
  131. package/dist/esm/menu/index.js +1 -1
  132. package/dist/esm/open-icon/index.js +1 -1
  133. package/dist/esm/paginator/index.js +1 -1
  134. package/dist/esm/popup/index.js +1 -1
  135. package/dist/esm/product-icon/index.js +1 -1
  136. package/dist/esm/profile-card/index.js +1 -1
  137. package/dist/esm/quantity-field/index.js +1 -1
  138. package/dist/esm/select/core/index.js +1 -1
  139. package/dist/esm/select/index.js +1 -1
  140. package/dist/esm/select/option/index.js +1 -1
  141. package/dist/esm/select/select/index.js +1 -1
  142. package/dist/esm/select/select-dropdown/index.js +1 -1
  143. package/dist/esm/slider/index.js +1 -1
  144. package/dist/esm/split-view/index.js +1 -1
  145. package/dist/esm/split-view/split-view/index.js +1 -1
  146. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  147. package/dist/esm/stack/index.js +1 -1
  148. package/dist/esm/stepper/index.js +1 -1
  149. package/dist/esm/stepper/step/index.js +1 -1
  150. package/dist/esm/stepper/stepper/index.js +1 -1
  151. package/dist/esm/switch/index.js +1 -1
  152. package/dist/esm/table/index.js +1 -1
  153. package/dist/esm/tabs/index.js +1 -1
  154. package/dist/esm/tabs/tab/index.js +1 -1
  155. package/dist/esm/tabs/tab-bar/index.js +1 -1
  156. package/dist/esm/text-field/index.js +1 -1
  157. package/dist/esm/time-picker/index.js +1 -1
  158. package/dist/esm/toast/index.js +1 -1
  159. package/dist/esm/tooltip/index.js +1 -1
  160. package/dist/esm/view-switcher/index.js +1 -1
  161. package/esm/calendar/calendar-constants.d.ts +4 -4
  162. package/esm/core/base/base-adapter.d.ts +10 -0
  163. package/esm/core/base/base-adapter.js +14 -0
  164. package/esm/date-picker/base/base-date-picker-adapter.d.ts +5 -5
  165. package/esm/date-picker/base/base-date-picker-adapter.js +4 -5
  166. package/esm/date-picker/base/base-date-picker-foundation.d.ts +2 -0
  167. package/esm/date-picker/base/base-date-picker-foundation.js +9 -2
  168. package/esm/field/field-adapter.d.ts +0 -2
  169. package/esm/field/field-adapter.js +0 -8
  170. package/esm/field/field-foundation.js +0 -1
  171. package/esm/list/list-item/list-item-adapter.d.ts +1 -1
  172. package/esm/list/list-item/list-item-adapter.js +5 -4
  173. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  174. package/esm/text-field/text-field-adapter.d.ts +0 -1
  175. package/esm/text-field/text-field-adapter.js +0 -8
  176. package/package.json +1 -1
  177. package/dist/esm/chunks/chunk.5G4VJQ3D.js +0 -7
  178. package/dist/esm/chunks/chunk.5G4VJQ3D.js.map +0 -7
  179. package/dist/esm/chunks/chunk.CAXRISYR.js +0 -7
  180. package/dist/esm/chunks/chunk.CAXRISYR.js.map +0 -7
  181. package/dist/esm/chunks/chunk.D3SGI3YM.js +0 -7
  182. package/dist/esm/chunks/chunk.D3SGI3YM.js.map +0 -7
  183. package/dist/esm/chunks/chunk.K3R6CELU.js.map +0 -7
  184. package/dist/esm/chunks/chunk.PZFMRFNV.js +0 -12
  185. package/dist/esm/chunks/chunk.UVFZTSBV.js +0 -7
  186. package/dist/esm/chunks/chunk.UVFZTSBV.js.map +0 -7
  187. package/dist/esm/chunks/chunk.VWPEVC65.js +0 -7
  188. package/dist/esm/chunks/chunk.VWPEVC65.js.map +0 -7
  189. /package/dist/esm/chunks/{chunk.CAVS4IZD.js.map → chunk.2MGNUJ3M.js.map} +0 -0
  190. /package/dist/esm/chunks/{chunk.2MGFQWS6.js.map → chunk.32AY5G4D.js.map} +0 -0
  191. /package/dist/esm/chunks/{chunk.BW7ZMZQ3.js.map → chunk.47EUT2BJ.js.map} +0 -0
  192. /package/dist/esm/chunks/{chunk.H4YR36ID.js.map → chunk.5BJ473N2.js.map} +0 -0
  193. /package/dist/esm/chunks/{chunk.TJNHRZ2A.js.map → chunk.6D5ERZ3Y.js.map} +0 -0
  194. /package/dist/esm/chunks/{chunk.2QGMOZJ4.js.map → chunk.7C7XCT32.js.map} +0 -0
  195. /package/dist/esm/chunks/{chunk.4A3TT6M7.js.map → chunk.7DS2AYTH.js.map} +0 -0
  196. /package/dist/esm/chunks/{chunk.RFEKZKCP.js.map → chunk.AERZO3JD.js.map} +0 -0
  197. /package/dist/esm/chunks/{chunk.5X4XFGED.js.map → chunk.AITARMT3.js.map} +0 -0
  198. /package/dist/esm/chunks/{chunk.BKMQZWKT.js.map → chunk.AKVM7WU7.js.map} +0 -0
  199. /package/dist/esm/chunks/{chunk.COJVSTL3.js.map → chunk.AM65KICK.js.map} +0 -0
  200. /package/dist/esm/chunks/{chunk.GLLI6LUN.js.map → chunk.ATJJ6NAY.js.map} +0 -0
  201. /package/dist/esm/chunks/{chunk.HPZPQEQO.js.map → chunk.AVEQLUJ2.js.map} +0 -0
  202. /package/dist/esm/chunks/{chunk.SXCFFYSW.js.map → chunk.BQRXAJTH.js.map} +0 -0
  203. /package/dist/esm/chunks/{chunk.PFLC356W.js.map → chunk.BRBYFLUJ.js.map} +0 -0
  204. /package/dist/esm/chunks/{chunk.I2I5IB2J.js.map → chunk.CGWB5K7D.js.map} +0 -0
  205. /package/dist/esm/chunks/{chunk.XUVOM67L.js.map → chunk.CTLT7PRY.js.map} +0 -0
  206. /package/dist/esm/chunks/{chunk.R5CGGSWN.js.map → chunk.CYRAGLUX.js.map} +0 -0
  207. /package/dist/esm/chunks/{chunk.PZFMRFNV.js.map → chunk.DD4LOZWG.js.map} +0 -0
  208. /package/dist/esm/chunks/{chunk.PXCD7GAU.js.map → chunk.DE65YGZ2.js.map} +0 -0
  209. /package/dist/esm/chunks/{chunk.2DA6C7YP.js.map → chunk.DGWMH6BD.js.map} +0 -0
  210. /package/dist/esm/chunks/{chunk.CXBJZFPQ.js.map → chunk.F6DMKNFU.js.map} +0 -0
  211. /package/dist/esm/chunks/{chunk.ZYYEGG2Z.js.map → chunk.HDHGU4L2.js.map} +0 -0
  212. /package/dist/esm/chunks/{chunk.PPBBEIG7.js.map → chunk.IRTZOSWK.js.map} +0 -0
  213. /package/dist/esm/chunks/{chunk.YIF5CIAY.js.map → chunk.ISCCPFAB.js.map} +0 -0
  214. /package/dist/esm/chunks/{chunk.CUYPIIVW.js.map → chunk.IY43YPCQ.js.map} +0 -0
  215. /package/dist/esm/chunks/{chunk.3O5MGVPT.js.map → chunk.KMMOZ2SF.js.map} +0 -0
  216. /package/dist/esm/chunks/{chunk.FAWO64B4.js.map → chunk.KUVFKOVR.js.map} +0 -0
  217. /package/dist/esm/chunks/{chunk.ZNLB7I2C.js.map → chunk.KZDQFUNT.js.map} +0 -0
  218. /package/dist/esm/chunks/{chunk.GGAQ7OYT.js.map → chunk.M5AHW6YM.js.map} +0 -0
  219. /package/dist/esm/chunks/{chunk.7D3BQOND.js.map → chunk.M5QM2CPF.js.map} +0 -0
  220. /package/dist/esm/chunks/{chunk.6FL7PGUA.js.map → chunk.MA573DEE.js.map} +0 -0
  221. /package/dist/esm/chunks/{chunk.EP55QP2N.js.map → chunk.MBJGQYCF.js.map} +0 -0
  222. /package/dist/esm/chunks/{chunk.YTUUR7RZ.js.map → chunk.OSB2SHDM.js.map} +0 -0
  223. /package/dist/esm/chunks/{chunk.24PTHGK4.js.map → chunk.OZPV5ZJC.js.map} +0 -0
  224. /package/dist/esm/chunks/{chunk.JF2PQLVF.js.map → chunk.PLTEMN6W.js.map} +0 -0
  225. /package/dist/esm/chunks/{chunk.JRZK5VLL.js.map → chunk.POBCKMFO.js.map} +0 -0
  226. /package/dist/esm/chunks/{chunk.F6EDGAQL.js.map → chunk.POYFRYFF.js.map} +0 -0
  227. /package/dist/esm/chunks/{chunk.H2YBRNRH.js.map → chunk.Q2PGK4IA.js.map} +0 -0
  228. /package/dist/esm/chunks/{chunk.FSBGEJ6H.js.map → chunk.QBKSRXQK.js.map} +0 -0
  229. /package/dist/esm/chunks/{chunk.L34DJOES.js.map → chunk.QBST3QSM.js.map} +0 -0
  230. /package/dist/esm/chunks/{chunk.ZCCNMTWC.js.map → chunk.QFMQPAT2.js.map} +0 -0
  231. /package/dist/esm/chunks/{chunk.6HFT42UY.js.map → chunk.QRSFRMBF.js.map} +0 -0
  232. /package/dist/esm/chunks/{chunk.RW4IRHKZ.js.map → chunk.RDETMQHP.js.map} +0 -0
  233. /package/dist/esm/chunks/{chunk.HEDFBER6.js.map → chunk.S3XNIY4R.js.map} +0 -0
  234. /package/dist/esm/chunks/{chunk.SKOMSAGJ.js.map → chunk.SBVZNHJ4.js.map} +0 -0
  235. /package/dist/esm/chunks/{chunk.QFAPYIDC.js.map → chunk.SXQ22MNR.js.map} +0 -0
  236. /package/dist/esm/chunks/{chunk.2AWJ5K5A.js.map → chunk.TDWRBHQW.js.map} +0 -0
  237. /package/dist/esm/chunks/{chunk.CNBHQSMC.js.map → chunk.TEHQWMFI.js.map} +0 -0
  238. /package/dist/esm/chunks/{chunk.ON3EQDKJ.js.map → chunk.TRIZ4QJI.js.map} +0 -0
  239. /package/dist/esm/chunks/{chunk.UDS5LEZM.js.map → chunk.USKQFX4N.js.map} +0 -0
  240. /package/dist/esm/chunks/{chunk.XYZOE4IZ.js.map → chunk.UUBAUAER.js.map} +0 -0
  241. /package/dist/esm/chunks/{chunk.JSHESOOI.js.map → chunk.V5L5DKNF.js.map} +0 -0
  242. /package/dist/esm/chunks/{chunk.LK6LMLFN.js.map → chunk.VFWFNY53.js.map} +0 -0
  243. /package/dist/esm/chunks/{chunk.LXFTRP3G.js.map → chunk.VQYGXL7B.js.map} +0 -0
  244. /package/dist/esm/chunks/{chunk.TCSHDF2Y.js.map → chunk.VXCPWDOQ.js.map} +0 -0
  245. /package/dist/esm/chunks/{chunk.5FNTCP5H.js.map → chunk.WCSVKQR2.js.map} +0 -0
  246. /package/dist/esm/chunks/{chunk.PPIMG5KT.js.map → chunk.WHQZNZHW.js.map} +0 -0
  247. /package/dist/esm/chunks/{chunk.ALUK4H2X.js.map → chunk.WLBRU5HI.js.map} +0 -0
  248. /package/dist/esm/chunks/{chunk.RBNVMLAN.js.map → chunk.WYUMHNVZ.js.map} +0 -0
  249. /package/dist/esm/chunks/{chunk.OH3NZ4NO.js.map → chunk.XA3EJJBV.js.map} +0 -0
  250. /package/dist/esm/chunks/{chunk.YGOCNNDU.js.map → chunk.XEZ7QJES.js.map} +0 -0
  251. /package/dist/esm/chunks/{chunk.HUWXXN3H.js.map → chunk.XFZQ7ZUR.js.map} +0 -0
  252. /package/dist/esm/chunks/{chunk.ETYBXRED.js.map → chunk.XYK4TAXA.js.map} +0 -0
  253. /package/dist/esm/chunks/{chunk.73E6MXUV.js.map → chunk.Y37FW3B4.js.map} +0 -0
  254. /package/dist/esm/chunks/{chunk.VWP73RWI.js.map → chunk.ZVHFSAID.js.map} +0 -0
  255. /package/dist/esm/chunks/{chunk.4RCTVRWU.js.map → chunk.ZVPPLZUU.js.map} +0 -0
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{i}from"./chunk.LJLEPTLU.js";import{u as o}from"./chunk.4LA6HEA7.js";var r=class{constructor(e){this._component=e}get hostElement(){return this._component}getHostAttribute(e){return this._component.getAttribute(e)}setHostAttribute(e,t=""){this._component.setAttribute(e,t)}removeHostAttribute(e){this._component.removeAttribute(e)}toggleHostAttribute(e,t,n){o(this._component,t,e,n)}emitHostEvent(e,t=null,n=!0,s){return i(this._component,e,t,n,s)}addHostListener(e,t,n){this._component.addEventListener(e,t,n)}removeHostListener(e,t){this._component.removeEventListener(e,t)}addWindowListener(e,t,n){window.addEventListener(e,t,n)}removeWindowListener(e,t,n){window.removeEventListener(e,t,n)}addDocumentListener(e,t,n){document.addEventListener(e,t,n)}removeDocumentListener(e,t,n){document.removeEventListener(e,t,n)}getScreenWidth(){return window.innerWidth}setBodyAttribute(e,t){document.body.setAttribute(e,t)}removeBodyAttribute(e){document.body.removeAttribute(e)}get isConnected(){return this._component.isConnected}};export{r as a};
7
- //# sourceMappingURL=chunk.CAXRISYR.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/core/base/base-adapter.ts"],
4
- "sourcesContent": ["import { emitEvent, toggleAttribute } from '@tylertech/forge-core';\nimport { IBaseComponent } from './base-component';\n\nexport interface IBaseAdapter<T extends HTMLElement = HTMLElement> {\n readonly hostElement: T;\n readonly isConnected: boolean;\n removeHostAttribute(name: string): void;\n getHostAttribute(name: string): string | null;\n setHostAttribute(name: string, value?: string): void;\n toggleHostAttribute(name: string, hasAttribute: boolean, value?: string): void;\n emitHostEvent(type: string, data?: any, bubble?: boolean, cancelable?: boolean): boolean;\n addHostListener(event: string, callback: (event: Event) => void, options?: boolean | AddEventListenerOptions): void;\n removeHostListener(event: string, callback: (event: Event) => void): void;\n addWindowListener(event: string, callback: (event: Event) => void, options?: boolean | AddEventListenerOptions): void;\n removeWindowListener(event: string, callback: (event: Event) => void, options?: boolean | EventListenerOptions): void;\n addDocumentListener(event: string, callback: (event: Event) => void, options?: boolean | AddEventListenerOptions): void;\n removeDocumentListener(event: string, callback: (event: Event) => void, options?: boolean | EventListenerOptions): void;\n getScreenWidth(): number;\n setBodyAttribute(name: string, value: string): void;\n removeBodyAttribute(name: string): void;\n}\n\nexport class BaseAdapter<T extends IBaseComponent> implements IBaseAdapter<T> {\n constructor(protected _component: T) {}\n\n public get hostElement(): T {\n return this._component;\n }\n\n public getHostAttribute(name: string): string | null {\n return this._component.getAttribute(name);\n }\n\n public setHostAttribute(name: string, value = ''): void {\n this._component.setAttribute(name, value);\n }\n\n public removeHostAttribute(name: string): void {\n this._component.removeAttribute(name);\n }\n\n public toggleHostAttribute(name: string, hasAttribute: boolean, value?: string): void {\n toggleAttribute(this._component, hasAttribute, name, value);\n }\n\n public emitHostEvent(type: string, data: any = null, bubble = true, cancelable?: boolean): boolean {\n return emitEvent(this._component, type, data, bubble, cancelable);\n }\n\n public addHostListener(event: string, callback: (event: Event) => void, options?: boolean | AddEventListenerOptions): void {\n this._component.addEventListener(event, callback, options);\n }\n\n public removeHostListener(event: string, callback: (event: Event) => void): void {\n this._component.removeEventListener(event, callback);\n }\n\n public addWindowListener(event: string, callback: (event: Event) => void, options?: boolean | AddEventListenerOptions): void {\n window.addEventListener(event, callback, options);\n }\n\n public removeWindowListener(event: string, callback: (event: Event) => void, options?: boolean | EventListenerOptions): void {\n window.removeEventListener(event, callback, options);\n }\n\n public addDocumentListener(event: string, callback: (event: Event) => void, options?: boolean | AddEventListenerOptions): void {\n document.addEventListener(event, callback, options);\n }\n\n public removeDocumentListener(event: string, callback: (event: Event) => void, options?: boolean | EventListenerOptions): void {\n document.removeEventListener(event, callback, options);\n }\n\n public getScreenWidth(): number {\n return window.innerWidth;\n }\n\n public setBodyAttribute(name: string, value: string): void {\n document.body.setAttribute(name, value);\n }\n\n public removeBodyAttribute(name: string): void {\n document.body.removeAttribute(name);\n }\n\n public get isConnected(): boolean {\n return this._component.isConnected;\n }\n}\n"],
5
- "mappings": "2EAsBO,IAAMA,EAAN,KAAuE,CAC5E,YAAsBC,EAAe,CAAf,gBAAAA,CAAgB,CAEtC,IAAW,aAAiB,CAC1B,OAAO,KAAK,UACd,CAEO,iBAAiBC,EAA6B,CACnD,OAAO,KAAK,WAAW,aAAaA,CAAI,CAC1C,CAEO,iBAAiBA,EAAcC,EAAQ,GAAU,CACtD,KAAK,WAAW,aAAaD,EAAMC,CAAK,CAC1C,CAEO,oBAAoBD,EAAoB,CAC7C,KAAK,WAAW,gBAAgBA,CAAI,CACtC,CAEO,oBAAoBA,EAAcE,EAAuBD,EAAsB,CACpFE,EAAgB,KAAK,WAAYD,EAAcF,EAAMC,CAAK,CAC5D,CAEO,cAAcG,EAAcC,EAAY,KAAMC,EAAS,GAAMC,EAA+B,CACjG,OAAOC,EAAU,KAAK,WAAYJ,EAAMC,EAAMC,EAAQC,CAAU,CAClE,CAEO,gBAAgBE,EAAeC,EAAkCC,EAAmD,CACzH,KAAK,WAAW,iBAAiBF,EAAOC,EAAUC,CAAO,CAC3D,CAEO,mBAAmBF,EAAeC,EAAwC,CAC/E,KAAK,WAAW,oBAAoBD,EAAOC,CAAQ,CACrD,CAEO,kBAAkBD,EAAeC,EAAkCC,EAAmD,CAC3H,OAAO,iBAAiBF,EAAOC,EAAUC,CAAO,CAClD,CAEO,qBAAqBF,EAAeC,EAAkCC,EAAgD,CAC3H,OAAO,oBAAoBF,EAAOC,EAAUC,CAAO,CACrD,CAEO,oBAAoBF,EAAeC,EAAkCC,EAAmD,CAC7H,SAAS,iBAAiBF,EAAOC,EAAUC,CAAO,CACpD,CAEO,uBAAuBF,EAAeC,EAAkCC,EAAgD,CAC7H,SAAS,oBAAoBF,EAAOC,EAAUC,CAAO,CACvD,CAEO,gBAAyB,CAC9B,OAAO,OAAO,UAChB,CAEO,iBAAiBX,EAAcC,EAAqB,CACzD,SAAS,KAAK,aAAaD,EAAMC,CAAK,CACxC,CAEO,oBAAoBD,EAAoB,CAC7C,SAAS,KAAK,gBAAgBA,CAAI,CACpC,CAEA,IAAW,aAAuB,CAChC,OAAO,KAAK,WAAW,WACzB,CACF",
6
- "names": ["BaseAdapter", "_component", "name", "value", "hasAttribute", "toggleAttribute", "type", "data", "bubble", "cancelable", "emitEvent", "event", "callback", "options"]
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{b as S}from"./chunk.EC5JFSHR.js";import{b as C}from"./chunk.KZJYLYWN.js";import{a as A}from"./chunk.CAXRISYR.js";import{a as l}from"./chunk.KTGSZEAG.js";import{a as T,b as h}from"./chunk.DL7NX432.js";import{a as I,c as g,e as L,g as v,l as k}from"./chunk.LJLEPTLU.js";import{b as x,f as c,g as p,q as w,t as f}from"./chunk.4LA6HEA7.js";import{k as n,n as E}from"./chunk.J2M2MXP2.js";import{f as a}from"./chunk.MCIQXNKY.js";var N=`${h}list`,z={STATIC:"static",DENSE:"dense",PROPAGATE_CLICK:"propagate-click",INDENTED:"indented",SELECTED_VALUE:"selected-value"},O={SCOPE_TEST:`${N}-item-scope-test`},d={elementName:N,attributes:z,events:O};var R=`${h}list-item`,H={STATIC:"static",TWO_LINE:"two-line",THREE_LINE:"three-line",ACTIVE:"active",SELECTED:"selected",VALUE:"value",HREF:"href",TARGET:"target",RIPPLE:"ripple",DISABLED:"disabled",DENSE:"dense",PROPAGATE_CLICK:"propagate-click",INDENTED:"indented",WRAP:"wrap",DRAWER_CONTEXT:"forge-drawer-context",IGNORE:"forge-ignore"},_={LIST_ITEM:"forge-list-item",STATIC:"forge-list-item--static",TEXT:"forge-list-item__text",TWO_LINE:"forge-list-item--two-line",THREE_LINE:"forge-list-item--three-line",ACTIVE:"forge-list-item--active",ACTIVATED:"forge-list-item--activated",SELECTED:"forge-list-item--selected",DISABLED:"forge-list-item--disabled",DENSE:"forge-list-item--dense",INDENTED:"forge-list-item--indented",WRAP:"forge-list-item--wrap"},P={LIST_ITEM:`.${_.LIST_ITEM}`,DEFAULT_SLOT:`.${_.TEXT} > slot`,CHECKBOX_RADIO_SELECTOR:"input[type=checkbox]:not(:disabled):not([forge-ignore]),input[type=radio]:not(:disabled):not([forge-ignore])"},M={SELECT:`${R}-select`},F={LINK:"link",LIST_ITEM:"listitem"},t={elementName:R,attributes:H,classes:_,selectors:P,events:M,roles:F};var b=class extends A{constructor(i){super(i);this._initialize()}_initialize(){this._listItemElement=v(this._component,t.selectors.LIST_ITEM),this._defaultSlot=v(this._component,t.selectors.DEFAULT_SLOT)}initializeAccessibility(){this._component.hasAttribute("role")||this._component.setAttribute("role","listitem")}getListItem(){return this._component}addListener(i,r,o){this._listItemElement.addEventListener(i,r,o)}removeListener(i,r){this._listItemElement.removeEventListener(i,r)}createRipple(){return new S(this._listItemElement)}setStatic(i){i?(this._listItemElement.tabIndex=-1,c(t.classes.STATIC,this._listItemElement)):(this._listItemElement.tabIndex=0,p(t.classes.STATIC,this._listItemElement))}setTwoLine(i){i?c(t.classes.TWO_LINE,this._listItemElement):p(t.classes.TWO_LINE,this._listItemElement)}setThreeLine(i){i?c(t.classes.THREE_LINE,this._listItemElement):p(t.classes.THREE_LINE,this._listItemElement)}getLineCount(){return this._defaultSlot.assignedNodes().filter(i=>i.nodeType===Node.ELEMENT_NODE).length}setActive(i){i?c(t.classes.ACTIVE,this._listItemElement):p(t.classes.ACTIVE,this._listItemElement)}setSelected(i){i?c(t.classes.SELECTED,this._listItemElement):p(t.classes.SELECTED,this._listItemElement)}tryToggleCheckboxRadio(i){let r=this._component.querySelector(t.selectors.CHECKBOX_RADIO_SELECTOR);if(r){let o=typeof i=="boolean",m=r.checked;r.checked=o?i:!r.checked,(!o||m!==i)&&r.dispatchEvent(new Event("change",{bubbles:!0}))}}setFocus(){this._listItemElement.focus()}hasFocus(){var i;return document.activeElement===this._component||!!((i=this._component.shadowRoot)!=null&&i.activeElement)}setRole(i){this._listItemElement.setAttribute("role",i)}setDisabled(i){f(this._listItemElement,i,t.classes.DISABLED)}setDense(i){f(this._listItemElement,i,t.classes.DENSE)}setIndented(i){f(this._listItemElement,i,t.classes.INDENTED)}setWrap(i){f(this._listItemElement,i,t.classes.WRAP)}trySelect(i){let r=g(this._component,d.elementName);if(!r||r.selectedValue===void 0)return null;let m=(r.selectedValue instanceof Array?r.selectedValue:[r.selectedValue]).some(D=>E(D,i));return this.setSelected(m),this.tryToggleCheckboxRadio(m),m}createUserInteractionListener(){return C(this._listItemElement)}};var u=class{constructor(e){this._adapter=e;this._ripple=!0;this._static=!1;this._twoLine=!1;this._threeLine=!1;this._active=!1;this._selected=!1;this._disabled=!1;this._dense=!1;this._propagateClick=!0;this._indented=!1;this._wrap=!1;this._clickListener=i=>this._onClick(i),this._mouseDownListener=i=>this._onMouseDown(i),this._keydownListener=i=>this._onKeydown(i)}initialize(){this._adapter.initializeAccessibility(),this._setRipple(),this._adapter.setStatic(this._static),this._adapter.setDense(this._dense),this._adapter.setDisabled(this._disabled),this._adapter.setIndented(this._indented),this._adapter.setWrap(this._wrap),this._static||(this._adapter.addListener("click",this._clickListener),this._adapter.addListener("mousedown",this._mouseDownListener,{passive:!1,capture:!0}),this._adapter.addListener("keydown",this._keydownListener)),this._threeLine?this._adapter.setThreeLine(this._threeLine):this.twoLine&&this._adapter.setTwoLine(this._twoLine);let e=this._adapter.trySelect(this._value);e!=null&&(this._selected=e)}disconnect(){this._rippleInstance&&(this._rippleInstance.destroy(),this._rippleInstance=void 0),typeof this._destroyUserInteractionListener=="function"&&(this._destroyUserInteractionListener(),this._destroyUserInteractionListener=void 0)}_onMouseDown(e){(this._adapter.hasFocus()||!this._propagateClick)&&e.preventDefault()}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.key===" "&&e.preventDefault(),this._select(e.target))}_onClick(e){this._select(e.target)}_select(e){let i=e==null?void 0:e.hasAttribute(t.attributes.IGNORE);if(this._static||this._disabled||i)return;if(!this._adapter.hasFocus()&&this._propagateClick&&this.setFocus(),this._href){this._target?window.open(this._href,this._target):document.location.href=this._href;return}w(e,t.selectors.CHECKBOX_RADIO_SELECTOR)||this._adapter.tryToggleCheckboxRadio();let r={value:this._value,listItem:this._adapter.getListItem()};this._adapter.emitHostEvent(t.events.SELECT,r)}get ripple(){return this._ripple}set ripple(e){if(this._ripple!==e){if(e&&this._static)return;this._ripple=e,this._setRipple(),this._adapter.setHostAttribute(t.attributes.RIPPLE,String(this._ripple))}}get static(){return this._static}set static(e){this._static!==e&&(this._static=e,this._adapter.setStatic(this._static),this._setRipple(),this._static?this._adapter.removeListener("click",this._clickListener):this._adapter.addListener("click",this._clickListener),this._static?this._adapter.setHostAttribute(t.attributes.STATIC):this._adapter.removeHostAttribute(t.attributes.STATIC))}get twoLine(){return this._twoLine}set twoLine(e){this._twoLine!==e&&(this._twoLine=e,this._adapter.setTwoLine(this._twoLine),this._twoLine?this._adapter.setHostAttribute(t.attributes.TWO_LINE):this._adapter.removeHostAttribute(t.attributes.TWO_LINE))}get threeLine(){return this._threeLine}set threeLine(e){this._threeLine!==e&&(this._threeLine=e,this._threeLine?this._adapter.setHostAttribute(t.attributes.THREE_LINE):this._adapter.removeHostAttribute(t.attributes.THREE_LINE),this._threeLine&&(this._twoLine=!1),this._adapter.setTwoLine(this._twoLine),this._adapter.setThreeLine(this._threeLine))}get active(){return this._active}set active(e){this._active!==e&&(this._active=e,this._adapter.setActive(this._active),this._active?this._adapter.setHostAttribute(t.attributes.ACTIVE):this._adapter.removeHostAttribute(t.attributes.ACTIVE))}get selected(){return this._selected}set selected(e){this._selected!==e&&(this._selected=e,this._adapter.setSelected(this._selected),this._adapter.tryToggleCheckboxRadio(this._selected),this._adapter.toggleHostAttribute(t.attributes.SELECTED,this._selected))}get value(){return this._value}set value(e){this._value=e;let i=this._adapter.trySelect(this._value);i!=null&&(this._selected=i)}get href(){return this._href}set href(e){this._href!==e&&(this._href=e,this._href?this._adapter.setRole(t.roles.LINK):this._adapter.setRole(t.roles.LIST_ITEM),this._adapter.setHostAttribute(t.attributes.HREF,this._href))}get target(){return this._target}set target(e){this._target=e}get disabled(){return this._disabled}set disabled(e){this._disabled!==e&&(this._disabled=e,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(t.attributes.DISABLED,this._disabled))}get dense(){return this._dense}set dense(e){this._dense!==e&&(this._dense=e,this._adapter.setDense(this._dense),this._adapter.toggleHostAttribute(t.attributes.DENSE,this._dense))}get propagateClick(){return this._propagateClick}set propagateClick(e){this._propagateClick!==e&&(this._propagateClick=e,this._adapter.setHostAttribute(t.attributes.PROPAGATE_CLICK,""+!!this._propagateClick))}get indented(){return this._indented}set indented(e){this._indented!==e&&(this._indented=e,this._adapter.setIndented(this._indented),this._adapter.toggleHostAttribute(t.attributes.INDENTED,this._indented))}get wrap(){return this._wrap}set wrap(e){this._wrap!==e&&(this._wrap=e,this._adapter.setWrap(this._wrap),this._adapter.toggleHostAttribute(t.attributes.WRAP,this._wrap))}async _setRipple(){if(this._ripple&&!this._static&&!this._rippleInstance){let{userInteraction:e,destroy:i}=await this._adapter.createUserInteractionListener();this._destroyUserInteractionListener=i;let{type:r}=await e;if(this._destroyUserInteractionListener=void 0,!this._adapter.isConnected)return;this._ripple&&!this._static&&!this._rippleInstance&&(this._rippleInstance=this._adapter.createRipple(),r==="focusin"&&this._rippleInstance.handleFocus())}else(!this._ripple||this._static)&&this._rippleInstance&&(this._rippleInstance.destroy(),this._rippleInstance=void 0)}setFocus(){this._adapter.setFocus()}};var W='<template><div class="forge-list-item" tabindex="0" part="root"><slot name="leading"></slot><slot name="avatar"></slot><div class="forge-list-item__text" part="text-container"><slot></slot><slot name="title"></slot><slot name="subtitle"></slot><slot name="tertiary-title"></slot><slot></slot></div><slot name="trailing"></slot></div></template>',U='@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface::after,.mdc-ripple-surface::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{--mdc-ripple-color:var(--mdc-theme-on-surface)}.forge-list-item{min-height:32px;min-height:var(--forge-list-item-min-height,32px);max-height:none;max-height:var(--forge-list-item-max-height,none);height:32px;height:var(--forge-list-item-height,32px);padding:8px 16px;padding:var(--forge-list-item-padding,8px 16px);margin-left:0;margin-left:var(--forge-list-item-indent,0);-webkit-box-align:center;align-items:center;-webkit-box-align:var(--forge-list-item-align-items,center);align-items:var(--forge-list-item-align-items,center);position:relative;display:-webkit-box;display:flex;-webkit-box-pack:start;justify-content:flex-start;overflow:hidden}.forge-list-item:focus{outline:0}.forge-list-item ::slotted([slot=leading]),.forge-list-item ::slotted([slot=trailing]){font-size:1.5rem}.forge-list-item ::slotted([slot=leading]){color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54));margin-left:0;margin-left:var(--forge-list-item-leading-margin-left,0);margin-right:32px;margin-right:var(--forge-list-item-leading-margin-right,32px);display:-webkit-inline-box;display:inline-flex;flex-shrink:0;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;fill:currentColor}.forge-list-item ::slotted([slot=trailing]){color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.forge-list-item ::slotted([slot=avatar]){color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54));margin-left:0;margin-left:var(--forge-list-item-leading-margin-left,0);margin-right:32px;margin-right:var(--forge-list-item-leading-margin-right,32px);display:-webkit-inline-box;display:inline-flex;flex-shrink:0;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;fill:currentColor;margin-left:0;margin-right:16px;min-width:40px;min-height:40px;border-radius:50%;display:inline-flex;background-color:rgba(0,0,0,.54);background-color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54));color:#fff;color:var(--mdc-theme-on-primary,#fff)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before{background-color:#000;background-color:var(--mdc-ripple-color,var(--mdc-theme-on-surface,#000))}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-surface--hover::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded--background-focused::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated::before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity, .12)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated::before{background-color:#3f51b5;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#3f51b5))}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated.mdc-ripple-surface--hover::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity, .16)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated.mdc-ripple-upgraded--background-focused::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-focus-opacity, .24)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-press-opacity, .24)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected::before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity, .08)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected::before{background-color:#3f51b5;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#3f51b5))}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected.mdc-ripple-surface--hover::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity, .12)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected.mdc-ripple-upgraded--background-focused::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-focus-opacity, .2)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-press-opacity, .2)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected:focus:hover.mdc-ripple-upgraded--background-focused:not(.mdc-ripple-upgraded--foreground-activation)::before{opacity:.28}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:focus:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::before{opacity:.12}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation):hover::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:focus:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation):hover::before{opacity:.16}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:focus:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:focus:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::before{background-color:#000;background-color:var(--mdc-theme-on-surface,#000)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:focus.forge-list-item--selected.forge-list-item--activated:not(.mdc-ripple-upgraded--foreground-activation)::before{opacity:.24}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:focus.forge-list-item--selected.forge-list-item--activated:not(.mdc-ripple-upgraded--foreground-activation):hover::before{opacity:.28}.forge-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%}.forge-list-item ::slotted([slot=title]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}.forge-list-item ::slotted([slot=subtitle]),.forge-list-item ::slotted([slot=tertiary-title]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54));display:block}.forge-list-item--two-line{min-height:56px;min-height:var(--forge-list-item-min-height,56px);height:56px;height:var(--forge-list-item-height,56px)}.forge-list-item--three-line{min-height:72px;min-height:var(--forge-list-item-min-height,72px);height:72px;height:var(--forge-list-item-height,72px)}.forge-list-item--dense{min-height:16px;min-height:var(--forge-list-item-min-height,16px);height:16px;height:var(--forge-list-item-height,16px)}.forge-list-item--dense ::slotted([slot=leading]),.forge-list-item--dense ::slotted([slot=trailing]){font-size:1.25rem}.forge-list-item--dense ::slotted([slot=leading]){margin-right:12px;margin-right:var(--forge-list-item-leading-margin-right,12px)}.forge-list-item--dense ::slotted(.forge-list-item__title){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit)}.forge-list-item--dense.forge-list-item--two-line{min-height:40px;min-height:var(--forge-list-item-min-height,40px)}.forge-list-item--dense.forge-list-item--three-line{min-height:56px;min-height:var(--forge-list-item-min-height,56px)}.forge-list-item--wrap{height:auto;height:var(--forge-list-item-height,auto)}.forge-list-item--wrap .forge-list-item__text,.forge-list-item--wrap ::slotted([slot=subtitle]),.forge-list-item--wrap ::slotted([slot=tertiary-title]),.forge-list-item--wrap ::slotted([slot=title]){text-overflow:clip;white-space:normal}.forge-list-item--indented{margin-left:56px;margin-left:var(--forge-list-item-indent,56px)}.forge-list-item--active.forge-list-item--activated:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before,.forge-list-item--active.forge-list-item--selected:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before{opacity:.2}.forge-list-item--active.forge-list-item--activated:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:hover::before,.forge-list-item--active.forge-list-item--selected:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:hover::before{opacity:.24}.forge-list-item--activated,.forge-list-item--selected{color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5)}.forge-list-item--activated .forge-list-item__text .forge-list-item__subtitle,.forge-list-item--activated .forge-list-item__text ::slotted(.forge-list-item__subtitle),.forge-list-item--selected .forge-list-item__text .forge-list-item__subtitle,.forge-list-item--selected .forge-list-item__text ::slotted(.forge-list-item__subtitle){color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5);opacity:.87}.forge-list-item--activated .forge-list-item__text .forge-list-item__tertiary-title,.forge-list-item--activated .forge-list-item__text ::slotted(.forge-list-item__tertiary-title),.forge-list-item--selected .forge-list-item__text .forge-list-item__tertiary-title,.forge-list-item--selected .forge-list-item__text ::slotted(.forge-list-item__tertiary-title){color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5);opacity:.87}.forge-list-item--activated ::slotted([slot=leading]),.forge-list-item--activated ::slotted([slot=trailing]),.forge-list-item--selected ::slotted([slot=leading]),.forge-list-item--selected ::slotted([slot=trailing]){color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5)}.forge-list-item--activated ::slotted([slot=avatar].forge-list-item__avatar-icon),.forge-list-item--selected ::slotted([slot=avatar].forge-list-item__avatar-icon){background-color:rgba(0,0,0,.12);background-color:var(--mdc-theme-text-disabled-on-background,rgba(0,0,0,.12));color:#000;color:var(--mdc-theme-on-surface,#000)}.forge-list-item--disabled{cursor:not-allowed;cursor:var(--forge-list-item-cursor,not-allowed);color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.forge-list-item--disabled ::slotted([slot=leading]),.forge-list-item--disabled ::slotted([slot=trailing]){cursor:not-allowed;cursor:var(--forge-list-item-cursor,not-allowed);color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.forge-list-item[role=link]{cursor:pointer}:host{display:block;contain:content}:host([hidden]){display:none}:host([forge-drawer-context=true]) .forge-list-item{margin:8px;margin:var(--forge-list-item-margin,8px);padding:0 8px;padding:var(--forge-list-item-padding,0 8px);border-radius:4px;border-radius:var(--forge-list-item-border-radius,4px);cursor:pointer;cursor:var(--forge-list-item-cursor,pointer);height:40px;height:var(--forge-list-item-height,40px);font-size:.875rem;font-weight:500}:host([forge-drawer-context=true]) .forge-list-item--static{cursor:initial}:host([forge-drawer-context=true]) .forge-list-item--indented{margin-left:64px;margin-left:var(--forge-list-item-indent,64px)}:host([forge-drawer-context=true]) .forge-list-item--two-line{min-height:56px-8px;min-height:var(--forge-list-item-min-height,56px-8px);height:56px-8px;height:var(--forge-list-item-height,56px-8px)}:host([forge-drawer-context=true]) .forge-list-item--three-line{min-height:72px-8px;min-height:var(--forge-list-item-min-height,72px-8px);height:72px-8px;height:var(--forge-list-item-height,72px-8px)}:host([forge-drawer-context=true]) .forge-list-item:first-child{margin-top:4px;margin-bottom:4px}:host([forge-drawer-context=true]) .forge-list-item--dense{min-height:16px;min-height:var(--forge-list-item-min-height,16px);height:16px;height:var(--forge-list-item-height,16px)}:host([forge-drawer-context=true]) .forge-list-item--dense ::slotted([slot=leading]),:host([forge-drawer-context=true]) .forge-list-item--dense ::slotted([slot=trailing]){font-size:1.25rem}:host([forge-drawer-context=true]) .forge-list-item--dense .forge-list-item__text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit)}:host([forge-drawer-context=true]) .forge-list-item--wrap{height:auto;height:var(--forge-list-item-height,auto);padding:4px 8px;padding:var(--forge-list-item-padding,4px 8px);min-height:40px;min-height:var(--forge-list-item-min-height,40px)}:host([forge-drawer-context=true]) .forge-list-item--disabled{cursor:not-allowed;cursor:var(--forge-list-item-cursor,not-allowed)}:host([dense]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit)}',s=class extends k{constructor(){super();L(this,W,U),this._foundation=new u(new b(this))}static get observedAttributes(){return[t.attributes.STATIC,t.attributes.TWO_LINE,t.attributes.THREE_LINE,t.attributes.ACTIVE,t.attributes.SELECTED,t.attributes.VALUE,t.attributes.HREF,t.attributes.TARGET,t.attributes.RIPPLE,t.attributes.DISABLED,t.attributes.DENSE,t.attributes.PROPAGATE_CLICK,t.attributes.INDENTED,t.attributes.WRAP]}connectedCallback(){!this.hasAttribute(t.attributes.DRAWER_CONTEXT)&&x(this).some(r=>["forge-drawer","forge-modal-drawer","forge-mini-drawer"].includes(r.tagName.toLowerCase()))&&this.setAttribute(t.attributes.DRAWER_CONTEXT,"true");let i=g(this,d.elementName);i&&this._inheritParentListProps(i),this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(i,r,o){switch(i){case t.attributes.STATIC:this.static=n(o);break;case t.attributes.TWO_LINE:this.twoLine=n(o);break;case t.attributes.THREE_LINE:this.threeLine=n(o);break;case t.attributes.ACTIVE:this.active=n(o);break;case t.attributes.SELECTED:this.selected=n(o);break;case t.attributes.VALUE:this.value=o;break;case t.attributes.HREF:this.href=o;break;case t.attributes.TARGET:this.target=o;break;case t.attributes.RIPPLE:this.ripple=n(o);break;case t.attributes.DISABLED:this.disabled=n(o);break;case t.attributes.DENSE:this.dense=n(o);break;case t.attributes.PROPAGATE_CLICK:this.propagateClick=n(o);break;case t.attributes.INDENTED:this.indented=n(o);break;case t.attributes.WRAP:this.wrap=n(o);break}}_inheritParentListProps(i){i.hasAttribute(d.attributes.STATIC)&&(this.static=!0),i.hasAttribute(d.attributes.DENSE)&&(this.dense=!0),i.getAttribute(d.attributes.PROPAGATE_CLICK)==="false"&&(this.propagateClick=!1),i.hasAttribute(d.attributes.INDENTED)&&(this.indented=!0)}focus(){this._foundation.setFocus()}};a([l()],s.prototype,"static",2),a([l()],s.prototype,"twoLine",2),a([l()],s.prototype,"threeLine",2),a([l()],s.prototype,"active",2),a([l()],s.prototype,"selected",2),a([l()],s.prototype,"value",2),a([l()],s.prototype,"href",2),a([l()],s.prototype,"target",2),a([l()],s.prototype,"ripple",2),a([l()],s.prototype,"disabled",2),a([l()],s.prototype,"dense",2),a([l()],s.prototype,"propagateClick",2),a([l()],s.prototype,"indented",2),a([l()],s.prototype,"wrap",2),s=a([T({name:t.elementName})],s);function bt(){I(s)}export{d as a,t as b,b as c,u as d,s as e,bt as f};
7
- //# sourceMappingURL=chunk.D3SGI3YM.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/list/list/list-constants.ts", "../../src/list/list-item/list-item-constants.ts", "../../src/list/list-item/list-item-adapter.ts", "../../src/list/list-item/list-item-foundation.ts", "../../src/list/list-item/list-item.ts", "../../src/list/list-item/index.ts"],
4
- "sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../../constants';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}list`;\n\nconst attributes = {\n STATIC: 'static',\n DENSE: 'dense',\n PROPAGATE_CLICK: 'propagate-click',\n INDENTED: 'indented',\n SELECTED_VALUE: 'selected-value'\n};\n\nconst events = {\n SCOPE_TEST: `${elementName}-item-scope-test`\n} as const;\n\nexport const LIST_CONSTANTS = {\n elementName,\n attributes,\n events\n};\n", "import { COMPONENT_NAME_PREFIX } from '../../constants';\nimport { IListItemComponent } from './list-item';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}list-item`;\n\nconst attributes = {\n STATIC: 'static',\n TWO_LINE: 'two-line',\n THREE_LINE: 'three-line',\n ACTIVE: 'active',\n SELECTED: 'selected',\n VALUE: 'value',\n HREF: 'href',\n TARGET: 'target',\n RIPPLE: 'ripple',\n DISABLED: 'disabled',\n DENSE: 'dense',\n PROPAGATE_CLICK: 'propagate-click',\n INDENTED: 'indented',\n WRAP: 'wrap',\n DRAWER_CONTEXT: 'forge-drawer-context',\n IGNORE: 'forge-ignore'\n};\n\nconst classes = {\n LIST_ITEM: 'forge-list-item',\n STATIC: 'forge-list-item--static',\n TEXT: 'forge-list-item__text',\n TWO_LINE: 'forge-list-item--two-line',\n THREE_LINE: 'forge-list-item--three-line',\n ACTIVE: 'forge-list-item--active',\n ACTIVATED: 'forge-list-item--activated',\n SELECTED: 'forge-list-item--selected',\n DISABLED: 'forge-list-item--disabled',\n DENSE: 'forge-list-item--dense',\n INDENTED: 'forge-list-item--indented',\n WRAP: 'forge-list-item--wrap'\n};\n\nconst selectors = {\n LIST_ITEM: `.${classes.LIST_ITEM}`,\n DEFAULT_SLOT: `.${classes.TEXT} > slot`,\n CHECKBOX_RADIO_SELECTOR: 'input[type=checkbox]:not(:disabled):not([forge-ignore]),input[type=radio]:not(:disabled):not([forge-ignore])'\n};\n\nconst events = {\n SELECT: `${elementName}-select`\n};\n\nconst roles = {\n LINK: 'link',\n LIST_ITEM: 'listitem'\n};\n\nexport const LIST_ITEM_CONSTANTS = {\n elementName,\n attributes,\n classes,\n selectors,\n events,\n roles\n};\n\nexport interface IListItemSelectEventData {\n value: any;\n listItem: IListItemComponent;\n}\n", "import { addClass, getShadowElement, removeClass, requireParent, isDeepEqual, toggleClass } from '@tylertech/forge-core';\nimport { BaseAdapter, IBaseAdapter } from '../../core/base/base-adapter';\nimport { createUserInteractionListener } from '../../core/utils';\nimport { IListComponent } from '../list/list';\nimport { LIST_CONSTANTS } from '../list/list-constants';\nimport { IListItemComponent } from './list-item';\nimport { LIST_ITEM_CONSTANTS } from './list-item-constants';\nimport { ForgeRipple } from '../../ripple';\n\nexport interface IListItemAdapter extends IBaseAdapter {\n initializeAccessibility(): void;\n getListItem(): IListItemComponent;\n addListener(type: string, listener: (evt: Event) => void, options?: AddEventListenerOptions): void;\n removeListener(type: string, listener: (evt: Event) => void): void;\n createRipple(): any;\n setStatic(value: boolean): void;\n setTwoLine(value: boolean): void;\n setThreeLine(value: boolean): void;\n getLineCount(): number;\n setActive(value: boolean): void;\n setSelected(value: boolean): void;\n tryToggleCheckboxRadio(value?: boolean): void;\n setFocus(): void;\n hasFocus(): boolean;\n setRole(role: string): void;\n setDisabled(disabled: boolean): void;\n setDense(dense: boolean): void;\n setIndented(indented: boolean): void;\n setWrap(value: boolean): void;\n trySelect(value: unknown): boolean | null;\n createUserInteractionListener(): ReturnType<typeof createUserInteractionListener>;\n}\n\nexport class ListItemAdapter extends BaseAdapter<IListItemComponent> implements IListItemAdapter {\n private _listItemElement: HTMLElement;\n private _defaultSlot: HTMLSlotElement;\n\n constructor(component: IListItemComponent) {\n super(component);\n this._initialize();\n }\n\n private _initialize(): void {\n this._listItemElement = getShadowElement(this._component, LIST_ITEM_CONSTANTS.selectors.LIST_ITEM);\n this._defaultSlot = getShadowElement(this._component, LIST_ITEM_CONSTANTS.selectors.DEFAULT_SLOT) as HTMLSlotElement;\n }\n \n public initializeAccessibility(): void {\n if (!this._component.hasAttribute('role')) {\n this._component.setAttribute('role', 'listitem');\n }\n }\n\n public getListItem(): IListItemComponent {\n return this._component;\n }\n\n /**\n * Adds an event listener to the `<forge-list-item>` host element.\n * @param {string} type The event type.\n * @param {Function} listener The event callback.\n */\n public addListener(type: string, listener: (evt: Event) => void, options?: AddEventListenerOptions): void {\n this._listItemElement.addEventListener(type, listener, options);\n }\n\n /**\n * Removes an event listener from the `<forge-list-item>` host element.\n * @param {string} type The event type.\n * @param {Function} listener The event callback.\n */\n public removeListener(type: string, listener: (evt: Event) => void): void {\n this._listItemElement.removeEventListener(type, listener);\n }\n\n /**\n * Creates a ripple instance on the list item.\n * @returns {ForgeRipple}\n */\n public createRipple(): any {\n return new ForgeRipple(this._listItemElement);\n }\n\n /**\n * Toggles the static state of this list item.\n * @param {boolean} value The static state.\n */\n public setStatic(value: boolean): void {\n if (value) {\n this._listItemElement.tabIndex = -1;\n addClass(LIST_ITEM_CONSTANTS.classes.STATIC, this._listItemElement);\n } else {\n this._listItemElement.tabIndex = 0;\n removeClass(LIST_ITEM_CONSTANTS.classes.STATIC, this._listItemElement);\n }\n }\n\n /**\n * Sets this list item as a two-line list item.\n * @param {boolean} value The two-line state.\n */\n public setTwoLine(value: boolean): void {\n if (value) {\n addClass(LIST_ITEM_CONSTANTS.classes.TWO_LINE, this._listItemElement);\n } else {\n removeClass(LIST_ITEM_CONSTANTS.classes.TWO_LINE, this._listItemElement);\n }\n }\n\n /**\n * Sets this list item as a three-line list item.\n * @param {boolean} value The three-line state.\n */\n public setThreeLine(value: boolean): void {\n if (value) {\n addClass(LIST_ITEM_CONSTANTS.classes.THREE_LINE, this._listItemElement);\n } else {\n removeClass(LIST_ITEM_CONSTANTS.classes.THREE_LINE, this._listItemElement);\n }\n }\n\n /**\n * Determines how many lines the list item is displaying.\n */\n public getLineCount(): number {\n return this._defaultSlot.assignedNodes().filter(e => e.nodeType === Node.ELEMENT_NODE).length; // assignedElements does not exist in the polyfilled version so filtering nodes instead\n }\n\n /**\n * Toggles the active class of the list item.\n * @param {boolean} value The active state.\n */\n public setActive(value: boolean): void {\n if (value) {\n addClass(LIST_ITEM_CONSTANTS.classes.ACTIVE, this._listItemElement);\n } else {\n removeClass(LIST_ITEM_CONSTANTS.classes.ACTIVE, this._listItemElement);\n }\n }\n\n /**\n * Toggles the selected class of the list item.\n * @param {boolean} value The active state.\n */\n public setSelected(value: boolean): void {\n if (value) {\n addClass(LIST_ITEM_CONSTANTS.classes.SELECTED, this._listItemElement);\n // We are treating selected and activated as the same state, and mdc-states hooks right into --activated\n // addClass(LIST_ITEM_CONSTANTS.classes.ACTIVATED, this._listItemElement);\n } else {\n removeClass(LIST_ITEM_CONSTANTS.classes.SELECTED, this._listItemElement);\n // removeClass(LIST_ITEM_CONSTANTS.classes.ACTIVATED, this._listItemElement);\n }\n }\n\n /**\n * Attemps to toggle a checkbox or radio button within the list item if it can find one.\n */\n public tryToggleCheckboxRadio(value?: boolean): void {\n const checkable = this._component.querySelector(LIST_ITEM_CONSTANTS.selectors.CHECKBOX_RADIO_SELECTOR) as HTMLInputElement;\n if (checkable) {\n const force = typeof value === 'boolean';\n const currentState = checkable.checked;\n \n // Check if we are just toggling or forcing to a specific checked state\n checkable.checked = force ? value as boolean : !checkable.checked;\n\n if (!force || currentState !== value) {\n checkable.dispatchEvent(new Event('change', { bubbles: true }));\n }\n }\n }\n\n /** Attempts to set focus to this list item. */\n public setFocus(): void {\n this._listItemElement.focus();\n }\n\n /** Returns whether the component has focus or not. */\n public hasFocus(): boolean {\n return document.activeElement === this._component || !!this._component.shadowRoot?.activeElement;\n }\n\n /**\n * Sets the role on the list item element.\n * @param role The role.\n */\n public setRole(role: string): void {\n this._listItemElement.setAttribute('role', role);\n }\n\n public setDisabled(disabled: boolean): void {\n toggleClass(this._listItemElement, disabled, LIST_ITEM_CONSTANTS.classes.DISABLED);\n }\n\n public setDense(dense: boolean): void {\n toggleClass(this._listItemElement, dense, LIST_ITEM_CONSTANTS.classes.DENSE);\n }\n\n public setIndented(indented: boolean): void {\n toggleClass(this._listItemElement, indented, LIST_ITEM_CONSTANTS.classes.INDENTED);\n }\n\n public setWrap(value: boolean): void {\n toggleClass(this._listItemElement, value, LIST_ITEM_CONSTANTS.classes.WRAP);\n }\n\n /**\n * Attempts to set the selected state of the list item element and it's visual indicators\n * @param value The value to compare to the parent list element's selected value\n * @returns Returns whether the list item is selected or not\n */\n public trySelect(value: unknown): boolean | null {\n const list = requireParent<IListComponent>(this._component, LIST_CONSTANTS.elementName);\n if (!list || list.selectedValue === undefined) {\n return null;\n }\n\n const listValues = list.selectedValue instanceof Array ? list.selectedValue : [list.selectedValue];\n const isSelected = listValues.some(v => isDeepEqual(v, value));\n\n this.setSelected(isSelected);\n this.tryToggleCheckboxRadio(isSelected);\n return isSelected;\n }\n\n public createUserInteractionListener(): ReturnType<typeof createUserInteractionListener> {\n return createUserInteractionListener(this._listItemElement);\n }\n}\n", "import { ICustomElementFoundation, matchesSelectors } from '@tylertech/forge-core';\nimport { ForgeRipple } from '../../ripple';\nimport { IListItemAdapter } from './list-item-adapter';\nimport { LIST_ITEM_CONSTANTS, IListItemSelectEventData } from './list-item-constants';\n\nexport interface IListItemFoundation extends ICustomElementFoundation {\n static: boolean;\n twoLine: boolean;\n threeLine: boolean;\n active: boolean;\n selected: boolean;\n value: any;\n href: string;\n target: string;\n ripple: boolean;\n disabled: boolean;\n dense: boolean;\n wrap: boolean;\n setFocus(): void;\n}\n\n/**\n * The foundation class behind the `<forge-list-item>` component.\n */\nexport class ListItemFoundation implements IListItemFoundation {\n private _ripple = true;\n private _rippleInstance: ForgeRipple;\n private _static = false;\n private _twoLine = false;\n private _threeLine = false;\n private _active = false;\n private _selected = false;\n private _value: any;\n private _href: string;\n private _target: string;\n private _disabled = false;\n private _dense = false;\n private _propagateClick = true;\n private _indented = false;\n private _wrap = false;\n private _clickListener: (evt: MouseEvent) => void;\n private _mouseDownListener: (evt: MouseEvent) => void;\n private _keydownListener: (evt: KeyboardEvent) => void;\n private _destroyUserInteractionListener: (() => void) | undefined;\n\n constructor(private _adapter: IListItemAdapter) {\n this._clickListener = (evt: MouseEvent) => this._onClick(evt);\n this._mouseDownListener = (evt: MouseEvent) => this._onMouseDown(evt);\n this._keydownListener = (evt: KeyboardEvent) => this._onKeydown(evt);\n }\n\n public initialize(): void {\n this._adapter.initializeAccessibility();\n this._setRipple();\n this._adapter.setStatic(this._static);\n this._adapter.setDense(this._dense);\n this._adapter.setDisabled(this._disabled);\n this._adapter.setIndented(this._indented);\n this._adapter.setWrap(this._wrap);\n\n if (!this._static) {\n this._adapter.addListener('click', this._clickListener);\n this._adapter.addListener('mousedown', this._mouseDownListener, { passive: false, capture: true });\n this._adapter.addListener('keydown', this._keydownListener);\n }\n\n if (this._threeLine) {\n this._adapter.setThreeLine(this._threeLine);\n } else if (this.twoLine) {\n this._adapter.setTwoLine(this._twoLine);\n }\n\n const isSelected = this._adapter.trySelect(this._value);\n if(isSelected != null) {\n this._selected = isSelected;\n }\n }\n\n public disconnect(): void {\n if (this._rippleInstance) {\n this._rippleInstance.destroy();\n this._rippleInstance = undefined as any;\n }\n\n if (typeof this._destroyUserInteractionListener === 'function') {\n this._destroyUserInteractionListener();\n this._destroyUserInteractionListener = undefined;\n }\n }\n\n private _onMouseDown(evt: MouseEvent): void {\n if (this._adapter.hasFocus() || !this._propagateClick) {\n evt.preventDefault();\n }\n }\n\n private _onKeydown(evt: KeyboardEvent): void {\n if (evt.key === 'Enter' || evt.key === ' ') {\n if (evt.key === ' ') {\n evt.preventDefault();\n }\n this._select(evt.target as HTMLElement);\n }\n }\n\n /**\n * Handles clicking a list item.\n * @param evt\n */\n private _onClick(evt: MouseEvent): void {\n this._select(evt.target as HTMLElement);\n }\n\n private _select(targetElement: HTMLElement): void {\n const ignoreElement = targetElement?.hasAttribute(LIST_ITEM_CONSTANTS.attributes.IGNORE);\n if (this._static || this._disabled || ignoreElement) {\n return;\n }\n\n if (!this._adapter.hasFocus() && this._propagateClick) {\n this.setFocus();\n }\n\n if (this._href) {\n if (this._target) {\n window.open(this._href, this._target);\n } else {\n document.location.href = this._href;\n }\n return;\n }\n\n // If the target was not a checkbox or radio button, attempt to find one and toggle its checked state\n if (!matchesSelectors(targetElement, LIST_ITEM_CONSTANTS.selectors.CHECKBOX_RADIO_SELECTOR)) {\n this._adapter.tryToggleCheckboxRadio();\n }\n\n const data: IListItemSelectEventData = {\n value: this._value,\n listItem: this._adapter.getListItem()\n };\n this._adapter.emitHostEvent(LIST_ITEM_CONSTANTS.events.SELECT, data);\n }\n\n /** Gets/sets whether the list item has a ripple or not. */\n public get ripple(): boolean {\n return this._ripple;\n }\n public set ripple(value: boolean) {\n if (this._ripple !== value) {\n // We don't attach ripples to static items\n if (value && this._static) {\n return;\n }\n this._ripple = value;\n this._setRipple();\n\n this._adapter.setHostAttribute(LIST_ITEM_CONSTANTS.attributes.RIPPLE, String(this._ripple));\n }\n }\n\n /** Gets/sets whether the static state of this list item. */\n public get static(): boolean {\n return this._static;\n }\n public set static(value: boolean) {\n if (this._static !== value) {\n this._static = value;\n this._adapter.setStatic(this._static);\n\n // Ensure we either add or remove the ripple\n this._setRipple();\n\n // Toggle the click listener\n if (this._static) {\n this._adapter.removeListener('click', this._clickListener);\n } else {\n this._adapter.addListener('click', this._clickListener);\n }\n\n if (this._static) {\n this._adapter.setHostAttribute(LIST_ITEM_CONSTANTS.attributes.STATIC);\n } else {\n this._adapter.removeHostAttribute(LIST_ITEM_CONSTANTS.attributes.STATIC);\n }\n }\n }\n\n /** Gets/sets whether the list item displays two lines of text. */\n public get twoLine(): boolean {\n return this._twoLine;\n }\n public set twoLine(value: boolean) {\n if (this._twoLine !== value) {\n this._twoLine = value;\n this._adapter.setTwoLine(this._twoLine);\n\n if (this._twoLine) {\n this._adapter.setHostAttribute(LIST_ITEM_CONSTANTS.attributes.TWO_LINE);\n } else {\n this._adapter.removeHostAttribute(LIST_ITEM_CONSTANTS.attributes.TWO_LINE);\n }\n }\n }\n\n /** Gets/sets whether the list item displays two lines of text. */\n public get threeLine(): boolean {\n return this._threeLine;\n }\n public set threeLine(value: boolean) {\n if (this._threeLine !== value) {\n this._threeLine = value;\n\n if (this._threeLine) {\n this._adapter.setHostAttribute(LIST_ITEM_CONSTANTS.attributes.THREE_LINE);\n } else {\n this._adapter.removeHostAttribute(LIST_ITEM_CONSTANTS.attributes.THREE_LINE);\n }\n\n if (this._threeLine) {\n this._twoLine = false;\n }\n\n this._adapter.setTwoLine(this._twoLine);\n this._adapter.setThreeLine(this._threeLine);\n }\n }\n\n /** Gets/sets whether the list item is active or not. */\n public get active(): boolean {\n return this._active;\n }\n public set active(value: boolean) {\n if (this._active !== value) {\n this._active = value;\n this._adapter.setActive(this._active);\n if (this._active) {\n this._adapter.setHostAttribute(LIST_ITEM_CONSTANTS.attributes.ACTIVE);\n } else {\n this._adapter.removeHostAttribute(LIST_ITEM_CONSTANTS.attributes.ACTIVE);\n }\n }\n }\n\n /** Gets/sets whether the list item is selected or not. */\n public get selected(): boolean {\n return this._selected;\n }\n public set selected(value: boolean) {\n if (this._selected !== value) {\n this._selected = value;\n this._adapter.setSelected(this._selected);\n this._adapter.tryToggleCheckboxRadio(this._selected);\n this._adapter.toggleHostAttribute(LIST_ITEM_CONSTANTS.attributes.SELECTED, this._selected);\n }\n }\n\n /** Gets/sets the unique value for this list item. */\n public get value(): any {\n return this._value;\n }\n public set value(value: any) {\n this._value = value;\n const isSelected = this._adapter.trySelect(this._value);\n if(isSelected != null) {\n this._selected = isSelected;\n }\n }\n\n /** Gets/sets the href link that this list item will send the browser to when clicked. */\n public get href(): string {\n return this._href;\n }\n public set href(value: string) {\n if (this._href !== value) {\n this._href = value;\n if (this._href) {\n this._adapter.setRole(LIST_ITEM_CONSTANTS.roles.LINK);\n } else {\n this._adapter.setRole(LIST_ITEM_CONSTANTS.roles.LIST_ITEM);\n }\n this._adapter.setHostAttribute(LIST_ITEM_CONSTANTS.attributes.HREF, this._href);\n }\n }\n\n /** Gets/sets the href link target. */\n public get target(): string {\n return this._target;\n }\n public set target(value: string) {\n this._target = value;\n }\n\n /** Gets/sets the disabled state. */\n public get disabled(): boolean {\n return this._disabled;\n }\n public set disabled(value: boolean) {\n if (this._disabled !== value) {\n this._disabled = value;\n this._adapter.setDisabled(this._disabled);\n this._adapter.toggleHostAttribute(LIST_ITEM_CONSTANTS.attributes.DISABLED, this._disabled);\n }\n }\n\n /** Gets/sets the dense state. */\n public get dense(): boolean {\n return this._dense;\n }\n public set dense(value: boolean) {\n if (this._dense !== value) {\n this._dense = value;\n this._adapter.setDense(this._dense);\n this._adapter.toggleHostAttribute(LIST_ITEM_CONSTANTS.attributes.DENSE, this._dense);\n }\n }\n\n /** Gets/sets the dense state. */\n public get propagateClick(): boolean {\n return this._propagateClick;\n }\n public set propagateClick(value: boolean) {\n if (this._propagateClick !== value) {\n this._propagateClick = value;\n this._adapter.setHostAttribute(LIST_ITEM_CONSTANTS.attributes.PROPAGATE_CLICK, '' + !!this._propagateClick);\n }\n }\n\n public get indented(): boolean {\n return this._indented;\n }\n public set indented(value: boolean) {\n if (this._indented !== value) {\n this._indented = value;\n this._adapter.setIndented(this._indented);\n this._adapter.toggleHostAttribute(LIST_ITEM_CONSTANTS.attributes.INDENTED, this._indented);\n }\n }\n\n public get wrap(): boolean {\n return this._wrap;\n }\n public set wrap(value: boolean) {\n if (this._wrap !== value) {\n this._wrap = value;\n this._adapter.setWrap(this._wrap);\n this._adapter.toggleHostAttribute(LIST_ITEM_CONSTANTS.attributes.WRAP, this._wrap);\n }\n }\n\n private async _setRipple(): Promise<void> {\n if (this._ripple && !this._static && !this._rippleInstance) {\n const { userInteraction, destroy } = await this._adapter.createUserInteractionListener();\n this._destroyUserInteractionListener = destroy;\n const { type } = await userInteraction;\n this._destroyUserInteractionListener = undefined;\n\n if (!this._adapter.isConnected) {\n return;\n }\n \n if (this._ripple && !this._static && !this._rippleInstance) {\n this._rippleInstance = this._adapter.createRipple();\n if (type === 'focusin') {\n this._rippleInstance.handleFocus();\n }\n }\n } else if ((!this._ripple || this._static) && this._rippleInstance) {\n this._rippleInstance.destroy();\n this._rippleInstance = undefined as any;\n }\n }\n\n /**\n * Sets focus to this list item.\n */\n public setFocus(): void {\n this._adapter.setFocus();\n }\n}\n", "import { CustomElement, attachShadowTemplate, requireParent, elementParents, coerceBoolean, FoundationProperty } from '@tylertech/forge-core';\nimport { ListItemAdapter } from './list-item-adapter';\nimport { ListItemFoundation } from './list-item-foundation';\nimport { IListItemSelectEventData, LIST_ITEM_CONSTANTS } from './list-item-constants';\nimport { LIST_CONSTANTS } from '../list/list-constants';\nimport { IListComponent } from '../list';\nimport { BaseComponent, IBaseComponent } from '../../core/base/base-component';\n\nconst defaultTemplate = '<template><div class=\\\"forge-list-item\\\" tabindex=\\\"0\\\" part=\\\"root\\\"><slot name=\\\"leading\\\"></slot><slot name=\\\"avatar\\\"></slot><div class=\\\"forge-list-item__text\\\" part=\\\"text-container\\\"><slot></slot><slot name=\\\"title\\\"></slot><slot name=\\\"subtitle\\\"></slot><slot name=\\\"tertiary-title\\\"></slot><slot></slot></div><slot name=\\\"trailing\\\"></slot></div></template>';\nconst styles = '@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\\\"\\\"}.mdc-ripple-surface::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface::after,.mdc-ripple-surface::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{--mdc-ripple-color:var(--mdc-theme-on-surface)}.forge-list-item{min-height:32px;min-height:var(--forge-list-item-min-height,32px);max-height:none;max-height:var(--forge-list-item-max-height,none);height:32px;height:var(--forge-list-item-height,32px);padding:8px 16px;padding:var(--forge-list-item-padding,8px 16px);margin-left:0;margin-left:var(--forge-list-item-indent,0);-webkit-box-align:center;align-items:center;-webkit-box-align:var(--forge-list-item-align-items,center);align-items:var(--forge-list-item-align-items,center);position:relative;display:-webkit-box;display:flex;-webkit-box-pack:start;justify-content:flex-start;overflow:hidden}.forge-list-item:focus{outline:0}.forge-list-item ::slotted([slot=leading]),.forge-list-item ::slotted([slot=trailing]){font-size:1.5rem}.forge-list-item ::slotted([slot=leading]){color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54));margin-left:0;margin-left:var(--forge-list-item-leading-margin-left,0);margin-right:32px;margin-right:var(--forge-list-item-leading-margin-right,32px);display:-webkit-inline-box;display:inline-flex;flex-shrink:0;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;fill:currentColor}.forge-list-item ::slotted([slot=trailing]){color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.forge-list-item ::slotted([slot=avatar]){color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54));margin-left:0;margin-left:var(--forge-list-item-leading-margin-left,0);margin-right:32px;margin-right:var(--forge-list-item-leading-margin-right,32px);display:-webkit-inline-box;display:inline-flex;flex-shrink:0;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;fill:currentColor;margin-left:0;margin-right:16px;min-width:40px;min-height:40px;border-radius:50%;display:inline-flex;background-color:rgba(0,0,0,.54);background-color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54));color:#fff;color:var(--mdc-theme-on-primary,#fff)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\\\"\\\"}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before{background-color:#000;background-color:var(--mdc-ripple-color,var(--mdc-theme-on-surface,#000))}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-surface--hover::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded--background-focused::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated::before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity, .12)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated::before{background-color:#3f51b5;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#3f51b5))}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated.mdc-ripple-surface--hover::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity, .16)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated.mdc-ripple-upgraded--background-focused::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-focus-opacity, .24)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-press-opacity, .24)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected::before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity, .08)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected::before{background-color:#3f51b5;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#3f51b5))}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected.mdc-ripple-surface--hover::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity, .12)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected.mdc-ripple-upgraded--background-focused::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-focus-opacity, .2)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-press-opacity, .2)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--selected:focus:hover.mdc-ripple-upgraded--background-focused:not(.mdc-ripple-upgraded--foreground-activation)::before{opacity:.28}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:focus:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::before{opacity:.12}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation):hover::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:focus:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation):hover::before{opacity:.16}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::before,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:focus:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::after,.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:focus:not(.forge-list-item--selected):not(.forge-list-item--activated):not(.mdc-ripple-upgraded--foreground-activation)::before{background-color:#000;background-color:var(--mdc-theme-on-surface,#000)}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:focus.forge-list-item--selected.forge-list-item--activated:not(.mdc-ripple-upgraded--foreground-activation)::before{opacity:.24}.forge-list-item:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item--active:focus.forge-list-item--selected.forge-list-item--activated:not(.mdc-ripple-upgraded--foreground-activation):hover::before{opacity:.28}.forge-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%}.forge-list-item ::slotted([slot=title]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}.forge-list-item ::slotted([slot=subtitle]),.forge-list-item ::slotted([slot=tertiary-title]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54));display:block}.forge-list-item--two-line{min-height:56px;min-height:var(--forge-list-item-min-height,56px);height:56px;height:var(--forge-list-item-height,56px)}.forge-list-item--three-line{min-height:72px;min-height:var(--forge-list-item-min-height,72px);height:72px;height:var(--forge-list-item-height,72px)}.forge-list-item--dense{min-height:16px;min-height:var(--forge-list-item-min-height,16px);height:16px;height:var(--forge-list-item-height,16px)}.forge-list-item--dense ::slotted([slot=leading]),.forge-list-item--dense ::slotted([slot=trailing]){font-size:1.25rem}.forge-list-item--dense ::slotted([slot=leading]){margin-right:12px;margin-right:var(--forge-list-item-leading-margin-right,12px)}.forge-list-item--dense ::slotted(.forge-list-item__title){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit)}.forge-list-item--dense.forge-list-item--two-line{min-height:40px;min-height:var(--forge-list-item-min-height,40px)}.forge-list-item--dense.forge-list-item--three-line{min-height:56px;min-height:var(--forge-list-item-min-height,56px)}.forge-list-item--wrap{height:auto;height:var(--forge-list-item-height,auto)}.forge-list-item--wrap .forge-list-item__text,.forge-list-item--wrap ::slotted([slot=subtitle]),.forge-list-item--wrap ::slotted([slot=tertiary-title]),.forge-list-item--wrap ::slotted([slot=title]){text-overflow:clip;white-space:normal}.forge-list-item--indented{margin-left:56px;margin-left:var(--forge-list-item-indent,56px)}.forge-list-item--active.forge-list-item--activated:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before,.forge-list-item--active.forge-list-item--selected:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item::before{opacity:.2}.forge-list-item--active.forge-list-item--activated:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:hover::before,.forge-list-item--active.forge-list-item--selected:not(.forge-list-item--static):not(.forge-list-item--disabled).forge-list-item:hover::before{opacity:.24}.forge-list-item--activated,.forge-list-item--selected{color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5)}.forge-list-item--activated .forge-list-item__text .forge-list-item__subtitle,.forge-list-item--activated .forge-list-item__text ::slotted(.forge-list-item__subtitle),.forge-list-item--selected .forge-list-item__text .forge-list-item__subtitle,.forge-list-item--selected .forge-list-item__text ::slotted(.forge-list-item__subtitle){color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5);opacity:.87}.forge-list-item--activated .forge-list-item__text .forge-list-item__tertiary-title,.forge-list-item--activated .forge-list-item__text ::slotted(.forge-list-item__tertiary-title),.forge-list-item--selected .forge-list-item__text .forge-list-item__tertiary-title,.forge-list-item--selected .forge-list-item__text ::slotted(.forge-list-item__tertiary-title){color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5);opacity:.87}.forge-list-item--activated ::slotted([slot=leading]),.forge-list-item--activated ::slotted([slot=trailing]),.forge-list-item--selected ::slotted([slot=leading]),.forge-list-item--selected ::slotted([slot=trailing]){color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5)}.forge-list-item--activated ::slotted([slot=avatar].forge-list-item__avatar-icon),.forge-list-item--selected ::slotted([slot=avatar].forge-list-item__avatar-icon){background-color:rgba(0,0,0,.12);background-color:var(--mdc-theme-text-disabled-on-background,rgba(0,0,0,.12));color:#000;color:var(--mdc-theme-on-surface,#000)}.forge-list-item--disabled{cursor:not-allowed;cursor:var(--forge-list-item-cursor,not-allowed);color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.forge-list-item--disabled ::slotted([slot=leading]),.forge-list-item--disabled ::slotted([slot=trailing]){cursor:not-allowed;cursor:var(--forge-list-item-cursor,not-allowed);color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.forge-list-item[role=link]{cursor:pointer}:host{display:block;contain:content}:host([hidden]){display:none}:host([forge-drawer-context=true]) .forge-list-item{margin:8px;margin:var(--forge-list-item-margin,8px);padding:0 8px;padding:var(--forge-list-item-padding,0 8px);border-radius:4px;border-radius:var(--forge-list-item-border-radius,4px);cursor:pointer;cursor:var(--forge-list-item-cursor,pointer);height:40px;height:var(--forge-list-item-height,40px);font-size:.875rem;font-weight:500}:host([forge-drawer-context=true]) .forge-list-item--static{cursor:initial}:host([forge-drawer-context=true]) .forge-list-item--indented{margin-left:64px;margin-left:var(--forge-list-item-indent,64px)}:host([forge-drawer-context=true]) .forge-list-item--two-line{min-height:56px-8px;min-height:var(--forge-list-item-min-height,56px-8px);height:56px-8px;height:var(--forge-list-item-height,56px-8px)}:host([forge-drawer-context=true]) .forge-list-item--three-line{min-height:72px-8px;min-height:var(--forge-list-item-min-height,72px-8px);height:72px-8px;height:var(--forge-list-item-height,72px-8px)}:host([forge-drawer-context=true]) .forge-list-item:first-child{margin-top:4px;margin-bottom:4px}:host([forge-drawer-context=true]) .forge-list-item--dense{min-height:16px;min-height:var(--forge-list-item-min-height,16px);height:16px;height:var(--forge-list-item-height,16px)}:host([forge-drawer-context=true]) .forge-list-item--dense ::slotted([slot=leading]),:host([forge-drawer-context=true]) .forge-list-item--dense ::slotted([slot=trailing]){font-size:1.25rem}:host([forge-drawer-context=true]) .forge-list-item--dense .forge-list-item__text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit)}:host([forge-drawer-context=true]) .forge-list-item--wrap{height:auto;height:var(--forge-list-item-height,auto);padding:4px 8px;padding:var(--forge-list-item-padding,4px 8px);min-height:40px;min-height:var(--forge-list-item-min-height,40px)}:host([forge-drawer-context=true]) .forge-list-item--disabled{cursor:not-allowed;cursor:var(--forge-list-item-cursor,not-allowed)}:host([dense]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit)}';\n\nexport interface IListItemComponent extends IBaseComponent {\n static: boolean;\n twoLine: boolean;\n threeLine: boolean;\n active: boolean;\n selected: boolean;\n value: any;\n href: string;\n target: string;\n ripple: boolean;\n disabled: boolean;\n dense: boolean;\n propagateClick: boolean;\n indented: boolean;\n wrap: boolean;\n focus(): void;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-list-item': IListItemComponent;\n }\n\n interface HTMLElementEventMap {\n 'forge-list-item-select': CustomEvent<IListItemSelectEventData>;\n }\n}\n\n/**\n * The custom element class behind the `<forge-list-item>` element.\n * \n * @tag forge-list-item\n */\n@CustomElement({\n name: LIST_ITEM_CONSTANTS.elementName\n})\nexport class ListItemComponent extends BaseComponent implements IListItemComponent {\n public static get observedAttributes(): string[] {\n return [\n LIST_ITEM_CONSTANTS.attributes.STATIC,\n LIST_ITEM_CONSTANTS.attributes.TWO_LINE,\n LIST_ITEM_CONSTANTS.attributes.THREE_LINE,\n LIST_ITEM_CONSTANTS.attributes.ACTIVE,\n LIST_ITEM_CONSTANTS.attributes.SELECTED,\n LIST_ITEM_CONSTANTS.attributes.VALUE,\n LIST_ITEM_CONSTANTS.attributes.HREF,\n LIST_ITEM_CONSTANTS.attributes.TARGET,\n LIST_ITEM_CONSTANTS.attributes.RIPPLE,\n LIST_ITEM_CONSTANTS.attributes.DISABLED,\n LIST_ITEM_CONSTANTS.attributes.DENSE,\n LIST_ITEM_CONSTANTS.attributes.PROPAGATE_CLICK,\n LIST_ITEM_CONSTANTS.attributes.INDENTED,\n LIST_ITEM_CONSTANTS.attributes.WRAP\n ];\n }\n\n private _foundation: ListItemFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, defaultTemplate, styles);\n this._foundation = new ListItemFoundation(new ListItemAdapter(this));\n }\n\n public connectedCallback(): void {\n // To simulate the :host-context() selector for Firefox until they implement it, we need to determine if the\n // list item is within a drawer for auto-styling the list item when included within a drawer. Check to see if\n // any of the parents of this element are a drawer.\n if (!this.hasAttribute(LIST_ITEM_CONSTANTS.attributes.DRAWER_CONTEXT) && elementParents(this).some(el => ['forge-drawer', 'forge-modal-drawer', 'forge-mini-drawer'].includes(el.tagName.toLowerCase()))) {\n this.setAttribute(LIST_ITEM_CONSTANTS.attributes.DRAWER_CONTEXT, 'true');\n }\n\n const list = requireParent<IListComponent>(this, LIST_CONSTANTS.elementName);\n if (list) {\n this._inheritParentListProps(list);\n }\n\n this._foundation.initialize();\n }\n\n public disconnectedCallback(): void {\n this._foundation.disconnect();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case LIST_ITEM_CONSTANTS.attributes.STATIC:\n this.static = coerceBoolean(newValue);\n break;\n case LIST_ITEM_CONSTANTS.attributes.TWO_LINE:\n this.twoLine = coerceBoolean(newValue);\n break;\n case LIST_ITEM_CONSTANTS.attributes.THREE_LINE:\n this.threeLine = coerceBoolean(newValue);\n break;\n case LIST_ITEM_CONSTANTS.attributes.ACTIVE:\n this.active = coerceBoolean(newValue);\n break;\n case LIST_ITEM_CONSTANTS.attributes.SELECTED:\n this.selected = coerceBoolean(newValue);\n break;\n case LIST_ITEM_CONSTANTS.attributes.VALUE:\n this.value = newValue;\n break;\n case LIST_ITEM_CONSTANTS.attributes.HREF:\n this.href = newValue;\n break;\n case LIST_ITEM_CONSTANTS.attributes.TARGET:\n this.target = newValue;\n break;\n case LIST_ITEM_CONSTANTS.attributes.RIPPLE:\n this.ripple = coerceBoolean(newValue);\n break;\n case LIST_ITEM_CONSTANTS.attributes.DISABLED:\n this.disabled = coerceBoolean(newValue);\n break;\n case LIST_ITEM_CONSTANTS.attributes.DENSE:\n this.dense = coerceBoolean(newValue);\n break;\n case LIST_ITEM_CONSTANTS.attributes.PROPAGATE_CLICK:\n this.propagateClick = coerceBoolean(newValue);\n break;\n case LIST_ITEM_CONSTANTS.attributes.INDENTED:\n this.indented = coerceBoolean(newValue);\n break;\n case LIST_ITEM_CONSTANTS.attributes.WRAP:\n this.wrap = coerceBoolean(newValue);\n break;\n }\n }\n\n private _inheritParentListProps(list: IListComponent): void {\n if (list.hasAttribute(LIST_CONSTANTS.attributes.STATIC)) {\n this.static = true;\n }\n if (list.hasAttribute(LIST_CONSTANTS.attributes.DENSE)) {\n this.dense = true;\n }\n if (list.getAttribute(LIST_CONSTANTS.attributes.PROPAGATE_CLICK) === 'false') {\n this.propagateClick = false;\n }\n if (list.hasAttribute(LIST_CONSTANTS.attributes.INDENTED)) {\n this.indented = true;\n }\n }\n\n /** Gets/sets whether the static state of this list item. */\n @FoundationProperty()\n public declare static: boolean;\n\n /** Gets/sets whether the list item displays two lines of text. */\n @FoundationProperty()\n public declare twoLine: boolean;\n\n /** Gets/sets whether the list item displays three lines of text. */\n @FoundationProperty()\n public declare threeLine: boolean;\n\n /** Gets/sets whether the list item is active or not. */\n @FoundationProperty()\n public declare active: boolean;\n\n /** Gets/sets whether the list item is selected or not. */\n @FoundationProperty()\n public declare selected: boolean;\n\n /** Gets/sets list item value. */\n @FoundationProperty()\n public declare value: any;\n\n /** Gets/sets the href link that this list item will send the browser to when clicked. */\n @FoundationProperty()\n public declare href: string;\n\n /** Gets/sets the href link target. Only pertains when `href` is also used. */\n @FoundationProperty()\n public declare target: string;\n\n /** Gets/sets whether the list item has a ripple or not. */\n @FoundationProperty()\n public declare ripple: boolean;\n\n /** Gets/sets whether the list item is disabled or not. */\n @FoundationProperty()\n public declare disabled: boolean;\n\n /** Gets/sets whether the list item is using dense styles or not. */\n @FoundationProperty()\n public declare dense: boolean;\n\n /** Gets/sets whether the list item allows mousedown events through to the underlying list item element. Default is true. */\n @FoundationProperty()\n public declare propagateClick: boolean;\n\n /** Gets/sets whether the list item is indented or not. Default is false. */\n @FoundationProperty()\n public declare indented: boolean;\n\n /** Gets/sets whether the list item content is wrapped or not. Default is true. */\n @FoundationProperty()\n public declare wrap: boolean;\n\n /** Sets focus to this list item. */\n public override focus(): void {\n this._foundation.setFocus();\n }\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\nimport { ListItemComponent } from './list-item';\n\nexport * from './list-item-adapter';\nexport * from './list-item-constants';\nexport * from './list-item-foundation';\nexport * from './list-item';\n\nexport function defineListItemComponent(): void {\n defineCustomElement(ListItemComponent);\n}\n"],
5
- "mappings": "8aAEA,IAAMA,EAA2C,GAAGC,QAE9CC,EAAa,CACjB,OAAQ,SACR,MAAO,QACP,gBAAiB,kBACjB,SAAU,WACV,eAAgB,gBAClB,EAEMC,EAAS,CACb,WAAY,GAAGH,mBACjB,EAEaI,EAAiB,CAC5B,YAAAJ,EACA,WAAAE,EACA,OAAAC,CACF,ECjBA,IAAME,EAA2C,GAAGC,aAE9CC,EAAa,CACjB,OAAQ,SACR,SAAU,WACV,WAAY,aACZ,OAAQ,SACR,SAAU,WACV,MAAO,QACP,KAAM,OACN,OAAQ,SACR,OAAQ,SACR,SAAU,WACV,MAAO,QACP,gBAAiB,kBACjB,SAAU,WACV,KAAM,OACN,eA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EAAmB,GA/GThB,EAgHI,sBAIAe,EAAA,CADdC,EAAmB,GAnHThB,EAoHI,uBAIAe,EAAA,CADdC,EAAmB,GAvHThB,EAwHI,yBAIAe,EAAA,CADdC,EAAmB,GA3HThB,EA4HI,sBAIAe,EAAA,CADdC,EAAmB,GA/HThB,EAgII,wBAIAe,EAAA,CADdC,EAAmB,GAnIThB,EAoII,qBAIAe,EAAA,CADdC,EAAmB,GAvIThB,EAwII,oBAIAe,EAAA,CADdC,EAAmB,GA3IThB,EA4II,sBAIAe,EAAA,CADdC,EAAmB,GA/IThB,EAgJI,sBAIAe,EAAA,CADdC,EAAmB,GAnJThB,EAoJI,wBAIAe,EAAA,CADdC,EAAmB,GAvJThB,EAwJI,qBAIAe,EAAA,CADdC,EAAmB,GA3JThB,EA4JI,8BAIAe,EAAA,CADdC,EAAmB,GA/JThB,EAgKI,wBAIAe,EAAA,CADdC,EAAmB,GAnKThB,EAoKI,oBApKJA,EAANe,EAAA,CAHNE,EAAc,CACb,KAAMZ,EAAoB,WAC5B,CAAC,GACYL,GCvCN,SAASkB,IAAgC,CAC9CC,EAAoBC,CAAiB,CACvC",
6
- "names": ["elementName", "COMPONENT_NAME_PREFIX", "attributes", "events", "LIST_CONSTANTS", "elementName", "COMPONENT_NAME_PREFIX", "attributes", "classes", "selectors", "events", "roles", "LIST_ITEM_CONSTANTS", "ListItemAdapter", "BaseAdapter", "component", "getShadowElement", "LIST_ITEM_CONSTANTS", "type", "listener", "options", "ForgeRipple", "value", "addClass", "removeClass", "e", "checkable", "force", "currentState", "_a", "role", "disabled", "toggleClass", "dense", "indented", "list", "requireParent", "LIST_CONSTANTS", "isSelected", "v", "isDeepEqual", "createUserInteractionListener", "ListItemFoundation", "_adapter", "evt", "isSelected", "targetElement", "ignoreElement", "LIST_ITEM_CONSTANTS", "matchesSelectors", "data", "value", "userInteraction", "destroy", "type", "defaultTemplate", "styles", "ListItemComponent", "BaseComponent", "attachShadowTemplate", "ListItemFoundation", "ListItemAdapter", "LIST_ITEM_CONSTANTS", "elementParents", "el", "list", "requireParent", "LIST_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "__decorateClass", "FoundationProperty", "CustomElement", "defineListItemComponent", "defineCustomElement", "ListItemComponent"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/calendar/calendar-constants.ts", "../../src/calendar/calendar-locale-utils.ts", "../../src/calendar/calendar-dom-utils.ts", "../../src/calendar/calendar-dropdown/calendar-dropdown-constants.ts", "../../src/calendar/calendar-dropdown/calendar-dropdown.ts"],
4
- "sourcesContent": ["import { TOOLTIP_CONSTANTS } from '../tooltip/tooltip-constants';\nimport { COMPONENT_NAME_PREFIX } from '../constants';\nimport { CALENDAR_MENU_CONSTANTS } from './calendar-menu';\nimport { DateRange } from './core/date-range';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}calendar`;\n\nconst observedAttributes = {\n ALLOW_SINGLE_DATE_RANGE: 'allow-single-date-range',\n CLEAR_BUTTON: 'clear-button',\n CONSTRAIN_TO_ENABLED: 'constrain-to-enabled',\n FIRST_DAY_OF_WEEK: 'first-day-of-week',\n FIXED_HEIGHT: 'static-height',\n LIST_YEARS: 'list-years',\n LOCALE: 'locale',\n MAX: 'max',\n MENU_ANIMATION: 'menu-animation',\n MIN: 'min',\n MODE: 'mode',\n MONTH: 'month',\n PREVENT_FOCUS: 'prevent-focus',\n READONLY: 'readonly',\n SELECTION_FOLLOWS_MONTH: 'selection-follows-month',\n SHOW_HEADER: 'show-header',\n SHOW_OTHER_MONTHS: 'show-other-months',\n SHOW_TODAY: 'show-today',\n TODAY_BUTTON: 'today-button',\n VIEW: 'view',\n YEAR: 'year',\n YEAR_RANGE: 'year-range'\n};\n\nconst attributes = {\n ...observedAttributes,\n DATA_DATE: 'data-date',\n DATA_EVENT_THEME: 'data-event-theme',\n POPUP_CONTEXT: 'forge-popup-context'\n};\n\nconst classes = {\n ALLOW_SINGLE_DATE_RANGE: 'forge-calendar--allow-single-date-range',\n DATE: 'forge-calendar__date',\n DATE_GRID: 'forge-calendar__date-grid',\n DATE_INNER: 'forge-calendar__date__inner',\n DATE_OTHER_MONTH: 'forge-calendar__date--other-month',\n DATE_SPACER: 'forge-calendar__date-spacer',\n DATE_SELECTED: 'forge-calendar__date--selected',\n DATE_TODAY: 'forge-calendar__date--today',\n DATE_VIEW: 'forge-calendar__date-view',\n DATE_VIEW_ROW: 'forge-calendar__date-view__row',\n DATE_WRAPPER: 'forge-calendar__date-wrapper',\n DAY: 'forge-calendar__day',\n EVENT: 'forge-calendar__event',\n EVENT_OVERFLOW: 'forge-calendar__event--overflow',\n EVENT_WRAPPER: 'forge-calendar__event__wrapper',\n FIXED_HEIGHT: 'forge-calendar--fixed-height',\n FOOTER: 'forge-calendar__footer',\n HEADER: 'forge-calendar__header',\n MDC_RIPPLE_UPGRADED_FOCUSED: 'mdc-ripple-upgraded--background-focused',\n MONTH_MENU_OPEN: 'forge-calendar--month-menu-open',\n PREVENT_FOCUS: 'forge-calendar--prevent-focus',\n RANGE: 'forge-calendar__range',\n RANGE_END: 'forge-calendar__range--end',\n RANGE_START: 'forge-calendar__range--start',\n RANGE_TARGET: 'forge-calendar__range__target',\n READONLY: 'forge-calendar--readonly',\n RTL: 'forge-calendar--rtl',\n SHOW_OTHER_MONTHS: 'forge-calendar--show-other-months',\n SHOW_TODAY: 'forge-calendar--show-today',\n VIEW: 'forge-calendar__view',\n YEAR_MENU_OPEN: 'forge-calendar--year-menu-open'\n};\n\nconst ids = {\n ACCESSIBLE_HEADER: 'accessible-header',\n ACCESSIBLE_MONTH: 'accessible-month',\n ACCESSIBLE_YEAR: 'accessible-year',\n CLEAR_BUTTON: 'clear-button',\n DATE_GRID: 'date-grid',\n DATE_VIEW: 'date-view',\n DAY_ROW: 'day-row',\n FOOTER: 'footer',\n HEADER: 'header',\n MENU: 'menu',\n MONTH_BUTTON: 'month-button',\n NEXT_BUTTON: 'next-button',\n NEXT_BUTTON_TOOLTIP: 'next-button-tooltip',\n PREVIOUS_BUTTON: 'previous-button',\n PREVIOUS_BUTTON_TOOLTIP: 'previous-button-tooltip',\n TODAY_BUTTON: 'today-button',\n YEAR_BUTTON: 'year-button'\n};\n\nconst weekdayParts = {\n SUNDAY: 'sunday',\n MONDAY: 'monday',\n TUESDAY: 'tuesday',\n WEDNESDAY: 'wednesday',\n THURSDAY: 'thursday',\n FRIDAY: 'friday',\n SATURDAY: 'saturday'\n};\n\nconst parts = {\n ...weekdayParts,\n CLEAR_BUTTON: 'clear-button',\n DATE: 'date',\n DATE_OTHER_MONTH: 'date-other-month',\n DATE_VIEW: 'date-view',\n DATE_WRAPPER: 'date-wrapper',\n DAY: 'day',\n EVENT: 'event',\n EVENT_WRAPPER: 'event-wrapper',\n FOOTER: 'footer',\n HEADER: 'header',\n MONTH_BUTTON: 'month-button',\n MONTH_BUTTON_ELEMENT: 'month-button-element',\n NEXT_BUTTON: 'next-button',\n PREVIOUS_BUTTON: 'previous-button',\n RANGE: 'range',\n RANGE_END: 'range-end',\n RANGE_START: 'range-start',\n TODAY: 'today',\n TODAY_BUTTON: 'today-button',\n WEEKEND: 'weekend',\n YEAR_BUTTON: 'year-button',\n YEAR_BUTTON_ELEMENT: 'year-button-element'\n};\n\nconst selectors = {\n ACCESSIBLE_HEADER: `#${ids.ACCESSIBLE_HEADER}`,\n ACCESSIBLE_MONTH: `#${ids.ACCESSIBLE_MONTH}`,\n ACCESSIBLE_YEAR: `#${ids.ACCESSIBLE_YEAR}`,\n CALENDAR: '.forge-calendar',\n CLEAR_BUTTON: `#${ids.CLEAR_BUTTON}`,\n DATE: `.${classes.DATE}`,\n DATE_GRID: `#${ids.DATE_GRID}`,\n DATE_INNER: `.${classes.DATE_INNER}`,\n DATE_OTHER_MONTH: `.${classes.DATE_OTHER_MONTH}`,\n DATE_SPACER: `.${classes.DATE_SPACER}`,\n DATE_SELECTED: `.${classes.DATE_SELECTED}`,\n DATE_TODAY: `.${classes.DATE_TODAY}`,\n DATE_VIEW: `#${ids.DATE_VIEW}`,\n DATE_WRAPPER: `.${classes.DATE_WRAPPER}`,\n DAY_ROW: `#${ids.DAY_ROW}`,\n EVENT_WRAPPER: `.${classes.EVENT_WRAPPER}`,\n FOOTER: `#${ids.FOOTER}`,\n HEADER: `#${ids.HEADER}`,\n MENU: CALENDAR_MENU_CONSTANTS.elementName,\n MONTH_BUTTON: `#${ids.MONTH_BUTTON}`,\n NEXT_BUTTON: `#${ids.NEXT_BUTTON}`,\n NEXT_BUTTON_TOOLTIP: `#${ids.NEXT_BUTTON_TOOLTIP}`,\n PREVIOUS_BUTTON: `#${ids.PREVIOUS_BUTTON}`,\n PREVIOUS_BUTTON_TOOLTIP: `#${ids.PREVIOUS_BUTTON_TOOLTIP}`,\n RANGE: `.${classes.RANGE}`,\n RANGE_END: `.${classes.RANGE_END}`,\n RANGE_START: `.${classes.RANGE_START}`,\n TODAY_BUTTON: `#${ids.TODAY_BUTTON}`,\n TOOLTIP: TOOLTIP_CONSTANTS.elementName,\n VIEW: '#view',\n YEAR_BUTTON: `#${ids.YEAR_BUTTON}`\n};\n\nconst events = {\n DATE_SELECT: `${elementName}-date-select`,\n FOCUS_CHANGE: `${elementName}-focus-change`,\n MONTH_CHANGE: `${elementName}-month-change`,\n VIEW_CHANGE: `${elementName}-view-change`\n};\n\nconst numbers = {\n DEFAULT_MAX_YEAR_OFFSET: 50,\n DEFAULT_MIN_YEAR_OFFSET: 50,\n FINAL_WEEK_BEGIN_INDEX: 35,\n MONTH_LENGTH: 42,\n PENULTIMATE_WEEK_BEGIN_INDEX: 28,\n WEEK_LENGTH: 7,\n YEARS_IN_VIEW: 20\n};\n\nexport const CALENDAR_CONSTANTS = {\n elementName,\n attributes,\n classes,\n ids,\n parts,\n selectors,\n events,\n numbers\n};\n\nexport type CalendarDateBuilder = (date: ICalendarDateConfig, element: HTMLElement) => HTMLElement;\nexport type CalendarDateSelectCallback = (date: ICalendarDate) => boolean | Promise<boolean>;\nexport type CalendarDayBuilder = (day: DayOfWeek, element: HTMLElement) => HTMLElement;\nexport type CalendarDisabledDateBuilder = (date: Date) => boolean;\nexport type CalendarEventBuilder = (date: Date) => ICalendarEvent[] | ICalendarEvent | null;\nexport type CalendarTooltipBuilder = (date: ICalendarDate, content: string) => string | null;\n\nexport type CalendarMode = 'single' | 'multiple' | 'range';\nexport type CalendarView = 'date' | 'month' | 'year';\nexport type RangeSelectionState = 'none' | 'from' | 'to';\nexport type CalendarEventColor = 'primary' | 'secondary' | 'blue' | 'light-green' | 'cyan' | 'teal' | 'orange' | 'blue-grey' | 'grey' | 'red' | 'pink' | 'purple' | 'light-blue' | 'deep-purple' | 'green' | 'lime' | 'yellow' | 'brown' | 'deep-orange';\n\nexport interface ICalendarDate {\n date: Date;\n selected: boolean;\n events: ICalendarEvent[];\n}\n\nexport interface ICalendarDateConfig {\n date: Date;\n selected: boolean;\n today: boolean;\n thisMonth: boolean;\n disabled: boolean;\n}\n\nexport interface ICalendarDateOptions {\n builder?: CalendarDateBuilder;\n locale?: string;\n showOtherMonths?: boolean;\n}\n\nexport interface ICalendarDayOptions {\n builder?: CalendarDayBuilder;\n locale?: string;\n}\n\nexport interface ICalendarEvent {\n date: Date;\n label: string;\n color: CalendarEventColor | string;\n}\n\nexport interface ICalendarDateSelectEventData {\n date: Date | null;\n selected: boolean;\n range?: DateRange;\n rangeSelectionState?: RangeSelectionState;\n type: CalendarView;\n}\n\nexport interface ICalendarMonthChangeEventData {\n month: number;\n userSelected: boolean; // Indicates whether event is from explicit selection or regular navigation\n year: number;\n}\n\nexport interface ICalendarFocusChangeEventData {\n selected: boolean;\n text: string;\n type: CalendarView;\n value: Date | number;\n}\n\nexport interface ICalendarNumberRange {\n max: number;\n min: number;\n}\n\nexport interface ICalendarDisabledDateParams {\n builder: CalendarDisabledDateBuilder | undefined;\n disabledDates: Date[];\n disabledDaysOfWeek: DayOfWeek[];\n maxDate: Date | null;\n minDate: Date | null;\n otherMonth?: boolean;\n}\n\nexport interface ICalendarMenuMonthConfig {\n locale?: string;\n max: Date | null;\n min: Date | null;\n selectedMonth: number;\n selectedYear: number;\n}\n\nexport interface ICalendarMenuYearConfig {\n locale?: string;\n max: number;\n min: number;\n selectedYear: number;\n yearInView: number;\n}\n\nexport enum DayOfWeek {\n Sunday = 0,\n Monday = 1,\n Tuesday = 2,\n Wednesday = 3,\n Thursday = 4,\n Friday = 5,\n Saturday = 6\n}\n\nexport enum CalendarMonthFocus {\n First = 1,\n Last = 2,\n Current = 3\n}\n", "// TODO: implement year before month support\n// TODO: use a more robust strategy to get language and region parts from a locale, like the Intl API (in TypeScript 4.1.2 and es2020.intl)\n\nimport { DayOfWeek } from './calendar-constants';\n\n/** Returns a localized day name. */\nexport function getLocalizedDayOfWeek(day: DayOfWeek, format: 'long' | 'short' | 'narrow' | undefined, locale?: string): string {\n if (!locale) {\n locale = navigator.language;\n }\n // January 2017 starts on a Sunday\n return new Date(2017, 0, day + 1).toLocaleString(locale, {weekday: format});\n}\n\n/** Returns a localized date of the month. */\nexport function getLocalizedDayOfMonth(date: number, format: 'numeric' | '2-digit' | undefined, locale?: string): string {\n if (!locale) {\n locale = navigator.language;\n }\n return new Date(1970, 0, date).toLocaleDateString(locale, {day: format});\n}\n\n/** Returns a localized month name. */\nexport function getLocalizedMonth(month: number, format: 'long' | 'short' | 'narrow' | 'numeric' | '2-digit' | undefined, locale?: string): string {\n if (!locale) {\n locale = navigator.language;\n }\n return new Date(1970, month, 1).toLocaleString(locale, {month: format});\n}\n\n/** Returns a localized year name. */\nexport function getLocalizedYear(year: number, format: 'numeric' | '2-digit' | undefined, locale?: string): string {\n if (!locale) {\n locale = navigator.language;\n }\n return new Date(year, 0, 1).toLocaleDateString(locale, {year: format});\n}\n\n/** Returns the first day of week for a locale. */\nexport function getFirstDayOfWeekForLocale(locale?: string): DayOfWeek {\n if (!locale) {\n locale = navigator.language;\n }\n const localeParts = locale.match(/^([a-z]{2,3})(?:-([a-z]{3})(?=$|-))?(?:-([a-z]{4})(?=$|-))?(?:-([a-z]{2}|\\d{3})(?=$|-))?/i);\n if (!localeParts || !localeParts.length) {\n return DayOfWeek.Monday;\n }\n\n const language = localeParts[1];\n const region = localeParts[4];\n const saturdayRegions = 'AEAFBHDJDZEGIQIRJOKWLYOMQASDSY'.match(/../g);\n const sundayRegions = 'AGARASAUBDBRBSBTBWBZCACNCODMDOETGTGUHKHNIDILINJMJPKEKHKRLAMHMMMOMTMXMZNINPPAPEPHPKPRPTPYSASGSVTHTTTWUMUSVEVIWSYEZAZW'.match(/../g);\n const saturdayLanguages = ['ar', 'arq', 'arz', 'fa'];\n const sundayLanguages = 'amasbndzengnguhehiidjajvkmknkolomhmlmrmtmyneomorpapssdsmsnsutatethtnurzhzu'.match(/../g);\n\n if (region) {\n if (sundayRegions && sundayRegions.includes(region)) {\n return DayOfWeek.Sunday;\n } else if (saturdayRegions && saturdayRegions.includes(region)) {\n return DayOfWeek.Saturday;\n } else {\n return DayOfWeek.Monday;\n }\n } else {\n if (sundayLanguages && sundayLanguages.includes(language)) {\n return DayOfWeek.Sunday;\n } else if (saturdayLanguages && saturdayLanguages.includes(language)) {\n return DayOfWeek.Saturday;\n } else {\n return DayOfWeek.Monday;\n }\n }\n}\n\n/** Returns an array of weekend days for a locale. */\nexport function getWeekendDaysForLocale(locale?: string): DayOfWeek[] {\n if (!locale) {\n locale = navigator.language;\n }\n const region: string = locale.split('-')[1];\n switch (region) {\n case 'DZ':\n case 'BH':\n case 'BD':\n case 'EG':\n case 'IQ':\n case 'IL':\n case 'JO':\n case 'KW':\n case 'LY':\n case 'MV': // Not consistent across Malaysia\n case 'MR':\n case 'NP':\n case 'OM':\n case 'QA':\n case 'SA':\n case 'SD':\n case 'SY':\n case 'AE': // Not consistent across UAE\n case 'YE':\n case 'AF': // Thursday morning is a workday\n case 'IR': // Thursday morning is a workday\n return [DayOfWeek.Thursday, DayOfWeek.Friday];\n case 'BN':\n return [DayOfWeek.Sunday, DayOfWeek.Friday];\n default:\n return [DayOfWeek.Sunday, DayOfWeek.Saturday];\n }\n}\n\n/** Returns whether a language is written right-to-left. */\nexport function isRtlLocale(locale?: string): boolean {\n if (!locale) {\n locale = navigator.language;\n }\n const rtlLocales: string[] = [\n 'ar',\n 'arc',\n 'ckb',\n 'dv',\n 'fa',\n 'ha',\n 'he',\n 'khw',\n 'ks',\n 'ps',\n 'sd',\n 'ur',\n 'uz-AF',\n 'yi'\n ];\n return rtlLocales.some(l => locale ? locale.startsWith(l) : false);\n}\n", "import { getEventPath, appendToAttribute, toggleOnAttribute } from '@tylertech/forge-core';\n\nimport { IIconComponent } from '../icon';\nimport { ITooltipComponent } from '../tooltip';\nimport { CALENDAR_CONSTANTS, DayOfWeek, ICalendarDateConfig, ICalendarDateOptions, ICalendarEvent } from './calendar-constants';\nimport { getLocalizedDayOfMonth, getLocalizedDayOfWeek, getLocalizedMonth, getLocalizedYear } from './calendar-locale-utils';\n\n/** Converts a day into an id string prefixed with \"d\". */\nexport function getDayId(day: DayOfWeek): string {\n return `d${day}`;\n}\n\n/** Converts a date object into a \"yyyymmdd\" id string prefixed with \"d\". */\nexport function getDateId(date: Date): string {\n const month = String(date.getMonth()).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n const year = date.getFullYear();\n return ['d', year, month, day].join('');\n}\n\n/** Converts a date object into a \"yyyymmdd\" if string prefixed with \"e\". */\nexport function getEventWrapperId(date: Date): string {\n const month = String(date.getMonth()).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n const year = date.getFullYear();\n return ['e', year, month, day].join('');\n}\n\n/** Returns a day element. */\nexport function getDayElement(day: DayOfWeek, locale?: string): HTMLElement {\n const element = document.createElement('div');\n element.classList.add(CALENDAR_CONSTANTS.classes.DAY);\n element.id = getDayId(day);\n element.setAttribute('role', 'columnheader');\n element.setAttribute('aria-label', getLocalizedDayOfWeek(day, 'long', locale));\n element.setAttribute('part', CALENDAR_CONSTANTS.parts.DAY);\n element.textContent = getLocalizedDayOfWeek(day, 'short', locale);\n return element;\n}\n\n/** Returns a date row element. */\nexport function getDateRow(dates: ICalendarDateConfig[], index: number, options?: ICalendarDateOptions): HTMLElement {\n const element = document.createElement('div');\n element.classList.add(CALENDAR_CONSTANTS.classes.DATE_VIEW_ROW);\n element.setAttribute('role', 'row');\n\n // Populate the row\n if (index > 0 && !dates[0]?.thisMonth) {\n // A row after the first that begins on another month is all spacers and should be hidden from the accessibility tree\n dates.forEach(d => element.appendChild(getDateSpacerElement(d.date)));\n element.setAttribute('aria-hidden', 'true');\n } else {\n dates.forEach(d => {\n let dateElement = d.thisMonth || options?.showOtherMonths ? getDateElement(d, options?.locale) : getDateSpacerElement(d.date);\n if ((d.thisMonth || options?.showOtherMonths) && options?.builder) {\n dateElement = options.builder(d, dateElement);\n }\n element.appendChild(dateElement);\n });\n }\n\n return element;\n}\n\n/** Returns a date element. */\nexport function getDateElement(date: ICalendarDateConfig, locale?: string): HTMLElement {\n const element = document.createElement('div');\n const rangeElement = document.createElement('div');\n const innerElement = document.createElement('div');\n const rippleElement = document.createElement('div');\n const day = date.date.getDay();\n\n element.id = getDateId(date.date);\n element.tabIndex = -1;\n element.classList.add(CALENDAR_CONSTANTS.classes.DATE);\n element.classList.toggle(CALENDAR_CONSTANTS.classes.DATE_TODAY, date.today);\n element.classList.toggle(CALENDAR_CONSTANTS.classes.DATE_SELECTED, date.selected);\n element.classList.toggle(CALENDAR_CONSTANTS.classes.DATE_OTHER_MONTH, !date.thisMonth);\n element.setAttribute('role', 'gridcell');\n element.setAttribute('aria-disabled', date.disabled.toString());\n element.setAttribute('aria-label', `${date.today ? 'Today, ' : ''}${date.date.toLocaleDateString(locale ?? navigator.language, {weekday: 'long', month: 'long', day: 'numeric', year: 'numeric'})}`);\n element.setAttribute('aria-selected', date.selected.toString());\n element.setAttribute(CALENDAR_CONSTANTS.attributes.DATA_DATE, date.date.toDateString());\n element.toggleAttribute('disabled', date.disabled);\n element.setAttribute('part', CALENDAR_CONSTANTS.parts.DATE_WRAPPER);\n \n // Add day of week part\n let dayOfWeekPart = '';\n switch (day) {\n case DayOfWeek.Sunday:\n dayOfWeekPart = CALENDAR_CONSTANTS.parts.SUNDAY;\n break;\n case DayOfWeek.Monday:\n dayOfWeekPart = CALENDAR_CONSTANTS.parts.MONDAY;\n break;\n case DayOfWeek.Tuesday:\n dayOfWeekPart = CALENDAR_CONSTANTS.parts.TUESDAY;\n break;\n case DayOfWeek.Wednesday:\n dayOfWeekPart = CALENDAR_CONSTANTS.parts.WEDNESDAY;\n break;\n case DayOfWeek.Thursday:\n dayOfWeekPart = CALENDAR_CONSTANTS.parts.THURSDAY;\n break;\n case DayOfWeek.Friday:\n dayOfWeekPart = CALENDAR_CONSTANTS.parts.FRIDAY;\n break;\n case DayOfWeek.Saturday:\n dayOfWeekPart = CALENDAR_CONSTANTS.parts.SATURDAY;\n break;\n }\n appendToAttribute(innerElement, 'part', dayOfWeekPart);\n appendToAttribute(innerElement, 'part', CALENDAR_CONSTANTS.parts.DATE);\n toggleOnAttribute(innerElement, 'part', CALENDAR_CONSTANTS.parts.TODAY, date.today);\n toggleOnAttribute(innerElement, 'part', CALENDAR_CONSTANTS.parts.DATE_OTHER_MONTH, !date.thisMonth);\n\n rangeElement.classList.add(CALENDAR_CONSTANTS.classes.RANGE_TARGET);\n element.appendChild(rangeElement);\n innerElement.textContent = getLocalizedDayOfMonth(date.date.getDate(), 'numeric', locale);\n innerElement.classList.add(CALENDAR_CONSTANTS.classes.DATE_INNER);\n element.appendChild(innerElement);\n rippleElement.classList.add('mdc-ripple-surface');\n element.appendChild(rippleElement);\n return element;\n}\n\n/** Returns a date spacer element. */\nexport function getDateSpacerElement(date: Date): HTMLElement {\n // This is a span to easiliy differentiate it from a date in CSS\n const element = document.createElement('span');\n element.classList.add(CALENDAR_CONSTANTS.classes.DATE_SPACER);\n element.id = getDateId(date);\n return element;\n}\n\n/** Returns an event wrapper element. */\nexport function getEventWrapperElement(date: Date): HTMLElement {\n const element = document.createElement('div');\n element.classList.add(CALENDAR_CONSTANTS.classes.EVENT_WRAPPER);\n element.id = getEventWrapperId(date);\n element.setAttribute('part', CALENDAR_CONSTANTS.parts.EVENT_WRAPPER);\n return element;\n}\n\n/** Returns an event element. */\nexport function getEventElement(event: ICalendarEvent, overflow?: boolean): HTMLElement {\n const element: IIconComponent = document.createElement('forge-icon');\n element.classList.add(CALENDAR_CONSTANTS.classes.EVENT);\n element.setAttribute('part', CALENDAR_CONSTANTS.parts.EVENT);\n if (overflow) {\n element.classList.add(CALENDAR_CONSTANTS.classes.EVENT_OVERFLOW);\n element.name = 'add';\n } else {\n const svg = '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z\" stroke=\"var(--forge-calendar-event-stroke-color)\" stroke-width=\"4px\" paint-order=\"stroke\"></path></svg>';\n element.src = svg;\n element.setAttribute(CALENDAR_CONSTANTS.attributes.DATA_EVENT_THEME, event.color);\n }\n return element;\n}\n\n/** Returns a tooltip element. */\nexport function getTooltip(content: string): HTMLElement {\n const tooltip: ITooltipComponent = document.createElement('forge-tooltip');\n tooltip.text = content;\n tooltip.setAttribute('aria-hidden', 'true');\n return tooltip;\n}\n\n/** Returns a calendar header. */\nexport function getHeader(): HTMLElement {\n const element = document.createElement('div');\n element.classList.add(CALENDAR_CONSTANTS.classes.HEADER);\n element.id = CALENDAR_CONSTANTS.ids.HEADER;\n element.setAttribute('part', CALENDAR_CONSTANTS.parts.HEADER);\n\n const previousButton = document.createElement('forge-icon-button');\n const previousButtonElement = document.createElement('button');\n const previousIcon = document.createElement('forge-icon');\n const previousTooltip = document.createElement('forge-tooltip');\n previousButton.setAttribute('part', CALENDAR_CONSTANTS.parts.PREVIOUS_BUTTON);\n previousButtonElement.id = CALENDAR_CONSTANTS.ids.PREVIOUS_BUTTON;\n previousButtonElement.type = 'button';\n previousButtonElement.setAttribute('aria-label', 'Previous');\n previousIcon.setAttribute('name', 'keyboard_arrow_left');\n previousTooltip.id = CALENDAR_CONSTANTS.ids.PREVIOUS_BUTTON_TOOLTIP;\n previousTooltip.setAttribute('aria-hidden', 'true');\n previousTooltip.innerText = 'Previous';\n previousButton.appendChild(previousButtonElement);\n previousButton.appendChild(previousTooltip);\n previousButtonElement.appendChild(previousIcon);\n\n const nextButton = document.createElement('forge-icon-button');\n const nextButtonElement = document.createElement('button');\n const nextIcon = document.createElement('forge-icon');\n const nextTooltip = document.createElement('forge-tooltip');\n nextButton.setAttribute('part', CALENDAR_CONSTANTS.parts.NEXT_BUTTON);\n nextButtonElement.id = CALENDAR_CONSTANTS.ids.NEXT_BUTTON;\n nextButtonElement.type = 'button';\n nextButtonElement.setAttribute('aria-label', 'Next');\n nextIcon.setAttribute('name', 'keyboard_arrow_right');\n nextTooltip.id = CALENDAR_CONSTANTS.ids.NEXT_BUTTON_TOOLTIP;\n nextTooltip.setAttribute('aria-hidden', 'true');\n nextTooltip.innerText = 'Next';\n nextButton.appendChild(nextButtonElement);\n nextButton.appendChild(nextTooltip);\n nextButtonElement.appendChild(nextIcon);\n\n const monthButton = document.createElement('forge-button');\n const monthButtonElement = document.createElement('button');\n monthButton.setAttribute('part', CALENDAR_CONSTANTS.parts.MONTH_BUTTON);\n monthButtonElement.id = CALENDAR_CONSTANTS.ids.MONTH_BUTTON;\n monthButtonElement.type = 'button';\n monthButtonElement.setAttribute('aria-pressed', 'false');\n monthButton.appendChild(monthButtonElement);\n\n const yearButton = document.createElement('forge-button');\n const yearButtonElement = document.createElement('button');\n yearButton.setAttribute('part', CALENDAR_CONSTANTS.parts.YEAR_BUTTON);\n yearButtonElement.id = CALENDAR_CONSTANTS.ids.YEAR_BUTTON;\n yearButtonElement.type = 'button';\n yearButtonElement.setAttribute('aria-pressed', 'false');\n yearButton.appendChild(yearButtonElement);\n\n // TODO: change order of month and year based on locale\n const centerContainer = document.createElement('div');\n centerContainer.setAttribute('aria-live', 'polite');\n centerContainer.appendChild(monthButton);\n centerContainer.appendChild(yearButton);\n\n element.appendChild(previousButton);\n element.appendChild(centerContainer);\n element.appendChild(nextButton);\n return element;\n}\n\n/** Returns content for the month button. */\nexport function getMonthButtonContent(month: number, locale?: string): HTMLElement[] {\n const span = document.createElement('span');\n const icon = document.createElement('forge-icon');\n span.innerHTML = getLocalizedMonth(month, 'long', locale);\n icon.setAttribute('name', 'arrow_drop_down');\n return [span, icon];\n}\n\n/** Returns content for the year button. */\nexport function getYearButtonContent(year: number, locale?: string): HTMLElement[] {\n const span = document.createElement('span');\n const icon = document.createElement('forge-icon');\n span.innerHTML = getLocalizedYear(year, 'numeric', locale);\n icon.setAttribute('name', 'arrow_drop_down');\n return [span, icon];\n}\n\n/** Returns a hidden, accessible header. */\nexport function getAccessibleHeader(): HTMLElement {\n const element = document.createElement('div');\n element.id = CALENDAR_CONSTANTS.ids.ACCESSIBLE_HEADER;\n element.setAttribute('aria-live', 'polite');\n\n const month = document.createElement('span');\n month.id = CALENDAR_CONSTANTS.ids.ACCESSIBLE_MONTH;\n\n const year = document.createElement('span');\n year.id = CALENDAR_CONSTANTS.ids.ACCESSIBLE_YEAR;\n\n // TODO: change order of month and year based on locale\n element.appendChild(month);\n element.appendChild(year);\n return element;\n}\n\n/** Returns a calendar footer. */\nexport function getFooter(): HTMLElement {\n const element = document.createElement('div');\n element.id = CALENDAR_CONSTANTS.ids.FOOTER;\n element.classList.add(CALENDAR_CONSTANTS.classes.FOOTER);\n element.setAttribute('part', CALENDAR_CONSTANTS.parts.FOOTER);\n return element;\n}\n\n/** Returns a clear button. */\nexport function getClearButton(): HTMLElement {\n const clearButton = document.createElement('forge-button');\n const clearButtonElement = document.createElement('button');\n clearButton.id = CALENDAR_CONSTANTS.ids.CLEAR_BUTTON;\n clearButton.setAttribute('part', CALENDAR_CONSTANTS.parts.CLEAR_BUTTON);\n clearButtonElement.type = 'button';\n clearButtonElement.innerText = 'Clear';\n clearButton.appendChild(clearButtonElement);\n return clearButton;\n}\n\n/** Returns a today button. */\nexport function getTodayButton(): HTMLElement {\n const todayButton = document.createElement('forge-button');\n const todayButtonElement = document.createElement('button');\n todayButton.id = CALENDAR_CONSTANTS.ids.TODAY_BUTTON;\n todayButton.setAttribute('part', CALENDAR_CONSTANTS.parts.TODAY_BUTTON);\n todayButtonElement.type = 'button';\n todayButtonElement.innerText = 'Today';\n todayButton.appendChild(todayButtonElement);\n return todayButton;\n}\n\n/** Checks whether an event originated from a date element, returning the element if it did. */\nexport function eventIncludesDate(evt: Event, includeDisabled?: boolean): HTMLElement | null {\n const element = getEventPath(evt).find(p => p.classList && p.classList.contains(CALENDAR_CONSTANTS.classes.DATE));\n if (!element || (!includeDisabled && element.hasAttribute('disabled'))) {\n return null;\n }\n return element;\n}\n\n/** Checks whether an event originated from an element with the given id, returning the element if it did. */\nexport function eventIncludesElement(evt: Event, id: string): HTMLElement | null {\n const element = getEventPath(evt).find(p => p.id === id);\n return element ?? null;\n}\n\n/** Sets the tabindex on a date element. */\nexport function setTabindexOnElement(element: HTMLElement, value: number, setFocus: boolean, preventFocus?: boolean): void {\n element.tabIndex = preventFocus ? -1 : value;\n element.classList.toggle(CALENDAR_CONSTANTS.classes.MDC_RIPPLE_UPGRADED_FOCUSED, preventFocus && value > -1);\n if (value > -1 && setFocus && !preventFocus) {\n element.focus();\n } else {\n element.blur();\n }\n}\n", "export interface ICalendarDropdownPopupConfig {\n activeChangeCallback?: (id: string) => void;\n closeCallback?: () => void;\n popupClasses?: string | string[] | null;\n}\n\nconst classes = {\n POPUP: `forge-calendar-dropdown__popup`\n};\n\nexport const CALENDAR_DROPDOWN_CONSTANTS = {\n classes\n};\n", "import { addClass, isArray, createVisuallyHiddenElement } from '@tylertech/forge-core';\n\nimport { IPopupComponent, PopupAnimationType, POPUP_CONSTANTS } from '../../popup';\nimport { ICalendarComponent } from '../calendar';\nimport { CALENDAR_CONSTANTS, ICalendarFocusChangeEventData } from '../calendar-constants';\nimport { getDateId } from '../calendar-dom-utils';\nimport { CALENDAR_DROPDOWN_CONSTANTS } from './calendar-dropdown-constants';\n\nexport interface ICalendarDropdown {\n calendar: ICalendarComponent | undefined;\n dropdownElement: IPopupComponent | undefined;\n id: string;\n targetElement: HTMLElement;\n popupClasses: string | string[] | null;\n locale: string | undefined;\n isOpen: boolean;\n activeChangeCallback: ((id: string) => void) | undefined;\n closeCallback: (() => void) | undefined;\n open(config: Partial<ICalendarComponent>): void;\n close(): void;\n destroy(): void;\n propagateKeyboardEvent(evt: KeyboardEvent): void;\n}\n\nexport class CalendarDropdown implements ICalendarDropdown {\n public calendar: ICalendarComponent | undefined;\n public dropdownElement: IPopupComponent | undefined;\n public id: string;\n public targetElement: HTMLElement;\n public activeChangeCallback: ((id: string) => void) | undefined;\n public closeCallback: (() => void) | undefined;\n\n private _announcerElement: HTMLElement | undefined;\n private _popupClasses: string[] = [];\n\n public get isOpen(): boolean {\n return this.dropdownElement?.open ?? false;\n }\n\n public get popupClasses(): string | string[] | null {\n return this._popupClasses;\n }\n public set popupClasses(value: string | string[] | null) {\n this._popupClasses = !!value ? isArray(value) ? [...value as string[]] : [value as string] : [];\n }\n\n public get locale(): string | undefined {\n return this.calendar?.locale;\n }\n public set locale(value: string | undefined) {\n if (this.calendar) {\n this.calendar.locale = value;\n }\n }\n \n constructor(targetElement: HTMLElement, id: string) {\n this.targetElement = targetElement;\n this.id = id;\n }\n\n public close(): void {\n if (!this.dropdownElement) {\n return;\n }\n this.dropdownElement.open = false;\n this.dropdownElement = undefined;\n this.calendar = undefined;\n }\n\n public destroy(): void {\n this.close();\n }\n\n public open(config: Partial<ICalendarComponent>): void {\n // Create calendar element\n this.calendar = this._createCalendar(config);\n this._announcerElement = createVisuallyHiddenElement();\n (this._announcerElement as HTMLElement).id = `${this.id}-activedescendant`;\n\n // Create dropdown element\n this.dropdownElement = this._createDropdown();\n this.dropdownElement.appendChild(this.calendar);\n this.dropdownElement.appendChild(this._announcerElement as HTMLElement);\n this.dropdownElement.static = true;\n\n // Add a listener for when the active descendent is updated\n this.calendar.addEventListener(CALENDAR_CONSTANTS.events.FOCUS_CHANGE, (evt: CustomEvent<ICalendarFocusChangeEventData>) => {\n let id = `${this.id}-activedescendent-`;\n switch (evt.detail.type) {\n case 'date':\n id += getDateId(evt.detail.value as Date);\n break;\n case 'month':\n id += `month-${evt.detail.value.toString()}`;\n break;\n case 'year':\n id += `year-${evt.detail.value.toString()}`;\n break;\n }\n this.activeChangeCallback?.call(this, id);\n if (this._announcerElement) {\n this._announcerElement.id = id;\n this._announcerElement.setAttribute('aria-selected', evt.detail.selected.toString());\n this._announcerElement.textContent = evt.detail.text;\n }\n });\n\n // Open the popup\n this.dropdownElement.open = true;\n\n // Attempt to re-layout the calendar to account for updates in rendering during scale\n // transition within popup (fixes ripple alignment... etc.)\n window.requestAnimationFrame(() => {\n setTimeout(() => {\n if (this.dropdownElement && this.dropdownElement.open && this.calendar && this.calendar.isConnected) {\n this.calendar.layout();\n }\n }, POPUP_CONSTANTS.numbers.ANIMATION_DURATION);\n });\n }\n\n public propagateKeyboardEvent(evt: KeyboardEvent): void {\n this.calendar?.handleKey(evt);\n }\n\n private _createCalendar(config: Partial<ICalendarComponent>): ICalendarComponent {\n const calendarElement = document.createElement(CALENDAR_CONSTANTS.elementName);\n Object.assign(calendarElement, config);\n return calendarElement;\n }\n\n private _createDropdown(): IPopupComponent {\n const popupElement = document.createElement(POPUP_CONSTANTS.elementName) as IPopupComponent;\n popupElement.targetElement = this.targetElement;\n popupElement.placement = 'bottom-start';\n popupElement.animationType = PopupAnimationType.Menu;\n popupElement.classList.add(CALENDAR_DROPDOWN_CONSTANTS.classes.POPUP);\n popupElement.id = this.id;\n addClass(this._popupClasses, popupElement);\n\n popupElement.addEventListener(POPUP_CONSTANTS.events.CLOSE, () => {\n if (this.closeCallback) {\n this.closeCallback();\n }\n });\n\n return popupElement;\n }\n}\n"],
5
- "mappings": "6XAKA,IAAMA,EAA2C,GAAGC,YAE9CC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,EAAe,UAAUO,EAC3B,CAEQ,gBAAgBH,EAAyD,CAC/E,IAAMM,EAAkB,SAAS,cAAcJ,EAAmB,WAAW,EAC7E,cAAO,OAAOI,EAAiBN,CAAM,EAC9BM,CACT,CAEQ,iBAAmC,CACzC,IAAMC,EAAe,SAAS,cAAcF,EAAgB,WAAW,EACvE,OAAAE,EAAa,cAAgB,KAAK,cAClCA,EAAa,UAAY,eACzBA,EAAa,qBACbA,EAAa,UAAU,IAAIC,EAA4B,QAAQ,KAAK,EACpED,EAAa,GAAK,KAAK,GACvBE,EAAS,KAAK,cAAeF,CAAY,EAEzCA,EAAa,iBAAiBF,EAAgB,OAAO,MAAO,IAAM,CAC5D,KAAK,eACP,KAAK,cAAc,CAEvB,CAAC,EAEME,CACT,CACF",
6
- "names": ["elementName", "COMPONENT_NAME_PREFIX", "observedAttributes", "attributes", "__spreadProps", "__spreadValues", "classes", "ids", "weekdayParts", "parts", "selectors", "CALENDAR_MENU_CONSTANTS", "TOOLTIP_CONSTANTS", "events", "numbers", "CALENDAR_CONSTANTS", "DayOfWeek", "CalendarMonthFocus", "getLocalizedDayOfWeek", "day", "format", "locale", "getLocalizedDayOfMonth", "date", "getLocalizedMonth", "month", "getLocalizedYear", "year", "getFirstDayOfWeekForLocale", "localeParts", "language", "region", "saturdayRegions", "sundayRegions", "saturdayLanguages", "sundayLanguages", "getWeekendDaysForLocale", "isRtlLocale", "l", "getDayId", "day", "getDateId", "date", "month", "year", "getEventWrapperId", "getDayElement", "locale", "element", "CALENDAR_CONSTANTS", "getLocalizedDayOfWeek", "getDateRow", "dates", "index", "options", "_a", "d", "getDateSpacerElement", "dateElement", "getDateElement", "rangeElement", "innerElement", "rippleElement", "dayOfWeekPart", "appendToAttribute", "toggleOnAttribute", "getLocalizedDayOfMonth", "getEventWrapperElement", "getEventElement", "event", "overflow", "svg", "getTooltip", "content", "tooltip", "getHeader", "previousButton", "previousButtonElement", "previousIcon", "previousTooltip", "nextButton", "nextButtonElement", "nextIcon", "nextTooltip", "monthButton", "monthButtonElement", "yearButton", "yearButtonElement", "centerContainer", "getMonthButtonContent", "span", "icon", "getLocalizedMonth", "getYearButtonContent", "getLocalizedYear", "getAccessibleHeader", "getFooter", "getClearButton", "clearButton", "clearButtonElement", "getTodayButton", "todayButton", "todayButtonElement", "eventIncludesDate", "evt", "includeDisabled", "getEventPath", "p", "eventIncludesElement", "id", "setTabindexOnElement", "value", "setFocus", "preventFocus", "classes", "CALENDAR_DROPDOWN_CONSTANTS", "CalendarDropdown", "targetElement", "id", "_a", "_b", "value", "isArray", "config", "createVisuallyHiddenElement", "CALENDAR_CONSTANTS", "evt", "getDateId", "POPUP_CONSTANTS", "calendarElement", "popupElement", "CALENDAR_DROPDOWN_CONSTANTS", "addClass"]
7
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{d as Po}from"./chunk.SXCFFYSW.js";import{f as To}from"./chunk.RBNVMLAN.js";import{b as go}from"./chunk.4LQ2NTZ6.js";import{h as uo}from"./chunk.TCSHDF2Y.js";import{f as So}from"./chunk.H2YBRNRH.js";import{d as Bo}from"./chunk.CXBJZFPQ.js";import{q as so}from"./chunk.BKMQZWKT.js";import{c as ao}from"./chunk.I2I5IB2J.js";import{e as Ao}from"./chunk.COJVSTL3.js";import{d as co}from"./chunk.GGAQ7OYT.js";import{d as lo}from"./chunk.F6EDGAQL.js";import{b as xo}from"./chunk.VLGCUBD3.js";import{d as fo}from"./chunk.HPZPQEQO.js";import{d as eo}from"./chunk.4A3TT6M7.js";import{d as no}from"./chunk.CAVS4IZD.js";import{b as to}from"./chunk.SGTKZRDH.js";import{d as mo}from"./chunk.5X4XFGED.js";import{d as io}from"./chunk.YGOCNNDU.js";import{d as Co}from"./chunk.UDS5LEZM.js";import{b as po}from"./chunk.WEE3TIAW.js";import{b as ro}from"./chunk.EUUVSENP.js";import{b as Q}from"./chunk.MKMYJBTE.js";import{b as U}from"./chunk.CPK2WOYA.js";import{j as _}from"./chunk.R5CGGSWN.js";import{d as j}from"./chunk.ETYBXRED.js";import{b as G}from"./chunk.RFEKZKCP.js";import{b as H}from"./chunk.73E6MXUV.js";import{d as N}from"./chunk.FAWO64B4.js";import{d as K}from"./chunk.JRZK5VLL.js";import{d as y}from"./chunk.6HFT42UY.js";import{e as v}from"./chunk.7D3BQOND.js";import{d as R}from"./chunk.2AWJ5K5A.js";import{b as O}from"./chunk.6LRCYRAL.js";import{f as V}from"./chunk.XYZOE4IZ.js";import{d as F}from"./chunk.ON3EQDKJ.js";import{d as E}from"./chunk.RW4IRHKZ.js";import{E as L}from"./chunk.JSHESOOI.js";import{i as d}from"./chunk.HUWXXN3H.js";import{b as e}from"./chunk.H5IFZCUL.js";import{c as l}from"./chunk.5G4VJQ3D.js";import{d as B}from"./chunk.24PTHGK4.js";import{c as u}from"./chunk.6FL7PGUA.js";import{e as c}from"./chunk.CUYPIIVW.js";import{d as A}from"./chunk.GLLI6LUN.js";import{d as D}from"./chunk.PFLC356W.js";import{a as w}from"./chunk.WVU4LCVC.js";import{a as k}from"./chunk.4APGDQHF.js";import{c as h}from"./chunk.VWP73RWI.js";import{d as M}from"./chunk.ZCCNMTWC.js";import{d as s}from"./chunk.2QGMOZJ4.js";import{d as ho}from"./chunk.ALUK4H2X.js";import{d as p}from"./chunk.EP55QP2N.js";import{d as t}from"./chunk.QFAPYIDC.js";import{d as m}from"./chunk.BW7ZMZQ3.js";import{e as z}from"./chunk.LK6LMLFN.js";import{d as Y}from"./chunk.XUVOM67L.js";import{d as q}from"./chunk.2DA6C7YP.js";import{b as a}from"./chunk.RQG6GVOI.js";import{c as C}from"./chunk.PXCD7GAU.js";import{e as i}from"./chunk.D3SGI3YM.js";import{d as I}from"./chunk.B3LPXCVL.js";import{b as n}from"./chunk.P73BXRKY.js";import{b as W}from"./chunk.3O5MGVPT.js";import{d as X}from"./chunk.YTUUR7RZ.js";import{d as P}from"./chunk.JF2PQLVF.js";import{d as oo}from"./chunk.2MGFQWS6.js";import{d as $}from"./chunk.L34DJOES.js";import{b as Z}from"./chunk.EOZITZSP.js";import{d as S}from"./chunk.TJNHRZ2A.js";import{c as b}from"./chunk.DNWMURCG.js";import{e as x}from"./chunk.5FNTCP5H.js";import{a as g}from"./chunk.ZYYEGG2Z.js";import{f}from"./chunk.EC5JFSHR.js";import{e as J}from"./chunk.4RCTVRWU.js";import{d as T}from"./chunk.CNBHQSMC.js";import{l as r}from"./chunk.PPIMG5KT.js";import{b as o}from"./chunk.LJLEPTLU.js";var ko=[p,S,s,P,A,D,M,b,ho,E,F,L,O,h,c,u,B,I,V,y,v,R,e,G,H,N,t,K,Q,io,r,g,U,_,j,n,C,i,q,z,J,W,X,Y,oo,$,m,mo,to,ro,fo,x,Co,k,f,po,no,eo,a,xo,ao,Ao,co,lo,w,So,Bo,uo,l,so,Po,Z,T,To,go,d];function Or(){o(ko)}export{Or as a};
7
- /**
8
- * @license
9
- * Copyright (c) 2022 Tyler Technologies, Inc.
10
- * License: Apache-2.0
11
- */
12
- //# sourceMappingURL=chunk.PZFMRFNV.js.map
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{e as E}from"./chunk.DONAMICM.js";import{d as f}from"./chunk.DBKVUCUQ.js";import{a as t}from"./chunk.IX2UHMIM.js";import{a as m}from"./chunk.CAXRISYR.js";import{a as r}from"./chunk.KTGSZEAG.js";import{g as n,l as g}from"./chunk.LJLEPTLU.js";import{f as _,g as b,m as u,o as L,s as c,t as h,z as v}from"./chunk.4LA6HEA7.js";import{k as d}from"./chunk.J2M2MXP2.js";import{f as o}from"./chunk.MCIQXNKY.js";var S=class extends m{constructor(e){super(e);this._valueChangeListeners=[]}initialize(e){this._rootElement=n(this._component,e),this._labelSlot=n(this._component,"slot[name=label]"),this._leadingSlot=n(this._component,"slot[name=leading]"),this._trailingSlot=n(this._component,"slot[name=trailing]"),this._addonEndSlot=n(this._component,"slot[name=addon-end]"),this._inputElement=this._component.querySelector("input:not([type=checkbox]):not([type=radio])"),this.detectLabel()}destroy(){this._inputMutationObserver&&this._inputMutationObserver.disconnect()}hasLabel(){return!!this._labelElement}ensureSlottedLabel(){this._labelElement.slot="label"}ensureLabelOrder(){if(this._labelElement){let e=Array.from(this._component.children);e.length>1&&e.indexOf(this._labelElement)<e.indexOf(this._inputElement)&&this._component.appendChild(this._labelElement)}}addLabelSlotListener(e){this._labelSlot.addEventListener("slotchange",e)}removeLabelSlotListener(e){this._labelSlot&&this._labelSlot.removeEventListener("slotchange",e)}addLeadingSlotListener(e){this._leadingSlot.addEventListener("slotchange",e)}removeLeadingSlotListener(e){this._leadingSlot&&this._leadingSlot.removeEventListener("slotchange",e)}addTrailingSlotListener(e){this._trailingSlot.addEventListener("slotchange",e)}removeTrailingSlotListener(e){this._trailingSlot&&this._trailingSlot.removeEventListener("slotchange",e)}addAddonEndSlotListener(e){this._addonEndSlot.addEventListener("slotchange",e)}removeAddonEndSlotListener(e){this._addonEndSlot&&this._addonEndSlot.removeEventListener("slotchange",e)}addInputListener(e,s){this._inputElement.addEventListener(e,s)}removeInputListener(e,s){this._inputElement&&this._inputElement.removeEventListener(e,s)}setValueChangedListener(e,s){this.destroyValueChangeListener();let a=E(e,this._inputElement,"value",s);this._valueChangeListeners.push(a)}destroyValueChangeListener(){this._valueChangeListeners.forEach(e=>e())}detectLabel(){this._labelElement=this._component.querySelector("label")}initializeFloatingLabel(){return new f(this._labelElement)}inputHasValue(){return this._inputElement.value?this._inputElement.value.trim().length>0:!1}fieldHasValue(){return this.inputHasValue()}hasPlaceholder(){return this._inputElement.placeholder?this._inputElement.placeholder.trim().length>0:!1}inputHasFocus(e){return this._inputElement===e||this._inputElement===c(this._component.ownerDocument)}setLabelClass(e){this._labelElement&&this._labelElement.classList.add(e)}removeLabelClass(e){this._labelElement&&this._labelElement.classList.remove(e)}isLabelFloating(){return this._component.hasAttribute(t.attributes.HOST_LABEL_FLOATING)}setRoomy(e){h(this._rootElement,e,t.classes.ROOMY)}setDense(e){h(this._rootElement,e,t.classes.DENSE)}hasLeadingNodes(){return this._leadingSlot?this._leadingSlot.assignedNodes().length>0:!1}hasTrailingNodes(){return this._trailingSlot?this._trailingSlot.assignedNodes().length>0:!1}hasAddonEndNodes(){return this._addonEndSlot?this._addonEndSlot.assignedNodes().length>0:!1}setInputClass(e){this._inputElement.classList.add(e)}removeInputClass(e){this._inputElement.classList.remove(e)}setRootClass(e){_(e,this._rootElement)}removeRootClass(e){b(e,this._rootElement)}setInputAttributeObserver(e){this._inputMutationObserver=v(this._inputElement,e,t.observedInputAttributes)}isDisabled(){return this._inputElement.hasAttribute("disabled")}isReadonly(){return this._inputElement.hasAttribute("readonly")}getLabelWidth(e,s){return L(this._labelElement.innerText,{fontSize:e,fontFamily:s})}getLabelFontMetrics(){let e=getComputedStyle(this._labelElement);return{fontSize:parseInt(e.fontSize||"16",10),fontFamily:e.fontFamily||"Roboto"}}};var y=class{constructor(i){this._adapter=i;this._density="default";this._shape="default";this._invalid=!1;this._required=!1;this._floatLabelType="auto";this._isInitialized=!1;this._labelSlotListener=e=>this._onLabelSlotChanged(e),this._leadingSlotListener=e=>this._onLeadingSlotChanged(e),this._trailingSlotListener=e=>this._onTrailingSlotChanged(e),this._addonEndSlotListener=e=>this._onAddonEndSlotChanged(e),this._focusListener=e=>this._onFocus(e),this._blurListener=e=>this._onBlur(e),this._valueChangedListener=e=>this._onValueChanged(e),this._inputAttributeChangedListener=(e,s)=>this._onInputAttributeChanged(e,s)}initialize(){this._adapter.initialize(""),this._adapter.hasLabel()&&this._adapter.ensureSlottedLabel(),this._initializeLabel(),this._adapter.hasPlaceholder()&&(this._floatLabelType="always"),this._detectSlottedContent(),this._adapter.addLabelSlotListener(this._labelSlotListener),this._adapter.addLeadingSlotListener(this._leadingSlotListener),this._adapter.addTrailingSlotListener(this._trailingSlotListener),this._adapter.addAddonEndSlotListener(this._addonEndSlotListener),this._adapter.setValueChangedListener(this,this._valueChangedListener),this._adapter.addInputListener("focus",this._focusListener),this._adapter.addInputListener("blur",this._blurListener),this._adapter.setInputAttributeObserver(this._inputAttributeChangedListener),this._applyDensity(),this._setShapeType(),this._setValidity(),this._adapter.isDisabled()?this._adapter.setRootClass(t.classes.DISABLED):this._adapter.removeRootClass(t.classes.DISABLED),this._adapter.isReadonly()?this._adapter.setRootClass(t.classes.READONLY):this._adapter.removeRootClass(t.classes.READONLY),this._floatLabelType==="always"&&this.floatLabel(!0),this._isInitialized=!0}disconnect(){this._isInitialized=!1,this._adapter.destroy(),this._adapter.removeHostAttribute(t.attributes.HOST_LABEL_FLOATING),this._adapter.removeRootClass(t.classes.LABEL),this._floatingLabel&&(this._floatingLabel.destroy(),this._floatingLabel=void 0),this._adapter.removeLabelSlotListener(this._labelSlotListener),this._adapter.removeLeadingSlotListener(this._leadingSlotListener),this._adapter.removeTrailingSlotListener(this._trailingSlotListener),this._adapter.removeAddonEndSlotListener(this._addonEndSlotListener),this._adapter.removeInputListener("focus",this._focusListener),this._adapter.removeInputListener("blur",this._blurListener),this._adapter.destroyValueChangeListener()}get density(){return this._density}set density(i){if(this._density!==i){let e=this._density;this._density=i,this._isInitialized&&(this._applyDensity(),this._density==="dense"?this._destroyFloatingLabel({cancelFloat:!0}):e==="dense"&&this._initializeLabel()),this._adapter.setHostAttribute(t.attributes.DENSITY,this._density.toString())}}get floatLabelType(){return this._floatLabelType}set floatLabelType(i){this._floatLabelType!==i&&(this._floatLabelType=i,this._isInitialized&&this.floatLabel(this._floatLabelType==="always"),this._adapter.setHostAttribute(t.attributes.FLOAT_LABEL_TYPE,this._floatLabelType))}get shape(){return this._shape}set shape(i){this._shape!==i&&(this._shape=i,this._isInitialized&&this._setShapeType(),this._adapter.setHostAttribute(t.attributes.SHAPE,this._shape))}get invalid(){return this._invalid}set invalid(i){this._invalid!==i&&(this._invalid=i,this._isInitialized&&this._setValidity())}get required(){return this._required}set required(i){this._required!==i&&(this._required=i,this._isInitialized&&this._setValidity(),this._required?this._adapter.setHostAttribute(t.attributes.REQUIRED):this._adapter.removeHostAttribute(t.attributes.REQUIRED))}floatLabel(i){var e,s;if(((e=this._floatingLabel)==null?void 0:e.isFloating)===i||this._adapter.isLabelFloating()===i){i&&this._adapter.setHostAttribute(t.attributes.HOST_LABEL_FLOATING,"");return}if(!i&&this._floatLabelType==="always"){(s=this._floatingLabel)==null||s.float(!0,!0),this._adapter.setHostAttribute(t.attributes.HOST_LABEL_FLOATING,"");return}this._floatingLabel&&(this._floatingLabel.float(i,this._floatLabelType==="always"),i?(this._adapter.setInputClass(t.classes.INPUT_FOCUSED),this._adapter.setHostAttribute(t.attributes.HOST_LABEL_FLOATING,"")):(this._adapter.removeInputClass(t.classes.INPUT_FOCUSED),this._adapter.removeHostAttribute(t.attributes.HOST_LABEL_FLOATING)))}_onLabelSlotChanged(i){this._initializeLabel()}_onLeadingSlotChanged(i){this._detectLeadingContent()}_onTrailingSlotChanged(i){this._detectTrailingContent()}_onAddonEndSlotChanged(i){this._detectAddonEndContent()}_initializeLabel(){var i;(i=this._floatingLabel)==null||i.destroy(),this._adapter.detectLabel(),this._adapter.hasLabel()&&this._density!=="dense"?(this._floatingLabel=this._adapter.initializeFloatingLabel(),this._adapter.ensureLabelOrder(),this.floatLabel(this._floatLabelType==="always"||this._adapter.fieldHasValue()||this._adapter.hasPlaceholder()),this._adapter.setRootClass(t.classes.LABEL)):this._destroyFloatingLabel()}_destroyFloatingLabel({cancelFloat:i=!1}={}){var e;this._adapter.removeHostAttribute(t.attributes.HOST_LABEL_FLOATING),this._adapter.removeRootClass(t.classes.LABEL),(e=this._floatingLabel)==null||e.destroy({cancelFloat:i}),this._floatingLabel=void 0}_detectLeadingContent(){this._adapter.hasLeadingNodes()?this._adapter.setRootClass(t.classes.LEADING):this._adapter.removeRootClass(t.classes.LEADING)}_detectTrailingContent(){this._adapter.hasTrailingNodes()?this._adapter.setRootClass(t.classes.TRAILING):this._adapter.removeRootClass(t.classes.TRAILING)}_detectAddonEndContent(){this._adapter.hasAddonEndNodes()?this._adapter.setRootClass(t.classes.ADDON_END):this._adapter.removeRootClass(t.classes.ADDON_END)}_detectSlottedContent(){this._detectLeadingContent(),this._detectTrailingContent(),this._detectAddonEndContent()}_onFocus(i){this._adapter.setRootClass(t.classes.FOCUSED),this._adapter.setLabelClass(t.classes.LABEL_FOCUSED),this.floatLabel(!0)}_onBlur(i){this._adapter.inputHasFocus(i.relatedTarget)||(this._adapter.removeRootClass(t.classes.FOCUSED),this._adapter.removeLabelClass(t.classes.LABEL_FOCUSED),!this._adapter.fieldHasValue()&&!this._adapter.hasPlaceholder()&&(this.floatLabel(!1),this._adapter.removeHostAttribute(t.attributes.HOST_LABEL_FLOATING)))}_onValueChanged(i){this._adapter.fieldHasValue()?this.floatLabel(!0):!this._adapter.inputHasFocus()&&!this._adapter.hasPlaceholder()&&this.floatLabel(!1)}_onInputAttributeChanged(i,e){switch(this._adapter.isDisabled()?(this._adapter.setRootClass(t.classes.DISABLED),this._adapter.removeRootClass(t.classes.FOCUSED),this._adapter.removeInputClass(t.classes.INPUT_FOCUSED),this._adapter.removeLabelClass(t.classes.LABEL_FOCUSED),!this._adapter.fieldHasValue()&&!this._adapter.hasPlaceholder()&&this._floatingLabel&&this.floatLabel(!1)):this._adapter.removeRootClass(t.classes.DISABLED),this._adapter.isReadonly()?this._adapter.setRootClass(t.classes.READONLY):(this._adapter.removeRootClass(t.classes.READONLY),this._adapter.removeRootClass(t.classes.FOCUSED),this._adapter.removeInputClass(t.classes.INPUT_FOCUSED)),i){case"readonly":case"disabled":this._adapter.inputHasFocus()&&(this._adapter.setRootClass(t.classes.FOCUSED),this._adapter.setInputClass(t.classes.INPUT_FOCUSED),this._adapter.setLabelClass(t.classes.LABEL_FOCUSED));break;case"value":this._floatingLabel&&this.floatLabel(this._adapter.fieldHasValue());break;case"placeholder":if(this._floatingLabel){let s=!!e&&!!e.trim()||this._adapter.fieldHasValue();s!==this._floatingLabel.isFloating&&this.floatLabel(s)}break}}_setShapeType(){this._shape==="rounded"?this._adapter.setRootClass(t.classes.SHAPE_ROUNDED):this._adapter.removeRootClass(t.classes.SHAPE_ROUNDED)}_setValidity(){this._invalid?this._adapter.setRootClass(t.classes.INVALID):this._adapter.removeRootClass(t.classes.INVALID),this._required?this._adapter.setRootClass(t.classes.REQUIRED):this._adapter.removeRootClass(t.classes.REQUIRED)}_applyDensity(){this._adapter.setRoomy(this._density==="roomy"),this._adapter.setDense(this._density==="dense")}};var l=class extends g{constructor(){super()}static get observedAttributes(){return[t.attributes.DENSITY,t.attributes.FLOAT_LABEL_TYPE,t.attributes.SHAPE,t.attributes.INVALID,t.attributes.REQUIRED]}connectedCallback(){this.querySelector(t.selectors.INPUT)?this._initialize():u(this,t.selectors.INPUT).then(()=>this._initialize())}_initialize(){this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(e,s,a){switch(e){case t.attributes.DENSITY:this.density=a;break;case t.attributes.FLOAT_LABEL_TYPE:this.floatLabelType=a;break;case t.attributes.SHAPE:this.shape=a;break;case t.attributes.INVALID:this.invalid=d(a);break;case t.attributes.REQUIRED:this.required=d(a);break}}floatLabel(e){this._foundation.floatLabel(e)}};o([r()],l.prototype,"density",2),o([r()],l.prototype,"floatLabelType",2),o([r()],l.prototype,"shape",2),o([r()],l.prototype,"invalid",2),o([r()],l.prototype,"required",2);export{S as a,y as b,l as c};
7
- //# sourceMappingURL=chunk.UVFZTSBV.js.map