@tylertech/forge 3.0.0-next.15 → 3.0.0-next.17

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 (826) hide show
  1. package/custom-elements.json +52750 -45172
  2. package/dist/esm/accordion/index.js +1 -1
  3. package/dist/esm/app-bar/app-bar/index.js +1 -1
  4. package/dist/esm/app-bar/help-button/index.js +1 -1
  5. package/dist/esm/app-bar/index.js +1 -1
  6. package/dist/esm/app-bar/menu-button/index.js +1 -1
  7. package/dist/esm/app-bar/notification-button/index.js +1 -1
  8. package/dist/esm/app-bar/profile-button/index.js +1 -1
  9. package/dist/esm/app-bar/search/index.js +1 -1
  10. package/dist/esm/autocomplete/index.js +1 -1
  11. package/dist/esm/avatar/index.js +1 -1
  12. package/dist/esm/backdrop/index.js +1 -1
  13. package/dist/esm/badge/index.js +1 -1
  14. package/dist/esm/banner/index.js +1 -1
  15. package/dist/esm/bottom-sheet/index.js +1 -1
  16. package/dist/esm/busy-indicator/index.js +1 -1
  17. package/dist/esm/button/index.js +1 -1
  18. package/dist/esm/button-area/index.js +1 -1
  19. package/dist/esm/button-toggle/button-toggle/index.js +1 -1
  20. package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
  21. package/dist/esm/button-toggle/index.js +1 -1
  22. package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
  23. package/dist/esm/calendar/calendar-menu/index.js +1 -1
  24. package/dist/esm/calendar/index.js +1 -1
  25. package/dist/esm/card/index.js +1 -1
  26. package/dist/esm/checkbox/index.js +1 -1
  27. package/dist/esm/chip-field/index.js +1 -1
  28. package/dist/esm/chips/chip/index.js +1 -1
  29. package/dist/esm/chips/chip-set/index.js +1 -1
  30. package/dist/esm/chips/index.js +1 -1
  31. package/dist/esm/chunks/chunk.253H47GA.js +7 -0
  32. package/dist/esm/chunks/chunk.253H47GA.js.map +7 -0
  33. package/dist/esm/chunks/chunk.2K3T63I2.js +7 -0
  34. package/dist/esm/chunks/{chunk.NVR6KN2B.js.map → chunk.2K3T63I2.js.map} +1 -1
  35. package/dist/esm/chunks/{chunk.KWBYYSH3.js → chunk.2NGPMBVU.js} +2 -2
  36. package/dist/esm/chunks/chunk.2UVBQKJI.js +7 -0
  37. package/dist/esm/chunks/{chunk.4XN2WGMP.js.map → chunk.2UVBQKJI.js.map} +2 -2
  38. package/dist/esm/chunks/chunk.3PHNRX5D.js +7 -0
  39. package/dist/esm/chunks/chunk.3PHNRX5D.js.map +7 -0
  40. package/dist/esm/chunks/chunk.42VNZ74O.js +7 -0
  41. package/dist/esm/chunks/chunk.42VNZ74O.js.map +7 -0
  42. package/dist/esm/chunks/chunk.4JEBLMI3.js +7 -0
  43. package/dist/esm/chunks/{chunk.Q2Q626DG.js.map → chunk.4JEBLMI3.js.map} +1 -1
  44. package/dist/esm/chunks/chunk.4X4SSZQU.js +7 -0
  45. package/dist/esm/chunks/{chunk.YMSX4F3J.js.map → chunk.4X4SSZQU.js.map} +1 -1
  46. package/dist/esm/chunks/chunk.53HPDCFR.js +7 -0
  47. package/dist/esm/chunks/chunk.53HPDCFR.js.map +7 -0
  48. package/dist/esm/chunks/{chunk.L45HXBDS.js → chunk.5BQT3E7Y.js} +2 -2
  49. package/dist/esm/chunks/chunk.5YTYVHYR.js +7 -0
  50. package/dist/esm/chunks/chunk.5YTYVHYR.js.map +7 -0
  51. package/dist/esm/chunks/chunk.6J27XSTE.js +7 -0
  52. package/dist/esm/chunks/chunk.6J27XSTE.js.map +7 -0
  53. package/dist/esm/chunks/chunk.6JR2HMWB.js +7 -0
  54. package/dist/esm/chunks/chunk.6JR2HMWB.js.map +7 -0
  55. package/dist/esm/chunks/chunk.6P4G73VL.js +7 -0
  56. package/dist/esm/chunks/chunk.6P4G73VL.js.map +7 -0
  57. package/dist/esm/chunks/chunk.6RZCV4ZV.js +7 -0
  58. package/dist/esm/chunks/{chunk.W7BP2DDU.js.map → chunk.6RZCV4ZV.js.map} +2 -2
  59. package/dist/esm/chunks/chunk.6YDMW2GO.js +7 -0
  60. package/dist/esm/chunks/{chunk.FQUZWINF.js.map → chunk.6YDMW2GO.js.map} +2 -2
  61. package/dist/esm/chunks/chunk.7QO5JEOC.js +7 -0
  62. package/dist/esm/chunks/{chunk.FXGY5IVK.js.map → chunk.7QO5JEOC.js.map} +2 -2
  63. package/dist/esm/chunks/chunk.AQOLBID6.js +7 -0
  64. package/dist/esm/chunks/{chunk.5KYKGNGY.js.map → chunk.AQOLBID6.js.map} +1 -1
  65. package/dist/esm/chunks/{chunk.BAQYPAUM.js → chunk.AWEDY45N.js} +2 -2
  66. package/dist/esm/chunks/chunk.CLODJYSW.js +7 -0
  67. package/dist/esm/chunks/chunk.CLODJYSW.js.map +7 -0
  68. package/dist/esm/chunks/chunk.CPD4RUF2.js +7 -0
  69. package/dist/esm/chunks/{chunk.OTUEB7SD.js.map → chunk.CPD4RUF2.js.map} +1 -1
  70. package/dist/esm/chunks/chunk.D7L2IMHJ.js +7 -0
  71. package/dist/esm/chunks/chunk.D7L2IMHJ.js.map +7 -0
  72. package/dist/esm/chunks/chunk.DFRD7A2Y.js +7 -0
  73. package/dist/esm/chunks/{chunk.YA5OQD37.js.map → chunk.DFRD7A2Y.js.map} +2 -2
  74. package/dist/esm/chunks/chunk.DOAQODLZ.js +7 -0
  75. package/dist/esm/chunks/chunk.DOAQODLZ.js.map +7 -0
  76. package/dist/esm/chunks/chunk.EPVNVBZI.js +7 -0
  77. package/dist/esm/chunks/chunk.EPVNVBZI.js.map +7 -0
  78. package/dist/esm/chunks/chunk.F2327OUE.js +7 -0
  79. package/dist/esm/chunks/chunk.F2327OUE.js.map +7 -0
  80. package/dist/esm/chunks/chunk.FTADCSFT.js +7 -0
  81. package/dist/esm/chunks/chunk.FTADCSFT.js.map +7 -0
  82. package/dist/esm/chunks/chunk.GAHE4QVB.js +7 -0
  83. package/dist/esm/chunks/{chunk.X3QZY7V4.js.map → chunk.GAHE4QVB.js.map} +1 -1
  84. package/dist/esm/chunks/chunk.GDKJ4RZX.js +7 -0
  85. package/dist/esm/chunks/chunk.GDKJ4RZX.js.map +7 -0
  86. package/dist/esm/chunks/{chunk.O6MGA3XK.js → chunk.GFKYBECY.js} +2 -2
  87. package/dist/esm/chunks/chunk.GYGIU62J.js +7 -0
  88. package/dist/esm/chunks/{chunk.JEZR25US.js.map → chunk.GYGIU62J.js.map} +1 -1
  89. package/dist/esm/chunks/chunk.H6AG3EFX.js +7 -0
  90. package/dist/esm/chunks/{chunk.7PVVZC7P.js.map → chunk.H6AG3EFX.js.map} +3 -3
  91. package/dist/esm/chunks/{chunk.JHELTQKA.js → chunk.HBFU4EGB.js} +2 -2
  92. package/dist/esm/chunks/{chunk.JHELTQKA.js.map → chunk.HBFU4EGB.js.map} +2 -2
  93. package/dist/esm/chunks/chunk.HP4333ZN.js +7 -0
  94. package/dist/esm/chunks/{chunk.KGHABAFA.js.map → chunk.HP4333ZN.js.map} +1 -1
  95. package/dist/esm/chunks/chunk.HPCXVNG6.js +7 -0
  96. package/dist/esm/chunks/{chunk.CZOABXEQ.js.map → chunk.HPCXVNG6.js.map} +3 -3
  97. package/dist/esm/chunks/{chunk.WMP2OLMG.js → chunk.IC4DLKE3.js} +2 -2
  98. package/dist/esm/chunks/{chunk.WMP2OLMG.js.map → chunk.IC4DLKE3.js.map} +2 -2
  99. package/dist/esm/chunks/{chunk.MHH26REX.js → chunk.IDB4KFSQ.js} +2 -2
  100. package/dist/esm/chunks/chunk.INQZNXG6.js +7 -0
  101. package/dist/esm/chunks/chunk.INQZNXG6.js.map +7 -0
  102. package/dist/esm/chunks/chunk.JBQXD3FJ.js +7 -0
  103. package/dist/esm/chunks/{chunk.XQLQ73NG.js.map → chunk.JBQXD3FJ.js.map} +1 -1
  104. package/dist/esm/chunks/chunk.JLDKNU5Q.js +7 -0
  105. package/dist/esm/chunks/{chunk.LK6QHLW2.js.map → chunk.JLDKNU5Q.js.map} +1 -1
  106. package/dist/esm/chunks/chunk.JMIUB3S3.js +7 -0
  107. package/dist/esm/chunks/{chunk.Y4ZS3A6F.js.map → chunk.JMIUB3S3.js.map} +2 -2
  108. package/dist/esm/chunks/chunk.JPOTN7LL.js +177 -0
  109. package/dist/esm/chunks/{chunk.AVRBHXDT.js.map → chunk.JPOTN7LL.js.map} +1 -1
  110. package/dist/esm/chunks/chunk.JRROGJ2G.js +7 -0
  111. package/dist/esm/chunks/chunk.JRROGJ2G.js.map +7 -0
  112. package/dist/esm/chunks/chunk.KD4DVSJR.js +15 -0
  113. package/dist/esm/chunks/chunk.KD4DVSJR.js.map +7 -0
  114. package/dist/esm/chunks/{chunk.PRJHBUU2.js → chunk.KPNGLSCU.js} +1 -1
  115. package/dist/esm/chunks/chunk.KPNGLSCU.js.map +7 -0
  116. package/dist/esm/chunks/chunk.KVPKVWCZ.js +7 -0
  117. package/dist/esm/chunks/{chunk.UOEJCU6R.js.map → chunk.KVPKVWCZ.js.map} +1 -1
  118. package/dist/esm/chunks/chunk.KWP42KR7.js +7 -0
  119. package/dist/esm/chunks/{chunk.JZ27GPZJ.js.map → chunk.KWP42KR7.js.map} +2 -2
  120. package/dist/esm/chunks/chunk.KYACLC66.js +7 -0
  121. package/dist/esm/chunks/{chunk.Q74SG6BV.js.map → chunk.KYACLC66.js.map} +1 -1
  122. package/dist/esm/chunks/chunk.KZMXTOLO.js +15 -0
  123. package/dist/esm/chunks/chunk.KZMXTOLO.js.map +7 -0
  124. package/dist/esm/chunks/chunk.L5OB7WM2.js +7 -0
  125. package/dist/esm/chunks/{chunk.BIVQ4GTK.js.map → chunk.L5OB7WM2.js.map} +1 -1
  126. package/dist/esm/chunks/chunk.L7BSLZCB.js +7 -0
  127. package/dist/esm/chunks/{chunk.AIPDMLJD.js.map → chunk.L7BSLZCB.js.map} +1 -1
  128. package/dist/esm/chunks/{chunk.URKQICJD.js → chunk.LDHY3O6H.js} +2 -2
  129. package/dist/esm/chunks/{chunk.KDJZN6EW.js → chunk.LEN33O6V.js} +2 -2
  130. package/dist/esm/chunks/chunk.LFLIYBAB.js +7 -0
  131. package/dist/esm/chunks/chunk.LFLIYBAB.js.map +7 -0
  132. package/dist/esm/chunks/{chunk.42YDA5FH.js → chunk.LXFL2C62.js} +2 -2
  133. package/dist/esm/chunks/chunk.ME7ICFCZ.js +7 -0
  134. package/dist/esm/chunks/{chunk.FSILMO6U.js.map → chunk.ME7ICFCZ.js.map} +1 -1
  135. package/dist/esm/chunks/{chunk.BC7WB5RG.js → chunk.MMMG4MZ3.js} +2 -2
  136. package/dist/esm/chunks/chunk.MTZOQQXR.js +7 -0
  137. package/dist/esm/chunks/chunk.MTZOQQXR.js.map +7 -0
  138. package/dist/esm/chunks/chunk.NBYCIDFC.js +7 -0
  139. package/dist/esm/chunks/{chunk.ONII3BV3.js.map → chunk.NBYCIDFC.js.map} +2 -2
  140. package/dist/esm/chunks/chunk.ND2X5OQ4.js +7 -0
  141. package/dist/esm/chunks/chunk.ND2X5OQ4.js.map +7 -0
  142. package/dist/esm/chunks/chunk.NHOGZDLN.js +7 -0
  143. package/dist/esm/chunks/chunk.NHOGZDLN.js.map +7 -0
  144. package/dist/esm/chunks/chunk.NHYJMP25.js +7 -0
  145. package/dist/esm/chunks/{chunk.EMCY55MX.js.map → chunk.NHYJMP25.js.map} +2 -2
  146. package/dist/esm/chunks/chunk.NPCUVYWP.js +7 -0
  147. package/dist/esm/chunks/chunk.NPCUVYWP.js.map +7 -0
  148. package/dist/esm/chunks/chunk.O47OSK6Z.js +7 -0
  149. package/dist/esm/chunks/{chunk.THNCYT3E.js.map → chunk.O47OSK6Z.js.map} +2 -2
  150. package/dist/esm/chunks/{chunk.BTWJPE4Y.js → chunk.O5HBMTSZ.js} +2 -2
  151. package/dist/esm/chunks/chunk.O7DID7GP.js +7 -0
  152. package/dist/esm/chunks/{chunk.BS73Y6IN.js.map → chunk.O7DID7GP.js.map} +1 -1
  153. package/dist/esm/chunks/chunk.OAZXY4Q5.js +7 -0
  154. package/dist/esm/chunks/{chunk.GGQL3OZB.js.map → chunk.OAZXY4Q5.js.map} +1 -1
  155. package/dist/esm/chunks/{chunk.MTSWCXTY.js → chunk.OD54UG2G.js} +2 -2
  156. package/dist/esm/chunks/{chunk.NBLL7VAA.js → chunk.OJFSECZE.js} +2 -2
  157. package/dist/esm/chunks/chunk.OJHNLDNM.js +7 -0
  158. package/dist/esm/chunks/{chunk.VG452D3L.js.map → chunk.OJHNLDNM.js.map} +1 -1
  159. package/dist/esm/chunks/{chunk.7LOMI6J3.js → chunk.OR5GB6X3.js} +2 -2
  160. package/dist/esm/chunks/chunk.OVDO5RVX.js +7 -0
  161. package/dist/esm/chunks/chunk.OVDO5RVX.js.map +7 -0
  162. package/dist/esm/chunks/chunk.PGSL6NFZ.js +7 -0
  163. package/dist/esm/chunks/{chunk.6FUXTHO6.js.map → chunk.PGSL6NFZ.js.map} +1 -1
  164. package/dist/esm/chunks/chunk.PR76A5VF.js +7 -0
  165. package/dist/esm/chunks/{chunk.KUNIEX72.js.map → chunk.PR76A5VF.js.map} +1 -1
  166. package/dist/esm/chunks/chunk.PZAL7VQF.js +7 -0
  167. package/dist/esm/chunks/{chunk.AEO2X5OZ.js.map → chunk.PZAL7VQF.js.map} +1 -1
  168. package/dist/esm/chunks/chunk.QQUSMJIM.js +7 -0
  169. package/dist/esm/chunks/{chunk.O6F4U4VY.js.map → chunk.QQUSMJIM.js.map} +1 -1
  170. package/dist/esm/chunks/chunk.RCYIHHYO.js +7 -0
  171. package/dist/esm/chunks/{chunk.447QNYAZ.js.map → chunk.RCYIHHYO.js.map} +1 -1
  172. package/dist/esm/chunks/{chunk.AR6YUJUH.js → chunk.RKG66YKS.js} +2 -2
  173. package/dist/esm/chunks/{chunk.HRGTAVNA.js → chunk.RKIJTSSL.js} +1 -1
  174. package/dist/esm/chunks/chunk.RLOZYTNN.js +7 -0
  175. package/dist/esm/chunks/{chunk.LYZXJYTW.js.map → chunk.RLOZYTNN.js.map} +1 -1
  176. package/dist/esm/chunks/chunk.S3KKICL3.js +7 -0
  177. package/dist/esm/chunks/{chunk.WARVAVAW.js.map → chunk.S3KKICL3.js.map} +1 -1
  178. package/dist/esm/chunks/chunk.SN3VXOWN.js +7 -0
  179. package/dist/esm/chunks/chunk.SN3VXOWN.js.map +7 -0
  180. package/dist/esm/chunks/chunk.STIZCKQA.js +7 -0
  181. package/dist/esm/chunks/chunk.STIZCKQA.js.map +7 -0
  182. package/dist/esm/chunks/chunk.SUR46MJG.js +7 -0
  183. package/dist/esm/chunks/chunk.SUR46MJG.js.map +7 -0
  184. package/dist/esm/chunks/chunk.SZETPZGY.js +7 -0
  185. package/dist/esm/chunks/{chunk.MROUV35N.js.map → chunk.SZETPZGY.js.map} +1 -1
  186. package/dist/esm/chunks/chunk.TGGC2THA.js +7 -0
  187. package/dist/esm/chunks/{chunk.5QZPUOGG.js.map → chunk.TGGC2THA.js.map} +1 -1
  188. package/dist/esm/chunks/chunk.TRSICKKS.js +7 -0
  189. package/dist/esm/chunks/{chunk.3KEXRSB5.js.map → chunk.TRSICKKS.js.map} +2 -2
  190. package/dist/esm/chunks/{chunk.WINL2C7Q.js → chunk.U6FJJGO3.js} +1 -1
  191. package/dist/esm/chunks/chunk.UCIVBX64.js +7 -0
  192. package/dist/esm/chunks/{chunk.ICIGXLJW.js.map → chunk.UCIVBX64.js.map} +1 -1
  193. package/dist/esm/chunks/chunk.UVXKHQQZ.js +7 -0
  194. package/dist/esm/chunks/{chunk.T4J66YX5.js.map → chunk.UVXKHQQZ.js.map} +4 -4
  195. package/dist/esm/chunks/chunk.UYAP5GFT.js +7 -0
  196. package/dist/esm/chunks/{chunk.ZT7U7WOX.js.map → chunk.UYAP5GFT.js.map} +1 -1
  197. package/dist/esm/chunks/chunk.V7HN24VV.js +7 -0
  198. package/dist/esm/chunks/{chunk.WJCZJ6XD.js.map → chunk.V7HN24VV.js.map} +1 -1
  199. package/dist/esm/chunks/chunk.VLADAZRB.js +7 -0
  200. package/dist/esm/chunks/chunk.VLADAZRB.js.map +7 -0
  201. package/dist/esm/chunks/chunk.VN7JOJVU.js +7 -0
  202. package/dist/esm/chunks/{chunk.DLBAZD5X.js.map → chunk.VN7JOJVU.js.map} +1 -1
  203. package/dist/esm/chunks/{chunk.5EGEZ4IY.js → chunk.VNFATHAQ.js} +2 -2
  204. package/dist/esm/chunks/chunk.VNH44AGF.js +7 -0
  205. package/dist/esm/chunks/chunk.VNH44AGF.js.map +7 -0
  206. package/dist/esm/chunks/{chunk.IHIKIZIT.js → chunk.VOL4DT5F.js} +2 -2
  207. package/dist/esm/chunks/chunk.VX7H6YHF.js +7 -0
  208. package/dist/esm/chunks/chunk.VX7H6YHF.js.map +7 -0
  209. package/dist/esm/chunks/chunk.W7CM652O.js +7 -0
  210. package/dist/esm/chunks/chunk.W7CM652O.js.map +7 -0
  211. package/dist/esm/chunks/chunk.WINWKU4K.js +7 -0
  212. package/dist/esm/chunks/chunk.WINWKU4K.js.map +7 -0
  213. package/dist/esm/chunks/chunk.WJ26N3FC.js +7 -0
  214. package/dist/esm/chunks/{chunk.4IMRT2B3.js.map → chunk.WJ26N3FC.js.map} +1 -1
  215. package/dist/esm/chunks/chunk.WJLHVUHN.js +7 -0
  216. package/dist/esm/chunks/{chunk.Z37CZMMR.js.map → chunk.WJLHVUHN.js.map} +1 -1
  217. package/dist/esm/chunks/chunk.WXFJYCGO.js +7 -0
  218. package/dist/esm/chunks/{chunk.TSUAFZGY.js.map → chunk.WXFJYCGO.js.map} +1 -1
  219. package/dist/esm/chunks/chunk.XPIAOMSC.js +7 -0
  220. package/dist/esm/chunks/{chunk.5FCUOZSU.js.map → chunk.XPIAOMSC.js.map} +1 -1
  221. package/dist/esm/chunks/chunk.YCG7OVYF.js +7 -0
  222. package/dist/esm/chunks/chunk.YCG7OVYF.js.map +7 -0
  223. package/dist/esm/chunks/chunk.YLJTJKN4.js +15 -0
  224. package/dist/esm/chunks/chunk.YLJTJKN4.js.map +7 -0
  225. package/dist/esm/chunks/chunk.YVCGGQQG.js +12 -0
  226. package/dist/esm/chunks/chunk.YVCGGQQG.js.map +7 -0
  227. package/dist/esm/chunks/chunk.Z7JF5PPO.js +7 -0
  228. package/dist/esm/chunks/{chunk.PMSCH6VK.js.map → chunk.Z7JF5PPO.js.map} +3 -3
  229. package/dist/esm/chunks/chunk.Z7SLVU2O.js +7 -0
  230. package/dist/esm/chunks/{chunk.L27ANAIL.js.map → chunk.Z7SLVU2O.js.map} +2 -2
  231. package/dist/esm/chunks/chunk.ZJQLVAJY.js +7 -0
  232. package/dist/esm/chunks/{chunk.ZIRA4PYV.js.map → chunk.ZJQLVAJY.js.map} +1 -1
  233. package/dist/esm/chunks/chunk.ZSHN7Z45.js +7 -0
  234. package/dist/esm/chunks/chunk.ZSHN7Z45.js.map +7 -0
  235. package/dist/esm/chunks/chunk.ZTBOQMRE.js +7 -0
  236. package/dist/esm/chunks/{chunk.KR4BNI6X.js.map → chunk.ZTBOQMRE.js.map} +1 -1
  237. package/dist/esm/chunks/chunk.ZY3ETQ3D.js +7 -0
  238. package/dist/esm/chunks/chunk.ZY3ETQ3D.js.map +7 -0
  239. package/dist/esm/chunks/{chunk.U42I3PGF.js → chunk.ZZRAZZ3N.js} +2 -2
  240. package/dist/esm/chunks/chunk.ZZV7P3FR.js +7 -0
  241. package/dist/esm/chunks/chunk.ZZV7P3FR.js.map +7 -0
  242. package/dist/esm/circular-progress/index.js +1 -1
  243. package/dist/esm/color-picker/index.js +1 -1
  244. package/dist/esm/core/base/index.js +1 -1
  245. package/dist/esm/core/index.js +1 -1
  246. package/dist/esm/core/utils/index.js +1 -1
  247. package/dist/esm/date-picker/index.js +1 -1
  248. package/dist/esm/date-range-picker/index.js +1 -1
  249. package/dist/esm/deprecated/button/index.js +7 -0
  250. package/dist/esm/deprecated/button/index.js.map +7 -0
  251. package/dist/esm/deprecated/index.js +7 -0
  252. package/dist/esm/deprecated/index.js.map +7 -0
  253. package/dist/esm/dialog/index.js +1 -1
  254. package/dist/esm/divider/index.js +1 -1
  255. package/dist/esm/drawer/base/index.js +1 -1
  256. package/dist/esm/drawer/drawer/index.js +1 -1
  257. package/dist/esm/drawer/index.js +1 -1
  258. package/dist/esm/drawer/mini-drawer/index.js +1 -1
  259. package/dist/esm/drawer/modal-drawer/index.js +1 -1
  260. package/dist/esm/expansion-panel/index.js +1 -1
  261. package/dist/esm/file-picker/index.js +1 -1
  262. package/dist/esm/floating-action-button/index.js +1 -1
  263. package/dist/esm/focus-indicator/index.js +1 -1
  264. package/dist/esm/icon/index.js +1 -1
  265. package/dist/esm/icon-button/index.js +1 -1
  266. package/dist/esm/index.js +1 -1
  267. package/dist/esm/inline-message/index.js +1 -1
  268. package/dist/esm/keyboard-shortcut/index.js +1 -1
  269. package/dist/esm/label/index.js +1 -1
  270. package/dist/esm/label-value/index.js +1 -1
  271. package/dist/esm/linear-progress/index.js +1 -1
  272. package/dist/esm/list/index.js +1 -1
  273. package/dist/esm/list/list/index.js +1 -1
  274. package/dist/esm/list/list-item/index.js +1 -1
  275. package/dist/esm/list-dropdown/index.js +1 -1
  276. package/dist/esm/menu/index.js +1 -1
  277. package/dist/esm/open-icon/index.js +1 -1
  278. package/dist/esm/overlay/index.js +7 -0
  279. package/dist/esm/overlay/index.js.map +7 -0
  280. package/dist/esm/page-state/index.js +1 -1
  281. package/dist/esm/paginator/index.js +1 -1
  282. package/dist/esm/popover/index.js +7 -0
  283. package/dist/esm/popover/index.js.map +7 -0
  284. package/dist/esm/popup/index.js +1 -1
  285. package/dist/esm/product-icon/index.js +1 -1
  286. package/dist/esm/profile-card/index.js +1 -1
  287. package/dist/esm/quantity-field/index.js +1 -1
  288. package/dist/esm/radio/index.js +1 -1
  289. package/dist/esm/radio/radio/index.js +1 -1
  290. package/dist/esm/radio/radio-group/index.js +1 -1
  291. package/dist/esm/ripple/index.js +1 -1
  292. package/dist/esm/scaffold/index.js +1 -1
  293. package/dist/esm/select/core/index.js +1 -1
  294. package/dist/esm/select/index.js +1 -1
  295. package/dist/esm/select/option/index.js +1 -1
  296. package/dist/esm/select/option-group/index.js +1 -1
  297. package/dist/esm/select/select/index.js +1 -1
  298. package/dist/esm/select/select-dropdown/index.js +1 -1
  299. package/dist/esm/skeleton/index.js +1 -1
  300. package/dist/esm/slider/index.js +1 -1
  301. package/dist/esm/split-button/index.js +1 -1
  302. package/dist/esm/split-view/index.js +1 -1
  303. package/dist/esm/split-view/split-view/index.js +1 -1
  304. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  305. package/dist/esm/stack/index.js +1 -1
  306. package/dist/esm/state-layer/index.js +1 -1
  307. package/dist/esm/stepper/index.js +1 -1
  308. package/dist/esm/stepper/step/index.js +1 -1
  309. package/dist/esm/stepper/stepper/index.js +1 -1
  310. package/dist/esm/switch/index.js +1 -1
  311. package/dist/esm/table/index.js +1 -1
  312. package/dist/esm/tabs/index.js +1 -1
  313. package/dist/esm/tabs/tab/index.js +1 -1
  314. package/dist/esm/tabs/tab-bar/index.js +1 -1
  315. package/dist/esm/text-field/index.js +1 -1
  316. package/dist/esm/time-picker/index.js +1 -1
  317. package/dist/esm/toast/index.js +1 -1
  318. package/dist/esm/toolbar/index.js +1 -1
  319. package/dist/esm/tooltip/index.js +1 -1
  320. package/dist/esm/utils/index.js +1 -1
  321. package/dist/esm/view-switcher/index.js +1 -1
  322. package/dist/esm/view-switcher/view/index.js +1 -1
  323. package/dist/forge-dark.css +1 -1
  324. package/dist/forge.css +1 -1
  325. package/dist/theme/forge-theme.css +1 -1
  326. package/dist/typography/forge-typography.css +1 -1
  327. package/esm/app-bar/help-button/app-bar-help-button-adapter.js +3 -3
  328. package/esm/app-bar/help-button/app-bar-help-button.js +1 -1
  329. package/esm/app-bar/menu-button/app-bar-menu-button.js +4 -4
  330. package/esm/app-bar/notification-button/app-bar-notification-button-adapter.js +4 -4
  331. package/esm/app-bar/notification-button/app-bar-notification-button.js +1 -1
  332. package/esm/app-bar/profile-button/app-bar-profile-button-adapter.js +3 -3
  333. package/esm/app-bar/profile-button/app-bar-profile-button-foundation.js +1 -0
  334. package/esm/app-bar/profile-button/app-bar-profile-button.js +1 -1
  335. package/esm/avatar/avatar-adapter.d.ts +0 -6
  336. package/esm/avatar/avatar-adapter.js +6 -14
  337. package/esm/avatar/avatar-constants.d.ts +0 -1
  338. package/esm/avatar/avatar-constants.js +2 -3
  339. package/esm/avatar/avatar-foundation.d.ts +0 -5
  340. package/esm/avatar/avatar-foundation.js +0 -15
  341. package/esm/avatar/avatar.d.ts +28 -7
  342. package/esm/avatar/avatar.js +29 -12
  343. package/esm/avatar/index.d.ts +0 -1
  344. package/esm/avatar/index.js +0 -1
  345. package/esm/badge/badge-constants.d.ts +8 -4
  346. package/esm/badge/badge-constants.js +7 -4
  347. package/esm/badge/badge.d.ts +38 -11
  348. package/esm/badge/badge.js +55 -32
  349. package/esm/badge/index.d.ts +0 -3
  350. package/esm/badge/index.js +0 -3
  351. package/esm/banner/banner.js +1 -1
  352. package/esm/button/base/base-button-adapter.d.ts +0 -3
  353. package/esm/button/base/base-button-adapter.js +5 -14
  354. package/esm/button/base/base-button-constants.d.ts +28 -28
  355. package/esm/button/base/base-button-foundation.d.ts +0 -2
  356. package/esm/button/base/base-button-foundation.js +1 -4
  357. package/esm/button/base/base-button.d.ts +8 -6
  358. package/esm/button/base/base-button.js +19 -15
  359. package/esm/button/button.js +2 -2
  360. package/esm/button-toggle/button-toggle/button-toggle-adapter.d.ts +6 -14
  361. package/esm/button-toggle/button-toggle/button-toggle-adapter.js +19 -45
  362. package/esm/button-toggle/button-toggle/button-toggle-constants.d.ts +11 -15
  363. package/esm/button-toggle/button-toggle/button-toggle-constants.js +6 -17
  364. package/esm/button-toggle/button-toggle/button-toggle-foundation.d.ts +18 -12
  365. package/esm/button-toggle/button-toggle/button-toggle-foundation.js +74 -30
  366. package/esm/button-toggle/button-toggle/button-toggle.d.ts +67 -14
  367. package/esm/button-toggle/button-toggle/button-toggle.js +82 -29
  368. package/esm/button-toggle/button-toggle-group/button-toggle-group-adapter.d.ts +7 -13
  369. package/esm/button-toggle/button-toggle-group/button-toggle-group-adapter.js +26 -91
  370. package/esm/button-toggle/button-toggle-group/button-toggle-group-constants.d.ts +20 -11
  371. package/esm/button-toggle/button-toggle-group/button-toggle-group-constants.js +8 -2
  372. package/esm/button-toggle/button-toggle-group/button-toggle-group-foundation.d.ts +20 -12
  373. package/esm/button-toggle/button-toggle-group/button-toggle-group-foundation.js +101 -97
  374. package/esm/button-toggle/button-toggle-group/button-toggle-group.d.ts +75 -9
  375. package/esm/button-toggle/button-toggle-group/button-toggle-group.js +134 -25
  376. package/esm/calendar/calendar-dom-utils.js +1 -2
  377. package/esm/calendar/calendar-foundation.d.ts +1 -1
  378. package/esm/calendar/calendar-foundation.js +13 -16
  379. package/esm/checkbox/checkbox.js +1 -1
  380. package/esm/circular-progress/circular-progress-adapter.js +8 -12
  381. package/esm/circular-progress/circular-progress-foundation.js +3 -0
  382. package/esm/circular-progress/circular-progress.d.ts +7 -3
  383. package/esm/circular-progress/circular-progress.js +4 -2
  384. package/esm/color-picker/color-picker.js +1 -1
  385. package/esm/constants.d.ts +1 -0
  386. package/esm/constants.js +2 -0
  387. package/esm/core/base/base-adapter.d.ts +2 -0
  388. package/esm/core/base/base-adapter.js +7 -4
  389. package/esm/core/base/index.d.ts +0 -4
  390. package/esm/core/base/index.js +0 -4
  391. package/esm/core/{base/base-focusable-component.d.ts → mixins/focus/with-focusable.d.ts} +2 -2
  392. package/esm/core/{base/base-focusable-component.js → mixins/focus/with-focusable.js} +1 -1
  393. package/esm/core/{base/base-form-associated-component.d.ts → mixins/form/with-form-associated.d.ts} +4 -10
  394. package/esm/core/{base/base-form-associated-component.js → mixins/form/with-form-associated.js} +1 -1
  395. package/esm/core/mixins/form/with-form-validity.d.ts +35 -0
  396. package/esm/core/mixins/form/with-form-validity.js +43 -0
  397. package/esm/core/mixins/interactions/longpress/with-longpress-listener.d.ts +33 -0
  398. package/esm/core/mixins/interactions/longpress/with-longpress-listener.js +82 -0
  399. package/esm/core/mixins/internals/with-default-aria.d.ts +32 -0
  400. package/esm/core/mixins/internals/with-default-aria.js +22 -0
  401. package/esm/core/mixins/internals/with-element-internals.d.ts +26 -0
  402. package/esm/core/mixins/internals/with-element-internals.js +22 -0
  403. package/esm/core/{base/base-label-aware-component.d.ts → mixins/label/with-label-aware.d.ts} +2 -2
  404. package/esm/core/utils/a11y-utils.d.ts +4 -34
  405. package/esm/core/utils/a11y-utils.js +7 -61
  406. package/esm/core/utils/deferred.d.ts +29 -0
  407. package/esm/core/utils/deferred.js +32 -0
  408. package/esm/core/utils/dismissible-stack.d.ts +74 -0
  409. package/esm/core/utils/dismissible-stack.js +133 -0
  410. package/esm/core/utils/feature-detection.d.ts +5 -0
  411. package/esm/core/utils/feature-detection.js +12 -3
  412. package/esm/core/utils/form-utils.d.ts +1 -1
  413. package/esm/core/utils/position-utils.d.ts +78 -0
  414. package/esm/core/utils/position-utils.js +197 -0
  415. package/esm/core/utils/utils.d.ts +14 -0
  416. package/esm/core/utils/utils.js +25 -7
  417. package/esm/date-range-picker/date-range-picker-foundation.d.ts +1 -0
  418. package/esm/date-range-picker/date-range-picker-foundation.js +4 -0
  419. package/esm/deprecated/button/deprecated-button-component-delegate.d.ts +24 -0
  420. package/esm/deprecated/button/deprecated-button-component-delegate.js +39 -0
  421. package/esm/deprecated/button/deprecated-button-constants.d.ts +17 -0
  422. package/esm/deprecated/button/deprecated-button-constants.js +20 -0
  423. package/esm/deprecated/button/deprecated-button.d.ts +54 -0
  424. package/esm/deprecated/button/deprecated-button.js +149 -0
  425. package/esm/deprecated/button/index.d.ts +12 -0
  426. package/esm/deprecated/button/index.js +16 -0
  427. package/{styles/app-bar/search/_configuration.scss → esm/deprecated/index.d.ts} +1 -5
  428. package/{styles/checkbox/_configuration.scss → esm/deprecated/index.js} +1 -5
  429. package/esm/dialog/dialog-constants.d.ts +1 -0
  430. package/esm/dialog/dialog-constants.js +2 -1
  431. package/esm/dialog/dialog-foundation.js +3 -6
  432. package/esm/dialog/dialog.js +1 -1
  433. package/esm/drawer/mini-drawer/mini-drawer.js +1 -1
  434. package/esm/expansion-panel/expansion-panel-adapter.js +0 -5
  435. package/esm/floating-action-button/floating-action-button.js +1 -1
  436. package/esm/icon-button/icon-button-component-delegate.js +1 -1
  437. package/esm/icon-button/icon-button.js +1 -1
  438. package/esm/index.d.ts +7 -0
  439. package/esm/index.js +24 -1
  440. package/esm/inline-message/inline-message-constants.d.ts +9 -2
  441. package/esm/inline-message/inline-message-constants.js +7 -3
  442. package/esm/inline-message/inline-message.d.ts +31 -2
  443. package/esm/inline-message/inline-message.js +37 -5
  444. package/esm/label/label-adapter.js +3 -3
  445. package/esm/label/label-constants.d.ts +1 -1
  446. package/esm/label/label-constants.js +3 -1
  447. package/esm/linear-progress/linear-progress-adapter.js +13 -12
  448. package/esm/linear-progress/linear-progress-constants.d.ts +6 -0
  449. package/esm/linear-progress/linear-progress-constants.js +4 -2
  450. package/esm/linear-progress/linear-progress-foundation.js +2 -1
  451. package/esm/linear-progress/linear-progress.d.ts +7 -3
  452. package/esm/linear-progress/linear-progress.js +8 -11
  453. package/esm/list/list/list.js +1 -1
  454. package/esm/list/list-item/list-item.js +1 -1
  455. package/esm/menu/menu.js +1 -5
  456. package/esm/open-icon/open-icon.js +2 -2
  457. package/esm/overlay/base/base-overlay-foundation.d.ts +50 -0
  458. package/esm/overlay/base/base-overlay-foundation.js +11 -0
  459. package/esm/overlay/base/base-overlay.d.ts +49 -0
  460. package/esm/overlay/base/base-overlay.js +106 -0
  461. package/esm/overlay/base/overlay-aware-adapter.d.ts +17 -0
  462. package/esm/overlay/base/overlay-aware-adapter.js +15 -0
  463. package/esm/overlay/base/overlay-aware-foundation.d.ts +53 -0
  464. package/esm/overlay/base/overlay-aware-foundation.js +158 -0
  465. package/esm/overlay/base/overlay-aware.d.ts +36 -0
  466. package/esm/overlay/base/overlay-aware.js +102 -0
  467. package/esm/overlay/index.d.ts +10 -0
  468. package/esm/overlay/index.js +14 -0
  469. package/esm/overlay/mixins/with-overlay-aware.d.ts +105 -0
  470. package/esm/overlay/mixins/with-overlay-aware.js +152 -0
  471. package/esm/overlay/overlay-adapter.d.ts +54 -0
  472. package/esm/overlay/overlay-adapter.js +182 -0
  473. package/esm/overlay/overlay-constants.d.ts +71 -0
  474. package/esm/overlay/overlay-constants.js +48 -0
  475. package/esm/overlay/overlay-foundation.d.ts +76 -0
  476. package/esm/overlay/overlay-foundation.js +288 -0
  477. package/esm/overlay/overlay.d.ts +90 -0
  478. package/esm/overlay/overlay.js +105 -0
  479. package/esm/paginator/paginator.js +1 -1
  480. package/esm/popover/index.d.ts +10 -0
  481. package/esm/popover/index.js +14 -0
  482. package/esm/popover/popover-adapter.d.ts +46 -0
  483. package/esm/popover/popover-adapter.js +105 -0
  484. package/esm/popover/popover-constants.d.ts +42 -0
  485. package/esm/popover/popover-constants.js +42 -0
  486. package/esm/popover/popover-foundation.d.ts +139 -0
  487. package/esm/popover/popover-foundation.js +458 -0
  488. package/esm/popover/popover.d.ts +96 -0
  489. package/esm/popover/popover.js +147 -0
  490. package/esm/popup/popup-constants.d.ts +1 -1
  491. package/esm/profile-card/profile-card.js +1 -1
  492. package/esm/radio/core/radio-group-manager.js +1 -1
  493. package/esm/radio/radio/radio-adapter.js +4 -10
  494. package/esm/radio/radio/radio-constants.d.ts +0 -2
  495. package/esm/radio/radio/radio-constants.js +1 -14
  496. package/esm/radio/radio/radio.d.ts +8 -3
  497. package/esm/radio/radio/radio.js +10 -8
  498. package/esm/radio/radio-group/radio-group-adapter.js +1 -3
  499. package/esm/radio/radio-group/radio-group-constants.d.ts +0 -2
  500. package/esm/radio/radio-group/radio-group-constants.js +1 -6
  501. package/esm/radio/radio-group/radio-group.d.ts +6 -3
  502. package/esm/radio/radio-group/radio-group.js +5 -3
  503. package/esm/slider/slider.d.ts +2 -2
  504. package/esm/slider/slider.js +2 -2
  505. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  506. package/esm/state-layer/state-layer-foundation.js +12 -10
  507. package/esm/switch/switch.js +1 -1
  508. package/esm/table/table-utils.js +2 -3
  509. package/esm/tabs/tab/tab.js +1 -1
  510. package/esm/tabs/tab-bar/tab-bar-adapter.d.ts +1 -1
  511. package/esm/tabs/tab-bar/tab-bar-adapter.js +3 -3
  512. package/esm/tabs/tab-bar/tab-bar-constants.d.ts +1 -1
  513. package/esm/tabs/tab-bar/tab-bar-constants.js +1 -1
  514. package/esm/tabs/tab-bar/tab-bar.js +2 -2
  515. package/esm/toast/toast-constants.d.ts +1 -1
  516. package/esm/toolbar/toolbar.js +1 -1
  517. package/esm/tooltip/index.d.ts +0 -1
  518. package/esm/tooltip/index.js +0 -1
  519. package/esm/tooltip/tooltip-adapter.d.ts +30 -60
  520. package/esm/tooltip/tooltip-adapter.js +105 -97
  521. package/esm/tooltip/tooltip-constants.d.ts +44 -21
  522. package/esm/tooltip/tooltip-constants.js +27 -22
  523. package/esm/tooltip/tooltip-foundation.d.ts +72 -84
  524. package/esm/tooltip/tooltip-foundation.js +265 -192
  525. package/esm/tooltip/tooltip.d.ts +93 -26
  526. package/esm/tooltip/tooltip.js +129 -31
  527. package/package.json +2 -4
  528. package/styles/app-bar/app-bar/_core.scss +2 -0
  529. package/styles/app-bar/app-bar/app-bar.scss +17 -17
  530. package/styles/app-bar/app-bar/index.scss +0 -2
  531. package/styles/app-bar/search/_core.scss +2 -0
  532. package/styles/app-bar/search/app-bar-search.scss +5 -6
  533. package/styles/app-bar/search/index.scss +0 -2
  534. package/styles/avatar/_core.scss +43 -0
  535. package/styles/avatar/_token-utils.scss +30 -0
  536. package/styles/avatar/avatar.scss +21 -3
  537. package/styles/badge/_core.scss +58 -0
  538. package/styles/badge/_token-utils.scss +30 -0
  539. package/styles/badge/badge.scss +101 -15
  540. package/styles/{focus-indicator/_configuration.scss → badge/index.scss} +1 -5
  541. package/styles/button/_core.scss +2 -0
  542. package/styles/button/button.scss +31 -25
  543. package/styles/button/index.scss +0 -2
  544. package/styles/button-toggle/button-toggle/_core.scss +78 -0
  545. package/styles/button-toggle/button-toggle/_token-utils.scss +30 -0
  546. package/styles/button-toggle/button-toggle/button-toggle.scss +65 -11
  547. package/styles/button-toggle/button-toggle/index.scss +6 -0
  548. package/styles/button-toggle/button-toggle-group/_core.scss +62 -0
  549. package/styles/button-toggle/button-toggle-group/_token-utils.scss +30 -0
  550. package/styles/button-toggle/button-toggle-group/button-toggle-group.scss +123 -3
  551. package/styles/button-toggle/button-toggle-group/index.scss +8 -0
  552. package/styles/checkbox/_core.scss +3 -0
  553. package/styles/checkbox/checkbox.scss +24 -26
  554. package/styles/checkbox/index.scss +0 -2
  555. package/styles/circular-progress/_core.scss +2 -0
  556. package/styles/circular-progress/circular-progress.scss +36 -27
  557. package/styles/circular-progress/index.scss +0 -2
  558. package/styles/core/styles/elevation/index.scss +1 -1
  559. package/styles/core/styles/tokens/_token-utils.scss +14 -5
  560. package/styles/core/styles/tokens/avatar/_tokens.scss +23 -0
  561. package/styles/core/styles/tokens/badge/_tokens.scss +42 -0
  562. package/styles/core/styles/tokens/button/_tokens.scss +4 -4
  563. package/styles/core/styles/tokens/button-toggle/button-toggle/_tokens.scss +68 -0
  564. package/styles/core/styles/tokens/button-toggle/button-toggle-group/_tokens.scss +48 -0
  565. package/styles/core/styles/tokens/checkbox/_tokens.scss +6 -6
  566. package/styles/core/styles/tokens/floating-action-button/_tokens.scss +1 -1
  567. package/styles/core/styles/tokens/icon-button/_tokens.scss +3 -3
  568. package/styles/core/styles/tokens/inline-message/_tokens.scss +31 -0
  569. package/styles/core/styles/tokens/overlay/_tokens.scss +23 -0
  570. package/styles/core/styles/tokens/popover/_tokens.scss +56 -0
  571. package/styles/core/styles/tokens/profile-card/_tokens.scss +1 -1
  572. package/styles/core/styles/tokens/radio/_tokens.scss +1 -1
  573. package/styles/core/styles/tokens/switch/_tokens.scss +3 -3
  574. package/styles/core/styles/tokens/tabs/tab/_tokens.scss +5 -5
  575. package/styles/core/styles/tokens/theme/_token-utils.scss +28 -6
  576. package/styles/core/styles/tokens/theme/_tokens.surface.scss +3 -0
  577. package/styles/core/styles/tokens/theme/_tokens.text.scss +4 -4
  578. package/styles/core/styles/tokens/theme/_tokens.utilities.scss +3 -0
  579. package/styles/core/styles/tokens/tooltip/_tokens.scss +53 -0
  580. package/styles/core/styles/typography/index.scss +1 -1
  581. package/styles/deprecated/button/deprecated-button.scss +133 -0
  582. package/styles/dialog/_mixins.scss +1 -1
  583. package/styles/drawer/mini-drawer/_mixins.scss +0 -2
  584. package/styles/floating-action-button/_core.scss +2 -0
  585. package/styles/floating-action-button/floating-action-button.scss +14 -14
  586. package/styles/floating-action-button/index.scss +0 -2
  587. package/styles/focus-indicator/_core.scss +2 -0
  588. package/styles/focus-indicator/focus-indicator.scss +7 -8
  589. package/styles/focus-indicator/index.scss +0 -2
  590. package/styles/forge.scss +0 -1
  591. package/styles/icon-button/_core.scss +2 -0
  592. package/styles/icon-button/icon-button.scss +29 -28
  593. package/styles/icon-button/index.scss +0 -2
  594. package/styles/inline-message/_core.scss +45 -0
  595. package/styles/inline-message/_token-utils.scss +30 -0
  596. package/styles/inline-message/index.scss +6 -0
  597. package/styles/inline-message/inline-message.scss +75 -9
  598. package/styles/label/label.scss +2 -2
  599. package/styles/linear-progress/_core.scss +2 -0
  600. package/styles/linear-progress/index.scss +0 -2
  601. package/styles/linear-progress/linear-progress.scss +29 -18
  602. package/styles/list/list/_core.scss +2 -0
  603. package/styles/list/list/index.scss +0 -2
  604. package/styles/list/list/list.scss +4 -4
  605. package/styles/list/list-item/_core.scss +2 -0
  606. package/styles/list/list-item/index.scss +0 -2
  607. package/styles/list/list-item/list-item.scss +50 -44
  608. package/styles/overlay/_core.scss +46 -0
  609. package/styles/overlay/_token-utils.scss +31 -0
  610. package/styles/overlay/index.scss +6 -0
  611. package/styles/overlay/overlay.scss +66 -0
  612. package/styles/popover/_animations.scss +36 -0
  613. package/styles/popover/_core.scss +56 -0
  614. package/styles/popover/_token-utils.scss +31 -0
  615. package/styles/popover/index.scss +6 -0
  616. package/styles/popover/popover.scss +254 -0
  617. package/styles/profile-card/_core.scss +2 -0
  618. package/styles/profile-card/index.scss +0 -2
  619. package/styles/profile-card/profile-card.scss +9 -11
  620. package/styles/radio/radio/_core.scss +3 -0
  621. package/styles/radio/radio/index.scss +0 -2
  622. package/styles/radio/radio/radio.scss +12 -15
  623. package/styles/slider/_core.scss +2 -0
  624. package/styles/slider/index.scss +0 -2
  625. package/styles/slider/slider.scss +45 -41
  626. package/styles/split-button/index.scss +0 -1
  627. package/styles/split-button/split-button.scss +3 -2
  628. package/styles/state-layer/_core.scss +3 -2
  629. package/styles/state-layer/index.scss +0 -2
  630. package/styles/state-layer/state-layer.scss +7 -8
  631. package/styles/switch/_core.scss +3 -0
  632. package/styles/switch/index.scss +0 -2
  633. package/styles/switch/switch.scss +28 -30
  634. package/styles/tabs/tab/_core.scss +2 -0
  635. package/styles/tabs/tab/index.scss +0 -2
  636. package/styles/tabs/tab/tab.scss +27 -28
  637. package/styles/tabs/tab-bar/_core.scss +2 -0
  638. package/styles/tabs/tab-bar/index.scss +0 -2
  639. package/styles/tabs/tab-bar/tab-bar.scss +21 -23
  640. package/styles/theme/_theme-dark.scss +19 -7
  641. package/styles/theme/_theme-values.scss +2 -0
  642. package/styles/toolbar/_mixins.scss +2 -1
  643. package/styles/tooltip/_animations.scss +18 -0
  644. package/styles/tooltip/_core.scss +86 -0
  645. package/styles/tooltip/_token-utils.scss +31 -0
  646. package/styles/tooltip/index.scss +6 -0
  647. package/styles/tooltip/tooltip.scss +107 -0
  648. package/dist/esm/chunks/chunk.3KEXRSB5.js +0 -7
  649. package/dist/esm/chunks/chunk.3TKTJ3BY.js +0 -7
  650. package/dist/esm/chunks/chunk.3TKTJ3BY.js.map +0 -7
  651. package/dist/esm/chunks/chunk.447QNYAZ.js +0 -7
  652. package/dist/esm/chunks/chunk.4IMRT2B3.js +0 -7
  653. package/dist/esm/chunks/chunk.4JDJ33IU.js +0 -7
  654. package/dist/esm/chunks/chunk.4JDJ33IU.js.map +0 -7
  655. package/dist/esm/chunks/chunk.4QCGBFLU.js +0 -7
  656. package/dist/esm/chunks/chunk.4QCGBFLU.js.map +0 -7
  657. package/dist/esm/chunks/chunk.4XN2WGMP.js +0 -7
  658. package/dist/esm/chunks/chunk.5FCUOZSU.js +0 -7
  659. package/dist/esm/chunks/chunk.5KYKGNGY.js +0 -7
  660. package/dist/esm/chunks/chunk.5QZPUOGG.js +0 -7
  661. package/dist/esm/chunks/chunk.5ZMM75CJ.js +0 -7
  662. package/dist/esm/chunks/chunk.5ZMM75CJ.js.map +0 -7
  663. package/dist/esm/chunks/chunk.6FUXTHO6.js +0 -7
  664. package/dist/esm/chunks/chunk.6ORVPXNN.js +0 -7
  665. package/dist/esm/chunks/chunk.6ORVPXNN.js.map +0 -7
  666. package/dist/esm/chunks/chunk.6ZJIHOIG.js +0 -7
  667. package/dist/esm/chunks/chunk.6ZJIHOIG.js.map +0 -7
  668. package/dist/esm/chunks/chunk.7PVVZC7P.js +0 -7
  669. package/dist/esm/chunks/chunk.AEO2X5OZ.js +0 -7
  670. package/dist/esm/chunks/chunk.AIPDMLJD.js +0 -7
  671. package/dist/esm/chunks/chunk.APFDK6YA.js +0 -7
  672. package/dist/esm/chunks/chunk.APFDK6YA.js.map +0 -7
  673. package/dist/esm/chunks/chunk.AVRBHXDT.js +0 -177
  674. package/dist/esm/chunks/chunk.BIVQ4GTK.js +0 -7
  675. package/dist/esm/chunks/chunk.BJD6BKGC.js +0 -31
  676. package/dist/esm/chunks/chunk.BJD6BKGC.js.map +0 -7
  677. package/dist/esm/chunks/chunk.BS73Y6IN.js +0 -7
  678. package/dist/esm/chunks/chunk.BWGDZUJV.js +0 -12
  679. package/dist/esm/chunks/chunk.BWGDZUJV.js.map +0 -7
  680. package/dist/esm/chunks/chunk.CBY7M4X6.js +0 -7
  681. package/dist/esm/chunks/chunk.CBY7M4X6.js.map +0 -7
  682. package/dist/esm/chunks/chunk.CZOABXEQ.js +0 -7
  683. package/dist/esm/chunks/chunk.DLBAZD5X.js +0 -7
  684. package/dist/esm/chunks/chunk.DTWXICOY.js +0 -7
  685. package/dist/esm/chunks/chunk.DTWXICOY.js.map +0 -7
  686. package/dist/esm/chunks/chunk.EMCY55MX.js +0 -7
  687. package/dist/esm/chunks/chunk.ESQWFHCF.js +0 -7
  688. package/dist/esm/chunks/chunk.ESQWFHCF.js.map +0 -7
  689. package/dist/esm/chunks/chunk.FDZSLGIW.js +0 -7
  690. package/dist/esm/chunks/chunk.FDZSLGIW.js.map +0 -7
  691. package/dist/esm/chunks/chunk.FJ5VNWYK.js +0 -7
  692. package/dist/esm/chunks/chunk.FJ5VNWYK.js.map +0 -7
  693. package/dist/esm/chunks/chunk.FJRCWWE2.js +0 -7
  694. package/dist/esm/chunks/chunk.FJRCWWE2.js.map +0 -7
  695. package/dist/esm/chunks/chunk.FQUZWINF.js +0 -7
  696. package/dist/esm/chunks/chunk.FSILMO6U.js +0 -7
  697. package/dist/esm/chunks/chunk.FXGY5IVK.js +0 -7
  698. package/dist/esm/chunks/chunk.G67LO74A.js +0 -7
  699. package/dist/esm/chunks/chunk.G67LO74A.js.map +0 -7
  700. package/dist/esm/chunks/chunk.GGQL3OZB.js +0 -7
  701. package/dist/esm/chunks/chunk.I7OY43HW.js +0 -7
  702. package/dist/esm/chunks/chunk.I7OY43HW.js.map +0 -7
  703. package/dist/esm/chunks/chunk.I7X25KEB.js +0 -7
  704. package/dist/esm/chunks/chunk.I7X25KEB.js.map +0 -7
  705. package/dist/esm/chunks/chunk.ICIGXLJW.js +0 -7
  706. package/dist/esm/chunks/chunk.ILUXZNGY.js +0 -7
  707. package/dist/esm/chunks/chunk.ILUXZNGY.js.map +0 -7
  708. package/dist/esm/chunks/chunk.JEZR25US.js +0 -7
  709. package/dist/esm/chunks/chunk.JPI4XCQL.js +0 -7
  710. package/dist/esm/chunks/chunk.JPI4XCQL.js.map +0 -7
  711. package/dist/esm/chunks/chunk.JRSFCVYQ.js +0 -7
  712. package/dist/esm/chunks/chunk.JRSFCVYQ.js.map +0 -7
  713. package/dist/esm/chunks/chunk.JZ27GPZJ.js +0 -7
  714. package/dist/esm/chunks/chunk.K3TJMIKD.js +0 -7
  715. package/dist/esm/chunks/chunk.K3TJMIKD.js.map +0 -7
  716. package/dist/esm/chunks/chunk.KGHABAFA.js +0 -7
  717. package/dist/esm/chunks/chunk.KR4BNI6X.js +0 -7
  718. package/dist/esm/chunks/chunk.KUNIEX72.js +0 -7
  719. package/dist/esm/chunks/chunk.L27ANAIL.js +0 -7
  720. package/dist/esm/chunks/chunk.L4UXWCVD.js +0 -7
  721. package/dist/esm/chunks/chunk.L4UXWCVD.js.map +0 -7
  722. package/dist/esm/chunks/chunk.LK6QHLW2.js +0 -7
  723. package/dist/esm/chunks/chunk.LYZXJYTW.js +0 -7
  724. package/dist/esm/chunks/chunk.LZ2YQYJA.js +0 -7
  725. package/dist/esm/chunks/chunk.LZ2YQYJA.js.map +0 -7
  726. package/dist/esm/chunks/chunk.MROUV35N.js +0 -7
  727. package/dist/esm/chunks/chunk.NM7FJISF.js +0 -7
  728. package/dist/esm/chunks/chunk.NM7FJISF.js.map +0 -7
  729. package/dist/esm/chunks/chunk.NVR6KN2B.js +0 -7
  730. package/dist/esm/chunks/chunk.O6F4U4VY.js +0 -7
  731. package/dist/esm/chunks/chunk.ONII3BV3.js +0 -7
  732. package/dist/esm/chunks/chunk.OTUEB7SD.js +0 -7
  733. package/dist/esm/chunks/chunk.PMSCH6VK.js +0 -7
  734. package/dist/esm/chunks/chunk.PRJHBUU2.js.map +0 -7
  735. package/dist/esm/chunks/chunk.Q2Q626DG.js +0 -7
  736. package/dist/esm/chunks/chunk.Q4YL47ZL.js +0 -7
  737. package/dist/esm/chunks/chunk.Q4YL47ZL.js.map +0 -7
  738. package/dist/esm/chunks/chunk.Q54DACHS.js +0 -7
  739. package/dist/esm/chunks/chunk.Q54DACHS.js.map +0 -7
  740. package/dist/esm/chunks/chunk.Q74SG6BV.js +0 -7
  741. package/dist/esm/chunks/chunk.QGMWM7IT.js +0 -7
  742. package/dist/esm/chunks/chunk.QGMWM7IT.js.map +0 -7
  743. package/dist/esm/chunks/chunk.RCPUTZON.js +0 -7
  744. package/dist/esm/chunks/chunk.RCPUTZON.js.map +0 -7
  745. package/dist/esm/chunks/chunk.SBKKBQDX.js +0 -7
  746. package/dist/esm/chunks/chunk.SBKKBQDX.js.map +0 -7
  747. package/dist/esm/chunks/chunk.SVVF632P.js +0 -7
  748. package/dist/esm/chunks/chunk.SVVF632P.js.map +0 -7
  749. package/dist/esm/chunks/chunk.T4J66YX5.js +0 -7
  750. package/dist/esm/chunks/chunk.THNCYT3E.js +0 -7
  751. package/dist/esm/chunks/chunk.TSUAFZGY.js +0 -7
  752. package/dist/esm/chunks/chunk.UOEJCU6R.js +0 -7
  753. package/dist/esm/chunks/chunk.VG452D3L.js +0 -7
  754. package/dist/esm/chunks/chunk.VQPSP4HV.js +0 -7
  755. package/dist/esm/chunks/chunk.VQPSP4HV.js.map +0 -7
  756. package/dist/esm/chunks/chunk.W7BP2DDU.js +0 -7
  757. package/dist/esm/chunks/chunk.WARVAVAW.js +0 -7
  758. package/dist/esm/chunks/chunk.WEHQUUXJ.js +0 -7
  759. package/dist/esm/chunks/chunk.WEHQUUXJ.js.map +0 -7
  760. package/dist/esm/chunks/chunk.WJCZJ6XD.js +0 -7
  761. package/dist/esm/chunks/chunk.X3QZY7V4.js +0 -7
  762. package/dist/esm/chunks/chunk.XQLQ73NG.js +0 -7
  763. package/dist/esm/chunks/chunk.Y4ZS3A6F.js +0 -7
  764. package/dist/esm/chunks/chunk.YA5OQD37.js +0 -7
  765. package/dist/esm/chunks/chunk.YMSX4F3J.js +0 -7
  766. package/dist/esm/chunks/chunk.Z37CZMMR.js +0 -7
  767. package/dist/esm/chunks/chunk.ZIRA4PYV.js +0 -7
  768. package/dist/esm/chunks/chunk.ZT7U7WOX.js +0 -7
  769. package/dist/esm/chunks/chunk.ZX3CGET2.js +0 -7
  770. package/dist/esm/chunks/chunk.ZX3CGET2.js.map +0 -7
  771. package/dist/tooltip/forge-tooltip.css +0 -6
  772. package/esm/avatar/avatar-component-delegate.d.ts +0 -16
  773. package/esm/avatar/avatar-component-delegate.js +0 -15
  774. package/esm/badge/badge-adapter.d.ts +0 -17
  775. package/esm/badge/badge-adapter.js +0 -20
  776. package/esm/badge/badge-component-delegate.d.ts +0 -16
  777. package/esm/badge/badge-component-delegate.js +0 -15
  778. package/esm/badge/badge-foundation.d.ts +0 -24
  779. package/esm/badge/badge-foundation.js +0 -55
  780. package/esm/core/base/base-element-internals-component.d.ts +0 -41
  781. package/esm/core/base/base-element-internals-component.js +0 -47
  782. package/esm/tooltip/tooltip-utils.d.ts +0 -13
  783. package/esm/tooltip/tooltip-utils.js +0 -53
  784. package/styles/app-bar/app-bar/_configuration.scss +0 -16
  785. package/styles/avatar/_mixins.scss +0 -46
  786. package/styles/avatar/_variables.scss +0 -16
  787. package/styles/button/_configuration.scss +0 -16
  788. package/styles/button-toggle/button-toggle/_mixins.scss +0 -117
  789. package/styles/button-toggle/button-toggle-group/_mixins.scss +0 -79
  790. package/styles/circular-progress/_configuration.scss +0 -16
  791. package/styles/floating-action-button/_configuration.scss +0 -16
  792. package/styles/icon-button/_configuration.scss +0 -16
  793. package/styles/inline-message/_mixins.scss +0 -82
  794. package/styles/inline-message/_variables.scss +0 -67
  795. package/styles/linear-progress/_configuration.scss +0 -28
  796. package/styles/list/list/_configuration.scss +0 -10
  797. package/styles/list/list-item/_configuration.scss +0 -16
  798. package/styles/radio/radio/_configuration.scss +0 -10
  799. package/styles/split-button/_configuration.scss +0 -12
  800. package/styles/state-layer/_configuration.scss +0 -10
  801. package/styles/switch/_configuration.scss +0 -10
  802. package/styles/tabs/tab/_configuration.scss +0 -27
  803. package/styles/tabs/tab-bar/_configuration.scss +0 -10
  804. package/styles/tooltip/_mixins.scss +0 -98
  805. package/styles/tooltip/_variables.scss +0 -18
  806. package/styles/tooltip/forge-tooltip.scss +0 -12
  807. /package/dist/esm/chunks/{chunk.KWBYYSH3.js.map → chunk.2NGPMBVU.js.map} +0 -0
  808. /package/dist/esm/chunks/{chunk.L45HXBDS.js.map → chunk.5BQT3E7Y.js.map} +0 -0
  809. /package/dist/esm/chunks/{chunk.BAQYPAUM.js.map → chunk.AWEDY45N.js.map} +0 -0
  810. /package/dist/esm/chunks/{chunk.O6MGA3XK.js.map → chunk.GFKYBECY.js.map} +0 -0
  811. /package/dist/esm/chunks/{chunk.MHH26REX.js.map → chunk.IDB4KFSQ.js.map} +0 -0
  812. /package/dist/esm/chunks/{chunk.URKQICJD.js.map → chunk.LDHY3O6H.js.map} +0 -0
  813. /package/dist/esm/chunks/{chunk.KDJZN6EW.js.map → chunk.LEN33O6V.js.map} +0 -0
  814. /package/dist/esm/chunks/{chunk.42YDA5FH.js.map → chunk.LXFL2C62.js.map} +0 -0
  815. /package/dist/esm/chunks/{chunk.BC7WB5RG.js.map → chunk.MMMG4MZ3.js.map} +0 -0
  816. /package/dist/esm/chunks/{chunk.BTWJPE4Y.js.map → chunk.O5HBMTSZ.js.map} +0 -0
  817. /package/dist/esm/chunks/{chunk.MTSWCXTY.js.map → chunk.OD54UG2G.js.map} +0 -0
  818. /package/dist/esm/chunks/{chunk.NBLL7VAA.js.map → chunk.OJFSECZE.js.map} +0 -0
  819. /package/dist/esm/chunks/{chunk.7LOMI6J3.js.map → chunk.OR5GB6X3.js.map} +0 -0
  820. /package/dist/esm/chunks/{chunk.AR6YUJUH.js.map → chunk.RKG66YKS.js.map} +0 -0
  821. /package/dist/esm/chunks/{chunk.HRGTAVNA.js.map → chunk.RKIJTSSL.js.map} +0 -0
  822. /package/dist/esm/chunks/{chunk.WINL2C7Q.js.map → chunk.U6FJJGO3.js.map} +0 -0
  823. /package/dist/esm/chunks/{chunk.5EGEZ4IY.js.map → chunk.VNFATHAQ.js.map} +0 -0
  824. /package/dist/esm/chunks/{chunk.IHIKIZIT.js.map → chunk.VOL4DT5F.js.map} +0 -0
  825. /package/dist/esm/chunks/{chunk.U42I3PGF.js.map → chunk.ZZRAZZ3N.js.map} +0 -0
  826. /package/esm/core/{base/base-label-aware-component.js → mixins/label/with-label-aware.js} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/switch/switch-constants.ts", "../../src/switch/switch-adapter.ts", "../../src/switch/switch-foundation.ts", "../../src/switch/switch.ts", "../../src/switch/switch-component-delegate.ts", "../../src/switch/index.ts"],
