@tylertech/forge 3.0.0-next.21 → 3.0.0-next.23

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 (908) hide show
  1. package/custom-elements.json +33600 -39264
  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.PDDBNHVU.js → chunk.2GUWHBUU.js} +2 -2
  33. package/dist/esm/chunks/{chunk.PDDBNHVU.js.map → chunk.2GUWHBUU.js.map} +2 -2
  34. package/dist/esm/chunks/chunk.2W23MOPP.js +7 -0
  35. package/dist/esm/chunks/chunk.2W23MOPP.js.map +7 -0
  36. package/dist/esm/chunks/{chunk.OSBNFFCI.js → chunk.32APLNN2.js} +2 -2
  37. package/dist/esm/chunks/chunk.32APLNN2.js.map +7 -0
  38. package/dist/esm/chunks/chunk.37B332ZK.js +7 -0
  39. package/dist/esm/chunks/{chunk.SOKORSUV.js.map → chunk.37B332ZK.js.map} +3 -3
  40. package/dist/esm/chunks/chunk.3II7OT2I.js +7 -0
  41. package/dist/esm/chunks/chunk.3II7OT2I.js.map +7 -0
  42. package/dist/esm/chunks/{chunk.IZRURH7C.js → chunk.3KAKJGUS.js} +2 -2
  43. package/dist/esm/chunks/chunk.3PMONORO.js +7 -0
  44. package/dist/esm/chunks/chunk.3PMONORO.js.map +7 -0
  45. package/dist/esm/chunks/chunk.473WRJ5G.js +7 -0
  46. package/dist/esm/chunks/{chunk.USQEIRST.js → chunk.5MB6CTBA.js} +2 -2
  47. package/dist/esm/chunks/{chunk.YS5JZHJ6.js → chunk.5QIWLZG3.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.4NABD6XG.js → chunk.6VS3LYAF.js} +2 -2
  52. package/dist/esm/chunks/chunk.72BKSMAZ.js +7 -0
  53. package/dist/esm/chunks/{chunk.3TIBP6QT.js.map → chunk.72BKSMAZ.js.map} +3 -3
  54. package/dist/esm/chunks/chunk.77C7S7ZS.js +7 -0
  55. package/dist/esm/chunks/chunk.77C7S7ZS.js.map +7 -0
  56. package/dist/esm/chunks/chunk.7AAICE77.js +7 -0
  57. package/dist/esm/chunks/chunk.7AAICE77.js.map +7 -0
  58. package/dist/esm/chunks/chunk.7IPAW4D2.js +7 -0
  59. package/dist/esm/chunks/{chunk.MCR34SZQ.js.map → chunk.7IPAW4D2.js.map} +1 -1
  60. package/dist/esm/chunks/chunk.7RLY2O3H.js +7 -0
  61. package/dist/esm/chunks/chunk.7RLY2O3H.js.map +7 -0
  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.AOSBUJWW.js → chunk.A7BCLPP4.js} +2 -2
  65. package/dist/esm/chunks/chunk.AFWWND2C.js +7 -0
  66. package/dist/esm/chunks/chunk.AFWWND2C.js.map +7 -0
  67. package/dist/esm/chunks/{chunk.7UBIT4NP.js → chunk.AG6IRMLZ.js} +2 -2
  68. package/dist/esm/chunks/{chunk.A4UH52SA.js → chunk.AGLI4WR4.js} +2 -2
  69. package/dist/esm/chunks/chunk.AIJK3CTV.js +12 -0
  70. package/dist/esm/chunks/chunk.AIJK3CTV.js.map +7 -0
  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.CLYGTLXN.js +7 -0
  86. package/dist/esm/chunks/chunk.CLYGTLXN.js.map +7 -0
  87. package/dist/esm/chunks/chunk.DJSHVUEM.js +18 -0
  88. package/dist/esm/chunks/{chunk.MGLWXAZO.js.map → chunk.DJSHVUEM.js.map} +4 -4
  89. package/dist/esm/chunks/chunk.DKERDHXH.js +7 -0
  90. package/dist/esm/chunks/{chunk.JVWJHSPM.js.map → chunk.DKERDHXH.js.map} +1 -1
  91. package/dist/esm/chunks/{chunk.UEYPCCFG.js → chunk.ENUKGA2U.js} +2 -2
  92. package/dist/esm/chunks/chunk.EO3GP6DP.js +7 -0
  93. package/dist/esm/chunks/chunk.EO3GP6DP.js.map +7 -0
  94. package/dist/esm/chunks/chunk.FLBYVCQ6.js +7 -0
  95. package/dist/esm/chunks/chunk.FLBYVCQ6.js.map +7 -0
  96. package/dist/esm/chunks/chunk.FLF5RTYO.js +7 -0
  97. package/dist/esm/chunks/chunk.FLF5RTYO.js.map +7 -0
  98. package/dist/esm/chunks/chunk.GBAVJILM.js +7 -0
  99. package/dist/esm/chunks/chunk.GBAVJILM.js.map +7 -0
  100. package/dist/esm/chunks/chunk.GG7IQL46.js +7 -0
  101. package/dist/esm/chunks/{chunk.HBAC6E7O.js.map → chunk.GG7IQL46.js.map} +1 -1
  102. package/dist/esm/chunks/chunk.GIENHEMN.js +7 -0
  103. package/dist/esm/chunks/chunk.GIENHEMN.js.map +7 -0
  104. package/dist/esm/chunks/chunk.GRYO5XP2.js +7 -0
  105. package/dist/esm/chunks/chunk.GRYO5XP2.js.map +7 -0
  106. package/dist/esm/chunks/{chunk.FOSKVNVV.js → chunk.H4VQXV2H.js} +2 -2
  107. package/dist/esm/chunks/{chunk.FOSKVNVV.js.map → chunk.H4VQXV2H.js.map} +2 -2
  108. package/dist/esm/chunks/{chunk.GA6AO6FJ.js → chunk.H5RW3A4M.js} +2 -2
  109. package/dist/esm/chunks/chunk.HD2SLIL2.js +7 -0
  110. package/dist/esm/chunks/{chunk.V7ILFIOR.js.map → chunk.HD2SLIL2.js.map} +1 -1
  111. package/dist/esm/chunks/chunk.HG4IDRAC.js +7 -0
  112. package/dist/esm/chunks/chunk.HG4IDRAC.js.map +7 -0
  113. package/dist/esm/chunks/{chunk.CSOKFDFQ.js → chunk.HSADKCGS.js} +2 -2
  114. package/dist/esm/chunks/chunk.I7YON2TC.js +7 -0
  115. package/dist/esm/chunks/chunk.I7YON2TC.js.map +7 -0
  116. package/dist/esm/chunks/chunk.IEABOPNB.js +7 -0
  117. package/dist/esm/chunks/{chunk.22C7GQLX.js → chunk.IL4S57WO.js} +2 -2
  118. package/dist/esm/chunks/{chunk.HMJODLAS.js → chunk.IQYOLMPG.js} +2 -2
  119. package/dist/esm/chunks/{chunk.QG5EYBS3.js → chunk.J2Y5KPON.js} +2 -2
  120. package/dist/esm/chunks/{chunk.QG5EYBS3.js.map → chunk.J2Y5KPON.js.map} +2 -2
  121. package/dist/esm/chunks/{chunk.GTKYO6VB.js → chunk.JGURMVW7.js} +2 -2
  122. package/dist/esm/chunks/{chunk.YXHMD73U.js → chunk.K6GJNDTY.js} +2 -2
  123. package/dist/esm/chunks/{chunk.XYBVD3IE.js → chunk.KCCW4AMU.js} +2 -2
  124. package/dist/esm/chunks/{chunk.XYBVD3IE.js.map → chunk.KCCW4AMU.js.map} +2 -2
  125. package/dist/esm/chunks/{chunk.QUWEAFGI.js → chunk.KEOLH7G3.js} +2 -2
  126. package/dist/esm/chunks/chunk.KLU54MDQ.js +7 -0
  127. package/dist/esm/chunks/chunk.KLU54MDQ.js.map +7 -0
  128. package/dist/esm/chunks/chunk.KO6ODCZC.js +7 -0
  129. package/dist/esm/chunks/chunk.KO6ODCZC.js.map +7 -0
  130. package/dist/esm/chunks/chunk.L4QSPQDE.js +7 -0
  131. package/dist/esm/chunks/{chunk.DCCFF327.js.map → chunk.L4QSPQDE.js.map} +2 -2
  132. package/dist/esm/chunks/{chunk.BIQTNLIF.js → chunk.LNTTU2GL.js} +2 -2
  133. package/dist/esm/chunks/{chunk.7IJUN75W.js → chunk.LY2Z2Z7S.js} +2 -2
  134. package/dist/esm/chunks/{chunk.7IJUN75W.js.map → chunk.LY2Z2Z7S.js.map} +3 -3
  135. package/dist/esm/chunks/{chunk.2AM2BKEO.js → chunk.MFQRXVKO.js} +2 -2
  136. package/dist/esm/chunks/chunk.MFS7AVW6.js +7 -0
  137. package/dist/esm/chunks/chunk.MFS7AVW6.js.map +7 -0
  138. package/dist/esm/chunks/{chunk.JLSFTWPE.js → chunk.MTIPIEXA.js} +2 -2
  139. package/dist/esm/chunks/chunk.MX4JX4GT.js +7 -0
  140. package/dist/esm/chunks/{chunk.UOD3A7M4.js.map → chunk.MX4JX4GT.js.map} +1 -1
  141. package/dist/esm/chunks/chunk.NEQX2QVX.js +7 -0
  142. package/dist/esm/chunks/chunk.NEQX2QVX.js.map +7 -0
  143. package/dist/esm/chunks/chunk.NWVQ5HK2.js +7 -0
  144. package/dist/esm/chunks/{chunk.BETICEYY.js.map → chunk.NWVQ5HK2.js.map} +2 -2
  145. package/dist/esm/chunks/chunk.O5WAQQNR.js +7 -0
  146. package/dist/esm/chunks/{chunk.ZYKP23JP.js.map → chunk.O5WAQQNR.js.map} +2 -2
  147. package/dist/esm/chunks/{chunk.JSTCCUKZ.js → chunk.OEI35LFU.js} +2 -2
  148. package/dist/esm/chunks/chunk.OJ7JO4O6.js +7 -0
  149. package/dist/esm/chunks/chunk.OJ7JO4O6.js.map +7 -0
  150. package/dist/esm/chunks/{chunk.6GSVB5NB.js → chunk.OLFOVKQG.js} +2 -2
  151. package/dist/esm/chunks/chunk.OLFOVKQG.js.map +7 -0
  152. package/dist/esm/chunks/{chunk.IWVAI6XM.js → chunk.OOAJHLW4.js} +2 -2
  153. package/dist/esm/chunks/chunk.OOAJHLW4.js.map +7 -0
  154. package/dist/esm/chunks/chunk.OQHDHS2C.js +7 -0
  155. package/dist/esm/chunks/chunk.OQHDHS2C.js.map +7 -0
  156. package/dist/esm/chunks/{chunk.2537XOFQ.js → chunk.OREDK5MJ.js} +2 -2
  157. package/dist/esm/chunks/chunk.OVXEOEJF.js +7 -0
  158. package/dist/esm/chunks/chunk.OVXEOEJF.js.map +7 -0
  159. package/dist/esm/chunks/chunk.PC6TW5XE.js +7 -0
  160. package/dist/esm/chunks/chunk.PC6TW5XE.js.map +7 -0
  161. package/dist/esm/chunks/chunk.QCPV5DEG.js +7 -0
  162. package/dist/esm/chunks/{chunk.R3AWIPPK.js → chunk.QIZBZGYT.js} +2 -2
  163. package/dist/esm/chunks/{chunk.2XPAYTK4.js → chunk.QKTK5XUE.js} +2 -2
  164. package/dist/esm/chunks/chunk.QLGJS37N.js +7 -0
  165. package/dist/esm/chunks/chunk.QLGJS37N.js.map +7 -0
  166. package/dist/esm/chunks/{chunk.R66CYS27.js → chunk.QTY25OTN.js} +2 -2
  167. package/dist/esm/chunks/chunk.QUXMLWBJ.js +7 -0
  168. package/dist/esm/chunks/{chunk.BEUQVZKZ.js.map → chunk.QUXMLWBJ.js.map} +1 -1
  169. package/dist/esm/chunks/{chunk.BSV27GU7.js → chunk.QVATEY5S.js} +2 -2
  170. package/dist/esm/chunks/{chunk.FRTSXX33.js → chunk.RSYEG2RW.js} +2 -2
  171. package/dist/esm/chunks/{chunk.A6BIUNPW.js → chunk.RXBLU4OJ.js} +2 -2
  172. package/dist/esm/chunks/{chunk.FBDRM4YN.js → chunk.S7KEO2CH.js} +2 -2
  173. package/dist/esm/chunks/{chunk.XU3YSZPA.js → chunk.SQ3AZAHF.js} +2 -2
  174. package/dist/esm/chunks/{chunk.35MHQH7Z.js → chunk.SROEDYPL.js} +2 -2
  175. package/dist/esm/chunks/{chunk.SHBDQPPH.js → chunk.SZOZIJZI.js} +2 -2
  176. package/dist/esm/chunks/chunk.T7NWP7DB.js +7 -0
  177. package/dist/esm/chunks/chunk.T7NWP7DB.js.map +7 -0
  178. package/dist/esm/chunks/{chunk.PXRGQHWR.js → chunk.TQWZDM6T.js} +2 -2
  179. package/dist/esm/chunks/chunk.TSSZQPLE.js +7 -0
  180. package/dist/esm/chunks/{chunk.5UGN5FYV.js.map → chunk.TSSZQPLE.js.map} +2 -2
  181. package/dist/esm/chunks/chunk.U6J4VHU6.js +7 -0
  182. package/dist/esm/chunks/{chunk.STSAE2XP.js.map → chunk.U6J4VHU6.js.map} +1 -1
  183. package/dist/esm/chunks/{chunk.6JVMCBCR.js → chunk.UKBE2FMZ.js} +2 -2
  184. package/dist/esm/chunks/{chunk.MDDX4MJU.js → chunk.UPSXYWPD.js} +2 -2
  185. package/dist/esm/chunks/{chunk.MDDX4MJU.js.map → chunk.UPSXYWPD.js.map} +2 -2
  186. package/dist/esm/chunks/chunk.USTVZ6MZ.js +7 -0
  187. package/dist/esm/chunks/chunk.USTVZ6MZ.js.map +7 -0
  188. package/dist/esm/chunks/chunk.V6KUOCAR.js +7 -0
  189. package/dist/esm/chunks/chunk.V6KUOCAR.js.map +7 -0
  190. package/dist/esm/chunks/chunk.VGIRVTBJ.js +7 -0
  191. package/dist/esm/chunks/chunk.VGIRVTBJ.js.map +7 -0
  192. package/dist/esm/chunks/{chunk.4AEQ7KVU.js → chunk.VJZ7VDG5.js} +2 -2
  193. package/dist/esm/chunks/chunk.VL5RWSAV.js +7 -0
  194. package/dist/esm/chunks/chunk.VL5RWSAV.js.map +7 -0
  195. package/dist/esm/chunks/chunk.VRSPT7WX.js +7 -0
  196. package/dist/esm/chunks/{chunk.UQQQSJVM.js.map → chunk.VRSPT7WX.js.map} +3 -3
  197. package/dist/esm/chunks/chunk.W4HANHUO.js +7 -0
  198. package/dist/esm/chunks/{chunk.2W276VOR.js → chunk.WMJSYYXQ.js} +2 -2
  199. package/dist/esm/chunks/chunk.WXVVOFNK.js +7 -0
  200. package/dist/esm/chunks/chunk.WXVVOFNK.js.map +7 -0
  201. package/dist/esm/chunks/chunk.X77NKT6Z.js +7 -0
  202. package/dist/esm/chunks/chunk.X77NKT6Z.js.map +7 -0
  203. package/dist/esm/chunks/chunk.XZ23XHFE.js +7 -0
  204. package/dist/esm/chunks/chunk.XZ23XHFE.js.map +7 -0
  205. package/dist/esm/chunks/chunk.YNCTSMT6.js +7 -0
  206. package/dist/esm/chunks/chunk.YNCTSMT6.js.map +7 -0
  207. package/dist/esm/chunks/{chunk.YNXWVL4B.js → chunk.YPNSK2CK.js} +2 -2
  208. package/dist/esm/chunks/chunk.YRAEFQJW.js +7 -0
  209. package/dist/esm/chunks/{chunk.XAZ6EDIZ.js.map → chunk.YRAEFQJW.js.map} +3 -3
  210. package/dist/esm/chunks/chunk.YWJVZVZX.js +7 -0
  211. package/dist/esm/chunks/{chunk.6XLTVIUD.js → chunk.ZA7JY3AY.js} +2 -2
  212. package/dist/esm/chunks/chunk.ZG6YF2HI.js +7 -0
  213. package/dist/esm/chunks/{chunk.R6VPRRTT.js.map → chunk.ZG6YF2HI.js.map} +1 -1
  214. package/dist/esm/circular-progress/index.js +1 -1
  215. package/dist/esm/color-picker/index.js +1 -1
  216. package/dist/esm/core/base/index.js +1 -1
  217. package/dist/esm/core/delegates/index.js +1 -1
  218. package/dist/esm/core/index.js +1 -1
  219. package/dist/esm/core/utils/index.js +1 -1
  220. package/dist/esm/date-picker/index.js +1 -1
  221. package/dist/esm/date-range-picker/index.js +1 -1
  222. package/dist/esm/deprecated/button/index.js +1 -1
  223. package/dist/esm/deprecated/index.js +1 -1
  224. package/dist/esm/dialog/index.js +1 -1
  225. package/dist/esm/divider/index.js +1 -1
  226. package/dist/esm/drawer/base/index.js +1 -1
  227. package/dist/esm/drawer/drawer/index.js +1 -1
  228. package/dist/esm/drawer/index.js +1 -1
  229. package/dist/esm/drawer/mini-drawer/index.js +1 -1
  230. package/dist/esm/drawer/modal-drawer/index.js +1 -1
  231. package/dist/esm/expansion-panel/index.js +1 -1
  232. package/dist/esm/{field-next → field}/base/index.js +1 -1
  233. package/dist/esm/field/index.js +7 -0
  234. package/dist/esm/file-picker/index.js +1 -1
  235. package/dist/esm/floating-action-button/index.js +1 -1
  236. package/dist/esm/focus-indicator/index.js +1 -1
  237. package/dist/esm/icon/index.js +1 -1
  238. package/dist/esm/icon-button/index.js +1 -1
  239. package/dist/esm/index.js +1 -1
  240. package/dist/esm/inline-message/index.js +1 -1
  241. package/dist/esm/keyboard-shortcut/index.js +1 -1
  242. package/dist/esm/label/index.js +1 -1
  243. package/dist/esm/label-value/index.js +1 -1
  244. package/dist/esm/linear-progress/index.js +1 -1
  245. package/dist/esm/list/index.js +1 -1
  246. package/dist/esm/list/list/index.js +1 -1
  247. package/dist/esm/list/list-item/index.js +1 -1
  248. package/dist/esm/list-dropdown/index.js +1 -1
  249. package/dist/esm/menu/index.js +1 -1
  250. package/dist/esm/open-icon/index.js +1 -1
  251. package/dist/esm/overlay/index.js +1 -1
  252. package/dist/esm/page-state/index.js +1 -1
  253. package/dist/esm/paginator/index.js +1 -1
  254. package/dist/esm/popover/index.js +1 -1
  255. package/dist/esm/profile-card/index.js +1 -1
  256. package/dist/esm/quantity-field/index.js +1 -1
  257. package/dist/esm/radio/index.js +1 -1
  258. package/dist/esm/radio/radio/index.js +1 -1
  259. package/dist/esm/radio/radio-group/index.js +1 -1
  260. package/dist/esm/scaffold/index.js +1 -1
  261. package/dist/esm/select/core/index.js +1 -1
  262. package/dist/esm/select/index.js +1 -1
  263. package/dist/esm/select/option/index.js +1 -1
  264. package/dist/esm/select/option-group/index.js +1 -1
  265. package/dist/esm/select/select/index.js +1 -1
  266. package/dist/esm/select/select-dropdown/index.js +1 -1
  267. package/dist/esm/skeleton/index.js +1 -1
  268. package/dist/esm/slider/index.js +1 -1
  269. package/dist/esm/split-button/index.js +1 -1
  270. package/dist/esm/split-view/index.js +1 -1
  271. package/dist/esm/split-view/split-view/index.js +1 -1
  272. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  273. package/dist/esm/stack/index.js +1 -1
  274. package/dist/esm/state-layer/index.js +1 -1
  275. package/dist/esm/stepper/index.js +1 -1
  276. package/dist/esm/stepper/step/index.js +1 -1
  277. package/dist/esm/stepper/stepper/index.js +1 -1
  278. package/dist/esm/switch/index.js +1 -1
  279. package/dist/esm/table/index.js +1 -1
  280. package/dist/esm/tabs/index.js +1 -1
  281. package/dist/esm/tabs/tab/index.js +1 -1
  282. package/dist/esm/tabs/tab-bar/index.js +1 -1
  283. package/dist/esm/text-field/index.js +1 -1
  284. package/dist/esm/time-picker/index.js +1 -1
  285. package/dist/esm/toast/index.js +1 -1
  286. package/dist/esm/toolbar/index.js +1 -1
  287. package/dist/esm/tooltip/index.js +1 -1
  288. package/dist/esm/view-switcher/index.js +1 -1
  289. package/dist/esm/view-switcher/view/index.js +1 -1
  290. package/dist/forge-core.css +1 -1
  291. package/dist/forge-dark.css +1 -1
  292. package/dist/forge.css +1 -1
  293. package/esm/app-bar/profile-button/app-bar-profile-button-adapter.d.ts +6 -6
  294. package/esm/app-bar/profile-button/app-bar-profile-button-adapter.js +18 -10
  295. package/esm/app-bar/profile-button/app-bar-profile-button-foundation.d.ts +3 -3
  296. package/esm/app-bar/profile-button/app-bar-profile-button-foundation.js +13 -17
  297. package/esm/app-bar/profile-button/app-bar-profile-button.d.ts +4 -4
  298. package/esm/app-bar/profile-button/app-bar-profile-button.js +3 -3
  299. package/esm/autocomplete/autocomplete-adapter.d.ts +6 -2
  300. package/esm/autocomplete/autocomplete-adapter.js +27 -23
  301. package/esm/autocomplete/autocomplete-constants.d.ts +2 -2
  302. package/esm/autocomplete/autocomplete-constants.js +1 -2
  303. package/esm/autocomplete/autocomplete-foundation.js +3 -5
  304. package/esm/autocomplete/autocomplete.js +2 -2
  305. package/esm/backdrop/backdrop-constants.d.ts +10 -13
  306. package/esm/backdrop/backdrop-constants.js +12 -17
  307. package/esm/backdrop/backdrop.d.ts +17 -29
  308. package/esm/backdrop/backdrop.js +79 -50
  309. package/esm/backdrop/index.d.ts +0 -2
  310. package/esm/backdrop/index.js +0 -2
  311. package/esm/bottom-sheet/bottom-sheet-adapter.d.ts +2 -2
  312. package/esm/bottom-sheet/bottom-sheet-adapter.js +12 -5
  313. package/esm/bottom-sheet/bottom-sheet-foundation.js +1 -1
  314. package/esm/bottom-sheet/bottom-sheet.js +2 -2
  315. package/esm/busy-indicator/busy-indicator-adapter.d.ts +2 -6
  316. package/esm/busy-indicator/busy-indicator-adapter.js +8 -6
  317. package/esm/busy-indicator/busy-indicator-foundation.js +1 -1
  318. package/esm/button/base/base-button-foundation.js +2 -1
  319. package/esm/calendar/calendar-constants.d.ts +1 -1
  320. package/esm/calendar/calendar-constants.js +1 -1
  321. package/esm/calendar/calendar-dropdown/calendar-dropdown.d.ts +6 -4
  322. package/esm/calendar/calendar-dropdown/calendar-dropdown.js +21 -25
  323. package/esm/calendar/calendar-menu/calendar-menu-constants.d.ts +1 -1
  324. package/esm/calendar/calendar-menu/calendar-menu-constants.js +1 -1
  325. package/esm/calendar/calendar-menu/calendar-menu.js +3 -3
  326. package/esm/calendar/calendar.js +3 -3
  327. package/esm/card/card-constants.d.ts +2 -5
  328. package/esm/card/card-constants.js +4 -10
  329. package/esm/card/card.d.ts +10 -5
  330. package/esm/card/card.js +14 -16
  331. package/esm/checkbox/checkbox-adapter.d.ts +0 -34
  332. package/esm/checkbox/checkbox-adapter.js +10 -105
  333. package/esm/checkbox/checkbox-constants.d.ts +13 -4
  334. package/esm/checkbox/checkbox-constants.js +8 -11
  335. package/esm/checkbox/checkbox-foundation.d.ts +5 -11
  336. package/esm/checkbox/checkbox-foundation.js +24 -35
  337. package/esm/checkbox/checkbox.d.ts +24 -24
  338. package/esm/checkbox/checkbox.js +65 -83
  339. package/esm/chip-field/chip-field-adapter.d.ts +48 -22
  340. package/esm/chip-field/chip-field-adapter.js +130 -30
  341. package/esm/chip-field/chip-field-component-delegate.js +1 -1
  342. package/esm/chip-field/chip-field-constants.d.ts +18 -16
  343. package/esm/chip-field/chip-field-constants.js +19 -20
  344. package/esm/chip-field/chip-field-foundation.d.ts +26 -16
  345. package/esm/chip-field/chip-field-foundation.js +128 -74
  346. package/esm/chip-field/chip-field.d.ts +9 -6
  347. package/esm/chip-field/chip-field.js +24 -11
  348. package/esm/chips/chip/chip.js +1 -1
  349. package/esm/constants.d.ts +2 -0
  350. package/esm/constants.js +2 -0
  351. package/esm/core/base/base-adapter.d.ts +1 -0
  352. package/esm/core/controllers/move-controller.d.ts +32 -0
  353. package/esm/core/controllers/move-controller.js +40 -0
  354. package/esm/core/mixins/interactions/moveable/with-moveable.d.ts +30 -0
  355. package/esm/core/mixins/interactions/moveable/with-moveable.js +131 -0
  356. package/esm/core/utils/dismissible-stack.d.ts +6 -0
  357. package/esm/core/utils/dismissible-stack.js +9 -0
  358. package/esm/core/utils/feature-detection.d.ts +5 -0
  359. package/esm/core/utils/feature-detection.js +7 -0
  360. package/esm/core/utils/index.d.ts +2 -0
  361. package/esm/core/utils/index.js +2 -0
  362. package/esm/core/utils/svg-utils.d.ts +1 -1
  363. package/esm/core/utils/svg-utils.js +2 -2
  364. package/esm/date-picker/date-picker.d.ts +0 -2
  365. package/esm/date-picker/date-picker.js +2 -4
  366. package/esm/date-range-picker/date-range-picker-adapter.js +1 -1
  367. package/esm/date-range-picker/date-range-picker-component-delegate.d.ts +1 -1
  368. package/esm/date-range-picker/date-range-picker.js +2 -2
  369. package/esm/dialog/dialog-adapter.d.ts +44 -62
  370. package/esm/dialog/dialog-adapter.js +107 -135
  371. package/esm/dialog/dialog-constants.d.ts +51 -28
  372. package/esm/dialog/dialog-constants.js +36 -33
  373. package/esm/dialog/dialog-foundation.d.ts +59 -75
  374. package/esm/dialog/dialog-foundation.js +218 -360
  375. package/esm/dialog/dialog.d.ts +127 -46
  376. package/esm/dialog/dialog.js +161 -60
  377. package/esm/drawer/modal-drawer/modal-drawer-adapter.js +1 -1
  378. package/esm/drawer/modal-drawer/modal-drawer-foundation.js +5 -6
  379. package/esm/{field-next → field}/base/base-field-foundation.js +14 -0
  380. package/esm/{field-next/field-foundation.d.ts → field/base/with-base-field.d.ts} +24 -39
  381. package/esm/field/base/with-base-field.js +210 -0
  382. package/esm/field/field-adapter.d.ts +49 -92
  383. package/esm/field/field-adapter.js +114 -154
  384. package/esm/field/field-constants.d.ts +82 -30
  385. package/esm/field/field-constants.js +51 -29
  386. package/esm/field/field-foundation.d.ts +78 -48
  387. package/esm/field/field-foundation.js +171 -273
  388. package/esm/field/field.d.ts +202 -24
  389. package/esm/field/field.js +267 -37
  390. package/esm/focus-indicator/focus-indicator-constants.d.ts +5 -0
  391. package/esm/focus-indicator/focus-indicator-constants.js +7 -2
  392. package/esm/focus-indicator/focus-indicator-foundation.d.ts +5 -0
  393. package/esm/focus-indicator/focus-indicator-foundation.js +21 -3
  394. package/esm/focus-indicator/focus-indicator.d.ts +5 -0
  395. package/esm/focus-indicator/focus-indicator.js +9 -7
  396. package/esm/icon/icon-adapter.d.ts +4 -2
  397. package/esm/icon/icon-adapter.js +13 -9
  398. package/esm/icon/icon-constants.d.ts +14 -2
  399. package/esm/icon/icon-constants.js +3 -1
  400. package/esm/icon/icon-foundation.d.ts +6 -2
  401. package/esm/icon/icon-foundation.js +50 -18
  402. package/esm/icon/icon-registry.d.ts +8 -2
  403. package/esm/icon/icon-registry.js +15 -2
  404. package/esm/icon/icon-utils.d.ts +6 -3
  405. package/esm/icon/icon-utils.js +6 -7
  406. package/esm/icon/icon.d.ts +35 -4
  407. package/esm/icon/icon.js +44 -18
  408. package/esm/icon/index.js +0 -6
  409. package/esm/icon-button/icon-button-component-delegate.d.ts +2 -2
  410. package/esm/index.d.ts +1 -4
  411. package/esm/index.js +2 -9
  412. package/esm/label-value/index.d.ts +0 -2
  413. package/esm/label-value/index.js +0 -2
  414. package/esm/label-value/label-value-constants.d.ts +7 -12
  415. package/esm/label-value/label-value-constants.js +7 -17
  416. package/esm/label-value/label-value.d.ts +44 -16
  417. package/esm/label-value/label-value.js +78 -36
  418. package/esm/list/list/list.d.ts +2 -3
  419. package/esm/list/list/list.js +4 -5
  420. package/esm/list/list-item/list-item.d.ts +1 -0
  421. package/esm/list/list-item/list-item.js +2 -1
  422. package/esm/list-dropdown/list-dropdown-adapter.d.ts +3 -1
  423. package/esm/list-dropdown/list-dropdown-adapter.js +24 -9
  424. package/esm/list-dropdown/list-dropdown-constants.d.ts +6 -5
  425. package/esm/list-dropdown/list-dropdown-foundation.d.ts +2 -2
  426. package/esm/list-dropdown/list-dropdown-foundation.js +3 -5
  427. package/esm/list-dropdown/list-dropdown-utils.d.ts +3 -3
  428. package/esm/list-dropdown/list-dropdown-utils.js +11 -19
  429. package/esm/list-dropdown/list-dropdown.d.ts +2 -2
  430. package/esm/list-dropdown/list-dropdown.js +1 -1
  431. package/esm/menu/menu-adapter.d.ts +4 -2
  432. package/esm/menu/menu-adapter.js +8 -2
  433. package/esm/menu/menu-foundation.d.ts +11 -10
  434. package/esm/menu/menu-foundation.js +9 -6
  435. package/esm/menu/menu.d.ts +8 -7
  436. package/esm/menu/menu.js +2 -2
  437. package/esm/overlay/overlay-adapter.d.ts +0 -1
  438. package/esm/overlay/overlay-adapter.js +1 -2
  439. package/esm/paginator/paginator.js +1 -1
  440. package/esm/popover/popover-adapter.d.ts +9 -0
  441. package/esm/popover/popover-adapter.js +41 -3
  442. package/esm/popover/popover-constants.d.ts +17 -0
  443. package/esm/popover/popover-constants.js +11 -6
  444. package/esm/popover/popover-foundation.d.ts +7 -1
  445. package/esm/popover/popover-foundation.js +35 -7
  446. package/esm/popover/popover.d.ts +15 -1
  447. package/esm/popover/popover.js +28 -15
  448. package/esm/radio/core/radio-group-manager.d.ts +18 -1
  449. package/esm/radio/core/radio-group-manager.js +27 -6
  450. package/esm/radio/radio/radio-adapter.js +4 -2
  451. package/esm/radio/radio/radio-component-delegate.d.ts +38 -0
  452. package/esm/radio/radio/radio-component-delegate.js +88 -1
  453. package/esm/radio/radio/radio-constants.d.ts +11 -0
  454. package/esm/radio/radio/radio-constants.js +3 -1
  455. package/esm/radio/radio/radio-foundation.js +3 -2
  456. package/esm/radio/radio/radio.d.ts +8 -3
  457. package/esm/radio/radio/radio.js +18 -19
  458. package/esm/radio/radio-group/radio-group-constants.d.ts +3 -0
  459. package/esm/radio/radio-group/radio-group-constants.js +3 -1
  460. package/esm/radio/radio-group/radio-group.js +5 -5
  461. package/esm/scaffold/scaffold-constants.d.ts +6 -0
  462. package/esm/scaffold/scaffold-constants.js +7 -1
  463. package/esm/scaffold/scaffold.d.ts +30 -2
  464. package/esm/scaffold/scaffold.js +43 -4
  465. package/esm/select/core/base-select-adapter.d.ts +5 -3
  466. package/esm/select/core/base-select-adapter.js +10 -9
  467. package/esm/select/core/base-select-constants.d.ts +11 -0
  468. package/esm/select/core/base-select-constants.js +1 -0
  469. package/esm/select/core/base-select-foundation.js +3 -3
  470. package/esm/select/core/base-select.d.ts +3 -3
  471. package/esm/select/select/select-adapter.d.ts +14 -60
  472. package/esm/select/select/select-adapter.js +52 -111
  473. package/esm/select/select/select-constants.d.ts +16 -14
  474. package/esm/select/select/select-constants.js +8 -16
  475. package/esm/select/select/select-foundation.d.ts +12 -58
  476. package/esm/select/select/select-foundation.js +45 -240
  477. package/esm/select/select/select.d.ts +17 -27
  478. package/esm/select/select/select.js +54 -62
  479. package/esm/select/select-dropdown/select-dropdown-adapter.d.ts +2 -2
  480. package/esm/select/select-dropdown/select-dropdown-adapter.js +1 -1
  481. package/esm/select/select-dropdown/select-dropdown.d.ts +0 -2
  482. package/esm/select/select-dropdown/select-dropdown.js +2 -4
  483. package/esm/slider/slider.d.ts +2 -2
  484. package/esm/slider/slider.js +2 -2
  485. package/esm/split-view/split-view/split-view.js +1 -1
  486. package/esm/split-view/split-view-panel/split-view-panel-adapter.d.ts +5 -10
  487. package/esm/split-view/split-view-panel/split-view-panel-adapter.js +7 -15
  488. package/esm/split-view/split-view-panel/split-view-panel-constants.d.ts +3 -3
  489. package/esm/split-view/split-view-panel/split-view-panel-constants.js +3 -3
  490. package/esm/split-view/split-view-panel/split-view-panel-foundation.js +0 -1
  491. package/esm/split-view/split-view-panel/split-view-panel-utils.js +2 -2
  492. package/esm/split-view/split-view-panel/split-view-panel.d.ts +0 -2
  493. package/esm/split-view/split-view-panel/split-view-panel.js +6 -6
  494. package/esm/stepper/step/step-adapter.d.ts +2 -9
  495. package/esm/stepper/step/step-adapter.js +3 -18
  496. package/esm/stepper/step/step-constants.js +21 -21
  497. package/esm/stepper/step/step-foundation.js +0 -2
  498. package/esm/stepper/step/step.d.ts +53 -0
  499. package/esm/stepper/step/step.js +60 -3
  500. package/esm/stepper/stepper/stepper-constants.js +9 -9
  501. package/esm/stepper/stepper/stepper.js +1 -1
  502. package/esm/switch/switch-adapter.d.ts +0 -32
  503. package/esm/switch/switch-adapter.js +15 -107
  504. package/esm/switch/switch-component-delegate.js +1 -1
  505. package/esm/switch/switch-constants.d.ts +24 -14
  506. package/esm/switch/switch-constants.js +11 -14
  507. package/esm/switch/switch-foundation.d.ts +5 -11
  508. package/esm/switch/switch-foundation.js +25 -31
  509. package/esm/switch/switch.d.ts +19 -19
  510. package/esm/switch/switch.js +59 -81
  511. package/esm/text-field/text-field-adapter.d.ts +2 -2
  512. package/esm/text-field/text-field-adapter.js +5 -2
  513. package/esm/text-field/text-field-foundation.d.ts +2 -2
  514. package/esm/text-field/text-field-foundation.js +2 -2
  515. package/esm/text-field/text-field.d.ts +1 -1
  516. package/esm/text-field/text-field.js +2 -2
  517. package/esm/time-picker/time-picker-adapter.d.ts +6 -2
  518. package/esm/time-picker/time-picker-adapter.js +7 -3
  519. package/esm/time-picker/time-picker-foundation.js +10 -10
  520. package/esm/time-picker/time-picker.js +2 -2
  521. package/esm/toast/toast-adapter.d.ts +18 -69
  522. package/esm/toast/toast-adapter.js +24 -121
  523. package/esm/toast/toast-constants.d.ts +25 -36
  524. package/esm/toast/toast-constants.js +20 -40
  525. package/esm/toast/toast-foundation.d.ts +22 -37
  526. package/esm/toast/toast-foundation.js +92 -92
  527. package/esm/toast/toast.d.ts +83 -24
  528. package/esm/toast/toast.js +126 -29
  529. package/esm/tooltip/tooltip-adapter.d.ts +1 -0
  530. package/esm/tooltip/tooltip-foundation.js +3 -0
  531. package/esm/tooltip/tooltip.d.ts +3 -1
  532. package/esm/tooltip/tooltip.js +4 -0
  533. package/package.json +1 -6
  534. package/styles/backdrop/_animations.scss +24 -0
  535. package/styles/backdrop/_core.scss +41 -0
  536. package/styles/backdrop/_token-utils.scss +30 -0
  537. package/styles/backdrop/backdrop.scss +38 -11
  538. package/{esm/radio/radio-group/radio-group-component-delegate.js → styles/backdrop/index.scss} +1 -0
  539. package/styles/bottom-sheet/_mixins.scss +3 -8
  540. package/styles/bottom-sheet/bottom-sheet.scss +0 -4
  541. package/styles/calendar/calendar-menu/calendar-menu.scss +1 -1
  542. package/styles/calendar/calendar.scss +1 -1
  543. package/styles/card/_core.scss +35 -0
  544. package/styles/card/_token-utils.scss +30 -0
  545. package/styles/card/card.scss +37 -3
  546. package/{esm/radio/radio-group/radio-group-component-delegate.d.ts → styles/card/index.scss} +1 -0
  547. package/styles/checkbox/_core.scss +9 -20
  548. package/styles/checkbox/checkbox.scss +2 -8
  549. package/styles/chip-field/_core.scss +21 -17
  550. package/styles/chip-field/_token-utils.scss +30 -0
  551. package/styles/chip-field/chip-field.scss +68 -3
  552. package/{dist/popup/forge-popup.css → styles/chip-field/index.scss} +1 -1
  553. package/styles/chips/chip/_core.scss +1 -1
  554. package/styles/core/styles/tokens/backdrop/_tokens.scss +29 -0
  555. package/styles/core/styles/tokens/card/_tokens.scss +33 -0
  556. package/styles/core/styles/tokens/checkbox/_tokens.scss +5 -4
  557. package/styles/core/styles/tokens/chip-field/_tokens.scss +16 -0
  558. package/styles/core/styles/tokens/dialog/_tokens.scss +82 -0
  559. package/styles/core/styles/tokens/field/_tokens.scss +3 -1
  560. package/styles/core/styles/tokens/icon/_tokens.scss +20 -0
  561. package/styles/core/styles/tokens/label-value/_tokens.scss +34 -0
  562. package/styles/core/styles/tokens/list/list/_tokens.scss +2 -3
  563. package/styles/core/styles/tokens/list/list-item/_tokens.scss +7 -4
  564. package/styles/core/styles/tokens/popover/_tokens.scss +29 -7
  565. package/styles/core/styles/tokens/radio/_tokens.scss +1 -1
  566. package/styles/core/styles/tokens/scaffold/_tokens.scss +18 -0
  567. package/styles/core/styles/tokens/select/_tokens.scss +18 -0
  568. package/styles/core/styles/tokens/stepper/step/_tokens.scss +62 -0
  569. package/styles/core/styles/tokens/switch/_tokens.scss +1 -1
  570. package/styles/core/styles/tokens/toast/_tokens.scss +39 -0
  571. package/styles/dialog/_animations.scss +82 -0
  572. package/styles/dialog/_core.scss +310 -0
  573. package/styles/dialog/_token-utils.scss +30 -0
  574. package/styles/dialog/dialog.scss +356 -6
  575. package/styles/dialog/forge-dialog-utils.scss +23 -6
  576. package/styles/dialog/index.scss +7 -0
  577. package/styles/{field-next → field}/_core.layout.scss +6 -4
  578. package/styles/field/_core.scss +200 -50
  579. package/styles/{field-next → field}/_core.shape.scss +5 -0
  580. package/styles/{field-next → field}/_core.variant.scss +1 -0
  581. package/styles/{field-next → field}/field.scss +39 -12
  582. package/styles/forge-core.scss +2 -6
  583. package/styles/forge.scss +0 -4
  584. package/styles/icon/_core.scss +27 -0
  585. package/styles/icon/_token-utils.scss +30 -0
  586. package/styles/icon/icon.scss +27 -12
  587. package/styles/icon/index.scss +6 -0
  588. package/styles/label-value/_core.scss +85 -0
  589. package/styles/label-value/_token-utils.scss +30 -0
  590. package/styles/label-value/index.scss +6 -0
  591. package/styles/label-value/label-value.scss +71 -3
  592. package/styles/list/list/_core.scss +6 -2
  593. package/styles/list/list/list.scss +4 -0
  594. package/styles/list/list-item/_core.scss +3 -0
  595. package/styles/popover/_animations.scss +30 -0
  596. package/styles/popover/_core.scss +43 -6
  597. package/styles/popover/popover.scss +227 -170
  598. package/styles/scaffold/_core.scss +98 -0
  599. package/styles/scaffold/_token-utils.scss +30 -0
  600. package/styles/scaffold/index.scss +6 -0
  601. package/styles/scaffold/scaffold.scss +85 -5
  602. package/{dist/esm/chunks/chunk.WF2MFLG4.js → styles/select/index.scss} +1 -1
  603. package/styles/select/select/_core.scss +31 -15
  604. package/styles/select/select/_token-utils.scss +31 -0
  605. package/styles/select/select/select.scss +50 -8
  606. package/styles/split-view/split-view/split-view.scss +0 -1
  607. package/styles/split-view/split-view-panel/_mixins.scss +1 -0
  608. package/styles/split-view/split-view-panel/split-view-panel.scss +7 -1
  609. package/styles/stepper/step/_core.scss +391 -0
  610. package/styles/stepper/step/_token-utils.scss +31 -0
  611. package/styles/stepper/step/step.scss +261 -81
  612. package/styles/stepper/stepper/_core.scss +49 -0
  613. package/styles/stepper/stepper/stepper.scss +38 -4
  614. package/styles/switch/_core.scss +3 -2
  615. package/styles/theme/_theme-dark.scss +8 -8
  616. package/styles/toast/_animations.scss +42 -0
  617. package/styles/toast/_core.scss +73 -0
  618. package/styles/toast/_token-utils.scss +30 -0
  619. package/styles/toast/index.scss +6 -0
  620. package/styles/toast/toast.scss +173 -6
  621. package/styles/utils/_mixins-core.scss +5 -9
  622. package/dist/dialog/forge-dialog.css +0 -6
  623. package/dist/esm/chunks/chunk.24MZM3AY.js +0 -7
  624. package/dist/esm/chunks/chunk.24MZM3AY.js.map +0 -7
  625. package/dist/esm/chunks/chunk.3L77JY5H.js +0 -7
  626. package/dist/esm/chunks/chunk.3TIBP6QT.js +0 -7
  627. package/dist/esm/chunks/chunk.3U222LE4.js +0 -7
  628. package/dist/esm/chunks/chunk.45PPQY45.js +0 -177
  629. package/dist/esm/chunks/chunk.45PPQY45.js.map +0 -7
  630. package/dist/esm/chunks/chunk.4UU6PWR2.js +0 -7
  631. package/dist/esm/chunks/chunk.4UU6PWR2.js.map +0 -7
  632. package/dist/esm/chunks/chunk.5A34DJLZ.js +0 -7
  633. package/dist/esm/chunks/chunk.5A34DJLZ.js.map +0 -7
  634. package/dist/esm/chunks/chunk.5UGN5FYV.js +0 -7
  635. package/dist/esm/chunks/chunk.5UZ2DEW3.js +0 -7
  636. package/dist/esm/chunks/chunk.5UZ2DEW3.js.map +0 -7
  637. package/dist/esm/chunks/chunk.656X22EF.js +0 -7
  638. package/dist/esm/chunks/chunk.656X22EF.js.map +0 -7
  639. package/dist/esm/chunks/chunk.66YURKP2.js +0 -7
  640. package/dist/esm/chunks/chunk.66YURKP2.js.map +0 -7
  641. package/dist/esm/chunks/chunk.6GSVB5NB.js.map +0 -7
  642. package/dist/esm/chunks/chunk.AFJ7QEVI.js +0 -7
  643. package/dist/esm/chunks/chunk.AFJ7QEVI.js.map +0 -7
  644. package/dist/esm/chunks/chunk.BETICEYY.js +0 -7
  645. package/dist/esm/chunks/chunk.BEUQVZKZ.js +0 -7
  646. package/dist/esm/chunks/chunk.BMQAVBWZ.js +0 -7
  647. package/dist/esm/chunks/chunk.BMQAVBWZ.js.map +0 -7
  648. package/dist/esm/chunks/chunk.CIUPY66Y.js +0 -7
  649. package/dist/esm/chunks/chunk.CIUPY66Y.js.map +0 -7
  650. package/dist/esm/chunks/chunk.CSCZRSDT.js +0 -7
  651. package/dist/esm/chunks/chunk.CSCZRSDT.js.map +0 -7
  652. package/dist/esm/chunks/chunk.CWBDPBYO.js +0 -7
  653. package/dist/esm/chunks/chunk.CWBDPBYO.js.map +0 -7
  654. package/dist/esm/chunks/chunk.D7RH43XD.js +0 -7
  655. package/dist/esm/chunks/chunk.D7RH43XD.js.map +0 -7
  656. package/dist/esm/chunks/chunk.DCCFF327.js +0 -7
  657. package/dist/esm/chunks/chunk.EO3HELQ2.js +0 -15
  658. package/dist/esm/chunks/chunk.FB4MXEIW.js +0 -7
  659. package/dist/esm/chunks/chunk.FB4MXEIW.js.map +0 -7
  660. package/dist/esm/chunks/chunk.G2HRYIIZ.js +0 -7
  661. package/dist/esm/chunks/chunk.G2HRYIIZ.js.map +0 -7
  662. package/dist/esm/chunks/chunk.G3GTO5ZC.js +0 -7
  663. package/dist/esm/chunks/chunk.G3GTO5ZC.js.map +0 -7
  664. package/dist/esm/chunks/chunk.GL2H6QOP.js +0 -7
  665. package/dist/esm/chunks/chunk.GL2H6QOP.js.map +0 -7
  666. package/dist/esm/chunks/chunk.HBAC6E7O.js +0 -7
  667. package/dist/esm/chunks/chunk.HYTFCFP6.js +0 -7
  668. package/dist/esm/chunks/chunk.HYTFCFP6.js.map +0 -7
  669. package/dist/esm/chunks/chunk.IM36A2ZI.js +0 -7
  670. package/dist/esm/chunks/chunk.IM36A2ZI.js.map +0 -7
  671. package/dist/esm/chunks/chunk.IWVAI6XM.js.map +0 -7
  672. package/dist/esm/chunks/chunk.JCEKCW4B.js +0 -7
  673. package/dist/esm/chunks/chunk.JCEKCW4B.js.map +0 -7
  674. package/dist/esm/chunks/chunk.JVWJHSPM.js +0 -7
  675. package/dist/esm/chunks/chunk.KDUH2DUE.js +0 -7
  676. package/dist/esm/chunks/chunk.KRKKMTXR.js +0 -7
  677. package/dist/esm/chunks/chunk.KRKKMTXR.js.map +0 -7
  678. package/dist/esm/chunks/chunk.LKA5HQQY.js +0 -7
  679. package/dist/esm/chunks/chunk.LKA5HQQY.js.map +0 -7
  680. package/dist/esm/chunks/chunk.MC3UAHWS.js +0 -7
  681. package/dist/esm/chunks/chunk.MC3UAHWS.js.map +0 -7
  682. package/dist/esm/chunks/chunk.MCR34SZQ.js +0 -7
  683. package/dist/esm/chunks/chunk.MGLWXAZO.js +0 -18
  684. package/dist/esm/chunks/chunk.MPUP6QAP.js +0 -7
  685. package/dist/esm/chunks/chunk.MZRAL4MY.js +0 -7
  686. package/dist/esm/chunks/chunk.MZRAL4MY.js.map +0 -7
  687. package/dist/esm/chunks/chunk.N632SJ7X.js +0 -7
  688. package/dist/esm/chunks/chunk.N632SJ7X.js.map +0 -7
  689. package/dist/esm/chunks/chunk.NHOGZDLN.js +0 -7
  690. package/dist/esm/chunks/chunk.NHOGZDLN.js.map +0 -7
  691. package/dist/esm/chunks/chunk.NIUX6DVF.js +0 -12
  692. package/dist/esm/chunks/chunk.NIUX6DVF.js.map +0 -7
  693. package/dist/esm/chunks/chunk.OSBNFFCI.js.map +0 -7
  694. package/dist/esm/chunks/chunk.OY3TG55O.js +0 -7
  695. package/dist/esm/chunks/chunk.OY3TG55O.js.map +0 -7
  696. package/dist/esm/chunks/chunk.QCRO5NSG.js +0 -7
  697. package/dist/esm/chunks/chunk.QCRO5NSG.js.map +0 -7
  698. package/dist/esm/chunks/chunk.QKYCMDLB.js +0 -7
  699. package/dist/esm/chunks/chunk.R6VPRRTT.js +0 -7
  700. package/dist/esm/chunks/chunk.RFCIELJM.js +0 -7
  701. package/dist/esm/chunks/chunk.RFCIELJM.js.map +0 -7
  702. package/dist/esm/chunks/chunk.RJC42RNR.js +0 -7
  703. package/dist/esm/chunks/chunk.RJC42RNR.js.map +0 -7
  704. package/dist/esm/chunks/chunk.SKBOB2BD.js +0 -7
  705. package/dist/esm/chunks/chunk.SKBOB2BD.js.map +0 -7
  706. package/dist/esm/chunks/chunk.SOKORSUV.js +0 -7
  707. package/dist/esm/chunks/chunk.STSAE2XP.js +0 -7
  708. package/dist/esm/chunks/chunk.SWKKDBO6.js +0 -7
  709. package/dist/esm/chunks/chunk.SWKKDBO6.js.map +0 -7
  710. package/dist/esm/chunks/chunk.SYKZ74SL.js +0 -7
  711. package/dist/esm/chunks/chunk.SYKZ74SL.js.map +0 -7
  712. package/dist/esm/chunks/chunk.UKVC23E5.js +0 -7
  713. package/dist/esm/chunks/chunk.UKVC23E5.js.map +0 -7
  714. package/dist/esm/chunks/chunk.UOD3A7M4.js +0 -7
  715. package/dist/esm/chunks/chunk.UQQQSJVM.js +0 -7
  716. package/dist/esm/chunks/chunk.V3X77TCO.js +0 -7
  717. package/dist/esm/chunks/chunk.V3X77TCO.js.map +0 -7
  718. package/dist/esm/chunks/chunk.V7ILFIOR.js +0 -7
  719. package/dist/esm/chunks/chunk.VBJ4WUVH.js +0 -7
  720. package/dist/esm/chunks/chunk.VBJ4WUVH.js.map +0 -7
  721. package/dist/esm/chunks/chunk.VZ2XONDI.js +0 -7
  722. package/dist/esm/chunks/chunk.VZ2XONDI.js.map +0 -7
  723. package/dist/esm/chunks/chunk.WAMFFIMP.js +0 -7
  724. package/dist/esm/chunks/chunk.WAMFFIMP.js.map +0 -7
  725. package/dist/esm/chunks/chunk.WBCQTZPS.js +0 -7
  726. package/dist/esm/chunks/chunk.WBCQTZPS.js.map +0 -7
  727. package/dist/esm/chunks/chunk.WBI34ZVP.js +0 -7
  728. package/dist/esm/chunks/chunk.WF2MFLG4.js.map +0 -7
  729. package/dist/esm/chunks/chunk.WPVGFQNY.js +0 -7
  730. package/dist/esm/chunks/chunk.WPVGFQNY.js.map +0 -7
  731. package/dist/esm/chunks/chunk.XAZ6EDIZ.js +0 -7
  732. package/dist/esm/chunks/chunk.XCI7O2KJ.js +0 -7
  733. package/dist/esm/chunks/chunk.XCI7O2KJ.js.map +0 -7
  734. package/dist/esm/chunks/chunk.XNJROSDZ.js +0 -7
  735. package/dist/esm/chunks/chunk.XNJROSDZ.js.map +0 -7
  736. package/dist/esm/chunks/chunk.Z6GRWPPN.js +0 -7
  737. package/dist/esm/chunks/chunk.Z6GRWPPN.js.map +0 -7
  738. package/dist/esm/chunks/chunk.ZLNI2M3F.js +0 -7
  739. package/dist/esm/chunks/chunk.ZLNI2M3F.js.map +0 -7
  740. package/dist/esm/chunks/chunk.ZSZFWZAI.js +0 -7
  741. package/dist/esm/chunks/chunk.ZSZFWZAI.js.map +0 -7
  742. package/dist/esm/chunks/chunk.ZYKP23JP.js +0 -7
  743. package/dist/esm/field-next/index.js +0 -7
  744. package/dist/esm/floating-label/index.js +0 -7
  745. package/dist/esm/floating-label/index.js.map +0 -7
  746. package/dist/esm/popup/index.js +0 -7
  747. package/dist/esm/popup/index.js.map +0 -7
  748. package/dist/esm/ripple/index.js +0 -7
  749. package/dist/esm/ripple/index.js.map +0 -7
  750. package/dist/floating-label/forge-floating-label.css +0 -6
  751. package/dist/form-field/forge-form-field.css +0 -6
  752. package/dist/ripple/forge-ripple.css +0 -6
  753. package/dist/scaffold/forge-scaffold.css +0 -6
  754. package/esm/backdrop/backdrop-adapter.d.ts +0 -36
  755. package/esm/backdrop/backdrop-adapter.js +0 -40
  756. package/esm/backdrop/backdrop-foundation.d.ts +0 -38
  757. package/esm/backdrop/backdrop-foundation.js +0 -82
  758. package/esm/field-next/field-adapter.d.ts +0 -56
  759. package/esm/field-next/field-adapter.js +0 -132
  760. package/esm/field-next/field-constants.d.ts +0 -95
  761. package/esm/field-next/field-constants.js +0 -64
  762. package/esm/field-next/field-foundation.js +0 -221
  763. package/esm/field-next/field.d.ts +0 -205
  764. package/esm/field-next/field.js +0 -287
  765. package/esm/floating-label/floating-label-adapter.d.ts +0 -23
  766. package/esm/floating-label/floating-label-adapter.js +0 -32
  767. package/esm/floating-label/floating-label-constants.d.ts +0 -13
  768. package/esm/floating-label/floating-label-constants.js +0 -14
  769. package/esm/floating-label/floating-label-foundation.d.ts +0 -20
  770. package/esm/floating-label/floating-label-foundation.js +0 -74
  771. package/esm/floating-label/floating-label.d.ts +0 -31
  772. package/esm/floating-label/floating-label.js +0 -34
  773. package/esm/floating-label/index.d.ts +0 -9
  774. package/esm/floating-label/index.js +0 -9
  775. package/esm/label-value/label-value-adapter.d.ts +0 -24
  776. package/esm/label-value/label-value-adapter.js +0 -47
  777. package/esm/label-value/label-value-foundation.d.ts +0 -33
  778. package/esm/label-value/label-value-foundation.js +0 -80
  779. package/esm/popup/index.d.ts +0 -10
  780. package/esm/popup/index.js +0 -14
  781. package/esm/popup/popup-adapter.d.ts +0 -45
  782. package/esm/popup/popup-adapter.js +0 -152
  783. package/esm/popup/popup-constants.d.ts +0 -55
  784. package/esm/popup/popup-constants.js +0 -53
  785. package/esm/popup/popup-foundation.d.ts +0 -72
  786. package/esm/popup/popup-foundation.js +0 -258
  787. package/esm/popup/popup.d.ts +0 -59
  788. package/esm/popup/popup.js +0 -102
  789. package/esm/ripple/forge-ripple.d.ts +0 -17
  790. package/esm/ripple/forge-ripple.js +0 -22
  791. package/esm/ripple/index.d.ts +0 -11
  792. package/esm/ripple/index.js +0 -15
  793. package/esm/ripple/ripple-adapter.d.ts +0 -23
  794. package/esm/ripple/ripple-adapter.js +0 -47
  795. package/esm/ripple/ripple-constants.d.ts +0 -15
  796. package/esm/ripple/ripple-constants.js +0 -19
  797. package/esm/ripple/ripple-foundation.d.ts +0 -30
  798. package/esm/ripple/ripple-foundation.js +0 -48
  799. package/esm/ripple/ripple.d.ts +0 -36
  800. package/esm/ripple/ripple.js +0 -65
  801. package/styles/backdrop/_mixins.scss +0 -31
  802. package/styles/backdrop/_variables.scss +0 -12
  803. package/styles/card/_mixins.scss +0 -47
  804. package/styles/card/_variables.scss +0 -9
  805. package/styles/chip-field/_base.scss +0 -299
  806. package/styles/chip-field/_mixins.scss +0 -26
  807. package/styles/chip-field/_selector.scss +0 -228
  808. package/styles/chip-field/_variables.scss +0 -76
  809. package/styles/dialog/_mixins.scss +0 -199
  810. package/styles/dialog/_variables.scss +0 -22
  811. package/styles/dialog/forge-dialog.scss +0 -8
  812. package/styles/field/_base.scss +0 -636
  813. package/styles/field/_selector.scss +0 -560
  814. package/styles/field/_utils.scss +0 -48
  815. package/styles/field/_variables.scss +0 -123
  816. package/styles/field-next/_core.scss +0 -213
  817. package/styles/floating-label/_mixins.scss +0 -291
  818. package/styles/floating-label/_variables.scss +0 -15
  819. package/styles/floating-label/forge-floating-label.scss +0 -8
  820. package/styles/form-field/_mixins.scss +0 -71
  821. package/styles/form-field/forge-form-field.scss +0 -8
  822. package/styles/icon/_mixins.scss +0 -37
  823. package/styles/icon/_variables.scss +0 -10
  824. package/styles/label-value/_mixins.scss +0 -205
  825. package/styles/label-value/_variables.scss +0 -12
  826. package/styles/popup/_mixins.scss +0 -86
  827. package/styles/popup/_variables.scss +0 -7
  828. package/styles/popup/forge-popup.scss +0 -8
  829. package/styles/popup/popup.scss +0 -20
  830. package/styles/ripple/forge-ripple.scss +0 -17
  831. package/styles/scaffold/_mixins.scss +0 -194
  832. package/styles/scaffold/forge-scaffold.scss +0 -43
  833. package/styles/select/select/_base.scss +0 -84
  834. package/styles/select/select/_mixins.scss +0 -25
  835. package/styles/select/select/_selector.scss +0 -90
  836. package/styles/select/select/_variables.scss +0 -16
  837. package/styles/stepper/step/_mixins.scss +0 -416
  838. package/styles/stepper/step/_variables.scss +0 -21
  839. package/styles/stepper/stepper/_mixins.scss +0 -113
  840. package/styles/toast/_mixins.scss +0 -242
  841. package/styles/toast/_variables.scss +0 -52
  842. /package/dist/esm/chunks/{chunk.IZRURH7C.js.map → chunk.3KAKJGUS.js.map} +0 -0
  843. /package/dist/esm/chunks/{chunk.KDUH2DUE.js.map → chunk.473WRJ5G.js.map} +0 -0
  844. /package/dist/esm/chunks/{chunk.USQEIRST.js.map → chunk.5MB6CTBA.js.map} +0 -0
  845. /package/dist/esm/chunks/{chunk.YS5JZHJ6.js.map → chunk.5QIWLZG3.js.map} +0 -0
  846. /package/dist/esm/chunks/{chunk.47U6GVGZ.js.map → chunk.5UOX22ML.js.map} +0 -0
  847. /package/dist/esm/chunks/{chunk.4NABD6XG.js.map → chunk.6VS3LYAF.js.map} +0 -0
  848. /package/dist/esm/chunks/{chunk.AOSBUJWW.js.map → chunk.A7BCLPP4.js.map} +0 -0
  849. /package/dist/esm/chunks/{chunk.7UBIT4NP.js.map → chunk.AG6IRMLZ.js.map} +0 -0
  850. /package/dist/esm/chunks/{chunk.A4UH52SA.js.map → chunk.AGLI4WR4.js.map} +0 -0
  851. /package/dist/esm/chunks/{chunk.WTUXAH7Z.js.map → chunk.AOVXNX7P.js.map} +0 -0
  852. /package/dist/esm/chunks/{chunk.AN2E2SSN.js.map → chunk.ASLHRT3N.js.map} +0 -0
  853. /package/dist/esm/chunks/{chunk.CBLUXYH2.js.map → chunk.BHE6Z5Y2.js.map} +0 -0
  854. /package/dist/esm/chunks/{chunk.2WRAXA3H.js.map → chunk.BQ52JYLA.js.map} +0 -0
  855. /package/dist/esm/chunks/{chunk.ROMRJIFR.js.map → chunk.CE35CVDV.js.map} +0 -0
  856. /package/dist/esm/chunks/{chunk.ZPXMKY72.js.map → chunk.CEGBMUSR.js.map} +0 -0
  857. /package/dist/esm/chunks/{chunk.GBGGUYTE.js.map → chunk.CFAI4K3E.js.map} +0 -0
  858. /package/dist/esm/chunks/{chunk.ZIGVO6FN.js.map → chunk.CGFSMACZ.js.map} +0 -0
  859. /package/dist/esm/chunks/{chunk.UEYPCCFG.js.map → chunk.ENUKGA2U.js.map} +0 -0
  860. /package/dist/esm/chunks/{chunk.GA6AO6FJ.js.map → chunk.H5RW3A4M.js.map} +0 -0
  861. /package/dist/esm/chunks/{chunk.CSOKFDFQ.js.map → chunk.HSADKCGS.js.map} +0 -0
  862. /package/dist/esm/chunks/{chunk.WBI34ZVP.js.map → chunk.IEABOPNB.js.map} +0 -0
  863. /package/dist/esm/chunks/{chunk.22C7GQLX.js.map → chunk.IL4S57WO.js.map} +0 -0
  864. /package/dist/esm/chunks/{chunk.HMJODLAS.js.map → chunk.IQYOLMPG.js.map} +0 -0
  865. /package/dist/esm/chunks/{chunk.GTKYO6VB.js.map → chunk.JGURMVW7.js.map} +0 -0
  866. /package/dist/esm/chunks/{chunk.YXHMD73U.js.map → chunk.K6GJNDTY.js.map} +0 -0
  867. /package/dist/esm/chunks/{chunk.QUWEAFGI.js.map → chunk.KEOLH7G3.js.map} +0 -0
  868. /package/dist/esm/chunks/{chunk.BIQTNLIF.js.map → chunk.LNTTU2GL.js.map} +0 -0
  869. /package/dist/esm/chunks/{chunk.2AM2BKEO.js.map → chunk.MFQRXVKO.js.map} +0 -0
  870. /package/dist/esm/chunks/{chunk.JLSFTWPE.js.map → chunk.MTIPIEXA.js.map} +0 -0
  871. /package/dist/esm/chunks/{chunk.JSTCCUKZ.js.map → chunk.OEI35LFU.js.map} +0 -0
  872. /package/dist/esm/chunks/{chunk.2537XOFQ.js.map → chunk.OREDK5MJ.js.map} +0 -0
  873. /package/dist/esm/chunks/{chunk.QKYCMDLB.js.map → chunk.QCPV5DEG.js.map} +0 -0
  874. /package/dist/esm/chunks/{chunk.R3AWIPPK.js.map → chunk.QIZBZGYT.js.map} +0 -0
  875. /package/dist/esm/chunks/{chunk.2XPAYTK4.js.map → chunk.QKTK5XUE.js.map} +0 -0
  876. /package/dist/esm/chunks/{chunk.R66CYS27.js.map → chunk.QTY25OTN.js.map} +0 -0
  877. /package/dist/esm/chunks/{chunk.BSV27GU7.js.map → chunk.QVATEY5S.js.map} +0 -0
  878. /package/dist/esm/chunks/{chunk.FRTSXX33.js.map → chunk.RSYEG2RW.js.map} +0 -0
  879. /package/dist/esm/chunks/{chunk.A6BIUNPW.js.map → chunk.RXBLU4OJ.js.map} +0 -0
  880. /package/dist/esm/chunks/{chunk.FBDRM4YN.js.map → chunk.S7KEO2CH.js.map} +0 -0
  881. /package/dist/esm/chunks/{chunk.XU3YSZPA.js.map → chunk.SQ3AZAHF.js.map} +0 -0
  882. /package/dist/esm/chunks/{chunk.35MHQH7Z.js.map → chunk.SROEDYPL.js.map} +0 -0
  883. /package/dist/esm/chunks/{chunk.SHBDQPPH.js.map → chunk.SZOZIJZI.js.map} +0 -0
  884. /package/dist/esm/chunks/{chunk.PXRGQHWR.js.map → chunk.TQWZDM6T.js.map} +0 -0
  885. /package/dist/esm/chunks/{chunk.6JVMCBCR.js.map → chunk.UKBE2FMZ.js.map} +0 -0
  886. /package/dist/esm/chunks/{chunk.4AEQ7KVU.js.map → chunk.VJZ7VDG5.js.map} +0 -0
  887. /package/dist/esm/chunks/{chunk.3L77JY5H.js.map → chunk.W4HANHUO.js.map} +0 -0
  888. /package/dist/esm/chunks/{chunk.2W276VOR.js.map → chunk.WMJSYYXQ.js.map} +0 -0
  889. /package/dist/esm/chunks/{chunk.YNXWVL4B.js.map → chunk.YPNSK2CK.js.map} +0 -0
  890. /package/dist/esm/chunks/{chunk.MPUP6QAP.js.map → chunk.YWJVZVZX.js.map} +0 -0
  891. /package/dist/esm/chunks/{chunk.6XLTVIUD.js.map → chunk.ZA7JY3AY.js.map} +0 -0
  892. /package/dist/esm/{field-next → field}/base/index.js.map +0 -0
  893. /package/dist/esm/{field-next → field}/index.js.map +0 -0
  894. /package/esm/{field-next → field}/base/base-field-adapter.d.ts +0 -0
  895. /package/esm/{field-next → field}/base/base-field-adapter.js +0 -0
  896. /package/esm/{field-next → field}/base/base-field-constants.d.ts +0 -0
  897. /package/esm/{field-next → field}/base/base-field-constants.js +0 -0
  898. /package/esm/{field-next → field}/base/base-field-foundation.d.ts +0 -0
  899. /package/esm/{field-next → field}/base/base-field.d.ts +0 -0
  900. /package/esm/{field-next → field}/base/base-field.js +0 -0
  901. /package/esm/{field-next → field}/base/index.d.ts +0 -0
  902. /package/esm/{field-next → field}/base/index.js +0 -0
  903. /package/esm/{field-next → field}/index.d.ts +0 -0
  904. /package/esm/{field-next → field}/index.js +0 -0
  905. /package/styles/{field-next → field}/_core.slotted.scss +0 -0
  906. /package/styles/{field-next → field}/_core.state.scss +0 -0
  907. /package/styles/{field-next → field}/_token-utils.scss +0 -0
  908. /package/styles/{field-next → field}/index.scss +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/scaffold/scaffold-constants.ts", "../../src/scaffold/scaffold.ts", "../../src/scaffold/index.ts"],
