@tylertech/forge 3.0.0-next.20 → 3.0.0-next.22

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 (928) hide show
  1. package/custom-elements.json +33555 -39387
  2. package/dist/dialog/forge-dialog-utils.css +1 -1
  3. package/dist/esm/accordion/index.js +1 -1
  4. package/dist/esm/app-bar/app-bar/index.js +1 -1
  5. package/dist/esm/app-bar/help-button/index.js +1 -1
  6. package/dist/esm/app-bar/index.js +1 -1
  7. package/dist/esm/app-bar/menu-button/index.js +1 -1
  8. package/dist/esm/app-bar/notification-button/index.js +1 -1
  9. package/dist/esm/app-bar/profile-button/index.js +1 -1
  10. package/dist/esm/app-bar/search/index.js +1 -1
  11. package/dist/esm/autocomplete/index.js +1 -1
  12. package/dist/esm/avatar/index.js +1 -1
  13. package/dist/esm/backdrop/index.js +1 -1
  14. package/dist/esm/badge/index.js +1 -1
  15. package/dist/esm/banner/index.js +1 -1
  16. package/dist/esm/bottom-sheet/index.js +1 -1
  17. package/dist/esm/busy-indicator/index.js +1 -1
  18. package/dist/esm/button/index.js +1 -1
  19. package/dist/esm/button-area/index.js +1 -1
  20. package/dist/esm/button-toggle/button-toggle/index.js +1 -1
  21. package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
  22. package/dist/esm/button-toggle/index.js +1 -1
  23. package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
  24. package/dist/esm/calendar/calendar-menu/index.js +1 -1
  25. package/dist/esm/calendar/index.js +1 -1
  26. package/dist/esm/card/index.js +1 -1
  27. package/dist/esm/checkbox/index.js +1 -1
  28. package/dist/esm/chip-field/index.js +1 -1
  29. package/dist/esm/chips/chip/index.js +1 -1
  30. package/dist/esm/chips/chip-set/index.js +1 -1
  31. package/dist/esm/chips/index.js +1 -1
  32. package/dist/esm/chunks/{chunk.YS5JZHJ6.js → chunk.24SQJBSQ.js} +2 -2
  33. package/dist/esm/chunks/{chunk.PDDBNHVU.js → chunk.2GUWHBUU.js} +2 -2
  34. package/dist/esm/chunks/{chunk.PDDBNHVU.js.map → chunk.2GUWHBUU.js.map} +2 -2
  35. package/dist/esm/chunks/chunk.37B332ZK.js +7 -0
  36. package/dist/esm/chunks/{chunk.SOKORSUV.js.map → chunk.37B332ZK.js.map} +3 -3
  37. package/dist/esm/chunks/chunk.3IUQ4C47.js +7 -0
  38. package/dist/esm/chunks/chunk.3IUQ4C47.js.map +7 -0
  39. package/dist/esm/chunks/{chunk.IZRURH7C.js → chunk.3KAKJGUS.js} +2 -2
  40. package/dist/esm/chunks/chunk.3PMONORO.js +7 -0
  41. package/dist/esm/chunks/chunk.3PMONORO.js.map +7 -0
  42. package/dist/esm/chunks/chunk.473WRJ5G.js +7 -0
  43. package/dist/esm/chunks/chunk.5A665C5E.js +7 -0
  44. package/dist/esm/chunks/chunk.5A665C5E.js.map +7 -0
  45. package/dist/esm/chunks/chunk.5ADUSMC7.js +7 -0
  46. package/dist/esm/chunks/chunk.5ADUSMC7.js.map +7 -0
  47. package/dist/esm/chunks/{chunk.USQEIRST.js → chunk.5MB6CTBA.js} +2 -2
  48. package/dist/esm/chunks/chunk.5SUJNEC7.js +7 -0
  49. package/dist/esm/chunks/chunk.5SUJNEC7.js.map +7 -0
  50. package/dist/esm/chunks/{chunk.47U6GVGZ.js → chunk.5UOX22ML.js} +2 -2
  51. package/dist/esm/chunks/chunk.6E5WHIPF.js +7 -0
  52. package/dist/esm/chunks/chunk.6E5WHIPF.js.map +7 -0
  53. package/dist/esm/chunks/{chunk.4NABD6XG.js → chunk.6VS3LYAF.js} +2 -2
  54. package/dist/esm/chunks/chunk.72BKSMAZ.js +7 -0
  55. package/dist/esm/chunks/{chunk.3TIBP6QT.js.map → chunk.72BKSMAZ.js.map} +3 -3
  56. package/dist/esm/chunks/chunk.77C7S7ZS.js +7 -0
  57. package/dist/esm/chunks/chunk.77C7S7ZS.js.map +7 -0
  58. package/dist/esm/chunks/chunk.7AAICE77.js +7 -0
  59. package/dist/esm/chunks/chunk.7AAICE77.js.map +7 -0
  60. package/dist/esm/chunks/chunk.7IPAW4D2.js +7 -0
  61. package/dist/esm/chunks/{chunk.MCR34SZQ.js.map → chunk.7IPAW4D2.js.map} +1 -1
  62. package/dist/esm/chunks/chunk.7Y3BUR7Q.js +7 -0
  63. package/dist/esm/chunks/{chunk.3U222LE4.js.map → chunk.7Y3BUR7Q.js.map} +1 -1
  64. package/dist/esm/chunks/chunk.A2NB7CIK.js +7 -0
  65. package/dist/esm/chunks/chunk.A2NB7CIK.js.map +7 -0
  66. package/dist/esm/chunks/{chunk.AOSBUJWW.js → chunk.A7BCLPP4.js} +2 -2
  67. package/dist/esm/chunks/chunk.AFWWND2C.js +7 -0
  68. package/dist/esm/chunks/chunk.AFWWND2C.js.map +7 -0
  69. package/dist/esm/chunks/{chunk.7UBIT4NP.js → chunk.AG6IRMLZ.js} +2 -2
  70. package/dist/esm/chunks/{chunk.A4UH52SA.js → chunk.AGLI4WR4.js} +2 -2
  71. package/dist/esm/chunks/{chunk.WTUXAH7Z.js → chunk.AOVXNX7P.js} +2 -2
  72. package/dist/esm/chunks/{chunk.AN2E2SSN.js → chunk.ASLHRT3N.js} +2 -2
  73. package/dist/esm/chunks/chunk.BEFAXPXJ.js +15 -0
  74. package/dist/esm/chunks/{chunk.EO3HELQ2.js.map → chunk.BEFAXPXJ.js.map} +1 -1
  75. package/dist/esm/chunks/{chunk.CBLUXYH2.js → chunk.BHE6Z5Y2.js} +2 -2
  76. package/dist/esm/chunks/{chunk.2WRAXA3H.js → chunk.BQ52JYLA.js} +2 -2
  77. package/dist/esm/chunks/chunk.BQZKOIAW.js +7 -0
  78. package/dist/esm/chunks/chunk.BQZKOIAW.js.map +7 -0
  79. package/dist/esm/chunks/chunk.BV7EAQST.js +7 -0
  80. package/dist/esm/chunks/chunk.BV7EAQST.js.map +7 -0
  81. package/dist/esm/chunks/{chunk.ROMRJIFR.js → chunk.CE35CVDV.js} +2 -2
  82. package/dist/esm/chunks/{chunk.ZPXMKY72.js → chunk.CEGBMUSR.js} +2 -2
  83. package/dist/esm/chunks/{chunk.GBGGUYTE.js → chunk.CFAI4K3E.js} +2 -2
  84. package/dist/esm/chunks/{chunk.ZIGVO6FN.js → chunk.CGFSMACZ.js} +2 -2
  85. package/dist/esm/chunks/chunk.DJSHVUEM.js +18 -0
  86. package/dist/esm/chunks/{chunk.MGLWXAZO.js.map → chunk.DJSHVUEM.js.map} +4 -4
  87. package/dist/esm/chunks/chunk.DKERDHXH.js +7 -0
  88. package/dist/esm/chunks/{chunk.JVWJHSPM.js.map → chunk.DKERDHXH.js.map} +1 -1
  89. package/dist/esm/chunks/chunk.DZJ6HBAG.js +7 -0
  90. package/dist/esm/chunks/chunk.DZJ6HBAG.js.map +7 -0
  91. package/dist/esm/chunks/{chunk.2537XOFQ.js → chunk.E2BE52ME.js} +2 -2
  92. package/dist/esm/chunks/chunk.EHVCEEV2.js +7 -0
  93. package/dist/esm/chunks/chunk.EHVCEEV2.js.map +7 -0
  94. package/dist/esm/chunks/{chunk.UEYPCCFG.js → chunk.ENUKGA2U.js} +2 -2
  95. package/dist/esm/chunks/chunk.EO3GP6DP.js +7 -0
  96. package/dist/esm/chunks/chunk.EO3GP6DP.js.map +7 -0
  97. package/dist/esm/chunks/{chunk.XYBVD3IE.js → chunk.EUJBIOGT.js} +2 -2
  98. package/dist/esm/chunks/{chunk.XYBVD3IE.js.map → chunk.EUJBIOGT.js.map} +2 -2
  99. package/dist/esm/chunks/chunk.FLBYVCQ6.js +7 -0
  100. package/dist/esm/chunks/chunk.FLBYVCQ6.js.map +7 -0
  101. package/dist/esm/chunks/chunk.FLF5RTYO.js +7 -0
  102. package/dist/esm/chunks/chunk.FLF5RTYO.js.map +7 -0
  103. package/dist/esm/chunks/chunk.GBAVJILM.js +7 -0
  104. package/dist/esm/chunks/chunk.GBAVJILM.js.map +7 -0
  105. package/dist/esm/chunks/chunk.GG7IQL46.js +7 -0
  106. package/dist/esm/chunks/{chunk.HBAC6E7O.js.map → chunk.GG7IQL46.js.map} +1 -1
  107. package/dist/esm/chunks/chunk.GIENHEMN.js +7 -0
  108. package/dist/esm/chunks/chunk.GIENHEMN.js.map +7 -0
  109. package/dist/esm/chunks/{chunk.FOSKVNVV.js → chunk.H4VQXV2H.js} +2 -2
  110. package/dist/esm/chunks/{chunk.FOSKVNVV.js.map → chunk.H4VQXV2H.js.map} +2 -2
  111. package/dist/esm/chunks/{chunk.GA6AO6FJ.js → chunk.H5RW3A4M.js} +2 -2
  112. package/dist/esm/chunks/chunk.HG4IDRAC.js +7 -0
  113. package/dist/esm/chunks/chunk.HG4IDRAC.js.map +7 -0
  114. package/dist/esm/chunks/{chunk.CSOKFDFQ.js → chunk.HSADKCGS.js} +2 -2
  115. package/dist/esm/chunks/chunk.I7YON2TC.js +7 -0
  116. package/dist/esm/chunks/chunk.I7YON2TC.js.map +7 -0
  117. package/dist/esm/chunks/chunk.IEABOPNB.js +7 -0
  118. package/dist/esm/chunks/{chunk.22C7GQLX.js → chunk.IL4S57WO.js} +2 -2
  119. package/dist/esm/chunks/chunk.IQYOLMPG.js +7 -0
  120. package/dist/esm/chunks/chunk.IQYOLMPG.js.map +7 -0
  121. package/dist/esm/chunks/chunk.ISLJNJEE.js +7 -0
  122. package/dist/esm/chunks/chunk.ISLJNJEE.js.map +7 -0
  123. package/dist/esm/chunks/{chunk.QG5EYBS3.js → chunk.J2Y5KPON.js} +2 -2
  124. package/dist/esm/chunks/{chunk.QG5EYBS3.js.map → chunk.J2Y5KPON.js.map} +2 -2
  125. package/dist/esm/chunks/{chunk.7IJUN75W.js → chunk.JE5LSPXG.js} +2 -2
  126. package/dist/esm/chunks/{chunk.7IJUN75W.js.map → chunk.JE5LSPXG.js.map} +3 -3
  127. package/dist/esm/chunks/{chunk.GTKYO6VB.js → chunk.JGURMVW7.js} +2 -2
  128. package/dist/esm/chunks/{chunk.YXHMD73U.js → chunk.K6GJNDTY.js} +2 -2
  129. package/dist/esm/chunks/{chunk.QUWEAFGI.js → chunk.KEOLH7G3.js} +2 -2
  130. package/dist/esm/chunks/chunk.KLU54MDQ.js +7 -0
  131. package/dist/esm/chunks/chunk.KLU54MDQ.js.map +7 -0
  132. package/dist/esm/chunks/chunk.KO6ODCZC.js +7 -0
  133. package/dist/esm/chunks/chunk.KO6ODCZC.js.map +7 -0
  134. package/dist/esm/chunks/chunk.KTPEFU7V.js +7 -0
  135. package/dist/esm/chunks/{chunk.OFXSMOV6.js.map → chunk.KTPEFU7V.js.map} +2 -2
  136. package/dist/esm/chunks/chunk.L4QSPQDE.js +7 -0
  137. package/dist/esm/chunks/{chunk.DCCFF327.js.map → chunk.L4QSPQDE.js.map} +2 -2
  138. package/dist/esm/chunks/chunk.LGSCBWNR.js +7 -0
  139. package/dist/esm/chunks/chunk.LGSCBWNR.js.map +7 -0
  140. package/dist/esm/chunks/{chunk.BIQTNLIF.js → chunk.LNTTU2GL.js} +2 -2
  141. package/dist/esm/chunks/chunk.LSMHIVX2.js +7 -0
  142. package/dist/esm/chunks/chunk.LSMHIVX2.js.map +7 -0
  143. package/dist/esm/chunks/{chunk.2AM2BKEO.js → chunk.MFQRXVKO.js} +2 -2
  144. package/dist/esm/chunks/{chunk.JLSFTWPE.js → chunk.MTIPIEXA.js} +2 -2
  145. package/dist/esm/chunks/chunk.MX4JX4GT.js +7 -0
  146. package/dist/esm/chunks/{chunk.UOD3A7M4.js.map → chunk.MX4JX4GT.js.map} +1 -1
  147. package/dist/esm/chunks/chunk.NEQX2QVX.js +7 -0
  148. package/dist/esm/chunks/chunk.NEQX2QVX.js.map +7 -0
  149. package/dist/esm/chunks/chunk.NWVQ5HK2.js +7 -0
  150. package/dist/esm/chunks/{chunk.BETICEYY.js.map → chunk.NWVQ5HK2.js.map} +2 -2
  151. package/dist/esm/chunks/chunk.O5WAQQNR.js +7 -0
  152. package/dist/esm/chunks/{chunk.ZYKP23JP.js.map → chunk.O5WAQQNR.js.map} +2 -2
  153. package/dist/esm/chunks/{chunk.JSTCCUKZ.js → chunk.OEI35LFU.js} +2 -2
  154. package/dist/esm/chunks/{chunk.6GSVB5NB.js → chunk.OLFOVKQG.js} +2 -2
  155. package/dist/esm/chunks/chunk.OLFOVKQG.js.map +7 -0
  156. package/dist/esm/chunks/{chunk.IWVAI6XM.js → chunk.OOAJHLW4.js} +2 -2
  157. package/dist/esm/chunks/chunk.OOAJHLW4.js.map +7 -0
  158. package/dist/esm/chunks/chunk.OVXEOEJF.js +7 -0
  159. package/dist/esm/chunks/chunk.OVXEOEJF.js.map +7 -0
  160. package/dist/esm/chunks/chunk.PC6TW5XE.js +7 -0
  161. package/dist/esm/chunks/chunk.PC6TW5XE.js.map +7 -0
  162. package/dist/esm/chunks/chunk.PFIIBXTS.js +7 -0
  163. package/dist/esm/chunks/chunk.PFIIBXTS.js.map +7 -0
  164. package/dist/esm/chunks/chunk.Q7TBWGKN.js +12 -0
  165. package/dist/esm/chunks/chunk.Q7TBWGKN.js.map +7 -0
  166. package/dist/esm/chunks/chunk.QCPV5DEG.js +7 -0
  167. package/dist/esm/chunks/{chunk.R3AWIPPK.js → chunk.QIZBZGYT.js} +2 -2
  168. package/dist/esm/chunks/{chunk.2XPAYTK4.js → chunk.QKTK5XUE.js} +2 -2
  169. package/dist/esm/chunks/chunk.QLGJS37N.js +7 -0
  170. package/dist/esm/chunks/chunk.QLGJS37N.js.map +7 -0
  171. package/dist/esm/chunks/{chunk.R66CYS27.js → chunk.QTY25OTN.js} +2 -2
  172. package/dist/esm/chunks/chunk.QUXMLWBJ.js +7 -0
  173. package/dist/esm/chunks/{chunk.BEUQVZKZ.js.map → chunk.QUXMLWBJ.js.map} +1 -1
  174. package/dist/esm/chunks/{chunk.BSV27GU7.js → chunk.QVATEY5S.js} +2 -2
  175. package/dist/esm/chunks/chunk.RFT3BAJ2.js +7 -0
  176. package/dist/esm/chunks/chunk.RFT3BAJ2.js.map +7 -0
  177. package/dist/esm/chunks/{chunk.SHBDQPPH.js → chunk.RONMNRSH.js} +2 -2
  178. package/dist/esm/chunks/{chunk.FRTSXX33.js → chunk.RSYEG2RW.js} +2 -2
  179. package/dist/esm/chunks/{chunk.O56VP4OZ.js → chunk.RXBLU4OJ.js} +2 -2
  180. package/dist/esm/chunks/{chunk.FBDRM4YN.js → chunk.S7KEO2CH.js} +2 -2
  181. package/dist/esm/chunks/{chunk.XU3YSZPA.js → chunk.SQ3AZAHF.js} +2 -2
  182. package/dist/esm/chunks/{chunk.35MHQH7Z.js → chunk.SROEDYPL.js} +2 -2
  183. package/dist/esm/chunks/chunk.T7NWP7DB.js +7 -0
  184. package/dist/esm/chunks/chunk.T7NWP7DB.js.map +7 -0
  185. package/dist/esm/chunks/{chunk.PXRGQHWR.js → chunk.TQWZDM6T.js} +2 -2
  186. package/dist/esm/chunks/chunk.U6J4VHU6.js +7 -0
  187. package/dist/esm/chunks/{chunk.STSAE2XP.js.map → chunk.U6J4VHU6.js.map} +1 -1
  188. package/dist/esm/chunks/chunk.UKBE2FMZ.js +7 -0
  189. package/dist/esm/chunks/{chunk.OT4AIOMN.js.map → chunk.UKBE2FMZ.js.map} +3 -3
  190. package/dist/esm/chunks/{chunk.MDDX4MJU.js → chunk.UPSXYWPD.js} +2 -2
  191. package/dist/esm/chunks/{chunk.MDDX4MJU.js.map → chunk.UPSXYWPD.js.map} +2 -2
  192. package/dist/esm/chunks/chunk.USTVZ6MZ.js +7 -0
  193. package/dist/esm/chunks/chunk.USTVZ6MZ.js.map +7 -0
  194. package/dist/esm/chunks/chunk.VGIRVTBJ.js +7 -0
  195. package/dist/esm/chunks/chunk.VGIRVTBJ.js.map +7 -0
  196. package/dist/esm/chunks/chunk.VRSPT7WX.js +7 -0
  197. package/dist/esm/chunks/{chunk.UQQQSJVM.js.map → chunk.VRSPT7WX.js.map} +3 -3
  198. package/dist/esm/chunks/chunk.W4HANHUO.js +7 -0
  199. package/dist/esm/chunks/chunk.W6FT6MKN.js +7 -0
  200. package/dist/esm/chunks/chunk.W6FT6MKN.js.map +7 -0
  201. package/dist/esm/chunks/{chunk.2W276VOR.js → chunk.WMJSYYXQ.js} +2 -2
  202. package/dist/esm/chunks/chunk.WXVVOFNK.js +7 -0
  203. package/dist/esm/chunks/chunk.WXVVOFNK.js.map +7 -0
  204. package/dist/esm/chunks/{chunk.VOTT5COZ.js → chunk.XATVDHDW.js} +2 -2
  205. package/dist/esm/chunks/chunk.XATVDHDW.js.map +7 -0
  206. package/dist/esm/chunks/{chunk.4AEQ7KVU.js → chunk.XTJGWT5F.js} +2 -2
  207. package/dist/esm/chunks/chunk.YNCTSMT6.js +7 -0
  208. package/dist/esm/chunks/chunk.YNCTSMT6.js.map +7 -0
  209. package/dist/esm/chunks/{chunk.YNXWVL4B.js → chunk.YPNSK2CK.js} +2 -2
  210. package/dist/esm/chunks/chunk.YRAEFQJW.js +7 -0
  211. package/dist/esm/chunks/{chunk.XAZ6EDIZ.js.map → chunk.YRAEFQJW.js.map} +3 -3
  212. package/dist/esm/chunks/chunk.YWJVZVZX.js +7 -0
  213. package/dist/esm/chunks/{chunk.6XLTVIUD.js → chunk.ZA7JY3AY.js} +2 -2
  214. package/dist/esm/chunks/chunk.ZG6YF2HI.js +7 -0
  215. package/dist/esm/chunks/{chunk.R6VPRRTT.js.map → chunk.ZG6YF2HI.js.map} +1 -1
  216. package/dist/esm/circular-progress/index.js +1 -1
  217. package/dist/esm/color-picker/index.js +1 -1
  218. package/dist/esm/core/base/index.js +1 -1
  219. package/dist/esm/core/delegates/index.js +1 -1
  220. package/dist/esm/core/index.js +1 -1
  221. package/dist/esm/core/utils/index.js +1 -1
  222. package/dist/esm/date-picker/index.js +1 -1
  223. package/dist/esm/date-range-picker/index.js +1 -1
  224. package/dist/esm/deprecated/button/index.js +1 -1
  225. package/dist/esm/deprecated/index.js +1 -1
  226. package/dist/esm/dialog/index.js +1 -1
  227. package/dist/esm/divider/index.js +1 -1
  228. package/dist/esm/drawer/base/index.js +1 -1
  229. package/dist/esm/drawer/drawer/index.js +1 -1
  230. package/dist/esm/drawer/index.js +1 -1
  231. package/dist/esm/drawer/mini-drawer/index.js +1 -1
  232. package/dist/esm/drawer/modal-drawer/index.js +1 -1
  233. package/dist/esm/expansion-panel/index.js +1 -1
  234. package/dist/esm/{field-next → field}/base/index.js +1 -1
  235. package/dist/esm/field/index.js +7 -0
  236. package/dist/esm/file-picker/index.js +1 -1
  237. package/dist/esm/floating-action-button/index.js +1 -1
  238. package/dist/esm/focus-indicator/index.js +1 -1
  239. package/dist/esm/icon/index.js +1 -1
  240. package/dist/esm/icon-button/index.js +1 -1
  241. package/dist/esm/index.js +1 -1
  242. package/dist/esm/inline-message/index.js +1 -1
  243. package/dist/esm/keyboard-shortcut/index.js +1 -1
  244. package/dist/esm/label/index.js +1 -1
  245. package/dist/esm/label-value/index.js +1 -1
  246. package/dist/esm/linear-progress/index.js +1 -1
  247. package/dist/esm/list/index.js +1 -1
  248. package/dist/esm/list/list/index.js +1 -1
  249. package/dist/esm/list/list-item/index.js +1 -1
  250. package/dist/esm/list-dropdown/index.js +1 -1
  251. package/dist/esm/menu/index.js +1 -1
  252. package/dist/esm/open-icon/index.js +1 -1
  253. package/dist/esm/overlay/index.js +1 -1
  254. package/dist/esm/page-state/index.js +1 -1
  255. package/dist/esm/paginator/index.js +1 -1
  256. package/dist/esm/popover/index.js +1 -1
  257. package/dist/esm/profile-card/index.js +1 -1
  258. package/dist/esm/quantity-field/index.js +1 -1
  259. package/dist/esm/radio/index.js +1 -1
  260. package/dist/esm/radio/radio/index.js +1 -1
  261. package/dist/esm/radio/radio-group/index.js +1 -1
  262. package/dist/esm/scaffold/index.js +1 -1
  263. package/dist/esm/select/core/index.js +1 -1
  264. package/dist/esm/select/index.js +1 -1
  265. package/dist/esm/select/option/index.js +1 -1
  266. package/dist/esm/select/option-group/index.js +1 -1
  267. package/dist/esm/select/select/index.js +1 -1
  268. package/dist/esm/select/select-dropdown/index.js +1 -1
  269. package/dist/esm/skeleton/index.js +1 -1
  270. package/dist/esm/slider/index.js +1 -1
  271. package/dist/esm/split-button/index.js +1 -1
  272. package/dist/esm/split-view/index.js +1 -1
  273. package/dist/esm/split-view/split-view/index.js +1 -1
  274. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  275. package/dist/esm/stack/index.js +1 -1
  276. package/dist/esm/state-layer/index.js +1 -1
  277. package/dist/esm/stepper/index.js +1 -1
  278. package/dist/esm/stepper/step/index.js +1 -1
  279. package/dist/esm/stepper/stepper/index.js +1 -1
  280. package/dist/esm/switch/index.js +1 -1
  281. package/dist/esm/table/index.js +1 -1
  282. package/dist/esm/tabs/index.js +1 -1
  283. package/dist/esm/tabs/tab/index.js +1 -1
  284. package/dist/esm/tabs/tab-bar/index.js +1 -1
  285. package/dist/esm/text-field/index.js +1 -1
  286. package/dist/esm/time-picker/index.js +1 -1
  287. package/dist/esm/toast/index.js +1 -1
  288. package/dist/esm/toolbar/index.js +1 -1
  289. package/dist/esm/tooltip/index.js +1 -1
  290. package/dist/esm/view-switcher/index.js +1 -1
  291. package/dist/esm/view-switcher/view/index.js +1 -1
  292. package/dist/forge-core.css +1 -1
  293. package/dist/forge-dark.css +1 -1
  294. package/dist/forge.css +1 -1
  295. package/esm/app-bar/profile-button/app-bar-profile-button-adapter.d.ts +6 -6
  296. package/esm/app-bar/profile-button/app-bar-profile-button-adapter.js +18 -10
  297. package/esm/app-bar/profile-button/app-bar-profile-button-foundation.d.ts +3 -3
  298. package/esm/app-bar/profile-button/app-bar-profile-button-foundation.js +13 -17
  299. package/esm/app-bar/profile-button/app-bar-profile-button.d.ts +4 -4
  300. package/esm/app-bar/profile-button/app-bar-profile-button.js +3 -3
  301. package/esm/autocomplete/autocomplete-adapter.d.ts +6 -2
  302. package/esm/autocomplete/autocomplete-adapter.js +27 -23
  303. package/esm/autocomplete/autocomplete-constants.d.ts +2 -2
  304. package/esm/autocomplete/autocomplete-constants.js +1 -2
  305. package/esm/autocomplete/autocomplete-foundation.js +3 -5
  306. package/esm/autocomplete/autocomplete.js +2 -2
  307. package/esm/backdrop/backdrop-constants.d.ts +10 -13
  308. package/esm/backdrop/backdrop-constants.js +12 -17
  309. package/esm/backdrop/backdrop.d.ts +17 -29
  310. package/esm/backdrop/backdrop.js +79 -50
  311. package/esm/backdrop/index.d.ts +0 -2
  312. package/esm/backdrop/index.js +0 -2
  313. package/esm/bottom-sheet/bottom-sheet-adapter.d.ts +2 -2
  314. package/esm/bottom-sheet/bottom-sheet-adapter.js +12 -5
  315. package/esm/bottom-sheet/bottom-sheet-foundation.js +1 -1
  316. package/esm/bottom-sheet/bottom-sheet.js +2 -2
  317. package/esm/busy-indicator/busy-indicator-adapter.d.ts +2 -6
  318. package/esm/busy-indicator/busy-indicator-adapter.js +8 -6
  319. package/esm/busy-indicator/busy-indicator-foundation.js +1 -1
  320. package/esm/button/base/base-button-foundation.js +2 -1
  321. package/esm/button-area/button-area-foundation.js +2 -3
  322. package/esm/calendar/calendar-constants.d.ts +1 -1
  323. package/esm/calendar/calendar-constants.js +1 -1
  324. package/esm/calendar/calendar-dropdown/calendar-dropdown.d.ts +6 -4
  325. package/esm/calendar/calendar-dropdown/calendar-dropdown.js +21 -25
  326. package/esm/calendar/calendar-menu/calendar-menu-constants.d.ts +1 -1
  327. package/esm/calendar/calendar-menu/calendar-menu-constants.js +1 -1
  328. package/esm/calendar/calendar-menu/calendar-menu.js +3 -3
  329. package/esm/calendar/calendar.js +3 -3
  330. package/esm/card/card-constants.d.ts +2 -5
  331. package/esm/card/card-constants.js +4 -10
  332. package/esm/card/card.d.ts +10 -5
  333. package/esm/card/card.js +14 -16
  334. package/esm/checkbox/checkbox-adapter.d.ts +0 -34
  335. package/esm/checkbox/checkbox-adapter.js +10 -105
  336. package/esm/checkbox/checkbox-constants.d.ts +13 -4
  337. package/esm/checkbox/checkbox-constants.js +8 -11
  338. package/esm/checkbox/checkbox-foundation.d.ts +5 -11
  339. package/esm/checkbox/checkbox-foundation.js +24 -35
  340. package/esm/checkbox/checkbox.d.ts +24 -24
  341. package/esm/checkbox/checkbox.js +65 -83
  342. package/esm/chip-field/chip-field-adapter.d.ts +48 -22
  343. package/esm/chip-field/chip-field-adapter.js +130 -30
  344. package/esm/chip-field/chip-field-component-delegate.js +1 -1
  345. package/esm/chip-field/chip-field-constants.d.ts +18 -16
  346. package/esm/chip-field/chip-field-constants.js +19 -20
  347. package/esm/chip-field/chip-field-foundation.d.ts +26 -16
  348. package/esm/chip-field/chip-field-foundation.js +128 -74
  349. package/esm/chip-field/chip-field.d.ts +9 -6
  350. package/esm/chip-field/chip-field.js +24 -11
  351. package/esm/chips/chip/chip.js +1 -1
  352. package/esm/constants.d.ts +2 -0
  353. package/esm/constants.js +2 -0
  354. package/esm/core/base/base-adapter.d.ts +1 -0
  355. package/esm/core/controllers/move-controller.d.ts +32 -0
  356. package/esm/core/controllers/move-controller.js +40 -0
  357. package/esm/core/mixins/interactions/moveable/with-moveable.d.ts +30 -0
  358. package/esm/core/mixins/interactions/moveable/with-moveable.js +131 -0
  359. package/esm/core/utils/dismissible-stack.d.ts +6 -0
  360. package/esm/core/utils/dismissible-stack.js +9 -0
  361. package/esm/core/utils/feature-detection.d.ts +5 -0
  362. package/esm/core/utils/feature-detection.js +7 -0
  363. package/esm/core/utils/index.d.ts +2 -0
  364. package/esm/core/utils/index.js +2 -0
  365. package/esm/core/utils/svg-utils.d.ts +1 -1
  366. package/esm/core/utils/svg-utils.js +2 -2
  367. package/esm/date-picker/date-picker.d.ts +0 -2
  368. package/esm/date-picker/date-picker.js +2 -4
  369. package/esm/date-range-picker/date-range-picker-adapter.js +1 -1
  370. package/esm/date-range-picker/date-range-picker-component-delegate.d.ts +1 -1
  371. package/esm/date-range-picker/date-range-picker.js +2 -2
  372. package/esm/dialog/dialog-adapter.d.ts +44 -62
  373. package/esm/dialog/dialog-adapter.js +107 -135
  374. package/esm/dialog/dialog-constants.d.ts +51 -28
  375. package/esm/dialog/dialog-constants.js +36 -33
  376. package/esm/dialog/dialog-foundation.d.ts +59 -75
  377. package/esm/dialog/dialog-foundation.js +218 -360
  378. package/esm/dialog/dialog.d.ts +127 -46
  379. package/esm/dialog/dialog.js +161 -60
  380. package/esm/drawer/modal-drawer/modal-drawer-adapter.js +1 -1
  381. package/esm/drawer/modal-drawer/modal-drawer-foundation.js +5 -6
  382. package/esm/expansion-panel/expansion-panel-adapter.d.ts +13 -20
  383. package/esm/expansion-panel/expansion-panel-adapter.js +22 -159
  384. package/esm/expansion-panel/expansion-panel-constants.d.ts +16 -22
  385. package/esm/expansion-panel/expansion-panel-constants.js +16 -30
  386. package/esm/expansion-panel/expansion-panel-foundation.d.ts +14 -37
  387. package/esm/expansion-panel/expansion-panel-foundation.js +50 -117
  388. package/esm/expansion-panel/expansion-panel.d.ts +29 -32
  389. package/esm/expansion-panel/expansion-panel.js +32 -32
  390. package/esm/{field-next → field}/base/base-field-foundation.js +14 -0
  391. package/esm/{field-next/field-foundation.d.ts → field/base/with-base-field.d.ts} +24 -39
  392. package/esm/field/base/with-base-field.js +210 -0
  393. package/esm/field/field-adapter.d.ts +49 -92
  394. package/esm/field/field-adapter.js +114 -154
  395. package/esm/field/field-constants.d.ts +82 -30
  396. package/esm/field/field-constants.js +51 -29
  397. package/esm/field/field-foundation.d.ts +78 -48
  398. package/esm/field/field-foundation.js +171 -273
  399. package/esm/field/field.d.ts +202 -24
  400. package/esm/field/field.js +267 -37
  401. package/esm/focus-indicator/focus-indicator-constants.d.ts +5 -0
  402. package/esm/focus-indicator/focus-indicator-constants.js +7 -2
  403. package/esm/focus-indicator/focus-indicator-foundation.d.ts +5 -0
  404. package/esm/focus-indicator/focus-indicator-foundation.js +21 -3
  405. package/esm/focus-indicator/focus-indicator.d.ts +5 -0
  406. package/esm/focus-indicator/focus-indicator.js +9 -7
  407. package/esm/icon/icon-adapter.d.ts +4 -2
  408. package/esm/icon/icon-adapter.js +13 -9
  409. package/esm/icon/icon-constants.d.ts +14 -2
  410. package/esm/icon/icon-constants.js +3 -1
  411. package/esm/icon/icon-foundation.d.ts +6 -2
  412. package/esm/icon/icon-foundation.js +50 -18
  413. package/esm/icon/icon-registry.d.ts +8 -2
  414. package/esm/icon/icon-registry.js +15 -2
  415. package/esm/icon/icon-utils.d.ts +6 -3
  416. package/esm/icon/icon-utils.js +6 -7
  417. package/esm/icon/icon.d.ts +35 -4
  418. package/esm/icon/icon.js +44 -18
  419. package/esm/icon/index.js +0 -6
  420. package/esm/icon-button/icon-button-component-delegate.d.ts +2 -2
  421. package/esm/index.d.ts +1 -4
  422. package/esm/index.js +2 -9
  423. package/esm/label-value/index.d.ts +0 -2
  424. package/esm/label-value/index.js +0 -2
  425. package/esm/label-value/label-value-constants.d.ts +7 -12
  426. package/esm/label-value/label-value-constants.js +7 -17
  427. package/esm/label-value/label-value.d.ts +44 -16
  428. package/esm/label-value/label-value.js +78 -36
  429. package/esm/list/list/list.d.ts +2 -3
  430. package/esm/list/list/list.js +4 -5
  431. package/esm/list/list-item/list-item.d.ts +1 -0
  432. package/esm/list/list-item/list-item.js +2 -1
  433. package/esm/list-dropdown/list-dropdown-adapter.d.ts +3 -1
  434. package/esm/list-dropdown/list-dropdown-adapter.js +24 -9
  435. package/esm/list-dropdown/list-dropdown-constants.d.ts +6 -5
  436. package/esm/list-dropdown/list-dropdown-foundation.d.ts +2 -2
  437. package/esm/list-dropdown/list-dropdown-foundation.js +3 -5
  438. package/esm/list-dropdown/list-dropdown-utils.d.ts +3 -3
  439. package/esm/list-dropdown/list-dropdown-utils.js +11 -19
  440. package/esm/list-dropdown/list-dropdown.d.ts +2 -2
  441. package/esm/list-dropdown/list-dropdown.js +1 -1
  442. package/esm/menu/menu-adapter.d.ts +4 -2
  443. package/esm/menu/menu-adapter.js +8 -2
  444. package/esm/menu/menu-foundation.d.ts +11 -10
  445. package/esm/menu/menu-foundation.js +9 -6
  446. package/esm/menu/menu.d.ts +8 -7
  447. package/esm/menu/menu.js +2 -2
  448. package/esm/overlay/overlay-adapter.d.ts +0 -1
  449. package/esm/overlay/overlay-adapter.js +1 -2
  450. package/esm/paginator/paginator.js +1 -1
  451. package/esm/popover/popover-adapter.d.ts +9 -0
  452. package/esm/popover/popover-adapter.js +41 -3
  453. package/esm/popover/popover-constants.d.ts +17 -0
  454. package/esm/popover/popover-constants.js +11 -6
  455. package/esm/popover/popover-foundation.d.ts +7 -1
  456. package/esm/popover/popover-foundation.js +35 -7
  457. package/esm/popover/popover.d.ts +15 -1
  458. package/esm/popover/popover.js +28 -15
  459. package/esm/radio/core/radio-group-manager.d.ts +18 -1
  460. package/esm/radio/core/radio-group-manager.js +27 -6
  461. package/esm/radio/radio/radio-adapter.js +4 -2
  462. package/esm/radio/radio/radio-component-delegate.d.ts +38 -0
  463. package/esm/radio/radio/radio-component-delegate.js +88 -1
  464. package/esm/radio/radio/radio-constants.d.ts +11 -0
  465. package/esm/radio/radio/radio-constants.js +3 -1
  466. package/esm/radio/radio/radio-foundation.js +3 -2
  467. package/esm/radio/radio/radio.d.ts +8 -3
  468. package/esm/radio/radio/radio.js +17 -18
  469. package/esm/radio/radio-group/radio-group-constants.d.ts +3 -0
  470. package/esm/radio/radio-group/radio-group-constants.js +3 -1
  471. package/esm/radio/radio-group/radio-group.js +5 -5
  472. package/esm/scaffold/scaffold-constants.d.ts +6 -0
  473. package/esm/scaffold/scaffold-constants.js +7 -1
  474. package/esm/scaffold/scaffold.d.ts +30 -2
  475. package/esm/scaffold/scaffold.js +43 -4
  476. package/esm/select/core/base-select-adapter.d.ts +5 -3
  477. package/esm/select/core/base-select-adapter.js +10 -9
  478. package/esm/select/core/base-select-constants.d.ts +11 -0
  479. package/esm/select/core/base-select-constants.js +1 -0
  480. package/esm/select/core/base-select-foundation.js +3 -3
  481. package/esm/select/core/base-select.d.ts +3 -3
  482. package/esm/select/select/select-adapter.d.ts +14 -60
  483. package/esm/select/select/select-adapter.js +52 -111
  484. package/esm/select/select/select-constants.d.ts +16 -14
  485. package/esm/select/select/select-constants.js +8 -16
  486. package/esm/select/select/select-foundation.d.ts +12 -58
  487. package/esm/select/select/select-foundation.js +45 -240
  488. package/esm/select/select/select.d.ts +17 -27
  489. package/esm/select/select/select.js +54 -62
  490. package/esm/select/select-dropdown/select-dropdown-adapter.d.ts +2 -2
  491. package/esm/select/select-dropdown/select-dropdown-adapter.js +1 -1
  492. package/esm/select/select-dropdown/select-dropdown.d.ts +0 -2
  493. package/esm/select/select-dropdown/select-dropdown.js +2 -4
  494. package/esm/slider/slider.d.ts +2 -2
  495. package/esm/slider/slider.js +2 -2
  496. package/esm/split-view/split-view/split-view.js +1 -1
  497. package/esm/split-view/split-view-panel/split-view-panel-adapter.d.ts +5 -10
  498. package/esm/split-view/split-view-panel/split-view-panel-adapter.js +7 -15
  499. package/esm/split-view/split-view-panel/split-view-panel-constants.d.ts +3 -3
  500. package/esm/split-view/split-view-panel/split-view-panel-constants.js +3 -3
  501. package/esm/split-view/split-view-panel/split-view-panel-foundation.js +0 -1
  502. package/esm/split-view/split-view-panel/split-view-panel-utils.js +2 -2
  503. package/esm/split-view/split-view-panel/split-view-panel.d.ts +0 -2
  504. package/esm/split-view/split-view-panel/split-view-panel.js +6 -6
  505. package/esm/stepper/step/step-adapter.d.ts +2 -9
  506. package/esm/stepper/step/step-adapter.js +5 -20
  507. package/esm/stepper/step/step-constants.js +21 -21
  508. package/esm/stepper/step/step-foundation.js +0 -2
  509. package/esm/stepper/step/step.d.ts +53 -0
  510. package/esm/stepper/step/step.js +60 -3
  511. package/esm/stepper/stepper/stepper-constants.js +9 -9
  512. package/esm/stepper/stepper/stepper.js +1 -1
  513. package/esm/switch/switch-adapter.d.ts +0 -32
  514. package/esm/switch/switch-adapter.js +15 -107
  515. package/esm/switch/switch-component-delegate.js +1 -1
  516. package/esm/switch/switch-constants.d.ts +24 -14
  517. package/esm/switch/switch-constants.js +11 -14
  518. package/esm/switch/switch-foundation.d.ts +5 -11
  519. package/esm/switch/switch-foundation.js +25 -31
  520. package/esm/switch/switch.d.ts +19 -19
  521. package/esm/switch/switch.js +59 -81
  522. package/esm/table/table-utils.js +5 -4
  523. package/esm/text-field/text-field-adapter.d.ts +2 -2
  524. package/esm/text-field/text-field-adapter.js +5 -2
  525. package/esm/text-field/text-field-foundation.d.ts +2 -2
  526. package/esm/text-field/text-field-foundation.js +2 -2
  527. package/esm/text-field/text-field.d.ts +1 -1
  528. package/esm/text-field/text-field.js +2 -2
  529. package/esm/time-picker/time-picker-adapter.d.ts +6 -2
  530. package/esm/time-picker/time-picker-adapter.js +7 -3
  531. package/esm/time-picker/time-picker-foundation.js +10 -10
  532. package/esm/time-picker/time-picker.js +2 -2
  533. package/esm/toast/toast-adapter.d.ts +18 -69
  534. package/esm/toast/toast-adapter.js +24 -121
  535. package/esm/toast/toast-constants.d.ts +25 -36
  536. package/esm/toast/toast-constants.js +20 -40
  537. package/esm/toast/toast-foundation.d.ts +22 -37
  538. package/esm/toast/toast-foundation.js +92 -92
  539. package/esm/toast/toast.d.ts +83 -24
  540. package/esm/toast/toast.js +126 -29
  541. package/esm/tooltip/tooltip-adapter.d.ts +1 -0
  542. package/esm/tooltip/tooltip-foundation.js +3 -0
  543. package/esm/tooltip/tooltip.d.ts +3 -1
  544. package/esm/tooltip/tooltip.js +4 -0
  545. package/package.json +1 -6
  546. package/styles/backdrop/_animations.scss +24 -0
  547. package/styles/backdrop/_core.scss +41 -0
  548. package/styles/backdrop/_token-utils.scss +30 -0
  549. package/styles/backdrop/backdrop.scss +38 -11
  550. package/{esm/radio/radio-group/radio-group-component-delegate.d.ts → styles/backdrop/index.scss} +1 -0
  551. package/styles/bottom-sheet/_mixins.scss +3 -8
  552. package/styles/bottom-sheet/bottom-sheet.scss +0 -4
  553. package/styles/calendar/calendar-menu/calendar-menu.scss +1 -1
  554. package/styles/calendar/calendar.scss +1 -1
  555. package/styles/card/_core.scss +35 -0
  556. package/styles/card/_token-utils.scss +30 -0
  557. package/styles/card/card.scss +37 -3
  558. package/{dist/popup/forge-popup.css → styles/card/index.scss} +1 -1
  559. package/styles/checkbox/_core.scss +9 -20
  560. package/styles/checkbox/checkbox.scss +2 -8
  561. package/styles/chip-field/_core.scss +21 -17
  562. package/styles/chip-field/_token-utils.scss +30 -0
  563. package/styles/chip-field/chip-field.scss +68 -3
  564. package/styles/chip-field/index.scss +6 -0
  565. package/styles/chips/chip/_core.scss +1 -1
  566. package/styles/core/styles/tokens/backdrop/_tokens.scss +29 -0
  567. package/styles/core/styles/tokens/card/_tokens.scss +33 -0
  568. package/styles/core/styles/tokens/checkbox/_tokens.scss +4 -3
  569. package/styles/core/styles/tokens/chip-field/_tokens.scss +16 -0
  570. package/styles/core/styles/tokens/dialog/_tokens.scss +82 -0
  571. package/styles/core/styles/tokens/expansion-panel/_tokens.scss +17 -0
  572. package/styles/core/styles/tokens/field/_tokens.scss +3 -1
  573. package/styles/core/styles/tokens/icon/_tokens.scss +20 -0
  574. package/styles/core/styles/tokens/label-value/_tokens.scss +34 -0
  575. package/styles/core/styles/tokens/list/list/_tokens.scss +2 -3
  576. package/styles/core/styles/tokens/list/list-item/_tokens.scss +7 -4
  577. package/styles/core/styles/tokens/popover/_tokens.scss +29 -7
  578. package/styles/core/styles/tokens/scaffold/_tokens.scss +18 -0
  579. package/styles/core/styles/tokens/select/_tokens.scss +18 -0
  580. package/styles/core/styles/tokens/stepper/step/_tokens.scss +62 -0
  581. package/styles/core/styles/tokens/toast/_tokens.scss +39 -0
  582. package/styles/dialog/_animations.scss +82 -0
  583. package/styles/dialog/_core.scss +310 -0
  584. package/styles/dialog/_token-utils.scss +30 -0
  585. package/styles/dialog/dialog.scss +356 -6
  586. package/styles/dialog/forge-dialog-utils.scss +23 -6
  587. package/styles/dialog/index.scss +7 -0
  588. package/styles/expansion-panel/_core.scss +65 -0
  589. package/styles/expansion-panel/_token-utils.scss +30 -0
  590. package/styles/expansion-panel/expansion-panel.scss +83 -3
  591. package/{esm/radio/radio-group/radio-group-component-delegate.js → styles/expansion-panel/index.scss} +1 -0
  592. package/styles/{field-next → field}/_core.layout.scss +6 -8
  593. package/styles/field/_core.scss +200 -50
  594. package/styles/{field-next → field}/_core.shape.scss +5 -0
  595. package/styles/{field-next → field}/_core.variant.scss +1 -0
  596. package/styles/{field-next → field}/field.scss +39 -16
  597. package/styles/forge-core.scss +2 -6
  598. package/styles/forge.scss +0 -5
  599. package/styles/icon/_core.scss +27 -0
  600. package/styles/icon/_token-utils.scss +30 -0
  601. package/styles/icon/icon.scss +27 -12
  602. package/styles/icon/index.scss +6 -0
  603. package/styles/label-value/_core.scss +85 -0
  604. package/styles/label-value/_token-utils.scss +30 -0
  605. package/styles/label-value/index.scss +6 -0
  606. package/styles/label-value/label-value.scss +71 -3
  607. package/styles/list/list/_core.scss +6 -2
  608. package/styles/list/list/list.scss +4 -0
  609. package/styles/list/list-item/_core.scss +3 -0
  610. package/styles/popover/_animations.scss +30 -0
  611. package/styles/popover/_core.scss +43 -6
  612. package/styles/popover/popover.scss +227 -170
  613. package/styles/scaffold/_core.scss +98 -0
  614. package/styles/scaffold/_token-utils.scss +30 -0
  615. package/styles/scaffold/index.scss +6 -0
  616. package/styles/scaffold/scaffold.scss +85 -5
  617. package/{dist/esm/chunks/chunk.WF2MFLG4.js → styles/select/index.scss} +1 -1
  618. package/styles/select/select/_core.scss +31 -15
  619. package/styles/select/select/_token-utils.scss +31 -0
  620. package/styles/select/select/select.scss +50 -8
  621. package/styles/split-view/split-view/split-view.scss +0 -1
  622. package/styles/split-view/split-view-panel/_mixins.scss +1 -0
  623. package/styles/split-view/split-view-panel/split-view-panel.scss +7 -1
  624. package/styles/stepper/step/_core.scss +391 -0
  625. package/styles/stepper/step/_token-utils.scss +31 -0
  626. package/styles/stepper/step/step.scss +261 -81
  627. package/styles/stepper/stepper/_core.scss +49 -0
  628. package/styles/stepper/stepper/stepper.scss +38 -4
  629. package/styles/switch/_core.scss +3 -2
  630. package/styles/theme/_theme-dark.scss +8 -8
  631. package/styles/toast/_animations.scss +42 -0
  632. package/styles/toast/_core.scss +73 -0
  633. package/styles/toast/_token-utils.scss +30 -0
  634. package/styles/toast/index.scss +6 -0
  635. package/styles/toast/toast.scss +173 -6
  636. package/styles/utils/_mixins-core.scss +5 -9
  637. package/dist/dialog/forge-dialog.css +0 -6
  638. package/dist/esm/chunks/chunk.24MZM3AY.js +0 -7
  639. package/dist/esm/chunks/chunk.24MZM3AY.js.map +0 -7
  640. package/dist/esm/chunks/chunk.2N5KNNQX.js +0 -7
  641. package/dist/esm/chunks/chunk.2N5KNNQX.js.map +0 -7
  642. package/dist/esm/chunks/chunk.3L77JY5H.js +0 -7
  643. package/dist/esm/chunks/chunk.3TIBP6QT.js +0 -7
  644. package/dist/esm/chunks/chunk.3U222LE4.js +0 -7
  645. package/dist/esm/chunks/chunk.45PPQY45.js +0 -177
  646. package/dist/esm/chunks/chunk.45PPQY45.js.map +0 -7
  647. package/dist/esm/chunks/chunk.4UU6PWR2.js +0 -7
  648. package/dist/esm/chunks/chunk.4UU6PWR2.js.map +0 -7
  649. package/dist/esm/chunks/chunk.5A34DJLZ.js +0 -7
  650. package/dist/esm/chunks/chunk.5A34DJLZ.js.map +0 -7
  651. package/dist/esm/chunks/chunk.5S7XNYRQ.js +0 -7
  652. package/dist/esm/chunks/chunk.5S7XNYRQ.js.map +0 -7
  653. package/dist/esm/chunks/chunk.66YURKP2.js +0 -7
  654. package/dist/esm/chunks/chunk.66YURKP2.js.map +0 -7
  655. package/dist/esm/chunks/chunk.6GSVB5NB.js.map +0 -7
  656. package/dist/esm/chunks/chunk.AFJ7QEVI.js +0 -7
  657. package/dist/esm/chunks/chunk.AFJ7QEVI.js.map +0 -7
  658. package/dist/esm/chunks/chunk.BETICEYY.js +0 -7
  659. package/dist/esm/chunks/chunk.BEUQVZKZ.js +0 -7
  660. package/dist/esm/chunks/chunk.CIUPY66Y.js +0 -7
  661. package/dist/esm/chunks/chunk.CIUPY66Y.js.map +0 -7
  662. package/dist/esm/chunks/chunk.CSCZRSDT.js +0 -7
  663. package/dist/esm/chunks/chunk.CSCZRSDT.js.map +0 -7
  664. package/dist/esm/chunks/chunk.CWBDPBYO.js +0 -7
  665. package/dist/esm/chunks/chunk.CWBDPBYO.js.map +0 -7
  666. package/dist/esm/chunks/chunk.D7RH43XD.js +0 -7
  667. package/dist/esm/chunks/chunk.D7RH43XD.js.map +0 -7
  668. package/dist/esm/chunks/chunk.DCCFF327.js +0 -7
  669. package/dist/esm/chunks/chunk.EO3HELQ2.js +0 -15
  670. package/dist/esm/chunks/chunk.FB4MXEIW.js +0 -7
  671. package/dist/esm/chunks/chunk.FB4MXEIW.js.map +0 -7
  672. package/dist/esm/chunks/chunk.G2HRYIIZ.js +0 -7
  673. package/dist/esm/chunks/chunk.G2HRYIIZ.js.map +0 -7
  674. package/dist/esm/chunks/chunk.G3GTO5ZC.js +0 -7
  675. package/dist/esm/chunks/chunk.G3GTO5ZC.js.map +0 -7
  676. package/dist/esm/chunks/chunk.HBAC6E7O.js +0 -7
  677. package/dist/esm/chunks/chunk.IM36A2ZI.js +0 -7
  678. package/dist/esm/chunks/chunk.IM36A2ZI.js.map +0 -7
  679. package/dist/esm/chunks/chunk.IWVAI6XM.js.map +0 -7
  680. package/dist/esm/chunks/chunk.IZ63EJ32.js +0 -7
  681. package/dist/esm/chunks/chunk.IZ63EJ32.js.map +0 -7
  682. package/dist/esm/chunks/chunk.JCEKCW4B.js +0 -7
  683. package/dist/esm/chunks/chunk.JCEKCW4B.js.map +0 -7
  684. package/dist/esm/chunks/chunk.JVWJHSPM.js +0 -7
  685. package/dist/esm/chunks/chunk.KDUH2DUE.js +0 -7
  686. package/dist/esm/chunks/chunk.KEFJZO5K.js +0 -7
  687. package/dist/esm/chunks/chunk.KEFJZO5K.js.map +0 -7
  688. package/dist/esm/chunks/chunk.KRKKMTXR.js +0 -7
  689. package/dist/esm/chunks/chunk.KRKKMTXR.js.map +0 -7
  690. package/dist/esm/chunks/chunk.LGEZI5SZ.js +0 -7
  691. package/dist/esm/chunks/chunk.LGEZI5SZ.js.map +0 -7
  692. package/dist/esm/chunks/chunk.LKA5HQQY.js +0 -7
  693. package/dist/esm/chunks/chunk.LKA5HQQY.js.map +0 -7
  694. package/dist/esm/chunks/chunk.MC3UAHWS.js +0 -7
  695. package/dist/esm/chunks/chunk.MC3UAHWS.js.map +0 -7
  696. package/dist/esm/chunks/chunk.MCR34SZQ.js +0 -7
  697. package/dist/esm/chunks/chunk.MGLWXAZO.js +0 -18
  698. package/dist/esm/chunks/chunk.MPUP6QAP.js +0 -7
  699. package/dist/esm/chunks/chunk.MZRAL4MY.js +0 -7
  700. package/dist/esm/chunks/chunk.MZRAL4MY.js.map +0 -7
  701. package/dist/esm/chunks/chunk.N632SJ7X.js +0 -7
  702. package/dist/esm/chunks/chunk.N632SJ7X.js.map +0 -7
  703. package/dist/esm/chunks/chunk.NHOGZDLN.js +0 -7
  704. package/dist/esm/chunks/chunk.NHOGZDLN.js.map +0 -7
  705. package/dist/esm/chunks/chunk.OFXSMOV6.js +0 -7
  706. package/dist/esm/chunks/chunk.OT4AIOMN.js +0 -7
  707. package/dist/esm/chunks/chunk.OY3TG55O.js +0 -7
  708. package/dist/esm/chunks/chunk.OY3TG55O.js.map +0 -7
  709. package/dist/esm/chunks/chunk.QCRO5NSG.js +0 -7
  710. package/dist/esm/chunks/chunk.QCRO5NSG.js.map +0 -7
  711. package/dist/esm/chunks/chunk.QKYCMDLB.js +0 -7
  712. package/dist/esm/chunks/chunk.R6VPRRTT.js +0 -7
  713. package/dist/esm/chunks/chunk.RFCIELJM.js +0 -7
  714. package/dist/esm/chunks/chunk.RFCIELJM.js.map +0 -7
  715. package/dist/esm/chunks/chunk.SIGRWU4V.js +0 -7
  716. package/dist/esm/chunks/chunk.SIGRWU4V.js.map +0 -7
  717. package/dist/esm/chunks/chunk.SKBOB2BD.js +0 -7
  718. package/dist/esm/chunks/chunk.SKBOB2BD.js.map +0 -7
  719. package/dist/esm/chunks/chunk.SOKORSUV.js +0 -7
  720. package/dist/esm/chunks/chunk.STSAE2XP.js +0 -7
  721. package/dist/esm/chunks/chunk.SWKKDBO6.js +0 -7
  722. package/dist/esm/chunks/chunk.SWKKDBO6.js.map +0 -7
  723. package/dist/esm/chunks/chunk.SYKZ74SL.js +0 -7
  724. package/dist/esm/chunks/chunk.SYKZ74SL.js.map +0 -7
  725. package/dist/esm/chunks/chunk.TPNZYEC7.js +0 -12
  726. package/dist/esm/chunks/chunk.TPNZYEC7.js.map +0 -7
  727. package/dist/esm/chunks/chunk.UKVC23E5.js +0 -7
  728. package/dist/esm/chunks/chunk.UKVC23E5.js.map +0 -7
  729. package/dist/esm/chunks/chunk.UOD3A7M4.js +0 -7
  730. package/dist/esm/chunks/chunk.UQQQSJVM.js +0 -7
  731. package/dist/esm/chunks/chunk.USO2XVOI.js +0 -7
  732. package/dist/esm/chunks/chunk.USO2XVOI.js.map +0 -7
  733. package/dist/esm/chunks/chunk.V3X77TCO.js +0 -7
  734. package/dist/esm/chunks/chunk.V3X77TCO.js.map +0 -7
  735. package/dist/esm/chunks/chunk.VBJ4WUVH.js +0 -7
  736. package/dist/esm/chunks/chunk.VBJ4WUVH.js.map +0 -7
  737. package/dist/esm/chunks/chunk.VOTT5COZ.js.map +0 -7
  738. package/dist/esm/chunks/chunk.VZ2XONDI.js +0 -7
  739. package/dist/esm/chunks/chunk.VZ2XONDI.js.map +0 -7
  740. package/dist/esm/chunks/chunk.WAMFFIMP.js +0 -7
  741. package/dist/esm/chunks/chunk.WAMFFIMP.js.map +0 -7
  742. package/dist/esm/chunks/chunk.WBCQTZPS.js +0 -7
  743. package/dist/esm/chunks/chunk.WBCQTZPS.js.map +0 -7
  744. package/dist/esm/chunks/chunk.WBI34ZVP.js +0 -7
  745. package/dist/esm/chunks/chunk.WF2MFLG4.js.map +0 -7
  746. package/dist/esm/chunks/chunk.WPVGFQNY.js +0 -7
  747. package/dist/esm/chunks/chunk.WPVGFQNY.js.map +0 -7
  748. package/dist/esm/chunks/chunk.XAZ6EDIZ.js +0 -7
  749. package/dist/esm/chunks/chunk.XCI7O2KJ.js +0 -7
  750. package/dist/esm/chunks/chunk.XCI7O2KJ.js.map +0 -7
  751. package/dist/esm/chunks/chunk.XNJROSDZ.js +0 -7
  752. package/dist/esm/chunks/chunk.XNJROSDZ.js.map +0 -7
  753. package/dist/esm/chunks/chunk.Z6GRWPPN.js +0 -7
  754. package/dist/esm/chunks/chunk.Z6GRWPPN.js.map +0 -7
  755. package/dist/esm/chunks/chunk.ZAREP2QH.js +0 -7
  756. package/dist/esm/chunks/chunk.ZAREP2QH.js.map +0 -7
  757. package/dist/esm/chunks/chunk.ZLNI2M3F.js +0 -7
  758. package/dist/esm/chunks/chunk.ZLNI2M3F.js.map +0 -7
  759. package/dist/esm/chunks/chunk.ZSZFWZAI.js +0 -7
  760. package/dist/esm/chunks/chunk.ZSZFWZAI.js.map +0 -7
  761. package/dist/esm/chunks/chunk.ZYKP23JP.js +0 -7
  762. package/dist/esm/field-next/index.js +0 -7
  763. package/dist/esm/floating-label/index.js +0 -7
  764. package/dist/esm/floating-label/index.js.map +0 -7
  765. package/dist/esm/popup/index.js +0 -7
  766. package/dist/esm/popup/index.js.map +0 -7
  767. package/dist/esm/ripple/index.js +0 -7
  768. package/dist/esm/ripple/index.js.map +0 -7
  769. package/dist/expansion-panel/forge-expansion-panel.css +0 -6
  770. package/dist/floating-label/forge-floating-label.css +0 -6
  771. package/dist/form-field/forge-form-field.css +0 -6
  772. package/dist/ripple/forge-ripple.css +0 -6
  773. package/dist/scaffold/forge-scaffold.css +0 -6
  774. package/esm/backdrop/backdrop-adapter.d.ts +0 -36
  775. package/esm/backdrop/backdrop-adapter.js +0 -40
  776. package/esm/backdrop/backdrop-foundation.d.ts +0 -38
  777. package/esm/backdrop/backdrop-foundation.js +0 -82
  778. package/esm/field-next/field-adapter.d.ts +0 -56
  779. package/esm/field-next/field-adapter.js +0 -132
  780. package/esm/field-next/field-constants.d.ts +0 -95
  781. package/esm/field-next/field-constants.js +0 -64
  782. package/esm/field-next/field-foundation.js +0 -221
  783. package/esm/field-next/field.d.ts +0 -205
  784. package/esm/field-next/field.js +0 -287
  785. package/esm/floating-label/floating-label-adapter.d.ts +0 -23
  786. package/esm/floating-label/floating-label-adapter.js +0 -32
  787. package/esm/floating-label/floating-label-constants.d.ts +0 -13
  788. package/esm/floating-label/floating-label-constants.js +0 -14
  789. package/esm/floating-label/floating-label-foundation.d.ts +0 -20
  790. package/esm/floating-label/floating-label-foundation.js +0 -74
  791. package/esm/floating-label/floating-label.d.ts +0 -31
  792. package/esm/floating-label/floating-label.js +0 -34
  793. package/esm/floating-label/index.d.ts +0 -9
  794. package/esm/floating-label/index.js +0 -9
  795. package/esm/label-value/label-value-adapter.d.ts +0 -24
  796. package/esm/label-value/label-value-adapter.js +0 -47
  797. package/esm/label-value/label-value-foundation.d.ts +0 -33
  798. package/esm/label-value/label-value-foundation.js +0 -80
  799. package/esm/popup/index.d.ts +0 -10
  800. package/esm/popup/index.js +0 -14
  801. package/esm/popup/popup-adapter.d.ts +0 -45
  802. package/esm/popup/popup-adapter.js +0 -152
  803. package/esm/popup/popup-constants.d.ts +0 -55
  804. package/esm/popup/popup-constants.js +0 -53
  805. package/esm/popup/popup-foundation.d.ts +0 -72
  806. package/esm/popup/popup-foundation.js +0 -258
  807. package/esm/popup/popup.d.ts +0 -59
  808. package/esm/popup/popup.js +0 -102
  809. package/esm/ripple/forge-ripple.d.ts +0 -17
  810. package/esm/ripple/forge-ripple.js +0 -22
  811. package/esm/ripple/index.d.ts +0 -11
  812. package/esm/ripple/index.js +0 -15
  813. package/esm/ripple/ripple-adapter.d.ts +0 -23
  814. package/esm/ripple/ripple-adapter.js +0 -47
  815. package/esm/ripple/ripple-constants.d.ts +0 -15
  816. package/esm/ripple/ripple-constants.js +0 -19
  817. package/esm/ripple/ripple-foundation.d.ts +0 -30
  818. package/esm/ripple/ripple-foundation.js +0 -48
  819. package/esm/ripple/ripple.d.ts +0 -36
  820. package/esm/ripple/ripple.js +0 -65
  821. package/styles/backdrop/_mixins.scss +0 -31
  822. package/styles/backdrop/_variables.scss +0 -12
  823. package/styles/card/_mixins.scss +0 -47
  824. package/styles/card/_variables.scss +0 -9
  825. package/styles/chip-field/_base.scss +0 -299
  826. package/styles/chip-field/_mixins.scss +0 -26
  827. package/styles/chip-field/_selector.scss +0 -228
  828. package/styles/chip-field/_variables.scss +0 -76
  829. package/styles/dialog/_mixins.scss +0 -199
  830. package/styles/dialog/_variables.scss +0 -22
  831. package/styles/dialog/forge-dialog.scss +0 -8
  832. package/styles/expansion-panel/_mixins.scss +0 -88
  833. package/styles/expansion-panel/forge-expansion-panel.scss +0 -16
  834. package/styles/field/_base.scss +0 -636
  835. package/styles/field/_selector.scss +0 -560
  836. package/styles/field/_utils.scss +0 -48
  837. package/styles/field/_variables.scss +0 -123
  838. package/styles/field-next/_core.scss +0 -212
  839. package/styles/floating-label/_mixins.scss +0 -291
  840. package/styles/floating-label/_variables.scss +0 -15
  841. package/styles/floating-label/forge-floating-label.scss +0 -8
  842. package/styles/form-field/_mixins.scss +0 -71
  843. package/styles/form-field/forge-form-field.scss +0 -8
  844. package/styles/icon/_mixins.scss +0 -37
  845. package/styles/icon/_variables.scss +0 -10
  846. package/styles/label-value/_mixins.scss +0 -205
  847. package/styles/label-value/_variables.scss +0 -12
  848. package/styles/popup/_mixins.scss +0 -86
  849. package/styles/popup/_variables.scss +0 -7
  850. package/styles/popup/forge-popup.scss +0 -8
  851. package/styles/popup/popup.scss +0 -20
  852. package/styles/ripple/forge-ripple.scss +0 -17
  853. package/styles/scaffold/_mixins.scss +0 -194
  854. package/styles/scaffold/forge-scaffold.scss +0 -43
  855. package/styles/select/select/_base.scss +0 -84
  856. package/styles/select/select/_mixins.scss +0 -25
  857. package/styles/select/select/_selector.scss +0 -90
  858. package/styles/select/select/_variables.scss +0 -16
  859. package/styles/stepper/step/_mixins.scss +0 -416
  860. package/styles/stepper/step/_variables.scss +0 -21
  861. package/styles/stepper/stepper/_mixins.scss +0 -113
  862. package/styles/toast/_mixins.scss +0 -242
  863. package/styles/toast/_variables.scss +0 -52
  864. /package/dist/esm/chunks/{chunk.YS5JZHJ6.js.map → chunk.24SQJBSQ.js.map} +0 -0
  865. /package/dist/esm/chunks/{chunk.IZRURH7C.js.map → chunk.3KAKJGUS.js.map} +0 -0
  866. /package/dist/esm/chunks/{chunk.KDUH2DUE.js.map → chunk.473WRJ5G.js.map} +0 -0
  867. /package/dist/esm/chunks/{chunk.USQEIRST.js.map → chunk.5MB6CTBA.js.map} +0 -0
  868. /package/dist/esm/chunks/{chunk.47U6GVGZ.js.map → chunk.5UOX22ML.js.map} +0 -0
  869. /package/dist/esm/chunks/{chunk.4NABD6XG.js.map → chunk.6VS3LYAF.js.map} +0 -0
  870. /package/dist/esm/chunks/{chunk.AOSBUJWW.js.map → chunk.A7BCLPP4.js.map} +0 -0
  871. /package/dist/esm/chunks/{chunk.7UBIT4NP.js.map → chunk.AG6IRMLZ.js.map} +0 -0
  872. /package/dist/esm/chunks/{chunk.A4UH52SA.js.map → chunk.AGLI4WR4.js.map} +0 -0
  873. /package/dist/esm/chunks/{chunk.WTUXAH7Z.js.map → chunk.AOVXNX7P.js.map} +0 -0
  874. /package/dist/esm/chunks/{chunk.AN2E2SSN.js.map → chunk.ASLHRT3N.js.map} +0 -0
  875. /package/dist/esm/chunks/{chunk.CBLUXYH2.js.map → chunk.BHE6Z5Y2.js.map} +0 -0
  876. /package/dist/esm/chunks/{chunk.2WRAXA3H.js.map → chunk.BQ52JYLA.js.map} +0 -0
  877. /package/dist/esm/chunks/{chunk.ROMRJIFR.js.map → chunk.CE35CVDV.js.map} +0 -0
  878. /package/dist/esm/chunks/{chunk.ZPXMKY72.js.map → chunk.CEGBMUSR.js.map} +0 -0
  879. /package/dist/esm/chunks/{chunk.GBGGUYTE.js.map → chunk.CFAI4K3E.js.map} +0 -0
  880. /package/dist/esm/chunks/{chunk.ZIGVO6FN.js.map → chunk.CGFSMACZ.js.map} +0 -0
  881. /package/dist/esm/chunks/{chunk.2537XOFQ.js.map → chunk.E2BE52ME.js.map} +0 -0
  882. /package/dist/esm/chunks/{chunk.UEYPCCFG.js.map → chunk.ENUKGA2U.js.map} +0 -0
  883. /package/dist/esm/chunks/{chunk.GA6AO6FJ.js.map → chunk.H5RW3A4M.js.map} +0 -0
  884. /package/dist/esm/chunks/{chunk.CSOKFDFQ.js.map → chunk.HSADKCGS.js.map} +0 -0
  885. /package/dist/esm/chunks/{chunk.WBI34ZVP.js.map → chunk.IEABOPNB.js.map} +0 -0
  886. /package/dist/esm/chunks/{chunk.22C7GQLX.js.map → chunk.IL4S57WO.js.map} +0 -0
  887. /package/dist/esm/chunks/{chunk.GTKYO6VB.js.map → chunk.JGURMVW7.js.map} +0 -0
  888. /package/dist/esm/chunks/{chunk.YXHMD73U.js.map → chunk.K6GJNDTY.js.map} +0 -0
  889. /package/dist/esm/chunks/{chunk.QUWEAFGI.js.map → chunk.KEOLH7G3.js.map} +0 -0
  890. /package/dist/esm/chunks/{chunk.BIQTNLIF.js.map → chunk.LNTTU2GL.js.map} +0 -0
  891. /package/dist/esm/chunks/{chunk.2AM2BKEO.js.map → chunk.MFQRXVKO.js.map} +0 -0
  892. /package/dist/esm/chunks/{chunk.JLSFTWPE.js.map → chunk.MTIPIEXA.js.map} +0 -0
  893. /package/dist/esm/chunks/{chunk.JSTCCUKZ.js.map → chunk.OEI35LFU.js.map} +0 -0
  894. /package/dist/esm/chunks/{chunk.QKYCMDLB.js.map → chunk.QCPV5DEG.js.map} +0 -0
  895. /package/dist/esm/chunks/{chunk.R3AWIPPK.js.map → chunk.QIZBZGYT.js.map} +0 -0
  896. /package/dist/esm/chunks/{chunk.2XPAYTK4.js.map → chunk.QKTK5XUE.js.map} +0 -0
  897. /package/dist/esm/chunks/{chunk.R66CYS27.js.map → chunk.QTY25OTN.js.map} +0 -0
  898. /package/dist/esm/chunks/{chunk.BSV27GU7.js.map → chunk.QVATEY5S.js.map} +0 -0
  899. /package/dist/esm/chunks/{chunk.SHBDQPPH.js.map → chunk.RONMNRSH.js.map} +0 -0
  900. /package/dist/esm/chunks/{chunk.FRTSXX33.js.map → chunk.RSYEG2RW.js.map} +0 -0
  901. /package/dist/esm/chunks/{chunk.O56VP4OZ.js.map → chunk.RXBLU4OJ.js.map} +0 -0
  902. /package/dist/esm/chunks/{chunk.FBDRM4YN.js.map → chunk.S7KEO2CH.js.map} +0 -0
  903. /package/dist/esm/chunks/{chunk.XU3YSZPA.js.map → chunk.SQ3AZAHF.js.map} +0 -0
  904. /package/dist/esm/chunks/{chunk.35MHQH7Z.js.map → chunk.SROEDYPL.js.map} +0 -0
  905. /package/dist/esm/chunks/{chunk.PXRGQHWR.js.map → chunk.TQWZDM6T.js.map} +0 -0
  906. /package/dist/esm/chunks/{chunk.3L77JY5H.js.map → chunk.W4HANHUO.js.map} +0 -0
  907. /package/dist/esm/chunks/{chunk.2W276VOR.js.map → chunk.WMJSYYXQ.js.map} +0 -0
  908. /package/dist/esm/chunks/{chunk.4AEQ7KVU.js.map → chunk.XTJGWT5F.js.map} +0 -0
  909. /package/dist/esm/chunks/{chunk.YNXWVL4B.js.map → chunk.YPNSK2CK.js.map} +0 -0
  910. /package/dist/esm/chunks/{chunk.MPUP6QAP.js.map → chunk.YWJVZVZX.js.map} +0 -0
  911. /package/dist/esm/chunks/{chunk.6XLTVIUD.js.map → chunk.ZA7JY3AY.js.map} +0 -0
  912. /package/dist/esm/{field-next → field}/base/index.js.map +0 -0
  913. /package/dist/esm/{field-next → field}/index.js.map +0 -0
  914. /package/esm/{field-next → field}/base/base-field-adapter.d.ts +0 -0
  915. /package/esm/{field-next → field}/base/base-field-adapter.js +0 -0
  916. /package/esm/{field-next → field}/base/base-field-constants.d.ts +0 -0
  917. /package/esm/{field-next → field}/base/base-field-constants.js +0 -0
  918. /package/esm/{field-next → field}/base/base-field-foundation.d.ts +0 -0
  919. /package/esm/{field-next → field}/base/base-field.d.ts +0 -0
  920. /package/esm/{field-next → field}/base/base-field.js +0 -0
  921. /package/esm/{field-next → field}/base/index.d.ts +0 -0
  922. /package/esm/{field-next → field}/base/index.js +0 -0
  923. /package/esm/{field-next → field}/index.d.ts +0 -0
  924. /package/esm/{field-next → field}/index.js +0 -0
  925. /package/styles/{field-next → field}/_core.slotted.scss +0 -0
  926. /package/styles/{field-next → field}/_core.state.scss +0 -0
  927. /package/styles/{field-next → field}/_token-utils.scss +0 -0
  928. /package/styles/{field-next → field}/index.scss +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/select/core/base-select-constants.ts", "../../src/select/core/select-utils.ts", "../../src/select/core/base-select-foundation.ts", "../../src/select/core/base-select.ts", "../../src/select/core/base-select-adapter.ts"],