4
- "sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../constants';\nimport { INPUT_ARIA_ATTRIBUTES } from '../core';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}switch`;\n\nconst classes = {\n HIDDEN: 'hidden'\n};\n\nconst attributes = {\n ON: 'on',\n SELECTED: 'selected',\n DEFAULT_ON: 'default-on',\n VALUE: 'value',\n DENSE: 'dense',\n DISABLED: 'disabled',\n REQUIRED: 'required',\n READONLY: 'readonly',\n ICON: 'icon',\n LABEL_POSITION: 'label-position'\n};\n\nconst selectors = {\n ROOT: '.forge-switch',\n INPUT: '#input',\n LABEL: '#label',\n ICON_ON: '#icon-on',\n ICON_OFF: '#icon-off',\n INPUT_SLOT: 'slot[name=input]',\n STATE_LAYER: 'forge-state-layer',\n SLOTTED_INPUT: 'input[type=checkbox]'\n};\n\nconst events = {\n CHANGE: `${elementName}-change`\n};\n\nconst state = {\n ON: 'on',\n OFF: 'off'\n};\n\nconst forwardedAttributes = [...INPUT_ARIA_ATTRIBUTES];\n\nexport const SWITCH_CONSTANTS = {\n classes,\n selectors,\n attributes,\n elementName,\n events,\n state,\n forwardedAttributes\n};\n\nexport type SwitchLabelPosition = 'start' | 'end';\nexport type SwitchIconVisibility = 'both' | 'none' | 'off' | 'on';\n", "import { getShadowElement, toggleAttribute, toggleClass } from '@tylertech/forge-core';\nimport { internals } from '../constants';\nimport { BaseAdapter, IBaseAdapter, INPUT_PROPERTIES, SlottedElementAdapter, cloneAttributes, cloneProperties, cloneValidationMessage, forwardAttributes } from '../core';\nimport { StateLayerComponent } from '../state-layer';\nimport { ISwitchComponent } from './switch';\nimport { SWITCH_CONSTANTS, SwitchIconVisibility, SwitchLabelPosition } from './switch-constants';\n\nexport interface ISwitchAdapter extends IBaseAdapter {\n initialize(): void;\n setOn(value: boolean): void;\n setDefaultOn(value: boolean): void;\n setValue(value: string): void;\n setDisabled(value: boolean): void;\n setRequired(value: boolean): void;\n setReadonly(value: boolean): void;\n setIconVisibility(value: SwitchIconVisibility): void;\n setLabelPosition(value: SwitchLabelPosition): void;\n addRootListener(event: string, callback: EventListener): void;\n addInputSlotListener(callback: EventListener): void;\n detectInputElement(): void;\n proxyClick(): void;\n proxyLabel(value: string | null): void;\n syncValue(value: string | null): void;\n syncValidity(hasCustomValidityError: boolean): void;\n setValidity(flags?: ValidityStateFlags | undefined, message?: string | undefined): void;\n}\n\nexport class SwitchAdapter extends BaseAdapter<ISwitchComponent> implements ISwitchAdapter {\n private readonly _rootElement: HTMLElement;\n private readonly _inputElement: HTMLInputElement;\n private readonly _labelElement: HTMLElement;\n private readonly _iconOnElement: HTMLElement;\n private readonly _iconOffElement: HTMLElement;\n private readonly _inputSlotElement: HTMLSlotElement;\n private readonly _stateLayerElement: StateLayerComponent;\n private readonly _inputAdapter: SlottedElementAdapter<HTMLInputElement>;\n private _forwardObserver?: MutationObserver;\n private _forwardedAriaLabel?: string;\n private _labelElementText?: string;\n\n private get _activeInputElement(): HTMLInputElement {\n return this._inputAdapter.el ?? this._inputElement;\n }\n\n constructor(component: ISwitchComponent) {\n super(component);\n \n this._rootElement = getShadowElement(component, SWITCH_CONSTANTS.selectors.ROOT);\n this._inputElement = getShadowElement(component, SWITCH_CONSTANTS.selectors.INPUT) as HTMLInputElement;\n this._labelElement = getShadowElement(component, SWITCH_CONSTANTS.selectors.LABEL);\n this._iconOnElement = getShadowElement(component, SWITCH_CONSTANTS.selectors.ICON_ON);\n this._iconOffElement = getShadowElement(component, SWITCH_CONSTANTS.selectors.ICON_OFF);\n this._stateLayerElement = getShadowElement(component, SWITCH_CONSTANTS.selectors.STATE_LAYER) as StateLayerComponent;\n this._inputAdapter = new SlottedElementAdapter();\n }\n\n public initialize(): void {\n const slottedInput = this._component.querySelector(SWITCH_CONSTANTS.selectors.SLOTTED_INPUT) as HTMLInputElement;\n if (slottedInput) {\n slottedInput.slot = 'input';\n this._switchInput(slottedInput, this._inputElement);\n } else {\n this._initializeForwardObserver(this._inputElement);\n }\n this._observeInput(slottedInput ?? this._inputElement);\n }\n\n public setOn(value: boolean): void {\n this._activeInputElement.checked = value;\n }\n\n public setDefaultOn(value: boolean): void {\n this._activeInputElement.toggleAttribute('checked', value);\n }\n\n public setValue(value: string): void {\n this._activeInputElement.value = value;\n }\n\n public setDisabled(value: boolean): void {\n this._activeInputElement.disabled = value;\n this._stateLayerElement.disabled = value;\n }\n\n public setRequired(value: boolean): void {\n this._activeInputElement.required = value;\n }\n\n public setReadonly(value: boolean): void {\n this._activeInputElement.readOnly = value;\n toggleAttribute(this._activeInputElement, value, 'aria-readonly', value.toString());\n this._stateLayerElement.disabled = value;\n }\n\n public setIconVisibility(value: SwitchIconVisibility): void {\n const hideOn = value === 'none' || value === 'off';\n const hideOff = value === 'none' || value === 'on';\n toggleClass(this._iconOnElement, hideOn, SWITCH_CONSTANTS.classes.HIDDEN);\n toggleClass(this._iconOffElement, hideOff, SWITCH_CONSTANTS.classes.HIDDEN);\n }\n\n public setLabelPosition(value: SwitchLabelPosition): void {\n this._labelElement.remove();\n\n if (value === 'start') {\n this._rootElement.prepend(this._labelElement);\n } else {\n this._rootElement.append(this._labelElement);\n }\n }\n\n public addRootListener(event: string, callback: EventListener): void {\n this._rootElement.addEventListener(event, callback);\n }\n\n public addInputSlotListener(callback: EventListener): void {\n this._inputElement.addEventListener('slotchange', callback);\n }\n\n public detectInputElement(): void {\n const inputElement = this._inputSlotElement.assignedElements()[0] as HTMLInputElement;\n if (inputElement) {\n this._inputAdapter.attachElement(inputElement);\n } else {\n this._inputAdapter.attachElement(this._inputElement);\n }\n }\n\n public proxyClick(): void {\n this._activeInputElement.click();\n // TODO: use `{ focusVisble: false }` when supported.\n this._activeInputElement.focus();\n }\n\n public proxyLabel(value: string | null): void {\n this._labelElementText = value ?? undefined;\n this._setAriaLabel();\n }\n\n public syncValue(value: string | null): void {\n if (value === null) {\n this._component[internals].setFormValue(null, SWITCH_CONSTANTS.state.OFF);\n return;\n }\n\n const data = new FormData();\n data.append(this._component.name, value);\n this._component[internals].setFormValue(data, SWITCH_CONSTANTS.state.ON);\n }\n\n public syncValidity(hasCustomValidityError: boolean): void {\n if (hasCustomValidityError) {\n this._activeInputElement.setCustomValidity(this._component[internals].validationMessage);\n } else {\n this._activeInputElement.setCustomValidity('');\n }\n\n this._component[internals].setValidity(this._activeInputElement.validity, this._activeInputElement.validationMessage, this._activeInputElement);\n }\n\n public setValidity(flags?: ValidityStateFlags | undefined, message?: string | undefined): void {\n this._component[internals].setValidity(flags, message, this._activeInputElement);\n }\n\n private _initializeInput(): void {\n this._forwardObserver?.disconnect();\n this._initializeForwardObserver(this._activeInputElement);\n }\n\n private _initializeForwardObserver(el: HTMLElement): void {\n this._forwardObserver = forwardAttributes(this._component, SWITCH_CONSTANTS.forwardedAttributes, (name, value) => {\n // Use the connected label element as a fallback if aria-label is removed. Store the value so\n // it can be used to determine whether an updated label element should take effect.\n if (name === 'aria-label') {\n this._forwardedAriaLabel = value ?? undefined;\n this._setAriaLabel();\n return;\n }\n // Otherwise forward the attribute to the element.\n toggleAttribute(el, !!value, name, value ?? undefined);\n });\n }\n\n private _setAriaLabel(): void {\n const hasAriaLabel = !!this._forwardedAriaLabel || !!this._labelElementText;\n toggleAttribute(this._activeInputElement, hasAriaLabel, 'aria-label', this._forwardedAriaLabel ?? this._labelElementText);\n }\n \n private _switchInput(newEl: HTMLInputElement, oldEl: HTMLInputElement): void {\n cloneAttributes(oldEl, newEl, ['type', 'role', 'checked', 'aria-readonly']);\n cloneProperties(oldEl, newEl, INPUT_PROPERTIES);\n cloneValidationMessage(oldEl, newEl);\n }\n\n private _observeInput(el: HTMLInputElement = this._inputElement): void {\n this._inputAdapter.initialize(el, (newEl, oldEl) => {\n this._switchInput(newEl, oldEl);\n this._initializeInput();\n });\n }\n}\n", "import { ICustomElementFoundation } from '@tylertech/forge-core';\n\nimport { ISwitchAdapter } from './switch-adapter';\nimport { SWITCH_CONSTANTS, SwitchIconVisibility, SwitchLabelPosition } from './switch-constants';\n\nexport interface ISwitchFoundation extends ICustomElementFoundation {\n on: boolean;\n defaultOn: boolean;\n value: string;\n dense: boolean;\n disabled: boolean;\n required: boolean;\n readonly: boolean;\n icon: SwitchIconVisibility;\n labelPosition: SwitchLabelPosition;\n proxyClick(): void;\n proxyLabel(value: string | null): void;\n syncValidity(hasCustomValidityError: boolean): void;\n setValidity(flags?: ValidityStateFlags | undefined, message?: string | undefined): void;\n}\n\nexport class SwitchFoundation implements ISwitchFoundation {\n // State\n private _on = false;\n private _defaultOn = false;\n private _value = 'on';\n private _dense = false;\n private _disabled = false;\n private _required = false;\n private _readonly = false;\n private _icon: SwitchIconVisibility = 'on';\n private _labelPosition: SwitchLabelPosition = 'end';\n\n private get _submittedValue(): string | null {\n return this._on ? this._value : null;\n }\n\n // Listeners\n private readonly _changeListener: EventListener;\n private readonly _inputSlotListener: EventListener;\n\n constructor(private readonly _adapter: ISwitchAdapter) {\n this._changeListener = (evt: Event) => this._handleChange(evt);\n this._inputSlotListener = () => this._handleInputSlotChange();\n }\n\n public initialize(): void {\n this._adapter.initialize();\n this._adapter.addRootListener('change', this._changeListener);\n this._adapter.addInputSlotListener(this._inputSlotListener);\n this._adapter.setIconVisibility(this._icon);\n this._adapter.syncValue(this._submittedValue);\n }\n\n public proxyClick(): void {\n this._adapter.proxyClick();\n }\n\n public proxyLabel(value: string | null): void {\n this._adapter.proxyLabel(value);\n }\n\n public syncValidity(hasCustomValidityError: boolean): void {\n this._adapter.syncValidity(hasCustomValidityError);\n }\n\n public setValidity(flags?: ValidityStateFlags | undefined, message?: string | undefined): void {\n this._adapter.setValidity(flags, message);\n }\n\n private _handleChange(evt: Event): void {\n if (this._readonly) {\n this._adapter.setOn(this._on);\n return;\n }\n\n const target = evt.target as HTMLInputElement;\n const newValue = target.checked;\n const oldValue = this._on;\n\n this._on = newValue;\n\n const isCancelled = !this._adapter.emitHostEvent(SWITCH_CONSTANTS.events.CHANGE, newValue, true, true);\n if (isCancelled) {\n this._on = oldValue;\n this._adapter.setOn(this._on);\n return;\n }\n\n this._adapter.syncValue(this._submittedValue);\n this._setOnAttribute();\n }\n\n private _handleInputSlotChange(): void {\n this._adapter.detectInputElement();\n }\n\n private _setOnAttribute(): void {\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.ON, this._on);\n // Also set selected for backwards compatibility\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.SELECTED, this._on);\n }\n\n public get on(): boolean {\n return this._on;\n }\n public set on(value: boolean) {\n if (this._on !== value) {\n this._on = value;\n this._adapter.setOn(this._on);\n this._adapter.syncValue(this._submittedValue);\n this._setOnAttribute();\n }\n }\n\n public get defaultOn(): boolean {\n return this._defaultOn;\n }\n public set defaultOn(value: boolean) {\n if (this._defaultOn !== value) {\n this._defaultOn = value;\n this._adapter.setDefaultOn(this._defaultOn);\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.DEFAULT_ON, this._defaultOn);\n }\n }\n\n public get value(): string {\n return this._value;\n }\n public set value(value: string) {\n if (this._value !== value) {\n this._value = value;\n this._adapter.setValue(this._value);\n this._adapter.syncValue(this._submittedValue);\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.VALUE, true, this._value);\n }\n }\n\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.toggleHostAttribute(SWITCH_CONSTANTS.attributes.DENSE, this._dense);\n }\n }\n\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(SWITCH_CONSTANTS.attributes.DISABLED, this._disabled);\n }\n }\n\n public get required(): boolean {\n return this._required;\n }\n public set required(value: boolean) {\n if (this._required !== value) {\n this._required = value;\n this._adapter.setRequired(this._required);\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.REQUIRED, this._required);\n }\n }\n\n public get readonly(): boolean {\n return this._readonly;\n }\n public set readonly(value: boolean) {\n if (this._readonly !== value) {\n this._readonly = value;\n this._adapter.setReadonly(this._readonly);\n this._adapter.toggleHostAttribute(SWITCH_CONSTANTS.attributes.READONLY, this._readonly);\n }\n }\n\n public get icon(): SwitchIconVisibility {\n return this._icon;\n }\n public set icon(value: SwitchIconVisibility) {\n if (this._icon !== value) {\n this._icon = value;\n this._adapter.setIconVisibility(this._icon);\n this._adapter.setHostAttribute(SWITCH_CONSTANTS.attributes.ICON, this._icon);\n }\n }\n\n public get labelPosition(): SwitchLabelPosition {\n return this._labelPosition;\n }\n public set labelPosition(value: SwitchLabelPosition) {\n if (this._labelPosition !== value) {\n this._labelPosition = value;\n this._adapter.setLabelPosition(this._labelPosition);\n this._adapter.setHostAttribute(SWITCH_CONSTANTS.attributes.LABEL_POSITION, this._labelPosition);\n }\n }\n}\n", "import { CustomElement, FoundationProperty, attachShadowTemplate, coerceBoolean, isDefined, isString, toggleAttribute } from '@tylertech/forge-core';\nimport { BaseNullableFormComponent, IBaseNullableFormComponent } from '../core/base/base-nullable-form-component';\nimport { FocusIndicatorComponent } from '../focus-indicator/focus-indicator';\nimport { StateLayerComponent } from '../state-layer/state-layer';\nimport { SwitchAdapter } from './switch-adapter';\nimport { SWITCH_CONSTANTS, SwitchIconVisibility, SwitchLabelPosition } from './switch-constants';\nimport { SwitchFoundation } from './switch-foundation';\nimport { ILabelAware } from '../label/label-aware';\nimport { internals } from '../constants';\n\nconst template = '<template><div class=\\\"forge-switch\\\" part=\\\"switch\\\"><div id=\\\"container\\\" class=\\\"container\\\"><slot name=\\\"input\\\"><input id=\\\"input\\\" class=\\\"input\\\" type=\\\"checkbox\\\" role=\\\"switch\\\"></slot><div class=\\\"track\\\" part=\\\"track\\\"></div><div class=\\\"handle\\\" part=\\\"handle\\\"><div id=\\\"icon-off\\\" class=\\\"icon icon__off\\\" part=\\\"icon-off\\\"><slot name=\\\"icon-off\\\"><svg aria-hidden=\\\"true\\\" viewBox=\\\"0 0 24 24\\\"><path d=\\\"M20 13H4v-2h16v2z\\\"/></svg></slot></div><div id=\\\"icon-on\\\" class=\\\"icon icon__on\\\" part=\\\"icon-on\\\"><slot name=\\\"icon-on\\\"><svg aria-hidden=\\\"true\\\" viewBox=\\\"0 0 24 24\\\"><path d=\\\"M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z\\\"/></svg></slot></div><forge-state-layer target=\\\"container\\\" exportparts=\\\"surface:state-layer\\\"></forge-state-layer></div><forge-focus-indicator target=\\\"container\\\" part=\\\"focus-indicator\\\"></forge-focus-indicator></div><label id=\\\"label\\\" for=\\\"input\\\" class=\\\"label\\\" part=\\\"label\\\"><slot></slot></label></div></template>';\nconst styles = ':host{display:inline-block}:host([hidden]){display:none}.forge-switch{--_switch-handle-size:var(--forge-switch-handle-size, 20px);--_switch-handle-scale:var(--forge-switch-handle-scale, 1);--_switch-handle-elevation:var(--forge-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12));--_switch-track-border-width:var(--forge-switch-track-border-width, 0);--_switch-track-border-color:var(--forge-switch-track-border-color, transparent);--_switch-icon-color:var(--forge-switch-icon-color, var(--forge-theme-on-tertiary, #ffffff));--_switch-icon-size:var(--forge-switch-icon-size, 16px);--_switch-icon-scale:var(--forge-switch-icon-scale, 1);--_switch-state-layer-size:var(--forge-switch-state-layer-size, 40px);--_switch-state-layer-dense-size:var(--forge-switch-handle-dense-size, 28px);--_switch-handle-on-color:var(--forge-switch-handle-on-color, var(--forge-theme-tertiary, #3d5afe));--_switch-handle-off-color:var(--forge-switch-handle-off-color, var(--forge-theme-surface-container-high, #9e9e9e));--_switch-handle-width:var(--forge-switch-handle-width, var(--_switch-handle-size));--_switch-handle-height:var(--forge-switch-handle-height, var(--_switch-handle-size));--_switch-handle-on-scale:var(--forge-switch-handle-on-scale, var(--_switch-handle-scale));--_switch-handle-off-scale:var(--forge-switch-handle-off-scale, var(--_switch-handle-scale));--_switch-handle-shape:var(--forge-switch-handle-shape, var(--forge-shape-round, 50%));--_switch-handle-on-elevation:var(--forge-switch-handle-on-elevation, var(--_switch-handle-elevation));--_switch-handle-off-elevation:var(--forge-switch-handle-off-elevation, var(--_switch-handle-elevation));--_switch-track-on-color:var(--forge-switch-track-on-color, var(--forge-theme-tertiary-container, #d0d7ff));--_switch-track-off-color:var(--forge-switch-track-off-color, var(--forge-theme-surface-container, #e0e0e0));--_switch-track-width:var(--forge-switch-track-width, 36px);--_switch-track-height:var(--forge-switch-track-height, 14px);--_switch-track-shape:var(--forge-switch-track-shape, var(--forge-shape-full, 9999px));--_switch-track-on-border-width:var(--forge-switch-track-on-border-width, var(--_switch-track-border-width));--_switch-track-off-border-width:var(--forge-switch-track-off-border-width, var(--_switch-track-border-width));--_switch-track-on-border-color:var(--forge-switch-track-on-border-color, var(--_switch-track-border-color));--_switch-track-off-border-color:var(--forge-switch-track-off-border-color, var(--_switch-track-border-color));--_switch-icon-on-color:var(--forge-switch-icon-on-color, var(--_switch-icon-color));--_switch-icon-off-color:var(--forge-switch-icon-off-color, var(--_switch-icon-color));--_switch-icon-on-size:var(--forge-switch-icon-on-size, var(--_switch-icon-size));--_switch-icon-off-size:var(--forge-switch-icon-off-size, var(--_switch-icon-size));--_switch-icon-on-scale:var(--forge-switch-icon-on-scale, var(--_switch-icon-scale));--_switch-icon-off-scale:var(--forge-switch-icon-off-scale, var(--_switch-icon-scale));--_switch-gap:var(--forge-switch-gap, 0);--_switch-justify:var(--forge-switch-justify, space-between);--_switch-direction:var(--forge-switch-direction, initial);--_switch-state-layer-width:var(--forge-switch-state-layer-width, var(--_switch-state-layer-size));--_switch-state-layer-height:var(--forge-switch-state-layer-height, var(--_switch-state-layer-size));--_switch-state-layer-on-color:var(--forge-switch-state-layer-on-color, var(--_switch-handle-on-color));--_switch-state-layer-off-color:var(--forge-state-layer-state-layer-off-color, var(--_state-layer-color));--_switch-state-layer-dense-width:var(--forge-switch-state-layer-dense-width, var(--_switch-state-layer-dense-size));--_switch-state-layer-dense-height:var(--forge-switch-state-layer-dense-height, var(--_switch-state-layer-dense-size));--_switch-disabled-opacity:var(--forge-switch-disabled-opacity, 0.38);--_switch-handle-active-on-color:var(--forge-switch-handle-active-on-color, var(--_switch-handle-on-color));--_switch-handle-active-off-color:var(--forge-switch-handle-active-off-color, var(--_switch-handle-off-color));--_switch-handle-active-scale:var(--forge-switch-handle-active-scale, 1.2);--_switch-handle-active-on-scale:var(--forge-switch-handle-active-on-scale, var(--_switch-handle-active-scale));--_switch-handle-active-off-scale:var(--forge-switch-handle-active-off-scale, var(--_switch-handle-active-scale));--_switch-handle-active-elevation:var(--forge-switch-handle-active-elevation, var(--_switch-handle-elevation));--_switch-handle-active-on-elevation:var(--forge-switch-handle-active-on-elevation, var(--_switch-handle-active-elevation));--_switch-handle-active-off-elevation:var(--forge-switch-handle-active-on-elevation, var(--_switch-handle-active-elevation));--_switch-track-active-on-color:var(--forge-switch-track-active-on-color, var(--_switch-track-on-color));--_switch-track-active-off-color:var(--forge-switch-track-active-off-color, var(--_switch-track-off-color));--_switch-track-active-on-border-width:var(--forge-switch-track-active-on-border-width, var(--_switch-track-on-border-width));--_switch-track-active-off-border-width:var(--forge-switch-track-active-off-border-width, var(--_switch-track-off-border-width));--_switch-track-active-on-border-color:var(--forge-switch-track-active-on-border-color, var(--_switch-track-on-border-color));--_switch-track-active-off-border-color:var(--forge-switch-track-active-off-border-color, var(--_switch-track-off-border-color));--_switch-icon-active-on-color:var(--forge-switch-icon-active-on-color, var(--_switch-icon-on-color));--_switch-icon-active-off-color:var(--forge-switch-icon-active-off-color, var(--_switch-icon-off-color));--_switch-icon-active-on-scale:var(--forge-switch-icon-active-on-scale, var(--_switch-icon-on-scale));--_switch-icon-active-off-scale:var(--forge-switch-icon-active-off-scale, var(--_switch-icon-off-scale));--_switch-animation-duration:var(--forge-switch-animation-duration, var(--forge-animation-duration-short2, 100ms));--_switch-animation-timing:var(--forge-switch-animation-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_switch-active-animation-timing:var(--forge-switch-active-animation-timing, var(--forge-animation-easing-linear, cubic-bezier(0, 0, 1, 1)))}.forge-switch{position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:var(--_switch-direction);flex-shrink:0;-webkit-box-align:center;align-items:center;-webkit-box-pack:var(--_switch-justify);justify-content:var(--_switch-justify);gap:var(--_switch-gap);display:-webkit-box;display:flex;--_switch-current-state-layer-width:var(--_switch-state-layer-width);--_switch-current-state-layer-height:var(--_switch-state-layer-height)}.forge-switch .container{position:relative;-webkit-box-align:center;align-items:center;display:-webkit-box;display:flex;block-size:max(var(--_switch-handle-height),var(--_switch-track-height),var(--_switch-current-state-layer-height));cursor:pointer}.forge-switch .input{position:absolute;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;margin:0;inline-size:100%;block-size:100%;cursor:unset}.forge-switch .track{-webkit-transition-property:background-color,border-color,border-width;transition-property:background-color,border-color,border-width;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);-webkit-box-sizing:border-box;box-sizing:border-box;margin-inline:calc(max(var(--_switch-handle-width),var(--_switch-current-state-layer-width))/ 2 - calc(var(--_switch-track-height)/ 2));border-width:var(--_switch-track-off-border-width);border-color:var(--_switch-track-off-border-color);border-style:solid;border-radius:var(--_switch-track-shape);inline-size:var(--_switch-track-width);block-size:var(--_switch-track-height);background-color:var(--_switch-track-off-color)}.forge-switch .handle{position:absolute;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;display:-webkit-box;display:flex;-webkit-transition-property:translate;transition-property:translate;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);border-radius:var(--_switch-handle-shape);inline-size:var(--_switch-current-state-layer-width);block-size:var(--_switch-current-state-layer-height)}.forge-switch .handle::before{content:\\\"\\\";position:relative;display:block;scale:var(--_switch-handle-off-scale);-webkit-transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);-webkit-box-shadow:var(--_switch-handle-off-elevation);box-shadow:var(--_switch-handle-off-elevation);border-radius:var(--_switch-handle-shape);inline-size:var(--_switch-handle-width);block-size:var(--_switch-handle-height);background-color:var(--_switch-handle-off-color)}.forge-switch .icon{position:absolute;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;display:-webkit-box;display:flex;-webkit-transition-property:opacity,scale;transition-property:opacity,scale;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);inline-size:var(--_switch-icon-off-size);block-size:var(--_switch-icon-off-size);color:var(--_switch-icon-off-color);fill:var(--_switch-icon-off-color);font-size:var(--_switch-icon-off-size);--forge-icon-font-size:var(--_switch-icon-off-size)}.forge-switch .icon__on{--forge-icon-font-size:var(--_switch-icon-on-size);inline-size:var(--_switch-icon-on-size);block-size:var(--_switch-icon-on-size);color:var(--_switch-icon-on-color);fill:var(--_switch-icon-on-color);font-size:var(--_switch-icon-on-size);opacity:0;scale:0.4}.forge-switch .icon__off{opacity:1;scale:var(--_switch-icon-off-scale)}.forge-switch .label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label-font-family, var(--forge-typography-font-family, \\\"Roboto\\\", sans-serif));font-size:var(--forge-typography-label-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label-font-weight,400);line-height:var(--forge-typography-label-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-label-text-decoration,inherit);text-decoration:var(--forge-typography-label-text-decoration,inherit)}.forge-switch .label:empty{display:none}.forge-switch .hidden{display:none}.forge-switch ::slotted([slot=input]){position:absolute;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;margin:0;inline-size:100%;block-size:100%;cursor:unset}:host([on]) .track{border-width:var(--_switch-track-on-border-width);border-color:var(--_switch-track-on-border-color);background-color:var(--_switch-track-on-color)}:host([on]) .handle{translate:calc(var(--_switch-track-width) - calc(var(--_switch-track-height)/ 2) * 2)}:host([on]) .handle::before{scale:var(--_switch-handle-on-scale);-webkit-box-shadow:var(--_switch-handle-on-elevation);box-shadow:var(--_switch-handle-on-elevation);background-color:var(--_switch-handle-on-color)}:host([on]) .handle .icon__on{opacity:1;scale:var(--_switch-icon-on-scale)}:host([on]) .handle .icon__off{opacity:0;scale:0.4}:host([on]) forge-state-layer{--forge-state-layer-color:var(--_switch-state-layer-on-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .track{border-width:var(--_switch-track-active-off-border-width);border-color:var(--_switch-track-active-off-border-color);background-color:var(--_switch-track-active-off-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .handle::before{scale:var(--_switch-handle-active-off-scale);-webkit-box-shadow:var(--_switch-handle-active-off-elevation);box-shadow:var(--_switch-handle-active-off-elevation);background-color:var(--_switch-handle-active-off-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .handle .icon{scale:var(--_switch-icon-active-off-scale);color:var(--_switch-icon-active-off-color);fill:var(--_switch-icon-active-off-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .track{border-width:var(--_switch-track-active-on-border-width);border-color:var(--_switch-track-active-on-border-color);background-color:var(--_switch-track-active-on-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .handle::before{scale:var(--_switch-handle-active-on-scale);-webkit-box-shadow:var(--_switch-handle-active-on-elevation);box-shadow:var(--_switch-handle-active-on-elevation);background-color:var(--_switch-handle-active-on-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .handle .icon{scale:var(--_switch-icon-active-on-scale);color:var(--_switch-icon-active-on-color);fill:var(--_switch-icon-active-on-color)}:host([dense]) .forge-switch{--_switch-current-state-layer-width:var(--_switch-state-layer-dense-width);--_switch-current-state-layer-height:var(--_switch-state-layer-dense-height)}:host([disabled]) .forge-switch{opacity:var(--_switch-disabled-opacity)}:host([disabled]) .forge-switch .container{cursor:not-allowed}:host([disabled]) .forge-switch .handle::before{-webkit-box-shadow:none;box-shadow:none}:host([readonly]) .forge-switch .container{cursor:not-allowed}@media (prefers-reduced-motion){.switch{--_switch-animation-duration:var(--forge-switch-animation-duration, 0s)}}forge-state-layer{--forge-state-layer-color:var(--_switch-state-layer-off-color)}forge-focus-indicator{--forge-focus-indicator-shape:var(--_switch-track-shape);--forge-focus-indicator-outward-offset:0px}';\n\nexport interface ISwitchComponent extends IBaseNullableFormComponent, ILabelAware {\n on: boolean;\n /**\n * @deprecated use `on` instead\n */\n selected: boolean;\n defaultOn: boolean;\n dense: boolean;\n icon: SwitchIconVisibility;\n labelPosition: SwitchLabelPosition;\n toggle(force?: boolean): void;\n setFormValue(value: string | File | FormData | null, state?: string | File | FormData | null | undefined): void;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-switch': ISwitchComponent;\n }\n\n interface HTMLElementEventMap {\n 'forge-switch-change': CustomEvent<boolean>;\n }\n}\n\n/**\n * @tag forge-switch\n * \n * @summary Switches toggle the state of a single setting on or off.\n * \n * @description\n * Use switches to:\n * - Toggle a single item on or off, on mobile and tablet\n * - Immediately activate or deactivate something\n * \n * @property {boolean} on - Whether the switch is on the on or off state.\n * @property {boolean} selected - Deprecated. Alias for `on`.\n * @property {boolean} defaultOn - Whether the switch is on or off by default.\n * @property {string} value - The value of the switch.\n * @property {boolean} dense - The density state.\n * @property {boolean} disabled - Controls if the switch is disabled.\n * @property {boolean} required = Controls if the switch is required.\n * @property {boolean} readonly - Controls if the switch is readonly.\n * @property {SwitchIconVisibility} icon - Controls the presence of the off and on icons.\n * @property {SwitchLabelPosition} labelPosition - Whether the label appears before or after the switch.\n * \n * @attribute {string} on - Controls whether the switch is in the on or off state.\n * @attribute {string} selected - Deprecated. Alias for `on`.\n * @attribute {string} default-on - Controls whether the switch is in the on or off state by default.\n * @attribute {string} value - The value of the switch.\n * @attribute {string} dense - Sets the density state.\n * @attribute {string} disabled - Controls if the switch is disabled.\n * @attribute {string} required - Controls if the switch is required.\n * @attribute {string} readonly - Controls if the switch is readonly.\n * @attribute {string} icon - Controls the presence of the off and on icons.\n * @attribute {string} label-position - Sets whether the label appears before or after the switch.\n * \n * @method {(force?: boolean) => void} toggle - Toggles whether the switch is selected or forces a selected state.\n * \n * @event {CustomEvent} forge-switch-change - Dispatches when the switch's value changes.\n * \n * @cssproperty --forge-theme-primary - The primary color of the switch.\n * @cssproperty --forge-theme-on-primary - The color of elements placed on top of the primary color (the handle icons for example).\n * @cssproperty --forge-switch-handle-on-color - The color of the handle in the switch's on state.\n * @cssproperty --forge-switch-handle-off-color - The color of the handle in the switch's off state.\n * @cssproperty --forge-switch-handle-active-on-color - The color of the handle when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-handle-active-off-color - The color of the handle when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-handle-size - The inline and block size of the handle.\n * @cssproperty --forge-switch-handle-width - The inline size of the handle.\n * @cssproperty --forge-switch-handle-height - The block size of the handle.\n * @cssproperty --forge-switch-handle-scale - The scale transformation applied to the handle.\n * @cssproperty --forge-switch-handle-on-scale - The scale transformation applied to the handle in the switch's on state.\n * @cssproperty --forge-switch-handle-off-scale - The scale transformation applied to the handle in the switch's off state.\n * @cssproperty --forge-switch-handle-active-scale - The scale transformation applied to the handle when the switch is active (pressed).\n * @cssproperty --forge-switch-handle-active-on-scale - The scale transformation applied to the handle when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-handle-active-off-scale - The scale transformation applied to the handle when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-handle-shape - The shape of the handle.\n * @cssproperty --forge-switch-handle-elevation - The handle's shadow.\n * @cssproperty --forge-switch-handle-on-elevation - The handle's shadow in the switch's on state.\n * @cssproperty --forge-switch-handle-off-elevation - The handle's shadow in the switch's off state.\n * @cssproperty --forge-switch-handle-active-elevation - The handle's shadow when the switch is active (pressed).\n * @cssproperty --forge-switch-handle-active-on-elevation - The handle's shadow when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-handle-active-off-elevation - The handle's shadow when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-track-on-color - The color of the track in the switch's on state.\n * @cssproperty --forge-switch-track-off-color - The color fo the track in the switch's off state.\n * @cssproperty --forge-switch-track-active-on-color - The color of the track when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-track-active-off-color - The color fo the track when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-track-width - The inline size of the track.\n * @cssproperty --forge-switch-track-height - The block size of the track.\n * @cssproperty --forge-switch-track-shape - The shape of the track.\n * @cssproperty --forge-switch-track-border-width - The width of the track border.\n * @cssproperty --forge-switch-track-on-border-width - The width of the track border in the switch's on state.\n * @cssproperty --forge-switch-track-off-border-width - The width of the track border in the switch's off state.\n * @cssproperty --forge-switch-track-active-on-border-width - The width of the track border when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-track-active-off-border-width - The width of the track border when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-track-border-color - The color of the track border.\n * @cssproperty --forge-switch-track-on-border-color - The color of the track border in the switch's on state.\n * @cssproperty --forge-switch-track-off-border-color - The color of the track border in the switch's off state.\n * @cssproperty --forge-switch-track-active-on-border-color - The color of the track border when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-track-active-off-border-color - The color of the track border when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-icon-color - The color of the handle icons.\n * @cssproperty --forge-switch-icon-on-color - The color of the handle icon in the switch's on state.\n * @cssproperty --forge-switch-icon-off-color - The color of the handle icon in the switch's off state.\n * @cssproperty --forge-switch-icon-active-on-color - The color of the handle icon when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-icon-active-off-color - The color of the handle icon when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-icon-size - The size of the handle icon.\n * @cssproperty --forge-switch-icon-on-size - The size of the handle icon in the switch's on state.\n * @cssproperty --forge-switch-icon-off-size - The size of the handle icon in the switch's off state.\n * @cssproperty --forge-switch-icon-scale - The scale transformation applied to the handle icons.\n * @cssproperty --forge-switch-icon-on-scale - The scale transformation applied to the handle icons in the switch's on state.\n * @cssproperty --forge-switch-icon-off-scale - The scale transformation applied to the handle icons in the switch's off state.\n * @cssproperty --forge-switch-icon-active-on-scale - The scale transformation applied to the handle icons when the switch is active (pressed) in its on state.\n * @cssproperty --forge-switch-icon-active-off-scale - The scale transformation applied to the handle icons when the switch is active (pressed) in its off state.\n * @cssproperty --forge-switch-gap - The space between the switch and label.\n * @cssproperty --forge-switch-justify - How the switch and label are distributed along their main axis.\n * @cssproperty --forge-switch-direction - Whether the switch and label are arranged along the inline or block axis.\n * @cssproperty --forge-switch-state-layer-size - The inline and block size of the handle's state layer.\n * @cssproperty --forge-switch-state-layer-width - The inline size of the handle's state layer.\n * @cssproperty --forge-switch-state-layer-height - The block size of the handle's state layer.\n * @cssproperty --forge-switch-state-layer-on-color - The color of the handle's state layer when the switch is in its on state.\n * @cssproperty --forge-switch-state-layer-off-color - The color of the handle's state layer when the switch is in its off state.\n * @cssproperty --forge-switch-state-layer-dense-size - The inline and block size of the handle's state layer when the dense switch is used.\n * @cssproperty --forge-switch-state-layer-dense-width - The inline size of the handle's state layer when the dense switch is used.\n * @cssproperty --forge-switch-state-layer-dense-height - The block size of the handle's state layer when the dense switch is used.\n * @cssproperty --forge-switch-disabled-opacity - The opacity of the switch when disabled.\n * @cssproperty --forge-switch-animation-duration - The duration of animations.\n * @cssproperty --forge-switch-animation-timing - The timing function used in most animations.\n * @cssproperty --forge-switch-active-animation-timing - The timing function used in active state animations.\n * \n * @csspart switch - Styles the switch container element.\n * @csspart track - Styles the track element.\n * @csspart handle - Styles the handle element.\n * @csspart icon-on - Styles the on icon element.\n * @csspart icon-off - Styles the off icon element.\n * @csspart label - Styles the label element.\n * @csspart state-layer - Styles the state layer root element.\n * @csspart focus-indicator - Styles the focus indicator root element.\n */\n@CustomElement({\n name: SWITCH_CONSTANTS.elementName,\n dependencies: [\n FocusIndicatorComponent,\n StateLayerComponent\n ]\n})\nexport class SwitchComponent extends BaseNullableFormComponent implements ISwitchComponent {\n public static get observedAttributes(): string[] {\n return [\n SWITCH_CONSTANTS.attributes.ON,\n SWITCH_CONSTANTS.attributes.SELECTED,\n SWITCH_CONSTANTS.attributes.DEFAULT_ON,\n SWITCH_CONSTANTS.attributes.VALUE,\n SWITCH_CONSTANTS.attributes.DENSE,\n SWITCH_CONSTANTS.attributes.DISABLED,\n SWITCH_CONSTANTS.attributes.REQUIRED,\n SWITCH_CONSTANTS.attributes.READONLY,\n SWITCH_CONSTANTS.attributes.ICON,\n SWITCH_CONSTANTS.attributes.LABEL_POSITION\n ];\n }\n\n public get form(): HTMLFormElement | null {\n return this[internals].form;\n }\n\n public get labels(): NodeList {\n return this[internals].labels;\n }\n\n public get name(): string {\n return this.getAttribute('name') ?? '';\n }\n public set name(value: string) {\n toggleAttribute(this, !!value, 'name', value ?? '');\n }\n\n public get validity(): ValidityState {\n this._foundation.syncValidity(this._hasCustomValidityError);\n return this[internals].validity;\n }\n\n public get validationMessage(): string {\n this._foundation.syncValidity(this._hasCustomValidityError);\n return this[internals].validationMessage;\n }\n\n public get willValidate(): boolean {\n return this[internals].willValidate;\n }\n\n public readonly [internals]: ElementInternals;\n private readonly _foundation: SwitchFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles, true);\n this[internals] = this.attachInternals();\n this._foundation = new SwitchFoundation(new SwitchAdapter(this));\n }\n\n public connectedCallback(): void {\n this._foundation.initialize();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case SWITCH_CONSTANTS.attributes.ON:\n case SWITCH_CONSTANTS.attributes.SELECTED:\n this.on = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.attributes.DEFAULT_ON:\n this.defaultOn = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.attributes.VALUE:\n this.value = newValue;\n break;\n case SWITCH_CONSTANTS.attributes.DENSE:\n this.dense = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.attributes.DISABLED:\n this.disabled = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.attributes.REQUIRED:\n this.required = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.attributes.READONLY:\n this.readonly = coerceBoolean(newValue);\n break;\n case SWITCH_CONSTANTS.attributes.ICON:\n this.icon = newValue as SwitchIconVisibility;\n break;\n case SWITCH_CONSTANTS.attributes.LABEL_POSITION:\n this.labelPosition = newValue as SwitchLabelPosition;\n break;\n }\n }\n\n public setFormValue(value: string | File | FormData | null, state?: string | File | FormData | null | undefined): void {\n this[internals].setFormValue(value, state);\n\n if (state) {\n const stateValue = isString(state) ? state : state[this.name];\n this.on = stateValue === SWITCH_CONSTANTS.state.ON;\n return;\n }\n\n if (isString(value)) {\n this.on = !!value;\n } else if (value?.[this.name]) {\n this.on = !!value[this.name];\n } else {\n this.on = false;\n }\n }\n\n public checkValidity(): boolean {\n this._foundation.syncValidity(this._hasCustomValidityError);\n return this[internals].checkValidity();\n }\n\n public reportValidity(): boolean {\n this._foundation.syncValidity(this._hasCustomValidityError);\n return this[internals].reportValidity();\n }\n\n public setCustomValidity(error: string): void {\n this._hasCustomValidityError = !!error;\n this._foundation.setValidity({ customError: !!error }, error);\n }\n\n public formResetCallback(): void {\n this.on = this.defaultOn;\n }\n\n public formStateRestoreCallback(state: string): void {\n this.on = state === SWITCH_CONSTANTS.state.ON;\n }\n\n public formDisabledCallback(isDisabled: boolean): void {\n this.disabled = isDisabled;\n }\n\n public labelClickedCallback(): void {\n this._foundation.proxyClick();\n }\n\n public labelChangedCallback(value: string | null): void {\n this._foundation.proxyLabel(value);\n }\n\n @FoundationProperty()\n public declare on: boolean;\n\n /**\n * @deprecated use `on` instead\n */\n @FoundationProperty({ name: 'on' })\n public declare selected: boolean;\n\n @FoundationProperty()\n public declare defaultOn: boolean;\n\n @FoundationProperty()\n public declare value: string;\n\n @FoundationProperty()\n public declare dense: boolean;\n\n @FoundationProperty()\n public declare disabled: boolean;\n\n @FoundationProperty()\n public declare required: boolean;\n\n @FoundationProperty()\n public declare readonly: boolean;\n\n @FoundationProperty()\n public declare icon: SwitchIconVisibility;\n\n @FoundationProperty()\n public declare labelPosition: SwitchLabelPosition;\n\n /**\n * Toggles the switch on or off.\n * @param force Whether to set the switch on or off.\n */\n public toggle(force?: boolean): void {\n if (isDefined(force)) {\n this._foundation.on = force as boolean;\n } else {\n this._foundation.on = !this._foundation.on;\n }\n }\n}\n", "import { FormFieldComponentDelegate, IFormFieldComponentDelegateOptions } from '../core';\nimport { IBaseComponentDelegateConfig } from '../core/delegates/base-component-delegate';\nimport { ISwitchComponent } from './switch';\nimport { SWITCH_CONSTANTS, SwitchIconVisibility, SwitchLabelPosition } from './switch-constants';\n\nexport type SwitchComponentDelegateProps = Partial<ISwitchComponent>;\nexport interface ISwitchComponentDelegateOptions extends IFormFieldComponentDelegateOptions {\n id?: string;\n label?: string;\n}\nexport interface ISwitchComponentDelegateConfig extends IBaseComponentDelegateConfig<ISwitchComponent, ISwitchComponentDelegateOptions> {}\n\nexport class SwitchComponentDelegate extends FormFieldComponentDelegate<ISwitchComponent, ISwitchComponentDelegateOptions> {\n constructor(config?: ISwitchComponentDelegateConfig) {\n super(config);\n }\n\n public get value(): string {\n return this._element.value;\n }\n public set value(value: string) {\n this._element.value = value;\n }\n\n public get on(): boolean {\n return this._element.on;\n }\n public set on(value: boolean) {\n this._element.on = value;\n }\n\n public get selected(): boolean {\n return this._element.selected;\n }\n public set selected(value: boolean) {\n this._element.selected = value;\n }\n\n public get defaultOn(): boolean {\n return this._element.defaultOn;\n }\n public set defaultOn(value: boolean) {\n this._element.defaultOn = value;\n }\n\n public get icon(): SwitchIconVisibility {\n return this._element.icon;\n }\n public set icon(value: SwitchIconVisibility) {\n this._element.icon = value;\n }\n\n public get disabled(): boolean {\n return this._element.disabled;\n }\n public set disabled(value: boolean) {\n this._element.disabled = value;\n }\n\n public get dense(): boolean {\n return this._element.dense;\n }\n public set dense(value: boolean) {\n this._element.dense = value;\n }\n\n public get required(): boolean {\n return this._element.required;\n }\n public set required(value: boolean) {\n this._element.required = value;\n }\n\n public get readonly(): boolean {\n return this._element.readonly;\n }\n public set readonly(value: boolean) {\n this._element.readonly = value;\n }\n\n public get name(): string {\n return this._element.name;\n }\n public set name(value: string) {\n this._element.name = value;\n }\n\n public get labelPosition(): SwitchLabelPosition {\n return this._element.labelPosition;\n }\n public set labelPosition(value: SwitchLabelPosition) {\n this._element.labelPosition = value;\n }\n\n public onChange(listener: (value: boolean) => void): void {\n this._element.addEventListener('forge-switch-change', ({ detail }: CustomEvent<boolean>) => listener(detail));\n }\n\n public onFocus(listener: (evt: Event) => void): void {\n this._element.addEventListener('focus', evt => listener(evt));\n }\n\n public onBlur(listener: (evt: Event) => void): void {\n this._element.addEventListener('blur', evt => listener(evt));\n }\n\n public setLabel(text: string | null): void {\n this._element.innerText = text ?? '';\n }\n\n public toggle(force?: boolean): void {\n this._element.toggle(force);\n }\n\n protected _build(): ISwitchComponent {\n return document.createElement(SWITCH_CONSTANTS.elementName);\n }\n\n protected override _configure(): void {\n if (this._config.options?.id) {\n this._element.id = this._config.options.id;\n }\n if (this._config.options?.label) {\n this._element.innerText = this._config.options.label;\n }\n }\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\n\nimport { SwitchComponent } from './switch';\n\nexport * from './switch-adapter';\nexport * from './switch-constants';\nexport * from './switch-foundation';\nexport * from './switch';\nexport * from './switch-component-delegate';\n\nexport function defineSwitchComponent(): void {\n defineCustomElement(SwitchComponent);\n}\n"],
5
- "mappings": "4lBAGA,IAAMA,EAA2C,GAAGC,UAE9CC,EAAU,CACd,OAAQ,QACV,EAEMC,EAAa,CACjB,GAAI,KACJ,SAAU,WACV,WAAY,aACZ,MAAO,QACP,MAAO,QACP,SAAU,WACV,SAAU,WACV,SAAU,WACV,KAAM,OACN,eAAgB,gBAClB,EAEMC,EAAY,CAChB,KAAM,gBACN,MAAO,SACP,MAAO,SACP,QAAS,WACT,SAAU,YACV,WAAY,mBACZ,YAAa,oBACb,cAAe,sBACjB,EAEMC,EAAS,CACb,OAAQ,GAAGL,UACb,EAEMM,EAAQ,CACZ,GAAI,KACJ,IAAK,KACP,EAEMC,EAAsB,CAAC,GAAGC,CAAqB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,KAAK,SAAS,UAAY,KAAK,QAAQ,QAAQ,MAEnD,CACF,ECpHO,SAASC,IAA8B,CAC5CC,EAAoBC,CAAe,CACrC",
6
- "names": ["elementName", "COMPONENT_NAME_PREFIX", "classes", "attributes", "selectors", "events", "state", "forwardedAttributes", "INPUT_ARIA_ATTRIBUTES", "SWITCH_CONSTANTS", "SwitchAdapter", "BaseAdapter", "component", "getShadowElement", "SWITCH_CONSTANTS", "SlottedElementAdapter", "_a", "slottedInput", "value", "toggleAttribute", "hideOn", "hideOff", "toggleClass", "event", "callback", "inputElement", "internals", "data", "hasCustomValidityError", "flags", "message", "el", "forwardAttributes", "name", "hasAriaLabel", "newEl", "oldEl", "cloneAttributes", "cloneProperties", "INPUT_PROPERTIES", "cloneValidationMessage", "SwitchFoundation", "_adapter", "evt", "value", "hasCustomValidityError", "flags", "message", "newValue", "oldValue", "SWITCH_CONSTANTS", "template", "styles", "SwitchComponent", "BaseNullableFormComponent", "attachShadowTemplate", "internals", "SwitchFoundation", "SwitchAdapter", "SWITCH_CONSTANTS", "_a", "value", "toggleAttribute", "name", "oldValue", "newValue", "coerceBoolean", "state", "stateValue", "isString", "error", "isDisabled", "force", "isDefined", "__decorateClass", "FoundationProperty", "CustomElement", "FocusIndicatorComponent", "StateLayerComponent", "SwitchComponentDelegate", "FormFieldComponentDelegate", "config", "value", "listener", "detail", "evt", "text", "force", "SWITCH_CONSTANTS", "_a", "_b", "defineSwitchComponent", "defineCustomElement", "SwitchComponent"]
7
- }
@@ -1,177 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{a as S}from"./chunk.NVUMRW44.js";import{a as B}from"./chunk.T4J66YX5.js";import{a as j}from"./chunk.6ZJIHOIG.js";import{a as P,k as G}from"./chunk.TPXXHX5J.js";import{f as L,g as I}from"./chunk.HZUQXCOQ.js";import{k as U}from"./chunk.J2M2MXP2.js";import{d as m}from"./chunk.M3QDAYD2.js";var N=`${j}ripple`,Q={SURFACE:"mdc-ripple-surface"},Y={TARGET:"target",UNBOUNDED:"unbounded"},c={elementName:N,classes:Q,attributes:Y};var y;function z(i,r){r===void 0&&(r=!1);var t=i.CSS,e=y;if(typeof y=="boolean"&&!r)return y;var n=t&&typeof t.supports=="function";if(!n)return!1;var a=t.supports("--css-vars","yes"),o=t.supports("(--css-vars: yes)")&&t.supports("color","#00000000");return e=a||o,r||(y=e),e}function E(i,r,t){if(!i)return{x:0,y:0};var e=r.x,n=r.y,a=e+t.left,o=n+t.top,s,u;if(i.type==="touchstart"){var v=i;s=v.changedTouches[0].pageX-a,u=v.changedTouches[0].pageY-o}else{var p=i;s=p.pageX-a,u=p.pageY-o}return{x:s,y:u}}var R=function(i,r){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},R(i,r)};function g(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");R(i,r);function t(){this.constructor=i}i.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var l=function(){return l=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},l.apply(this,arguments)};function f(i){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&i[r],e=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&e>=i.length&&(i=void 0),{value:i&&i[e++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function T(i,r){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var e=t.call(i),n,a=[],o;try{for(;(r===void 0||r-- >0)&&!(n=e.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=e.return)&&t.call(e)}finally{if(o)throw o.error}}return a}function X(i,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,a;e<n;e++)(a||!(e in r))&&(a||(a=Array.prototype.slice.call(r,0,e)),a[e]=r[e]);return i.concat(a||Array.prototype.slice.call(r))}var b=function(){function i(r){r===void 0&&(r={}),this.adapter=r}return Object.defineProperty(i,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),i.prototype.init=function(){},i.prototype.destroy=function(){},i}();var q=function(){function i(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];this.root=r,this.initialize.apply(this,X([],T(e))),this.foundation=t===void 0?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}return i.attachTo=function(r){return new i(r,new b({}))},i.prototype.initialize=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t]},i.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},i.prototype.initialSyncWithDOM=function(){},i.prototype.destroy=function(){this.foundation.destroy()},i.prototype.listen=function(r,t,e){this.root.addEventListener(r,t,e)},i.prototype.unlisten=function(r,t,e){this.root.removeEventListener(r,t,e)},i.prototype.emit=function(r,t,e){e===void 0&&(e=!1);var n;typeof CustomEvent=="function"?n=new CustomEvent(r,{bubbles:e,detail:t}):(n=document.createEvent("CustomEvent"),n.initCustomEvent(r,e,!1,t)),this.root.dispatchEvent(n)},i}();function h(i){return i===void 0&&(i=window),et(i)?{passive:!0}:!1}function et(i){i===void 0&&(i=window);var r=!1;try{var t={get passive(){return r=!0,!1}},e=function(){};i.document.addEventListener("test",e,t),i.document.removeEventListener("test",e,t)}catch(n){r=!1}return r}function W(i,r){var t=i.matches||i.webkitMatchesSelector||i.msMatchesSelector;return t.call(i,r)}var k={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},V={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},D={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};var Z=["touchstart","pointerdown","mousedown","keydown"],K=["touchend","pointerup","mouseup","contextmenu"],w=[],_=function(i){g(r,i);function r(t){var e=i.call(this,l(l({},r.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(n){e.activateImpl(n)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}return Object.defineProperty(r,"cssClasses",{get:function(){return k},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return V},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return D},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=r.cssClasses,a=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(a),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())})}},r.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(r.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(r.cssClasses.FG_DEACTIVATION));var e=r.cssClasses,n=e.ROOT,a=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(a),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},r.prototype.activate=function(t){this.activateImpl(t)},r.prototype.deactivate=function(){this.deactivateImpl()},r.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},r.prototype.setUnbounded=function(t){var e=r.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},r.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(r.cssClasses.BG_FOCUSED)})},r.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(r.cssClasses.BG_FOCUSED)})},r.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},r.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},r.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var a=f(Z),o=a.next();!o.done;o=a.next()){var s=o.value;this.adapter.registerInteractionHandler(s,this.activateHandler)}}catch(u){e={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},r.prototype.registerDeactivationHandlers=function(t){var e,n;if(t.type==="keydown")this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var a=f(K),o=a.next();!o.done;o=a.next()){var s=o.value;this.adapter.registerDocumentInteractionHandler(s,this.deactivateHandler)}}catch(u){e={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}},r.prototype.deregisterRootHandlers=function(){var t,e;try{for(var n=f(Z),a=n.next();!a.done;a=n.next()){var o=a.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},r.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=f(K),a=n.next();!a.done;a=n.next()){var o=a.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},r.prototype.removeCssVars=function(){var t=this,e=r.strings,n=Object.keys(e);n.forEach(function(a){a.indexOf("VAR_")===0&&t.adapter.updateCssVariable(e[a],null)})},r.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var a=this.previousActivationEvent,o=a&&t!==void 0&&a.type!==t.type;if(!o){n.isActivated=!0,n.isProgrammatic=t===void 0,n.activationEvent=t,n.wasActivatedByPointer=n.isProgrammatic?!1:t!==void 0&&(t.type==="mousedown"||t.type==="touchstart"||t.type==="pointerdown");var s=t!==void 0&&w.length>0&&w.some(function(u){return e.adapter.containsEventTarget(u)});if(s){this.resetActivationState();return}t!==void 0&&(w.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){w=[],!n.wasElementMadeActive&&t!==void 0&&(t.key===" "||t.keyCode===32)&&(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})}}}},r.prototype.checkElementMadeActive=function(t){return t!==void 0&&t.type==="keydown"?this.adapter.isSurfaceActive():!0},r.prototype.animateActivation=function(){var t=this,e=r.strings,n=e.VAR_FG_TRANSLATE_START,a=e.VAR_FG_TRANSLATE_END,o=r.cssClasses,s=o.FG_DEACTIVATION,u=o.FG_ACTIVATION,v=r.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var p="",F="";if(!this.adapter.isUnbounded()){var M=this.getFgTranslationCoordinates(),H=M.startPoint,O=M.endPoint;p=H.x+"px, "+H.y+"px",F=O.x+"px, "+O.y+"px"}this.adapter.updateCssVariable(n,p),this.adapter.updateCssVariable(a,F),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(u),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},v)},r.prototype.getFgTranslationCoordinates=function(){var t=this.activationState,e=t.activationEvent,n=t.wasActivatedByPointer,a;n?a=E(e,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):a={x:this.frame.width/2,y:this.frame.height/2},a={x:a.x-this.initialSize/2,y:a.y-this.initialSize/2};var o={x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2};return{startPoint:a,endPoint:o}},r.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=r.cssClasses.FG_DEACTIVATION,n=this.activationState,a=n.hasDeactivationUXRun,o=n.isActivated,s=a||!o;s&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},D.FG_DEACTIVATION_MS))},r.prototype.rmBoundedActivationClasses=function(){var t=r.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},r.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},r.numbers.TAP_DELAY_MS)},r.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=l({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},r.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},r.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var e=Math.max(this.frame.height,this.frame.width),n=function(){var o=Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2));return o+r.numbers.PADDING};this.maxRadius=this.adapter.isUnbounded()?e:n();var a=Math.floor(e*r.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&a%2!==0?this.initialSize=a-1:this.initialSize=a,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},r.prototype.updateLayoutCssVars=function(){var t=r.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,a=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(o,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(a,this.unboundedCoords.top+"px"))},r}(b);var $=function(i){g(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.disabled=!1,t}return r.attachTo=function(t,e){e===void 0&&(e={isUnbounded:void 0});var n=new r(t);return e.isUnbounded!==void 0&&(n.unbounded=e.isUnbounded),n},r.createAdapter=function(t){return{addClass:function(e){return t.root.classList.add(e)},browserSupportsCssVars:function(){return z(window)},computeBoundingRect:function(){return t.root.getBoundingClientRect()},containsEventTarget:function(e){return t.root.contains(e)},deregisterDocumentInteractionHandler:function(e,n){return document.documentElement.removeEventListener(e,n,h())},deregisterInteractionHandler:function(e,n){return t.root.removeEventListener(e,n,h())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return W(t.root,":active")},isSurfaceDisabled:function(){return!!t.disabled},isUnbounded:function(){return!!t.unbounded},registerDocumentInteractionHandler:function(e,n){return document.documentElement.addEventListener(e,n,h())},registerInteractionHandler:function(e,n){return t.root.addEventListener(e,n,h())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(e){return t.root.classList.remove(e)},updateCssVariable:function(e,n){return t.root.style.setProperty(e,n)}}},Object.defineProperty(r.prototype,"unbounded",{get:function(){return!!this.isUnbounded},set:function(t){this.isUnbounded=!!t,this.setUnbounded()},enumerable:!1,configurable:!0}),r.prototype.activate=function(){this.foundation.activate()},r.prototype.deactivate=function(){this.foundation.deactivate()},r.prototype.layout=function(){this.foundation.layout()},r.prototype.getDefaultFoundation=function(){return new _(r.createAdapter(this))},r.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},r.prototype.setUnbounded=function(){this.foundation.setUnbounded(!!this.isUnbounded)},r}(q);var C=class extends ${handleFocus(){this.foundation.handleFocus()}handleBlur(){this.foundation.handleBlur()}animate(){this.foundation.animateActivation()}},J=class extends _{};var A=class{constructor(r){this._component=r}_tryFindTarget(){return this._component.parentElement}initialize(r,t){r&&(this._target=(this._component.ownerDocument||document).querySelector(r)),this._target||(this._target=this._tryFindTarget()),this._target&&(this._ripple=new C(this._target),this._ripple.unbounded=t,L(c.classes.SURFACE,this._target))}destroy(){this._ripple&&(this._ripple.destroy(),this._ripple=void 0),this._target&&I(c.classes.SURFACE,this._target),this._target=void 0}activate(){var r;(r=this._ripple)==null||r.activate()}deactivate(){var r;(r=this._ripple)==null||r.deactivate()}};var x=class{constructor(r){this._adapter=r;this._unbounded=!1}initialize(){this._adapter.initialize(this._target,this._unbounded)}disconnect(){this._adapter.destroy()}layout(){this._applyTarget()}activate(){this._adapter.activate()}deactivate(){this._adapter.deactivate()}_applyTarget(){this._adapter.destroy(),this._adapter.initialize(this._target,this._unbounded)}get target(){return this._target}set target(r){this._target!==r&&(this._target=r,this._applyTarget())}get unbounded(){return this._unbounded}set unbounded(r){this._unbounded!==r&&(this._unbounded=r,this._applyTarget())}};var d=class extends G{constructor(){super();this._foundation=new x(new A(this))}static get observedAttributes(){return[c.attributes.TARGET,c.attributes.UNBOUNDED]}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,e,n){switch(t){case c.attributes.TARGET:this.target=n;break;case c.attributes.UNBOUNDED:this.unbounded=U(n);break}}layout(){this._foundation.layout()}activate(){return this._foundation.activate()}deactivate(){return this._foundation.deactivate()}};m([S()],d.prototype,"target",2),m([S()],d.prototype,"unbounded",2),d=m([B({name:c.elementName})],d);function Et(){P(d)}export{c as a,C as b,J as c,A as d,x as e,d as f,Et as g};
7
- /*! Bundled license information:
8
-
9
- @material/base/foundation.js:
10
- (**
11
- * @license
12
- * Copyright 2016 Google Inc.
13
- *
14
- * Permission is hereby granted, free of charge, to any person obtaining a copy
15
- * of this software and associated documentation files (the "Software"), to deal
16
- * in the Software without restriction, including without limitation the rights
17
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
- * copies of the Software, and to permit persons to whom the Software is
19
- * furnished to do so, subject to the following conditions:
20
- *
21
- * The above copyright notice and this permission notice shall be included in
22
- * all copies or substantial portions of the Software.
23
- *
24
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
- * THE SOFTWARE.
31
- *)
32
-
33
- @material/base/component.js:
34
- (**
35
- * @license
36
- * Copyright 2016 Google Inc.
37
- *
38
- * Permission is hereby granted, free of charge, to any person obtaining a copy
39
- * of this software and associated documentation files (the "Software"), to deal
40
- * in the Software without restriction, including without limitation the rights
41
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
42
- * copies of the Software, and to permit persons to whom the Software is
43
- * furnished to do so, subject to the following conditions:
44
- *
45
- * The above copyright notice and this permission notice shall be included in
46
- * all copies or substantial portions of the Software.
47
- *
48
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
54
- * THE SOFTWARE.
55
- *)
56
-
57
- @material/dom/events.js:
58
- (**
59
- * @license
60
- * Copyright 2019 Google Inc.
61
- *
62
- * Permission is hereby granted, free of charge, to any person obtaining a copy
63
- * of this software and associated documentation files (the "Software"), to deal
64
- * in the Software without restriction, including without limitation the rights
65
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
66
- * copies of the Software, and to permit persons to whom the Software is
67
- * furnished to do so, subject to the following conditions:
68
- *
69
- * The above copyright notice and this permission notice shall be included in
70
- * all copies or substantial portions of the Software.
71
- *
72
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
73
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
74
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
75
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
76
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
77
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
78
- * THE SOFTWARE.
79
- *)
80
-
81
- @material/dom/ponyfill.js:
82
- (**
83
- * @license
84
- * Copyright 2018 Google Inc.
85
- *
86
- * Permission is hereby granted, free of charge, to any person obtaining a copy
87
- * of this software and associated documentation files (the "Software"), to deal
88
- * in the Software without restriction, including without limitation the rights
89
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
90
- * copies of the Software, and to permit persons to whom the Software is
91
- * furnished to do so, subject to the following conditions:
92
- *
93
- * The above copyright notice and this permission notice shall be included in
94
- * all copies or substantial portions of the Software.
95
- *
96
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
97
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
98
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
99
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
100
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
101
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
102
- * THE SOFTWARE.
103
- *)
104
-
105
- @material/ripple/constants.js:
106
- (**
107
- * @license
108
- * Copyright 2016 Google Inc.
109
- *
110
- * Permission is hereby granted, free of charge, to any person obtaining a copy
111
- * of this software and associated documentation files (the "Software"), to deal
112
- * in the Software without restriction, including without limitation the rights
113
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
114
- * copies of the Software, and to permit persons to whom the Software is
115
- * furnished to do so, subject to the following conditions:
116
- *
117
- * The above copyright notice and this permission notice shall be included in
118
- * all copies or substantial portions of the Software.
119
- *
120
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
121
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
122
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
123
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
124
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
125
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
126
- * THE SOFTWARE.
127
- *)
128
-
129
- @material/ripple/foundation.js:
130
- (**
131
- * @license
132
- * Copyright 2016 Google Inc.
133
- *
134
- * Permission is hereby granted, free of charge, to any person obtaining a copy
135
- * of this software and associated documentation files (the "Software"), to deal
136
- * in the Software without restriction, including without limitation the rights
137
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
138
- * copies of the Software, and to permit persons to whom the Software is
139
- * furnished to do so, subject to the following conditions:
140
- *
141
- * The above copyright notice and this permission notice shall be included in
142
- * all copies or substantial portions of the Software.
143
- *
144
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
145
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
146
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
147
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
148
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
149
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
150
- * THE SOFTWARE.
151
- *)
152
-
153
- @material/ripple/component.js:
154
- (**
155
- * @license
156
- * Copyright 2016 Google Inc.
157
- *
158
- * Permission is hereby granted, free of charge, to any person obtaining a copy
159
- * of this software and associated documentation files (the "Software"), to deal
160
- * in the Software without restriction, including without limitation the rights
161
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
162
- * copies of the Software, and to permit persons to whom the Software is
163
- * furnished to do so, subject to the following conditions:
164
- *
165
- * The above copyright notice and this permission notice shall be included in
166
- * all copies or substantial portions of the Software.
167
- *
168
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
169
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
170
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
171
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
172
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
173
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
174
- * THE SOFTWARE.
175
- *)
176
- */
177
- //# sourceMappingURL=chunk.AVRBHXDT.js.map
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{b as u}from"./chunk.VG452D3L.js";import{a as x}from"./chunk.RCPUTZON.js";import{k as d}from"./chunk.CZOABXEQ.js";import{a as E}from"./chunk.3TKTJ3BY.js";import{a as p}from"./chunk.NVUMRW44.js";import{a as _}from"./chunk.T4J66YX5.js";import{a as v}from"./chunk.6ZJIHOIG.js";import{a as b,e as f,f as s,k as T}from"./chunk.TPXXHX5J.js";import{a as c,d as o}from"./chunk.M3QDAYD2.js";var A=`${v}app-bar`,y={TITLE_TEXT:"title-text",ELEVATION:"elevation",THEME:"theme",HREF:"href",TARGET:"target"},C=c({},y),w={NO_CENTER:"no-center",LOGO_TITLE_CONTAINER:"logo-title-container"},N={ROOT:".forge-app-bar",TITLE:".title",LOGO_TITLE_CONTAINER:".logo-title-container",CENTER_SLOT:"slot[name=center]",CENTER_SECTION:"#center-section"},e={elementName:A,selectors:N,attributes:C,classes:w};var l=class extends E{constructor(r){super(r);this._rootElement=s(r,e.selectors.ROOT),this._titleElement=s(r,e.selectors.TITLE),this._logoTitleContainerElement=s(r,e.selectors.LOGO_TITLE_CONTAINER),this._centerSectionElement=s(r,e.selectors.CENTER_SECTION),this._centerSlotElement=s(r,e.selectors.CENTER_SLOT)}initialize(){this._component.hasAttribute("role")||this._component.setAttribute("role","banner")}setTitleText(r){this._titleElement.textContent=r}setHref(r){var a,m;let n=this._logoTitleContainerElement.tagName==="A";r?(n||this._createAnchorElement(),this._logoTitleContainerElement.href=r):n&&(this._logoTitleContainerElement=d(this._logoTitleContainerElement,document.createElement("div")),this._logoTitleContainerElement.classList.add(e.classes.LOGO_TITLE_CONTAINER),(a=this._logoTitleContainerElement.querySelector(x.elementName))==null||a.remove(),(m=this._logoTitleContainerElement.querySelector(u.elementName))==null||m.remove())}setTarget(r){this._logoTitleContainerElement.tagName==="A"&&(this._logoTitleContainerElement.target=r)}addCenterSlotListener(r){this._centerSlotElement.addEventListener("slotchange",r)}setCenterSlotVisibility(){this._centerSlotElement.assignedNodes().length?(this._centerSectionElement.style.removeProperty("display"),this._rootElement.classList.remove(e.classes.NO_CENTER)):(this._centerSectionElement.style.display="none",this._rootElement.classList.add(e.classes.NO_CENTER))}_createAnchorElement(){this._logoTitleContainerElement=d(this._logoTitleContainerElement,document.createElement("a")),this._logoTitleContainerElement.classList.add(e.classes.LOGO_TITLE_CONTAINER);let r=document.createElement("forge-state-layer"),n=document.createElement("forge-focus-indicator");n.inward=!0,this._logoTitleContainerElement.append(r,n)}};var g=class{constructor(t){this._adapter=t;this._titleText="";this._elevation="raised";this._href="";this._target="";this._centerSlotListener=t=>this._adapter.setCenterSlotVisibility()}initialize(){this._adapter.initialize(),this._adapter.addCenterSlotListener(this._centerSlotListener),this._adapter.setCenterSlotVisibility()}get titleText(){return this._titleText}set titleText(t){this._titleText!==t&&(this._titleText=t!=null?t:"",this._adapter.setTitleText(this._titleText),this._adapter.setHostAttribute(e.attributes.TITLE_TEXT,t))}get elevation(){return this._elevation}set elevation(t){this._elevation!==t&&(this._elevation=t,this._adapter.setHostAttribute(e.attributes.ELEVATION,t))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t!=null?t:"",this._adapter.toggleHostAttribute(e.attributes.THEME,!!this._theme,this._theme))}get href(){var t;return(t=this._href)!=null?t:""}set href(t){this._href!==t&&(this._href=t!=null&&t.trim().length?t.trim():"",this._adapter.setHref(this._href),this._adapter.toggleHostAttribute(e.attributes.HREF,!!this._href,this._href))}get target(){var t;return(t=this._target)!=null?t:""}set target(t){this._target!==t&&(this._target=t!=null&&t.trim().length?t.trim():"",this._adapter.setTarget(this._target),this._adapter.toggleHostAttribute(e.attributes.TARGET,!!this._target,this._target))}};var L='<template><div class="forge-app-bar" part="root"><div class="row"><div class="section"><slot name="start"></slot><div class="logo-title-container"><slot name="logo"></slot><slot name="title"><h1 class="title" part="title"></h1></slot></div></div><div id="center-section" class="section"><slot name="center"></slot></div><div class="section"><slot name="end"></slot></div></div><div><slot name="bottom"></slot></div></div></template>',I=':host{--_app-bar-background:var(--forge-app-bar-background, var(--forge-theme-brand, #283593));--_app-bar-foreground:var(--forge-app-bar-foreground, var(--forge-theme-on-brand, #ffffff))}:host{display:block}:host([hidden]){display:none}:host(:not(theme)){--forge-theme-primary:var(--_app-bar-foreground);--forge-theme-on-primary:rgba(0, 0, 0, 0.87);--forge-theme-text-high:rgba(255, 255, 255, 0.87);--forge-theme-text-medium:rgba(255, 255, 255, 0.54);--forge-theme-text-low:rgba(255, 255, 255, 0.38)}.forge-app-bar{--_app-bar-z-index:var(--forge-app-bar-z-index, var(--forge-z-index-header, 4));--_app-bar-elevation:var(--forge-app-bar-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_app-bar-height:var(--forge-app-bar-height, 56px);--_app-bar-row-padding:var(--forge-app-bar-row-padding, var(--forge-spacing-xxsmall, 4px));--_app-bar-logo-gap:var(--forge-app-bar-logo-gap, var(--forge-spacing-medium, 16px));--_app-bar-logo-font-size:var(--forge-app-bar-logo-font-size, calc(var(--forge-typography-font-size, 1rem) * 2.5));--_app-bar-title-padding:var(--forge-app-bar-title-padding, var(--forge-spacing-xsmall, 8px));--_app-bar-transition-duration:var(--forge-app-bar-transition-duration, var(--forge-animation-duration-short4, 200ms));--_app-bar-transition-timing:var(--forge-app-bar-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-app-bar{background:var(--_app-bar-background);color:var(--_app-bar-foreground);position:relative;z-index:var(--_app-bar-z-index);display:grid;grid-template-rows:1fr auto;-webkit-transition-property:background-color,-webkit-box-shadow;transition-property:background-color,-webkit-box-shadow;transition-property:box-shadow,background-color;transition-property:box-shadow,background-color,-webkit-box-shadow;-webkit-transition-duration:var(--_app-bar-transition-duration);transition-duration:var(--_app-bar-transition-duration);-webkit-transition-timing-function:var(--_app-bar-transition-timing);transition-timing-function:var(--_app-bar-transition-timing);-webkit-box-sizing:border-box;box-sizing:border-box;width:100%}.forge-app-bar .row{display:grid;-webkit-box-align:center;align-items:center;grid-template-columns:1fr 1fr 1fr;height:var(--_app-bar-height);padding-inline:var(--_app-bar-row-padding)}.forge-app-bar.no-center .row{grid-template-columns:1fr auto}.forge-app-bar .section{display:-webkit-inline-box;display:inline-flex;-webkit-box-flex:1;flex:1 1 auto;-webkit-box-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;min-width:0;height:100%}.forge-app-bar .section:not(:last-child):not(:first-child){-webkit-box-pack:center;justify-content:center}.forge-app-bar .section:last-child{justify-self:end}.forge-app-bar h1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading4-font-size-scale, 1.25)));font-weight:var(--forge-typography-heading4-font-weight,500);line-height:var(--forge-typography-heading4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading4-line-height-scale, 1.5)));letter-spacing:var(--forge-typography-heading4-letter-spacing, .005em);text-transform:var(--forge-typography-heading4-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-heading4-text-decoration,inherit);text-decoration:var(--forge-typography-heading4-text-decoration,inherit);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forge-app-bar a{outline:0;text-decoration:none;color:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%}.forge-app-bar a forge-state-layer{--forge-state-layer-color:var(--_app-bar-foreground)}.forge-app-bar a forge-focus-indicator{--forge-focus-indicator-color:var(--_app-bar-foreground);--forge-focus-indicator-shape:4px;--forge-focus-indicator-offset-block:4px}.forge-app-bar .logo-title-container{position:relative;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;gap:var(--_app-bar-logo-gap);min-width:0;padding-inline:var(--_app-bar-title-padding)}:host(:is(:not([elevation]),[elevation=raised])) .forge-app-bar{-webkit-box-shadow:var(--_app-bar-elevation);box-shadow:var(--_app-bar-elevation)}::slotted(forge-tab-bar){--forge-tab-bar-divider-thickness:0}::slotted([slot=logo]){font-size:var(--_app-bar-logo-font-size);height:1em;width:1em}::slotted(forge-app-bar-search[slot=center]){width:100%}:host([theme=white]){--forge-theme-primary:black;--forge-theme-on-primary:rgba(255, 255, 255, 0.87);--forge-theme-text-medium:rgba(0, 0, 0, 0.54)}:host([theme=white]) .forge-app-bar{--_app-bar-background:var(--forge-app-bar-background, white);--_app-bar-foreground:var(--forge-app-bar-foreground, black)}',i=class extends T{constructor(){super();f(this,L,I),this._foundation=new g(new l(this))}static get observedAttributes(){return[e.attributes.TITLE_TEXT,e.attributes.ELEVATION,e.attributes.THEME,e.attributes.HREF,e.attributes.TARGET]}connectedCallback(){this._foundation.initialize()}attributeChangedCallback(r,n,a){switch(r){case e.attributes.TITLE_TEXT:this.titleText=a;break;case e.attributes.ELEVATION:this.elevation=a;break;case e.attributes.THEME:this.theme=a;break;case e.attributes.HREF:this.href=a;break;case e.attributes.TARGET:this.target=a;break}}};o([p()],i.prototype,"titleText",2),o([p()],i.prototype,"elevation",2),o([p()],i.prototype,"theme",2),o([p()],i.prototype,"href",2),o([p()],i.prototype,"target",2),i=o([_({name:e.elementName})],i);function it(){b(i)}export{A as a,e as b,l as c,g as d,i as e,it as f};
7
- //# sourceMappingURL=chunk.BIVQ4GTK.js.map
@@ -1,31 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{b as p}from"./chunk.SVVF632P.js";import{e as R,f as C,g as v,h as o,i as y,j as d,k as T}from"./chunk.6ZJIHOIG.js";import{v as b}from"./chunk.HZUQXCOQ.js";var F={"aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-current":"ariaCurrent","aria-disabled":"ariaDisabled","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText",role:"role"};function f(e){return e.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}function S(e){return F[e]}function M(e,r,i,s){if(p()){Object.entries(i).forEach(([t,a])=>{r[t]=a});return}Object.entries(i).forEach(([t,a])=>{let n=f(t);(s!=null&&s.overwrite||!e.hasAttribute(n))&&b(e,a!=null,f(t),a==null?void 0:a.toString()),a!=null?P(e,t,a):k(e,t)})}function P(e,r,i){e[x(r)]=i}function k(e,r){delete e[x(r)]}function V(e,r){let i=e[x(r)];return i||null}function E(e,r){let i=V(e,r);i!==null&&b(e,!0,f(r),i.toString())}function x(e){return`_forge_${e}Default`}function q(e,r){class i extends e{constructor(...a){super(...a);this[o]=this.attachInternals()}attributeChangedCallback(a,n,l){var u;if((u=super.attributeChangedCallback)==null||u.call(this,a,n,l),!(!r||p())&&r.includes(a)&&!l){let c=S(a);this._restoreDefaultAria(c)}}[(o,T)](a,n){M(this,this[o],a,n)}_restoreDefaultAria(a){E(this,a)}}return i}var g=Symbol("privateIsFocusable"),m=Symbol("externalTabIndex"),A=Symbol("isUpdatingTabIndex"),I=Symbol("updateTabIndex");function J(e){var i,s,t;class r extends e{constructor(){super(...arguments);this[i]=!1;this[s]=null;this[t]=!1}get[d](){return this[g]}set[d](l){this[d]!==l&&(this[g]=l,this[I]())}connectedCallback(){var l;(l=super.connectedCallback)==null||l.call(this),this[d]=!0}attributeChangedCallback(l,u,c){var h;if((h=super.attributeChangedCallback)==null||h.call(this,l,u,c),!(l!=="tabindex"||this[A])){if(!this.hasAttribute("tabindex")){this[m]=null,this[I]();return}this[m]=this.tabIndex}}[(i=g,s=m,t=A,I)](){var c;let l=this[d]?0:-1,u=(c=this[m])!=null?c:l;this[A]=!0,this.tabIndex=u,this[A]=!1}}return r}function ae(e){class r extends e{get form(){return this[o].form}get labels(){return this[o].labels}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}set name(t){b(this,!!t,"name",t)}[C](){return this[R]()}formDisabledCallback(t){this.disabled=t}set[y](t){let a=t==="select"?document.createElement("select"):document.createElement("input");a.setAttribute("type",t),a.name="internal",this._inputElement=a}[v](t){if(this._inputElement)return this[o].validity.customError?this[o].validationMessage:(Object.entries(t).forEach(([a,n])=>this._inputElement[a]=n),this._inputElement.validationMessage)}}return r.formAssociated=!0,r}function re(e){class r extends e{}return r}export{q as a,J as b,ae as c,re as d};
7
- /**
8
- * @license
9
- * Copyright 2023 Google LLC
10
- * SPDX-License-Identifier: Apache-2.0
11
- *
12
- * Adapted and influenced from [Material Web](https://github.com/material-components/material-web).
13
- * The original source code can be found at: [GitHub](https://github.com/material-components/material-web/blob/main/internal/aria/aria.ts)
14
- */
15
- /**
16
- * @license
17
- * Copyright 2023 Google LLC
18
- * SPDX-License-Identifier: Apache-2.0
19
- *
20
- * Adapted and influenced from [Material Web](https://github.com/material-components/material-web).
21
- * The original source code can be found at: [GitHub](https://github.com/material-components/material-web/blob/main/labs/behaviors/focusable.ts)
22
- */
23
- /**
24
- * @license
25
- * Copyright 2023 Google LLC
26
- * SPDX-License-Identifier: Apache-2.0
27
- *
28
- * Adapted and influenced from [Material Web](https://github.com/material-components/material-web).
29
- * The original source code can be found at: [GitHub](https://github.com/material-components/material-web/blob/main/labs/behaviors/form-associated.ts)
30
- */
31
- //# sourceMappingURL=chunk.BJD6BKGC.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/core/utils/a11y-utils.ts", "../../src/core/base/base-element-internals-component.ts", "../../src/core/base/base-focusable-component.ts", "../../src/core/base/base-form-associated-component.ts", "../../src/core/base/base-label-aware-component.ts"],
4
- "sourcesContent": ["/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n * \n * Adapted and influenced from [Material Web](https://github.com/material-components/material-web).\n * The original source code can be found at: [GitHub](https://github.com/material-components/material-web/blob/main/internal/aria/aria.ts)\n */\n\nimport { toggleAttribute } from '@tylertech/forge-core';\nimport { supportsElementInternalsAria } from './feature-detection';\n\n/**\n * Reflective ARIA property name types.\n */\nexport type ARIAProperty = Exclude<keyof ARIAMixin, 'role'>;\n\n/**\n * Reflective ARIA attributes.\n */\nexport type ARIAAttribute = `${ARIAPropertyToAttribute<ARIAProperty>}` | 'role';\n\n/**\n * Reflective ARIA properties.\n */\nexport const ARIA_PROPERTIES: ARIAProperty[] = [\n 'ariaAtomic',\n 'ariaAutoComplete',\n 'ariaBusy',\n 'ariaChecked',\n 'ariaColCount',\n 'ariaColIndex',\n 'ariaColSpan',\n 'ariaCurrent',\n 'ariaDisabled',\n 'ariaExpanded',\n 'ariaHasPopup',\n 'ariaHidden',\n 'ariaInvalid',\n 'ariaKeyShortcuts',\n 'ariaLabel',\n 'ariaLevel',\n 'ariaLive',\n 'ariaModal',\n 'ariaMultiLine',\n 'ariaMultiSelectable',\n 'ariaOrientation',\n 'ariaPlaceholder',\n 'ariaPosInSet',\n 'ariaPressed',\n 'ariaReadOnly',\n 'ariaRequired',\n 'ariaRoleDescription',\n 'ariaRowCount',\n 'ariaRowIndex',\n 'ariaRowSpan',\n 'ariaSelected',\n 'ariaSetSize',\n 'ariaSort',\n 'ariaValueMax',\n 'ariaValueMin',\n 'ariaValueNow',\n 'ariaValueText'\n];\n\n/**\n * An object mapping all ARIA attributes to their corresponding properties.\n * \n * This is required because the proeprty name cannot be reliably inferred from the attribute name.\n */\nconst ARIA_ATTRIBUTES_TO_PROPERTIES: Record<ARIAAttribute, ARIAProperty | 'role'> = {\n 'aria-atomic': 'ariaAtomic',\n 'aria-autocomplete': 'ariaAutoComplete',\n 'aria-busy': 'ariaBusy',\n 'aria-checked': 'ariaChecked',\n 'aria-colcount': 'ariaColCount',\n 'aria-colindex': 'ariaColIndex',\n 'aria-colindextext': 'ariaColIndexText',\n 'aria-colspan': 'ariaColSpan',\n 'aria-current': 'ariaCurrent',\n 'aria-disabled': 'ariaDisabled',\n 'aria-expanded': 'ariaExpanded',\n 'aria-haspopup': 'ariaHasPopup',\n 'aria-hidden': 'ariaHidden',\n 'aria-invalid': 'ariaInvalid',\n 'aria-keyshortcuts': 'ariaKeyShortcuts',\n 'aria-label': 'ariaLabel',\n 'aria-level': 'ariaLevel',\n 'aria-live': 'ariaLive',\n 'aria-modal': 'ariaModal',\n 'aria-multiline': 'ariaMultiLine',\n 'aria-multiselectable': 'ariaMultiSelectable',\n 'aria-orientation': 'ariaOrientation',\n 'aria-placeholder': 'ariaPlaceholder',\n 'aria-posinset': 'ariaPosInSet',\n 'aria-pressed': 'ariaPressed',\n 'aria-readonly': 'ariaReadOnly',\n 'aria-required': 'ariaRequired',\n 'aria-roledescription': 'ariaRoleDescription',\n 'aria-rowcount': 'ariaRowCount',\n 'aria-rowindex': 'ariaRowIndex',\n 'aria-rowindextext': 'ariaRowIndexText',\n 'aria-rowspan': 'ariaRowSpan',\n 'aria-selected': 'ariaSelected',\n 'aria-setsize': 'ariaSetSize',\n 'aria-sort': 'ariaSort',\n 'aria-valuemax': 'ariaValueMax',\n 'aria-valuemin': 'ariaValueMin',\n 'aria-valuenow': 'ariaValueNow',\n 'aria-valuetext': 'ariaValueText',\n 'role': 'role'\n};\n\n/**\n * ARIA role values.\n */\nexport type ARIARole =\n 'alert'|'alertdialog'|'button'|'checkbox'|'dialog'|'gridcell'|'link'|'log'|\n 'marquee'|'menuitem'|'menuitemcheckbox'|'menuitemradio'|'option'|\n 'progressbar'|'radio'|'scrollbar'|'searchbox'|'slider'|'spinbutton'|\n 'status'|'switch'|'tab'|'tabpanel'|'textbox'|'timer'|'tooltip'|'treeitem'|\n 'combobox'|'grid'|'listbox'|'menu'|'menubar'|'radiogroup'|'tablist'|'tree'|\n 'treegrid'|'application'|'article'|'cell'|'columnheader'|'definition'|\n 'directory'|'document'|'feed'|'figure'|'group'|'heading'|'img'|'list'|\n 'listitem'|'math'|'none'|'note'|'presentation'|'region'|'row'|'rowgroup'|\n 'rowheader'|'separator'|'table'|'term'|'text'|'toolbar'|'banner'|\n 'complementary'|'contentinfo'|'form'|'main'|'navigation'|'region'|'search'|\n 'doc-abstract'|'doc-acknowledgments'|'doc-afterword'|'doc-appendix'|\n 'doc-backlink'|'doc-biblioentry'|'doc-bibliography'|'doc-biblioref'|\n 'doc-chapter'|'doc-colophon'|'doc-conclusion'|'doc-cover'|'doc-credit'|\n 'doc-credits'|'doc-dedication'|'doc-endnote'|'doc-endnotes'|'doc-epigraph'|\n 'doc-epilogue'|'doc-errata'|'doc-example'|'doc-footnote'|'doc-foreword'|\n 'doc-glossary'|'doc-glossref'|'doc-index'|'doc-introduction'|'doc-noteref'|\n 'doc-notice'|'doc-pagebreak'|'doc-pagelist'|'doc-part'|'doc-preface'|\n 'doc-prologue'|'doc-pullquote'|'doc-qna'|'doc-subtitle'|'doc-tip'|'doc-toc';\n\n/**\n * Strictly typed ARIA properties.\n */\nexport interface ARIAMixinStrict extends ARIAMixin {\n ariaAtomic: 'true'|'false'|null;\n ariaAutoComplete: 'none'|'inline'|'list'|'both'|null;\n ariaBusy: 'true'|'false'|null;\n ariaChecked: 'true'|'false'|null;\n ariaColCount: `${number}`|null;\n ariaColIndex: `${number}`|null;\n ariaColSpan: `${number}`|null;\n ariaCurrent: 'page'|'step'|'location'|'date'|'time'|'true'|'false'|null;\n ariaDisabled: 'true'|'false'|null;\n ariaExpanded: 'true'|'false'|null;\n ariaHasPopup: 'false'|'true'|'menu'|'listbox'|'tree'|'grid'|'dialog'|null;\n ariaHidden: 'true'|'false'|null;\n ariaInvalid: 'true'|'false'|null;\n ariaKeyShortcuts: string|null;\n ariaLabel: string|null;\n ariaLevel: `${number}`|null;\n ariaLive: 'assertive'|'off'|'polite'|null;\n ariaModal: 'true'|'false'|null;\n ariaMultiLine: 'true'|'false'|null;\n ariaMultiSelectable: 'true'|'false'|null;\n ariaOrientation: 'horizontal'|'vertical'|'undefined'|null;\n ariaPlaceholder: string|null;\n ariaPosInSet: `${number}`|null;\n ariaPressed: 'true'|'false'|null;\n ariaReadOnly: 'true'|'false'|null;\n ariaRequired: 'true'|'false'|null;\n ariaRoleDescription: string|null;\n ariaRowCount: `${number}`|null;\n ariaRowIndex: `${number}`|null;\n ariaRowSpan: `${number}`|null;\n ariaSelected: 'true'|'false'|null;\n ariaSetSize: `${number}`|null;\n ariaSort: 'ascending'|'descending'|'none'|'other'|null;\n ariaValueMax: `${number}`|null;\n ariaValueMin: `${number}`|null;\n ariaValueNow: `${number}`|null;\n ariaValueText: string|null;\n role: ARIARole|null;\n}\n\n/**\n * The ARIA attribute corresponding to a given ARIA property.\n */\nexport type ARIAPropertyToAttribute<K extends string> = K extends `aria${infer Suffix}Element${infer OptS}`\n ? `aria-${Lowercase < Suffix >}`\n : K extends `aria${infer Suffix}` ? `aria-${Lowercase < Suffix >}` : K;\n\n/**\n * Gets the ARIA attribute corresponding to a given ARIA property.\n * \n * @param property An ARIA mixin property.\n * @returns An ARIA attribute name.\n */\nexport function ariaPropertyToAttribute<K extends ARIAProperty|'role'>(property: K): string {\n return property\n .replace('aria', 'aria-')\n // IDREF attributes also include an \"Element\" or \"Elements\" suffix\n .replace(/Elements?/g, '')\n .toLowerCase() as ARIAPropertyToAttribute<K>;\n}\n\n/**\n * Gets the ARIA property corresponding to a given ARIA attribute.\n * \n * @param attribute An ARIA attribute name.\n * @returns An ARIA mixin property.\n */\nexport function ariaAttributeToProperty<K extends ARIAAttribute|'role'>(attribute: K): ARIAProperty {\n return ARIA_ATTRIBUTES_TO_PROPERTIES[attribute] as ARIAProperty;\n}\n\n// TODO: deprecate and remove `setupDefaultAria` and related functions when ARIA in\n// ElementInternals is widely supported in all major browsers.\n\nexport interface DefaultAriaOptions {\n overwrite?: boolean;\n}\n\n/**\n * Applies default ARIA to an element through ElementInternals if supported. Otherwise, ARIA\n * attributes are set directly on the element and stored in additional `data-default-*` attributes\n * for restoration in case attributes are overwritten during the element's lifecycle.\n * \n * This fallback is needed for browsers that don't support ARIA in ElementInternals, such as most\n * recent versions of Firefox.\n * \n * Because new attributes may be sprouted on the element, it is necessary to call this after the\n * element has been connected to the DOM.\n * \n * @param element - The element to set up ARIA attributes for.\n * @param internals - The ElementInternals object to use for setting ARIA attributes if supported.\n * @param properties - An object containing ARIA properties and their values to set as defaults.\n * @param options - A `DefaultAriaOptions` object.\n * \n * @example\n * class ButtonComponent extends BaseComponent {\n * public readonly internals: ElementInternals;\n * \n * constructor() {\n * super();\n * this.internals = this.attachInternals();\n * }\n * \n * public connectedCallback(): void {\n * setDefaultAria(this, this.internals, {\n * role: 'button'\n * });\n * }\n * }\n */\nexport function setDefaultAria(\n element: HTMLElement,\n internals: ElementInternals,\n properties: Partial<ARIAMixinStrict>,\n options?: DefaultAriaOptions\n): void {\n if (supportsElementInternalsAria()) {\n Object.entries(properties).forEach(([key, value]) => {\n internals[key as ARIAProperty] = value;\n });\n return;\n }\n\n Object.entries(properties).forEach(([key, value]) => {\n const ariaAttribute = ariaPropertyToAttribute(key as ARIAProperty);\n\n if (options?.overwrite || !element.hasAttribute(ariaAttribute)) {\n toggleAttribute(element, value != null, ariaPropertyToAttribute(key as ARIAProperty), value?.toString());\n }\n if (value != null) {\n storeDefaultAria(element, key as ARIAProperty, value);\n } else {\n removeDefaultAria(element, key as ARIAProperty);\n }\n });\n}\n\n/**\n * Sets a `*Default` property on an element to backup the default value of an ARIA attribute.\n * \n * @param element The element to store the default ARIA value on.\n * @param property The ARIA mixin property.\n * @param value The default value to store.\n */\nexport function storeDefaultAria<T extends keyof ARIAMixinStrict>(element: HTMLElement, property: T, value: ARIAMixinStrict[T]): void {\n element[getDefaultAriaPropertyName(property)] = value;\n}\n\n/**\n * Removes a `*Default` property from an element.\n * \n * @param element The element to remove the default ARIA value from.\n * @param property The ARIA mixin property.\n */\nexport function removeDefaultAria<T extends keyof ARIAMixinStrict>(element: HTMLElement, property: T): void {\n delete element[getDefaultAriaPropertyName(property)];\n}\n\n/**\n * Gets a default ARIA value from an element's `*Default` property.\n * \n * @param element The element to retrieve the default ARIA value from.\n * @param property An ARIA mixin property.\n * @returns The value of the default ARIA attribute, or null if it does not exist.\n */\nexport function retrieveDefaultAria<T extends keyof ARIAMixinStrict>(element: HTMLElement, property: T): ARIAMixinStrict[T] | null {\n const value = element[getDefaultAriaPropertyName(property)];\n return !!value ? value as ARIAMixinStrict[T] : null;\n}\n\n/**\n * Restores the given ARIA attribute of an element to its default value if it exists.\n * \n * @param element The element to restore the ARIA attribute on.\n * @param property The ARIA mixin property.\n */\nexport function restoreDefaultAria<T extends keyof ARIAMixinStrict>(element: HTMLElement, property: T): void {\n const defaultValue = retrieveDefaultAria(element, property);\n if (defaultValue !== null) {\n toggleAttribute(element, true, ariaPropertyToAttribute(property), defaultValue.toString());\n }\n}\n\nfunction getDefaultAriaPropertyName<T extends keyof ARIAMixinStrict>(property: T): string {\n return `_forge_${property}Default`;\n}\n", "import { internals, MixinBase, setDefaultAria, AbstractConstructor } from '../../constants';\nimport {\n ARIAAttribute,\n ariaAttributeToProperty,\n ARIAMixinStrict,\n DefaultAriaOptions,\n restoreDefaultAria as restoreDefaultAriaUtil,\n setDefaultAria as setDefaultAriaUtil\n} from '../utils/a11y-utils';\nimport { supportsElementInternalsAria } from '../utils/feature-detection';\nimport { IBaseComponent } from './base-component';\n\n/**\n * A component with attached Element Internals.\n */\nexport interface IWithElementInternals extends IBaseComponent {\n /**\n * The Element Internals of the component.\n */\n readonly [internals]: ElementInternals;\n\n /**\n * Sets the default ARIA of the component using Element Internals if supported or sprouting\n * ARIA attributes if not.\n * \n * @param properties The ARIA properties and values to set.\n * @param options Whether or not to overwrite existing ARIA attributes. This only takes effect\n * if Element Internals are not supported and a new attribute will be sprouted.\n */\n [setDefaultAria](properties: Partial<ARIAMixinStrict>, options?: DefaultAriaOptions): void;\n}\n\nexport declare abstract class WithElementInternalsContract {\n public readonly [internals]: ElementInternals;\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void;\n public [setDefaultAria](properties: Partial<ARIAMixinStrict>, options?: DefaultAriaOptions): void;\n}\n\n/**\n * Mixes in Element Internals functionality into a base component.\n * \n * @param base The base component to mix into.\n * @param observedAria An array of ARIA attributes to observe for changes. If an observed attribute\n * is removed, the default ARIA will be restored. This is only used if Element Internals is not\n * supported.\n * @returns The mixed-in base component.\n */\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function WithElementInternals<TBase extends MixinBase>(base: TBase, observedAria?: ARIAAttribute[]) {\n abstract class ElementInternalsComponent extends base implements IWithElementInternals {\n public readonly [internals]: ElementInternals;\n\n constructor(...args: any[]) {\n super(...args);\n this[internals] = this.attachInternals();\n }\n\n public override attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n super.attributeChangedCallback?.(name, oldValue, newValue);\n\n // If Element Internals is supported our default ARIA is never set as an attribute, so\n // there's nothing to do here.\n if (!observedAria || supportsElementInternalsAria()) {\n return;\n }\n\n // If the observed attribute is removed, restore the default ARIA.\n if (observedAria.includes(name as ARIAAttribute) && !newValue) {\n const ariaPropertyName = ariaAttributeToProperty(name as ARIAAttribute);\n this._restoreDefaultAria(ariaPropertyName);\n }\n }\n\n public [setDefaultAria](properties: Partial<ARIAMixinStrict>, options?: DefaultAriaOptions): void {\n setDefaultAriaUtil(this, this[internals], properties, options);\n }\n\n private _restoreDefaultAria(name: keyof ARIAMixinStrict): void {\n restoreDefaultAriaUtil(this, name);\n }\n }\n\n return ElementInternalsComponent as AbstractConstructor<WithElementInternalsContract> & TBase;\n}\n", "/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n * \n * Adapted and influenced from [Material Web](https://github.com/material-components/material-web).\n * The original source code can be found at: [GitHub](https://github.com/material-components/material-web/blob/main/labs/behaviors/focusable.ts)\n */\n\nimport { AbstractConstructor, isFocusable, MixinBase } from '../../constants';\nimport { IBaseComponent } from './base-component';\n\n/**\n * An element that can enable and disable `tabindex` focusability.\n */\nexport interface IWithFocusable extends IBaseComponent {\n /**\n * Whether or not the element can be focused. Defaults to true. Set to false\n * to disable focusing (unless a user has set a `tabindex`).\n */\n [isFocusable]: boolean;\n}\n\nconst _privateIsFocusable = Symbol('privateIsFocusable');\nconst _externalTabIndex = Symbol('externalTabIndex');\nconst _isUpdatingTabIndex = Symbol('isUpdatingTabIndex');\nconst _updateTabIndex = Symbol('updateTabIndex');\n\nexport declare abstract class WithFocusableContract {\n public get [isFocusable](): boolean;\n public set [isFocusable](value: boolean);\n\n public connectedCallback(): void;\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void;\n}\n\n/**\n * Provides focusable functionality for an element.\n *\n * Elements can enable and disable their focusability with the `isFocusable`\n * symbol property. **Use this instead of changing `tabIndex` directly.**\n *\n * This will preserve externally-set tabindices. If an element sets `tabindex=\"-1\"`,\n * but a user sets `tabindex=\"0\"`, it will still be focusable.\n *\n * To remove user overrides and restore focus control to the element, remove the `tabindex` attribute.\n * \n * @param base The base component to mix into.\n * @returns The mixed-in base component.\n */\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function WithFocusable<TBase extends MixinBase>(base: TBase) {\n abstract class FocusableComponent extends base implements IWithFocusable {\n public get [isFocusable](): boolean {\n return this[_privateIsFocusable];\n }\n \n /**\n * Whether or not the element can be focused.\n * \n * Set this from inheriting components **instead** of directly manipulating `tabIndex`.\n */\n public set [isFocusable](value: boolean) {\n if (this[isFocusable] === value) {\n return;\n }\n this[_privateIsFocusable] = value;\n this[_updateTabIndex]();\n }\n \n private [_privateIsFocusable] = false;\n private [_externalTabIndex]: number | null = null; // Allows for external tabIndex to be stored when internal tabIndex is set to -1\n private [_isUpdatingTabIndex] = false; // Allows for internal tabIndex to be set without triggering attributeChangedCallback\n\n public override connectedCallback(): void {\n super.connectedCallback?.();\n \n // This must be set in the connectedCallback to avoid sprouting a tabindex attribute on the host from the ctor\n this[isFocusable] = true;\n }\n \n public override attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n super.attributeChangedCallback?.(name, oldValue, newValue);\n\n if (name !== 'tabindex' || this[_isUpdatingTabIndex]) {\n return;\n }\n \n if (!this.hasAttribute('tabindex')) {\n // User removed the attribute, can now use internal tabIndex\n this[_externalTabIndex] = null;\n this[_updateTabIndex]();\n return;\n }\n \n this[_externalTabIndex] = this.tabIndex;\n }\n\n private [_updateTabIndex](): void {\n const internalTabIndex = this[isFocusable] ? 0 : -1;\n const computedTabIndex = this[_externalTabIndex] ?? internalTabIndex;\n // const computedTabIndex = internalTabIndex === 0 ? this[_externalTabIndex] ?? internalTabIndex : internalTabIndex;\n \n this[_isUpdatingTabIndex] = true;\n this.tabIndex = computedTabIndex;\n this[_isUpdatingTabIndex] = false;\n }\n }\n return FocusableComponent as AbstractConstructor<WithFocusableContract> & TBase;\n}\n", "/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n * \n * Adapted and influenced from [Material Web](https://github.com/material-components/material-web).\n * The original source code can be found at: [GitHub](https://github.com/material-components/material-web/blob/main/labs/behaviors/form-associated.ts)\n */\n\nimport { toggleAttribute } from '@tylertech/forge-core';\nimport { MixinBase, getFormState, getFormValue, getValidationMessage, inputType, internals, AbstractConstructor } from '../../constants';\nimport { FormRestoreReason, FormRestoreState, FormValue, InputType, InputValidationProps } from '../utils/form-utils';\nimport { IBaseComponent } from './base-component';\n\n/**\n * A component that can be associated with a form.\n */\nexport interface IWithFormAssociation extends IBaseComponent {\n /**\n * The form element that the component is associated with.\n */\n readonly form: HTMLFormElement | null;\n\n /**\n * The labels associated with the component.\n */\n readonly labels: NodeList;\n\n /**\n * The value to use in form submission.\n */\n value: FormValue | null;\n\n /**\n * The HTML name to use in form submission.\n */\n name: string;\n\n /*\n * Whether or not the component is disabled.\n */\n disabled: boolean;\n\n /**\n * Whether or not the component is readonly.\n */\n readonly: boolean;\n\n /**\n * The internals of the component.\n */\n readonly [internals]: ElementInternals;\n\n /**\n * Sets the value type accepted by the component. This is used to set the type of the internal\n * input element and generate validation messages.\n */\n [inputType]: InputType;\n\n /**\n * Gets the validation message for the component.\n * \n * @param props Validation-affecting properties set on the component as well as the value of the\n * component.\n */\n [getValidationMessage](props: Partial<InputValidationProps>): string | undefined;\n\n /**\n * Gets the current form value of the component.\n */\n [getFormValue](): FormValue | null;\n\n /**\n * Gets the current form state of the component, defaulting to the component's `[formValue]`.\n * \n * Used when the component's state is different from its value, such as a checkboxes that have\n * both a boolean `checked` state and a string value.\n */\n [getFormState](): FormValue | null;\n\n /**\n * A callback for when the component should be enabled or disabled. This can be called when, for\n * example, the component is within a disabled fieldset.\n * \n * @param disabled Whether or not the component should be disabled.\n */\n formDisabledCallback(disabled: boolean): void;\n\n /**\n * A callback for when the form's value is to be reset.\n */\n formResetCallback(): void;\n\n /**\n * A callback for when a form restores the state of the component. For example, when a page is\n * reloaded or a form is autofilled.\n * \n * @param state The state to restore or null to reset the component's value.\n * @param reason The reason the state was restored.\n */\n formStateRestoreCallback(\n state: FormRestoreState | null,\n reason: FormRestoreReason,\n ): void;\n\n /**\n * An optional callback for when the associated form changes.\n * \n * @param form The new associated form or null if there is none.\n */\n formAssociatedCallback?(form: HTMLFormElement | null): void;\n}\n\nexport declare abstract class WithFormAssociationContract {\n public static readonly formAssociated: boolean;\n\n public get form(): HTMLFormElement | null;\n\n public get labels(): NodeList;\n\n public get name(): string;\n public set name(value: string);\n\n public abstract get value(): FormValue | null;\n public abstract set value(value: FormValue | null);\n\n public abstract get disabled(): boolean;\n public abstract set disabled(value: boolean);\n\n public abstract get readonly(): boolean;\n public abstract set readonly(value: boolean);\n\n public abstract get [internals](): ElementInternals;\n\n public abstract [getFormValue](): FormValue | null;\n\n public [getFormState](): FormValue | null;\n\n public formDisabledCallback(disabled: boolean): void;\n\n public abstract formStateRestoreCallback(\n state: FormRestoreState | null,\n reason: FormRestoreReason\n ): void;\n\n public abstract formResetCallback(): void;\n\n public set [inputType](type: InputType);\n\n public [getValidationMessage](props: Partial<InputValidationProps>): string | undefined;\n}\n\n/**\n * Mixes in form functionality into a base component.\n * \n * @param base The base component to mix into.\n * @returns The mixed-in base component.\n */\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function WithFormAssociation<TBase extends MixinBase>(base: TBase) {\n abstract class FormAssociatedComponent extends base implements IWithFormAssociation {\n public static readonly formAssociated = true;\n\n private _inputElement?: HTMLInputElement | HTMLSelectElement;\n\n public get form(): HTMLFormElement | null {\n return this[internals].form;\n }\n\n public get labels(): NodeList {\n return this[internals].labels;\n }\n\n public get name(): string {\n return this.getAttribute('name') ?? '';\n }\n public set name(value: string) {\n toggleAttribute(this, !!value, 'name', value);\n }\n\n public abstract get value(): FormValue | null;\n public abstract set value(value: FormValue | null);\n\n public abstract get disabled(): boolean;\n public abstract set disabled(value: boolean);\n\n public abstract get readonly(): boolean;\n public abstract set readonly(value: boolean);\n\n public abstract get [internals](): ElementInternals;\n\n public abstract [getFormValue](): FormValue | null;\n\n public [getFormState](): FormValue | null {\n return this[getFormValue]();\n }\n\n public formDisabledCallback(disabled: boolean): void {\n this.disabled = disabled;\n }\n\n public abstract formStateRestoreCallback(\n state: FormRestoreState | null,\n reason: FormRestoreReason\n ): void;\n\n public abstract formResetCallback(): void;\n\n public set [inputType](type: InputType) {\n // Create a detached input to retrieve localized validation messages from\n const inputElement = type === 'select'\n ? document.createElement('select')\n : document.createElement('input');\n inputElement.setAttribute('type', type);\n inputElement.name = 'internal';\n this._inputElement = inputElement;\n }\n\n public [getValidationMessage](props: Partial<InputValidationProps>): string | undefined {\n // If the input element hasn't been created yet return `undefined`\n if (!this._inputElement) {\n return undefined;\n }\n\n // A custom error message overrides all other messages\n if (this[internals].validity.customError) {\n return this[internals].validationMessage;\n }\n\n // Apply validation-affecting props to the input element to get the correct validation\n // message\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n Object.entries(props).forEach(([key, value]) => this._inputElement![key] = value);\n\n return this._inputElement.validationMessage;\n }\n }\n\n return FormAssociatedComponent as AbstractConstructor<WithFormAssociationContract> & TBase;\n}\n", "import { AbstractConstructor, MixinBase } from '../../constants';\nimport { IBaseComponent } from './base-component';\n\n/**\n * An element that can be associated with a Forge label component.\n */\nexport interface IWithLabelAwareness extends IBaseComponent {\n /**\n * A callback for when the associated label's text content changes.\n * \n * @param value The new text content of the label, or null if the label was removed or has no\n * text content.\n */\n labelChangedCallback(value: string | null): void;\n\n /**\n * A callback for when the associated label is clicked.\n */\n labelClickedCallback?(): void;\n}\n\nexport declare abstract class WithLabelAwarenessContract {\n public abstract labelChangedCallback(value: string | null): void;\n}\n\n/**\n * Mixes in Forge label awareness into a base component.\n * \n * @param base The base component to mix into.\n * @returns The mixed-in base component.\n */\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function WithLabelAwareness<TBase extends MixinBase>(base: TBase) {\n abstract class LabelAwareComponent extends base implements WithLabelAwarenessContract {\n public abstract labelChangedCallback(value: string | null): void;\n }\n\n return LabelAwareComponent as AbstractConstructor<WithLabelAwarenessContract> & TBase;\n}\n"],
5
- "mappings": "kKAsEA,IAAMA,EAA8E,CAClF,cAAe,aACf,oBAAqB,mBACrB,YAAa,WACb,eAAgB,cAChB,gBAAiB,eACjB,gBAAiB,eACjB,oBAAqB,mBACrB,eAAgB,cAChB,eAAgB,cAChB,gBAAiB,eACjB,gBAAiB,eACjB,gBAAiB,eACjB,cAAe,aACf,eAAgB,cAChB,oBAAqB,mBACrB,aAAc,YACd,aAAc,YACd,YAAa,WACb,aAAc,YACd,iBAAkB,gBAClB,uBAAwB,sBACxB,mBAAoB,kBACpB,mBAAoB,kBACpB,gBAAiB,eACjB,eAAgB,cAChB,gBAAiB,eACjB,gBAAiB,eACjB,uBAAwB,sBACxB,gBAAiB,eACjB,gBAAiB,eACjB,oBAAqB,mBACrB,eAAgB,cAChB,gBAAiB,eACjB,eAAgB,cAChB,YAAa,WACb,gBAAiB,eACjB,gBAAiB,eACjB,gBAAiB,eACjB,iBAAkB,gBAClB,KAAQ,MACV,EAkFO,SAASC,EAAuDC,EAAqB,CAC1F,OAAOA,EACJ,QAAQ,OAAQ,OAAO,EAEvB,QAAQ,aAAc,EAAE,EACxB,YAAY,CACjB,CAQO,SAASC,EAAwDC,EAA4B,CAClG,OAAOJ,EAA8BI,CAAS,CAChD,CAyCO,SAASC,EACdC,EACAC,EACAC,EACAC,EACM,CACN,GAAIC,EAA6B,EAAG,CAClC,OAAO,QA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,OADaH,EACU,eAAiB,GA6EnCA,CACT,CC/MO,SAASc,GAA4CC,EAAa,CACvE,MAAeC,UAA4BD,CAA2C,CAEtF,CAEA,OAAOC,CACT",
6
- "names": ["ARIA_ATTRIBUTES_TO_PROPERTIES", "ariaPropertyToAttribute", "property", "ariaAttributeToProperty", "attribute", "setDefaultAria", "element", "internals", "properties", "options", "supportsElementInternalsAria", "key", "value", "ariaAttribute", "toggleAttribute", "storeDefaultAria", "removeDefaultAria", "getDefaultAriaPropertyName", "retrieveDefaultAria", "restoreDefaultAria", "defaultValue", "WithElementInternals", "base", "observedAria", "ElementInternalsComponent", "args", "internals", "name", "oldValue", "newValue", "_a", "supportsElementInternalsAria", "ariaPropertyName", "ariaAttributeToProperty", "setDefaultAria", "properties", "options", "restoreDefaultAria", "_privateIsFocusable", "_externalTabIndex", "_isUpdatingTabIndex", "_updateTabIndex", "WithFocusable", "base", "_a", "_b", "_c", "FocusableComponent", "isFocusable", "value", "name", "oldValue", "newValue", "internalTabIndex", "computedTabIndex", "WithFormAssociation", "base", "FormAssociatedComponent", "internals", "_a", "value", "toggleAttribute", "getFormState", "getFormValue", "disabled", "inputType", "type", "inputElement", "getValidationMessage", "props", "key", "WithLabelAwareness", "base", "LabelAwareComponent"]
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{d as x,e as D}from"./chunk.FJRCWWE2.js";import{a as y}from"./chunk.OUIWXKO2.js";import{a as E}from"./chunk.3TKTJ3BY.js";import{a as l}from"./chunk.NVUMRW44.js";import{a as b}from"./chunk.T4J66YX5.js";import{a as L}from"./chunk.6ZJIHOIG.js";import{a as v,e as f,f as c,k as _}from"./chunk.TPXXHX5J.js";import{k as p,l as u}from"./chunk.J2M2MXP2.js";import{d as s}from"./chunk.M3QDAYD2.js";var C=`${L}file-picker`,I={ACCEPT:"accept",MAX_SIZE:"max-size",CAPTURE:"capture",MULTIPLE:"multiple",DISABLED:"disabled",COMPACT:"compact",BORDERLESS:"borderless"},T={HIGHLIGHT:"highlight",DISABLED:"disabled",COMPACT:"compact",BORDERLESS:"borderless"},S={CONTAINER:"container",BUTTON:"button",INPUT:"input"},A={CONTAINER:"#container",BUTTON:"#button",INPUT:"#input",BUTTON_SLOT:"#button-slot"},P={FILES_CHANGED:`${C}-change`},i={elementName:C,attributes:I,classes:T,ids:S,selectors:A,events:P};var d=class extends E{constructor(e){super(e);this._container=c(e,i.selectors.CONTAINER),this._buttonSlot=c(e,i.selectors.BUTTON_SLOT),this._input=c(e,i.selectors.INPUT),this._inputEventListener=()=>{this._input.value="",this._input.click()},this._container.addEventListener("click",this._inputEventListener)}registerButtonSlotListener(e){this._buttonSlot.addEventListener("slotchange",e)}registerInputChangeListener(e){this._input.addEventListener("change",e)}registerDragEnterListener(e){this._container.addEventListener("dragenter",e)}registerDragLeaveListener(e){this._container.addEventListener("dragleave",e)}registerDragOverListener(e){this._container.addEventListener("dragover",e)}registerDropListener(e){this._container.addEventListener("drop",e)}removeDragEnterListener(e){this._container.removeEventListener("dragenter",e)}removeDragLeaveListener(e){this._container.removeEventListener("dragleave",e)}removeDragOverListener(e){this._container.removeEventListener("dragover",e)}removeDropListener(e){this._container.removeEventListener("drop",e)}initializeButton(){let e=this._component.querySelector("button");this._button=e||void 0}setHighlightState(e){this._container.classList.contains(i.classes.HIGHLIGHT)!==e&&this._container.classList.toggle(i.classes.HIGHLIGHT)}setAccept(e){e?this._input.setAttribute("accept",e):this._input.removeAttribute("accept")}setCapture(e){e?this._input.setAttribute("capture",e):this._input.removeAttribute("capture")}setMultiple(e){e?this._input.setAttribute("multiple",""):this._input.removeAttribute("multiple")}setDisabled(e){var n,o;e?(this._container.removeEventListener("click",this._inputEventListener),(n=this._button)==null||n.setAttribute("disabled",""),this._container.setAttribute("disabled","")):(this._container.addEventListener("click",this._inputEventListener),(o=this._button)==null||o.removeAttribute("disabled"),this._container.removeAttribute("disabled"))}setCompact(e){this._container.classList.contains(i.classes.COMPACT)!==e&&this._container.classList.toggle(i.classes.COMPACT)}setBorderless(e){this._container.classList.contains(i.classes.BORDERLESS)!==e&&this._container.classList.toggle(i.classes.BORDERLESS)}};var g=class{constructor(t){this._adapter=t;this._isInitialized=!1;this._accept=null;this._maxSize=null;this._capture=null;this._multiple=!1;this._disabled=!1;this._compact=!1;this._borderless=!1;this._buttonSlotListener=e=>this._onButtonSlotChanged(e),this._inputChangeListener=e=>this._onInputChange(e),this._dragEnterListener=e=>this._onDragEnter(e),this._dragLeaveListener=e=>this._onDragLeave(e),this._dragOverListener=e=>this._onDragOver(e),this._dropListener=e=>this._onDrop(e),this._adapter.registerButtonSlotListener(this._buttonSlotListener),this._adapter.registerInputChangeListener(this._inputChangeListener),this._compact||this._registerDragListeners()}initialize(){this._adapter.initializeButton(),this._adapter.setDisabled(this._disabled),this._isInitialized=!0}destroy(){this._isInitialized=!1}_onButtonSlotChanged(t){this._adapter.initializeButton()}_onInputChange(t){let e=t.target.files;e&&this._handleFiles(e)}_onDragEnter(t){this._handleDragEvent(t,!0)}_onDragLeave(t){this._handleDragEvent(t,!1)}_onDragOver(t){this._handleDragEvent(t,!0)}_onDrop(t){if(this._handleDragEvent(t,!1),!this._disabled){let e=t.dataTransfer;if(e){let n=e.files;this._handleFiles(n)}}}_registerDragListeners(){this._adapter.registerDragEnterListener(this._dragEnterListener),this._adapter.registerDragLeaveListener(this._dragLeaveListener),this._adapter.registerDragOverListener(this._dragOverListener),this._adapter.registerDropListener(this._dropListener)}_removeDragListeners(){this._adapter.removeDragEnterListener(this._dragEnterListener),this._adapter.removeDragLeaveListener(this._dragLeaveListener),this._adapter.removeDragOverListener(this._dragOverListener),this._adapter.removeDropListener(this._dropListener)}_handleFiles(t){let e={};if(t){let n=this._sortFiles(t),o=n.legalFiles||null;!this._multiple&&o&&o.length>1&&(o=o.splice(1)),e=n}this._adapter.emitHostEvent(i.events.FILES_CHANGED,e)}_sortFiles(t){let e=[],n=[];if(!this._accept&&!this.maxSize)return e=Array.from(t),{legalFiles:e,illegalFiles:n};let o=this._accept?this._accept.split(",").map(r=>r.trim().toLowerCase()):[""];for(let r=0;r<t.length;r++)!o.some(m=>t[r].type.toLowerCase().match(m)||t[r].name.toLowerCase().match("\\"+m))||this._maxSize&&t[r].size>this._maxSize?n.push(t[r]):e.push(t[r]);return{legalFiles:e,illegalFiles:n}}_handleDragEvent(t,e){this._disabled||(t.preventDefault(),t.stopPropagation(),this._adapter.setHighlightState(e))}get accept(){return this._accept}set accept(t){this._accept!==t&&(this._accept=t,this._adapter.setAccept(t),this._adapter.toggleHostAttribute(i.attributes.ACCEPT,!!t,String(t)))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize!==t&&(this._maxSize=t,this._adapter.toggleHostAttribute(i.attributes.MAX_SIZE,!!t,String(t)))}get capture(){return this._capture}set capture(t){this._capture!==t&&(this._capture=t,this._adapter.setCapture(t),this._adapter.toggleHostAttribute(i.attributes.CAPTURE,!!t,String(t)))}get multiple(){return this._multiple}set multiple(t){this._multiple!==t&&(this._multiple=t,this._adapter.setMultiple(t),this._adapter.toggleHostAttribute(i.attributes.MULTIPLE,t))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._isInitialized&&this._adapter.setDisabled(t),this._adapter.toggleHostAttribute(i.attributes.DISABLED,t))}get compact(){return this._compact}set compact(t){this._compact!==t&&(this._compact=t,this._adapter.setCompact(t),t?this._removeDragListeners():this._registerDragListeners(),this._adapter.toggleHostAttribute(i.attributes.COMPACT,t))}get borderless(){return this._borderless}set borderless(t){this._borderless!==t&&(this._borderless=t,this._adapter.setBorderless(t),this._adapter.toggleHostAttribute(i.attributes.BORDERLESS,t))}};var F='<template><form class="forge-file-picker" id="container" part="form"><div class="forge-file-picker__primary" id="primary" part="primary"><slot name="primary"></slot></div><slot id="button-slot"></slot><div class="forge-file-picker__secondary" id="secondary" part="secondary"><slot name="secondary"></slot></div><input type="file" class="forge-file-picker__input" id="input" part="input"></form><div class="forge-file-picker__helper-text" part="helper-text-container"><slot name="helper-text"></slot></div></template>',O=".forge-file-picker{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;background-color:rgba(189,189,189,.12);border:1px dashed #e0e0e0;display:grid;-webkit-box-pack:center;justify-content:center;align-content:center;gap:16px;padding:16px;text-align:center;cursor:pointer}.forge-file-picker__primary{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, .009375em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));max-width:auto;max-width:var(--forge-file-picker-max-content-width,auto)}.forge-file-picker__secondary{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:.875rem;font-size:var(--forge-typography-subtitle2-secondary-font-size, .875rem);line-height:1.375rem;line-height:var(--forge-typography-subtitle2-secondary-line-height, 1.375rem);font-weight:400;font-weight:var(--forge-typography-subtitle2-secondary-font-weight,400);letter-spacing:.0087500001em;letter-spacing:var(--forge-typography-subtitle2-secondary-letter-spacing, .0087500001em);text-decoration:inherit;-webkit-text-decoration:var(--forge-typography-subtitle2-secondary-text-decoration,inherit);text-decoration:var(--forge-typography-subtitle2-secondary-text-decoration,inherit);text-transform:inherit;text-transform:var(--forge-typography-subtitle2-secondary-text-transform,inherit);color:var(--mdc-theme-text-secondary-on-background);color:var(--forge-typography-subtitle2-secondary-color,var(--mdc-theme-text-secondary-on-background));color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));max-width:auto;max-width:var(--forge-file-picker-max-content-width,auto)}.forge-file-picker__input{display:none}.forge-file-picker__helper-text ::slotted([slot=helper-text]){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);display:block;min-height:1.5rem;line-height:normal;padding-top:4px;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54));margin-left:12px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);text-align:start}.forge-file-picker[disabled]{background-color:#fff;background-color:var(--mdc-theme-background,#fff);border-color:#e0e0e0;border-color:var(--forge-theme-border-color,#e0e0e0);opacity:.38;cursor:unset}.forge-file-picker.compact{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;background-color:transparent;border:none;padding:0}.forge-file-picker.compact .forge-file-picker__primary,.forge-file-picker.compact .forge-file-picker__secondary{display:none}.forge-file-picker.compact .forge-file-picker__button{width:auto;width:var(--forge-file-picker-width,auto);background-color:transparent}.forge-file-picker:not(.compact).highlight{border-color:#6200ee;border-color:var(--mdc-theme-primary,#6200ee);background-color:rgba(98,0,238,.12);border-width:1px;border-style:solid}.forge-file-picker.borderless{--forge-file-picker-width:100%;border:none}.forge-file-picker.borderless:not(.compact).highlight{border:none}.forge-file-picker.borderless+.forge-file-picker__helper-text{display:none}:host{width:auto;width:var(--forge-file-picker-width,auto);height:auto;height:var(--forge-file-picker-height,auto);display:inline-block}:host([hidden]){display:none}",a=class extends _{constructor(){super();f(this,F,O),this._foundation=new g(new d(this))}static get observedAttributes(){return[i.attributes.ACCEPT,i.attributes.MAX_SIZE,i.attributes.CAPTURE,i.attributes.MULTIPLE,i.attributes.DISABLED,i.attributes.COMPACT,i.attributes.BORDERLESS]}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(e,n,o){switch(e){case i.attributes.ACCEPT:this.accept=o;break;case i.attributes.MAX_SIZE:this.maxSize=u(o);break;case i.attributes.CAPTURE:this.capture=o;break;case i.attributes.MULTIPLE:this.multiple=p(o);break;case i.attributes.DISABLED:this.disabled=p(o);break;case i.attributes.COMPACT:this.compact=p(o);break;case i.attributes.BORDERLESS:this.borderless=p(o);break}}};s([l()],a.prototype,"accept",2),s([l()],a.prototype,"maxSize",2),s([l()],a.prototype,"capture",2),s([l()],a.prototype,"multiple",2),s([l()],a.prototype,"disabled",2),s([l()],a.prototype,"compact",2),s([l()],a.prototype,"borderless",2),a=s([b({name:i.elementName,dependencies:[x]})],a);var k=class extends y{constructor(t){super(t)}_build(){return document.createElement(i.elementName)}_configure(){var t,e,n,o;if((t=this._config.options)!=null&&t.primaryText){let r=document.createElement("span");r.slot="primary",r.textContent=this._config.options.primaryText,this._element.appendChild(r)}if((e=this._config.options)!=null&&e.secondaryText){let r=document.createElement("span");r.slot="secondary",r.textContent=this._config.options.secondaryText,this._element.appendChild(r)}if((n=this._config.options)!=null&&n.buttonText&&new D({options:{parent:this._element,text:this._config.options.buttonText},props:{variant:"outlined"}}),(o=this._config.options)!=null&&o.helperText){let r=document.createElement("span");r.slot="helper-text",r.textContent=this._config.options.helperText,this._element.appendChild(r)}}onChange(t){this._element.addEventListener(i.events.FILES_CHANGED,e=>t(e.detail))}};function ce(){v(a)}export{i as a,d as b,g as c,a as d,k as e,ce as f};
7
- //# sourceMappingURL=chunk.BS73Y6IN.js.map