4
+ "sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../constants';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}scaffold`;\n\nconst observedAttributes = {\n VIEWPORT: 'viewport'\n};\n\nconst attributes = {\n ...observedAttributes\n};\n\nexport const SCAFFOLD_CONSTANTS = {\n elementName,\n observedAttributes,\n attributes\n};\n", "import { CustomElement, attachShadowTemplate } from '@tylertech/forge-core';\nimport { BaseComponent, IBaseComponent } from '../core/base/base-component';\nimport { SCAFFOLD_CONSTANTS } from './scaffold-constants';\n\nconst template = '<template><div class=\\\"forge-scaffold\\\" part=\\\"root\\\"><slot name=\\\"left\\\"></slot><div class=\\\"header\\\" part=\\\"header\\\"><slot name=\\\"header\\\"></slot></div><div class=\\\"body\\\" part=\\\"body\\\"><slot name=\\\"body-left\\\"></slot><slot name=\\\"body-header\\\"></slot><slot name=\\\"body\\\"></slot><slot name=\\\"body-footer\\\"></slot><slot name=\\\"body-right\\\"></slot></div><slot name=\\\"footer\\\"></slot><slot name=\\\"right\\\"></slot></div></template>';\nconst styles = ':host{--_scaffold-height:var(--forge-scaffold-height, 100%);--_scaffold-width:var(--forge-scaffold-width, 100%)}:host{display:block;width:var(--_scaffold-width);height:var(--_scaffold-height)}:host([hidden]){display:none}.forge-scaffold{--_scaffold-overflow:var(--forge-scaffold-overflow, hidden);--_scaffold-body-position:var(--forge-scaffold-body-position, relative)}.forge-scaffold{position:relative;display:grid;grid-template-areas:\\\"left header right\\\" \\\"left body right\\\" \\\"left footer right\\\";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;height:var(--_scaffold-height);width:var(--_scaffold-width);overflow:var(--_scaffold-overflow)}.header{grid-area:header;min-width:0;min-height:0}.body{position:var(--_scaffold-body-position);display:grid;grid-area:body;grid-template-areas:\\\"body-left body-header body-right\\\" \\\"body-left body-inner body-right\\\" \\\"body-left body-footer body-right\\\";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;width:var(--_scaffold-width);min-width:0;min-height:0;overflow:hidden}::slotted(*){min-width:0;min-height:0}::slotted([slot=left]){grid-area:left}::slotted([slot=right]){grid-area:right}::slotted([slot=body-left]){grid-area:body-left}::slotted([slot=body-right]){grid-area:body-right}::slotted([slot=body-header]){grid-area:body-header}::slotted([slot=body]){overflow:auto;grid-area:body-inner}::slotted([slot=body-footer]){grid-area:body-footer}::slotted([slot=footer]){grid-area:footer}::slotted([slot=body-left]),::slotted([slot=body-right]),::slotted([slot=body]),::slotted([slot=left]),::slotted([slot=right]){overflow:auto}:host([viewport]){--_scaffold-height:var(--forge-scaffold-height, 100dvh);--_scaffold-width:var(--forge-scaffold-width, 100dvw)}';\n\nexport interface IScaffoldComponent extends IBaseComponent {\n viewport: boolean;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-scaffold': IScaffoldComponent;\n }\n}\n\n/**\n * @tag forge-scaffold\n * \n * @summary A scaffold provides a generic layout structure for your content using common named areas.\n * \n * @property {boolean} viewport - Whether the scaffold should be full viewport height.\n * \n * @attribute {boolean} viewport - Whether the scaffold should be full viewport height.\n * \n * @cssproperty --forge-scaffold-height - The `height` of the scaffold.\n * @cssproperty --forge-scaffold-width - The `width` of the scaffold.\n * @cssproperty --forge-scaffold-overflow - The `overflow` of the scaffold.\n * @cssproperty --forge-scaffold-body-position - The `position` of the scaffold body.\n * \n * @csspart root - The root container element.\n * @csspart header - The header of the scaffold.\n * @csspart body - The body of the scaffold.\n * \n * @slot header - Places content in the header.\n * @slot body - Places content in the body.\n * @slot footer - Places content in the footer.\n * @slot left - Places content to the left of all content.\n * @slot right - Places content to the right of all content.\n * @slot body-header - Places content in the header of the body.\n * @slot body-footer - Places content in the footer of the body.\n * @slot body-left - Places content to the left of the body content.\n * @slot body-right - Places content to the right of the body content.\n */\n@CustomElement({\n name: SCAFFOLD_CONSTANTS.elementName\n})\nexport class ScaffoldComponent extends BaseComponent implements IScaffoldComponent {\n public static get observedAttributes(): string[] {\n return Object.values(SCAFFOLD_CONSTANTS.observedAttributes);\n }\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case SCAFFOLD_CONSTANTS.observedAttributes.VIEWPORT:\n this.viewport = newValue !== null;\n break;\n }\n }\n\n public get viewport(): boolean {\n return this.hasAttribute(SCAFFOLD_CONSTANTS.attributes.VIEWPORT);\n }\n public set viewport(value: boolean) {\n this.toggleAttribute(SCAFFOLD_CONSTANTS.attributes.VIEWPORT, Boolean(value));\n }\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\nimport { ScaffoldComponent } from './scaffold';\n\nexport * from './scaffold-constants';\nexport * from './scaffold';\n\nexport function defineScaffoldComponent(): void {\n defineCustomElement(ScaffoldComponent);\n}\n"],
5
+ "mappings": "oJAEA,IAAMA,EAA2C,GAAGC,YAE9CC,EAAqB,CACzB,SAAU,UACZ,EAEMC,EAAaC,EAAA,GACdF,GAGQG,EAAqB,CAChC,YAAAL,EACA,mBAAAE,EACA,WAAAC,CACF,ECZA,IAAMG,EAAW,iZACXC,EAAS,usDA2CFC,EAAN,cAAgCC,CAA4C,CACjF,WAAkB,oBAA+B,CAC/C,OAAO,OAAO,OAAOC,EAAmB,kBAAkB,CAC5D,CAEA,aAAc,CACZ,MAAM,EACNC,EAAqB,KAAML,EAAUC,CAAM,CAC7C,CAEO,yBAAyBK,EAAcC,EAAkBC,EAAwB,CACtF,OAAQF,EAAM,CACZ,KAAKF,EAAmB,mBAAmB,SACzC,KAAK,SAAWI,IAAa,KAC7B,KACJ,CACF,CAEA,IAAW,UAAoB,CAC7B,OAAO,KAAK,aAAaJ,EAAmB,WAAW,QAAQ,CACjE,CACA,IAAW,SAASK,EAAgB,CAClC,KAAK,gBAAgBL,EAAmB,WAAW,SAAU,EAAQK,CAAM,CAC7E,CACF,EAxBaP,EAANQ,EAAA,CAHNC,EAAc,CACb,KAAMP,EAAmB,WAC3B,CAAC,GACYF,GC1CN,SAASU,GAAgC,CAC9CC,EAAoBC,CAAiB,CACvC",
6
+ "names": ["elementName", "COMPONENT_NAME_PREFIX", "observedAttributes", "attributes", "__spreadValues", "SCAFFOLD_CONSTANTS", "template", "styles", "ScaffoldComponent", "BaseComponent", "SCAFFOLD_CONSTANTS", "attachShadowTemplate", "name", "oldValue", "newValue", "value", "__decorateClass", "CustomElement", "defineScaffoldComponent", "defineCustomElement", "ScaffoldComponent"]
7
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
5
+ */
6
+ import{a as _,b as R}from"./chunk.PC6TW5XE.js";import{a as N,b as H}from"./chunk.BQ52JYLA.js";import{b as B,c as b}from"./chunk.5SUJNEC7.js";import{a as d}from"./chunk.NVUMRW44.js";import{a as z}from"./chunk.OLFOVKQG.js";import{a as w,b as O,n as M}from"./chunk.VRSPT7WX.js";import{a as A,e as C,f as u,k as I}from"./chunk.LNTTU2GL.js";import{g as x,p as P}from"./chunk.L4QSPQDE.js";import{c as S,d as L,k as h}from"./chunk.J2M2MXP2.js";import{a as f,d as l}from"./chunk.M3QDAYD2.js";var p=`${O}dialog`,F={OPEN:"open",VISIBLE:"visible",MODE:"mode",TYPE:"type",ANIMATION_TYPE:"animation-type",PRESET:"preset",PERSISTENT:"persistent",FULLSCREEN:"fullscreen",TRIGGER:"trigger",MOVEABLE:"moveable",MOVE_TARGET:"move-target",POSITION_STRATEGY:"position-strategy",PLACEMENT:"placement",SIZE_STRATEGY:"size-strategy"},W=f({},F),U={MOVED:"moved",MOVING:"moving"},$={DIALOG:".forge-dialog",SURFACE:".surface",MOVE_HANDLE:".move-handle",AUTOFOCUS:":is([autofocus],[forge-dialog-focus])"},X={BEFORE_CLOSE:`${p}-before-close`,OPEN:`${p}-open`,CLOSE:`${p}-close`,MOVE_START:`${p}-move-start`,MOVE:`${p}-move`,MOVE_END:`${p}-move-end`},Z={MODE:"modal",TYPE:"dialog",ANIMATION_TYPE:"zoom",PRESET:"dialog",SIZE_STRATEGY:"content",POSITION_STRATEGY:"viewport",PLACEMENT:"center"},i={elementName:p,observedAttributes:F,classes:U,attributes:W,selectors:$,events:X,defaults:Z},E=Symbol("hideBackdrop"),y=Symbol("showBackdrop"),c=Symbol("dialogStack");var k=class extends z{constructor(o){super(o);this._dialogElement=u(o,i.selectors.DIALOG),this._surfaceElement=u(o,i.selectors.SURFACE),this._moveHandleElement=u(o,i.selectors.MOVE_HANDLE),this._backdropElement=u(o,_.elementName),this._backdropElement.shadowRoot||window.customElements.upgrade(this._backdropElement)}get moveHandleElement(){return this._moveHandleElement}get surfaceElement(){return this._surfaceElement}show(){if(this._dialogElement.open)return;this._component[M]({role:this._component.type,ariaModal:this._component.mode==="modal"||this._component.mode==="inline-modal"?"true":"false"},{setAttribute:!0});let o=this._component.mode==="modal"||this._component.mode==="inline-modal";o&&(this._component.animationType==="none"?this._backdropElement.show():this._backdropElement.fadeIn()),this._component.mode==="modal"?this._dialogElement.showModal():this._dialogElement.show(),o&&this._hideBackdrops(),a[c].add(this._component)}_hideBackdrops(){a[c].forEach(o=>o[E]())}_showBackdropMostRecent(){var o;(o=Array.from(a[c]).filter(r=>r.mode==="modal"||r.mode==="inline-modal").at(-1))==null||o[y]()}async hide(){this._component[M]({role:null,ariaModal:null},{setAttribute:!0});let o=()=>{this._surfaceElement.classList.remove(_.classes.EXITING),this._dialogElement.close(),a[c].delete(this._component),this._showBackdropMostRecent()};if(this._component.animationType==="none")return Promise.resolve(o());this._backdropElement.fadeOut(),await x(this._surfaceElement,_.classes.EXITING),o()}addDialogFormSubmitListener(o){this._dialogElement.addEventListener("submit",o)}removeDialogFormSubmitListener(o){this._dialogElement.removeEventListener("submit",o)}addDialogCancelListener(o){this._dialogElement.addEventListener("cancel",o)}removeDialogCancelListener(o){this._dialogElement.removeEventListener("cancel",o)}addBackdropDismissListener(o){this._backdropElement.addEventListener("click",o)}removeBackdropDismissListener(o){this._backdropElement.removeEventListener("click",o)}tryAutofocus(){window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{if(this._component.open&&this._dialogElement.isConnected&&!this._component.matches(":focus-within")){let o=this._component.querySelector(i.selectors.AUTOFOCUS);o==null||o.focus()}})})}tryLocateTriggerElement(o){if(!o){this.triggerElement=null;return}let r=this._component.getRootNode();this.triggerElement=r.querySelector(`#${o}`)}addTriggerInteractionListener(o){var r;(r=this.triggerElement)==null||r.addEventListener("click",o)}removeTriggerInteractionListener(o){var r;(r=this.triggerElement)==null||r.removeEventListener("click",o)}hideBackdrop(){this._backdropElement.fadeOut()}showBackdrop(){this._backdropElement.fadeIn()}addSurfaceClass(o){this._surfaceElement.classList.add(o)}removeSurfaceClass(o){this._surfaceElement.classList.remove(o)}};function G(v=class{}){class e extends v{constructor(){super(...arguments);this._isMoving=!1;this._activeElement=void 0;this._movePointerDownListener=this._onMoveTargetPointerDown.bind(this);this._movePointerMoveListener=this._onMoveTargetPointerMove.bind(this);this._movePointerUpListener=this._onMoveTargetPointerUp.bind(this)}stopMoveListener(){this._updatePosition(null,null),document.removeEventListener("pointermove",this._movePointerMoveListener),document.removeEventListener("pointerup",this._movePointerUpListener),this._isMoving=!1,this._moveContext=void 0,this._lastPosition=void 0,this._activeElement=void 0}_onMoveTargetPointerDown(t){t.preventDefault(),this._captureActiveElement();let s=this._getMoveableBounds();this._moveContext={top:t.pageY-s.top,left:t.pageX-s.left,height:s.height,width:s.width},document.addEventListener("pointermove",this._movePointerMoveListener),document.addEventListener("pointerup",this._movePointerUpListener)}_onMoveTargetPointerMove(t){t.preventDefault();let s=this._calculateOffsetPosition(t.pageX,t.pageY,this._moveContext);if(!this._isMoving&&(this._isMoving=!0,this._onMoveStart()))return;let n=this._clampPosition(s,this._moveContext);if((!this._lastPosition||n.x!==this._lastPosition.x||n.y!==this._lastPosition.y)&&!this._onMove(n)){this._lastPosition=f({},n);let m=this._normalizePositionValue(n.x),Y=this._normalizePositionValue(n.y);this._updatePosition(m,Y)}}_onMoveTargetPointerUp(t){this._isMoving&&this._onMoveEnd(),this._moveComplete()}_moveComplete(){this._tryRestoreActiveElement(),document.removeEventListener("pointermove",this._movePointerMoveListener),document.removeEventListener("pointerup",this._movePointerUpListener),this._lastPosition=void 0,this._moveContext=void 0,this._isMoving=!1}_captureActiveElement(){var t;this._activeElement=P(),(t=this._activeElement)==null||t.blur()}_tryRestoreActiveElement(){var t;(t=this._activeElement)!=null&&t.isConnected&&this._activeElement.focus(),this._activeElement=void 0}_normalizePositionValue(t){return L(t)?`${t}px`:S(t)?t:null}_calculateOffsetPosition(t,s,n){var g,m;return{x:t-((g=n==null?void 0:n.left)!=null?g:0),y:s-((m=n==null?void 0:n.top)!=null?m:0)}}_clampPosition({x:t,y:s},n){let g=0,m=0;return n&&(g=n.width,m=n.height),t<=0?t=0:t+g>=window.innerWidth&&(t=window.innerWidth-g),s<=0?s=0:s+m>=window.innerHeight&&(s=window.innerHeight-m),{x:t,y:s}}}return e}var j=G(Object),T=class extends j{constructor(o){super();this._config=o;this._startMoveListener()}destroy(){this._stopMoveListener(),super.stopMoveListener()}_getMoveableBounds(){return this._config.surfaceElement.getBoundingClientRect()}_updatePosition(o,r){this._config.surfaceElement.style.top=r!=null?r:"",this._config.surfaceElement.style.left=o!=null?o:""}_onMoveStart(){return this._config.onMoveStart()}_onMove(o){return this._config.onMove(o)}_onMoveEnd(){this._config.onMoveEnd()}_startMoveListener(){this._config.handleElement.addEventListener("pointerdown",this._movePointerDownListener)}_stopMoveListener(){this._config.handleElement.removeEventListener("pointerdown",this._movePointerDownListener)}};var D=class{constructor(e){this._adapter=e;this._open=!1;this._mode=i.defaults.MODE;this._type=i.defaults.TYPE;this._animationType=i.defaults.ANIMATION_TYPE;this._preset=i.defaults.PRESET;this._persistent=!1;this._fullscreen=!1;this._trigger="";this._moveable=!1;this._sizeStrategy=i.defaults.SIZE_STRATEGY;this._placement=i.defaults.PLACEMENT;this._positionStrategy=i.defaults.POSITION_STRATEGY;this._escapeDismissListener=this._onEscapeDismiss.bind(this);this._backdropDismissListener=this._onBackdropDismiss.bind(this);this._dialogFormSubmitListener=this._onDialogFormSubmit.bind(this);this._triggerClickListener=this._onTriggerClick.bind(this)}initialize(){this._trigger&&!this._adapter.triggerElement&&this._adapter.tryLocateTriggerElement(this._trigger),this._adapter.triggerElement&&this._adapter.addTriggerInteractionListener(this._triggerClickListener),this._open&&this._applyOpen()}destroy(){this._adapter.triggerElement&&this._adapter.removeTriggerInteractionListener(this._triggerClickListener),this._moveController&&this._destroyMoveController(),this._open&&this._hide()}dispatchBeforeCloseEvent(){let e=new CustomEvent(i.events.BEFORE_CLOSE,{cancelable:!0,bubbles:!0,composed:!0});return this._adapter.dispatchHostEvent(e),!e.defaultPrevented}hideBackdrop(){this._adapter.hideBackdrop()}showBackdrop(){this._adapter.showBackdrop()}_show(){this._adapter.show(),this._adapter.addDialogFormSubmitListener(this._dialogFormSubmitListener),b.instance.add(this._adapter.hostElement),this._mode==="modal"?this._adapter.addDialogCancelListener(this._escapeDismissListener):this._mode==="inline-modal"&&this._adapter.addDocumentListener("keydown",this._escapeDismissListener),this._persistent||this._adapter.addBackdropDismissListener(this._backdropDismissListener),this._moveable&&!this._fullscreen&&this._initializeMoveController(),this._adapter.dispatchHostEvent(new CustomEvent(i.events.OPEN,{bubbles:!0,composed:!0}))}async _hide(){this._adapter.removeDialogFormSubmitListener(this._dialogFormSubmitListener),this._adapter.removeDialogCancelListener(this._escapeDismissListener),this._adapter.removeDocumentListener("keydown",this._escapeDismissListener),this._adapter.removeBackdropDismissListener(this._backdropDismissListener),b.instance.remove(this._adapter.hostElement),await this._adapter.hide(),this._moveController&&this._destroyMoveController(),this._adapter.dispatchHostEvent(new CustomEvent(i.events.CLOSE,{bubbles:!0,composed:!0}))}async _applyOpen(){this._open?(this._show(),this._adapter.tryAutofocus()):await this._hide(),this._adapter.toggleHostAttribute(i.attributes.VISIBLE,this._open),this._adapter.toggleHostAttribute(i.attributes.OPEN,this._open)}_onEscapeDismiss(e){if(e.type==="keydown"){if(e.key!=="Escape"||!b.instance.isMostRecent(this._adapter.hostElement))return}else e.type==="cancel"&&e.preventDefault();this._persistent||this._tryClose()}_onBackdropDismiss(){this._tryClose()}_onDialogFormSubmit(e){var r,t;e.stopPropagation(),(((r=e.submitter)==null?void 0:r.getAttribute("formmethod"))==="dialog"||((t=e.target)==null?void 0:t.getAttribute("method"))==="dialog")&&this._tryClose()}_tryClose(){this.dispatchBeforeCloseEvent()&&(this.open=!1)}_onTriggerClick(e){this.open=!this._open}_initializeMoveController(){if(this._moveController)return;let e=()=>{let n=new CustomEvent(i.events.MOVE_START,{cancelable:!0});return this._adapter.dispatchHostEvent(n),n.defaultPrevented},o=n=>{let g=new CustomEvent(i.events.MOVE,{detail:n,cancelable:!0});return this._adapter.dispatchHostEvent(g),g.defaultPrevented||(this._adapter.addSurfaceClass(i.classes.MOVED),this._adapter.addSurfaceClass(i.classes.MOVING)),g.defaultPrevented},r=()=>{let n=new CustomEvent(i.events.MOVE_END);this._adapter.removeSurfaceClass(i.classes.MOVING),this._adapter.dispatchHostEvent(n)},{moveHandleElement:t,surfaceElement:s}=this._adapter;this._moveController=new T({handleElement:t,surfaceElement:s,onMoveStart:e,onMove:o,onMoveEnd:r})}_destroyMoveController(){var e;this._adapter.removeSurfaceClass(i.classes.MOVED),(e=this._moveController)==null||e.destroy(),this._moveController=void 0}get open(){return this._open}set open(e){e=!!e,this._open!==e&&(this._open=e,this._adapter.isConnected&&this._applyOpen())}get mode(){return this._mode}set mode(e){this._mode!==e&&(this._mode=e,this._adapter.setHostAttribute(i.attributes.MODE,this._mode))}get type(){return this._type}set type(e){this._type!==e&&(this._type=e,this._adapter.setHostAttribute(i.attributes.TYPE,this._type))}get animationType(){return this._animationType}set animationType(e){this._animationType!==e&&(this._animationType=e,this._adapter.setHostAttribute(i.attributes.ANIMATION_TYPE,this._animationType))}get preset(){return this._preset}set preset(e){this._preset!==e&&(this._preset=e,this._adapter.setHostAttribute(i.attributes.PRESET,this._preset))}get persistent(){return this._persistent}set persistent(e){e=!!e,this._persistent!==e&&(this._persistent=e,this._adapter.toggleHostAttribute(i.attributes.PERSISTENT,this._persistent))}get fullscreen(){return this._fullscreen}set fullscreen(e){e=!!e,this._fullscreen!==e&&(this._fullscreen=e,this._adapter.toggleHostAttribute(i.attributes.FULLSCREEN,this._fullscreen))}get trigger(){var e;return(e=this._trigger)!=null?e:""}set trigger(e){this._trigger!==e&&(this._trigger=e,this._adapter.triggerElement&&this._adapter.removeTriggerInteractionListener(this._triggerClickListener),this._adapter.isConnected&&(this._adapter.tryLocateTriggerElement(this._trigger),this._adapter.addTriggerInteractionListener(this._triggerClickListener)),this._adapter.setHostAttribute(i.attributes.TRIGGER,this._trigger))}get triggerElement(){return this._adapter.triggerElement}set triggerElement(e){this._adapter.triggerElement&&this._adapter.removeTriggerInteractionListener(this._triggerClickListener),this._trigger&&(this._trigger=""),this._adapter.triggerElement=e,this._adapter.isConnected&&this._adapter.addTriggerInteractionListener(this._triggerClickListener)}get moveable(){return this._moveable}set moveable(e){e=!!e,this._moveable!==e&&(this._moveable=e,this._adapter.isConnected&&this._open&&(this._moveable?this._initializeMoveController():this._destroyMoveController()),this._adapter.toggleHostAttribute(i.attributes.MOVEABLE,this._moveable))}get positionStrategy(){return this._positionStrategy}set positionStrategy(e){this._positionStrategy!==e&&(this._positionStrategy=e,this._adapter.setHostAttribute(i.attributes.POSITION_STRATEGY,this._positionStrategy))}get sizeStrategy(){return this._sizeStrategy}set sizeStrategy(e){this._sizeStrategy!==e&&(this._sizeStrategy=e,this._adapter.setHostAttribute(i.attributes.SIZE_STRATEGY,this._sizeStrategy))}get placement(){return this._placement}set placement(e){this._placement!==e&&(this._placement=e,this._adapter.setHostAttribute(i.attributes.PLACEMENT,this._placement))}};var q='<template><dialog class="forge-dialog" part="root"><forge-backdrop exportparts="root:backdrop"></forge-backdrop><div class="surface" part="surface"><div class="move-handle-container" part="move-handle-container"><div class="move-handle" part="move-handle"><slot name="move-handle"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" part="move-handle-icon"><path d="M3 15v-2h2v2H3m0-4V9h2v2H3m4 4v-2h2v2H7m0-4V9h2v2H7m4 4v-2h2v2h-2m0-4V9h2v2h-2m4 4v-2h2v2h-2m0-4V9h2v2h-2m4 4v-2h2v2h-2m0-4V9h2v2h-2z"/></svg></slot></div></div><slot></slot></div></dialog></template>',K="@-webkit-keyframes zoom-in{from{opacity:var(--_dialog-zoom-opacity);scale:var(--_dialog-zoom-scale)}to{opacity:1;scale:1}}@keyframes zoom-in{from{opacity:var(--_dialog-zoom-opacity);scale:var(--_dialog-zoom-scale)}to{opacity:1;scale:1}}@-webkit-keyframes zoom-out{from{opacity:1;scale:1}to{opacity:var(--_dialog-zoom-opacity);scale:var(--_dialog-zoom-scale)}}@keyframes zoom-out{from{opacity:1;scale:1}to{opacity:var(--_dialog-zoom-opacity);scale:var(--_dialog-zoom-scale)}}@-webkit-keyframes fade-in{from{opacity:var(--_dialog-fade-opacity)}to{opacity:1}}@keyframes fade-in{from{opacity:var(--_dialog-fade-opacity)}to{opacity:1}}@-webkit-keyframes fade-out{from{opacity:1}to{opacity:var(--_dialog-fade-opacity)}}@keyframes fade-out{from{opacity:1}to{opacity:var(--_dialog-fade-opacity)}}@-webkit-keyframes slide-in{from{opacity:var(--_dialog-slide-opacity);translate:var(--_dialog-slide-translate)}to{opacity:1;translate:0 0}}@keyframes slide-in{from{opacity:var(--_dialog-slide-opacity);translate:var(--_dialog-slide-translate)}to{opacity:1;translate:0 0}}@-webkit-keyframes slide-out{from{opacity:1;translate:0 0}to{opacity:var(--_dialog-slide-opacity);translate:var(--_dialog-slide-translate)}}@keyframes slide-out{from{opacity:1;translate:0 0}to{opacity:var(--_dialog-slide-opacity);translate:var(--_dialog-slide-translate)}}@layer base,nonmodal,animation,placement,size-strategy,preset,fullscreen,position-strategy,media; @layer base{:host{display:none;--forge-theme-surface:var(--forge-theme-surface-bright, #ffffff)}:host([hidden]){display:none}.forge-dialog{--_dialog-background:var(--forge-dialog-background, var(--forge-theme-surface-bright, #ffffff));--_dialog-shape:var(--forge-dialog-shape, var(--forge-shape-medium, 4px));--_dialog-elevation:var(--forge-dialog-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));--_dialog-spacing:var(--forge-dialog-spacing, auto);--_dialog-block-start-spacing:var(--forge-dialog-block-start-spacing, var(--_dialog-spacing));--_dialog-block-end-spacing:var(--forge-dialog-block-end-spacing, var(--_dialog-spacing));--_dialog-inline-start-spacing:var(--forge-dialog-inline-start-spacing, var(--_dialog-spacing));--_dialog-inline-end-spacing:var(--forge-dialog-inline-end-spacing, var(--_dialog-spacing));--_dialog-padding:var(--forge-dialog-padding, 0);--_dialog-width:var(--forge-dialog-width, fit-content);--_dialog-height:var(--forge-dialog-height, fit-content);--_dialog-min-width:var(--forge-dialog-min-width, 0);--_dialog-max-width:var(--forge-dialog-max-width, calc(100% - var(--forge-spacing-xxlarge, 48px)));--_dialog-min-height:var(--forge-dialog-min-height, 0);--_dialog-max-height:var(--forge-dialog-max-height, calc(100% - var(--forge-spacing-xxlarge, 48px)));--_dialog-z-index:var(--forge-dialog-z-index, var(--forge-z-index-dialog, 8));--_dialog-move-handle-color:var(--forge-dialog-move-handle-color, currentColor);--_dialog-move-handle-size:var(--forge-dialog-move-handle-size, 24px);--_dialog-move-handle-hover-cursor:var(--forge-dialog-move-handle-hover-cursor, grab);--_dialog-move-handle-active-cursor:var(--forge-dialog-move-handle-active-cursor, grabbing);--_dialog-move-handle-spacing:var(--forge-dialog-move-handle-spacing, calc(var(--forge-spacing-xxsmall, 4px) * -1) 0 0);--_dialog-move-transition-duration:var(--forge-dialog-move-transition-duration, var(--forge-animation-duration-short4, 200ms));--_dialog-move-transition-easing:var(--forge-dialog-move-transition-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_dialog-moving-opacity:var(--forge-dialog-moving-opacity, 0.54);--_dialog-enter-animation-duration:var(--forge-dialog-enter-animation-duration, var(--forge-animation-duration-medium1, 250ms));--_dialog-enter-animation-easing:var(--forge-dialog-enter-animation-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_dialog-exit-animation-duration:var(--forge-dialog-exit-animation-duration, var(--forge-animation-duration-short2, 100ms));--_dialog-exit-animation-easing:var(--forge-dialog-exit-animation-easing, var(--forge-animation-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15)));--_dialog-zoom-opacity:var(--forge-dialog-zoom-opacity, 0);--_dialog-zoom-scale:var(--forge-dialog-zoom-scale, 0.8);--_dialog-fade-opacity:var(--forge-dialog-fade-opacity, 0);--_dialog-slide-opacity:var(--forge-dialog-slide-opacity, 0);--_dialog-slide-translate:var(--forge-dialog-slide-translate, 0 -30%);--_dialog-backdrop-opacity:var(--forge-dialog-backdrop-opacity, var(--forge-backdrop-opacity, 0.54));--_dialog-nonmodal-elevation:var(--forge-dialog-nonmodal-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_dialog-fullscreen-enter-animation-duration:var(--forge-dialog-fullscreen-enter-animation-duration, var(--forge-animation-duration-medium1, 250ms));--_dialog-fullscreen-exit-animation-duration:var(--forge-dialog-fullscreen-exit-animation-duration, var(--forge-animation-duration-short2, 100ms));--_dialog-position-x:var(--forge-dialog-position-x, 0);--_dialog-position-y:var(--forge-dialog-position-y, 0);--_dialog-preset-sheet-enter-animation-duration:var(--forge-dialog-preset-sheet-enter-animation-duration, var(--forge-animation-duration-medium1, 250ms));--_dialog-preset-sheet-exit-animation-duration:var(--forge-dialog-preset-sheet-exit-animation-duration, var(--forge-animation-duration-short3, 150ms))}.forge-dialog{position:fixed;inset:0;z-index:var(--_dialog-z-index);background-color:transparent;color:inherit;border:none;width:auto;height:auto;padding:0;margin:0;overflow:visible;max-width:100%;max-height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.container{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;width:100%;height:100%}.surface{position:absolute;inset:0;background:var(--_dialog-background);-webkit-box-shadow:var(--_dialog-elevation);box-shadow:var(--_dialog-elevation);z-index:var(--_dialog-z-index);overflow:hidden;border-radius:var(--_dialog-shape);-webkit-margin-before:var(--_dialog-block-start-spacing);margin-block-start:var(--_dialog-block-start-spacing);-webkit-margin-after:var(--_dialog-block-end-spacing);margin-block-end:var(--_dialog-block-end-spacing);-webkit-margin-start:var(--_dialog-inline-start-spacing);margin-inline-start:var(--_dialog-inline-start-spacing);-webkit-margin-end:var(--_dialog-inline-end-spacing);margin-inline-end:var(--_dialog-inline-end-spacing);padding:var(--_dialog-padding);width:var(--_dialog-width);height:var(--_dialog-height);min-width:var(--_dialog-min-width);max-width:var(--_dialog-max-width);min-height:var(--_dialog-min-height);max-height:var(--_dialog-max-height);-webkit-box-sizing:border-box;box-sizing:border-box}dialog.forge-dialog::-webkit-backdrop{display:none}dialog.forge-dialog::backdrop{display:none}forge-backdrop{--forge-backdrop-opacity:var(--_dialog-backdrop-opacity);--forge-backdrop-enter-animation-duration:var(--_dialog-enter-animation-duration);--forge-backdrop-enter-animation-easing:var(--_dialog-enter-animation-easing);--forge-backdrop-exit-animation-duration:var(--_dialog-exit-animation-duration);--forge-backdrop-exit-animation-easing:var(--_dialog-exit-animation-easing)}:host(:not([moveable])) .move-handle{display:none}:host([moveable]:not([fullscreen]):not([preset])) .surface{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-duration:var(--_dialog-move-transition-duration);transition-duration:var(--_dialog-move-transition-duration);-webkit-transition-timing-function:var(--_dialog-move-transition-easing);transition-timing-function:var(--_dialog-move-transition-easing)}:host([moveable]:not([fullscreen]):not([preset])) .surface:not(:hover) .move-handle-container{display:none}:host([moveable]:not([fullscreen]):not([preset])) .surface.moved{margin:0}:host([moveable]:not([fullscreen]):not([preset])) .surface.moving{opacity:var(--_dialog-moving-opacity)}:host([moveable]:not([fullscreen]):not([preset])) .move-handle-container{position:absolute;top:0;z-index:1;display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;width:100%}:host([moveable]:not([fullscreen]):not([preset])) .move-handle-container .move-handle{fill:var(--_dialog-move-handle-color);height:var(--_dialog-move-handle-size);width:var(--_dialog-move-handle-size);margin:var(--_dialog-move-handle-spacing);touch-action:none}:host([moveable]:not([fullscreen]):not([preset])) .move-handle-container .move-handle:hover{cursor:var(--_dialog-move-handle-hover-cursor)}:host([moveable]:not([fullscreen]):not([preset])) .move-handle-container .move-handle:active{cursor:var(--_dialog-move-handle-active-cursor)}:host([moveable]:not([fullscreen]):not([preset])) .move-handle-container .move-handle svg{fill:currentColor}:host([visible]){display:initial}}@layer nonmodal{:host([mode=nonmodal]) .forge-dialog{pointer-events:none}:host([mode=nonmodal]) .container{display:contents}:host([mode=nonmodal]) .surface{--_dialog-elevation:var(--_dialog-nonmodal-elevation);pointer-events:all}:host([mode=nonmodal]) forge-backdrop{display:none}}@layer animation{:host([visible]:not([animation-type=none])) dialog.forge-dialog[open] .surface{-webkit-animation-duration:var(--_dialog-enter-animation-duration);animation-duration:var(--_dialog-enter-animation-duration);-webkit-animation-timing-function:var(--_dialog-enter-animation-easing);animation-timing-function:var(--_dialog-enter-animation-easing)}:host([visible]:not([animation-type=none])) dialog.forge-dialog[open] .surface.exiting{-webkit-animation-duration:var(--_dialog-exit-animation-duration);animation-duration:var(--_dialog-exit-animation-duration);-webkit-animation-timing-function:var(--_dialog-exit-animation-easing);animation-timing-function:var(--_dialog-exit-animation-easing)}:host([visible]:not([animation-type=none]):is(:not([animation-type]),[animation-type=zoom])) dialog.forge-dialog[open] .surface{-webkit-animation-name:zoom-in;animation-name:zoom-in}:host([visible]:not([animation-type=none]):is(:not([animation-type]),[animation-type=zoom])) dialog.forge-dialog[open] .surface.exiting{-webkit-animation-name:zoom-out;animation-name:zoom-out}:host([visible]:not([animation-type=none])[animation-type=fade]) dialog.forge-dialog[open] .surface{-webkit-animation-name:fade-in;animation-name:fade-in}:host([visible]:not([animation-type=none])[animation-type=fade]) dialog.forge-dialog[open] .surface.exiting{-webkit-animation-name:fade-out;animation-name:fade-out}:host([visible]:not([animation-type=none])[animation-type=slide]) dialog.forge-dialog[open] .surface{-webkit-animation-name:slide-in;animation-name:slide-in}:host([visible]:not([animation-type=none])[animation-type=slide]) dialog.forge-dialog[open] .surface.exiting{-webkit-animation-name:slide-out;animation-name:slide-out}}@layer placement{:host([placement=custom]) .surface{margin:0;top:var(--_dialog-position-x);left:var(--_dialog-position-y)}:host([placement=top]) .surface{--_dialog-block-start-spacing:var(--forge-dialog-block-start-spacing, 0);top:0;bottom:auto}:host([placement=top-right]) .surface{--_dialog-spacing:var(--forge-dialog-spacing, 0);top:0;left:auto;right:0;bottom:auto}:host([placement=top-left]) .surface{--_dialog-spacing:var(--forge-dialog-spacing, 0);top:0;left:0;right:auto;bottom:auto}:host([placement=bottom]) .surface{--_dialog-block-end-spacing:var(--forge-dialog-block-end-spacing, 0);top:auto;bottom:0}:host([placement=bottom-right]) .surface{--_dialog-spacing:var(--forge-dialog-spacing, 0);top:auto;left:auto;right:0;bottom:0}:host([placement=bottom-left]) .surface{--_dialog-spacing:var(--forge-dialog-spacing, 0);top:auto;left:0;right:auto;bottom:0}}@layer size-strategy{:host([size-strategy=container-inline]) .surface{width:100%}:host([size-strategy=container-block]) .surface{height:100%}}@layer preset{:host([visible]:not([animation-type=none]):is([preset=left-sheet],[preset=right-sheet],[preset=top-sheet],[preset=bottom-sheet])) .forge-dialog{--_dialog-enter-animation-duration:var(--_dialog-preset-sheet-enter-animation-duration);--_dialog-exit-animation-duration:var(--_dialog-preset-sheet-exit-animation-duration)}:host([visible]:not([animation-type=none]):is([preset=left-sheet],[preset=right-sheet],[preset=top-sheet],[preset=bottom-sheet])) .surface{-webkit-animation-name:slide-in;animation-name:slide-in}:host([visible]:not([animation-type=none]):is([preset=left-sheet],[preset=right-sheet],[preset=top-sheet],[preset=bottom-sheet])) .surface.exiting{-webkit-animation-name:slide-out;animation-name:slide-out}:host(:is([preset=left-sheet],[preset=right-sheet],[preset=top-sheet],[preset=bottom-sheet])) .surface{--_dialog-max-width:var(--forge-dialog-max-width, none);--_dialog-max-height:var(--forge-dialog-max-height, none);inset:auto}:host([preset=left-sheet]) .forge-dialog{--_dialog-slide-translate:var(--forge-dialog-slide-translate, -100% 0)}:host([preset=left-sheet]) .surface{left:0;bottom:0;top:0;height:100%;border-top-left-radius:0;border-bottom-left-radius:0}:host([preset=right-sheet]) .forge-dialog{--_dialog-slide-translate:var(--forge-dialog-slide-translate, 100% 0)}:host([preset=right-sheet]) .surface{right:0;bottom:0;top:0;height:100%;border-top-right-radius:0;border-bottom-right-radius:0}:host([preset=top-sheet]) .forge-dialog{--_dialog-slide-translate:var(--forge-dialog-slide-translate, 0 -100%)}:host([preset=top-sheet]) .surface{top:0;left:0;right:0;border-top-left-radius:0;border-top-right-radius:0}:host([preset=bottom-sheet]) .forge-dialog{--_dialog-slide-translate:var(--forge-dialog-slide-translate, 0 100%)}:host([preset=bottom-sheet]) .surface{bottom:0;left:0;right:0;border-bottom-left-radius:0;border-bottom-right-radius:0}}@layer fullscreen{:host([fullscreen]) .forge-dialog{--_dialog-enter-animation-duration:var(--_dialog-fullscreen-enter-animation-duration);--_dialog-exit-animation-duration:var(--_dialog-fullscreen-exit-animation-duration)}:host([fullscreen]) .surface{height:100%;width:100%;max-width:none;max-height:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none}:host([fullscreen]) forge-backdrop{display:none}}@layer position-strategy{:host([position-strategy=viewport]) .forge-dialog{position:fixed}:host([position-strategy=container]) .forge-dialog{position:absolute}:host([position-strategy=container][preset$=-sheet]) .forge-dialog{contain:content}}@layer media{@media (prefers-reduced-motion:reduce){.surface{-webkit-animation-name:fade-in;animation-name:fade-in}.surface.exiting{-webkit-animation-name:fade-out;animation-name:fade-out}}}",J=H(N(I)),Q,a=class extends J{constructor(){super();C(this,q,K),this._foundation=new D(new k(this))}static get observedAttributes(){return Object.values(i.observedAttributes)}[(Q=c,E)](){this._foundation.hideBackdrop()}[y](){this._foundation.showBackdrop()}[B](o){return this._foundation.dispatchBeforeCloseEvent()}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(o,r,t){switch(o){case i.observedAttributes.OPEN:this.open=h(t);break;case i.observedAttributes.MODE:this.mode=t!=null?t:i.defaults.MODE;break;case i.observedAttributes.TYPE:this.type=t!=null?t:i.defaults.TYPE;break;case i.observedAttributes.ANIMATION_TYPE:this.animationType=t!=null?t:i.defaults.ANIMATION_TYPE;break;case i.observedAttributes.PRESET:this.preset=t!=null?t:i.defaults.PRESET;break;case i.observedAttributes.PERSISTENT:this.persistent=h(t);break;case i.observedAttributes.FULLSCREEN:this.fullscreen=h(t);break;case i.observedAttributes.TRIGGER:this.trigger=t;break;case i.observedAttributes.MOVEABLE:this.moveable=h(t);break;case i.observedAttributes.POSITION_STRATEGY:this.positionStrategy=t!=null?t:i.defaults.POSITION_STRATEGY;break;case i.observedAttributes.SIZE_STRATEGY:this.sizeStrategy=t!=null?t:i.defaults.SIZE_STRATEGY;break;case i.observedAttributes.PLACEMENT:this.placement=t!=null?t:i.defaults.PLACEMENT;break}}show(){this.open=!0}hide(){this.open=!1}};a[Q]=new Set,l([d()],a.prototype,"open",2),l([d()],a.prototype,"mode",2),l([d()],a.prototype,"type",2),l([d()],a.prototype,"animationType",2),l([d()],a.prototype,"preset",2),l([d()],a.prototype,"persistent",2),l([d()],a.prototype,"fullscreen",2),l([d()],a.prototype,"trigger",2),l([d()],a.prototype,"triggerElement",2),l([d()],a.prototype,"moveable",2),l([d()],a.prototype,"positionStrategy",2),l([d()],a.prototype,"sizeStrategy",2),l([d()],a.prototype,"placement",2),a=l([w({name:i.elementName,dependencies:[R]})],a);function it(){A(a)}export{i as a,E as b,y as c,c as d,k as e,D as f,a as g,it as h};
7
+ //# sourceMappingURL=chunk.FLBYVCQ6.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/dialog/dialog-constants.ts", "../../src/dialog/dialog-adapter.ts", "../../src/core/mixins/interactions/moveable/with-moveable.ts", "../../src/core/controllers/move-controller.ts", "../../src/dialog/dialog-foundation.ts", "../../src/dialog/dialog.ts", "../../src/dialog/index.ts"],
4
+ "sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../constants';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}dialog`;\n\nconst observedAttributes = {\n OPEN: 'open',\n VISIBLE: 'visible',\n MODE: 'mode',\n TYPE: 'type',\n ANIMATION_TYPE: 'animation-type',\n PRESET: 'preset',\n PERSISTENT: 'persistent',\n FULLSCREEN: 'fullscreen',\n TRIGGER: 'trigger',\n MOVEABLE: 'moveable',\n MOVE_TARGET: 'move-target',\n POSITION_STRATEGY: 'position-strategy',\n PLACEMENT: 'placement',\n SIZE_STRATEGY: 'size-strategy'\n};\n\nconst attributes = {\n ...observedAttributes\n};\n\nconst classes = {\n MOVED: 'moved',\n MOVING: 'moving'\n};\n\nconst selectors = {\n DIALOG: '.forge-dialog',\n SURFACE: '.surface',\n MOVE_HANDLE: '.move-handle',\n AUTOFOCUS: ':is([autofocus],[forge-dialog-focus])'\n};\n\nconst events = {\n BEFORE_CLOSE: `${elementName}-before-close`,\n OPEN: `${elementName}-open`,\n CLOSE: `${elementName}-close`,\n MOVE_START: `${elementName}-move-start`,\n MOVE: `${elementName}-move`,\n MOVE_END: `${elementName}-move-end`\n};\n\nconst defaults = {\n MODE: 'modal' as DialogMode,\n TYPE: 'dialog' as DialogType,\n ANIMATION_TYPE: 'zoom' as DialogAnimationType,\n PRESET: 'dialog' as DialogPreset,\n SIZE_STRATEGY: 'content' as DialogSizeStrategy,\n POSITION_STRATEGY: 'viewport' as DialogPositionStrategy,\n PLACEMENT: 'center' as DialogPlacement\n};\n\nexport const DIALOG_CONSTANTS = {\n elementName,\n observedAttributes,\n classes,\n attributes,\n selectors,\n events,\n defaults\n};\n\nexport interface IDialogMoveEventData {\n x: number;\n y: number;\n}\n\nexport interface IDialogMoveContext {\n top: number;\n left: number;\n height: number;\n width: number;\n}\n\nexport interface IDialogMoveStartEventData extends IDialogMoveEventData {}\n\nexport type DialogMode = 'modal' | 'inline-modal' | 'nonmodal';\nexport type DialogType = 'dialog' | 'alertdialog';\nexport type DialogAnimationType = 'none' | 'zoom' | 'fade' | 'slide' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right';\nexport type DialogPositionStrategy = 'viewport' | 'container';\nexport type DialogPlacement = 'custom' | 'center' | 'top' | 'right' | 'bottom' | 'left' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';\nexport type DialogSizeStrategy = 'content' | 'container-inline' | 'container-block';\nexport type DialogPreset = 'dialog' | 'bottom-sheet' | 'top-sheet' | 'left-sheet' | 'right-sheet';\n\nexport const hideBackdrop = Symbol('hideBackdrop');\nexport const showBackdrop = Symbol('showBackdrop');\nexport const dialogStack = Symbol('dialogStack');\n", "import { getShadowElement, playKeyframeAnimation } from '@tylertech/forge-core';\nimport { BACKDROP_CONSTANTS, IBackdropComponent } from '../backdrop';\nimport { setDefaultAria } from '../constants';\nimport { BaseAdapter, IBaseAdapter } from '../core/base/base-adapter';\nimport { DialogComponent, IDialogComponent } from './dialog';\nimport { dialogStack, DIALOG_CONSTANTS, hideBackdrop, showBackdrop } from './dialog-constants';\n\nexport interface IDialogAdapter extends IBaseAdapter {\n readonly hostElement: IDialogComponent;\n readonly moveHandleElement: HTMLElement;\n readonly surfaceElement: HTMLElement;\n triggerElement: HTMLElement | null;\n show(): void;\n hide(): Promise<void>;\n addDialogFormSubmitListener(listener: EventListener): void;\n removeDialogFormSubmitListener(listener: EventListener): void;\n addDialogCancelListener(listener: EventListener): void;\n removeDialogCancelListener(listener: EventListener): void;\n addBackdropDismissListener(listener: EventListener): void;\n removeBackdropDismissListener(listener: EventListener): void;\n tryAutofocus(): void;\n tryLocateTriggerElement(id: string | null): void;\n addTriggerInteractionListener(listener: EventListener): void;\n removeTriggerInteractionListener(listener: EventListener): void;\n hideBackdrop(): void;\n showBackdrop(): void;\n addSurfaceClass(className: string): void;\n removeSurfaceClass(className: string): void;\n}\n\nexport class DialogAdapter extends BaseAdapter<IDialogComponent> implements IDialogAdapter {\n private _dialogElement: HTMLDialogElement;\n private _surfaceElement: HTMLDivElement;\n private _backdropElement: IBackdropComponent;\n private _moveHandleElement: HTMLElement;\n\n public triggerElement: HTMLElement | null;\n\n public get moveHandleElement(): HTMLElement {\n return this._moveHandleElement;\n }\n\n public get surfaceElement(): HTMLElement {\n return this._surfaceElement;\n }\n\n constructor(component: IDialogComponent) {\n super(component);\n this._dialogElement = getShadowElement(component, DIALOG_CONSTANTS.selectors.DIALOG) as HTMLDialogElement;\n this._surfaceElement = getShadowElement(component, DIALOG_CONSTANTS.selectors.SURFACE) as HTMLDivElement;\n this._moveHandleElement = getShadowElement(component, DIALOG_CONSTANTS.selectors.MOVE_HANDLE) as HTMLElement;\n\n this._backdropElement = getShadowElement(component, BACKDROP_CONSTANTS.elementName) as IBackdropComponent;\n if (!this._backdropElement.shadowRoot) {\n window.customElements.upgrade(this._backdropElement);\n }\n }\n\n public show(): void {\n /* c8 ignore next 3 */\n if (this._dialogElement.open) {\n return;\n }\n\n this._component[setDefaultAria]({\n role: this._component.type,\n ariaModal: this._component.mode === 'modal' || this._component.mode === 'inline-modal' ? 'true' : 'false'\n }, { setAttribute: true });\n \n // Show the dialog (and backdrop) based on modal vs non-modal\n const isModal = this._component.mode === 'modal' || this._component.mode === 'inline-modal';\n if (isModal) {\n if (this._component.animationType === 'none') {\n this._backdropElement.show();\n } else {\n this._backdropElement.fadeIn();\n }\n }\n\n if (this._component.mode === 'modal') {\n this._dialogElement.showModal();\n } else {\n this._dialogElement.show();\n }\n\n if (isModal) {\n this._hideBackdrops();\n }\n\n DialogComponent[dialogStack].add(this._component);\n }\n\n private _hideBackdrops(): void {\n DialogComponent[dialogStack].forEach(dialog => dialog[hideBackdrop]());\n }\n\n private _showBackdropMostRecent(): void {\n Array.from(DialogComponent[dialogStack]).filter(dialog => dialog.mode === 'modal' || dialog.mode === 'inline-modal').at(-1)?.[showBackdrop]();\n }\n\n public async hide(): Promise<void> {\n this._component[setDefaultAria]({\n role: null,\n ariaModal: null\n }, { setAttribute: true });\n\n const close = (): void => {\n this._surfaceElement.classList.remove(BACKDROP_CONSTANTS.classes.EXITING);\n this._dialogElement.close();\n DialogComponent[dialogStack].delete(this._component);\n this._showBackdropMostRecent();\n };\n\n if (this._component.animationType === 'none') {\n return Promise.resolve(close());\n }\n\n this._backdropElement.fadeOut();\n await playKeyframeAnimation(this._surfaceElement, BACKDROP_CONSTANTS.classes.EXITING);\n close();\n }\n\n public addDialogFormSubmitListener(listener: EventListener): void {\n this._dialogElement.addEventListener('submit', listener);\n }\n\n public removeDialogFormSubmitListener(listener: EventListener): void {\n this._dialogElement.removeEventListener('submit', listener);\n }\n\n public addDialogCancelListener(listener: EventListener): void {\n this._dialogElement.addEventListener('cancel', listener);\n }\n\n public removeDialogCancelListener(listener: EventListener): void {\n this._dialogElement.removeEventListener('cancel', listener);\n }\n\n public addBackdropDismissListener(listener: EventListener): void {\n this._backdropElement.addEventListener('click', listener);\n }\n\n public removeBackdropDismissListener(listener: EventListener): void {\n this._backdropElement.removeEventListener('click', listener);\n }\n\n public tryAutofocus(): void {\n window.requestAnimationFrame(() => {\n window.requestAnimationFrame(() => {\n if (this._component.open && this._dialogElement.isConnected && !this._component.matches(':focus-within')) {\n const autofocusElement = this._component.querySelector<HTMLElement>(DIALOG_CONSTANTS.selectors.AUTOFOCUS);\n autofocusElement?.focus();\n }\n });\n });\n }\n\n public tryLocateTriggerElement(id: string | null): void {\n if (!id) {\n this.triggerElement = null;\n return;\n }\n const rootNode = this._component.getRootNode() as Document | ShadowRoot;\n this.triggerElement = rootNode.querySelector<HTMLElement>(`#${id}`);\n }\n\n public addTriggerInteractionListener(listener: EventListener): void {\n this.triggerElement?.addEventListener('click', listener);\n }\n\n public removeTriggerInteractionListener(listener: EventListener): void {\n this.triggerElement?.removeEventListener('click', listener);\n }\n\n public hideBackdrop(): void {\n this._backdropElement.fadeOut();\n }\n\n public showBackdrop(): void {\n this._backdropElement.fadeIn();\n }\n\n public addSurfaceClass(className: string): void {\n this._surfaceElement.classList.add(className);\n }\n\n public removeSurfaceClass(className: string): void {\n this._surfaceElement.classList.remove(className);\n }\n}\n", "import { getActiveElement, isNumber, isString } from '@tylertech/forge-core';\nimport { AbstractConstructor, MixinBase } from '../../../../constants';\n\nexport interface IWithMoveableMoveContext {\n top: number;\n left: number;\n height: number;\n width: number;\n}\n\nexport declare abstract class WithMoveableContract {\n public stopMoveListener(): void;\n protected _movePointerDownListener: EventListener;\n protected abstract _getMoveableBounds(): { top: number; left: number; height: number; width: number };\n protected abstract _updatePosition(x: string | null, y: string | null): void;\n protected abstract _onMoveStart(): boolean;\n protected abstract _onMove(position: { x: number; y: number }): boolean;\n protected abstract _onMoveEnd(): void;\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function WithMoveable<TBase extends MixinBase<object>>(base: TBase = (class {} as unknown) as TBase) {\n abstract class Moveable extends base {\n private _isMoving = false;\n private _moveContext: IWithMoveableMoveContext | undefined;\n private _lastPosition: { x: number; y: number } | undefined;\n private _activeElement: HTMLElement | undefined = undefined;\n\n protected _movePointerDownListener = this._onMoveTargetPointerDown.bind(this);\n private _movePointerMoveListener = this._onMoveTargetPointerMove.bind(this);\n private _movePointerUpListener = this._onMoveTargetPointerUp.bind(this);\n\n protected abstract _getMoveableBounds(): { top: number; left: number; height: number; width: number };\n protected abstract _updatePosition(x: string | null, y: string | null): void;\n protected abstract _onMoveStart(): boolean;\n protected abstract _onMove(position: { x: number; y: number }): boolean;\n protected abstract _onMoveEnd(): void;\n\n public stopMoveListener(): void {\n this._updatePosition(null, null);\n document.removeEventListener('pointermove', this._movePointerMoveListener);\n document.removeEventListener('pointerup', this._movePointerUpListener);\n this._isMoving = false;\n this._moveContext = undefined;\n this._lastPosition = undefined;\n this._activeElement = undefined;\n }\n\n private _onMoveTargetPointerDown(evt: PointerEvent): void {\n evt.preventDefault();\n\n this._captureActiveElement();\n\n const bounds = this._getMoveableBounds();\n\n this._moveContext = {\n top: evt.pageY - bounds.top,\n left: evt.pageX - bounds.left,\n height: bounds.height,\n width: bounds.width\n };\n document.addEventListener('pointermove', this._movePointerMoveListener);\n document.addEventListener('pointerup', this._movePointerUpListener);\n }\n \n private _onMoveTargetPointerMove(evt: PointerEvent): void {\n evt.preventDefault();\n const position = this._calculateOffsetPosition(evt.pageX, evt.pageY, this._moveContext);\n \n // If this is the beginning of the move sequence, we emit the start event (to allow for preventing default) and\n // then update the surface position if not prevented\n if (!this._isMoving) {\n this._isMoving = true;\n const defaultPrevented = this._onMoveStart();\n if (defaultPrevented) {\n return;\n }\n }\n \n // Ensure that the surface position stays within the bounds of the screen\n const newPosition = this._clampPosition(position, this._moveContext);\n \n // Only update the position if it actually changed\n if (!this._lastPosition || newPosition.x !== this._lastPosition.x || newPosition.y !== this._lastPosition.y) {\n const defaultPrevented = this._onMove(newPosition);\n if (!defaultPrevented) {\n this._lastPosition = { ...newPosition };\n const newX = this._normalizePositionValue(newPosition.x);\n const newY = this._normalizePositionValue(newPosition.y);\n this._updatePosition(newX, newY);\n }\n }\n }\n \n private _onMoveTargetPointerUp(_evt: PointerEvent): void {\n if (this._isMoving) {\n this._onMoveEnd();\n }\n this._moveComplete();\n }\n \n private _moveComplete(): void {\n this._tryRestoreActiveElement();\n\n document.removeEventListener('pointermove', this._movePointerMoveListener);\n document.removeEventListener('pointerup', this._movePointerUpListener);\n\n this._lastPosition = undefined;\n this._moveContext = undefined;\n this._isMoving = false;\n }\n\n private _captureActiveElement(): void {\n this._activeElement = getActiveElement() as HTMLElement;\n this._activeElement?.blur();\n }\n\n private _tryRestoreActiveElement(): void {\n if (this._activeElement?.isConnected) {\n this._activeElement.focus();\n }\n this._activeElement = undefined;\n }\n\n private _normalizePositionValue(value: number | string | null | undefined): string | null {\n if (isNumber(value)) {\n return `${value}px`;\n } else if (isString(value)) {\n return value;\n }\n return null;\n }\n\n private _calculateOffsetPosition(pageX: number, pageY: number, context?: IWithMoveableMoveContext): { x: number; y: number } {\n return {\n x: pageX - (context?.left ?? 0),\n y: pageY - (context?.top ?? 0)\n };\n }\n\n private _clampPosition({ x, y }: { x: number; y: number }, context?: IWithMoveableMoveContext): { x: number; y: number } {\n let width = 0;\n let height = 0;\n \n if (context) {\n width = context.width;\n height = context.height;\n }\n \n if (x <= 0) {\n x = 0;\n } else if (x + width >= window.innerWidth) {\n x = window.innerWidth - width;\n }\n \n if (y <= 0) {\n y = 0;\n } else if (y + height >= window.innerHeight) {\n y = window.innerHeight - height;\n }\n \n return { x, y };\n }\n }\n\n return Moveable as AbstractConstructor<WithMoveableContract> & TBase;\n}\n", "import { WithMoveable } from '../mixins/interactions/moveable/with-moveable';\n\nexport interface IMoveControllerConfig {\n handleElement: HTMLElement;\n surfaceElement: HTMLElement;\n onMoveStart(): boolean;\n onMove(position: { x: number; y: number }): boolean;\n onMoveEnd(): void;\n}\n\nconst MoveBase = WithMoveable(Object);\n\nexport class MoveController extends MoveBase {\n constructor(private _config: IMoveControllerConfig) {\n super();\n this._startMoveListener();\n }\n\n public destroy(): void {\n this._stopMoveListener();\n super.stopMoveListener();\n }\n\n protected _getMoveableBounds(): DOMRect {\n return this._config.surfaceElement.getBoundingClientRect();\n }\n\n protected _updatePosition(x: string | null, y: string | null): void {\n this._config.surfaceElement.style.top = y != null ? y : '';\n this._config.surfaceElement.style.left = x != null ? x : '';\n }\n\n protected _onMoveStart(): boolean {\n return this._config.onMoveStart();\n }\n\n protected _onMove(position: { x: number; y: number }): boolean {\n return this._config.onMove(position);\n }\n\n protected _onMoveEnd(): void {\n this._config.onMoveEnd();\n }\n\n private _startMoveListener(): void {\n this._config.handleElement.addEventListener('pointerdown', this._movePointerDownListener);\n }\n\n private _stopMoveListener(): void {\n this._config.handleElement.removeEventListener('pointerdown', this._movePointerDownListener);\n }\n}\n", "import { ICustomElementFoundation } from '@tylertech/forge-core';\nimport { MoveController } from '../core/controllers/move-controller';\nimport { DismissibleStack } from '../core/utils/dismissible-stack';\nimport { IDialogAdapter } from './dialog-adapter';\nimport { DialogAnimationType, DialogMode, DialogPlacement, DialogPositionStrategy, DialogPreset, DialogSizeStrategy, DialogType, DIALOG_CONSTANTS, IDialogMoveEventData } from './dialog-constants';\n\nexport interface IDialogFoundation extends ICustomElementFoundation {\n open: boolean;\n mode: DialogMode;\n type: DialogType;\n animationType: DialogAnimationType;\n preset: DialogPreset;\n persistent: boolean;\n fullscreen: boolean;\n trigger: string;\n triggerElement: HTMLElement | null;\n positionStrategy: DialogPositionStrategy;\n sizeStrategy: DialogSizeStrategy;\n placement: DialogPlacement;\n moveable: boolean;\n hideBackdrop(): void;\n showBackdrop(): void;\n dispatchBeforeCloseEvent(): boolean;\n}\n\nexport class DialogFoundation implements IDialogFoundation {\n private _open = false;\n private _mode: DialogMode = DIALOG_CONSTANTS.defaults.MODE;\n private _type: DialogType = DIALOG_CONSTANTS.defaults.TYPE;\n private _animationType: DialogAnimationType = DIALOG_CONSTANTS.defaults.ANIMATION_TYPE;\n private _preset: DialogPreset = DIALOG_CONSTANTS.defaults.PRESET;\n private _persistent = false;\n private _fullscreen = false;\n private _trigger = '';\n private _moveable = false;\n private _sizeStrategy: DialogSizeStrategy = DIALOG_CONSTANTS.defaults.SIZE_STRATEGY;\n private _placement: DialogPlacement = DIALOG_CONSTANTS.defaults.PLACEMENT;\n private _positionStrategy: DialogPositionStrategy = DIALOG_CONSTANTS.defaults.POSITION_STRATEGY;\n private _moveController: MoveController | undefined;\n\n private _escapeDismissListener: EventListener = this._onEscapeDismiss.bind(this);\n private _backdropDismissListener: EventListener = this._onBackdropDismiss.bind(this);\n private _dialogFormSubmitListener: EventListener = this._onDialogFormSubmit.bind(this);\n private _triggerClickListener: EventListener = this._onTriggerClick.bind(this);\n\n constructor(public _adapter: IDialogAdapter) {}\n\n public initialize(): void {\n if (this._trigger && !this._adapter.triggerElement) {\n this._adapter.tryLocateTriggerElement(this._trigger);\n }\n\n if (this._adapter.triggerElement) {\n this._adapter.addTriggerInteractionListener(this._triggerClickListener);\n }\n\n if (this._open) {\n this._applyOpen();\n }\n }\n\n public destroy(): void {\n if (this._adapter.triggerElement) {\n this._adapter.removeTriggerInteractionListener(this._triggerClickListener);\n }\n\n if (this._moveController) {\n this._destroyMoveController();\n }\n\n if (this._open) {\n this._hide();\n }\n }\n\n public dispatchBeforeCloseEvent(): boolean {\n const evt = new CustomEvent(DIALOG_CONSTANTS.events.BEFORE_CLOSE, { cancelable: true, bubbles: true, composed: true });\n this._adapter.dispatchHostEvent(evt);\n return !evt.defaultPrevented;\n }\n\n public hideBackdrop(): void {\n this._adapter.hideBackdrop();\n }\n\n public showBackdrop(): void {\n this._adapter.showBackdrop();\n }\n\n private _show(): void {\n this._adapter.show();\n this._adapter.addDialogFormSubmitListener(this._dialogFormSubmitListener);\n DismissibleStack.instance.add(this._adapter.hostElement);\n\n if (this._mode === 'modal') {\n this._adapter.addDialogCancelListener(this._escapeDismissListener);\n } else if (this._mode === 'inline-modal') {\n this._adapter.addDocumentListener('keydown', this._escapeDismissListener);\n }\n\n if (!this._persistent) {\n this._adapter.addBackdropDismissListener(this._backdropDismissListener);\n }\n\n if (this._moveable && !this._fullscreen) {\n this._initializeMoveController();\n }\n\n this._adapter.dispatchHostEvent(new CustomEvent(DIALOG_CONSTANTS.events.OPEN, { bubbles: true, composed: true }));\n }\n\n private async _hide(): Promise<void> {\n this._adapter.removeDialogFormSubmitListener(this._dialogFormSubmitListener);\n this._adapter.removeDialogCancelListener(this._escapeDismissListener);\n this._adapter.removeDocumentListener('keydown', this._escapeDismissListener);\n this._adapter.removeBackdropDismissListener(this._backdropDismissListener);\n DismissibleStack.instance.remove(this._adapter.hostElement);\n\n await this._adapter.hide();\n\n if (this._moveController) {\n this._destroyMoveController();\n }\n\n this._adapter.dispatchHostEvent(new CustomEvent(DIALOG_CONSTANTS.events.CLOSE, { bubbles: true, composed: true }));\n }\n\n private async _applyOpen(): Promise<void> {\n if (this._open) {\n this._show();\n this._adapter.tryAutofocus();\n } else {\n await this._hide();\n }\n\n this._adapter.toggleHostAttribute(DIALOG_CONSTANTS.attributes.VISIBLE, this._open); // We use this for styling purposes to control animations\n this._adapter.toggleHostAttribute(DIALOG_CONSTANTS.attributes.OPEN, this._open);\n }\n\n private _onEscapeDismiss(evt: Event): void {\n if (evt.type === 'keydown') {\n const key = (evt as KeyboardEvent).key;\n if (key !== 'Escape' || !DismissibleStack.instance.isMostRecent(this._adapter.hostElement)) {\n return;\n }\n } else if (evt.type === 'cancel') {\n evt.preventDefault();\n }\n\n if (!this._persistent) {\n this._tryClose();\n }\n }\n\n private _onBackdropDismiss(): void {\n this._tryClose();\n }\n\n private _onDialogFormSubmit(evt: SubmitEvent): void {\n evt.stopPropagation();\n const isDialogSubmitter = evt.submitter?.getAttribute('formmethod') === 'dialog' ||\n (evt.target as HTMLFormElement)?.getAttribute('method') === 'dialog';\n if (isDialogSubmitter) {\n this._tryClose();\n }\n }\n\n private _tryClose(): void {\n if (this.dispatchBeforeCloseEvent()) {\n this.open = false;\n }\n }\n\n private _onTriggerClick(_evt: MouseEvent): void {\n this.open = !this._open;\n }\n\n private _initializeMoveController(): void {\n /* c8 ignore next 3 */\n if (this._moveController) {\n return;\n }\n\n const onMoveStart = (): boolean => {\n const event = new CustomEvent(DIALOG_CONSTANTS.events.MOVE_START, { cancelable: true });\n this._adapter.dispatchHostEvent(event);\n return event.defaultPrevented;\n };\n const onMove = (position: IDialogMoveEventData): boolean => {\n const event = new CustomEvent(DIALOG_CONSTANTS.events.MOVE, { detail: position, cancelable: true });\n this._adapter.dispatchHostEvent(event);\n\n if (!event.defaultPrevented) {\n this._adapter.addSurfaceClass(DIALOG_CONSTANTS.classes.MOVED);\n this._adapter.addSurfaceClass(DIALOG_CONSTANTS.classes.MOVING);\n }\n\n return event.defaultPrevented;\n };\n const onMoveEnd = (): void => {\n const event = new CustomEvent(DIALOG_CONSTANTS.events.MOVE_END);\n this._adapter.removeSurfaceClass(DIALOG_CONSTANTS.classes.MOVING);\n this._adapter.dispatchHostEvent(event);\n };\n const { moveHandleElement: handleElement, surfaceElement } = this._adapter;\n this._moveController = new MoveController({ handleElement, surfaceElement, onMoveStart, onMove, onMoveEnd });\n }\n\n private _destroyMoveController(): void {\n this._adapter.removeSurfaceClass(DIALOG_CONSTANTS.classes.MOVED);\n this._moveController?.destroy();\n this._moveController = undefined;\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 this._open = value;\n if (this._adapter.isConnected) {\n this._applyOpen();\n }\n }\n }\n\n public get mode(): DialogMode {\n return this._mode;\n }\n public set mode(value: DialogMode) {\n if (this._mode !== value) {\n this._mode = value;\n this._adapter.setHostAttribute(DIALOG_CONSTANTS.attributes.MODE, this._mode);\n }\n }\n\n public get type(): DialogType {\n return this._type;\n }\n public set type(value: DialogType) {\n if (this._type !== value) {\n this._type = value;\n this._adapter.setHostAttribute(DIALOG_CONSTANTS.attributes.TYPE, this._type);\n }\n }\n\n public get animationType(): DialogAnimationType {\n return this._animationType;\n }\n public set animationType(value: DialogAnimationType) {\n if (this._animationType !== value) {\n this._animationType = value;\n this._adapter.setHostAttribute(DIALOG_CONSTANTS.attributes.ANIMATION_TYPE, this._animationType);\n }\n }\n\n public get preset(): DialogPreset {\n return this._preset;\n }\n public set preset(value: DialogPreset) {\n if (this._preset !== value) {\n this._preset = value;\n this._adapter.setHostAttribute(DIALOG_CONSTANTS.attributes.PRESET, this._preset);\n }\n }\n\n public get persistent(): boolean {\n return this._persistent;\n }\n public set persistent(value: boolean) {\n value = Boolean(value);\n if (this._persistent !== value) {\n this._persistent = value;\n this._adapter.toggleHostAttribute(DIALOG_CONSTANTS.attributes.PERSISTENT, this._persistent);\n }\n }\n\n public get fullscreen(): boolean {\n return this._fullscreen;\n }\n public set fullscreen(value: boolean) {\n value = Boolean(value);\n if (this._fullscreen !== value) {\n this._fullscreen = value;\n this._adapter.toggleHostAttribute(DIALOG_CONSTANTS.attributes.FULLSCREEN, this._fullscreen);\n }\n }\n\n public get trigger(): string {\n return this._trigger ?? '';\n }\n public set trigger(value: string) {\n if (this._trigger !== value) {\n this._trigger = value;\n\n if (this._adapter.triggerElement) {\n this._adapter.removeTriggerInteractionListener(this._triggerClickListener);\n }\n\n if (this._adapter.isConnected) {\n this._adapter.tryLocateTriggerElement(this._trigger);\n this._adapter.addTriggerInteractionListener(this._triggerClickListener);\n }\n this._adapter.setHostAttribute(DIALOG_CONSTANTS.attributes.TRIGGER, this._trigger);\n }\n }\n\n public get triggerElement(): HTMLElement | null {\n return this._adapter.triggerElement;\n }\n public set triggerElement(element: HTMLElement | null) {\n if (this._adapter.triggerElement) {\n this._adapter.removeTriggerInteractionListener(this._triggerClickListener);\n }\n\n if (this._trigger) {\n this._trigger = '';\n }\n\n this._adapter.triggerElement = element;\n\n if (this._adapter.isConnected) {\n this._adapter.addTriggerInteractionListener(this._triggerClickListener);\n }\n }\n\n public get moveable(): boolean {\n return this._moveable;\n }\n public set moveable(value: boolean) {\n value = Boolean(value);\n if (this._moveable !== value) {\n this._moveable = value;\n\n if (this._adapter.isConnected && this._open) {\n if (this._moveable) {\n this._initializeMoveController();\n } else {\n this._destroyMoveController();\n }\n }\n\n this._adapter.toggleHostAttribute(DIALOG_CONSTANTS.attributes.MOVEABLE, this._moveable);\n }\n }\n\n public get positionStrategy(): DialogPositionStrategy {\n return this._positionStrategy;\n }\n public set positionStrategy(value: DialogPositionStrategy) {\n if (this._positionStrategy !== value) {\n this._positionStrategy = value;\n this._adapter.setHostAttribute(DIALOG_CONSTANTS.attributes.POSITION_STRATEGY, this._positionStrategy);\n }\n }\n\n public get sizeStrategy(): DialogSizeStrategy {\n return this._sizeStrategy;\n }\n public set sizeStrategy(value: DialogSizeStrategy) {\n if (this._sizeStrategy !== value) {\n this._sizeStrategy = value;\n this._adapter.setHostAttribute(DIALOG_CONSTANTS.attributes.SIZE_STRATEGY, this._sizeStrategy);\n }\n }\n\n public get placement(): DialogPlacement {\n return this._placement;\n }\n public set placement(value: DialogPlacement) {\n if (this._placement !== value) {\n this._placement = value;\n this._adapter.setHostAttribute(DIALOG_CONSTANTS.attributes.PLACEMENT, this._placement);\n }\n }\n}\n", "import { attachShadowTemplate, coerceBoolean, CustomElement, FoundationProperty } from '@tylertech/forge-core';\nimport { BackdropComponent } from '../backdrop';\nimport { BaseComponent } from '../core/base/base-component';\nimport { IWithDefaultAria, WithDefaultAria } from '../core/mixins/internals/with-default-aria';\nimport { IWithElementInternals, WithElementInternals } from '../core/mixins/internals/with-element-internals';\nimport { DialogAdapter } from './dialog-adapter';\nimport { DialogFoundation } from './dialog-foundation';\nimport {\n DialogAnimationType,\n DialogMode,\n DialogPlacement,\n DialogPositionStrategy,\n DialogPreset,\n DialogSizeStrategy,\n dialogStack,\n DialogType,\n DIALOG_CONSTANTS,\n hideBackdrop,\n IDialogMoveEventData,\n IDialogMoveStartEventData,\n showBackdrop\n} from './dialog-constants';\nimport { IDismissible, IDismissibleStackState, tryDismiss } from '../core/utils/dismissible-stack';\n\nconst template = '<template><dialog class=\\\"forge-dialog\\\" part=\\\"root\\\"><forge-backdrop exportparts=\\\"root:backdrop\\\"></forge-backdrop><div class=\\\"surface\\\" part=\\\"surface\\\"><div class=\\\"move-handle-container\\\" part=\\\"move-handle-container\\\"><div class=\\\"move-handle\\\" part=\\\"move-handle\\\"><slot name=\\\"move-handle\\\"><svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 24 24\\\" aria-hidden=\\\"true\\\" part=\\\"move-handle-icon\\\"><path d=\\\"M3 15v-2h2v2H3m0-4V9h2v2H3m4 4v-2h2v2H7m0-4V9h2v2H7m4 4v-2h2v2h-2m0-4V9h2v2h-2m4 4v-2h2v2h-2m0-4V9h2v2h-2m4 4v-2h2v2h-2m0-4V9h2v2h-2z\\\"/></svg></slot></div></div><slot></slot></div></dialog></template>';\nconst styles = '@-webkit-keyframes zoom-in{from{opacity:var(--_dialog-zoom-opacity);scale:var(--_dialog-zoom-scale)}to{opacity:1;scale:1}}@keyframes zoom-in{from{opacity:var(--_dialog-zoom-opacity);scale:var(--_dialog-zoom-scale)}to{opacity:1;scale:1}}@-webkit-keyframes zoom-out{from{opacity:1;scale:1}to{opacity:var(--_dialog-zoom-opacity);scale:var(--_dialog-zoom-scale)}}@keyframes zoom-out{from{opacity:1;scale:1}to{opacity:var(--_dialog-zoom-opacity);scale:var(--_dialog-zoom-scale)}}@-webkit-keyframes fade-in{from{opacity:var(--_dialog-fade-opacity)}to{opacity:1}}@keyframes fade-in{from{opacity:var(--_dialog-fade-opacity)}to{opacity:1}}@-webkit-keyframes fade-out{from{opacity:1}to{opacity:var(--_dialog-fade-opacity)}}@keyframes fade-out{from{opacity:1}to{opacity:var(--_dialog-fade-opacity)}}@-webkit-keyframes slide-in{from{opacity:var(--_dialog-slide-opacity);translate:var(--_dialog-slide-translate)}to{opacity:1;translate:0 0}}@keyframes slide-in{from{opacity:var(--_dialog-slide-opacity);translate:var(--_dialog-slide-translate)}to{opacity:1;translate:0 0}}@-webkit-keyframes slide-out{from{opacity:1;translate:0 0}to{opacity:var(--_dialog-slide-opacity);translate:var(--_dialog-slide-translate)}}@keyframes slide-out{from{opacity:1;translate:0 0}to{opacity:var(--_dialog-slide-opacity);translate:var(--_dialog-slide-translate)}}@layer base,nonmodal,animation,placement,size-strategy,preset,fullscreen,position-strategy,media; @layer base{:host{display:none;--forge-theme-surface:var(--forge-theme-surface-bright, #ffffff)}:host([hidden]){display:none}.forge-dialog{--_dialog-background:var(--forge-dialog-background, var(--forge-theme-surface-bright, #ffffff));--_dialog-shape:var(--forge-dialog-shape, var(--forge-shape-medium, 4px));--_dialog-elevation:var(--forge-dialog-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));--_dialog-spacing:var(--forge-dialog-spacing, auto);--_dialog-block-start-spacing:var(--forge-dialog-block-start-spacing, var(--_dialog-spacing));--_dialog-block-end-spacing:var(--forge-dialog-block-end-spacing, var(--_dialog-spacing));--_dialog-inline-start-spacing:var(--forge-dialog-inline-start-spacing, var(--_dialog-spacing));--_dialog-inline-end-spacing:var(--forge-dialog-inline-end-spacing, var(--_dialog-spacing));--_dialog-padding:var(--forge-dialog-padding, 0);--_dialog-width:var(--forge-dialog-width, fit-content);--_dialog-height:var(--forge-dialog-height, fit-content);--_dialog-min-width:var(--forge-dialog-min-width, 0);--_dialog-max-width:var(--forge-dialog-max-width, calc(100% - var(--forge-spacing-xxlarge, 48px)));--_dialog-min-height:var(--forge-dialog-min-height, 0);--_dialog-max-height:var(--forge-dialog-max-height, calc(100% - var(--forge-spacing-xxlarge, 48px)));--_dialog-z-index:var(--forge-dialog-z-index, var(--forge-z-index-dialog, 8));--_dialog-move-handle-color:var(--forge-dialog-move-handle-color, currentColor);--_dialog-move-handle-size:var(--forge-dialog-move-handle-size, 24px);--_dialog-move-handle-hover-cursor:var(--forge-dialog-move-handle-hover-cursor, grab);--_dialog-move-handle-active-cursor:var(--forge-dialog-move-handle-active-cursor, grabbing);--_dialog-move-handle-spacing:var(--forge-dialog-move-handle-spacing, calc(var(--forge-spacing-xxsmall, 4px) * -1) 0 0);--_dialog-move-transition-duration:var(--forge-dialog-move-transition-duration, var(--forge-animation-duration-short4, 200ms));--_dialog-move-transition-easing:var(--forge-dialog-move-transition-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_dialog-moving-opacity:var(--forge-dialog-moving-opacity, 0.54);--_dialog-enter-animation-duration:var(--forge-dialog-enter-animation-duration, var(--forge-animation-duration-medium1, 250ms));--_dialog-enter-animation-easing:var(--forge-dialog-enter-animation-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_dialog-exit-animation-duration:var(--forge-dialog-exit-animation-duration, var(--forge-animation-duration-short2, 100ms));--_dialog-exit-animation-easing:var(--forge-dialog-exit-animation-easing, var(--forge-animation-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15)));--_dialog-zoom-opacity:var(--forge-dialog-zoom-opacity, 0);--_dialog-zoom-scale:var(--forge-dialog-zoom-scale, 0.8);--_dialog-fade-opacity:var(--forge-dialog-fade-opacity, 0);--_dialog-slide-opacity:var(--forge-dialog-slide-opacity, 0);--_dialog-slide-translate:var(--forge-dialog-slide-translate, 0 -30%);--_dialog-backdrop-opacity:var(--forge-dialog-backdrop-opacity, var(--forge-backdrop-opacity, 0.54));--_dialog-nonmodal-elevation:var(--forge-dialog-nonmodal-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_dialog-fullscreen-enter-animation-duration:var(--forge-dialog-fullscreen-enter-animation-duration, var(--forge-animation-duration-medium1, 250ms));--_dialog-fullscreen-exit-animation-duration:var(--forge-dialog-fullscreen-exit-animation-duration, var(--forge-animation-duration-short2, 100ms));--_dialog-position-x:var(--forge-dialog-position-x, 0);--_dialog-position-y:var(--forge-dialog-position-y, 0);--_dialog-preset-sheet-enter-animation-duration:var(--forge-dialog-preset-sheet-enter-animation-duration, var(--forge-animation-duration-medium1, 250ms));--_dialog-preset-sheet-exit-animation-duration:var(--forge-dialog-preset-sheet-exit-animation-duration, var(--forge-animation-duration-short3, 150ms))}.forge-dialog{position:fixed;inset:0;z-index:var(--_dialog-z-index);background-color:transparent;color:inherit;border:none;width:auto;height:auto;padding:0;margin:0;overflow:visible;max-width:100%;max-height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.container{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;width:100%;height:100%}.surface{position:absolute;inset:0;background:var(--_dialog-background);-webkit-box-shadow:var(--_dialog-elevation);box-shadow:var(--_dialog-elevation);z-index:var(--_dialog-z-index);overflow:hidden;border-radius:var(--_dialog-shape);-webkit-margin-before:var(--_dialog-block-start-spacing);margin-block-start:var(--_dialog-block-start-spacing);-webkit-margin-after:var(--_dialog-block-end-spacing);margin-block-end:var(--_dialog-block-end-spacing);-webkit-margin-start:var(--_dialog-inline-start-spacing);margin-inline-start:var(--_dialog-inline-start-spacing);-webkit-margin-end:var(--_dialog-inline-end-spacing);margin-inline-end:var(--_dialog-inline-end-spacing);padding:var(--_dialog-padding);width:var(--_dialog-width);height:var(--_dialog-height);min-width:var(--_dialog-min-width);max-width:var(--_dialog-max-width);min-height:var(--_dialog-min-height);max-height:var(--_dialog-max-height);-webkit-box-sizing:border-box;box-sizing:border-box}dialog.forge-dialog::-webkit-backdrop{display:none}dialog.forge-dialog::backdrop{display:none}forge-backdrop{--forge-backdrop-opacity:var(--_dialog-backdrop-opacity);--forge-backdrop-enter-animation-duration:var(--_dialog-enter-animation-duration);--forge-backdrop-enter-animation-easing:var(--_dialog-enter-animation-easing);--forge-backdrop-exit-animation-duration:var(--_dialog-exit-animation-duration);--forge-backdrop-exit-animation-easing:var(--_dialog-exit-animation-easing)}:host(:not([moveable])) .move-handle{display:none}:host([moveable]:not([fullscreen]):not([preset])) .surface{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-duration:var(--_dialog-move-transition-duration);transition-duration:var(--_dialog-move-transition-duration);-webkit-transition-timing-function:var(--_dialog-move-transition-easing);transition-timing-function:var(--_dialog-move-transition-easing)}:host([moveable]:not([fullscreen]):not([preset])) .surface:not(:hover) .move-handle-container{display:none}:host([moveable]:not([fullscreen]):not([preset])) .surface.moved{margin:0}:host([moveable]:not([fullscreen]):not([preset])) .surface.moving{opacity:var(--_dialog-moving-opacity)}:host([moveable]:not([fullscreen]):not([preset])) .move-handle-container{position:absolute;top:0;z-index:1;display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;width:100%}:host([moveable]:not([fullscreen]):not([preset])) .move-handle-container .move-handle{fill:var(--_dialog-move-handle-color);height:var(--_dialog-move-handle-size);width:var(--_dialog-move-handle-size);margin:var(--_dialog-move-handle-spacing);touch-action:none}:host([moveable]:not([fullscreen]):not([preset])) .move-handle-container .move-handle:hover{cursor:var(--_dialog-move-handle-hover-cursor)}:host([moveable]:not([fullscreen]):not([preset])) .move-handle-container .move-handle:active{cursor:var(--_dialog-move-handle-active-cursor)}:host([moveable]:not([fullscreen]):not([preset])) .move-handle-container .move-handle svg{fill:currentColor}:host([visible]){display:initial}}@layer nonmodal{:host([mode=nonmodal]) .forge-dialog{pointer-events:none}:host([mode=nonmodal]) .container{display:contents}:host([mode=nonmodal]) .surface{--_dialog-elevation:var(--_dialog-nonmodal-elevation);pointer-events:all}:host([mode=nonmodal]) forge-backdrop{display:none}}@layer animation{:host([visible]:not([animation-type=none])) dialog.forge-dialog[open] .surface{-webkit-animation-duration:var(--_dialog-enter-animation-duration);animation-duration:var(--_dialog-enter-animation-duration);-webkit-animation-timing-function:var(--_dialog-enter-animation-easing);animation-timing-function:var(--_dialog-enter-animation-easing)}:host([visible]:not([animation-type=none])) dialog.forge-dialog[open] .surface.exiting{-webkit-animation-duration:var(--_dialog-exit-animation-duration);animation-duration:var(--_dialog-exit-animation-duration);-webkit-animation-timing-function:var(--_dialog-exit-animation-easing);animation-timing-function:var(--_dialog-exit-animation-easing)}:host([visible]:not([animation-type=none]):is(:not([animation-type]),[animation-type=zoom])) dialog.forge-dialog[open] .surface{-webkit-animation-name:zoom-in;animation-name:zoom-in}:host([visible]:not([animation-type=none]):is(:not([animation-type]),[animation-type=zoom])) dialog.forge-dialog[open] .surface.exiting{-webkit-animation-name:zoom-out;animation-name:zoom-out}:host([visible]:not([animation-type=none])[animation-type=fade]) dialog.forge-dialog[open] .surface{-webkit-animation-name:fade-in;animation-name:fade-in}:host([visible]:not([animation-type=none])[animation-type=fade]) dialog.forge-dialog[open] .surface.exiting{-webkit-animation-name:fade-out;animation-name:fade-out}:host([visible]:not([animation-type=none])[animation-type=slide]) dialog.forge-dialog[open] .surface{-webkit-animation-name:slide-in;animation-name:slide-in}:host([visible]:not([animation-type=none])[animation-type=slide]) dialog.forge-dialog[open] .surface.exiting{-webkit-animation-name:slide-out;animation-name:slide-out}}@layer placement{:host([placement=custom]) .surface{margin:0;top:var(--_dialog-position-x);left:var(--_dialog-position-y)}:host([placement=top]) .surface{--_dialog-block-start-spacing:var(--forge-dialog-block-start-spacing, 0);top:0;bottom:auto}:host([placement=top-right]) .surface{--_dialog-spacing:var(--forge-dialog-spacing, 0);top:0;left:auto;right:0;bottom:auto}:host([placement=top-left]) .surface{--_dialog-spacing:var(--forge-dialog-spacing, 0);top:0;left:0;right:auto;bottom:auto}:host([placement=bottom]) .surface{--_dialog-block-end-spacing:var(--forge-dialog-block-end-spacing, 0);top:auto;bottom:0}:host([placement=bottom-right]) .surface{--_dialog-spacing:var(--forge-dialog-spacing, 0);top:auto;left:auto;right:0;bottom:0}:host([placement=bottom-left]) .surface{--_dialog-spacing:var(--forge-dialog-spacing, 0);top:auto;left:0;right:auto;bottom:0}}@layer size-strategy{:host([size-strategy=container-inline]) .surface{width:100%}:host([size-strategy=container-block]) .surface{height:100%}}@layer preset{:host([visible]:not([animation-type=none]):is([preset=left-sheet],[preset=right-sheet],[preset=top-sheet],[preset=bottom-sheet])) .forge-dialog{--_dialog-enter-animation-duration:var(--_dialog-preset-sheet-enter-animation-duration);--_dialog-exit-animation-duration:var(--_dialog-preset-sheet-exit-animation-duration)}:host([visible]:not([animation-type=none]):is([preset=left-sheet],[preset=right-sheet],[preset=top-sheet],[preset=bottom-sheet])) .surface{-webkit-animation-name:slide-in;animation-name:slide-in}:host([visible]:not([animation-type=none]):is([preset=left-sheet],[preset=right-sheet],[preset=top-sheet],[preset=bottom-sheet])) .surface.exiting{-webkit-animation-name:slide-out;animation-name:slide-out}:host(:is([preset=left-sheet],[preset=right-sheet],[preset=top-sheet],[preset=bottom-sheet])) .surface{--_dialog-max-width:var(--forge-dialog-max-width, none);--_dialog-max-height:var(--forge-dialog-max-height, none);inset:auto}:host([preset=left-sheet]) .forge-dialog{--_dialog-slide-translate:var(--forge-dialog-slide-translate, -100% 0)}:host([preset=left-sheet]) .surface{left:0;bottom:0;top:0;height:100%;border-top-left-radius:0;border-bottom-left-radius:0}:host([preset=right-sheet]) .forge-dialog{--_dialog-slide-translate:var(--forge-dialog-slide-translate, 100% 0)}:host([preset=right-sheet]) .surface{right:0;bottom:0;top:0;height:100%;border-top-right-radius:0;border-bottom-right-radius:0}:host([preset=top-sheet]) .forge-dialog{--_dialog-slide-translate:var(--forge-dialog-slide-translate, 0 -100%)}:host([preset=top-sheet]) .surface{top:0;left:0;right:0;border-top-left-radius:0;border-top-right-radius:0}:host([preset=bottom-sheet]) .forge-dialog{--_dialog-slide-translate:var(--forge-dialog-slide-translate, 0 100%)}:host([preset=bottom-sheet]) .surface{bottom:0;left:0;right:0;border-bottom-left-radius:0;border-bottom-right-radius:0}}@layer fullscreen{:host([fullscreen]) .forge-dialog{--_dialog-enter-animation-duration:var(--_dialog-fullscreen-enter-animation-duration);--_dialog-exit-animation-duration:var(--_dialog-fullscreen-exit-animation-duration)}:host([fullscreen]) .surface{height:100%;width:100%;max-width:none;max-height:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none}:host([fullscreen]) forge-backdrop{display:none}}@layer position-strategy{:host([position-strategy=viewport]) .forge-dialog{position:fixed}:host([position-strategy=container]) .forge-dialog{position:absolute}:host([position-strategy=container][preset$=-sheet]) .forge-dialog{contain:content}}@layer media{@media (prefers-reduced-motion:reduce){.surface{-webkit-animation-name:fade-in;animation-name:fade-in}.surface.exiting{-webkit-animation-name:fade-out;animation-name:fade-out}}}';\n\nexport interface IDialogComponent extends IWithDefaultAria, IWithElementInternals, IDismissible {\n open: boolean;\n mode: DialogMode;\n type: DialogType;\n animationType: DialogAnimationType;\n preset: DialogPreset;\n persistent: boolean;\n fullscreen: boolean;\n trigger: string;\n triggerElement: HTMLElement | null;\n positionStrategy: DialogPositionStrategy;\n sizeStrategy: DialogSizeStrategy;\n placement: DialogPlacement;\n moveable: boolean;\n show(): void;\n hide(): void;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-dialog': IDialogComponent;\n }\n\n interface HTMLElementEventMap {\n 'forge-dialog-open': CustomEvent<void>;\n 'forge-dialog-close': CustomEvent<void>;\n 'forge-dialog-before-close': CustomEvent<void>;\n 'forge-dialog-move-start': CustomEvent<IDialogMoveStartEventData>;\n 'forge-dialog-move': CustomEvent<IDialogMoveEventData>;\n 'forge-dialog-move-end': CustomEvent<void>;\n }\n}\n\nconst BaseClass = WithDefaultAria(WithElementInternals(BaseComponent));\n\n/**\n * @tag forge-dialog\n * \n * @summary Dialogs are temporary UI elements that are used to display information, ask for input, or confirm actions.\n * \n * @property {boolean} open - Indicates whether the dialog is open.\n * @property {DialogMode} mode - The mode of the dialog. Default is 'modal'.\n * @property {DialogType} type - The type of the dialog. Default is 'dialog'.\n * @property {DialogAnimationType} animationType - The animation type of the dialog.\n * @property {DialogPreset} preset - The preset design that the dialog will apply.\n * @property {boolean} persistent - Indicates whether the dialog is dismissible via escape and backdrop click or not.\n * @property {boolean} fullscreen - Indicates whether the dialog is fullscreen or not.\n * @property {string} trigger - The selector of the element that triggers the dialog.\n * @property {HTMLElement | null} triggerElement - The element that triggers the dialog.\n * @property {boolean} moveable - Indicates whether the dialog is moveable or not.\n * @property {DialogPositionStrategy} positionStrategy - Controls whether the dialog is rendered relative to the viewport its nearest containing block.\n * @property {DialogSizeStrategy} sizeStrategy - Controls the block and/or inline size of the dialog. Defaults to the size of the content it contains.\n * @property {DialogPlacement} placement - The placement of the dialog. Defaults to center.\n * \n * @attribute {boolean} open - Indicates whether the dialog is open.\n * @attribute {DialogMode} mode - The mode of the dialog. Default is 'modal'.\n * @attribute {DialogType} type - The type of the dialog. Default is 'dialog'.\n * @attribute {DialogAnimationType} animationType - The animation type of the dialog.\n * @attribute {DialogPreset} preset - The preset design that the dialog will apply.\n * @attribute {boolean} persistent - Indicates whether the dialog is dismissible via escape and backdrop click or not.\n * @attribute {boolean} fullscreen - Indicates whether the dialog is fullscreen or not.\n * @attribute {string} trigger - The selector of the element that triggers the dialog.\n * @attribute {boolean} moveable - Indicates whether the dialog is moveable or not.\n * @attribute {DialogPositionStrategy} positionStrategy - Controls whether the dialog is rendered relative to the viewport its nearest containing block.\n * @attribute {DialogSizeStrategy} sizeStrategy - Controls the block and/or inline size of the dialog. Defaults to the size of the content it contains.\n * @attribute {DialogPlacement} placement - The placement of the dialog. Defaults to center.\n * \n * @event {CustomEvent<void>} forge-dialog-open - Dispatched when the dialog is opened.\n * @event {CustomEvent<void>} forge-dialog-close - Dispatched when the dialog is closed.\n * @event {CustomEvent<void>} forge-dialog-before-close - Dispatched before the dialog is closed. This event is cancelable.\n * @event {CustomEvent<IDialogMoveStartEventData>} forge-dialog-move-start - Dispatched when the dialog is first moved.\n * @event {CustomEvent<IDialogMoveEventData>} forge-dialog-move - Dispatched when the dialog is being moved.\n * @event {CustomEvent<void>} forge-dialog-move-end - Dispatched when the dialog is done being moved.\n * \n * @cssproperty --forge-dialog-background - The background color of the dialog.\n * @cssproperty --forge-dialog-shape - The shape of the dialog.\n * @cssproperty --forge-dialog-elevation - The elevation of the dialog.\n * @cssproperty --forge-dialog-spacing - The spacing between elements inside the dialog.\n * @cssproperty --forge-dialog-block-start-spacing - The spacing at the start of the dialog block.\n * @cssproperty --forge-dialog-block-end-spacing - The spacing at the end of the dialog block.\n * @cssproperty --forge-dialog-inline-start-spacing - The spacing at the start of the dialog inline.\n * @cssproperty --forge-dialog-inline-end-spacing - The spacing at the end of the dialog inline.\n * @cssproperty --forge-dialog-padding - The padding of the dialog.\n * @cssproperty --forge-dialog-width - The width of the dialog.\n * @cssproperty --forge-dialog-height - The height of the dialog.\n * @cssproperty --forge-dialog-min-width - The minimum width of the dialog.\n * @cssproperty --forge-dialog-max-width - The maximum width of the dialog.\n * @cssproperty --forge-dialog-min-height - The minimum height of the dialog.\n * @cssproperty --forge-dialog-max-height - The maximum height of the dialog.\n * @cssproperty --forge-dialog-z-index - The z-index of the dialog.\n * @cssproperty --forge-dialog-move-handle-color - The color of the move handle.\n * @cssproperty --forge-dialog-move-handle-size - The size of the move handle.\n * @cssproperty --forge-dialog-move-handle-hover-cursor - The cursor style when hovering over the move handle.\n * @cssproperty --forge-dialog-move-handle-active-cursor - The cursor style when the move handle is active.\n * @cssproperty --forge-dialog-move-handle-spacing - The spacing around the move handle.\n * @cssproperty --forge-dialog-move-transition-duration - The duration of the move transition.\n * @cssproperty --forge-dialog-move-transition-easing - The easing function of the move transition.\n * @cssproperty --forge-dialog-moving-opacity - The opacity of the dialog when it is being moved.\n * @cssproperty --forge-dialog-enter-animation-duration - The duration of the enter animation.\n * @cssproperty --forge-dialog-enter-animation-easing - The easing function of the enter animation.\n * @cssproperty --forge-dialog-exit-animation-duration - The duration of the exit animation.\n * @cssproperty --forge-dialog-exit-animation-easing - The easing function of the exit animation.\n * @cssproperty --forge-dialog-zoom-opacity - The opacity of the dialog during zoom animation.\n * @cssproperty --forge-dialog-zoom-scale - The scale of the dialog during zoom animation.\n * @cssproperty --forge-dialog-fade-opacity - The opacity of the dialog during fade animation.\n * @cssproperty --forge-dialog-slide-opacity - The opacity of the dialog during slide animation.\n * @cssproperty --forge-dialog-slide-translate - The translation distance of the dialog during slide animation.\n * @cssproperty --forge-dialog-backdrop-opacity - The opacity of the dialog backdrop.\n * @cssproperty --forge-dialog-nonmodal-elevation - The elevation of non-modal dialogs.\n * @cssproperty --forge-dialog-fullscreen-enter-animation-duration - The duration of the enter animation for fullscreen dialogs.\n * @cssproperty --forge-dialog-fullscreen-exit-animation-duration - The duration of the exit animation for fullscreen dialogs.\n * @cssproperty --forge-dialog-position-x - The x-axis position of the dialog.\n * @cssproperty --forge-dialog-position-y - The y-axis position of the dialog.\n * @cssproperty --forge-dialog-preset-sheet-enter-animation-duration - The duration of the enter animation for preset sheet dialogs.\n * @cssproperty --forge-dialog-preset-sheet-exit-animation-duration - The duration of the exit animation for preset sheet dialogs.\n * \n * @csspart root - The dialog container element.\n * @csspart backdrop - The backdrop element.\n * @csspart surface - The dialog surface element.\n * @csspart move-handle-container - The alignment container for the move handle.\n * @csspart move-handle - The move handle element.\n * @csspart move-handle-icon - The move handle icon element.\n * \n * @slot - The content of the dialog.\n * @slot move-handle - The move handle content.\n */\n@CustomElement({\n name: DIALOG_CONSTANTS.elementName,\n dependencies: [\n BackdropComponent\n ]\n})\nexport class DialogComponent extends BaseClass implements IDialogComponent {\n public static get observedAttributes(): string[] {\n return Object.values(DIALOG_CONSTANTS.observedAttributes);\n }\n\n /** Contains all the dialogs that are currently open. */\n public static readonly [dialogStack]: Set<IDialogComponent> = new Set();\n\n private _foundation: DialogFoundation;\n\n public [hideBackdrop](): void {\n this._foundation.hideBackdrop();\n }\n \n public [showBackdrop](): void {\n this._foundation.showBackdrop();\n }\n\n public [tryDismiss](_state?: IDismissibleStackState<string> | undefined): boolean {\n return this._foundation.dispatchBeforeCloseEvent();\n }\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n this._foundation = new DialogFoundation(new DialogAdapter(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 DIALOG_CONSTANTS.observedAttributes.OPEN:\n this.open = coerceBoolean(newValue);\n break;\n case DIALOG_CONSTANTS.observedAttributes.MODE:\n this.mode = newValue as DialogMode ?? DIALOG_CONSTANTS.defaults.MODE;\n break;\n case DIALOG_CONSTANTS.observedAttributes.TYPE:\n this.type = newValue as DialogType ?? DIALOG_CONSTANTS.defaults.TYPE;\n break;\n case DIALOG_CONSTANTS.observedAttributes.ANIMATION_TYPE:\n this.animationType = newValue as DialogAnimationType ?? DIALOG_CONSTANTS.defaults.ANIMATION_TYPE;\n break;\n case DIALOG_CONSTANTS.observedAttributes.PRESET:\n this.preset = newValue as DialogPreset ?? DIALOG_CONSTANTS.defaults.PRESET;\n break;\n case DIALOG_CONSTANTS.observedAttributes.PERSISTENT:\n this.persistent = coerceBoolean(newValue);\n break;\n case DIALOG_CONSTANTS.observedAttributes.FULLSCREEN:\n this.fullscreen = coerceBoolean(newValue);\n break;\n case DIALOG_CONSTANTS.observedAttributes.TRIGGER:\n this.trigger = newValue;\n break;\n case DIALOG_CONSTANTS.observedAttributes.MOVEABLE:\n this.moveable = coerceBoolean(newValue);\n break;\n case DIALOG_CONSTANTS.observedAttributes.POSITION_STRATEGY:\n this.positionStrategy = newValue as DialogPositionStrategy ?? DIALOG_CONSTANTS.defaults.POSITION_STRATEGY;\n break;\n case DIALOG_CONSTANTS.observedAttributes.SIZE_STRATEGY:\n this.sizeStrategy = newValue as DialogSizeStrategy ?? DIALOG_CONSTANTS.defaults.SIZE_STRATEGY;\n break;\n case DIALOG_CONSTANTS.observedAttributes.PLACEMENT:\n this.placement = newValue as DialogPlacement ?? DIALOG_CONSTANTS.defaults.PLACEMENT;\n break;\n }\n }\n\n @FoundationProperty()\n public declare open: boolean;\n \n @FoundationProperty()\n public declare mode: DialogMode;\n\n @FoundationProperty()\n public declare type: DialogType;\n\n @FoundationProperty()\n public declare animationType: DialogAnimationType;\n\n @FoundationProperty()\n public declare preset: DialogPreset;\n\n @FoundationProperty()\n public declare persistent: boolean;\n\n @FoundationProperty()\n public declare fullscreen: boolean;\n\n @FoundationProperty()\n public declare trigger: string;\n\n @FoundationProperty()\n public declare triggerElement: HTMLElement | null;\n\n @FoundationProperty()\n public declare moveable: boolean;\n\n @FoundationProperty()\n public declare positionStrategy: DialogPositionStrategy;\n\n @FoundationProperty()\n public declare sizeStrategy: DialogSizeStrategy;\n\n @FoundationProperty()\n public declare placement: DialogPlacement;\n\n public show(): void {\n this.open = true;\n }\n\n public hide(): void {\n this.open = false;\n }\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\n\nimport { DialogComponent } from './dialog';\n\nexport * from './dialog-adapter';\nexport * from './dialog-constants';\nexport * from './dialog-foundation';\nexport * from './dialog';\n\nexport function defineDialogComponent(): void {\n defineCustomElement(DialogComponent);\n}\n"],
5
+ "mappings": "oeAEA,IAAMA,EAA2C,GAAGC,UAE9CC,EAAqB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observedAttributes", "attributes", "__spreadValues", "classes", "selectors", "events", "defaults", "DIALOG_CONSTANTS", "hideBackdrop", "showBackdrop", "dialogStack", "DialogAdapter", "BaseAdapter", "component", "getShadowElement", "DIALOG_CONSTANTS", "BACKDROP_CONSTANTS", "setDefaultAria", "isModal", "DialogComponent", "dialogStack", "dialog", "hideBackdrop", "_a", "showBackdrop", "close", "playKeyframeAnimation", "listener", "autofocusElement", "id", "rootNode", "className", "WithMoveable", "base", "Moveable", "evt", "bounds", "position", "newPosition", "__spreadValues", "newX", "newY", "_evt", "_a", "getActiveElement", "value", "isNumber", "isString", "pageX", "pageY", "context", "_b", "x", "y", "width", "height", "MoveBase", "WithMoveable", "MoveController", "_config", "x", "y", "position", "DialogFoundation", "_adapter", "DIALOG_CONSTANTS", "evt", "DismissibleStack", "_a", "_b", "_evt", "onMoveStart", "event", "onMove", "position", "onMoveEnd", "handleElement", "surfaceElement", "MoveController", "value", "element", "template", "styles", "BaseClass", "WithDefaultAria", "WithElementInternals", "BaseComponent", "_a", "DialogComponent", "attachShadowTemplate", "DialogFoundation", "DialogAdapter", "DIALOG_CONSTANTS", "dialogStack", "hideBackdrop", "showBackdrop", "tryDismiss", "_state", "name", "oldValue", "newValue", "coerceBoolean", "__decorateClass", "FoundationProperty", "CustomElement", "BackdropComponent", "defineDialogComponent", "defineCustomElement", "DialogComponent"]
7
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
5
+ */
6
+ import{j as m}from"./chunk.SB2LOK2R.js";import{a as n}from"./chunk.NVUMRW44.js";import{a as b}from"./chunk.OLFOVKQG.js";import{a as _,b as g}from"./chunk.VRSPT7WX.js";import{e as h,k as p}from"./chunk.LNTTU2GL.js";import{k as c}from"./chunk.J2M2MXP2.js";import{a as f,d as o}from"./chunk.M3QDAYD2.js";var d=class extends b{constructor(e){super(e);this._targetElement=null}destroy(){this._targetElement=null}hasTargetElement(){return!!this._targetElement}addTargetListener(e,s){var r;(r=this._targetElement)==null||r.addEventListener(e,s)}removeTargetListener(e,s){var r;(r=this._targetElement)==null||r.removeEventListener(e,s)}getTargetElement(){return this._targetElement}setTargetElement(e){this._targetElement=e}trySetTarget(e){this._targetElement=m(this._component,e)}isActive(e,s){let r=s!=null?s:this._targetElement;return!!(r!=null&&r.matches(e))}};var v=`${g}focus-indicator`,w={TARGET:"target",ACTIVE:"active",INWARD:"inward",CIRCULAR:"circular",ALLOW_FOCUS:"allow-focus",FOCUS_MODE:"focus-mode"},E=f({},w),T={FOCUS_MODE:"focusin"},i={elementName:v,attributes:E,defaults:T};var u=class{constructor(t){this._adapter=t;this._target=null;this._active=!1;this._inward=!1;this._circular=!1;this._allowFocus=!1;this._focusMode=i.defaults.FOCUS_MODE;this._interactionListener=e=>this._onInteraction(e)}initialize(){this._adapter.hasTargetElement()||this._adapter.trySetTarget(this._target),this._addListeners()}destroy(){this._removeListeners(),this._adapter.destroy()}_addListeners(){this._adapter.addTargetListener(this._focusMode,this._interactionListener),this._adapter.addTargetListener("focusout",this._interactionListener),this._adapter.addTargetListener("pointerdown",this._interactionListener)}_removeListeners(){this._adapter.removeTargetListener(this._focusMode,this._interactionListener),this._adapter.removeTargetListener("focusout",this._interactionListener),this._adapter.removeTargetListener("pointerdown",this._interactionListener)}_onInteraction(t){let e=t.target;switch(t.type){case this._focusMode:this.active=this._adapter.isActive(this._allowFocus?":focus":":focus-visible",e);break;case"focusout":this.active=!1;break;case"pointerdown":this.active=this._allowFocus?this._adapter.isActive(":focus",e):this._adapter.isActive(":focus-visible",e);break}}get targetElement(){return this._adapter.getTargetElement()}set targetElement(t){this._removeListeners(),this._adapter.setTargetElement(t),this._addListeners()}get target(){return this._adapter.getHostAttribute(i.attributes.TARGET)}set target(t){this._target!==t&&(this._target=t,this._adapter.isConnected&&this._adapter.trySetTarget(t),this._adapter.toggleHostAttribute(i.attributes.TARGET,!!this._target,this._target))}get active(){return this._active}set active(t){t=!!t,this._active!==t&&(this._active=t,this._adapter.toggleHostAttribute(i.attributes.ACTIVE,this._active))}get inward(){return this._inward}set inward(t){t=!!t,this._inward!==t&&(this._inward=t,this._adapter.toggleHostAttribute(i.attributes.INWARD,this._inward))}get circular(){return this._circular}set circular(t){t=!!t,this._circular!==t&&(this._circular=t,this._adapter.toggleHostAttribute(i.attributes.CIRCULAR,this._circular))}get allowFocus(){return this._allowFocus}set allowFocus(t){t=!!t,this._allowFocus!==t&&(this._allowFocus=t,this._adapter.toggleHostAttribute(i.attributes.ALLOW_FOCUS,this._allowFocus))}get focusMode(){return this._focusMode}set focusMode(t){if(t!=null||(t=i.defaults.FOCUS_MODE),this._focusMode!==t){this._adapter.isConnected&&this._removeListeners(),this._focusMode=t,this._adapter.isConnected&&this._addListeners();let e=this._focusMode!==i.defaults.FOCUS_MODE;this._adapter.toggleHostAttribute(i.attributes.FOCUS_MODE,e,this._focusMode)}}};var L="<template></template>",F=":host{--_focus-indicator-width:var(--forge-focus-indicator-width, var(--forge-border-medium, 2px));--_focus-indicator-active-width:var(--forge-focus-indicator-active-width, 6px);--_focus-indicator-color:var(--forge-focus-indicator-color, var(--forge-theme-primary, #3f51b5));--_focus-indicator-shape:var(--forge-focus-indicator-shape, var(--forge-shape-extra-small, 1px));--_focus-indicator-duration:var(--forge-focus-indicator-duration, var(--forge-animation-duration-long4, 600ms));--_focus-indicator-easing:var(--forge-focus-indicator-easing, var(--forge-animation-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)));--_focus-indicator-shape-start-start:var(--forge-focus-indicator-shape-start-start, var(--_focus-indicator-shape));--_focus-indicator-shape-start-end:var(--forge-focus-indicator-shape-start-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-end:var(--forge-focus-indicator-shape-end-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-start:var(--forge-focus-indicator-shape-end-start, var(--_focus-indicator-shape));--_focus-indicator-outward-offset:var(--forge-focus-indicator-outward-offset, var(--forge-spacing-xxsmall, 4px));--_focus-indicator-inward-offset:var(--forge-focus-indicator-inward-offset, 0px);--_focus-indicator-offset-block:var(--forge-focus-indicator-offset-block, 0);--_focus-indicator-offset-inline:var(--forge-focus-indicator-offset-inline, 0)}:host{-webkit-animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);-webkit-animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);-webkit-animation-timing-function:var(--_focus-indicator-easing);animation-timing-function:var(--_focus-indicator-easing);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--_focus-indicator-color);display:none;pointer-events:none;position:absolute;margin-block:var(--_focus-indicator-offset-block);margin-inline:var(--_focus-indicator-offset-inline)}:host([hidden]){display:none}:host([active]){display:-webkit-box;display:flex}:host(:not([inward])){-webkit-animation-name:outward-grow,outward-shrink;animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) + var(--_focus-indicator-outward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) + var(--_focus-indicator-outward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) + var(--_focus-indicator-outward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) + var(--_focus-indicator-outward-offset));inset:calc(-1 * var(--_focus-indicator-outward-offset));outline:var(--_focus-indicator-width) solid currentColor}:host([inward]){-webkit-animation-name:inward-grow,inward-shrink;animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) - var(--_focus-indicator-inward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) - var(--_focus-indicator-inward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) - var(--_focus-indicator-inward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) - var(--_focus-indicator-inward-offset));border:var(--_focus-indicator-width) solid currentColor;inset:var(--_focus-indicator-inward-offset)}:host([circular]){--_focus-indicator-shape:var(--forge-focus-indicator-shape, 50%)}@-webkit-keyframes outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@keyframes outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@keyframes inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@media (prefers-reduced-motion){:host{-webkit-animation:none;animation:none}}",a=class extends p{constructor(){super();h(this,L,F),this._foundation=new u(new d(this))}static get observedAttributes(){return Object.values(i.attributes)}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(e,s,r){switch(e){case i.attributes.TARGET:this.target=r;break;case i.attributes.ACTIVE:this.active=c(r);break;case i.attributes.INWARD:this.inward=c(r);break;case i.attributes.CIRCULAR:this.circular=c(r);break;case i.attributes.ALLOW_FOCUS:this.allowFocus=c(r);break;case i.attributes.FOCUS_MODE:this.focusMode=r;break}}};o([n()],a.prototype,"targetElement",2),o([n()],a.prototype,"target",2),o([n()],a.prototype,"active",2),o([n()],a.prototype,"inward",2),o([n()],a.prototype,"circular",2),o([n()],a.prototype,"allowFocus",2),o([n()],a.prototype,"focusMode",2),a=o([_({name:i.elementName})],a);export{d as a,i as b,u as c,a as d};
7
+ //# sourceMappingURL=chunk.FLF5RTYO.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/focus-indicator/focus-indicator-adapter.ts", "../../src/focus-indicator/focus-indicator-constants.ts", "../../src/focus-indicator/focus-indicator-foundation.ts", "../../src/focus-indicator/focus-indicator.ts"],
4
+ "sourcesContent": ["import { BaseAdapter, IBaseAdapter, locateTargetHeuristic } from '../core';\nimport { IFocusIndicatorComponent } from './focus-indicator';\n\nexport interface IFocusIndicatorAdapter extends IBaseAdapter {\n destroy(): void;\n hasTargetElement(): boolean;\n addTargetListener(type: string, listener: EventListener): void;\n removeTargetListener(type: string, listener: EventListener): void;\n getTargetElement(): HTMLElement | null;\n setTargetElement(el: HTMLElement | null): void;\n trySetTarget(value: string | null): void;\n isActive(selector: string, el?: HTMLElement | null): boolean;\n}\n\nexport class FocusIndicatorAdapter extends BaseAdapter<IFocusIndicatorComponent> implements IFocusIndicatorAdapter {\n private _targetElement: HTMLElement | null = null;\n\n constructor(component: IFocusIndicatorComponent) {\n super(component);\n }\n\n public destroy(): void {\n this._targetElement = null;\n }\n \n public hasTargetElement(): boolean {\n return !!this._targetElement;\n }\n\n public addTargetListener(type: string, listener: EventListener): void {\n this._targetElement?.addEventListener(type, listener);\n }\n\n public removeTargetListener(type: string, listener: EventListener): void {\n this._targetElement?.removeEventListener(type, listener);\n }\n\n public getTargetElement(): HTMLElement | null {\n return this._targetElement;\n }\n\n public setTargetElement(el: HTMLElement | null): void {\n this._targetElement = el;\n }\n\n public trySetTarget(value: string | null): void {\n this._targetElement = locateTargetHeuristic(this._component, value);\n }\n\n public isActive(selector: string, el?: HTMLElement | null): boolean {\n const targetedEl = el ?? this._targetElement;\n return !!targetedEl?.matches(selector);\n }\n}\n", "import { COMPONENT_NAME_PREFIX } from '../constants';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}focus-indicator`;\n\nconst observedAttributes = {\n TARGET: 'target',\n ACTIVE: 'active',\n INWARD: 'inward',\n CIRCULAR: 'circular',\n ALLOW_FOCUS: 'allow-focus',\n FOCUS_MODE: 'focus-mode'\n};\n\nconst attributes = {\n ...observedAttributes\n};\n\nconst defaults = {\n FOCUS_MODE: 'focusin' as FocusIndicatorFocusMode\n};\n\nexport const FOCUS_INDICATOR_CONSTANTS = {\n elementName,\n attributes,\n defaults\n};\n\nexport type FocusIndicatorFocusMode = 'focus' | 'focusin';\n", "import { IFocusIndicatorAdapter } from './focus-indicator-adapter';\nimport { FocusIndicatorFocusMode, FOCUS_INDICATOR_CONSTANTS } from './focus-indicator-constants';\n\nexport interface IFocusIndicatorFoundation {\n targetElement: HTMLElement | null;\n target: string | null;\n active: boolean;\n inward: boolean;\n circular: boolean;\n allowFocus: boolean;\n focusMode: FocusIndicatorFocusMode;\n initialize(): void;\n destroy(): void;\n}\n\nexport class FocusIndicatorFoundation implements IFocusIndicatorFoundation {\n private _target: string | null = null;\n private _active = false;\n private _inward = false;\n private _circular = false;\n private _allowFocus = false;\n private _focusMode = FOCUS_INDICATOR_CONSTANTS.defaults.FOCUS_MODE;\n private _interactionListener: EventListener;\n\n constructor(private _adapter: IFocusIndicatorAdapter) {\n this._interactionListener = evt => this._onInteraction(evt);\n }\n\n public initialize(): void {\n if (!this._adapter.hasTargetElement()) {\n this._adapter.trySetTarget(this._target);\n }\n this._addListeners();\n }\n\n public destroy(): void {\n this._removeListeners(); // Must be called before destroying adapter\n this._adapter.destroy();\n }\n\n private _addListeners(): void {\n this._adapter.addTargetListener(this._focusMode, this._interactionListener);\n this._adapter.addTargetListener('focusout', this._interactionListener);\n this._adapter.addTargetListener('pointerdown', this._interactionListener);\n }\n\n private _removeListeners(): void {\n this._adapter.removeTargetListener(this._focusMode, this._interactionListener);\n this._adapter.removeTargetListener('focusout', this._interactionListener);\n this._adapter.removeTargetListener('pointerdown', this._interactionListener);\n }\n\n private _onInteraction(evt: Event): void {\n const target = evt.target as HTMLElement | null;\n switch (evt.type) {\n case this._focusMode:\n this.active = this._adapter.isActive(this._allowFocus ? ':focus' : ':focus-visible', target);\n break;\n case 'focusout':\n this.active = false;\n break;\n case 'pointerdown':\n this.active = this._allowFocus ? this._adapter.isActive(':focus', target) : this._adapter.isActive(':focus-visible', target);\n break;\n }\n }\n\n public get targetElement(): HTMLElement | null {\n return this._adapter.getTargetElement();\n }\n public set targetElement(value: HTMLElement | null) {\n this._removeListeners();\n this._adapter.setTargetElement(value);\n this._addListeners();\n }\n\n public get target(): string | null {\n return this._adapter.getHostAttribute(FOCUS_INDICATOR_CONSTANTS.attributes.TARGET);\n }\n public set target(value: string | null) {\n if (this._target !== value) {\n this._target = value;\n if (this._adapter.isConnected) {\n this._adapter.trySetTarget(value);\n }\n this._adapter.toggleHostAttribute(FOCUS_INDICATOR_CONSTANTS.attributes.TARGET, Boolean(this._target), this._target as string);\n }\n }\n\n public get active(): boolean {\n return this._active;\n }\n public set active(value: boolean) {\n value = Boolean(value);\n if (this._active !== value) {\n this._active = value;\n this._adapter.toggleHostAttribute(FOCUS_INDICATOR_CONSTANTS.attributes.ACTIVE, this._active);\n }\n }\n\n public get inward(): boolean {\n return this._inward;\n }\n public set inward(value: boolean) {\n value = Boolean(value);\n if (this._inward !== value) {\n this._inward = value;\n this._adapter.toggleHostAttribute(FOCUS_INDICATOR_CONSTANTS.attributes.INWARD, this._inward);\n }\n }\n\n public get circular(): boolean {\n return this._circular;\n }\n public set circular(value: boolean) {\n value = Boolean(value);\n if (this._circular !== value) {\n this._circular = value;\n this._adapter.toggleHostAttribute(FOCUS_INDICATOR_CONSTANTS.attributes.CIRCULAR, this._circular);\n }\n }\n\n public get allowFocus(): boolean {\n return this._allowFocus;\n }\n public set allowFocus(value: boolean) {\n value = Boolean(value);\n if (this._allowFocus !== value) {\n this._allowFocus = value;\n this._adapter.toggleHostAttribute(FOCUS_INDICATOR_CONSTANTS.attributes.ALLOW_FOCUS, this._allowFocus);\n }\n }\n\n public get focusMode(): FocusIndicatorFocusMode {\n return this._focusMode;\n }\n public set focusMode(value: FocusIndicatorFocusMode) {\n value ??= FOCUS_INDICATOR_CONSTANTS.defaults.FOCUS_MODE;\n if (this._focusMode !== value) {\n if (this._adapter.isConnected) {\n this._removeListeners();\n }\n\n this._focusMode = value;\n\n if (this._adapter.isConnected) {\n this._addListeners();\n }\n\n const hasFocusMode = this._focusMode !== FOCUS_INDICATOR_CONSTANTS.defaults.FOCUS_MODE;\n this._adapter.toggleHostAttribute(FOCUS_INDICATOR_CONSTANTS.attributes.FOCUS_MODE, hasFocusMode, this._focusMode);\n }\n }\n}\n", "import { attachShadowTemplate, coerceBoolean, CustomElement, FoundationProperty } from '@tylertech/forge-core';\nimport { BaseComponent, IBaseComponent } from '../core/base/base-component';\nimport { FocusIndicatorAdapter } from './focus-indicator-adapter';\nimport { FocusIndicatorFocusMode, FOCUS_INDICATOR_CONSTANTS } from './focus-indicator-constants';\nimport { FocusIndicatorFoundation } from './focus-indicator-foundation';\n\nconst template = '<template></template>';\nconst styles = ':host{--_focus-indicator-width:var(--forge-focus-indicator-width, var(--forge-border-medium, 2px));--_focus-indicator-active-width:var(--forge-focus-indicator-active-width, 6px);--_focus-indicator-color:var(--forge-focus-indicator-color, var(--forge-theme-primary, #3f51b5));--_focus-indicator-shape:var(--forge-focus-indicator-shape, var(--forge-shape-extra-small, 1px));--_focus-indicator-duration:var(--forge-focus-indicator-duration, var(--forge-animation-duration-long4, 600ms));--_focus-indicator-easing:var(--forge-focus-indicator-easing, var(--forge-animation-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)));--_focus-indicator-shape-start-start:var(--forge-focus-indicator-shape-start-start, var(--_focus-indicator-shape));--_focus-indicator-shape-start-end:var(--forge-focus-indicator-shape-start-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-end:var(--forge-focus-indicator-shape-end-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-start:var(--forge-focus-indicator-shape-end-start, var(--_focus-indicator-shape));--_focus-indicator-outward-offset:var(--forge-focus-indicator-outward-offset, var(--forge-spacing-xxsmall, 4px));--_focus-indicator-inward-offset:var(--forge-focus-indicator-inward-offset, 0px);--_focus-indicator-offset-block:var(--forge-focus-indicator-offset-block, 0);--_focus-indicator-offset-inline:var(--forge-focus-indicator-offset-inline, 0)}:host{-webkit-animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);-webkit-animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);-webkit-animation-timing-function:var(--_focus-indicator-easing);animation-timing-function:var(--_focus-indicator-easing);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--_focus-indicator-color);display:none;pointer-events:none;position:absolute;margin-block:var(--_focus-indicator-offset-block);margin-inline:var(--_focus-indicator-offset-inline)}:host([hidden]){display:none}:host([active]){display:-webkit-box;display:flex}:host(:not([inward])){-webkit-animation-name:outward-grow,outward-shrink;animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) + var(--_focus-indicator-outward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) + var(--_focus-indicator-outward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) + var(--_focus-indicator-outward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) + var(--_focus-indicator-outward-offset));inset:calc(-1 * var(--_focus-indicator-outward-offset));outline:var(--_focus-indicator-width) solid currentColor}:host([inward]){-webkit-animation-name:inward-grow,inward-shrink;animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) - var(--_focus-indicator-inward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) - var(--_focus-indicator-inward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) - var(--_focus-indicator-inward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) - var(--_focus-indicator-inward-offset));border:var(--_focus-indicator-width) solid currentColor;inset:var(--_focus-indicator-inward-offset)}:host([circular]){--_focus-indicator-shape:var(--forge-focus-indicator-shape, 50%)}@-webkit-keyframes outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@keyframes outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@keyframes inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@media (prefers-reduced-motion){:host{-webkit-animation:none;animation:none}}';\n\nexport interface IFocusIndicatorComponent extends IBaseComponent {\n targetElement: HTMLElement;\n target: string | null;\n active: boolean;\n inward: boolean;\n circular: boolean;\n allowFocus: boolean;\n focusMode: FocusIndicatorFocusMode;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-focus-indicator': IFocusIndicatorComponent;\n }\n}\n\n/**\n * @tag forge-focus-indicator\n * \n * @summary Renders a focus indicator when an attached element matches `:focus-visible`.\n * \n * @property {HTMLElement} targetElement - The element to attach the focus indicator to.\n * @property {string} target - The id of the element to attach the focus indicator to.\n * @property {boolean} active - Controls whether the indicator is active.\n * @property {boolean} inward - Controls whether the indicator renders inward.\n * @property {boolean} circular - Controls whether the indicator renders circular.\n * @property {boolean} allowFocus - Controls whether the indicator renders when the target element matches `:focus` instead of `:focus-visible`.\n * @property {FocusIndicatorFocusMode} focusMode - The focus mode to use. Defaults to `focusin`.\n * \n * @attribute {string} target - The id of the element to attach the focus indicator to.\n * @attribute {boolean} active - Controls whether the indicator is active.\n * @attribute {boolean} inward - Controls whether the indicator renders inward.\n * @attribute {boolean} circular - Controls whether the indicator renders circular.\n * @attribute {boolean} allow-focus - Controls whether the indicator renders when the target element matches `:focus` instead of `:focus-visible`.\n * @attribute {FocusIndicatorFocusMode} focus-mode - The focus mode to use. Defaults to `focusin`.\n * \n * @cssproperty --forge-focus-indicator-active-width - The width of the focus indicator when active. When animating this is the max extent.\n * @cssproperty --forge-focus-indicator-color - The color of the focus indicator.\n * @cssproperty --forge-focus-indicator-duration - The animation duration.\n * @cssproperty --forge-focus-indicator-outward-offset - The offset of the focus indicator when outward.\n * @cssproperty --forge-focus-indicator-inward-offset - The offset of the focus indicator when inward.\n * @cssproperty --forge-focus-indicator-shape - The shape of the focus indicator.\n * @cssproperty --forge-focus-indicator-width - The width of the focus indicator when resting.\n * @cssproperty --forge-focus-indicator-shape-start-start - The start start shape.\n * @cssproperty --forge-focus-indicator-shape-start-end - The start end shape.\n * @cssproperty --forge-focus-indicator-shape-end-start - The end start shape.\n * @cssproperty --forge-focus-indicator-shape-end-end - The end end shape.\n * @cssproperty --forge-focus-indicator-offset-block - The block offset.\n * @cssproperty --forge-focus-indicator-offset-inline - The inline offset.\n * \n * @csspart indicator - The focus indicator element.\n */\n@CustomElement({\n name: FOCUS_INDICATOR_CONSTANTS.elementName\n})\nexport class FocusIndicatorComponent extends BaseComponent implements IFocusIndicatorComponent {\n public static get observedAttributes(): string[] {\n return Object.values(FOCUS_INDICATOR_CONSTANTS.attributes);\n }\n\n private _foundation: FocusIndicatorFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n this._foundation = new FocusIndicatorFoundation(new FocusIndicatorAdapter(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 FOCUS_INDICATOR_CONSTANTS.attributes.TARGET:\n this.target = newValue;\n break;\n case FOCUS_INDICATOR_CONSTANTS.attributes.ACTIVE:\n this.active = coerceBoolean(newValue);\n break;\n case FOCUS_INDICATOR_CONSTANTS.attributes.INWARD:\n this.inward = coerceBoolean(newValue);\n break;\n case FOCUS_INDICATOR_CONSTANTS.attributes.CIRCULAR:\n this.circular = coerceBoolean(newValue);\n break;\n case FOCUS_INDICATOR_CONSTANTS.attributes.ALLOW_FOCUS:\n this.allowFocus = coerceBoolean(newValue);\n break;\n case FOCUS_INDICATOR_CONSTANTS.attributes.FOCUS_MODE:\n this.focusMode = newValue as FocusIndicatorFocusMode;\n break;\n }\n }\n\n @FoundationProperty()\n public declare targetElement: HTMLElement;\n\n @FoundationProperty()\n public declare target: string | null;\n\n @FoundationProperty()\n public declare active: boolean;\n\n @FoundationProperty()\n public declare inward: boolean;\n\n @FoundationProperty()\n public declare circular: boolean;\n\n @FoundationProperty()\n public declare allowFocus: boolean;\n\n @FoundationProperty()\n public declare focusMode: FocusIndicatorFocusMode;\n}\n"],
5
+ "mappings": "6SAcO,IAAMA,EAAN,cAAoCC,CAAwE,CAGjH,YAAYC,EAAqC,CAC/C,MAAMA,CAAS,EAHjB,KAAQ,eAAqC,IAI7C,CAEO,SAAgB,CACrB,KAAK,eAAiB,IACxB,CAEO,kBAA4B,CACjC,MAAO,CAAC,CAAC,KAAK,cAChB,CAEO,kBAAkBC,EAAcC,EAA+B,CA7BxE,IAAAC,GA8BIA,EAAA,KAAK,iBAAL,MAAAA,EAAqB,iBAAiBF,EAAMC,EAC9C,CAEO,qBAAqBD,EAAcC,EAA+B,CAjC3E,IAAAC,GAkCIA,EAAA,KAAK,iBAAL,MAAAA,EAAqB,oBAAoBF,EAAMC,EACjD,CAEO,kBAAuC,CAC5C,OAAO,KAAK,cACd,CAEO,iBAAiBE,EAA8B,CACpD,KAAK,eAAiBA,CACxB,CAEO,aAAaC,EAA4B,CAC9C,KAAK,eAAiBC,EAAsB,KAAK,WAAYD,CAAK,CACpE,CAEO,SAASE,EAAkBH,EAAkC,CAClE,IAAMI,EAAaJ,GAAA,KAAAA,EAAM,KAAK,eAC9B,MAAO,CAAC,EAACI,GAAA,MAAAA,EAAY,QAAQD,GAC/B,CACF,ECnDA,IAAME,EAA2C,GAAGC,mBAE9CC,EAAqB,CACzB,OAAQ,SACR,OAAQ,SACR,OAAQ,SACR,SAAU,WACV,YAAa,cACb,WAAY,YACd,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAW,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,sBAGAU,EAAA,CADdC,EAAmB,GAxDTX,EAyDI,wBAGAU,EAAA,CADdC,EAAmB,GA3DTX,EA4DI,0BAGAU,EAAA,CADdC,EAAmB,GA9DTX,EA+DI,yBA/DJA,EAANU,EAAA,CAHNE,EAAc,CACb,KAAMP,EAA0B,WAClC,CAAC,GACYL",
6
+ "names": ["FocusIndicatorAdapter", "BaseAdapter", "component", "type", "listener", "_a", "el", "value", "locateTargetHeuristic", "selector", "targetedEl", "elementName", "COMPONENT_NAME_PREFIX", "observedAttributes", "attributes", "__spreadValues", "defaults", "FOCUS_INDICATOR_CONSTANTS", "FocusIndicatorFoundation", "_adapter", "FOCUS_INDICATOR_CONSTANTS", "evt", "target", "value", "hasFocusMode", "template", "styles", "FocusIndicatorComponent", "BaseComponent", "attachShadowTemplate", "FocusIndicatorFoundation", "FocusIndicatorAdapter", "FOCUS_INDICATOR_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "__decorateClass", "FoundationProperty", "CustomElement"]
7
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
5
+ */
6
+ import{a as e}from"./chunk.H5RW3A4M.js";import{a as O}from"./chunk.ZA7JY3AY.js";import{b as l,h as H}from"./chunk.H4VQXV2H.js";import{a as I,b as x}from"./chunk.BQ52JYLA.js";import{b as k,c as g}from"./chunk.5SUJNEC7.js";import{k as S,m as v}from"./chunk.SB2LOK2R.js";import{a}from"./chunk.NVUMRW44.js";import{a as P}from"./chunk.OLFOVKQG.js";import{a as A,f as m,n as _}from"./chunk.VRSPT7WX.js";import{a as T,e as L,f as c,k as w}from"./chunk.LNTTU2GL.js";import{a as y,k as E,l as d}from"./chunk.J2M2MXP2.js";import{d as n}from"./chunk.M3QDAYD2.js";var p=class extends P{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-${y()}`),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=S(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(),u=(o=s.getElementById(t))!=null?o:s.querySelector(t);if(u)return u}return(i=this._component.previousElementSibling)!=null?i:this._component.parentElement}};var D=O(),h=class extends D{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(),g.instance.add(this._adapter.hostElement),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(),g.instance.remove(this._adapter.hostElement),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 F='<template><div class="forge-tooltip" part="surface"><slot></slot><div class="arrow" part="arrow"></div></div></template>',M='@-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=x(I(w)),r=class extends N{constructor(){super();L(this,F,M),this._foundation=new h(new p(this))}static get observedAttributes(){return Object.values(e.observedAttributes)}[k](t){return!0}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=E(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()?v(i):null;break;case e.observedAttributes.TRIGGER_TYPE:this.triggerType=i!=null&&i.trim()?v(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([A({name:e.elementName,dependencies:[H]})],r);function Et(){T(r)}export{p as a,h as b,r as c,Et as d};
7
+ //# sourceMappingURL=chunk.GBAVJILM.js.map
@@ -0,0 +1,7 @@
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 hostElement: ITooltipComponent;\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';\nimport { DismissibleStack } from '../core/utils/dismissible-stack';\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 DismissibleStack.instance.add(this._adapter.hostElement);\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 DismissibleStack.instance.remove(this._adapter.hostElement);\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';\nimport { IDismissible, IDismissibleStackState, tryDismiss } from '../core/utils/dismissible-stack';\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, IDismissible {\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 [tryDismiss](state?: IDismissibleStackState<string> | undefined): boolean {\n return true;\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": "wiBAuBO,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,WAA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CAAC,GArF9Bd,EAsFI,wBAGAa,EAAA,CADdC,EAAmB,GAxFTd,EAyFI,qBAGAa,EAAA,CADdC,EAAmB,GA3FTd,EA4FI,sBAGAa,EAAA,CADdC,EAAmB,GA9FTd,EA+FI,oBAGAa,EAAA,CADdC,EAAmB,GAjGTd,EAkGI,wBAGAa,EAAA,CADdC,EAAmB,GApGTd,EAqGI,+BAGAa,EAAA,CADdC,EAAmB,GAvGTd,EAwGI,kCAGAa,EAAA,CADdC,EAAmB,GA1GTd,EA2GI,2BA3GJA,EAANa,EAAA,CANNE,EAAc,CACb,KAAMX,EAAkB,YACxB,aAAc,CACZY,CACF,CACF,CAAC,GACYhB,GClGN,SAASiB,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", "DismissibleStack", "_evt", "evt", "value", "element", "_a", "type", "template", "styles", "BaseClass", "WithDefaultAria", "WithElementInternals", "BaseComponent", "TooltipComponent", "attachShadowTemplate", "TooltipFoundation", "TooltipAdapter", "TOOLTIP_CONSTANTS", "tryDismiss", "state", "name", "oldValue", "newValue", "coerceBoolean", "coerceNumber", "coerceStringToArray", "__decorateClass", "FoundationProperty", "CustomElement", "OverlayComponent", "defineTooltipComponent", "defineCustomElement", "TooltipComponent"]
7
+ }