4
- "sourcesContent": ["import { IListDropdownOption, IListDropdownOptionGroup } from '../../list-dropdown/list-dropdown-constants';\n\nexport type SelectOptionBuilder = (option: ISelectOption, parentElement: HTMLElement) => HTMLElement;\nexport type SelectSelectedTextBuilder = (selectedOptions: IListDropdownOption[]) => string;\nexport type SelectOptionListenerDestructor = () => void;\nexport type SelectBeforeValueChangeCallback<T> = (value: T | T[]) => boolean | Promise<boolean>;\n\nexport interface ISelectOption extends IListDropdownOption {}\nexport interface ISelectOptionGroup extends IListDropdownOptionGroup {}\n\nconst observedAttributes = {\n VALUE: 'value',\n MULTIPLE: 'multiple',\n OBSERVE_SCROLL: 'observe-scroll',\n OBSERVE_SCROLL_THRESHOLD: 'observe-scroll-threshold',\n POPUP_CLASSES: 'popup-classes',\n OPTION_LIMIT: 'option-limit',\n SYNC_POPUP_WIDTH: 'sync-popup-width',\n CONSTRAIN_POPUP_WIDTH: 'constrain-popup-width',\n WRAP_OPTION_TEXT: 'wrap-option-text'\n};\n\nconst attributes = {\n ...observedAttributes\n};\n\nconst events = {\n CHANGE: 'change'\n};\n\nexport const BASE_SELECT_CONSTANTS = {\n attributes,\n events\n};\n", "import { isDefined, isObject } from '@tylertech/forge-core';\nimport { ISelectOption, ISelectOptionGroup } from './base-select-constants';\n\nexport enum SelectOptionType { Option, Group }\n\n/**\n * Determines if the provided options are of the specified type.\n * @param options The options either grouped or individual.\n * @param type The type of option to detect.\n */\nexport function isSelectOptionType(options: ISelectOption[] | ISelectOptionGroup[], type: SelectOptionType): boolean {\n const isOptionGroups = options.some((o: ISelectOption | ISelectOptionGroup) => isOptionGroupObject(o));\n const isOptionTypes = options.some((o: ISelectOption | ISelectOptionGroup) => isOptionObject(o));\n return (isOptionGroups && type === SelectOptionType.Group) || (isOptionTypes && type === SelectOptionType.Option);\n}\n\nexport function isOptionGroupObject(o: ISelectOption | ISelectOptionGroup): o is ISelectOptionGroup {\n return isDefined(o) && isObject(o) && o.hasOwnProperty('options');\n}\n\nexport function isOptionObject(o: ISelectOption | ISelectOptionGroup): o is ISelectOption {\n return isDefined(o) && isObject(o) && o.hasOwnProperty('label') && o.hasOwnProperty('value');\n}\n", "import { isDefined, isDeepEqual, randomChars } from '@tylertech/forge-core';\nimport { OptionListenerDestructor } from '../select/select-adapter';\nimport { ISelectOption, ISelectOptionGroup, SelectSelectedTextBuilder, SelectOptionBuilder, BASE_SELECT_CONSTANTS, SelectBeforeValueChangeCallback } from './base-select-constants';\nimport { isSelectOptionType, SelectOptionType } from './select-utils';\nimport { IListDropdownConfig, ListDropdownHeaderBuilder, ListDropdownFooterBuilder } from '../../list-dropdown/list-dropdown-constants';\nimport { IBaseSelectAdapter } from './base-select-adapter';\nimport { IListDropdownAwareFoundation, ListDropdownAwareFoundation } from '../../list-dropdown/list-dropdown-aware-foundation';\n\nexport interface IBaseSelectFoundation extends IListDropdownAwareFoundation {\n value: any;\n selectedIndex: number | number[];\n options: ISelectOption[] | ISelectOptionGroup[];\n multiple: boolean;\n open: boolean;\n popupElement: HTMLElement | undefined;\n optionBuilder: SelectOptionBuilder;\n selectedTextBuilder: SelectSelectedTextBuilder;\n beforeValueChange: SelectBeforeValueChangeCallback<any>;\n appendOptions(options: ISelectOption[] | ISelectOptionGroup[]): void;\n selectAll(): void;\n deselectAll(): void;\n initialize(): void;\n initializeTarget(): void;\n disconnect(): void;\n}\n\nexport abstract class BaseSelectFoundation<T extends IBaseSelectAdapter> extends ListDropdownAwareFoundation implements IBaseSelectFoundation {\n protected _options: ISelectOption[] | ISelectOptionGroup[] = [];\n protected _value: any = [];\n protected _multiple = false;\n protected _open = false;\n protected _optionBuilder: SelectOptionBuilder;\n protected _selectedTextBuilder: SelectSelectedTextBuilder;\n protected _selectedValues: string[] = [];\n protected _selectedLabels: string[] = [];\n protected _selectedIndexes: number[] = [];\n protected _filterTimeout: number | undefined;\n protected _filterString = '';\n protected _identifier: string;\n protected _targetWidthCallback: () => number;\n protected _beforeValueChange: SelectBeforeValueChangeCallback<unknown>;\n private _focusListener: (evt: Event) => void;\n private _blurListener: (evt: FocusEvent) => void;\n private _clickListener: (evt: MouseEvent) => void;\n private _keydownListener: (evt: KeyboardEvent) => void;\n private _optionsChangedListener: (options: ISelectOption[] | ISelectOptionGroup[]) => void;\n private _optionListenerDestructor: OptionListenerDestructor;\n private _activeChangeListener: (id: string) => void;\n private _dropdownScrollEndListener: () => void;\n private _valueChanging: Promise<boolean> | undefined;\n private _dismissListener: () => void;\n\n constructor(protected _adapter: T) {\n super();\n this._focusListener = evt => this._onFocus(evt);\n this._blurListener = evt => this._onBlur(evt);\n this._clickListener = evt => this._onClick(evt);\n this._keydownListener = evt => this._onKeydown(evt);\n this._optionsChangedListener = options => this._onOptionsChanged(options);\n this._activeChangeListener = id => this._onActiveOptionChanged(id);\n this._dropdownScrollEndListener = () => this._onDropdownScrollEnd();\n this._dismissListener = () => this._onDismiss();\n this._identifier = randomChars();\n }\n\n protected abstract _onDropdownScrollEnd(): void;\n protected _onFocus(evt: Event): void {}\n\n public initialize(): void {\n if (this._optionListenerDestructor) {\n this._optionListenerDestructor();\n }\n this._optionListenerDestructor = this._adapter.setOptionsListener(this._optionsChangedListener);\n this._initializeValue();\n }\n\n public initializeTarget(): void {\n this._adapter.initializeAccessibility();\n this._adapter.setMultiple(this._multiple);\n this._adapter.addClickListener(this._clickListener);\n this._adapter.addTargetListener('blur', this._blurListener);\n this._adapter.addTargetListener('focus', this._focusListener);\n this._adapter.addTargetListener('keydown', this._keydownListener);\n }\n\n public disconnect(): void {\n this._adapter.removeClickListener(this._clickListener);\n this._adapter.removeTargetListener('blur', this._blurListener);\n this._adapter.removeTargetListener('focus', this._focusListener);\n this._adapter.removeTargetListener('keydown', this._keydownListener);\n\n if (this._open) {\n this._closeDropdown();\n }\n\n if (this._optionListenerDestructor) {\n this._optionListenerDestructor();\n }\n }\n\n public appendOptions(options: ISelectOption[] | ISelectOptionGroup[]): void {\n this._adapter.setOptions(options, false);\n if (this._open) {\n this._adapter.appendDropdownOptions(options);\n }\n }\n\n public selectAll(): void {\n if (this._multiple) {\n this.value = this._flatOptions.map(o => o.value);\n }\n }\n\n public deselectAll(): void {\n if (this._multiple) {\n this.value = [];\n }\n }\n\n protected get _flatOptions(): ISelectOption[] {\n if (isSelectOptionType(this._options, SelectOptionType.Group)) {\n return [].concat.apply([], (this._options as ISelectOptionGroup[]).map(g => g.options)) as ISelectOption[];\n }\n return this._options as ISelectOption[];\n }\n\n private get _nonDividerOptions(): ISelectOption[] {\n return this._flatOptions.filter(o => !o.divider);\n }\n\n protected _initializeValue(): void {\n const options = (this._options.length && this._options) || this._adapter.getOptions();\n if (isDefined(this._value) && options.length) {\n this._applyValue(this._value);\n }\n }\n\n protected _onClick(evt: MouseEvent): void {\n if (evt.button !== 0) {\n return;\n }\n if (!this._open) {\n this._openDropdown();\n } else {\n this._closeDropdown();\n }\n }\n\n protected _onBlur(evt: FocusEvent): void {\n // If the blur event was triggered by an element within the popup then ignore it\n if (this._adapter.isFocusWithinPopup(evt.relatedTarget as HTMLElement)) {\n return;\n }\n\n if (this._open) {\n this._closeDropdown();\n }\n }\n\n\n protected _openDropdown(): void {\n this._options = this._adapter.getOptions();\n\n if (!this._flatOptions.length) {\n return;\n }\n\n this._open = true;\n const config: IListDropdownConfig = {\n options: this._options,\n multiple: this._multiple,\n selectedValues: [...this._selectedValues],\n id: this._identifier,\n optionBuilder: this._optionBuilder,\n syncWidth: this._syncPopupWidth,\n constrainViewportWidth: this._constrainPopupWidth,\n wrapOptionText: this._wrapOptionText,\n observeScroll: this._observeScroll,\n observeScrollThreshold: this._observeScrollThreshold,\n scrollEndListener: this._dropdownScrollEndListener,\n activeChangeCallback: this._activeChangeListener,\n targetWidthCallback: this._targetWidthCallback,\n popupClasses: this._popupClasses,\n optionLimit: this._optionLimit,\n headerBuilder: this._popupHeaderBuilder,\n footerBuilder: this._popupFooterBuilder,\n closeCallback: () => this._closeDropdown(),\n selectCallback: (value: any) => {\n const flatOptions = this._flatOptions;\n const option = flatOptions.find(o => o.value === value);\n if (option) {\n const index = flatOptions.indexOf(option);\n this._onSelect(option, index, true);\n }\n }\n };\n this._adapter.open(config);\n this._adapter.setDismissListener(this._dismissListener);\n }\n\n /**\n * Closes the dropdown.\n */\n protected _closeDropdown(): void {\n this._open = false;\n this._adapter.close();\n }\n\n /**\n * Handles selecting an item in the dropdown.\n * @param {ISelectOption} option The selected option.\n * @param {number} optionIndex The index of the selected option.\n */\n protected async _onSelect(option: ISelectOption, optionIndex: number, closeDropdown = true): Promise<boolean> {\n return new Promise(async resolve => {\n if (this._valueChanging) {\n return Promise.resolve(false);\n }\n\n const value = option ? option.value : '';\n const label = option ? option.label : '';\n\n // Store the current selections in case we need to rollback (if the event was cancelled)\n const prevValues = [...this._value];\n const prevSelectedValues = [...this._selectedValues];\n const prevSelectedLabels = [...this._selectedLabels];\n const prevSelectedIndexes = [...this._selectedIndexes];\n\n if (this._multiple) {\n if (this._selectedValues.includes(value)) {\n const index = this._selectedValues.indexOf(value);\n this._selectedValues.splice(index, 1);\n this._selectedLabels.splice(index, 1);\n this._selectedIndexes.splice(index, 1);\n } else {\n this._selectedValues.push(value);\n this._selectedLabels.push(label);\n this._selectedIndexes.push(optionIndex);\n }\n } else {\n if (isDefined(value)) {\n this._selectedValues[0] = value;\n this._selectedLabels[0] = label;\n this._selectedIndexes[0] = optionIndex;\n } else {\n this._selectedValues = [];\n this._selectedLabels = [];\n this._selectedIndexes = [];\n }\n }\n\n this._value = [...this._selectedValues];\n\n const rollbackValue = (): void => {\n this._selectedValues = [...prevSelectedValues];\n this._selectedLabels = [...prevSelectedLabels];\n this._selectedIndexes = [...prevSelectedIndexes];\n this._value = [...prevValues];\n };\n\n const applyValue = (): void => {\n // If we're in multiselect mode, we need to toggle the selected option\n if (this._multiple) {\n const isSelected = this._selectedIndexes.includes(optionIndex);\n this._adapter.toggleOptionMultiple(optionIndex, isSelected);\n }\n\n this._applySelection();\n };\n\n const data = this.multiple ? [...this._selectedValues] : this._selectedValues[0];\n\n // We close the dropdown immediately if in single selection mode\n if (this._open && closeDropdown && !this._multiple) {\n this._closeDropdown();\n }\n\n // First we check to see if there is an before change callback and execute that\n if (typeof this._beforeValueChange === 'function') {\n this._valueChanging = Promise.resolve(this._beforeValueChange.call(null, data));\n const shouldContinue = await this._valueChanging;\n this._valueChanging = undefined;\n if (!shouldContinue) {\n rollbackValue();\n this._tryUpdateDropdownPosition();\n return resolve(false);\n }\n }\n\n // Now we can emit the change event AFTER the before change callback has been executed and returned true\n const cancelled = !this._adapter.emitHostEvent(BASE_SELECT_CONSTANTS.events.CHANGE, data, true, true);\n if (!cancelled) {\n applyValue();\n } else {\n rollbackValue();\n }\n\n this._tryUpdateDropdownPosition();\n resolve(!cancelled);\n });\n }\n\n private _selectActiveOption(): void {\n const activeOptionIndex = this._adapter.getActiveOptionIndex();\n if (activeOptionIndex >= 0 && this._nonDividerOptions[activeOptionIndex]) {\n this._onSelect(this._nonDividerOptions[activeOptionIndex], activeOptionIndex);\n }\n }\n\n protected _tryUpdateDropdownPosition(): void {\n if (this._open) {\n this._adapter.queueDropdownPositionUpdate();\n }\n }\n\n protected _reset(): void {\n this._selectedValues = [];\n this._selectedLabels = [];\n this._selectedIndexes = [];\n }\n\n protected _applyValue(value: string | string[]): void {\n this._selectedValues = [];\n this._selectedLabels = [];\n\n this._options = this._adapter.getOptions();\n\n if (!Array.isArray(value)) {\n value = [value];\n }\n\n this._value = [];\n\n // Ensure that the values passed are actually existing options\n for (const val of value) {\n if (!this._value.includes(val)) {\n this._value.push(val);\n }\n const option = this._flatOptions.find(o => isDeepEqual(o.value, val));\n if (option) {\n this._selectedValues.push(option.value);\n this._selectedLabels.push(option.label);\n }\n }\n\n // Update the selected indexes based on the values that are now selected\n this._selectedIndexes = this._selectedValues.map(val => this._flatOptions.findIndex(o => o.value === val));\n\n // Update the selected options in the dropdown\n this._adapter.patchSelectedValues(this._selectedValues);\n }\n \n /**\n * Handles the user dismissing the dropdown.\n */\n protected _onDismiss(): void {\n this._closeDropdown();\n }\n\n /** Creates the selected text value from the selected label values. */\n protected _getSelectedText(): string {\n if (typeof this._selectedTextBuilder === 'function') {\n const selectedOptions = this._flatOptions.filter(o => this._selectedValues.includes(o.value));\n return this._selectedTextBuilder(selectedOptions);\n }\n\n if (this._multiple) {\n if (this._selectedLabels.length) {\n if (this._selectedLabels.length === 1) {\n return this._selectedLabels[0];\n } else {\n return `${this._selectedLabels.length} options selected`;\n }\n } else {\n return '';\n }\n }\n \n return this._selectedLabels\n .filter(v => v && v.length)\n .join(' ')\n .trim();\n }\n\n private _onKeydown(evt: KeyboardEvent): void {\n const isEscapeKey = evt.key === 'Escape' || evt.keyCode === 27;\n const isEnter = evt.key === 'Enter' || evt.keyCode === 13;\n const isSpace = evt.key === 'Space' || evt.keyCode === 32;\n const isArrowDown = evt.key === 'ArrowDown' || evt.keyCode === 40;\n const isArrowUp = evt.key === 'ArrowUp' || evt.keyCode === 38;\n const isFilterableCharacter = evt.keyCode >= 48 && evt.keyCode <= 90;\n const isHomeKey = evt.key === 'Home' || evt.keyCode === 36;\n const isEndKey = evt.key === 'End' || evt.keyCode === 35;\n const isTabKey = evt.key === 'Tab';\n\n // We automatically select the active option if the dropdown is open and in single selection mode\n if (isTabKey && this._open && !this._multiple) {\n this._selectActiveOption();\n return;\n }\n\n // If an active filter was started, clear it now\n if (!isFilterableCharacter && this._filterTimeout) {\n window.clearTimeout(this._filterTimeout);\n this._filterString = '';\n this._filterTimeout = undefined;\n }\n\n if (isEscapeKey) {\n evt.preventDefault();\n evt.stopPropagation();\n if (this._open) {\n this._closeDropdown();\n return;\n }\n }\n\n if (isSpace) {\n evt.preventDefault();\n\n if (!this._open) {\n this._openDropdown();\n } else {\n this._closeDropdown();\n }\n } else if (isEnter) {\n if (this._open) {\n evt.stopPropagation();\n evt.preventDefault();\n this._options = this._adapter.getOptions();\n this._selectActiveOption();\n }\n } else if (isArrowUp || isArrowDown) {\n evt.preventDefault();\n\n if (!this._open) {\n this._openDropdown();\n this._adapter.activateFirstOption();\n return;\n }\n\n if (this._flatOptions.length === 0) {\n return;\n }\n\n let optionIndex = 0;\n if (this._open) {\n optionIndex = this._adapter.getActiveOptionIndex();\n if (optionIndex === -1) {\n optionIndex = this._getFirstSelectedOptionIndex();\n }\n } else {\n optionIndex = this._getFirstSelectedOptionIndex();\n }\n\n if (isArrowUp) {\n optionIndex = this._getPreviousHighlightableOptionIndex(optionIndex, this._nonDividerOptions);\n } else {\n optionIndex = this._getNextHighlightableOptionIndex(optionIndex, this._nonDividerOptions);\n }\n\n this._adapter.highlightActiveOption(optionIndex);\n } else if (isHomeKey) {\n if (this._open) {\n evt.preventDefault();\n this._adapter.highlightActiveOption(this._nonDividerOptions.findIndex(o => !o.disabled));\n }\n } else if (isEndKey) {\n if (this._open) {\n evt.preventDefault();\n const options = this._nonDividerOptions;\n for (let i = options.length - 1; i >= 0; i--) {\n if (!options[i].disabled) {\n this._adapter.highlightActiveOption(i);\n break;\n }\n }\n }\n } else if (isFilterableCharacter) {\n this._filter(evt.key);\n }\n }\n\n private _getFirstSelectedOptionIndex(): number {\n return this._nonDividerOptions.findIndex(option => this._selectedValues.includes(option.value));\n }\n\n private _getPreviousHighlightableOptionIndex(startIndex: number, options: ISelectOption[]): number {\n let index = startIndex;\n if (index <= 0) {\n index = options.length - 1;\n } else {\n index--;\n }\n if (options[index].disabled) {\n return this._getPreviousHighlightableOptionIndex(index, options);\n }\n return index;\n }\n\n private _getNextHighlightableOptionIndex(startIndex: number, options: ISelectOption[]): number {\n let index = startIndex;\n if (index === options.length - 1) {\n index = 0;\n } else {\n index++;\n }\n if (options[index].disabled) {\n return this._getNextHighlightableOptionIndex(index, options);\n }\n return index;\n }\n\n private _filter(key: string): void {\n // This allows for typing numbers and/or characters while the select is focused to auto-select the closest match\n if (this._filterTimeout) {\n window.clearTimeout(this._filterTimeout);\n this._filterTimeout = undefined;\n }\n this._filterString += key;\n this._filterTimeout = window.setTimeout(() => {\n this._filterString = '';\n this._filterTimeout = undefined;\n }, 300);\n this._options = this._adapter.getOptions();\n // TODO: Enhance this to cycle through closest matches (see the native select)\n const matchedOption = this._flatOptions.find(({ disabled, label }) => {\n return !disabled && label.trim().toLowerCase().startsWith(this._filterString.trim().toLowerCase());\n });\n if (matchedOption) {\n const optionIndex = this._flatOptions.indexOf(matchedOption);\n if (this._open) {\n this._adapter.highlightActiveOption(optionIndex);\n } else if (!this._multiple) {\n this._onSelect(matchedOption, optionIndex, false);\n }\n }\n }\n\n private _onOptionsChanged(options: ISelectOption[] | ISelectOptionGroup[]): void {\n this._options = options;\n this._applyValue(this._value);\n }\n\n private _onActiveOptionChanged(id: string): void {\n this._adapter.updateActiveDescendant(id);\n }\n\n /** Gets/sets the value of the component. */\n public get value(): any {\n return this._multiple ? [...this._value] : this._value[0];\n }\n public set value(value: any) {\n let _value: string | string[];\n \n if (Array.isArray(value)) {\n _value = [ ...value ];\n } else {\n _value = value;\n }\n\n this._applyValue(_value);\n }\n\n /** Gets/sets the selected index(s). */\n public get selectedIndex(): number | number[] {\n return this._multiple ? [ ...this._selectedIndexes ] : this._selectedIndexes[0];\n }\n public set selectedIndex(indexes: number | number[]) {\n this._options = this._adapter.getOptions();\n\n let indicies: number [];\n if (Array.isArray(indexes)) {\n indicies = [ ...indexes ];\n } else {\n indicies = [indexes];\n }\n\n indicies.sort();\n\n if (this.multiple) {\n this.value = indicies\n .map(index => this._flatOptions[index])\n .filter(o => o)\n .map(o => o.value);\n } else {\n const option = this._flatOptions[indicies[indicies.length - 1]];\n if (!option) {\n return;\n }\n this.value = option.value;\n }\n }\n\n /** Gets/sets the available options. */\n public get options(): ISelectOption[] | ISelectOptionGroup[] {\n return this._adapter.getOptions();\n }\n public set options(value: ISelectOption[] | ISelectOptionGroup[]) {\n let _value: ISelectOption[] | ISelectOptionGroup[];\n if (isSelectOptionType(value, SelectOptionType.Group)) {\n _value = (value as ISelectOptionGroup[]).map(v => ({ ...v }));\n } else {\n _value = (value as ISelectOption[]).map(v => ({ ...v }));\n }\n\n this._options = _value;\n this._adapter.setOptions(_value); // Must set options before intializing value\n this._initializeValue();\n\n if (this._open) {\n this._adapter.setDropdownOptions(_value);\n }\n }\n\n /** Gets/sets the multiple select state. */\n public get multiple(): boolean {\n return this._multiple;\n }\n public set multiple(value: boolean) {\n if (this._multiple !== value) {\n this._multiple = value;\n this._reset();\n if (this._open) {\n this._closeDropdown();\n }\n this._adapter.setMultiple(this._multiple);\n }\n }\n\n /** Gets/sets the open state of the dropdown. */\n public get open(): boolean {\n return this._open;\n }\n public set open(value: boolean) {\n if (this._open !== value) {\n if (value) {\n this._openDropdown();\n } else {\n this._closeDropdown();\n }\n }\n }\n\n /** Gets/sets the builder callback to use when building options. */\n public get optionBuilder(): SelectOptionBuilder {\n return this._optionBuilder;\n }\n public set optionBuilder(value: SelectOptionBuilder) {\n this._optionBuilder = value;\n }\n\n /** Sets the selected text builder callback that will be executed when getting the selected text to display in the field. */\n public get selectedTextBuilder(): SelectSelectedTextBuilder {\n return this._selectedTextBuilder;\n }\n public set selectedTextBuilder(fn: SelectSelectedTextBuilder) {\n this._selectedTextBuilder = fn;\n }\n\n public get optionLimit(): number {\n return this._optionLimit;\n }\n public set optionLimit(value: number) {\n this._optionLimit = value;\n }\n \n public get popupClasses(): string | string[] {\n return this._popupClasses;\n }\n public set popupClasses(value: string | string[]) {\n this._popupClasses = value;\n }\n\n public get popupHeaderBuilder(): ListDropdownHeaderBuilder {\n return this._popupHeaderBuilder;\n }\n public set popupHeaderBuilder(value: ListDropdownHeaderBuilder) {\n this._popupHeaderBuilder = value;\n }\n\n public get popupFooterBuilder(): ListDropdownFooterBuilder {\n return this._popupFooterBuilder;\n }\n public set popupFooterBuilder(value: ListDropdownFooterBuilder) {\n this._popupFooterBuilder = value;\n }\n\n /** Gets the currently active popup element when the dropdown is open. */\n public get popupElement(): HTMLElement | undefined {\n return this._adapter.popupElement;\n }\n\n /** Sets the callback to be executed when the user selects a value. */\n public get beforeValueChange(): SelectBeforeValueChangeCallback<any> {\n return this._beforeValueChange;\n }\n public set beforeValueChange(value: SelectBeforeValueChangeCallback<any>) {\n this._beforeValueChange = value;\n }\n}\n", "import { coerceBoolean, FoundationProperty } from '@tylertech/forge-core';\n\nimport {\n SelectOptionBuilder,\n SelectSelectedTextBuilder,\n ISelectOption,\n ISelectOptionGroup,\n SelectBeforeValueChangeCallback,\n BASE_SELECT_CONSTANTS\n} from './base-select-constants';\nimport { IBaseSelectFoundation } from './base-select-foundation';\nimport { IListDropdownAware, ListDropdownAware } from '../../list-dropdown/list-dropdown-aware';\nimport { IPopupComponent } from '../../popup';\n\n\nexport interface IBaseSelectComponent extends IListDropdownAware {\n value: any;\n selectedIndex: number | number[];\n options: ISelectOption[] | ISelectOptionGroup[];\n multiple: boolean;\n open: boolean;\n optionBuilder: SelectOptionBuilder;\n selectedTextBuilder: SelectSelectedTextBuilder;\n popupElement: IPopupComponent | undefined;\n beforeValueChange: SelectBeforeValueChangeCallback<any>;\n appendOptions(options: ISelectOption[] | ISelectOption[]): void;\n selectAll(): void;\n deselectAll(): void;\n}\n\nexport abstract class BaseSelectComponent<T extends IBaseSelectFoundation> extends ListDropdownAware implements IBaseSelectComponent {\n protected _foundation: T;\n\n constructor() {\n super();\n }\n\n /** Gets/sets the value. */\n @FoundationProperty()\n public declare value: any;\n \n /** Gets/sets the selected index. */\n @FoundationProperty()\n public declare selectedIndex: number | number[];\n \n /** Gets/sets the available options. */\n @FoundationProperty()\n public declare options: ISelectOption[] | ISelectOptionGroup[];\n\n /** Gets/sets the multiple select state. */\n @FoundationProperty()\n public declare multiple: boolean;\n \n /** Gets the open state of the dropdown. */\n @FoundationProperty()\n public declare open: boolean;\n \n /** Sets the option builder callback that will be executed when building the option list in the dropdown. */\n @FoundationProperty()\n public declare optionBuilder: SelectOptionBuilder;\n \n /** Sets the selected text builder callback that will be executed when getting the selected text to display in the field. */\n @FoundationProperty()\n public declare selectedTextBuilder: SelectSelectedTextBuilder;\n\n /** Sets the callback to be executed when the user selects a value. */\n @FoundationProperty()\n public declare beforeValueChange: SelectBeforeValueChangeCallback<any>;\n\n /**\n * Gets the popup element (when the dropdown is open).\n * @readonly\n */\n @FoundationProperty({ set: false })\n public declare popupElement: IPopupComponent | undefined;\n \n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n super.attributeChangedCallback(name, oldValue, newValue);\n switch (name) {\n case BASE_SELECT_CONSTANTS.attributes.MULTIPLE:\n this.multiple = coerceBoolean(newValue);\n break;\n case BASE_SELECT_CONSTANTS.attributes.VALUE:\n this.value = newValue;\n break;\n }\n }\n\n public appendOptions(options: ISelectOption[] | ISelectOptionGroup[]): void {\n this._foundation.appendOptions(options);\n }\n\n public selectAll(): void {\n this._foundation.selectAll();\n }\n \n public deselectAll(): void {\n this._foundation.deselectAll();\n }\n\n public connectedCallback(): void {\n this._foundation.initialize();\n }\n\n public disconnectedCallback(): void {\n this._foundation.disconnect();\n }\n}\n", "import { isDefined, isFunction, removeElement } from '@tylertech/forge-core';\nimport { BaseAdapter, IBaseAdapter } from '../../core/base/base-adapter';\nimport { IBaseSelectComponent } from './base-select';\nimport { ListDropdown, IListDropdown } from '../../list-dropdown';\nimport { IListDropdownConfig, ListDropdownIconType } from '../../list-dropdown/list-dropdown-constants';\nimport { IOptionComponent, OPTION_CONSTANTS } from '../option';\nimport { IOptionGroupComponent, OPTION_GROUP_CONSTANTS } from '../option-group';\nimport { ISelectOption, ISelectOptionGroup, SelectOptionListenerDestructor } from './base-select-constants';\nimport { isOptionGroupObject } from './select-utils';\nimport { IPopupComponent, POPUP_CONSTANTS } from '../../popup';\n\nexport interface IBaseSelectAdapter extends IBaseAdapter {\n initializeAccessibility(): void;\n addClickListener(listener: (evt: Event) => void): void;\n removeClickListener(listener: (evt: Event) => void): void;\n addTargetListener(type: string, listener: (evt: Event) => void): void;\n removeTargetListener(type: string, listener: (evt: Event) => void): void;\n getOptions(): ISelectOption[] | ISelectOptionGroup[];\n setOptions(options: ISelectOption[] | ISelectOptionGroup[], clear?: boolean): void;\n open(config: IListDropdownConfig): void;\n close(): void;\n setDismissListener(listener: () => void): void;\n scrollSelectedOptionIntoView(): void;\n activateSelectedOption(): void;\n activateFirstOption(): void;\n getActiveOptionIndex(): number;\n highlightActiveOption(index: number): void;\n toggleOptionMultiple(index: number, isSelected: boolean): void;\n patchSelectedValues(selectedValues: string[]): void;\n updateActiveDescendant(id: string): void;\n setOptionsListener(listener: (options: ISelectOption[] | ISelectOptionGroup[]) => void): SelectOptionListenerDestructor;\n setDropdownOptions(options: ISelectOption[] | ISelectOptionGroup[]): void;\n appendDropdownOptions(options: ISelectOption[] | ISelectOptionGroup[]): void;\n setMultiple(multiple: boolean): void;\n isFocusWithinPopup(target: HTMLElement): boolean;\n queueDropdownPositionUpdate(): void;\n popupElement: HTMLElement | undefined;\n}\n\nexport abstract class BaseSelectAdapter extends BaseAdapter<IBaseSelectComponent> implements IBaseSelectAdapter {\n private _listDropdown?: IListDropdown;\n protected _targetElement: HTMLElement;\n\n constructor(component: IBaseSelectComponent) {\n super(component);\n }\n\n public abstract initializeAccessibility(): void;\n public abstract updateActiveDescendant(id: string): void;\n public abstract addClickListener(listener: (evt: Event) => void): void;\n public abstract removeClickListener(listener: (evt: Event) => void): void;\n public abstract addTargetListener(type: string, listener: (evt: Event) => void): void;\n public abstract removeTargetListener(type: string, listener: (evt: Event) => void): void;\n public abstract setMultiple(multiple: boolean): void;\n\n public get popupElement(): HTMLElement | undefined {\n return this._listDropdown?.dropdownElement;\n }\n\n public getOptions(): ISelectOption[] | ISelectOptionGroup[] {\n const optionGroupElements = Array.from(this._component.querySelectorAll(OPTION_GROUP_CONSTANTS.elementName)) as IOptionGroupComponent[];\n if (optionGroupElements.length) {\n return optionGroupElements.map(optionGroupElement => {\n const optionElements = Array.from(optionGroupElement.querySelectorAll(OPTION_CONSTANTS.elementName)) as IOptionComponent[];\n const options = this._createOptionsFromElements(optionElements);\n return {\n text: optionGroupElement.label,\n builder: optionGroupElement.builder,\n value: optionGroupElement.value,\n options\n } as ISelectOptionGroup;\n });\n } else {\n const optionElements = Array.from(this._component.querySelectorAll(OPTION_CONSTANTS.elementName)) as IOptionComponent[];\n return this._createOptionsFromElements(optionElements);\n }\n }\n\n private _createOptionsFromElements(optionElements: IOptionComponent[]): ISelectOption[] {\n return optionElements.map(o => {\n let optionClass = o.hasAttribute(OPTION_CONSTANTS.attributes.OPTION_CLASS) ? o.getAttribute(OPTION_CONSTANTS.attributes.OPTION_CLASS) as string : o.optionClass;\n if (typeof optionClass === 'string') {\n optionClass = optionClass.split(' ');\n }\n\n return {\n // eslint-disable-next-line @typescript-eslint/no-extra-parens\n label: o.hasAttribute(OPTION_CONSTANTS.attributes.LABEL) ? o.getAttribute(OPTION_CONSTANTS.attributes.LABEL) as string : (isDefined(o.label) ? o.label : o.innerText),\n secondaryLabel: o.hasAttribute(OPTION_CONSTANTS.attributes.SECONDARY_LABEL) ? o.getAttribute(OPTION_CONSTANTS.attributes.SECONDARY_LABEL) as string : isDefined(o.secondaryLabel) ? o.secondaryLabel : undefined,\n value: o.hasAttribute(OPTION_CONSTANTS.attributes.VALUE) ? o.getAttribute(OPTION_CONSTANTS.attributes.VALUE) : o.value,\n disabled: o.hasAttribute(OPTION_CONSTANTS.attributes.DISABLED),\n divider: o.hasAttribute(OPTION_CONSTANTS.attributes.DIVIDER),\n optionClass,\n leadingIcon: o.hasAttribute(OPTION_CONSTANTS.attributes.LEADING_ICON) ? o.getAttribute(OPTION_CONSTANTS.attributes.LEADING_ICON) as string : o.leadingIcon,\n leadingIconClass: o.hasAttribute(OPTION_CONSTANTS.attributes.LEADING_ICON_CLASS) ? o.getAttribute(OPTION_CONSTANTS.attributes.LEADING_ICON_CLASS) as string : o.leadingIconClass,\n leadingIconType: o.hasAttribute(OPTION_CONSTANTS.attributes.LEADING_ICON_TYPE) ? o.getAttribute(OPTION_CONSTANTS.attributes.LEADING_ICON_TYPE) as ListDropdownIconType : o.leadingIconType,\n leadingIconComponentProps: o.leadingIconComponentProps,\n trailingIcon: o.hasAttribute(OPTION_CONSTANTS.attributes.TRAILING_ICON) ? o.getAttribute(OPTION_CONSTANTS.attributes.TRAILING_ICON) as string : o.trailingIcon,\n trailingIconClass: o.hasAttribute(OPTION_CONSTANTS.attributes.TRAILING_ICON_CLASS) ? o.getAttribute(OPTION_CONSTANTS.attributes.TRAILING_ICON_CLASS) as string : o.trailingIconClass,\n trailingIconType: o.hasAttribute(OPTION_CONSTANTS.attributes.TRAILING_ICON_TYPE) ? o.getAttribute(OPTION_CONSTANTS.attributes.TRAILING_ICON_TYPE) as ListDropdownIconType : o.trailingIconType,\n trailingIconComponentProps: o.trailingIconComponentProps,\n leadingBuilder: o.leadingBuilder,\n trailingBuilder: o.trailingBuilder\n };\n });\n }\n\n public open(config: IListDropdownConfig): void {\n this._listDropdown = new ListDropdown(this._targetElement, config);\n this._listDropdown.open();\n }\n\n public close(): void {\n if (this._listDropdown) {\n this._listDropdown.close();\n this._listDropdown.destroy();\n this._listDropdown = undefined;\n }\n }\n\n public setDismissListener(listener: () => void): void {\n if (!this._listDropdown || !this._listDropdown.dropdownElement) {\n return;\n }\n const dropdownElement = this._listDropdown.dropdownElement as IPopupComponent;\n if (dropdownElement.targetElement) {\n dropdownElement.targetElement.addEventListener(POPUP_CONSTANTS.events.BLUR, listener);\n }\n }\n\n public toggleOptionMultiple(index: number, isSelected: boolean): void {\n this._listDropdown?.toggleOptionMultiple(index, isSelected);\n }\n\n public getActiveOptionIndex(): number {\n return this._listDropdown?.getActiveOptionIndex() ?? -1;\n }\n\n public activateSelectedOption(): void {\n this._listDropdown?.activateSelectedOption();\n }\n\n public activateFirstOption(): void {\n this._listDropdown?.activateFirstOption();\n }\n\n public highlightActiveOption(index: number): void {\n this._listDropdown?.activateOption(index);\n }\n\n public patchSelectedValues(selectedValues: string[]): void {\n this._listDropdown?.setSelectedValues(selectedValues);\n }\n\n public setOptionsListener(listener: (options: ISelectOption[] | ISelectOptionGroup[]) => void): SelectOptionListenerDestructor {\n // Watch for option value property changes\n const optionValueChangeListener: EventListener = evt => {\n evt.stopPropagation();\n listener(this.getOptions());\n };\n this._component.addEventListener(OPTION_CONSTANTS.events.VALUE_CHANGE, optionValueChangeListener);\n\n // Watch for DOM changes\n const observer = new MutationObserver(() => listener(this.getOptions()));\n observer.observe(this._component, { childList: true, subtree: true });\n\n return () => {\n this._component.removeEventListener(OPTION_CONSTANTS.events.VALUE_CHANGE, optionValueChangeListener);\n observer.disconnect();\n };\n }\n\n public setOptions(options: ISelectOption[] | ISelectOptionGroup[], clear = true): void {\n if (clear) {\n this._clearOptions();\n }\n\n for (const opt of options) {\n if (isOptionGroupObject(opt)) {\n const optionGroupElement = this._createOptionGroupElement(opt);\n for (const option of opt.options) {\n const optionElement = this._createOptionElement(option);\n optionGroupElement.appendChild(optionElement);\n }\n this._component.appendChild(optionGroupElement);\n } else {\n const optionElement = this._createOptionElement(opt);\n this._component.appendChild(optionElement);\n }\n }\n }\n\n public appendDropdownOptions(options: ISelectOption[] | ISelectOptionGroup[]): void {\n this._listDropdown?.appendOptions(options);\n }\n\n public setDropdownOptions(options: ISelectOption[] | ISelectOptionGroup[]): void {\n this._listDropdown?.setOptions(options);\n }\n\n public scrollSelectedOptionIntoView(): void {\n this._listDropdown?.scrollSelectedOptionIntoView();\n }\n\n public isFocusWithinPopup(target: HTMLElement): boolean {\n if (!this._listDropdown || !this._listDropdown.dropdownElement) {\n return false;\n }\n return this._listDropdown.dropdownElement.contains(target);\n }\n\n public queueDropdownPositionUpdate(): void {\n if (!this.popupElement) {\n return;\n }\n // We need to wait for the next animation frame to ensure that the layout has been updated\n window.requestAnimationFrame(() => {\n const dropdownEl = this.popupElement as IPopupComponent | undefined;\n dropdownEl?.position();\n });\n }\n\n private _clearOptions(): void {\n // First we remove all option group elements\n const existingOptionGroupElements = Array.from(this._component.querySelectorAll(OPTION_GROUP_CONSTANTS.elementName));\n existingOptionGroupElements.forEach((optGroup: IOptionGroupComponent) => removeElement(optGroup));\n\n // Then find all top-level option elements that aren't inside of a group, and ensure that those are removed as well\n const existingOptionElements = Array.from(this._component.querySelectorAll(OPTION_CONSTANTS.elementName));\n existingOptionElements.forEach((o: HTMLElement) => removeElement(o));\n }\n\n private _createOptionGroupElement(group: ISelectOptionGroup): HTMLElement {\n const optionGroupElement = document.createElement('forge-option-group');\n Object.assign(optionGroupElement, group);\n return optionGroupElement;\n }\n\n private _createOptionElement(option: ISelectOption): HTMLElement {\n const optionElement = document.createElement('forge-option');\n Object.assign(optionElement, option);\n optionElement.textContent = option.label;\n return optionElement;\n }\n}\n"],
5
- "mappings": "0bAUA,IAAMA,EAAqB,CACzB,MAAO,QACP,SAAU,WACV,eAAgB,iBAChB,yBAA0B,2BAC1B,cAAe,gBACf,aAAc,eACd,iBAAkB,mBAClB,sBAAuB,wBACvB,iBAAkB,kBACpB,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAS,CACb,OAAQ,QACV,EAEaC,EAAwB,CACnC,WAAAH,EACA,OAAAE,CACF,EC9BO,IAAKE,OAAmBA,IAAA,mBAAQA,IAAA,iBAA3BA,OAAA,IAOL,SAASC,EAAmBC,EAAiDC,EAAiC,CACnH,IAAMC,EAAiBF,EAAQ,KAAMG,GAA0CC,EAAoBD,CAAC,CAAC,EAC/FE,EAAgBL,EAAQ,KAAMG,GAA0CG,EAAeH,CAAC,CAAC,EAC/F,OAAQD,GAAkBD,IAAS,GAA4BI,GAAiBJ,IAAS,CAC3F,CAEO,SAASG,EAAoBD,EAAgE,CAClG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CAAC,CACrE,CAEQ,0BAA0BwB,EAAwC,CACxE,IAAM5B,EAAqB,SAAS,cAAc,oBAAoB,EACtE,cAAO,OAAOA,EAAoB4B,CAAK,EAChC5B,CACT,CAEQ,qBAAqBsB,EAAoC,CAC/D,IAAMC,EAAgB,SAAS,cAAc,cAAc,EAC3D,cAAO,OAAOA,EAAeD,CAAM,EACnCC,EAAc,YAAcD,EAAO,MAC5BC,CACT,CACF",
6
- "names": ["observedAttributes", "attributes", "__spreadValues", "events", "BASE_SELECT_CONSTANTS", "SelectOptionType", "isSelectOptionType", "options", "type", "isOptionGroups", "o", "isOptionGroupObject", "isOptionTypes", "isOptionObject", "isDefined", "isObject", "BaseSelectFoundation", "ListDropdownAwareFoundation", "_adapter", "evt", "options", "id", "randomChars", "o", "isSelectOptionType", "g", "isDefined", "config", "value", "flatOptions", "option", "index", "optionIndex", "closeDropdown", "resolve", "label", "prevValues", "prevSelectedValues", "prevSelectedLabels", "prevSelectedIndexes", "rollbackValue", "applyValue", "isSelected", "data", "shouldContinue", "cancelled", "BASE_SELECT_CONSTANTS", "activeOptionIndex", "val", "isDeepEqual", "selectedOptions", "v", "isEscapeKey", "isEnter", "isSpace", "isArrowDown", "isArrowUp", "isFilterableCharacter", "isHomeKey", "isEndKey", "i", "startIndex", "key", "matchedOption", "disabled", "_value", "indexes", "indicies", "__spreadValues", "fn", "BaseSelectComponent", "ListDropdownAware", "name", "oldValue", "newValue", "BASE_SELECT_CONSTANTS", "coerceBoolean", "options", "__decorateClass", "FoundationProperty", "BaseSelectAdapter", "BaseAdapter", "component", "_a", "optionGroupElements", "OPTION_GROUP_CONSTANTS", "optionGroupElement", "optionElements", "OPTION_CONSTANTS", "options", "o", "optionClass", "isDefined", "config", "ListDropdown", "listener", "dropdownElement", "POPUP_CONSTANTS", "index", "isSelected", "_b", "selectedValues", "optionValueChangeListener", "evt", "observer", "clear", "opt", "isOptionGroupObject", "option", "optionElement", "target", "dropdownEl", "optGroup", "removeElement", "group"]
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{i as a}from"./chunk.J2M2MXP2.js";function u(t){return t.ownerDocument||document}function p(t){return t&&t.nodeType===1}function L(t,e){if(!p(t))throw new Error("DOMUtils - elementParents: invalid element argument");let o=[];for(;t.parentElement&&(o.push(t.parentElement),!(t.parentElement===e||t.parentElement===u(t).body));)t.parentElement&&t.parentElement.parentNode&&t.parentElement.parentNode.nodeType===11?t=t.parentElement.parentNode.host:t=t.parentElement;return o}function g(t,e){if(!p(t))throw new Error("DOMUtils - offset: invalid element argument");let o=t.getBoundingClientRect(),n=u(t).defaultView,r=e||n.document.documentElement,i={width:o.width,height:o.width,top:0,left:0,bottom:0,right:0};if(!e||r===n.document.documentElement||r===n.document.body)i.top=n.scrollY+o.top,i.bottom=r.clientHeight-n.scrollY-o.bottom,i.left=n.scrollX+o.left,i.right=r.clientWidth-n.scrollX-o.right;else{if(!p(e))throw new Error("DOMUtils - offset: invalid parentElement argument");let s=e.getBoundingClientRect();i.top=o.top-s.top,i.bottom=s.bottom-o.bottom,i.left=o.left-s.left,i.right=s.right-o.right}return{width:Math.round(o.width),height:Math.round(o.height),top:Math.round(i.top),bottom:Math.round(i.bottom),left:Math.round(i.left),right:Math.round(i.right)}}function M(t,e,o){let n=i=>{let s=()=>{i.stopPropagation(),i.cancelable&&i.preventDefault();let l=i.type==="touchstart"?i.target:u(t).activeElement;t.contains(l)||e(l)};o?window.requestAnimationFrame(()=>s()):s()},r=u(t);return r.addEventListener("blur",n,!0),r.addEventListener("touchstart",n,!0),()=>{r.removeEventListener("blur",n,!0),r.removeEventListener("touchstart",n,!0)}}function N(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function P(t,e){return e.parentNode.replaceChild(t,e)}function b(t,e){a(t)?t.forEach(o=>e.classList.add(o)):e.classList.add(t)}function v(t,e){a(t)?t.forEach(o=>e.classList.remove(o)):e.classList.remove(t)}function x(){let t=document.createElement("fakeelement"),e={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(let o in e)if(t.style[o]!==void 0)return e[o]}async function W(t,e,o=!0){return t.classList.add(e),new Promise(n=>{let r=x(),i=()=>{o&&t.classList.remove(e),t.removeEventListener(r,i),n()};t.addEventListener(r,i)})}function E(t){t.removeNode?t.removeNode(!0):t.remove?t.remove():t.parentNode.removeChild(t)}function O(t){if(typeof t=="string"){if(t[t.length-1]==="%")return t;if(t.slice(-2)==="px")return t;if(Number(t)>=0)return`${t}px`}else if(typeof t=="number"&&t>=0)return`${t}px`}function R(t){let e=document.createElement("div");e.style.position="absolute",e.style.top="-99999px",e.style.left="-99999px",e.style.visibility="hidden",e.appendChild(t.cloneNode(!0)),document.body.appendChild(e);let o={width:e.scrollWidth,height:e.scrollHeight};return E(e),e=void 0,o}function H(t){return t.children.length?Promise.resolve():new Promise(e=>{let o=new MutationObserver(n=>{t.children.length&&(o.disconnect(),e())});o.observe(t,{childList:!0})})}function T(t,e){let o=f(t,e);return o.length?Promise.resolve(o[0]):new Promise(n=>{let r=new MutationObserver(i=>{if(i.reduce((l,c)=>l+c.addedNodes.length,0)>0){let l=f(t,e);l.length&&(r.disconnect(),n(l[0]))}});r.observe(t,{childList:!0,subtree:!0})})}function D(t){return new Promise(e=>{let o=t.querySelector("input");o&&e(o);let n=new MutationObserver(r=>{if(r.reduce((s,l)=>s+l.addedNodes.length,0)>0){let s=t.querySelector("input");s&&(n.disconnect(),e(s))}});n.observe(t,{childList:!0,subtree:!0})})}function U(t,e){let o=t&&t.parentNode;for(;o;){if(e(o))return o;o=o.parentNode}return null}function V(t,e){let n=document.createElement("canvas").getContext("2d"),r=e?e.fontSize:16,i=e?e.fontFamily:"Roboto";return n.font=`${r}px ${i}`,n.measureText(t).width}function y(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;typeof e=="string"&&(e=e.replace(/\s+/,"").split(","));let o=Element.prototype.matches;return e.some(n=>o.call(t,n))}function f(t,e,o=!1){let n=[];if(!t)return n;if(typeof e=="string"&&(e=e.replace(/\s+/,"").split(",")),o&&y(t,e)&&n.indexOf(t)===-1&&n.push(t),t.tagName==="SLOT")t.assignedNodes().forEach(i=>n=n.concat(f(i,e,!0)));else{let r=t.shadowRoot?t.shadowRoot.firstElementChild:t.firstElementChild;for(;r;)n=n.concat(f(r,e,!0)),r=r.nextElementSibling}return n}function $(t=document){let e=t.activeElement;return!e||e===t.body?e:m(e)}function m(t){return t.shadowRoot&&t.shadowRoot.activeElement&&(t=m(t.shadowRoot.activeElement)),t}function B(t,e,o){e?b(o,t):v(o,t)}function F(t,e,o,n=""){e?t.setAttribute(o,n):t.removeAttribute(o)}function I(t,e,o,n){let r=t.getAttribute(e);(n===void 0||n===!0)&&(!r||!r.includes(o))?A(t,e,o):n||C(t,e,o)}function A(t,e,o){let n=t.getAttribute(e);!n||!n.length?t.setAttribute(e,o):t.setAttribute(e,`${n} ${o}`)}function C(t,e,o){if(!t.hasAttribute(e))return;let n=t.getAttribute(e);if(n){let r=n==null?void 0:n.replace(o,"");r=r.replace(/\s+/g," ").trim(),r.length?t.setAttribute(e,r):t.removeAttribute(e)}}function X(t,e,o="auto",n="nearest"){if(!t)return;if(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth){let i=g(e,t),s=i.top<=e.clientHeight,l=i.bottom<=e.clientHeight;if(s||l){let d=h(n,s,e.offsetTop,e.clientHeight,t.offsetTop,t.offsetHeight);t.scrollTo({top:d,behavior:o});return}let c=i.left<=e.clientWidth,w=i.right<=e.clientWidth;if(c||w){let d=h(n,c,e.offsetLeft,e.clientWidth,t.offsetLeft,t.offsetWidth);t.scrollTo({left:d,behavior:o})}}}function h(t,e,o,n,r,i){return t==="nearest"?e?o-r-n:o-i+n*2:o-r-i/2+n/2}function k(t){let e=document.createElement("template");return t=t.trim(),e.innerHTML=t,e.content.firstElementChild}function Y(t,e,o){let n=new MutationObserver(r=>{for(let i of r)i.attributeName&&e(i.attributeName,t.getAttribute(i.attributeName))});return n.observe(t,{attributes:!0,attributeFilter:o}),n}export{p as a,L as b,M as c,N as d,P as e,b as f,v as g,W as h,E as i,O as j,R as k,H as l,T as m,D as n,U as o,V as p,y as q,f as r,$ as s,B as t,F as u,I as v,A as w,X as x,k as y,Y as z};
7
- //# sourceMappingURL=chunk.DCCFF327.js.map
@@ -1,15 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{g as r,h as n,i,j as a,k as s}from"./chunk.UQQQSJVM.js";import{u as o}from"./chunk.DCCFF327.js";function f(u){class l extends u{get form(){return this[a].form}get labels(){return this[a].labels}get name(){var e;return(e=this.getAttribute("name"))!=null?e:""}set name(e){o(this,!!e,"name",e)}[n](){return this[r]()}formDisabledCallback(e){this.disabled=e}set[s](e){let t=e==="select"?document.createElement("select"):document.createElement("input");t.setAttribute("type",e),t.name="internal",this._inputElement=t}[i](e){if(this._inputElement)return this[a].validity.customError?this[a].validationMessage:(Object.entries(e).forEach(([t,b])=>this._inputElement[t]=b),this._inputElement.validationMessage)}}return l.formAssociated=!0,l}export{f as a};
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/labs/behaviors/form-associated.ts)
14
- */
15
- //# sourceMappingURL=chunk.EO3HELQ2.js.map
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{a as e}from"./chunk.GA6AO6FJ.js";import{a as I}from"./chunk.6XLTVIUD.js";import{b as l,h as S}from"./chunk.FOSKVNVV.js";import{a as k,b as x}from"./chunk.2WRAXA3H.js";import{k as P,m as g}from"./chunk.SB2LOK2R.js";import{a as w}from"./chunk.6GSVB5NB.js";import{a}from"./chunk.NVUMRW44.js";import{a as L,f as m,m as _}from"./chunk.UQQQSJVM.js";import{a as E,e as T,f as c,k as A}from"./chunk.BIQTNLIF.js";import{a as u,k as y,l as d}from"./chunk.J2M2MXP2.js";import{d as n}from"./chunk.M3QDAYD2.js";var p=class extends w{constructor(t){super(t);this._anchorElement=null;this._overlayElement=null;this._contentElement=c(this._component,e.selectors.CONTENT),this._arrowElement=c(this._component,e.selectors.ARROW)}get anchorElement(){return this._anchorElement}syncAria(){let t=this._component.type==="description"?"tooltip":null;if(this._component[_]({role:t}),this._component[_]({ariaHidden:"true"},{setAttribute:!this._component.hasAttribute("aria-hidden")}),this._anchorElement){if(this._component.type==="label"&&this._anchorElement.hasAttribute("aria-labelledby")||this._component.type==="description"&&this._anchorElement.hasAttribute("aria-describedby"))return;switch(!this._component.hasAttribute("id")&&this._component.type!=="presentation"&&(this._component.id=`forge-tooltip-${u()}`),this._component.type){case"description":this._anchorElement.setAttribute("aria-describedby",this._component.id);break;case"label":this._anchorElement.setAttribute("aria-labelledby",this._component.id);break}}}detachAria(){var t,o,i,s;this._component.type==="description"&&((t=this._anchorElement)==null?void 0:t.getAttribute("aria-describedby"))===this._component.id&&((o=this._anchorElement)==null||o.removeAttribute("aria-describedby")),this._component.type==="label"&&((i=this._anchorElement)==null?void 0:i.getAttribute("aria-labelledby"))===this._component.id&&((s=this._anchorElement)==null||s.removeAttribute("aria-labelledby"))}setAnchorElement(t){this._anchorElement=t}tryLocateAnchorElement(t){this._anchorElement=this._tryFindAnchorElement(t)}addAnchorListener(t,o,i){var s;(s=this._anchorElement)==null||s.addEventListener(t,o,i)}removeAnchorListener(t,o){var i;(i=this._anchorElement)==null||i.removeEventListener(t,o)}addLightDismissListener(t){var o;(o=this._overlayElement)==null||o.addEventListener(l.events.LIGHT_DISMISS,t)}removeLightDismissListener(t){var o;(o=this._overlayElement)==null||o.removeEventListener(l.events.LIGHT_DISMISS,t)}show(){var t;if(this._overlayElement||(this._overlayElement=document.createElement(l.elementName),this._overlayElement.setAttribute("part","root:overlay")),this._overlayElement.placement=this._component.placement,this._overlayElement.anchorElement=this._anchorElement,this._overlayElement.arrowElement=this._arrowElement,this._overlayElement.offset={mainAxis:this._component.offset},this._overlayElement.flip=this._component.flip,this._component.fallbackPlacements&&(this._overlayElement.fallbackPlacements=this._component.fallbackPlacements),this._component.boundaryElement)this._overlayElement.boundaryElement=this._component.boundaryElement;else if(this._component.boundary){let o=P(this._component,this._component.boundary);this._overlayElement.boundaryElement=o}else this._overlayElement.boundaryElement=null;(t=this._component.shadowRoot)==null||t.appendChild(this._overlayElement),this._overlayElement.appendChild(this._contentElement),this._overlayElement.open=!0}hide(){var t,o;this._overlayElement&&(this._overlayElement.open=!1),(t=this._component.shadowRoot)==null||t.appendChild(this._contentElement),(o=this._overlayElement)==null||o.remove()}_tryFindAnchorElement(t){var o,i;if(t){let s=this._component.getRootNode(),b=(o=s.getElementById(t))!=null?o:s.querySelector(t);if(b)return b}return(i=this._component.previousElementSibling)!=null?i:this._component.parentElement}};var H=I(),h=class extends H{constructor(t){super();this._adapter=t;this._open=!1;this._type=e.defaults.TYPE;this._delay=e.defaults.DELAY;this._placement=e.defaults.PLACEMENT;this._offset=e.defaults.OFFSET;this._flip=e.defaults.FLIP;this._boundary=null;this._boundaryElement=null;this._fallbackPlacements=null;this._triggerTypes=e.defaults.TRIGGER_TYPES;this._hoverStartListener=this._onHoverStart.bind(this);this._hoverEndListener=this._onHoverEnd.bind(this);this._focusListener=this._onFocus.bind(this);this._blurListener=this._onBlur.bind(this);this._scrollListener=this._onTryHide.bind(this);this._mouseDownListener=this._onTryHide.bind(this);this._dragListener=this._onTryHide.bind(this);this._lightDismissListener=this._onTryHide.bind(this)}initialize(){this._adapter.anchorElement||this._adapter.tryLocateAnchorElement(this._anchor),this._adapter.syncAria(),this._attachAnchorListeners(),this._open&&this._show()}destroy(){this._open&&this._hide(),this._adapter.detachAria(),this._detachAnchorListeners()}syncTooltipAria(){this._adapter.syncAria()}_attachAnchorListeners(){if(!this._adapter.anchorElement)return;let t=[...this._triggerTypes];m||(t.splice(t.indexOf("hover"),1),t.push("longpress"));let o={hover:()=>this._adapter.addAnchorListener("mouseenter",this._hoverStartListener),longpress:()=>this._startLongpressListener(this._adapter.anchorElement),focus:()=>this._adapter.addAnchorListener("focusin",this._focusListener)};t.forEach(i=>o[i]())}_detachAnchorListeners(){if(!this._adapter.anchorElement)return;let t=[...this._triggerTypes];m||t.push("longpress");let o={hover:()=>{this._adapter.removeAnchorListener("mouseenter",this._hoverStartListener),this._adapter.removeAnchorListener("mousedown",this._hoverEndListener),this._adapter.removeAnchorListener("mouseleave",this._hoverEndListener)},longpress:()=>this._stopLongpressListener(this._adapter.anchorElement),focus:()=>{this._adapter.removeAnchorListener("focusin",this._focusListener),this._adapter.removeAnchorListener("focusout",this._blurListener)}};t.forEach(i=>o[i]())}_show(){this._open=!0,this._adapter.show(),this._attachDismissListeners(),this._adapter.toggleHostAttribute(e.attributes.OPEN,this._open)}_hide(){window.clearTimeout(this._hoverTimeout),window.clearTimeout(this._longpressVisibilityTimeout),this._open=!1,this._adapter.hide(),this._detachDismissListeners(),this._adapter.toggleHostAttribute(e.attributes.OPEN,this._open)}_attachDismissListeners(){this._adapter.addAnchorListener("mousedown",this._mouseDownListener),this._adapter.addAnchorListener("dragstart",this._dragListener),this._adapter.addDocumentListener("scroll",this._scrollListener),this._adapter.addDocumentListener("wheel",this._scrollListener),this._adapter.addLightDismissListener(this._lightDismissListener)}_detachDismissListeners(){this._adapter.removeAnchorListener("mousedown",this._mouseDownListener),this._adapter.removeAnchorListener("dragstart",this._dragListener),this._adapter.removeDocumentListener("scroll",this._scrollListener),this._adapter.removeDocumentListener("wheel",this._scrollListener),this._adapter.removeLightDismissListener(this._lightDismissListener)}_onHoverStart(t){this._open||(this._adapter.addAnchorListener("mousedown",this._hoverEndListener),this._adapter.addAnchorListener("mouseleave",this._hoverEndListener),this._delay?this._hoverTimeout=window.setTimeout(()=>{this._onTryShow()},this._delay):this._onTryShow())}_onHoverEnd(t){this._adapter.removeAnchorListener("mousedown",this._hoverEndListener),this._adapter.removeAnchorListener("mouseleave",this._hoverEndListener),window.clearTimeout(this._hoverTimeout),this._onTryHide()}_onFocus(t){this._open||(this._adapter.addAnchorListener("focusout",this._blurListener),this._onTryShow())}_onBlur(t){this._adapter.removeAnchorListener("focusout",this._blurListener),this._onTryHide()}_onLongpress(){this._onTryShow()}_onLongpressEnd(t){super._onLongpressEnd(t),this._longpressVisibilityTimeout=window.setTimeout(()=>{this._onTryHide()},e.numbers.LONGPRESS_VISIBILITY_DURATION)}_onTryShow(){this._open||this._show()}_onTryHide(){this._open&&this._hide()}get open(){return this._open}set open(t){t=!!t,this._open!==t&&(this._adapter.isConnected?this._open?this._hide():this._show():this._open=t)}get type(){return this._type}set type(t){t!=null||(t=e.defaults.TYPE),this._type!==t&&(this._type=t,this._adapter.isConnected&&this._adapter.syncAria(),this._adapter.toggleHostAttribute(e.attributes.TYPE,this._type!==e.defaults.TYPE,this._type))}get anchor(){return this._anchor}set anchor(t){this._anchor!==t&&(this._anchor=t,this._adapter.isConnected&&(this._detachAnchorListeners(),this._adapter.detachAria(),this._adapter.tryLocateAnchorElement(this._anchor),this._adapter.syncAria(),this._attachAnchorListeners()),this._adapter.toggleHostAttribute(e.attributes.ANCHOR,!!this._anchor,this._anchor))}get anchorElement(){return this._adapter.anchorElement}set anchorElement(t){this._adapter.anchorElement!==t&&(this._adapter.isConnected&&(this._detachAnchorListeners(),this._adapter.detachAria()),this._adapter.setAnchorElement(t),this._adapter.isConnected&&(this._adapter.syncAria(),this._attachAnchorListeners()))}get delay(){return this._delay}set delay(t){this._delay!==t&&(this._delay=t,this._adapter.setHostAttribute(e.attributes.DELAY,String(this._delay)))}get placement(){return this._placement}set placement(t){t!=null||(t=e.defaults.PLACEMENT),this._placement!==t&&(this._placement=t,this._adapter.setHostAttribute(e.attributes.PLACEMENT,String(this._placement)))}get offset(){return this._offset}set offset(t){t!=null||(t=e.defaults.OFFSET),this._offset!==t&&(this._offset=t,this._adapter.toggleHostAttribute(e.attributes.OFFSET,this._offset!==e.defaults.OFFSET,String(this._offset)))}get flip(){return this._flip}set flip(t){t!=null||(t=e.defaults.FLIP),this._flip!==t&&(this._flip=t,this._adapter.toggleHostAttribute(e.attributes.FLIP,this._flip!==e.defaults.FLIP,String(this._flip)))}get boundary(){return this._boundary}set boundary(t){this._boundary!==t&&(this._boundary=t,this._adapter.toggleHostAttribute(e.attributes.BOUNDARY,!!this._boundary,this._boundary))}get boundaryElement(){return this._boundaryElement}set boundaryElement(t){var o;this._boundaryElement!==t&&(this._boundaryElement=t,this._adapter.toggleHostAttribute(e.attributes.BOUNDARY,!!this._boundaryElement,(o=this._boundaryElement)==null?void 0:o.id))}get fallbackPlacements(){return this._fallbackPlacements}set fallbackPlacements(t){this._fallbackPlacements!==t&&(this._fallbackPlacements=t)}get triggerType(){return this._triggerTypes.length===1?this._triggerTypes[0]:this._triggerTypes}set triggerType(t){this._triggerTypes!==t&&(this._adapter.isConnected&&this._detachAnchorListeners(),this._triggerTypes=Array.isArray(t)?t:[t],this._triggerTypes=this._triggerTypes.filter(o=>!!o),this._triggerTypes.length||(this._triggerTypes=e.defaults.TRIGGER_TYPES),this._adapter.isConnected&&this._attachAnchorListeners())}};var O='<template><div class="forge-tooltip" part="surface"><slot></slot><div class="arrow" part="arrow"></div></div></template>',F='@-webkit-keyframes slidein{from{opacity:0;-webkit-transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y));transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y))}to{opacity:1;-webkit-transform:translateX(0) translateY(0);transform:translateX(0) translateY(0)}}@keyframes slidein{from{opacity:0;-webkit-transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y));transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y))}to{opacity:1;-webkit-transform:translateX(0) translateY(0);transform:translateX(0) translateY(0)}}:host{display:contents;pointer-events:none}:host([hidden]){display:none}.forge-tooltip{--_tooltip-background:var(--forge-tooltip-background, var(--forge-theme-surface-inverse, #333333));--_tooltip-color:var(--forge-tooltip-color, var(--forge-theme-on-surface-inverse, #ffffff));--_tooltip-shape:var(--forge-tooltip-shape, var(--forge-shape-medium, 4px));--_tooltip-padding:var(--forge-tooltip-padding, var(--forge-spacing-xsmall, 8px));--_tooltip-padding-block:var(--forge-tooltip-padding-block, var(--_tooltip-padding));--_tooltip-padding-inline:var(--forge-tooltip-padding-inline, var(--_tooltip-padding));--_tooltip-width:var(--forge-tooltip-width, max-content);--_tooltip-max-width:var(--forge-tooltip-max-width, 320px);--_tooltip-elevation:var(--forge-tooltip-elevation, var(--forge-theme-popup-elevation, var(--forge-theme-surface-bright-shadow)));--_tooltip-content-align:var(--forge-tooltip-content-align, center);--_tooltip-border-width:var(--forge-tooltip-border-width, 0);--_tooltip-border-style:var(--forge-tooltip-border-style, solid);--_tooltip-border-color:var(--forge-tooltip-border-color, var(--forge-theme-outline, #e0e0e0));--_tooltip-animation-timing:var(--forge-tooltip-animation-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_tooltip-animation-duration:var(--forge-tooltip-animation-duration, var(--forge-animation-duration-short3, 150ms));--_tooltip-animation-offset:var(--forge-tooltip-animation-offset, 24px);--_tooltip-arrow-size:var(--forge-tooltip-arrow-size, 8px);--_tooltip-arrow-height:var(--forge-tooltip-arrow-height, var(--_tooltip-arrow-size));--_tooltip-arrow-width:var(--forge-tooltip-arrow-width, var(--_tooltip-arrow-size));--_tooltip-arrow-shape:var(--forge-tooltip-arrow-shape, var(--forge-shape-small, 2px));--_tooltip-arrow-rotation:var(--forge-tooltip-arrow-rotation, 0deg);--_tooltip-arrow-top-rotation:var(--forge-tooltip-arrow-top-rotation, 315deg);--_tooltip-arrow-right-rotation:var(--forge-tooltip-arrow-right-rotation, 45deg);--_tooltip-arrow-bottom-rotation:var(--forge-tooltip-arrow-bottom-rotation, 135deg);--_tooltip-arrow-left-rotation:var(--forge-tooltip-arrow-left-rotation, 225deg)}.forge-tooltip{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-body1-text-decoration,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);position:relative;background:var(--_tooltip-background);color:var(--_tooltip-color);border-radius:var(--_tooltip-shape);border-width:var(--_tooltip-border-width);border-style:var(--_tooltip-border-style);border-color:var(--_tooltip-border-color);padding-block:var(--_tooltip-padding-block);padding-inline:var(--_tooltip-padding-inline);-webkit-box-shadow:var(--_tooltip-elevation);box-shadow:var(--_tooltip-elevation);width:var(--_tooltip-width);max-width:var(--_tooltip-max-width);pointer-events:none;text-align:var(--_tooltip-content-align);line-height:normal;white-space:normal;-webkit-animation-duration:var(--_tooltip-animation-duration);animation-duration:var(--_tooltip-animation-duration);-webkit-animation-timing-function:var(--_tooltip-animation-timing);animation-timing-function:var(--_tooltip-animation-timing);-webkit-animation-name:slidein;animation-name:slidein;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(:not([open])) .forge-tooltip{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}.arrow{position:absolute;contain:strict;background-color:inherit;height:var(--_tooltip-arrow-height);width:var(--_tooltip-arrow-width);-webkit-box-shadow:inherit;box-shadow:inherit;border:inherit;border-end-start-radius:var(--_tooltip-arrow-shape);rotate:var(--_tooltip-arrow-rotation);-webkit-clip-path:var(--_tooltip-arrow-clip-path);clip-path:var(--_tooltip-arrow-clip-path);--_tooltip-arrow-translate-x:0;--_tooltip-arrow-translate-y:0;--_tooltip-arrow-clip-path:polygon(0 0, 0 100%, 100% 100%)}.forge-tooltip{--_tooltip-slidein-x:0;--_tooltip-slidein-y:0}forge-overlay[open][position-placement^=top] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=top] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-top-rotation);-webkit-margin-after:var(--_tooltip-border-width);margin-block-end:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=right] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=right] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-right-rotation);-webkit-margin-start:var(--_tooltip-border-width);margin-inline-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=bottom] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=bottom] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-bottom-rotation);-webkit-margin-before:var(--_tooltip-border-width);margin-block-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=left] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=left] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-left-rotation);-webkit-margin-end:var(--_tooltip-border-width);margin-inline-end:var(--_tooltip-border-width)}',M=x(k(A)),r=class extends M{constructor(){super();T(this,O,F),this._foundation=new h(new p(this))}static get observedAttributes(){return Object.values(e.observedAttributes)}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(t,o,i){switch(t){case e.observedAttributes.ID:this._foundation.syncTooltipAria();break;case e.observedAttributes.OPEN:this.open=y(i);break;case e.observedAttributes.TYPE:this.type=i!=null&&i.trim()?i:e.defaults.TYPE;break;case e.observedAttributes.TARGET:case e.observedAttributes.ANCHOR:this.anchor=i;break;case e.observedAttributes.DELAY:this.delay=d(i);break;case e.observedAttributes.POSITION:case e.observedAttributes.PLACEMENT:this.placement=i;break;case e.observedAttributes.OFFSET:this.offset=d(i);break;case e.observedAttributes.FLIP:this.flip=i;break;case e.observedAttributes.BOUNDARY:this.boundary=i;break;case e.observedAttributes.FALLBACK_PLACEMENTS:this.fallbackPlacements=i!=null&&i.trim()?g(i):null;break;case e.observedAttributes.TRIGGER_TYPE:this.triggerType=i!=null&&i.trim()?g(i):e.defaults.TRIGGER_TYPES;break}}};n([a()],r.prototype,"open",2),n([a()],r.prototype,"type",2),n([a()],r.prototype,"anchor",2),n([a()],r.prototype,"anchorElement",2),n([a({name:"anchor"})],r.prototype,"target",2),n([a()],r.prototype,"placement",2),n([a({name:"placement"})],r.prototype,"position",2),n([a()],r.prototype,"delay",2),n([a()],r.prototype,"offset",2),n([a()],r.prototype,"flip",2),n([a()],r.prototype,"boundary",2),n([a()],r.prototype,"boundaryElement",2),n([a()],r.prototype,"fallbackPlacements",2),n([a()],r.prototype,"triggerType",2),r=n([L({name:e.elementName,dependencies:[S]})],r);function gt(){E(r)}export{p as a,h as b,r as c,gt as d};
7
- //# sourceMappingURL=chunk.FB4MXEIW.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/tooltip/tooltip-adapter.ts", "../../src/tooltip/tooltip-foundation.ts", "../../src/tooltip/tooltip.ts", "../../src/tooltip/index.ts"],
4
- "sourcesContent": ["import { getShadowElement, randomChars } from '@tylertech/forge-core';\nimport { setDefaultAria } from '../constants';\nimport { locateElementById } from '../core/utils/utils';\nimport { BaseAdapter, IBaseAdapter } from '../core/base/base-adapter';\nimport { IOverlayComponent, OVERLAY_CONSTANTS } from '../overlay';\nimport { ITooltipComponent } from './tooltip';\nimport { TOOLTIP_CONSTANTS } from './tooltip-constants';\n\nexport interface ITooltipAdapter extends IBaseAdapter {\n readonly anchorElement: HTMLElement | null;\n syncAria(): void;\n detachAria(): void;\n setAnchorElement(element: HTMLElement | null): void;\n tryLocateAnchorElement(id: string): void;\n addAnchorListener(type: string, listener: EventListener, opts?: AddEventListenerOptions): void;\n removeAnchorListener(type: string, listener: EventListener): void;\n addLightDismissListener(listener: EventListener): void;\n removeLightDismissListener(listener: EventListener): void;\n show(): void;\n hide(): void;\n}\n\nexport class TooltipAdapter extends BaseAdapter<ITooltipComponent> implements ITooltipAdapter {\n private _contentElement: HTMLElement;\n private _arrowElement: HTMLElement;\n private _anchorElement: HTMLElement | null = null;\n private _overlayElement: IOverlayComponent | null = null;\n\n constructor(component: ITooltipComponent) {\n super(component);\n this._contentElement = getShadowElement(this._component, TOOLTIP_CONSTANTS.selectors.CONTENT);\n this._arrowElement = getShadowElement(this._component, TOOLTIP_CONSTANTS.selectors.ARROW);\n }\n\n public get anchorElement(): HTMLElement | null {\n return this._anchorElement;\n }\n\n public syncAria(): void {\n const role = this._component.type === 'description' ? 'tooltip' : null;\n this._component[setDefaultAria]({ role });\n this._component[setDefaultAria]({ ariaHidden: 'true' }, { setAttribute: !this._component.hasAttribute('aria-hidden') });\n\n if (this._anchorElement) {\n if (this._component.type === 'label' && this._anchorElement.hasAttribute('aria-labelledby')) {\n return;\n }\n if (this._component.type === 'description' && this._anchorElement.hasAttribute('aria-describedby')) {\n return;\n }\n\n if (!this._component.hasAttribute('id') && this._component.type !== 'presentation') {\n this._component.id = `forge-tooltip-${randomChars()}`;\n }\n\n switch (this._component.type) {\n case 'description':\n this._anchorElement.setAttribute('aria-describedby', this._component.id);\n break;\n case 'label':\n this._anchorElement.setAttribute('aria-labelledby', this._component.id);\n break;\n }\n }\n }\n\n public detachAria(): void {\n if (this._component.type === 'description' && this._anchorElement?.getAttribute('aria-describedby') === this._component.id) {\n this._anchorElement?.removeAttribute('aria-describedby');\n }\n\n if (this._component.type === 'label' && this._anchorElement?.getAttribute('aria-labelledby') === this._component.id) {\n this._anchorElement?.removeAttribute('aria-labelledby');\n }\n }\n\n public setAnchorElement(element: HTMLElement | null): void {\n this._anchorElement = element;\n }\n\n public tryLocateAnchorElement(id: string): void {\n this._anchorElement = this._tryFindAnchorElement(id);\n }\n\n public addAnchorListener(type: string, listener: EventListener, opts?: AddEventListenerOptions): void {\n this._anchorElement?.addEventListener(type, listener, opts);\n }\n\n public removeAnchorListener(type: string, listener: EventListener): void {\n this._anchorElement?.removeEventListener(type, listener);\n }\n\n public addLightDismissListener(listener: EventListener): void {\n this._overlayElement?.addEventListener(OVERLAY_CONSTANTS.events.LIGHT_DISMISS, listener);\n }\n\n public removeLightDismissListener(listener: EventListener): void {\n this._overlayElement?.removeEventListener(OVERLAY_CONSTANTS.events.LIGHT_DISMISS, listener);\n }\n\n public show(): void {\n // Tooltips are shown above all content via <forge-overlay>\n // We do this by dynamically creating an overlay element and appending it to the shadow root\n // then we move the tooltip content into the overlay element so that it can be presented.\n if (!this._overlayElement) {\n this._overlayElement = document.createElement(OVERLAY_CONSTANTS.elementName);\n this._overlayElement.setAttribute('part', 'root:overlay');\n }\n\n this._overlayElement.placement = this._component.placement;\n this._overlayElement.anchorElement = this._anchorElement;\n this._overlayElement.arrowElement = this._arrowElement;\n this._overlayElement.offset = { mainAxis: this._component.offset };\n this._overlayElement.flip = this._component.flip;\n\n if (this._component.fallbackPlacements) {\n this._overlayElement.fallbackPlacements = this._component.fallbackPlacements;\n }\n\n if (this._component.boundaryElement) {\n this._overlayElement.boundaryElement = this._component.boundaryElement;\n } else if (this._component.boundary) {\n const boundaryEl = locateElementById(this._component, this._component.boundary);\n this._overlayElement.boundaryElement = boundaryEl;\n } else {\n this._overlayElement.boundaryElement = null;\n }\n\n this._component.shadowRoot?.appendChild(this._overlayElement);\n this._overlayElement.appendChild(this._contentElement);\n\n this._overlayElement.open = true;\n }\n\n public hide(): void {\n // Move the tooltip content back into the component, and remove the overlay element to hide the tooltip visually\n // Tooltips are still accessible when hidden, so we don't need to do anything else.\n if (this._overlayElement) {\n this._overlayElement.open = false;\n }\n this._component.shadowRoot?.appendChild(this._contentElement);\n this._overlayElement?.remove();\n }\n\n /**\n * Attempts to find an element with the given id. If no element is found, the previous sibling or parent element is returned.\n * \n * For backwards compatibility we allow for `id` to be a selector string, so that is evaluated if no element is found for the id.\n */\n private _tryFindAnchorElement(id: string): HTMLElement | null {\n if (id) {\n const rootNode = this._component.getRootNode() as Document | ShadowRoot;\n const targetEl = rootNode.getElementById(id) ?? rootNode.querySelector<HTMLElement>(id);\n if (targetEl) {\n return targetEl;\n }\n }\n return (this._component.previousElementSibling ?? this._component.parentElement) as HTMLElement;\n }\n}\n", "import { ICustomElementFoundation } from '@tylertech/forge-core';\nimport { ITooltipAdapter } from './tooltip-adapter';\nimport { TOOLTIP_CONSTANTS, TooltipPlacement, TooltipTriggerType, TooltipType } from './tooltip-constants';\nimport { WithLongpressListener } from '../core/mixins/interactions/longpress/with-longpress-listener';\nimport { canUserHoverElements } from '../constants';\nimport { OverlayFlipState } from '../overlay/overlay-constants';\nimport { PositionPlacement } from '../core/utils/position-utils';\n\nexport interface ITooltipFoundation extends ICustomElementFoundation {\n open: boolean;\n type: TooltipType;\n placement: `${TooltipPlacement}`;\n delay: number;\n anchor: string;\n anchorElement: HTMLElement | null;\n offset: number;\n flip: OverlayFlipState;\n boundary: string | null;\n boundaryElement: HTMLElement | null;\n fallbackPlacements: PositionPlacement[] | null;\n triggerType: TooltipTriggerType | TooltipTriggerType[];\n syncTooltipAria(): void;\n}\n\nconst BaseClass = WithLongpressListener();\n\nexport class TooltipFoundation extends BaseClass implements ITooltipFoundation {\n private _open = false;\n private _type: TooltipType = TOOLTIP_CONSTANTS.defaults.TYPE;\n private _anchor: string;\n private _delay = TOOLTIP_CONSTANTS.defaults.DELAY;\n private _placement: TooltipPlacement = TOOLTIP_CONSTANTS.defaults.PLACEMENT;\n private _offset = TOOLTIP_CONSTANTS.defaults.OFFSET;\n private _flip: OverlayFlipState = TOOLTIP_CONSTANTS.defaults.FLIP;\n private _boundary: string | null = null;\n private _boundaryElement: HTMLElement | null = null;\n private _fallbackPlacements: PositionPlacement[] | null = null;\n private _triggerTypes: TooltipTriggerType[] = TOOLTIP_CONSTANTS.defaults.TRIGGER_TYPES;\n \n // Hover trigger type\n private _hoverStartListener: (evt: MouseEvent) => void = this._onHoverStart.bind(this);\n private _hoverEndListener: (evt: MouseEvent) => void = this._onHoverEnd.bind(this);\n private _hoverTimeout: number | undefined;\n\n // Focus trigger type\n private _focusListener: (evt: FocusEvent) => void = this._onFocus.bind(this);\n private _blurListener: (evt: FocusEvent) => void = this._onBlur.bind(this);\n\n // Longpress trigger type\n private _longpressVisibilityTimeout: number | undefined;\n\n // Dismiss/hide triggers\n private _scrollListener: (evt: Event) => void = this._onTryHide.bind(this);\n private _mouseDownListener: (evt: MouseEvent) => void = this._onTryHide.bind(this);\n private _dragListener: (evt: DragEvent) => void = this._onTryHide.bind(this);\n private _lightDismissListener: (evt: Event) => void = this._onTryHide.bind(this);\n \n constructor(private _adapter: ITooltipAdapter) {\n super();\n }\n\n public initialize(): void {\n if (!this._adapter.anchorElement) {\n this._adapter.tryLocateAnchorElement(this._anchor);\n }\n\n this._adapter.syncAria();\n this._attachAnchorListeners();\n\n if (this._open) {\n this._show();\n }\n }\n\n public destroy(): void {\n if (this._open) {\n this._hide();\n }\n this._adapter.detachAria();\n this._detachAnchorListeners();\n }\n\n public syncTooltipAria(): void {\n this._adapter.syncAria();\n }\n\n private _attachAnchorListeners(): void {\n if (!this._adapter.anchorElement) {\n return;\n }\n\n const triggerTypes = [...this._triggerTypes];\n\n // If the users input mechanism doesn't support hover, then we need to force longpress as their alternative\n /* c8 ignore next 4 */\n if (!canUserHoverElements) {\n triggerTypes.splice(triggerTypes.indexOf('hover'), 1);\n triggerTypes.push('longpress');\n }\n\n const triggerInitializers: Record<TooltipTriggerType, () => void> = {\n 'hover': () => this._adapter.addAnchorListener('mouseenter', this._hoverStartListener),\n 'longpress': () => this._startLongpressListener(this._adapter.anchorElement as HTMLElement),\n 'focus': () => this._adapter.addAnchorListener('focusin', this._focusListener)\n };\n triggerTypes.forEach(triggerType => triggerInitializers[triggerType]());\n }\n\n private _detachAnchorListeners(): void {\n if (!this._adapter.anchorElement) {\n return;\n }\n\n const triggerTypes = [...this._triggerTypes];\n\n /* c8 ignore next 3 */\n if (!canUserHoverElements) {\n triggerTypes.push('longpress');\n }\n\n const triggerRemovers: Record<TooltipTriggerType, () => void> = {\n 'hover': () => {\n this._adapter.removeAnchorListener('mouseenter', this._hoverStartListener);\n this._adapter.removeAnchorListener('mousedown', this._hoverEndListener);\n this._adapter.removeAnchorListener('mouseleave', this._hoverEndListener);\n },\n 'longpress': () => this._stopLongpressListener(this._adapter.anchorElement as HTMLElement),\n 'focus': () => {\n this._adapter.removeAnchorListener('focusin', this._focusListener);\n this._adapter.removeAnchorListener('focusout', this._blurListener);\n }\n };\n triggerTypes.forEach(triggerType => triggerRemovers[triggerType]());\n }\n\n private _show(): void {\n this._open = true;\n this._adapter.show();\n this._attachDismissListeners();\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.OPEN, this._open);\n }\n\n private _hide(): void {\n window.clearTimeout(this._hoverTimeout);\n window.clearTimeout(this._longpressVisibilityTimeout);\n\n this._open = false;\n this._adapter.hide();\n this._detachDismissListeners();\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.OPEN, this._open);\n }\n\n private _attachDismissListeners(): void {\n this._adapter.addAnchorListener('mousedown', this._mouseDownListener);\n this._adapter.addAnchorListener('dragstart', this._dragListener);\n this._adapter.addDocumentListener('scroll', this._scrollListener);\n this._adapter.addDocumentListener('wheel', this._scrollListener);\n this._adapter.addLightDismissListener(this._lightDismissListener);\n }\n \n private _detachDismissListeners(): void {\n this._adapter.removeAnchorListener('mousedown', this._mouseDownListener);\n this._adapter.removeAnchorListener('dragstart', this._dragListener);\n this._adapter.removeDocumentListener('scroll', this._scrollListener);\n this._adapter.removeDocumentListener('wheel', this._scrollListener);\n this._adapter.removeLightDismissListener(this._lightDismissListener);\n }\n\n private _onHoverStart(_evt: MouseEvent): void {\n /* c8 ignore next 3 */\n if (this._open) {\n return;\n }\n\n this._adapter.addAnchorListener('mousedown', this._hoverEndListener);\n this._adapter.addAnchorListener('mouseleave', this._hoverEndListener);\n \n if (this._delay) {\n this._hoverTimeout = window.setTimeout(() => {\n this._onTryShow();\n }, this._delay);\n } else {\n this._onTryShow();\n }\n }\n\n private _onHoverEnd(_evt: MouseEvent): void {\n this._adapter.removeAnchorListener('mousedown', this._hoverEndListener);\n this._adapter.removeAnchorListener('mouseleave', this._hoverEndListener);\n window.clearTimeout(this._hoverTimeout);\n this._onTryHide();\n }\n\n private _onFocus(_evt: FocusEvent): void {\n /* c8 ignore next 3 */\n if (this._open) {\n return;\n }\n this._adapter.addAnchorListener('focusout', this._blurListener);\n this._onTryShow();\n }\n\n private _onBlur(_evt: FocusEvent): void {\n this._adapter.removeAnchorListener('focusout', this._blurListener);\n this._onTryHide();\n }\n\n protected _onLongpress(): void {\n this._onTryShow();\n }\n\n protected override _onLongpressEnd(evt: PointerEvent | TouchEvent): void {\n super._onLongpressEnd(evt);\n\n // We only start the timeout to hide the tooltip after the user lifts the pointer\n this._longpressVisibilityTimeout = window.setTimeout(() => {\n this._onTryHide();\n }, TOOLTIP_CONSTANTS.numbers.LONGPRESS_VISIBILITY_DURATION);\n }\n\n private _onTryShow(): void {\n if (!this._open) {\n this._show();\n }\n }\n\n private _onTryHide(): void {\n if (this._open) {\n this._hide();\n }\n }\n \n public get open(): boolean {\n return this._open;\n }\n public set open(value: boolean) {\n value = Boolean(value);\n if (this._open !== value) {\n if (this._adapter.isConnected) {\n if (!this._open) {\n this._show();\n } else {\n this._hide();\n }\n } else {\n this._open = value;\n }\n }\n }\n\n public get type(): TooltipType {\n return this._type;\n }\n public set type(value: TooltipType) {\n value ??= TOOLTIP_CONSTANTS.defaults.TYPE;\n if (this._type !== value) {\n this._type = value;\n if (this._adapter.isConnected) {\n this._adapter.syncAria();\n }\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.TYPE, this._type !== TOOLTIP_CONSTANTS.defaults.TYPE, this._type);\n }\n }\n\n public get anchor(): string {\n return this._anchor;\n }\n public set anchor(value: string) {\n if (this._anchor !== value) {\n this._anchor = value;\n\n if (this._adapter.isConnected) {\n this._detachAnchorListeners();\n this._adapter.detachAria();\n this._adapter.tryLocateAnchorElement(this._anchor);\n this._adapter.syncAria();\n this._attachAnchorListeners();\n }\n\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.ANCHOR, !!this._anchor, this._anchor);\n }\n }\n\n public get anchorElement(): HTMLElement | null {\n return this._adapter.anchorElement;\n }\n public set anchorElement(element: HTMLElement | null) {\n if (this._adapter.anchorElement !== element) {\n if (this._adapter.isConnected) {\n this._detachAnchorListeners();\n this._adapter.detachAria();\n }\n\n this._adapter.setAnchorElement(element);\n \n if (this._adapter.isConnected) {\n this._adapter.syncAria();\n this._attachAnchorListeners();\n }\n }\n }\n\n public get delay(): number {\n return this._delay;\n }\n public set delay(value: number) {\n if (this._delay !== value) {\n this._delay = value;\n this._adapter.setHostAttribute(TOOLTIP_CONSTANTS.attributes.DELAY, String(this._delay));\n }\n }\n\n public get placement(): TooltipPlacement {\n return this._placement;\n }\n public set placement(value: TooltipPlacement) {\n value ??= TOOLTIP_CONSTANTS.defaults.PLACEMENT;\n if (this._placement !== value) {\n this._placement = value;\n this._adapter.setHostAttribute(TOOLTIP_CONSTANTS.attributes.PLACEMENT, String(this._placement));\n }\n }\n\n public get offset(): number {\n return this._offset;\n }\n public set offset(value: number) {\n value ??= TOOLTIP_CONSTANTS.defaults.OFFSET;\n if (this._offset !== value) {\n this._offset = value;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.OFFSET, this._offset !== TOOLTIP_CONSTANTS.defaults.OFFSET, String(this._offset));\n }\n }\n\n public get flip(): OverlayFlipState {\n return this._flip;\n }\n public set flip(value: OverlayFlipState) {\n value ??= TOOLTIP_CONSTANTS.defaults.FLIP;\n if (this._flip !== value) {\n this._flip = value;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.FLIP, this._flip !== TOOLTIP_CONSTANTS.defaults.FLIP, String(this._flip));\n }\n }\n\n public get boundary(): string | null {\n return this._boundary;\n }\n public set boundary(value: string | null) {\n if (this._boundary !== value) {\n this._boundary = value;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.BOUNDARY, !!this._boundary, this._boundary as string);\n }\n }\n\n public get boundaryElement(): HTMLElement | null {\n return this._boundaryElement;\n }\n public set boundaryElement(element: HTMLElement | null) {\n if (this._boundaryElement !== element) {\n this._boundaryElement = element;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.BOUNDARY, !!this._boundaryElement, this._boundaryElement?.id);\n }\n }\n\n public get fallbackPlacements(): PositionPlacement[] | null {\n return this._fallbackPlacements;\n }\n public set fallbackPlacements(value: PositionPlacement[] | null) {\n if (this._fallbackPlacements !== value) {\n this._fallbackPlacements = value;\n }\n }\n\n public get triggerType(): TooltipTriggerType | TooltipTriggerType[] {\n return this._triggerTypes.length === 1 ? this._triggerTypes[0] : this._triggerTypes;\n }\n public set triggerType(value: TooltipTriggerType | TooltipTriggerType[]) {\n if (this._triggerTypes !== value) {\n if (this._adapter.isConnected) {\n this._detachAnchorListeners();\n }\n\n this._triggerTypes = Array.isArray(value) ? value : [value];\n this._triggerTypes = this._triggerTypes.filter(type => !!type);\n\n if (!this._triggerTypes.length) {\n this._triggerTypes = TOOLTIP_CONSTANTS.defaults.TRIGGER_TYPES;\n }\n\n if (this._adapter.isConnected) {\n this._attachAnchorListeners();\n }\n }\n }\n}\n", "import { CustomElement, coerceNumber, FoundationProperty, coerceBoolean, attachShadowTemplate } from '@tylertech/forge-core';\nimport { TooltipAdapter } from './tooltip-adapter';\nimport { TooltipFoundation } from './tooltip-foundation';\nimport { TooltipPlacement, TooltipTriggerType, TooltipType, TOOLTIP_CONSTANTS } from './tooltip-constants';\nimport { BaseComponent } from '../core/base/base-component';\nimport { OverlayComponent } from '../overlay/overlay';\nimport { coerceStringToArray } from '../core/utils/utils';\nimport { IWithDefaultAria, WithDefaultAria } from '../core/mixins/internals/with-default-aria';\nimport { IWithElementInternals, WithElementInternals } from '../core/mixins/internals/with-element-internals';\nimport { OverlayFlipState } from '../overlay/overlay-constants';\nimport { PositionPlacement } from '../core/utils/position-utils';\n\nconst template = '<template><div class=\\\"forge-tooltip\\\" part=\\\"surface\\\"><slot></slot><div class=\\\"arrow\\\" part=\\\"arrow\\\"></div></div></template>';\nconst styles = '@-webkit-keyframes slidein{from{opacity:0;-webkit-transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y));transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y))}to{opacity:1;-webkit-transform:translateX(0) translateY(0);transform:translateX(0) translateY(0)}}@keyframes slidein{from{opacity:0;-webkit-transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y));transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y))}to{opacity:1;-webkit-transform:translateX(0) translateY(0);transform:translateX(0) translateY(0)}}:host{display:contents;pointer-events:none}:host([hidden]){display:none}.forge-tooltip{--_tooltip-background:var(--forge-tooltip-background, var(--forge-theme-surface-inverse, #333333));--_tooltip-color:var(--forge-tooltip-color, var(--forge-theme-on-surface-inverse, #ffffff));--_tooltip-shape:var(--forge-tooltip-shape, var(--forge-shape-medium, 4px));--_tooltip-padding:var(--forge-tooltip-padding, var(--forge-spacing-xsmall, 8px));--_tooltip-padding-block:var(--forge-tooltip-padding-block, var(--_tooltip-padding));--_tooltip-padding-inline:var(--forge-tooltip-padding-inline, var(--_tooltip-padding));--_tooltip-width:var(--forge-tooltip-width, max-content);--_tooltip-max-width:var(--forge-tooltip-max-width, 320px);--_tooltip-elevation:var(--forge-tooltip-elevation, var(--forge-theme-popup-elevation, var(--forge-theme-surface-bright-shadow)));--_tooltip-content-align:var(--forge-tooltip-content-align, center);--_tooltip-border-width:var(--forge-tooltip-border-width, 0);--_tooltip-border-style:var(--forge-tooltip-border-style, solid);--_tooltip-border-color:var(--forge-tooltip-border-color, var(--forge-theme-outline, #e0e0e0));--_tooltip-animation-timing:var(--forge-tooltip-animation-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_tooltip-animation-duration:var(--forge-tooltip-animation-duration, var(--forge-animation-duration-short3, 150ms));--_tooltip-animation-offset:var(--forge-tooltip-animation-offset, 24px);--_tooltip-arrow-size:var(--forge-tooltip-arrow-size, 8px);--_tooltip-arrow-height:var(--forge-tooltip-arrow-height, var(--_tooltip-arrow-size));--_tooltip-arrow-width:var(--forge-tooltip-arrow-width, var(--_tooltip-arrow-size));--_tooltip-arrow-shape:var(--forge-tooltip-arrow-shape, var(--forge-shape-small, 2px));--_tooltip-arrow-rotation:var(--forge-tooltip-arrow-rotation, 0deg);--_tooltip-arrow-top-rotation:var(--forge-tooltip-arrow-top-rotation, 315deg);--_tooltip-arrow-right-rotation:var(--forge-tooltip-arrow-right-rotation, 45deg);--_tooltip-arrow-bottom-rotation:var(--forge-tooltip-arrow-bottom-rotation, 135deg);--_tooltip-arrow-left-rotation:var(--forge-tooltip-arrow-left-rotation, 225deg)}.forge-tooltip{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, \\\"Roboto\\\", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-body1-text-decoration,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);position:relative;background:var(--_tooltip-background);color:var(--_tooltip-color);border-radius:var(--_tooltip-shape);border-width:var(--_tooltip-border-width);border-style:var(--_tooltip-border-style);border-color:var(--_tooltip-border-color);padding-block:var(--_tooltip-padding-block);padding-inline:var(--_tooltip-padding-inline);-webkit-box-shadow:var(--_tooltip-elevation);box-shadow:var(--_tooltip-elevation);width:var(--_tooltip-width);max-width:var(--_tooltip-max-width);pointer-events:none;text-align:var(--_tooltip-content-align);line-height:normal;white-space:normal;-webkit-animation-duration:var(--_tooltip-animation-duration);animation-duration:var(--_tooltip-animation-duration);-webkit-animation-timing-function:var(--_tooltip-animation-timing);animation-timing-function:var(--_tooltip-animation-timing);-webkit-animation-name:slidein;animation-name:slidein;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(:not([open])) .forge-tooltip{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}.arrow{position:absolute;contain:strict;background-color:inherit;height:var(--_tooltip-arrow-height);width:var(--_tooltip-arrow-width);-webkit-box-shadow:inherit;box-shadow:inherit;border:inherit;border-end-start-radius:var(--_tooltip-arrow-shape);rotate:var(--_tooltip-arrow-rotation);-webkit-clip-path:var(--_tooltip-arrow-clip-path);clip-path:var(--_tooltip-arrow-clip-path);--_tooltip-arrow-translate-x:0;--_tooltip-arrow-translate-y:0;--_tooltip-arrow-clip-path:polygon(0 0, 0 100%, 100% 100%)}.forge-tooltip{--_tooltip-slidein-x:0;--_tooltip-slidein-y:0}forge-overlay[open][position-placement^=top] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=top] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-top-rotation);-webkit-margin-after:var(--_tooltip-border-width);margin-block-end:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=right] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=right] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-right-rotation);-webkit-margin-start:var(--_tooltip-border-width);margin-inline-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=bottom] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=bottom] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-bottom-rotation);-webkit-margin-before:var(--_tooltip-border-width);margin-block-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=left] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=left] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-left-rotation);-webkit-margin-end:var(--_tooltip-border-width);margin-inline-end:var(--_tooltip-border-width)}';\n\nexport interface ITooltipComponent extends IWithDefaultAria, IWithElementInternals {\n open: boolean;\n type: TooltipType;\n anchor: string;\n anchorElement: HTMLElement | null;\n /** @deprecated use `anchor` instead */\n target: string;\n placement: `${TooltipPlacement}`;\n /** @deprecated use `placement` instead */\n position: `${TooltipPlacement}`;\n delay: number;\n offset: number;\n flip: OverlayFlipState;\n boundary: string | null;\n boundaryElement: HTMLElement | null;\n fallbackPlacements: PositionPlacement[] | null;\n triggerType: TooltipTriggerType | TooltipTriggerType[];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-tooltip': ITooltipComponent;\n }\n}\n\nconst BaseClass = WithDefaultAria(WithElementInternals(BaseComponent));\n\n/**\n * @tag forge-tooltip\n * \n * @summary Tooltips display information related to an element when the user hovers over an element.\n *\n * @property {boolean} open - Whether or not the tooltip is open.\n * @property {TooltipType} type - The type of tooltip. Valid values are `presentation` (default), `label`, and `description`.\n * @property {string} anchor - The id of the element that the tooltip is anchored to.\n * @property {TooltipPlacement} placement - The placement of the tooltip relative to the anchor element.\n * @property {number} delay - The delay in milliseconds before the tooltip is shown.\n * @property {number} offset - The offset in pixels between the tooltip and the anchor element.\n * @property {OverlayFlipState} - flip - How the tooltip should place itself if there is not enough space at the desired placement.\n * @property {string | null} boundary - The id of the element that the tooltip should be constrained to.\n * @property {HTMLElement | null} boundaryElement - The element that the tooltip should be constrained to.\n * @property {PositionPlacement[] | null} fallbackPlacements - The fallback placements of the tooltip relative to the anchor element.\n * @property {TooltipTriggerType | TooltipTriggerType[]} triggerType - The trigger type(s) that will open the tooltip. Valid values are `hover` (default), `longpress`, and `focus`.\n * \n * @attribute {boolean} open - Whether or not the tooltip is open.\n * @attribute {TooltipType} type - The type of tooltip. Valid values are `presentation` (default), `label`, and `description`.\n * @attribute {string} anchor - The id of the element that the tooltip is anchored to.\n * @attribute {TooltipPlacement} placement - The placement of the tooltip relative to the anchor element.\n * @attribute {number} delay - The delay in milliseconds before the tooltip is shown.\n * @attribute {number} offset - The offset in pixels between the tooltip and the anchor element.\n * @attribute {OverlayFlipState} flip - How the tooltip should place itself if there is not enough space at the desired placement.\n * @attribute {string | null} boundary - The id of the element that the tooltip should be constrained to.\n * @attribute {PositionPlacement[]} fallbackPlacements - The fallback placements of the tooltip relative to the anchor element.\n * \n * @cssproperty --forge-tooltip-background - The background color of the tooltip surface.\n * @cssproperty --forge-tooltip-color - The text color of the tooltip surface.\n * @cssproperty --forge-tooltip-shape - The shape of the tooltip surface.\n * @cssproperty --forge-tooltip-padding - The padding of the tooltip surface.\n * @cssproperty --forge-tooltip-padding-block - The block padding of the tooltip surface.\n * @cssproperty --forge-tooltip-padding-inline - The inline padding of the tooltip surface.\n * @cssproperty --forge-tooltip-max-width - The maximum width of the tooltip surface.\n * @cssproperty --forge-tooltip-elevation - The elevation of the tooltip surface.\n * @cssproperty --forge-tooltip-border-width - The border width of the tooltip surface.\n * @cssproperty --forge-tooltip-border-style - The border style of the tooltip surface.\n * @cssproperty --forge-tooltip-border-color - The border color of the tooltip surface.\n * @cssproperty --forge-tooltip-animation-timing - The animation timing function of the tooltip surface.\n * @cssproperty --forge-tooltip-animation-duration - The animation duration of the tooltip surface.\n * @cssproperty --forge-tooltip-animation-offset - The animation offset of the tooltip surface.\n * @cssproperty --forge-tooltip-arrow-size - The size of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-height - The height of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-width - The width of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-shape - The shape of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-clip-path - The clip path of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-rotation - The rotation of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-top-rotation - The rotation of the tooltip arrow when the tooltip is placed on top.\n * @cssproperty --forge-tooltip-arrow-right-rotation - The rotation of the tooltip arrow when the tooltip is placed on the right.\n * @cssproperty --forge-tooltip-arrow-bottom-rotation - The rotation of the tooltip arrow when the tooltip is placed on the bottom.\n * @cssproperty --forge-tooltip-arrow-left-rotation- The rotation of the tooltip arrow when the tooltip is placed on the left.\n * \n * @slot - The content to display in the tooltip.\n * \n * @csspart surface - The tooltip surface.\n * @csspart arrow - The tooltip arrow.\n * @csspart overlay - The overlay surface.\n */\n@CustomElement({\n name: TOOLTIP_CONSTANTS.elementName,\n dependencies: [\n OverlayComponent\n ]\n})\nexport class TooltipComponent extends BaseClass implements ITooltipComponent {\n public static get observedAttributes(): string[] {\n return Object.values(TOOLTIP_CONSTANTS.observedAttributes);\n }\n\n private _foundation: TooltipFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n this._foundation = new TooltipFoundation(new TooltipAdapter(this));\n }\n\n public connectedCallback(): void {\n this._foundation.initialize();\n }\n\n public disconnectedCallback(): void {\n this._foundation.destroy();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case TOOLTIP_CONSTANTS.observedAttributes.ID:\n this._foundation.syncTooltipAria();\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.OPEN:\n this.open = coerceBoolean(newValue);\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.TYPE:\n this.type = newValue?.trim() ? newValue as TooltipType : TOOLTIP_CONSTANTS.defaults.TYPE;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.TARGET:\n case TOOLTIP_CONSTANTS.observedAttributes.ANCHOR:\n this.anchor = newValue;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.DELAY:\n this.delay = coerceNumber(newValue);\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.POSITION:\n case TOOLTIP_CONSTANTS.observedAttributes.PLACEMENT:\n this.placement = newValue as TooltipPlacement;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.OFFSET:\n this.offset = coerceNumber(newValue);\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.FLIP:\n this.flip = newValue as OverlayFlipState;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.BOUNDARY:\n this.boundary = newValue;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.FALLBACK_PLACEMENTS:\n this.fallbackPlacements = newValue?.trim() ? coerceStringToArray<PositionPlacement>(newValue) : null;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.TRIGGER_TYPE:\n this.triggerType = newValue?.trim() ? coerceStringToArray<TooltipTriggerType>(newValue) : TOOLTIP_CONSTANTS.defaults.TRIGGER_TYPES;\n break;\n }\n }\n\n @FoundationProperty()\n public declare open: boolean;\n\n @FoundationProperty()\n public declare type: TooltipType;\n\n @FoundationProperty()\n public declare anchor: string;\n\n @FoundationProperty()\n public declare anchorElement: HTMLElement | null;\n\n /** @deprecated use `anchor` instead */\n @FoundationProperty({ name: 'anchor' })\n public declare target: string;\n\n @FoundationProperty()\n public declare placement: `${TooltipPlacement}`;\n\n /** @deprecated use `placement` instead */\n @FoundationProperty({ name: 'placement' })\n public declare position: `${TooltipPlacement}`;\n\n @FoundationProperty()\n public declare delay: number;\n\n @FoundationProperty()\n public declare offset: number;\n\n @FoundationProperty()\n public declare flip: OverlayFlipState;\n\n @FoundationProperty()\n public declare boundary: string | null;\n\n @FoundationProperty()\n public declare boundaryElement: HTMLElement | null;\n\n @FoundationProperty()\n public declare fallbackPlacements: PositionPlacement[] | null;\n\n @FoundationProperty()\n public declare triggerType: TooltipTriggerType | TooltipTriggerType[];\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\n\nimport { TooltipComponent } from './tooltip';\n\nexport * from './tooltip-adapter';\nexport * from './tooltip-constants';\nexport * from './tooltip-foundation';\nexport * from './tooltip';\n\nexport function defineTooltipComponent(): void {\n defineCustomElement(TooltipComponent);\n}\n"],
5
- "mappings": "yfAsBO,IAAMA,EAAN,cAA6BC,CAA0D,CAM5F,YAAYC,EAA8B,CACxC,MAAMA,CAAS,EAJjB,KAAQ,eAAqC,KAC7C,KAAQ,gBAA4C,KAIlD,KAAK,gBAAkBC,EAAiB,KAAK,WAAYC,EAAkB,UAAU,OAAO,EAC5F,KAAK,cAAgBD,EAAiB,KAAK,WAAYC,EAAkB,UAAU,KAAK,CAC1F,CAEA,IAAW,eAAoC,CAC7C,OAAO,KAAK,cACd,CAEO,UAAiB,CACtB,IAAMC,EAAO,KAAK,WAAW,OAAS,cAAgB,UAAY,KAIlE,GAHA,KAAK,WAAWC,CAAc,EAAE,CAAE,KAAAD,CAAK,CAAC,EACxC,KAAK,WAAWC,CAAc,EAAE,CAAE,WAAY,MAAO,EAAG,CAAE,aAAc,CAAC,KAAK,WAAW,aAAa,aAAa,CAAE,CAAC,EAElH,KAAK,eAAgB,CAIvB,GAHI,KAAK,WAAW,OAAS,SAAW,KAAK,eAAe,aAAa,iBAAiB,GAGtF,KAAK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,EAAA,CADdC,EAAmB,GA1FTZ,EA2FI,oBAGAW,EAAA,CADdC,EAAmB,GA7FTZ,EA8FI,wBAGAW,EAAA,CADdC,EAAmB,GAhGTZ,EAiGI,+BAGAW,EAAA,CADdC,EAAmB,GAnGTZ,EAoGI,kCAGAW,EAAA,CADdC,EAAmB,GAtGTZ,EAuGI,2BAvGJA,EAANW,EAAA,CANNE,EAAc,CACb,KAAMT,EAAkB,YACxB,aAAc,CACZU,CACF,CACF,CAAC,GACYd,GCjGN,SAASe,IAA+B,CAC7CC,EAAoBC,CAAgB,CACtC",
6
- "names": ["TooltipAdapter", "BaseAdapter", "component", "getShadowElement", "TOOLTIP_CONSTANTS", "role", "setDefaultAria", "randomChars", "_a", "_b", "_c", "_d", "element", "id", "type", "listener", "opts", "OVERLAY_CONSTANTS", "boundaryEl", "locateElementById", "rootNode", "targetEl", "BaseClass", "WithLongpressListener", "TooltipFoundation", "_adapter", "TOOLTIP_CONSTANTS", "triggerTypes", "canUserHoverElements", "triggerInitializers", "triggerType", "triggerRemovers", "_evt", "evt", "value", "element", "_a", "type", "template", "styles", "BaseClass", "WithDefaultAria", "WithElementInternals", "BaseComponent", "TooltipComponent", "attachShadowTemplate", "TooltipFoundation", "TooltipAdapter", "TOOLTIP_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "coerceNumber", "coerceStringToArray", "__decorateClass", "FoundationProperty", "CustomElement", "OverlayComponent", "defineTooltipComponent", "defineCustomElement", "TooltipComponent"]
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{a as Ne}from"./chunk.6GSVB5NB.js";import{a as k}from"./chunk.NVUMRW44.js";import{a as Ie,b as Se}from"./chunk.UQQQSJVM.js";import{a as Te,e as ke,f as Ae,h as ue,j as Le,k as Oe}from"./chunk.BIQTNLIF.js";import{a as le,c as Pe,f as ce,g as Ee,i as _e,r as Ce,s as pe}from"./chunk.DCCFF327.js";import{b as xe,k as te}from"./chunk.J2M2MXP2.js";import{a as P,b as C,c as q,d as T}from"./chunk.M3QDAYD2.js";function z(e){return e.split("-")[0]}function j(e){return e.split("-")[1]}function de(e){return["top","bottom"].includes(z(e))?"x":"y"}function Fe(e){return e==="y"?"height":"width"}function Re(e,t,o){let{reference:n,floating:i}=e,a=n.x+n.width/2-i.width/2,s=n.y+n.height/2-i.height/2,r=de(t),l=Fe(r),f=n[l]/2-i[l]/2,p=r==="x",c;switch(z(t)){case"top":c={x:a,y:n.y-i.height};break;case"bottom":c={x:a,y:n.y+n.height};break;case"right":c={x:n.x+n.width,y:s};break;case"left":c={x:n.x-i.width,y:s};break;default:c={x:n.x,y:n.y}}switch(j(t)){case"start":c[r]-=f*(o&&p?-1:1);break;case"end":c[r]+=f*(o&&p?-1:1)}return c}var We=async(e,t,o)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=o,r=await(s.isRTL==null?void 0:s.isRTL(t)),l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:p}=Re(l,n,r),c=n,d={},b=0;for(let m=0;m<a.length;m++){let{name:g,fn:y}=a[m],{x:h,y:w,data:x,reset:v}=await y({x:f,y:p,initialPlacement:n,placement:c,strategy:i,middlewareData:d,rects:l,platform:s,elements:{reference:e,floating:t}});f=h!=null?h:f,p=w!=null?w:p,d=C(P({},d),{[g]:P(P({},d[g]),x)}),v&&b<=50&&(b++,typeof v=="object"&&(v.placement&&(c=v.placement),v.rects&&(l=v.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):v.rects),{x:f,y:p}=Re(l,c,r)),m=-1)}return{x:f,y:p,placement:c,strategy:i,middlewareData:d}};function nt(e){return typeof e!="number"?function(t){return P({top:0,right:0,bottom:0,left:0},t)}(e):{top:e,right:e,bottom:e,left:e}}function X(e){return C(P({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}async function $(e,t){var o;t===void 0&&(t={});let{x:n,y:i,platform:a,rects:s,elements:r,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:c="floating",altBoundary:d=!1,padding:b=0}=t,m=nt(b),g=r[d?c==="floating"?"reference":"floating":c],y=X(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(g)))==null||o?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(r.floating)),boundary:f,rootBoundary:p,strategy:l})),h=X(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:c==="floating"?C(P({},s.floating),{x:n,y:i}):s.reference,offsetParent:await(a.getOffsetParent==null?void 0:a.getOffsetParent(r.floating)),strategy:l}):s[c]);return{top:y.top-h.top+m.top,bottom:h.bottom-y.bottom+m.bottom,left:y.left-h.left+m.left,right:h.right-y.right+m.right}}var it=Math.min,rt=Math.max;function Me(e,t,o){return rt(e,it(t,o))}var at={left:"right",right:"left",bottom:"top",top:"bottom"};function oe(e){return e.replace(/left|right|bottom|top/g,t=>at[t])}function Be(e,t,o){o===void 0&&(o=!1);let n=j(e),i=de(e),a=Fe(i),s=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=oe(s)),{main:s,cross:oe(s)}}var st={start:"end",end:"start"};function fe(e){return e.replace(/start|end/g,t=>st[t])}var ze=["top","right","bottom","left"],lt=ze.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),me=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,i,a,s;let{x:r,y:l,rects:f,middlewareData:p,placement:c,platform:d,elements:b}=t,H=e,{alignment:m=null,allowedPlacements:g=lt,autoAlignment:y=!0}=H,h=q(H,["alignment","allowedPlacements","autoAlignment"]),w=function(L,G,Y){return(L?[...Y.filter(O=>j(O)===L),...Y.filter(O=>j(O)!==L)]:Y.filter(O=>z(O)===O)).filter(O=>!L||j(O)===L||!!G&&fe(O)!==O)}(m,y,g),x=await $(t,h),v=(o=(n=p.autoPlacement)==null?void 0:n.index)!=null?o:0,A=w[v];if(A==null)return{};let{main:M,cross:Z}=Be(A,f,await(d.isRTL==null?void 0:d.isRTL(b.floating)));if(c!==A)return{x:r,y:l,reset:{placement:w[0]}};let ee=[x[z(A)],x[M],x[Z]],_=[...(i=(a=p.autoPlacement)==null?void 0:a.overflows)!=null?i:[],{placement:A,overflows:ee}],I=w[v+1];if(I)return{data:{index:v+1,overflows:_},reset:{placement:I}};let F=_.slice().sort((L,G)=>L.overflows[0]-G.overflows[0]),V=(s=F.find(L=>{let{overflows:G}=L;return G.every(Y=>Y<=0)}))==null?void 0:s.placement,W=V!=null?V:F[0].placement;return W!==c?{data:{index:v+1,overflows:_},reset:{placement:W}}:{}}}},he=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o;let{placement:n,middlewareData:i,rects:a,initialPlacement:s,platform:r,elements:l}=t,ee=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:c,fallbackStrategy:d="bestFit",flipAlignment:b=!0}=ee,m=q(ee,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),g=z(n),y=c||(g===s||!b?[oe(s)]:function(_){let I=oe(_);return[fe(_),I,fe(I)]}(s)),h=[s,...y],w=await $(t,m),x=[],v=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&x.push(w[g]),p){let{main:_,cross:I}=Be(n,a,await(r.isRTL==null?void 0:r.isRTL(l.floating)));x.push(w[_],w[I])}if(v=[...v,{placement:n,overflows:x}],!x.every(_=>_<=0)){var A,M;let _=((A=(M=i.flip)==null?void 0:M.index)!=null?A:0)+1,I=h[_];if(I)return{data:{index:_,overflows:v},reset:{placement:I}};let F="bottom";switch(d){case"bestFit":{var Z;let V=(Z=v.map(W=>[W,W.overflows.filter(H=>H>0).reduce((H,L)=>H+L,0)]).sort((W,H)=>W[1]-H[1])[0])==null?void 0:Z[0].placement;V&&(F=V);break}case"initialPlacement":F=s}if(n!==F)return{reset:{placement:F}}}return{}}}};function He(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function De(e){return ze.some(t=>e[t]>=0)}var be=function(e){let n=e===void 0?{}:e,{strategy:t="referenceHidden"}=n,o=q(n,["strategy"]);return{name:"hide",async fn(i){let{rects:a}=i;switch(t){case"referenceHidden":{let s=He(await $(i,C(P({},o),{elementContext:"reference"})),a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:De(s)}}}case"escaped":{let s=He(await $(i,C(P({},o),{altBoundary:!0})),a.floating);return{data:{escapedOffsets:s,escaped:De(s)}}}default:return{}}}}};function ct(e){return e==="x"?"y":"x"}var ge=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:i}=t,y=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:r={fn:h=>{let{x:w,y:x}=h;return{x:w,y:x}}}}=y,l=q(y,["mainAxis","crossAxis","limiter"]),f={x:o,y:n},p=await $(t,l),c=de(z(i)),d=ct(c),b=f[c],m=f[d];if(a){let h=c==="y"?"bottom":"right";b=Me(b+p[c==="y"?"top":"left"],b,b-p[h])}if(s){let h=d==="y"?"bottom":"right";m=Me(m+p[d==="y"?"top":"left"],m,m-p[h])}let g=r.fn(C(P({},t),{[c]:b,[d]:m}));return C(P({},g),{data:{x:g.x-o,y:g.y-n}})}}};function qe(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function R(e){if(e==null)return window;if(!qe(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function J(e){return R(e).getComputedStyle(e)}function S(e){return qe(e)?"":e?(e.nodeName||"").toLowerCase():""}function je(){let e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function N(e){return e instanceof R(e).HTMLElement}function U(e){return e instanceof R(e).Element}function ye(e){return typeof ShadowRoot=="undefined"?!1:e instanceof R(e).ShadowRoot||e instanceof ShadowRoot}function ie(e){let{overflow:t,overflowX:o,overflowY:n}=J(e);return/auto|scroll|overlay|hidden/.test(t+n+o)}function pt(e){return["table","td","th"].includes(S(e))}function $e(e){let t=/firefox/i.test(je()),o=J(e);return o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].includes(o.willChange)||t&&o.willChange==="filter"||t&&!!o.filter&&o.filter!=="none"}function Xe(){return!/^((?!chrome|android).)*safari/i.test(je())}var Ue=Math.min,Q=Math.max,ne=Math.round;function B(e,t,o){var n,i,a,s;t===void 0&&(t=!1),o===void 0&&(o=!1);let r=e.getBoundingClientRect(),l=1,f=1;t&&N(e)&&(l=e.offsetWidth>0&&ne(r.width)/e.offsetWidth||1,f=e.offsetHeight>0&&ne(r.height)/e.offsetHeight||1);let p=U(e)?R(e):window,c=!Xe()&&o,d=(r.left+(c&&(n=(i=p.visualViewport)==null?void 0:i.offsetLeft)!=null?n:0))/l,b=(r.top+(c&&(a=(s=p.visualViewport)==null?void 0:s.offsetTop)!=null?a:0))/f,m=r.width/l,g=r.height/f;return{width:m,height:g,top:b,right:d+m,bottom:b+g,left:d,x:d,y:b}}function D(e){return(t=e,(t instanceof R(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function re(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Qe(e){return B(D(e)).left+re(e).scrollLeft}function ut(e,t,o){let n=N(t),i=D(t),a=B(e,n&&function(l){let f=B(l);return ne(f.width)!==l.offsetWidth||ne(f.height)!==l.offsetHeight}(t),o==="fixed"),s={scrollLeft:0,scrollTop:0},r={x:0,y:0};if(n||!n&&o!=="fixed")if((S(t)!=="body"||ie(i))&&(s=re(t)),N(t)){let l=B(t,!0);r.x=l.x+t.clientLeft,r.y=l.y+t.clientTop}else i&&(r.x=Qe(i));return{x:a.left+s.scrollLeft-r.x,y:a.top+s.scrollTop-r.y,width:a.width,height:a.height}}function Je(e){return S(e)==="html"?e:e.assignedSlot||e.parentNode||(ye(e)?e.host:null)||D(e)}function Ve(e){return N(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function ve(e){let t=R(e),o=Ve(e);for(;o&&pt(o)&&getComputedStyle(o).position==="static";)o=Ve(o);return o&&(S(o)==="html"||S(o)==="body"&&getComputedStyle(o).position==="static"&&!$e(o))?t:o||function(n){let i=Je(n);for(ye(i)&&(i=i.host);N(i)&&!["html","body"].includes(S(i));){if($e(i))return i;i=i.parentNode}return null}(e)||t}function Ge(e){if(N(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=B(e);return{width:t.width,height:t.height}}function Ke(e){let t=Je(e);return["html","body","#document"].includes(S(t))?e.ownerDocument.body:N(t)&&ie(t)?t:Ke(t)}function Ze(e,t){var o;t===void 0&&(t=[]);let n=Ke(e),i=n===((o=e.ownerDocument)==null?void 0:o.body),a=R(n),s=i?[a].concat(a.visualViewport||[],ie(n)?n:[]):n,r=t.concat(s);return i?r:r.concat(Ze(s))}function Ye(e,t,o){return t==="viewport"?X(function(n,i){let a=R(n),s=D(n),r=a.visualViewport,l=s.clientWidth,f=s.clientHeight,p=0,c=0;if(r){l=r.width,f=r.height;let d=Xe();(d||!d&&i==="fixed")&&(p=r.offsetLeft,c=r.offsetTop)}return{width:l,height:f,x:p,y:c}}(e,o)):U(t)?function(n,i){let a=B(n,!1,i==="fixed"),s=a.top+n.clientTop,r=a.left+n.clientLeft;return{top:s,left:r,x:r,y:s,right:r+n.clientWidth,bottom:s+n.clientHeight,width:n.clientWidth,height:n.clientHeight}}(t,o):X(function(n){var i;let a=D(n),s=re(n),r=(i=n.ownerDocument)==null?void 0:i.body,l=Q(a.scrollWidth,a.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),f=Q(a.scrollHeight,a.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),p=-s.scrollLeft+Qe(n),c=-s.scrollTop;return J(r||a).direction==="rtl"&&(p+=Q(a.clientWidth,r?r.clientWidth:0)-l),{width:l,height:f,x:p,y:c}}(D(e)))}function ft(e){let t=Ze(e),o=["absolute","fixed"].includes(J(e).position)&&N(e)?ve(e):e;return U(o)?t.filter(n=>U(n)&&function(i,a){let s=a.getRootNode==null?void 0:a.getRootNode();if(i.contains(a))return!0;if(s&&ye(s)){let r=a;do{if(r&&i===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(n,o)&&S(n)!=="body"):[]}var dt={getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e,a=[...o==="clippingAncestors"?ft(t):[].concat(o),n],s=a[0],r=a.reduce((l,f)=>{let p=Ye(t,f,i);return l.top=Q(p.top,l.top),l.right=Ue(p.right,l.right),l.bottom=Ue(p.bottom,l.bottom),l.left=Q(p.left,l.left),l},Ye(t,s,i));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:o,strategy:n}=e,i=N(o),a=D(o);if(o===a)return t;let s={scrollLeft:0,scrollTop:0},r={x:0,y:0};if((i||!i&&n!=="fixed")&&((S(o)!=="body"||ie(a))&&(s=re(o)),N(o))){let l=B(o,!0);r.x=l.x+o.clientLeft,r.y=l.y+o.clientTop}return C(P({},t),{x:t.x-s.scrollLeft+r.x,y:t.y-s.scrollTop+r.y})},isElement:U,getDimensions:Ge,getOffsetParent:ve,getDocumentElement:D,getElementRects:e=>{let{reference:t,floating:o,strategy:n}=e;return{reference:ut(t,ve(o),n),floating:C(P({},Ge(o)),{x:0,y:0})}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>J(e).direction==="rtl"};var et=(e,t,o)=>We(e,t,P({platform:dt},o));var mt=({x:e,y:t})=>({name:"positionOffset",fn({x:o,y:n}){return{x:o+e,y:n+t}}});async function tt({element:e,targetElement:t,placement:o="bottom-start",offset:n,strategy:i="absolute",apply:a=!0,flip:s=!0,flipOptions:r={fallbackPlacements:["top-start","top","top-end","left-start","left","left-end","right-start","right","right-end"],fallbackStrategy:"initialPlacement"},auto:l=!1,autoOptions:f,shift:p=!0,shiftOptions:c,hide:d=!1,hideOptions:b,transform:m=!0,translateFunction:g="translate3d"}){var y;let h=[];n&&h.push(mt(n)),p&&h.push(ge(c)),s&&!l&&h.push(he(r)),l&&h.push(me(f)),d&&h.push(be(b));let{x:w,y:x,middlewareData:v}=await et(t,e,{strategy:i,placement:o,middleware:h}),A=!((y=v.hide)===null||y===void 0)&&y.referenceHidden?"hidden":"visible";if(a){let M={left:m?"0":`${w}px`,top:m?"0":`${x}px`,visibility:A};m&&(g==="translate"?M.transform=`translate(${Math.round(w)}px, ${Math.round(x)}px)`:M.transform=`translate3d(${Math.round(w)}px, ${Math.round(x)}px, 0)`),Object.assign(e.style,M)}return{x:w,y:x,visibility:A}}var K=`${Se}popup`,we={CONTAINER:"forge-popup",OPEN:"open",PLACEMENT:"placement",MANAGE_FOCUS:"manage-focus",ANIMATION_TYPE:"animation-type",STATIC:"static",HIDE_WHEN_CLIPPED:"hide-when-clipped",HOST:"forge-popup-host",INITIAL_FOCUS:"forge-popup-focus",CONSTRAIN_VIEWPORT_WIDTH:"constrain-viewport-width"},ht={OPEN:"forge-popup--open",OPENING:"forge-popup--opening",CLOSED:"forge-popup--closed",SELECT:"forge-popup--select"},bt={HOST:`.forge-popup-host, [${we.HOST}]`,CONTAINER:".forge-popup",INITIAL_FOCUS:`[${we.INITIAL_FOCUS}]`},gt={OPEN:`${K}-open`,CLOSE:`${K}-close`,POSITION:`${K}-position`,BLUR:`${K}-blur`},vt={ANIMATION_DURATION:120},u={elementName:K,classes:ht,selectors:bt,attributes:we,events:gt,numbers:vt},ot=(n=>(n.None="none",n.Menu="menu",n.Dropdown="dropdown",n))(ot||{});var ae=class extends Ne{constructor(o){super(o);this._rootElement=Ae(o,u.selectors.CONTAINER)}setAttribute(o,n,i){i?i.setAttribute(o,n):this._component.setAttribute(o,n)}removeAttribute(o,n){n?n.removeAttribute(o):this._component.removeAttribute(o)}async positionPopup(){let o={element:this._component,targetElement:this._component.targetElement,placement:this._component.placement,hide:this._component.hideWhenClipped,flipOptions:{fallbackPlacements:["top-start","top","top-end","left-start","left","left-end","right-start","right","right-end"],fallbackStrategy:"initialPlacement"}},n=this._component.fallbackPlacements;n!=null&&n.length&&(o.flipOptions=C(P({},o.flipOptions),{fallbackPlacements:n})),this._component.offset&&(o.offset=this._component.offset);let i=await tt(o);ue(this._component,u.events.POSITION,i)}addPopup(o,n){this._component.setAttribute("tabindex","-1"),this._component.setAttribute(u.attributes.HOST,""),this._component.style.top="0",this._component.style.left="0";let i=o.ownerDocument||document;this._hostElement=Le(u.selectors.HOST,o)||i.body,this._hostElement.appendChild(this._component),this.positionPopup(),n&&(this._previouslyFocusedElement=pe(this._component.ownerDocument),this._component.focus())}removePopup(o){_e(this._component),o&&window.requestAnimationFrame(()=>{if(this._previouslyFocusedElement){let n=pe(this._component.ownerDocument);(!n||n===document.body)&&this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=void 0}}),this._hostElement=void 0}manageWindowEvents(o=!1){o?(this._windowEventCallback=n=>this._windowInteraction(n),window.addEventListener("scroll",this._windowEventCallback,!0),window.addEventListener("resize",this._windowEventCallback,!0)):this._windowEventCallback&&(window.removeEventListener("scroll",this._windowEventCallback,!0),window.removeEventListener("resize",this._windowEventCallback,!0),this._windowEventCallback=void 0)}dispatchEvent(o,n,i,a){return this._component.targetElement?!ue(this._component.targetElement,o,n,i,a):!1}getCloseEventData(){return{popup:this._component}}addClass(o){ce(o,this._rootElement)}removeClass(o){Ee(o,this._rootElement)}setAnimationEndListener(o,n){window.requestAnimationFrame(()=>{n&&n.length&&ce(n,this._rootElement),this._rootElement.addEventListener("transitionend",o)})}removeEventListener(o,n){this._rootElement.removeEventListener(o,n)}setBlurListener(o){return Pe(this._component,n=>{this._component.contains(n)||o()},!0)}trySetInitialFocus(){window.requestAnimationFrame(()=>{let o=Ce(this._component,u.selectors.INITIAL_FOCUS);o&&o.length&&o[o.length-1].focus()})}_windowInteraction(o){if(this._component.open)switch(o.type){case"scroll":case"resize":this.positionPopup();break;default:break}}};var se=class{constructor(t){this._adapter=t;this._placement="bottom-start";this._fallbackPlacements=[];this._open=!1;this._manageFocus=!1;this._animationType="none";this._static=!1;this._hideWhenClipped=!1;this._blurListener=()=>this._onBlur()}disconnect(){this.open&&(this.open=!1)}_openPopup(){this._animationType!=="none"?(this._applyOpenAnimation(),this._animationType==="dropdown"&&this._adapter.addClass(u.classes.SELECT)):this._adapter.addClass(u.classes.OPEN),this._adapter.setAttribute(u.attributes.OPEN,""),this._adapter.addPopup(this.targetElement,this._manageFocus),this._adapter.trySetInitialFocus(),this._destroyBlurListener&&this._destroyBlurListener(),this._static||(this._destroyBlurListener=this._adapter.setBlurListener(this._blurListener)),this._adapter.manageWindowEvents(!0),this._adapter.dispatchEvent(u.events.OPEN)}_closePopup(){this._destroyBlurListener&&(this._destroyBlurListener(),this._destroyBlurListener=void 0),this._animationType!=="none"?this._applyCloseAnimation():this._destroyPopup()}_destroyPopup(){this._adapter.manageWindowEvents(!1),this._adapter.removePopup(this._manageFocus);let t=this._adapter.getCloseEventData();this._adapter.dispatchEvent(u.events.CLOSE,t),this._adapter.emitHostEvent(u.events.CLOSE,t),this._adapter.removeAttribute(u.attributes.OPEN)}_applyOpenAnimation(){switch(this._animationType){case"dropdown":case"menu":this._adapter.addClass(u.classes.OPENING);let t=o=>{o.propertyName==="transform"&&(this._adapter.removeClass(u.classes.OPENING),this._adapter.removeEventListener("transitionend",t))};this._adapter.setAnimationEndListener(t,u.classes.OPEN);break}}_applyCloseAnimation(){switch(this._animationType){case"dropdown":case"menu":this._adapter.removeClass(u.classes.OPEN),this._adapter.addClass(u.classes.CLOSED);let t=n=>{n.propertyName==="opacity"&&(o&&clearTimeout(o),this._destroyPopup())};this._adapter.setAnimationEndListener(t);let o=setTimeout(()=>this._destroyPopup(),u.numbers.ANIMATION_DURATION);break}}_onBlur(){this._adapter.dispatchEvent(u.events.BLUR,void 0,!0,!0)||(this.open=!1)}_applyOpen(){if(this._open){if(!this.targetElement||!le(this.targetElement))throw new Error("targetElement on Popup component must be an HTMLElement");typeof this._openCallback=="function"?this._executeOpenCallback():this._openPopup()}else typeof this._closeCallback=="function"?this._executeCloseCallback():this._closePopup()}async _executeOpenCallback(){try{await Promise.resolve(this._openCallback())!==!1?this._openPopup():this._open=!1}catch(t){this._open=!1}}async _executeCloseCallback(){try{await Promise.resolve(this._closeCallback())!==!1?this._closePopup():this._open=!0}catch(t){this._open=!0}}get targetElement(){return this._targetElement}set targetElement(t){if(!t||!le(t))throw new Error("targetElement on Popup component must be an HTMLElement");this._targetElement=t}get placement(){return this._placement}set placement(t){this._placement!==t&&(this._placement=t||"bottom-start",this._adapter.setAttribute(u.attributes.PLACEMENT,this._placement))}get fallbackPlacements(){return this._fallbackPlacements}set fallbackPlacements(t){this._fallbackPlacements=Array.isArray(t)?t:[]}get open(){return this._open}set open(t){t=!!t,this._open!==t&&(this._open=t,this._applyOpen())}get manageFocus(){return this._manageFocus}set manageFocus(t){this._manageFocus!==t&&(this._manageFocus=t)}get animationType(){return this._animationType}set animationType(t){this._animationType!==t&&(this._animationType=t)}get static(){return this._static}set static(t){this._static!==t&&(this._static=t,this._static&&this._destroyBlurListener&&(this._destroyBlurListener(),this._destroyBlurListener=void 0))}get hideWhenClipped(){return this._hideWhenClipped}set hideWhenClipped(t){this._hideWhenClipped!==t&&(this._hideWhenClipped=t)}get offset(){var t;return(t=this._offset)!=null?t:{x:0,y:0}}set offset(t){var o,n;t?this._offset={x:(o=t.x)!=null?o:0,y:(n=t.y)!=null?n:0}:this._offset=void 0,this._open&&this._adapter.positionPopup()}get openCallback(){return this._openCallback}set openCallback(t){this._openCallback=t}get closeCallback(){return this._closeCallback}set closeCallback(t){this._closeCallback=t}position(){this._adapter.positionPopup()}};var yt='<template><div class="forge-popup" part="root"><slot></slot></div></template>',wt=".forge-popup{min-width:112px;min-width:var(--min-width,112px);background-color:#fff;background-color:var(--forge-theme-elevated-surface,#fff);-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-webkit-box-shadow:var(--forge-theme-popup-elevation,0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12));box-shadow:var(--forge-theme-popup-elevation,0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12));color:#000;color:var(--mdc-theme-on-surface,#000);border-radius:4px;border-radius:var(--mdc-shape-medium,4px);display:none;-webkit-box-sizing:border-box;box-sizing:border-box;min-width:100%;margin:0;padding:0;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 24px 0;transform-origin:50% 24px 0;opacity:0;will-change:transform,opacity;-webkit-transition:opacity 120ms linear,-webkit-transform 120ms cubic-bezier(0, 0, .2, 1);transition:opacity 120ms linear,-webkit-transform 120ms cubic-bezier(0, 0, .2, 1);transition:opacity 120ms linear,transform 120ms cubic-bezier(0, 0, .2, 1);transition:opacity 120ms linear,transform 120ms cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms cubic-bezier(0, 0, .2, 1)}.forge-popup::-webkit-scrollbar{height:var(--forge-scrollbar-height,16px);width:var(--forge-scrollbar-width,16px)}.forge-popup::-webkit-scrollbar-track{background-color:var(--forge-scrollbar-track-container,var(--forge-theme-surface-container-low,#ebebeb))}.forge-popup::-webkit-scrollbar-track:hover{background-color:var(--forge-scrollbar-track-container-hover,var(--forge-theme-surface-container-low,#ebebeb))}.forge-popup::-webkit-scrollbar-corner{background-color:var(--forge-scrollbar-track-container,var(--forge-theme-surface-container-low,#ebebeb))}.forge-popup::-webkit-scrollbar-thumb{height:var(--forge-scrollbar-thumb-min-height,32px);width:var(--forge-scrollbar-thumb-min-width,32px);border-radius:var(--forge-scrollbar-border-radius,var(--forge-shape-full,9999px));border-width:var(--forge-scrollbar-border-width,3px);border-style:solid;border-color:transparent;background-color:var(--forge-scrollbar-thumb-container,var(--forge-theme-surface-container-medium,#c2c2c2));background-clip:content-box}.forge-popup::-webkit-scrollbar-thumb:hover{background-color:var(--forge-scrollbar-thumb-container-hover,var(--forge-theme-surface-container-high,#9e9e9e))}.forge-popup--opening{display:block;-webkit-transform:scale(.8);transform:scale(.8);opacity:0}.forge-popup--closed{display:block;opacity:0;-webkit-transition:opacity 120ms linear;transition:opacity 120ms linear}.forge-popup--open{display:block;-webkit-transform:scale(1);transform:scale(1);opacity:1}.forge-popup--select{border-top-left-radius:0;border-top-right-radius:0;max-height:256px;overflow-y:auto}:host{z-index:10;z-index:var(--forge-z-index-popup,10);border-radius:4px;border-radius:var(--mdc-shape-medium,4px);display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;position:absolute;overflow:visible}:host([hidden]){display:none}:host([constrain-viewport-width]){max-width:100vw}",E=class extends Oe{constructor(){super();ke(this,yt,wt),this._foundation=new se(new ae(this))}static get observedAttributes(){return[u.attributes.OPEN,u.attributes.PLACEMENT,u.attributes.MANAGE_FOCUS,u.attributes.ANIMATION_TYPE,u.attributes.STATIC,u.attributes.HIDE_WHEN_CLIPPED]}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(o,n,i){switch(o){case u.attributes.OPEN:this.open=xe(i);break;case u.attributes.PLACEMENT:this.placement=i;break;case u.attributes.MANAGE_FOCUS:this.manageFocus=te(i);break;case u.attributes.ANIMATION_TYPE:this.animationType=i;break;case u.attributes.STATIC:this.static=te(i);break;case u.attributes.HIDE_WHEN_CLIPPED:this.hideWhenClipped=te(i);break}}position(){this._foundation.position()}};T([k()],E.prototype,"targetElement",2),T([k()],E.prototype,"placement",2),T([k()],E.prototype,"fallbackPlacements",2),T([k()],E.prototype,"open",2),T([k()],E.prototype,"manageFocus",2),T([k()],E.prototype,"animationType",2),T([k()],E.prototype,"static",2),T([k()],E.prototype,"hideWhenClipped",2),T([k()],E.prototype,"openCallback",2),T([k()],E.prototype,"closeCallback",2),T([k()],E.prototype,"offset",2),E=T([Ie({name:u.elementName})],E);function mo(){Te(E)}export{u as a,ot as b,ae as c,se as d,E as e,mo as f};
7
- //# sourceMappingURL=chunk.G2HRYIIZ.js.map