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

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 (570) hide show
  1. package/custom-elements.json +28789 -33252
  2. package/dist/esm/accordion/index.js +1 -1
  3. package/dist/esm/app-bar/app-bar/index.js +1 -1
  4. package/dist/esm/app-bar/help-button/index.js +1 -1
  5. package/dist/esm/app-bar/index.js +1 -1
  6. package/dist/esm/app-bar/menu-button/index.js +1 -1
  7. package/dist/esm/app-bar/notification-button/index.js +1 -1
  8. package/dist/esm/app-bar/profile-button/index.js +1 -1
  9. package/dist/esm/app-bar/search/index.js +1 -1
  10. package/dist/esm/autocomplete/index.js +1 -1
  11. package/dist/esm/avatar/index.js +1 -1
  12. package/dist/esm/backdrop/index.js +1 -1
  13. package/dist/esm/badge/index.js +1 -1
  14. package/dist/esm/banner/index.js +1 -1
  15. package/dist/esm/bottom-sheet/index.js +1 -1
  16. package/dist/esm/button/index.js +1 -1
  17. package/dist/esm/button-area/index.js +1 -1
  18. package/dist/esm/button-toggle/button-toggle/index.js +1 -1
  19. package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
  20. package/dist/esm/button-toggle/index.js +1 -1
  21. package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
  22. package/dist/esm/calendar/calendar-menu/index.js +1 -1
  23. package/dist/esm/calendar/index.js +1 -1
  24. package/dist/esm/card/index.js +1 -1
  25. package/dist/esm/checkbox/index.js +1 -1
  26. package/dist/esm/chip-field/index.js +1 -1
  27. package/dist/esm/chips/chip/index.js +1 -1
  28. package/dist/esm/chips/chip-set/index.js +1 -1
  29. package/dist/esm/chips/index.js +1 -1
  30. package/dist/esm/chunks/{chunk.AOVXNX7P.js → chunk.24L6GVJK.js} +2 -2
  31. package/dist/esm/chunks/{chunk.WMJSYYXQ.js → chunk.27YQZWEJ.js} +2 -2
  32. package/dist/esm/chunks/{chunk.AG6IRMLZ.js → chunk.2CP5CIRB.js} +2 -2
  33. package/dist/esm/chunks/chunk.2FF7EQQ3.js +7 -0
  34. package/dist/esm/chunks/chunk.2FF7EQQ3.js.map +7 -0
  35. package/dist/esm/chunks/{chunk.USTVZ6MZ.js → chunk.345JBXIL.js} +2 -2
  36. package/dist/esm/chunks/{chunk.USTVZ6MZ.js.map → chunk.345JBXIL.js.map} +2 -2
  37. package/dist/esm/chunks/chunk.3B573FQF.js +7 -0
  38. package/dist/esm/chunks/chunk.3B573FQF.js.map +7 -0
  39. package/dist/esm/chunks/{chunk.H4VQXV2H.js → chunk.3CXCYRCE.js} +2 -2
  40. package/dist/esm/chunks/{chunk.MTIPIEXA.js → chunk.3LNZRQAL.js} +2 -2
  41. package/dist/esm/chunks/{chunk.BQ52JYLA.js → chunk.3LUG3LPU.js} +2 -2
  42. package/dist/esm/chunks/{chunk.IL4S57WO.js → chunk.3ODT27TD.js} +2 -2
  43. package/dist/esm/chunks/chunk.3S3NH5P4.js +7 -0
  44. package/dist/esm/chunks/chunk.3S3NH5P4.js.map +7 -0
  45. package/dist/esm/chunks/{chunk.XZ23XHFE.js → chunk.45N7ZZVL.js} +2 -2
  46. package/dist/esm/chunks/{chunk.YWJVZVZX.js → chunk.4GFUXXXH.js} +2 -2
  47. package/dist/esm/chunks/chunk.4UMFAYZH.js +7 -0
  48. package/dist/esm/chunks/chunk.4UMFAYZH.js.map +7 -0
  49. package/dist/esm/chunks/{chunk.ZA7JY3AY.js → chunk.5DDR6QSF.js} +2 -2
  50. package/dist/esm/chunks/{chunk.3KAKJGUS.js → chunk.5NEWFXFX.js} +2 -2
  51. package/dist/esm/chunks/{chunk.VRSPT7WX.js → chunk.5OT53ZJM.js} +2 -2
  52. package/dist/esm/chunks/{chunk.VL5RWSAV.js → chunk.6DWRGYKV.js} +2 -2
  53. package/dist/esm/chunks/{chunk.IEABOPNB.js → chunk.6T7KPDCD.js} +2 -2
  54. package/dist/esm/chunks/chunk.6TQDZAMD.js +7 -0
  55. package/dist/esm/chunks/chunk.6TQDZAMD.js.map +7 -0
  56. package/dist/esm/chunks/chunk.6V6VLKIK.js +7 -0
  57. package/dist/esm/chunks/chunk.6V6VLKIK.js.map +7 -0
  58. package/dist/esm/chunks/{chunk.SROEDYPL.js → chunk.7JO5MB55.js} +2 -2
  59. package/dist/esm/chunks/{chunk.CLYGTLXN.js → chunk.7TE74NJZ.js} +2 -2
  60. package/dist/esm/chunks/{chunk.AGLI4WR4.js → chunk.AJLS5C7O.js} +2 -2
  61. package/dist/esm/chunks/{chunk.TSSZQPLE.js → chunk.BURDWL57.js} +2 -2
  62. package/dist/esm/chunks/chunk.BYSMPFWQ.js +7 -0
  63. package/dist/esm/chunks/chunk.BYSMPFWQ.js.map +7 -0
  64. package/dist/esm/chunks/{chunk.BHE6Z5Y2.js → chunk.CQ4XBOX5.js} +2 -2
  65. package/dist/esm/chunks/{chunk.NEQX2QVX.js → chunk.DJQXJO3T.js} +2 -2
  66. package/dist/esm/chunks/chunk.DN6Y3VXC.js +7 -0
  67. package/dist/esm/chunks/{chunk.RLQB7224.js.map → chunk.DN6Y3VXC.js.map} +2 -2
  68. package/dist/esm/chunks/{chunk.VJZ7VDG5.js → chunk.DPJJB67L.js} +2 -2
  69. package/dist/esm/chunks/{chunk.7Y3BUR7Q.js → chunk.EBRMG6N3.js} +2 -2
  70. package/dist/esm/chunks/{chunk.7Y3BUR7Q.js.map → chunk.EBRMG6N3.js.map} +2 -2
  71. package/dist/esm/chunks/chunk.EPMDEQF7.js +7 -0
  72. package/dist/esm/chunks/chunk.EPMDEQF7.js.map +7 -0
  73. package/dist/esm/chunks/{chunk.OOAJHLW4.js → chunk.EZIABLIR.js} +2 -2
  74. package/dist/esm/chunks/{chunk.ZG6YF2HI.js → chunk.F53DSRUO.js} +2 -2
  75. package/dist/esm/chunks/{chunk.7AAICE77.js → chunk.FIO22U2C.js} +2 -2
  76. package/dist/esm/chunks/{chunk.U6J4VHU6.js → chunk.FKMTIOBA.js} +2 -2
  77. package/dist/esm/chunks/chunk.FMDUCGOU.js +7 -0
  78. package/dist/esm/chunks/{chunk.OJ7JO4O6.js.map → chunk.FMDUCGOU.js.map} +1 -1
  79. package/dist/esm/chunks/{chunk.W4HANHUO.js → chunk.FMGBPF7B.js} +2 -2
  80. package/dist/esm/chunks/{chunk.5MB6CTBA.js → chunk.FVFPDWA4.js} +2 -2
  81. package/dist/esm/chunks/{chunk.ENUKGA2U.js → chunk.FYPIHFXD.js} +2 -2
  82. package/dist/esm/chunks/chunk.GNQ24XWK.js +7 -0
  83. package/dist/esm/chunks/chunk.GNQ24XWK.js.map +7 -0
  84. package/dist/esm/chunks/chunk.GP6LHJDA.js +7 -0
  85. package/dist/esm/chunks/chunk.GP6LHJDA.js.map +7 -0
  86. package/dist/esm/chunks/{chunk.CE35CVDV.js → chunk.GQ33JZVE.js} +2 -2
  87. package/dist/esm/chunks/{chunk.2W23MOPP.js → chunk.GUBLRHCG.js} +2 -2
  88. package/dist/esm/chunks/{chunk.473WRJ5G.js → chunk.HJUXBSFZ.js} +2 -2
  89. package/dist/esm/chunks/chunk.HJUXBSFZ.js.map +7 -0
  90. package/dist/esm/chunks/{chunk.37B332ZK.js → chunk.HSNVTV7K.js} +2 -2
  91. package/dist/esm/chunks/{chunk.PC6TW5XE.js → chunk.HXNNWUI3.js} +2 -2
  92. package/dist/esm/chunks/{chunk.QCPV5DEG.js → chunk.IOGCI64X.js} +2 -2
  93. package/dist/esm/chunks/chunk.JB2F2HQE.js +7 -0
  94. package/dist/esm/chunks/chunk.JB2F2HQE.js.map +7 -0
  95. package/dist/esm/chunks/chunk.JGPWKCAU.js +7 -0
  96. package/dist/esm/chunks/chunk.JGPWKCAU.js.map +7 -0
  97. package/dist/esm/chunks/chunk.JU76GN6C.js +7 -0
  98. package/dist/esm/chunks/{chunk.KLU54MDQ.js.map → chunk.JU76GN6C.js.map} +2 -2
  99. package/dist/esm/chunks/chunk.K7I5FWBT.js +7 -0
  100. package/dist/esm/chunks/chunk.K7I5FWBT.js.map +7 -0
  101. package/dist/esm/chunks/{chunk.5UOX22ML.js → chunk.KKVQNKMV.js} +2 -2
  102. package/dist/esm/chunks/{chunk.YPNSK2CK.js → chunk.KW5A2U5U.js} +2 -2
  103. package/dist/esm/chunks/chunk.L6L3CPBH.js +7 -0
  104. package/dist/esm/chunks/chunk.L6L3CPBH.js.map +7 -0
  105. package/dist/esm/chunks/{chunk.KO6ODCZC.js → chunk.LIJE4T3D.js} +2 -2
  106. package/dist/esm/chunks/{chunk.KEOLH7G3.js → chunk.LQN5U4QH.js} +2 -2
  107. package/dist/esm/chunks/{chunk.5QIWLZG3.js → chunk.LSUIJDFO.js} +2 -2
  108. package/dist/esm/chunks/{chunk.77C7S7ZS.js → chunk.N65CAIE5.js} +2 -2
  109. package/dist/esm/chunks/{chunk.UKBE2FMZ.js → chunk.NNLZKMFX.js} +2 -2
  110. package/dist/esm/chunks/{chunk.EO3GP6DP.js → chunk.ON6FFHRE.js} +2 -2
  111. package/dist/esm/chunks/{chunk.OVXEOEJF.js → chunk.ONFZ3H7M.js} +2 -2
  112. package/dist/esm/chunks/{chunk.32APLNN2.js → chunk.OVVBXM6K.js} +2 -2
  113. package/dist/esm/chunks/{chunk.FLBYVCQ6.js → chunk.P3Q3IVVX.js} +2 -2
  114. package/dist/esm/chunks/{chunk.FLBYVCQ6.js.map → chunk.P3Q3IVVX.js.map} +2 -2
  115. package/dist/esm/chunks/{chunk.DKERDHXH.js → chunk.P74RZEWP.js} +2 -2
  116. package/dist/esm/chunks/{chunk.QLGJS37N.js → chunk.PBORL6KX.js} +2 -2
  117. package/dist/esm/chunks/chunk.PDJ2H5ZG.js +7 -0
  118. package/dist/esm/chunks/{chunk.UPSXYWPD.js.map → chunk.PDJ2H5ZG.js.map} +3 -3
  119. package/dist/esm/chunks/{chunk.JGURMVW7.js → chunk.PGMOAILY.js} +2 -2
  120. package/dist/esm/chunks/{chunk.OEI35LFU.js → chunk.PKCMTSWR.js} +2 -2
  121. package/dist/esm/chunks/{chunk.QUXMLWBJ.js → chunk.Q3Z6VZUD.js} +2 -2
  122. package/dist/esm/chunks/{chunk.TQWZDM6T.js → chunk.QBHJFCLL.js} +2 -2
  123. package/dist/esm/chunks/{chunk.WXVVOFNK.js → chunk.QDG6TP2Z.js} +2 -2
  124. package/dist/esm/chunks/{chunk.H5RW3A4M.js → chunk.QH27OIAK.js} +2 -2
  125. package/dist/esm/chunks/chunk.QKCPE4LW.js +7 -0
  126. package/dist/esm/chunks/{chunk.2GUWHBUU.js → chunk.QM32CJAX.js} +2 -2
  127. package/dist/esm/chunks/{chunk.2GUWHBUU.js.map → chunk.QM32CJAX.js.map} +2 -2
  128. package/dist/esm/chunks/{chunk.FLF5RTYO.js → chunk.R2CJMM2F.js} +2 -2
  129. package/dist/esm/chunks/{chunk.IQYOLMPG.js → chunk.RGDLRUSM.js} +2 -2
  130. package/dist/esm/chunks/{chunk.QIZBZGYT.js → chunk.RKPWFEFJ.js} +2 -2
  131. package/dist/esm/chunks/{chunk.RXBLU4OJ.js → chunk.S5EU72NR.js} +2 -2
  132. package/dist/esm/chunks/chunk.SJYEDGBN.js +7 -0
  133. package/dist/esm/chunks/chunk.SJYEDGBN.js.map +7 -0
  134. package/dist/esm/chunks/{chunk.T7NWP7DB.js → chunk.SW6JDC2Y.js} +2 -2
  135. package/dist/esm/chunks/{chunk.7IPAW4D2.js → chunk.TAQRHBGS.js} +2 -2
  136. package/dist/esm/chunks/{chunk.MFQRXVKO.js → chunk.TEZFEC5B.js} +2 -2
  137. package/dist/esm/chunks/{chunk.MX4JX4GT.js → chunk.THIUQ2AU.js} +2 -2
  138. package/dist/esm/chunks/{chunk.LY2Z2Z7S.js → chunk.TQMT7BIZ.js} +2 -2
  139. package/dist/esm/chunks/{chunk.GIENHEMN.js → chunk.TR45SGWL.js} +2 -2
  140. package/dist/esm/chunks/chunk.TZHVZMOB.js +12 -0
  141. package/dist/esm/chunks/chunk.TZHVZMOB.js.map +7 -0
  142. package/dist/esm/chunks/{chunk.CFAI4K3E.js → chunk.UBVWYWO7.js} +2 -2
  143. package/dist/esm/chunks/{chunk.NWVQ5HK2.js → chunk.UHPODZWA.js} +2 -2
  144. package/dist/esm/chunks/{chunk.3PMONORO.js → chunk.V4R7FCZ2.js} +2 -2
  145. package/dist/esm/chunks/chunk.V5YGDB7V.js +7 -0
  146. package/dist/esm/chunks/{chunk.3II7OT2I.js.map → chunk.V5YGDB7V.js.map} +2 -2
  147. package/dist/esm/chunks/chunk.VAE5IFEM.js +7 -0
  148. package/dist/esm/chunks/{chunk.GBAVJILM.js.map → chunk.VAE5IFEM.js.map} +4 -4
  149. package/dist/esm/chunks/{chunk.QTY25OTN.js → chunk.VCASLYVR.js} +2 -2
  150. package/dist/esm/chunks/{chunk.QTY25OTN.js.map → chunk.VCASLYVR.js.map} +2 -2
  151. package/dist/esm/chunks/chunk.W4CL56G7.js +7 -0
  152. package/dist/esm/chunks/{chunk.BQZKOIAW.js.map → chunk.W4CL56G7.js.map} +2 -2
  153. package/dist/esm/chunks/{chunk.BEFAXPXJ.js → chunk.WNX3GGYT.js} +2 -2
  154. package/dist/esm/chunks/chunk.X4NHJE7S.js +7 -0
  155. package/dist/esm/chunks/chunk.X4NHJE7S.js.map +7 -0
  156. package/dist/esm/chunks/{chunk.I7YON2TC.js → chunk.X5MI5OFS.js} +2 -2
  157. package/dist/esm/chunks/{chunk.QKTK5XUE.js → chunk.XHRBFPZ2.js} +2 -2
  158. package/dist/esm/chunks/{chunk.ASLHRT3N.js → chunk.XT6RPXTM.js} +2 -2
  159. package/dist/esm/chunks/{chunk.VGIRVTBJ.js → chunk.XWVFJVBN.js} +2 -2
  160. package/dist/esm/chunks/{chunk.YNCTSMT6.js → chunk.YXFGOJ5Z.js} +2 -2
  161. package/dist/esm/chunks/chunk.YZ26YDCO.js +7 -0
  162. package/dist/esm/chunks/{chunk.A7BCLPP4.js.map → chunk.YZ26YDCO.js.map} +2 -2
  163. package/dist/esm/chunks/chunk.Z6G2RUC2.js +7 -0
  164. package/dist/esm/chunks/chunk.Z6G2RUC2.js.map +7 -0
  165. package/dist/esm/chunks/{chunk.K6GJNDTY.js → chunk.Z7IUKJHZ.js} +2 -2
  166. package/dist/esm/chunks/{chunk.K6GJNDTY.js.map → chunk.Z7IUKJHZ.js.map} +1 -1
  167. package/dist/esm/chunks/{chunk.GG7IQL46.js → chunk.ZPH3TMNA.js} +2 -2
  168. package/dist/esm/chunks/chunk.ZSHPKAXP.js +7 -0
  169. package/dist/esm/chunks/chunk.ZSHPKAXP.js.map +7 -0
  170. package/dist/esm/chunks/{chunk.CEGBMUSR.js → chunk.ZWELGTD7.js} +2 -2
  171. package/dist/esm/circular-progress/index.js +1 -1
  172. package/dist/esm/color-picker/index.js +1 -1
  173. package/dist/esm/core/index.js +1 -1
  174. package/dist/esm/date-picker/index.js +1 -1
  175. package/dist/esm/date-range-picker/index.js +1 -1
  176. package/dist/esm/deprecated/button/index.js +1 -1
  177. package/dist/esm/deprecated/icon-button/index.js +7 -0
  178. package/dist/esm/deprecated/index.js +1 -1
  179. package/dist/esm/dialog/index.js +1 -1
  180. package/dist/esm/divider/index.js +1 -1
  181. package/dist/esm/drawer/drawer/index.js +1 -1
  182. package/dist/esm/drawer/index.js +1 -1
  183. package/dist/esm/drawer/mini-drawer/index.js +1 -1
  184. package/dist/esm/drawer/modal-drawer/index.js +1 -1
  185. package/dist/esm/expansion-panel/index.js +1 -1
  186. package/dist/esm/field/index.js +1 -1
  187. package/dist/esm/file-picker/index.js +1 -1
  188. package/dist/esm/floating-action-button/index.js +1 -1
  189. package/dist/esm/focus-indicator/index.js +1 -1
  190. package/dist/esm/icon/index.js +1 -1
  191. package/dist/esm/icon-button/index.js +1 -1
  192. package/dist/esm/index.js +1 -1
  193. package/dist/esm/inline-message/index.js +1 -1
  194. package/dist/esm/keyboard-shortcut/index.js +1 -1
  195. package/dist/esm/label/index.js +1 -1
  196. package/dist/esm/label-value/index.js +1 -1
  197. package/dist/esm/linear-progress/index.js +1 -1
  198. package/dist/esm/list/index.js +1 -1
  199. package/dist/esm/list/list/index.js +1 -1
  200. package/dist/esm/list/list-item/index.js +1 -1
  201. package/dist/esm/list-dropdown/index.js +1 -1
  202. package/dist/esm/menu/index.js +1 -1
  203. package/dist/esm/open-icon/index.js +1 -1
  204. package/dist/esm/overlay/index.js +1 -1
  205. package/dist/esm/page-state/index.js +1 -1
  206. package/dist/esm/paginator/index.js +1 -1
  207. package/dist/esm/popover/index.js +1 -1
  208. package/dist/esm/profile-card/index.js +1 -1
  209. package/dist/esm/radio/index.js +1 -1
  210. package/dist/esm/radio/radio/index.js +1 -1
  211. package/dist/esm/radio/radio-group/index.js +1 -1
  212. package/dist/esm/scaffold/index.js +1 -1
  213. package/dist/esm/select/core/index.js +1 -1
  214. package/dist/esm/select/index.js +1 -1
  215. package/dist/esm/select/option/index.js +1 -1
  216. package/dist/esm/select/option-group/index.js +1 -1
  217. package/dist/esm/select/select/index.js +1 -1
  218. package/dist/esm/select/select-dropdown/index.js +1 -1
  219. package/dist/esm/skeleton/index.js +1 -1
  220. package/dist/esm/slider/index.js +1 -1
  221. package/dist/esm/split-button/index.js +1 -1
  222. package/dist/esm/split-view/index.js +1 -1
  223. package/dist/esm/split-view/split-view/index.js +1 -1
  224. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  225. package/dist/esm/stack/index.js +1 -1
  226. package/dist/esm/state-layer/index.js +1 -1
  227. package/dist/esm/stepper/index.js +1 -1
  228. package/dist/esm/stepper/step/index.js +1 -1
  229. package/dist/esm/stepper/stepper/index.js +1 -1
  230. package/dist/esm/switch/index.js +1 -1
  231. package/dist/esm/table/index.js +1 -1
  232. package/dist/esm/tabs/index.js +1 -1
  233. package/dist/esm/tabs/tab/index.js +1 -1
  234. package/dist/esm/tabs/tab-bar/index.js +1 -1
  235. package/dist/esm/text-field/index.js +1 -1
  236. package/dist/esm/time-picker/index.js +1 -1
  237. package/dist/esm/toast/index.js +1 -1
  238. package/dist/esm/toolbar/index.js +1 -1
  239. package/dist/esm/tooltip/index.js +1 -1
  240. package/dist/esm/utils/index.js +1 -1
  241. package/dist/esm/view-switcher/index.js +1 -1
  242. package/dist/esm/view-switcher/view/index.js +1 -1
  243. package/dist/forge-dark.css +1 -1
  244. package/dist/forge-tokens.css +6 -0
  245. package/dist/forge.css +1 -1
  246. package/dist/table/forge-table.css +1 -1
  247. package/dist/theme/forge-theme.css +1 -1
  248. package/dist/typography/forge-typography.css +1 -1
  249. package/esm/app-bar/search/app-bar-search.d.ts +3 -3
  250. package/esm/app-bar/search/app-bar-search.js +3 -3
  251. package/esm/avatar/avatar-constants.d.ts +0 -1
  252. package/esm/avatar/avatar-constants.js +0 -2
  253. package/esm/bottom-sheet/bottom-sheet-adapter.d.ts +26 -42
  254. package/esm/bottom-sheet/bottom-sheet-adapter.js +46 -85
  255. package/esm/bottom-sheet/bottom-sheet-constants.d.ts +16 -13
  256. package/esm/bottom-sheet/bottom-sheet-constants.js +24 -27
  257. package/esm/bottom-sheet/bottom-sheet-foundation.d.ts +17 -43
  258. package/esm/bottom-sheet/bottom-sheet-foundation.js +106 -213
  259. package/esm/bottom-sheet/bottom-sheet.d.ts +42 -29
  260. package/esm/bottom-sheet/bottom-sheet.js +52 -41
  261. package/esm/calendar/calendar-constants.d.ts +0 -1
  262. package/esm/calendar/calendar-constants.js +0 -1
  263. package/esm/calendar/calendar-dom-utils.js +10 -4
  264. package/esm/calendar/calendar-menu/calendar-menu-adapter.js +9 -2
  265. package/esm/calendar/calendar-menu/calendar-menu-constants.d.ts +0 -1
  266. package/esm/calendar/calendar-menu/calendar-menu-constants.js +0 -1
  267. package/esm/calendar/calendar-menu/calendar-menu-utils.js +10 -0
  268. package/esm/calendar/calendar-menu/calendar-menu.js +8 -2
  269. package/esm/calendar/calendar.js +6 -2
  270. package/esm/checkbox/checkbox-foundation.js +9 -9
  271. package/esm/color-picker/color-picker.js +1 -1
  272. package/esm/deprecated/icon-button/deprecated-icon-button-component-delegate.d.ts +38 -0
  273. package/esm/deprecated/icon-button/deprecated-icon-button-component-delegate.js +93 -0
  274. package/esm/deprecated/icon-button/deprecated-icon-button-constants.d.ts +28 -0
  275. package/esm/deprecated/icon-button/deprecated-icon-button-constants.js +28 -0
  276. package/esm/deprecated/icon-button/deprecated-icon-button.d.ts +62 -0
  277. package/esm/deprecated/icon-button/deprecated-icon-button.js +208 -0
  278. package/esm/deprecated/icon-button/index.d.ts +12 -0
  279. package/esm/deprecated/icon-button/index.js +16 -0
  280. package/esm/dialog/dialog.js +1 -1
  281. package/esm/drawer/drawer/drawer.js +1 -1
  282. package/esm/drawer/mini-drawer/mini-drawer.js +1 -1
  283. package/esm/drawer/modal-drawer/modal-drawer.js +1 -1
  284. package/esm/field/field.js +1 -1
  285. package/esm/index.d.ts +1 -3
  286. package/esm/index.js +4 -8
  287. package/esm/list/list/list.js +1 -1
  288. package/esm/list/list-item/list-item-adapter.js +4 -0
  289. package/esm/list/list-item/list-item.d.ts +6 -4
  290. package/esm/list/list-item/list-item.js +7 -5
  291. package/esm/open-icon/index.d.ts +0 -2
  292. package/esm/open-icon/index.js +0 -2
  293. package/esm/open-icon/open-icon-constants.d.ts +10 -6
  294. package/esm/open-icon/open-icon-constants.js +9 -11
  295. package/esm/open-icon/open-icon.d.ts +37 -12
  296. package/esm/open-icon/open-icon.js +67 -22
  297. package/esm/paginator/paginator-adapter.d.ts +19 -52
  298. package/esm/paginator/paginator-adapter.js +25 -106
  299. package/esm/paginator/paginator-constants.d.ts +22 -35
  300. package/esm/paginator/paginator-constants.js +17 -40
  301. package/esm/paginator/paginator-foundation.d.ts +10 -12
  302. package/esm/paginator/paginator-foundation.js +39 -51
  303. package/esm/paginator/paginator.d.ts +4 -7
  304. package/esm/paginator/paginator.js +24 -45
  305. package/esm/popover/popover.js +1 -1
  306. package/esm/profile-card/profile-card.js +1 -1
  307. package/esm/radio/radio/radio-foundation.js +2 -2
  308. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  309. package/esm/stepper/step/step.js +1 -1
  310. package/esm/switch/switch-foundation.js +6 -6
  311. package/esm/table/table-constants.d.ts +1 -0
  312. package/esm/table/table-constants.js +4 -3
  313. package/esm/table/table-foundation.js +2 -2
  314. package/esm/table/table-utils.js +31 -14
  315. package/esm/tooltip/tooltip.js +1 -1
  316. package/esm/utils/color-utils.d.ts +0 -4
  317. package/esm/utils/color-utils.js +0 -19
  318. package/esm/view-switcher/view-switcher.js +1 -1
  319. package/package.json +1 -12
  320. package/styles/bottom-sheet/_core.scss +19 -0
  321. package/styles/bottom-sheet/_token-utils.scss +30 -0
  322. package/styles/bottom-sheet/bottom-sheet.scss +59 -3
  323. package/styles/{color-picker/_variables.scss → bottom-sheet/index.scss} +1 -1
  324. package/styles/calendar/_mixins.scss +33 -56
  325. package/styles/calendar/_variables.scss +39 -39
  326. package/styles/calendar/calendar-menu/_mixins.scss +25 -84
  327. package/styles/color-picker/_mixins.scss +15 -21
  328. package/styles/color-picker/color-picker.scss +0 -1
  329. package/styles/core/styles/animation/index.scss +22 -0
  330. package/styles/core/styles/border/index.scss +10 -1
  331. package/styles/core/styles/elevation/index.scss +19 -26
  332. package/styles/core/styles/shape/index.scss +9 -0
  333. package/styles/core/styles/spacing/index.scss +9 -0
  334. package/styles/core/styles/theme/index.scss +2 -13
  335. package/styles/core/styles/tokens/bottom-sheet/_tokens.scss +21 -0
  336. package/styles/core/styles/tokens/elevation/_tokens.scss +35 -84
  337. package/styles/core/styles/tokens/list/list/_tokens.scss +14 -1
  338. package/styles/core/styles/tokens/list/list-item/_tokens.scss +6 -6
  339. package/styles/core/styles/tokens/open-icon/_tokens.scss +25 -0
  340. package/styles/core/styles/tokens/popover/_tokens.scss +1 -1
  341. package/styles/core/styles/tokens/theme/_tokens.core.scss +60 -30
  342. package/styles/core/styles/tokens/theme/_tokens.scss +1 -48
  343. package/styles/core/styles/tokens/theme/_tokens.status.scss +78 -32
  344. package/styles/core/styles/tokens/theme/_tokens.surface.scss +33 -51
  345. package/styles/core/styles/tokens/theme/_tokens.text.scss +20 -26
  346. package/styles/core/styles/tokens/theme/_tokens.utilities.scss +13 -23
  347. package/styles/core/styles/tokens/tooltip/_tokens.scss +1 -1
  348. package/styles/deprecated/icon-button/deprecated-icon-button.scss +114 -0
  349. package/styles/dialog/_core.scss +3 -1
  350. package/styles/dialog/dialog.scss +1 -1
  351. package/styles/drawer/base/_mixins.scss +11 -10
  352. package/styles/drawer/base/_variables.scss +6 -5
  353. package/styles/drawer/drawer/_variables.scss +6 -5
  354. package/styles/drawer/mini-drawer/_mixins.scss +11 -14
  355. package/styles/drawer/modal-drawer/_mixins.scss +4 -9
  356. package/styles/field/_core.variant.scss +0 -1
  357. package/styles/forge-tokens.scss +40 -0
  358. package/styles/forge.scss +1 -10
  359. package/styles/linear-progress/_core.scss +0 -1
  360. package/styles/list/list/list.scss +23 -7
  361. package/styles/list/list-item/_core.scss +10 -10
  362. package/styles/list/list-item/list-item.scss +4 -4
  363. package/styles/open-icon/_core.scss +26 -0
  364. package/styles/open-icon/_token-utils.scss +30 -0
  365. package/styles/{paginator/_variables.scss → open-icon/index.scss} +1 -1
  366. package/styles/open-icon/open-icon.scss +75 -3
  367. package/styles/paginator/_core.scss +42 -0
  368. package/styles/{typography/_index.scss → paginator/index.scss} +1 -2
  369. package/styles/paginator/paginator.scss +49 -5
  370. package/styles/profile-card/profile-card.scss +0 -1
  371. package/styles/split-view/split-view/_mixins.scss +0 -2
  372. package/styles/split-view/split-view-panel/_mixins.scss +12 -16
  373. package/styles/split-view/split-view-panel/_variables.scss +0 -1
  374. package/styles/table/_core.scss +333 -0
  375. package/styles/table/_variables.scss +22 -37
  376. package/styles/table/forge-table.scss +217 -3
  377. package/styles/{theme/_index.scss → table/index.scss} +1 -2
  378. package/styles/theme/_theme-dark.scss +0 -5
  379. package/styles/theme/forge-theme.scss +0 -7
  380. package/styles/typography/forge-typography.scss +0 -3
  381. package/styles/view-switcher/_mixins.scss +8 -8
  382. package/dist/busy-indicator/forge-busy-indicator.css +0 -6
  383. package/dist/esm/busy-indicator/index.js +0 -7
  384. package/dist/esm/chunks/chunk.3CTKWBV2.js +0 -7
  385. package/dist/esm/chunks/chunk.3CTKWBV2.js.map +0 -7
  386. package/dist/esm/chunks/chunk.3II7OT2I.js +0 -7
  387. package/dist/esm/chunks/chunk.6VS3LYAF.js +0 -7
  388. package/dist/esm/chunks/chunk.6VS3LYAF.js.map +0 -7
  389. package/dist/esm/chunks/chunk.7RLY2O3H.js +0 -7
  390. package/dist/esm/chunks/chunk.7RLY2O3H.js.map +0 -7
  391. package/dist/esm/chunks/chunk.A7BCLPP4.js +0 -7
  392. package/dist/esm/chunks/chunk.AFWWND2C.js +0 -7
  393. package/dist/esm/chunks/chunk.AFWWND2C.js.map +0 -7
  394. package/dist/esm/chunks/chunk.AIJK3CTV.js +0 -12
  395. package/dist/esm/chunks/chunk.AIJK3CTV.js.map +0 -7
  396. package/dist/esm/chunks/chunk.BQZKOIAW.js +0 -7
  397. package/dist/esm/chunks/chunk.BV7EAQST.js +0 -7
  398. package/dist/esm/chunks/chunk.BV7EAQST.js.map +0 -7
  399. package/dist/esm/chunks/chunk.CGFSMACZ.js +0 -7
  400. package/dist/esm/chunks/chunk.CGFSMACZ.js.map +0 -7
  401. package/dist/esm/chunks/chunk.GBAVJILM.js +0 -7
  402. package/dist/esm/chunks/chunk.GRYO5XP2.js +0 -7
  403. package/dist/esm/chunks/chunk.GRYO5XP2.js.map +0 -7
  404. package/dist/esm/chunks/chunk.HD2SLIL2.js +0 -7
  405. package/dist/esm/chunks/chunk.HD2SLIL2.js.map +0 -7
  406. package/dist/esm/chunks/chunk.HG4IDRAC.js +0 -7
  407. package/dist/esm/chunks/chunk.HG4IDRAC.js.map +0 -7
  408. package/dist/esm/chunks/chunk.KCCW4AMU.js +0 -7
  409. package/dist/esm/chunks/chunk.KCCW4AMU.js.map +0 -7
  410. package/dist/esm/chunks/chunk.KLU54MDQ.js +0 -7
  411. package/dist/esm/chunks/chunk.MFS7AVW6.js +0 -7
  412. package/dist/esm/chunks/chunk.MFS7AVW6.js.map +0 -7
  413. package/dist/esm/chunks/chunk.O5WAQQNR.js +0 -7
  414. package/dist/esm/chunks/chunk.O5WAQQNR.js.map +0 -7
  415. package/dist/esm/chunks/chunk.OJ7JO4O6.js +0 -7
  416. package/dist/esm/chunks/chunk.OQHDHS2C.js +0 -7
  417. package/dist/esm/chunks/chunk.OQHDHS2C.js.map +0 -7
  418. package/dist/esm/chunks/chunk.OREDK5MJ.js +0 -7
  419. package/dist/esm/chunks/chunk.OREDK5MJ.js.map +0 -7
  420. package/dist/esm/chunks/chunk.QVATEY5S.js +0 -7
  421. package/dist/esm/chunks/chunk.QVATEY5S.js.map +0 -7
  422. package/dist/esm/chunks/chunk.RKIJTSSL.js +0 -7
  423. package/dist/esm/chunks/chunk.RKIJTSSL.js.map +0 -7
  424. package/dist/esm/chunks/chunk.RLQB7224.js +0 -7
  425. package/dist/esm/chunks/chunk.RSYEG2RW.js +0 -7
  426. package/dist/esm/chunks/chunk.RSYEG2RW.js.map +0 -7
  427. package/dist/esm/chunks/chunk.SZOZIJZI.js +0 -7
  428. package/dist/esm/chunks/chunk.SZOZIJZI.js.map +0 -7
  429. package/dist/esm/chunks/chunk.UPSXYWPD.js +0 -7
  430. package/dist/esm/chunks/chunk.V6KUOCAR.js +0 -7
  431. package/dist/esm/chunks/chunk.V6KUOCAR.js.map +0 -7
  432. package/dist/esm/chunks/chunk.X77NKT6Z.js +0 -7
  433. package/dist/esm/chunks/chunk.X77NKT6Z.js.map +0 -7
  434. package/dist/esm/chunks/chunk.YRAEFQJW.js +0 -7
  435. package/dist/esm/chunks/chunk.YRAEFQJW.js.map +0 -7
  436. package/dist/esm/quantity-field/index.js +0 -7
  437. package/dist/esm/quantity-field/index.js.map +0 -7
  438. package/dist/esm/theme/index.js +0 -7
  439. package/dist/esm/theme/index.js.map +0 -7
  440. package/dist/quantity-field/forge-quantity-field.css +0 -6
  441. package/dist/typography/forge-typography-legacy.css +0 -6
  442. package/dist/utils/forge-utils.css +0 -6
  443. package/esm/busy-indicator/busy-indicator-adapter.d.ts +0 -155
  444. package/esm/busy-indicator/busy-indicator-adapter.js +0 -203
  445. package/esm/busy-indicator/busy-indicator-constants.d.ts +0 -49
  446. package/esm/busy-indicator/busy-indicator-constants.js +0 -58
  447. package/esm/busy-indicator/busy-indicator-foundation.d.ts +0 -97
  448. package/esm/busy-indicator/busy-indicator-foundation.js +0 -268
  449. package/esm/busy-indicator/busy-indicator.d.ts +0 -77
  450. package/esm/busy-indicator/busy-indicator.js +0 -115
  451. package/esm/busy-indicator/index.d.ts +0 -10
  452. package/esm/busy-indicator/index.js +0 -14
  453. package/esm/open-icon/open-icon-adapter.d.ts +0 -18
  454. package/esm/open-icon/open-icon-adapter.js +0 -27
  455. package/esm/open-icon/open-icon-foundation.d.ts +0 -22
  456. package/esm/open-icon/open-icon-foundation.js +0 -35
  457. package/esm/quantity-field/index.d.ts +0 -11
  458. package/esm/quantity-field/index.js +0 -15
  459. package/esm/quantity-field/quantity-field-adapter.d.ts +0 -77
  460. package/esm/quantity-field/quantity-field-adapter.js +0 -221
  461. package/esm/quantity-field/quantity-field-component-delegate.d.ts +0 -44
  462. package/esm/quantity-field/quantity-field-component-delegate.js +0 -129
  463. package/esm/quantity-field/quantity-field-constants.d.ts +0 -35
  464. package/esm/quantity-field/quantity-field-constants.js +0 -41
  465. package/esm/quantity-field/quantity-field-foundation.d.ts +0 -36
  466. package/esm/quantity-field/quantity-field-foundation.js +0 -100
  467. package/esm/quantity-field/quantity-field.d.ts +0 -34
  468. package/esm/quantity-field/quantity-field.js +0 -100
  469. package/esm/theme/color-constants.d.ts +0 -313
  470. package/esm/theme/color-constants.js +0 -363
  471. package/esm/theme/index.d.ts +0 -7
  472. package/esm/theme/index.js +0 -7
  473. package/esm/theme/theme-utils.d.ts +0 -9
  474. package/esm/theme/theme-utils.js +0 -68
  475. package/styles/bottom-sheet/_mixins.scss +0 -93
  476. package/styles/bottom-sheet/_variables.scss +0 -7
  477. package/styles/busy-indicator/_mixins.scss +0 -185
  478. package/styles/busy-indicator/_variables.scss +0 -9
  479. package/styles/busy-indicator/busy-indicator.scss +0 -22
  480. package/styles/busy-indicator/forge-busy-indicator.scss +0 -8
  481. package/styles/open-icon/_mixins.scss +0 -39
  482. package/styles/open-icon/_variables.scss +0 -8
  483. package/styles/paginator/_mixins.scss +0 -136
  484. package/styles/quantity-field/_mixins.scss +0 -116
  485. package/styles/quantity-field/forge-quantity-field.scss +0 -18
  486. package/styles/quantity-field/quantity-field.scss +0 -16
  487. package/styles/table/_mixins.scss +0 -547
  488. package/styles/theme/_custom-properties.scss +0 -311
  489. package/styles/theme/_keys.scss +0 -477
  490. package/styles/theme/_theme-utils.scss +0 -23
  491. package/styles/theme/_theme-values.scss +0 -246
  492. package/styles/theme/_theme.scss +0 -279
  493. package/styles/typography/_mixins.scss +0 -73
  494. package/styles/typography/_variables.scss +0 -100
  495. package/styles/typography/forge-typography-legacy.scss +0 -8
  496. package/styles/utils/forge-utils.scss +0 -45
  497. /package/dist/esm/chunks/{chunk.AOVXNX7P.js.map → chunk.24L6GVJK.js.map} +0 -0
  498. /package/dist/esm/chunks/{chunk.WMJSYYXQ.js.map → chunk.27YQZWEJ.js.map} +0 -0
  499. /package/dist/esm/chunks/{chunk.AG6IRMLZ.js.map → chunk.2CP5CIRB.js.map} +0 -0
  500. /package/dist/esm/chunks/{chunk.H4VQXV2H.js.map → chunk.3CXCYRCE.js.map} +0 -0
  501. /package/dist/esm/chunks/{chunk.MTIPIEXA.js.map → chunk.3LNZRQAL.js.map} +0 -0
  502. /package/dist/esm/chunks/{chunk.BQ52JYLA.js.map → chunk.3LUG3LPU.js.map} +0 -0
  503. /package/dist/esm/chunks/{chunk.IL4S57WO.js.map → chunk.3ODT27TD.js.map} +0 -0
  504. /package/dist/esm/chunks/{chunk.XZ23XHFE.js.map → chunk.45N7ZZVL.js.map} +0 -0
  505. /package/dist/esm/chunks/{chunk.YWJVZVZX.js.map → chunk.4GFUXXXH.js.map} +0 -0
  506. /package/dist/esm/chunks/{chunk.ZA7JY3AY.js.map → chunk.5DDR6QSF.js.map} +0 -0
  507. /package/dist/esm/chunks/{chunk.3KAKJGUS.js.map → chunk.5NEWFXFX.js.map} +0 -0
  508. /package/dist/esm/chunks/{chunk.VRSPT7WX.js.map → chunk.5OT53ZJM.js.map} +0 -0
  509. /package/dist/esm/chunks/{chunk.VL5RWSAV.js.map → chunk.6DWRGYKV.js.map} +0 -0
  510. /package/dist/esm/chunks/{chunk.IEABOPNB.js.map → chunk.6T7KPDCD.js.map} +0 -0
  511. /package/dist/esm/chunks/{chunk.SROEDYPL.js.map → chunk.7JO5MB55.js.map} +0 -0
  512. /package/dist/esm/chunks/{chunk.CLYGTLXN.js.map → chunk.7TE74NJZ.js.map} +0 -0
  513. /package/dist/esm/chunks/{chunk.AGLI4WR4.js.map → chunk.AJLS5C7O.js.map} +0 -0
  514. /package/dist/esm/chunks/{chunk.TSSZQPLE.js.map → chunk.BURDWL57.js.map} +0 -0
  515. /package/dist/esm/chunks/{chunk.BHE6Z5Y2.js.map → chunk.CQ4XBOX5.js.map} +0 -0
  516. /package/dist/esm/chunks/{chunk.NEQX2QVX.js.map → chunk.DJQXJO3T.js.map} +0 -0
  517. /package/dist/esm/chunks/{chunk.VJZ7VDG5.js.map → chunk.DPJJB67L.js.map} +0 -0
  518. /package/dist/esm/chunks/{chunk.OOAJHLW4.js.map → chunk.EZIABLIR.js.map} +0 -0
  519. /package/dist/esm/chunks/{chunk.ZG6YF2HI.js.map → chunk.F53DSRUO.js.map} +0 -0
  520. /package/dist/esm/chunks/{chunk.7AAICE77.js.map → chunk.FIO22U2C.js.map} +0 -0
  521. /package/dist/esm/chunks/{chunk.U6J4VHU6.js.map → chunk.FKMTIOBA.js.map} +0 -0
  522. /package/dist/esm/chunks/{chunk.W4HANHUO.js.map → chunk.FMGBPF7B.js.map} +0 -0
  523. /package/dist/esm/chunks/{chunk.5MB6CTBA.js.map → chunk.FVFPDWA4.js.map} +0 -0
  524. /package/dist/esm/chunks/{chunk.ENUKGA2U.js.map → chunk.FYPIHFXD.js.map} +0 -0
  525. /package/dist/esm/chunks/{chunk.CE35CVDV.js.map → chunk.GQ33JZVE.js.map} +0 -0
  526. /package/dist/esm/chunks/{chunk.2W23MOPP.js.map → chunk.GUBLRHCG.js.map} +0 -0
  527. /package/dist/esm/chunks/{chunk.37B332ZK.js.map → chunk.HSNVTV7K.js.map} +0 -0
  528. /package/dist/esm/chunks/{chunk.PC6TW5XE.js.map → chunk.HXNNWUI3.js.map} +0 -0
  529. /package/dist/esm/chunks/{chunk.77C7S7ZS.js.map → chunk.IOGCI64X.js.map} +0 -0
  530. /package/dist/esm/chunks/{chunk.5UOX22ML.js.map → chunk.KKVQNKMV.js.map} +0 -0
  531. /package/dist/esm/chunks/{chunk.YPNSK2CK.js.map → chunk.KW5A2U5U.js.map} +0 -0
  532. /package/dist/esm/chunks/{chunk.KO6ODCZC.js.map → chunk.LIJE4T3D.js.map} +0 -0
  533. /package/dist/esm/chunks/{chunk.KEOLH7G3.js.map → chunk.LQN5U4QH.js.map} +0 -0
  534. /package/dist/esm/chunks/{chunk.5QIWLZG3.js.map → chunk.LSUIJDFO.js.map} +0 -0
  535. /package/dist/esm/chunks/{chunk.QCPV5DEG.js.map → chunk.N65CAIE5.js.map} +0 -0
  536. /package/dist/esm/chunks/{chunk.UKBE2FMZ.js.map → chunk.NNLZKMFX.js.map} +0 -0
  537. /package/dist/esm/chunks/{chunk.EO3GP6DP.js.map → chunk.ON6FFHRE.js.map} +0 -0
  538. /package/dist/esm/chunks/{chunk.OVXEOEJF.js.map → chunk.ONFZ3H7M.js.map} +0 -0
  539. /package/dist/esm/chunks/{chunk.32APLNN2.js.map → chunk.OVVBXM6K.js.map} +0 -0
  540. /package/dist/esm/chunks/{chunk.DKERDHXH.js.map → chunk.P74RZEWP.js.map} +0 -0
  541. /package/dist/esm/chunks/{chunk.QLGJS37N.js.map → chunk.PBORL6KX.js.map} +0 -0
  542. /package/dist/esm/chunks/{chunk.JGURMVW7.js.map → chunk.PGMOAILY.js.map} +0 -0
  543. /package/dist/esm/chunks/{chunk.OEI35LFU.js.map → chunk.PKCMTSWR.js.map} +0 -0
  544. /package/dist/esm/chunks/{chunk.QUXMLWBJ.js.map → chunk.Q3Z6VZUD.js.map} +0 -0
  545. /package/dist/esm/chunks/{chunk.TQWZDM6T.js.map → chunk.QBHJFCLL.js.map} +0 -0
  546. /package/dist/esm/chunks/{chunk.WXVVOFNK.js.map → chunk.QDG6TP2Z.js.map} +0 -0
  547. /package/dist/esm/chunks/{chunk.H5RW3A4M.js.map → chunk.QH27OIAK.js.map} +0 -0
  548. /package/dist/esm/chunks/{chunk.473WRJ5G.js.map → chunk.QKCPE4LW.js.map} +0 -0
  549. /package/dist/esm/chunks/{chunk.FLF5RTYO.js.map → chunk.R2CJMM2F.js.map} +0 -0
  550. /package/dist/esm/chunks/{chunk.IQYOLMPG.js.map → chunk.RGDLRUSM.js.map} +0 -0
  551. /package/dist/esm/chunks/{chunk.QIZBZGYT.js.map → chunk.RKPWFEFJ.js.map} +0 -0
  552. /package/dist/esm/chunks/{chunk.RXBLU4OJ.js.map → chunk.S5EU72NR.js.map} +0 -0
  553. /package/dist/esm/chunks/{chunk.T7NWP7DB.js.map → chunk.SW6JDC2Y.js.map} +0 -0
  554. /package/dist/esm/chunks/{chunk.7IPAW4D2.js.map → chunk.TAQRHBGS.js.map} +0 -0
  555. /package/dist/esm/chunks/{chunk.MFQRXVKO.js.map → chunk.TEZFEC5B.js.map} +0 -0
  556. /package/dist/esm/chunks/{chunk.MX4JX4GT.js.map → chunk.THIUQ2AU.js.map} +0 -0
  557. /package/dist/esm/chunks/{chunk.LY2Z2Z7S.js.map → chunk.TQMT7BIZ.js.map} +0 -0
  558. /package/dist/esm/chunks/{chunk.GIENHEMN.js.map → chunk.TR45SGWL.js.map} +0 -0
  559. /package/dist/esm/chunks/{chunk.CFAI4K3E.js.map → chunk.UBVWYWO7.js.map} +0 -0
  560. /package/dist/esm/chunks/{chunk.NWVQ5HK2.js.map → chunk.UHPODZWA.js.map} +0 -0
  561. /package/dist/esm/chunks/{chunk.3PMONORO.js.map → chunk.V4R7FCZ2.js.map} +0 -0
  562. /package/dist/esm/chunks/{chunk.BEFAXPXJ.js.map → chunk.WNX3GGYT.js.map} +0 -0
  563. /package/dist/esm/chunks/{chunk.I7YON2TC.js.map → chunk.X5MI5OFS.js.map} +0 -0
  564. /package/dist/esm/chunks/{chunk.QKTK5XUE.js.map → chunk.XHRBFPZ2.js.map} +0 -0
  565. /package/dist/esm/chunks/{chunk.ASLHRT3N.js.map → chunk.XT6RPXTM.js.map} +0 -0
  566. /package/dist/esm/chunks/{chunk.VGIRVTBJ.js.map → chunk.XWVFJVBN.js.map} +0 -0
  567. /package/dist/esm/chunks/{chunk.YNCTSMT6.js.map → chunk.YXFGOJ5Z.js.map} +0 -0
  568. /package/dist/esm/chunks/{chunk.GG7IQL46.js.map → chunk.ZPH3TMNA.js.map} +0 -0
  569. /package/dist/esm/chunks/{chunk.CEGBMUSR.js.map → chunk.ZWELGTD7.js.map} +0 -0
  570. /package/dist/esm/{busy-indicator → deprecated/icon-button}/index.js.map +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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,CACzB,KAAM,OACN,QAAS,UACT,KAAM,OACN,KAAM,OACN,eAAgB,iBAChB,OAAQ,SACR,WAAY,aACZ,WAAY,aACZ,QAAS,UACT,SAAU,WACV,YAAa,cACb,kBAAmB,oBACnB,UAAW,YACX,cAAe,eACjB,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAU,CACd,MAAO,QACP,OAAQ,QACV,EAEMC,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A,EAAkCR,EAAiB,SAAS,cAChF,MACF,KAAKA,EAAiB,mBAAmB,UACvC,KAAK,UAAYQ,GAAA,KAAAA,EAA+BR,EAAiB,SAAS,UAC1E,KACJ,CACF,CAyCO,MAAa,CAClB,KAAK,KAAO,EACd,CAEO,MAAa,CAClB,KAAK,KAAO,EACd,CACF,EA3HaJ,EAMaD,GAAsC,IAAI,IAwEnDe,EAAA,CADdC,EAAmB,GA7ETf,EA8EI,oBAGAc,EAAA,CADdC,EAAmB,GAhFTf,EAiFI,oBAGAc,EAAA,CADdC,EAAmB,GAnFTf,EAoFI,oBAGAc,EAAA,CADdC,EAAmB,GAtFTf,EAuFI,6BAGAc,EAAA,CADdC,EAAmB,GAzFTf,EA0FI,sBAGAc,EAAA,CADdC,EAAmB,GA5FTf,EA6FI,0BAGAc,EAAA,CADdC,EAAmB,GA/FTf,EAgGI,0BAGAc,EAAA,CADdC,EAAmB,GAlGTf,EAmGI,uBAGAc,EAAA,CADdC,EAAmB,GArGTf,EAsGI,8BAGAc,EAAA,CADdC,EAAmB,GAxGTf,EAyGI,wBAGAc,EAAA,CADdC,EAAmB,GA3GTf,EA4GI,gCAGAc,EAAA,CADdC,EAAmB,GA9GTf,EA+GI,4BAGAc,EAAA,CADdC,EAAmB,GAjHTf,EAkHI,yBAlHJA,EAANc,EAAA,CANNE,EAAc,CACb,KAAMZ,EAAiB,YACvB,aAAc,CACZa,CACF,CACF,CAAC,GACYjB,GCtJN,SAASkB,IAA8B,CAC5CC,EAAoBC,CAAe,CACrC",
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])) .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])) .surface:not(:hover) .move-handle-container{display:none}:host([moveable]:not([fullscreen])) .surface.moved{margin:0}:host([moveable]:not([fullscreen])) .surface.moving{opacity:var(--_dialog-moving-opacity)}:host([moveable]:not([fullscreen])) .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])) .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])) .move-handle-container .move-handle:hover{cursor:var(--_dialog-move-handle-hover-cursor)}:host([moveable]:not([fullscreen])) .move-handle-container .move-handle:active{cursor:var(--_dialog-move-handle-active-cursor)}:host([moveable]:not([fullscreen])) .move-handle-container .move-handle svg{fill:currentColor}:host([visible]){display:contents}}@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;display:-webkit-inline-box;display:inline-flex}: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,CACzB,KAAM,OACN,QAAS,UACT,KAAM,OACN,KAAM,OACN,eAAgB,iBAChB,OAAQ,SACR,WAAY,aACZ,WAAY,aACZ,QAAS,UACT,SAAU,WACV,YAAa,cACb,kBAAmB,oBACnB,UAAW,YACX,cAAe,eACjB,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAU,CACd,MAAO,QACP,OAAQ,QACV,EAEMC,EAAY,CAChB,OAAQ,gBACR,QAAS,WACT,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KAAKA,EAAiB,mBAAmB,UACvC,KAAK,UAAYQ,GAAA,KAAAA,EAA+BR,EAAiB,SAAS,UAC1E,KACJ,CACF,CAyCO,MAAa,CAClB,KAAK,KAAO,EACd,CAEO,MAAa,CAClB,KAAK,KAAO,EACd,CACF,EA3HaJ,EAMaD,GAAsC,IAAI,IAwEnDe,EAAA,CADdC,EAAmB,GA7ETf,EA8EI,oBAGAc,EAAA,CADdC,EAAmB,GAhFTf,EAiFI,oBAGAc,EAAA,CADdC,EAAmB,GAnFTf,EAoFI,oBAGAc,EAAA,CADdC,EAAmB,GAtFTf,EAuFI,6BAGAc,EAAA,CADdC,EAAmB,GAzFTf,EA0FI,sBAGAc,EAAA,CADdC,EAAmB,GA5FTf,EA6FI,0BAGAc,EAAA,CADdC,EAAmB,GA/FTf,EAgGI,0BAGAc,EAAA,CADdC,EAAmB,GAlGTf,EAmGI,uBAGAc,EAAA,CADdC,EAAmB,GArGTf,EAsGI,8BAGAc,EAAA,CADdC,EAAmB,GAxGTf,EAyGI,wBAGAc,EAAA,CADdC,EAAmB,GA3GTf,EA4GI,gCAGAc,EAAA,CADdC,EAAmB,GA9GTf,EA+GI,4BAGAc,EAAA,CADdC,EAAmB,GAjHTf,EAkHI,yBAlHJA,EAANc,EAAA,CANNE,EAAc,CACb,KAAMZ,EAAiB,YACvB,aAAc,CACZa,CACF,CACF,CAAC,GACYjB,GCtJN,SAASkB,IAA8B,CAC5CC,EAAoBC,CAAe,CACrC",
6
6
  "names": ["elementName", "COMPONENT_NAME_PREFIX", "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
7
  }
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{c as h}from"./chunk.GBAVJILM.js";import{a as C,d as g}from"./chunk.GIENHEMN.js";import{x as i}from"./chunk.RLQB7224.js";import{a as _,d as N}from"./chunk.T7NWP7DB.js";import{m as f}from"./chunk.J2Y5KPON.js";import{a as b,b as d}from"./chunk.VRSPT7WX.js";import{a as c,d as p,g as l,k as u}from"./chunk.LNTTU2GL.js";import{r as s}from"./chunk.L4QSPQDE.js";import{a as m,d as a}from"./chunk.M3QDAYD2.js";var A=`${d}app-bar-menu-button`,I={ICON:"icon"},B=m({},I),E=["aria-label","aria-labelledby"],o={elementName:A,observedAttributes:I,attributes:B,forwardedAttributes:E};var T='<template><forge-icon-button><forge-icon name="menu"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="bottom">Menu</forge-tooltip></template>',n=class extends u{constructor(){super();this._iconName=i.name;N.define(i)}static get observedAttributes(){return Object.values(o.observedAttributes)}initializedCallback(){p(this,T)}connectedCallback(){this._iconButtonElement=l(this,C.elementName),this._iconElement=this._iconButtonElement.querySelector(_.elementName),this._iconElement.name!==this._iconName&&(this._iconElement.name=this._iconName);let t=this._iconButtonElement.getAttribute("aria-labelledby");this._forwardObserver=f(this,o.forwardedAttributes,(r,e)=>{r==="aria-labelledby"&&!e&&(e=t),s(this._iconButtonElement,!!e,r,e!=null?e:void 0)})}disconnectedCallback(){var t;(t=this._forwardObserver)==null||t.disconnect(),this._forwardObserver=void 0}attributeChangedCallback(t,r,e){switch(t){case o.attributes.ICON:this.icon=e;break}}get icon(){return this._iconName}set icon(t){this._iconName!==t&&(this._iconName=t!=null?t:i.name,this._iconElement&&(this._iconElement.name=this._iconName),this.setAttribute(o.attributes.ICON,this._iconName))}};n=a([b({name:o.elementName,dependencies:[g,h]})],n);function D(){c(n)}export{o as a,n as b,D as c};
7
- //# sourceMappingURL=chunk.DKERDHXH.js.map
6
+ import{c as h}from"./chunk.VAE5IFEM.js";import{a as C,d as g}from"./chunk.TR45SGWL.js";import{w as i}from"./chunk.DN6Y3VXC.js";import{a as _,d as N}from"./chunk.SW6JDC2Y.js";import{m as f}from"./chunk.J2Y5KPON.js";import{a as b,b as d}from"./chunk.5OT53ZJM.js";import{a as c,d as p,g as l,k as u}from"./chunk.LNTTU2GL.js";import{r as s}from"./chunk.L4QSPQDE.js";import{a as m,d as a}from"./chunk.M3QDAYD2.js";var A=`${d}app-bar-menu-button`,I={ICON:"icon"},B=m({},I),E=["aria-label","aria-labelledby"],o={elementName:A,observedAttributes:I,attributes:B,forwardedAttributes:E};var T='<template><forge-icon-button><forge-icon name="menu"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="bottom">Menu</forge-tooltip></template>',n=class extends u{constructor(){super();this._iconName=i.name;N.define(i)}static get observedAttributes(){return Object.values(o.observedAttributes)}initializedCallback(){p(this,T)}connectedCallback(){this._iconButtonElement=l(this,C.elementName),this._iconElement=this._iconButtonElement.querySelector(_.elementName),this._iconElement.name!==this._iconName&&(this._iconElement.name=this._iconName);let t=this._iconButtonElement.getAttribute("aria-labelledby");this._forwardObserver=f(this,o.forwardedAttributes,(r,e)=>{r==="aria-labelledby"&&!e&&(e=t),s(this._iconButtonElement,!!e,r,e!=null?e:void 0)})}disconnectedCallback(){var t;(t=this._forwardObserver)==null||t.disconnect(),this._forwardObserver=void 0}attributeChangedCallback(t,r,e){switch(t){case o.attributes.ICON:this.icon=e;break}}get icon(){return this._iconName}set icon(t){this._iconName!==t&&(this._iconName=t!=null?t:i.name,this._iconElement&&(this._iconElement.name=this._iconName),this.setAttribute(o.attributes.ICON,this._iconName))}};n=a([b({name:o.elementName,dependencies:[g,h]})],n);function D(){c(n)}export{o as a,n as b,D as c};
7
+ //# sourceMappingURL=chunk.P74RZEWP.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a as c}from"./chunk.HSADKCGS.js";import{a as b,b as m}from"./chunk.VRSPT7WX.js";import{a as s,e as p,k as g}from"./chunk.LNTTU2GL.js";import{k as i}from"./chunk.J2M2MXP2.js";import{a as n,d as r}from"./chunk.M3QDAYD2.js";var y=`${m}label-value`,v={EMPTY:"empty",ELLIPSIS:"ellipsis",INLINE:"inline",DENSE:"dense"},d=n({},v),t={elementName:y,observedAttributes:v,attributes:d};var _='<template><div class="forge-label-value" part="root"><div class="icon" part="icon"><slot name="icon"></slot></div><div class="label" part="label"><slot name="label"></slot></div><div class="value" part="value"><slot name="value"></slot></div></div></template>',x=':host{display:inline-block;min-width:0}:host([hidden]){display:none}.forge-label-value{--_label-value-align:var(--forge-label-value-align, start);--_label-value-label-spacing:var(--forge-label-value-label-spacing, var(--forge-spacing-xxsmall, 4px));--_label-value-label-block-start-spacing:var(--forge-label-value-label-block-start-spacing, var(--_label-value-label-spacing));--_label-value-label-block-end-spacing:var(--forge-label-value-label-block-end-spacing, var(--_label-value-label-spacing));--_label-value-label-color:var(--forge-label-value-label-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_label-value-icon-spacing:var(--forge-label-value-icon-spacing, var(--forge-spacing-xxsmall, 4px));--_label-value-inline-label-spacing:var(--forge-label-value-inline-label-spacing, var(--forge-spacing-xsmall, 8px));--_label-value-empty-color:var(--forge-label-value-empty-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_label-value-empty-style:var(--forge-label-value-empty-style, italic)}.forge-label-value{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon label" "icon value"}.label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .8125)));font-weight:var(--forge-typography-label2-font-weight,400);line-height:var(--forge-typography-label2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label2-letter-spacing, .0096153846em);text-transform:var(--forge-typography-label2-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-label2-text-decoration,inherit);text-decoration:var(--forge-typography-label2-text-decoration,inherit);grid-area:label;justify-self:var(--_label-value-align);-webkit-margin-before:var(--_label-value-label-block-start-spacing);margin-block-start:var(--_label-value-label-block-start-spacing);-webkit-margin-after:var(--_label-value-label-block-end-spacing);margin-block-end:var(--_label-value-label-block-end-spacing);line-height:normal;text-align:var(--_label-value-align);color:var(--_label-value-label-color)}.value{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-body2-text-decoration,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);grid-area:value;display:grid;-webkit-box-align:center;align-items:center;justify-self:var(--_label-value-align);line-height:normal;text-align:var(--_label-value-align)}.icon{display:-webkit-inline-box;display:inline-flex;grid-area:icon}::slotted([slot=icon]){-webkit-margin-end:var(--_label-value-icon-spacing);margin-inline-end:var(--_label-value-icon-spacing)}:host(:is([inline],[dense])) .forge-label-value{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}:host(:is([inline],[dense])) .label{margin-block:0;-webkit-margin-end:var(--_label-value-inline-label-spacing);margin-inline-end:var(--_label-value-inline-label-spacing)}:host([ellipsis]) ::slotted([slot=value]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([empty]) .value{color:var(--_label-value-empty-color);font-style:var(--_label-value-empty-style)}',a=class extends g{constructor(){super();this._empty=!1;this._ellipsis=!1;this._inline=!1;p(this,_,x)}static get observedAttributes(){return Object.values(t.observedAttributes)}attributeChangedCallback(e,o,l){switch(e){case t.observedAttributes.EMPTY:this.empty=i(l);break;case t.observedAttributes.ELLIPSIS:this.ellipsis=i(l);break;case t.observedAttributes.INLINE:case t.observedAttributes.DENSE:this.inline=i(l);break}}get empty(){return this._empty}set empty(e){e=!!e,this._empty!==e&&(this._empty=e,this.toggleAttribute(t.attributes.EMPTY,this._empty))}get ellipsis(){return this._ellipsis}set ellipsis(e){e=!!e,this._ellipsis!==e&&(this._ellipsis=e,this.toggleAttribute(t.attributes.ELLIPSIS,this._ellipsis))}get inline(){return this._inline}set inline(e){e=!!e,this._inline!==e&&(this._inline=e,this.setAttribute(t.attributes.INLINE,String(this._inline)))}get dense(){return this.inline}set dense(e){this.inline=e}};a=r([b({name:t.elementName})],a);var f=class extends c{constructor(e){super(e)}get labelElement(){return this._labelElement}get valueElement(){return this._valueElement}get labelText(){var e;return(e=this._labelElement.textContent)!=null?e:""}set labelText(e){this._labelElement.textContent=e}get valueText(){var e;return(e=this._valueElement.textContent)!=null?e:""}set valueText(e){this._valueElement.textContent=e}_build(){return document.createElement(t.elementName)}_configure(){var e,o,l;(e=this._config.options)!=null&&e.labelText&&(this._labelElement=this._createTextElement(this._config.options.labelText,"label")),(o=this._config.options)!=null&&o.valueText&&(this._valueElement=this._createTextElement(this._config.options.valueText,"value")),(l=this._config.options)!=null&&l.iconElement&&this._element.appendChild(this._config.options.iconElement)}_createTextElement(e,o){let l=document.createElement("span");return l.textContent=e,l.slot=o,this._element.appendChild(l),l}};function P(){s(a)}export{t as a,a as b,f as c,P as d};
7
- //# sourceMappingURL=chunk.QLGJS37N.js.map
6
+ import{a as c}from"./chunk.HSADKCGS.js";import{a as b,b as m}from"./chunk.5OT53ZJM.js";import{a as s,e as p,k as g}from"./chunk.LNTTU2GL.js";import{k as i}from"./chunk.J2M2MXP2.js";import{a as n,d as r}from"./chunk.M3QDAYD2.js";var y=`${m}label-value`,v={EMPTY:"empty",ELLIPSIS:"ellipsis",INLINE:"inline",DENSE:"dense"},d=n({},v),t={elementName:y,observedAttributes:v,attributes:d};var _='<template><div class="forge-label-value" part="root"><div class="icon" part="icon"><slot name="icon"></slot></div><div class="label" part="label"><slot name="label"></slot></div><div class="value" part="value"><slot name="value"></slot></div></div></template>',x=':host{display:inline-block;min-width:0}:host([hidden]){display:none}.forge-label-value{--_label-value-align:var(--forge-label-value-align, start);--_label-value-label-spacing:var(--forge-label-value-label-spacing, var(--forge-spacing-xxsmall, 4px));--_label-value-label-block-start-spacing:var(--forge-label-value-label-block-start-spacing, var(--_label-value-label-spacing));--_label-value-label-block-end-spacing:var(--forge-label-value-label-block-end-spacing, var(--_label-value-label-spacing));--_label-value-label-color:var(--forge-label-value-label-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_label-value-icon-spacing:var(--forge-label-value-icon-spacing, var(--forge-spacing-xxsmall, 4px));--_label-value-inline-label-spacing:var(--forge-label-value-inline-label-spacing, var(--forge-spacing-xsmall, 8px));--_label-value-empty-color:var(--forge-label-value-empty-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_label-value-empty-style:var(--forge-label-value-empty-style, italic)}.forge-label-value{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon label" "icon value"}.label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .8125)));font-weight:var(--forge-typography-label2-font-weight,400);line-height:var(--forge-typography-label2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label2-letter-spacing, .0096153846em);text-transform:var(--forge-typography-label2-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-label2-text-decoration,inherit);text-decoration:var(--forge-typography-label2-text-decoration,inherit);grid-area:label;justify-self:var(--_label-value-align);-webkit-margin-before:var(--_label-value-label-block-start-spacing);margin-block-start:var(--_label-value-label-block-start-spacing);-webkit-margin-after:var(--_label-value-label-block-end-spacing);margin-block-end:var(--_label-value-label-block-end-spacing);line-height:normal;text-align:var(--_label-value-align);color:var(--_label-value-label-color)}.value{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-body2-text-decoration,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);grid-area:value;display:grid;-webkit-box-align:center;align-items:center;justify-self:var(--_label-value-align);line-height:normal;text-align:var(--_label-value-align)}.icon{display:-webkit-inline-box;display:inline-flex;grid-area:icon}::slotted([slot=icon]){-webkit-margin-end:var(--_label-value-icon-spacing);margin-inline-end:var(--_label-value-icon-spacing)}:host(:is([inline],[dense])) .forge-label-value{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}:host(:is([inline],[dense])) .label{margin-block:0;-webkit-margin-end:var(--_label-value-inline-label-spacing);margin-inline-end:var(--_label-value-inline-label-spacing)}:host([ellipsis]) ::slotted([slot=value]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([empty]) .value{color:var(--_label-value-empty-color);font-style:var(--_label-value-empty-style)}',a=class extends g{constructor(){super();this._empty=!1;this._ellipsis=!1;this._inline=!1;p(this,_,x)}static get observedAttributes(){return Object.values(t.observedAttributes)}attributeChangedCallback(e,o,l){switch(e){case t.observedAttributes.EMPTY:this.empty=i(l);break;case t.observedAttributes.ELLIPSIS:this.ellipsis=i(l);break;case t.observedAttributes.INLINE:case t.observedAttributes.DENSE:this.inline=i(l);break}}get empty(){return this._empty}set empty(e){e=!!e,this._empty!==e&&(this._empty=e,this.toggleAttribute(t.attributes.EMPTY,this._empty))}get ellipsis(){return this._ellipsis}set ellipsis(e){e=!!e,this._ellipsis!==e&&(this._ellipsis=e,this.toggleAttribute(t.attributes.ELLIPSIS,this._ellipsis))}get inline(){return this._inline}set inline(e){e=!!e,this._inline!==e&&(this._inline=e,this.setAttribute(t.attributes.INLINE,String(this._inline)))}get dense(){return this.inline}set dense(e){this.inline=e}};a=r([b({name:t.elementName})],a);var f=class extends c{constructor(e){super(e)}get labelElement(){return this._labelElement}get valueElement(){return this._valueElement}get labelText(){var e;return(e=this._labelElement.textContent)!=null?e:""}set labelText(e){this._labelElement.textContent=e}get valueText(){var e;return(e=this._valueElement.textContent)!=null?e:""}set valueText(e){this._valueElement.textContent=e}_build(){return document.createElement(t.elementName)}_configure(){var e,o,l;(e=this._config.options)!=null&&e.labelText&&(this._labelElement=this._createTextElement(this._config.options.labelText,"label")),(o=this._config.options)!=null&&o.valueText&&(this._valueElement=this._createTextElement(this._config.options.valueText,"value")),(l=this._config.options)!=null&&l.iconElement&&this._element.appendChild(this._config.options.iconElement)}_createTextElement(e,o){let l=document.createElement("span");return l.textContent=e,l.slot=o,this._element.appendChild(l),l}};function P(){s(a)}export{t as a,a as b,f as c,P as d};
7
+ //# sourceMappingURL=chunk.PBORL6KX.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
5
+ */
6
+ import{a as w}from"./chunk.44IUAOBP.js";import{A as Re,B as S,C as He,D as q,a as n,f as E,g as D,h as we,i as Ce,j as Me,l as b,m as Te,n as Oe,o as Se,p as ke,q as Ae,r as Ie,s as Be,t as Le,u as z,v as Fe,w as xe,x as U,y as Ne,z as Ye}from"./chunk.GNQ24XWK.js";import{a as O,j as Ee}from"./chunk.Z6G2RUC2.js";import{a as ae}from"./chunk.LEVFMI2Q.js";import{c as me}from"./chunk.VAE5IFEM.js";import{d as ye}from"./chunk.RKPWFEFJ.js";import{d as De}from"./chunk.TR45SGWL.js";import{a as oe,c as le,r as de,s as he,v as ue}from"./chunk.DN6Y3VXC.js";import{d as ve,l as fe}from"./chunk.SW6JDC2Y.js";import{d as be}from"./chunk.R2CJMM2F.js";import{p as ge}from"./chunk.XT6RPXTM.js";import{e as g,f as _e,g as pe}from"./chunk.J2Y5KPON.js";import{a as ce}from"./chunk.HSADKCGS.js";import{a as h}from"./chunk.NVUMRW44.js";import{a as re}from"./chunk.OLFOVKQG.js";import{a as se}from"./chunk.5OT53ZJM.js";import{a as ie,e as ne,f as y}from"./chunk.LNTTU2GL.js";import{a as Q,c as F,r as x,s as ee,t as te}from"./chunk.L4QSPQDE.js";import{b as I,g as B,i as T,k as f,l as L}from"./chunk.J2M2MXP2.js";import{d}from"./chunk.M3QDAYD2.js";function V(s,e,t=0){let a=[],i=k(new Date(e,s,1),t),r=new Date(i);r.setDate(i.getDate()+n.numbers.MONTH_LENGTH);for(let o=i;o<r;o.setDate(o.getDate()+1))a.push(new Date(o));return a}function ft(s,e=0){let t=[],a=k(s,e),i=new Date(a);i.setDate(a.getDate()+7);for(let r=a;r<i;r.setDate(r.getDate()+1))t.push(new Date(r));return t}function k(s,e=0){let t=s.getDay(),a=new Date(s),i=t>=e?t-e:7+(t-e);return a.setDate(s.getDate()-i),a.setHours(0,0,0,0),a}function We(s,e=0){let t=k(s,e);return t.setDate(t.getDate()+6),t}function gt(s,e){return new Date(e,s,1).getDay()}function N(s=0){let e=[],t=s;do e.push(t),t+=1,t%=7;while(t!==s);return e}function Pe(s){return g(new Date,s)}function c(s,e,t){return s.getMonth()===e&&s.getFullYear()===t}function Qe(s,e,t){return s>e&&s<t||g(s,e)||g(s,t)}function Y(s){return s.sort((e,t)=>e.getTime()-t.getTime())}function Ge(s){let e=[];for(let t=0;t<s.length;t+=7){let a=s.slice(t,t+7);e.push(a)}return e}function m(s){if(!s.length)return new w;if(s.length===1)return new w({from:new Date(s[0])});let e=R(s);return new w({from:e[0],to:e[e.length-1]})}function ze(s){let e=[];return s.from&&e.push(new Date(s.from)),s.to&&e.push(new Date(s.to)),e}function R(s){if(!s.length)return[];if(s.length===1)return[new Date(s[0])];let e=Y(s.slice().map(t=>new Date(t)));return[new Date(e[0]),new Date(e[e.length-1])]}function H(s,e,t){return!e||!t?[]:s.filter(a=>Qe(a,e,t))}function K(s){let e=`${s.length} event${s.length===1?"":"s"}`,t=s.map(a=>a.label).join(", ");return t!=null&&t.length&&(e+=`: ${t}`),e}function et(s){var a,i;let e=new Date;return((i=(a=s.match(/-?[0-9]*[a-zA-Z]/g))==null?void 0:a.map(r=>r.trim()))!=null?i:[]).forEach(r=>{let o=r.slice(-1),u=+r.slice(0,-1);switch(o){case"y":e.setFullYear(e.getFullYear()+u);break;case"m":e.setMonth(e.getMonth()+u);break;case"w":e.setDate(e.getDate()+u*7);break;case"d":e.setDate(e.getDate()+u);break}}),e.setHours(0,0,0,0),e}function Ue(s){let e=s.split(":");if((e==null?void 0:e.length)<2)return{min:1970,max:1970};let t=new Date().getFullYear(),a=e.slice(0,2).map(i=>i.startsWith("-")?t-+i.substring(1):i.startsWith("+")?t+ +i.substring(1):+i);return{min:a[0],max:a[1]}}function qe(s){var r,o,u,p,v,j,Z,J;let e=(o=(r=s.min)==null?void 0:r.getFullYear())!=null?o:0,t=(p=(u=s.max)==null?void 0:u.getFullYear())!=null?p:0,a=(j=(v=s.min)==null?void 0:v.getMonth())!=null?j:-1,i=(J=(Z=s.max)==null?void 0:Z.getMonth())!=null?J:12;return[...Array(12).keys()].map(M=>{let je=s.min?s.selectedYear<e||s.selectedYear===e&&M<a:!1,Ze=s.max?s.selectedYear>t||s.selectedYear===t&&M>i:!1;return{value:M,label:E(M,"long",s.locale),selected:M===s.selectedMonth,disabled:je||Ze}})}function Ve(s){let e=[],t=s.yearInView%n.numbers.YEARS_IN_VIEW,a=s.yearInView-t;for(let i=a;i<a+n.numbers.YEARS_IN_VIEW;i++)e.push({value:i,label:D(i,"numeric",s.locale),selected:i===s.selectedYear,disabled:i<s.min||i>s.max});return e}function Ke(s){let e=[];for(let t=s.min;t<=s.max;t++)e.push({value:t,label:D(t,"numeric",s.locale),selected:t===s.selectedYear});return e}function C(s,e){return e.some(t=>g(t,s))}function _(s,e){return!!(e.minDate&&s<e.minDate||e.maxDate&&s>e.maxDate||e.otherMonth||e.disabledDates.some(t=>g(t,s))||e.disabledDaysOfWeek.includes(s.getDay())||e.builder&&e.builder(s))}function A(s,e){return e.findIndex(t=>g(t,s))}function W(s,e,t){let a=e.filter(i=>g(i.date,s));if(t){let i=t(s);i&&(T(i)?a.push(...i):a.push(i))}return a}function $e(s,e){if(!s.length)return[];let t=new Date(s[0]),a=s[s.length-1],i=[];for(;t<=a;)(!e||!_(t,e))&&i.push(new Date(t)),t.setDate(t.getDate()+1);return i}function $(s){let e=null;return typeof s=="string"&&!s.length&&(s=null),s!=null&&(B(new Date(s))?e=new Date(s):s.length&&(e=et(s)),e==null||e.setHours(0,0,0,0)),e}function X(s,e,t){return t||!ae(s).length||!!(e==="date"&&S(s))||!!(e!=="date"&&He(s,n.ids.MENU))}var P=class extends re{constructor(t){super(t);this._container=y(t,n.selectors.CALENDAR),this._dateView=y(t,n.selectors.DATE_VIEW),this._dayRow=y(t,n.selectors.DAY_ROW),this._dateGrid=y(t,n.selectors.DATE_GRID),this._menu=y(t,n.selectors.MENU)}toggleContainerAttribute(t,a,i){x(this._container,t,a,i)}registerMonthButtonListener(t){let a=this._container.querySelector(n.selectors.MONTH_BUTTON);a==null||a.addEventListener("click",t)}unregisterMonthButtonListener(t){let a=this._container.querySelector(n.selectors.MONTH_BUTTON);a==null||a.removeEventListener("click",t)}registerYearButtonListener(t){let a=this._container.querySelector(n.selectors.YEAR_BUTTON);a==null||a.addEventListener("click",t)}unregisterYearButtonListener(t){let a=this._container.querySelector(n.selectors.YEAR_BUTTON);a==null||a.removeEventListener("click",t)}registerMenuListener(t){this._menu.addEventListener(O.events.SELECT,t)}unregisterMenuListener(t){this._menu.removeEventListener(O.events.SELECT,t)}registerMenuFocusChangeEventListener(t){this._menu.addEventListener(O.events.FOCUS_CHANGE,t)}unregisterMenuFocusChangeEventListener(t){this._menu.addEventListener(O.events.FOCUS_CHANGE,t)}registerNextButtonListener(t){let a=this._container.querySelector(n.selectors.NEXT_BUTTON);a==null||a.addEventListener("click",t)}unregisterNextButtonListener(t){let a=this._container.querySelector(n.selectors.NEXT_BUTTON);a==null||a.removeEventListener("click",t)}registerPreviousButtonListener(t){let a=this._container.querySelector(n.selectors.PREVIOUS_BUTTON);a==null||a.addEventListener("click",t)}unregisterPreviousButtonListener(t){let a=this._container.querySelector(n.selectors.PREVIOUS_BUTTON);a==null||a.removeEventListener("click",t)}registerClearButtonListener(t){let a=this._container.querySelector(n.selectors.CLEAR_BUTTON);a==null||a.addEventListener("click",t)}unregisterClearButtonListener(t){let a=this._container.querySelector(n.selectors.CLEAR_BUTTON);a==null||a.removeEventListener("click",t)}registerTodayButtonListener(t){let a=this._container.querySelector(n.selectors.TODAY_BUTTON);a==null||a.addEventListener("click",t)}unregisterTodayButtonListener(t){let a=this._container.querySelector(n.selectors.TODAY_BUTTON);a==null||a.removeEventListener("click",t)}registerDateClickListener(t){this._dateGrid.addEventListener("click",t)}unregisterDateClickListener(t){this._dateGrid.removeEventListener("click",t)}registerKeydownListener(t){this._container.addEventListener("keydown",t)}registerHoverListener(t){this._dateGrid.addEventListener("mouseover",t)}unregisterHoverListener(t){this._dateGrid.removeEventListener("mouseover",t)}registerPreventFocusListener(t){this._container.addEventListener("mousedown",t)}unregisterPreventFocusListener(t){this._container.removeEventListener("mousedown",t)}setContainerClass(t,a){this._container.classList.toggle(t,a)}setHeader(){let t=this._container.querySelector(n.selectors.ACCESSIBLE_HEADER);t==null||t.remove();let a=this._container.querySelector(n.selectors.HEADER);a?a.replaceWith(z()):this._container.prepend(z())}removeHeader(){let t=this._container.querySelector(n.selectors.HEADER);t==null||t.remove();let a=this._container.querySelector(n.selectors.ACCESSIBLE_HEADER);a?a.replaceWith(U()):this._container.prepend(U())}setNextButtonDisabled(t){let a=this._container.querySelector(n.selectors.NEXT_BUTTON);a==null||a.toggleAttribute("disabled",t)}setPreviousButtonDisabled(t){let a=this._container.querySelector(n.selectors.PREVIOUS_BUTTON);a==null||a.toggleAttribute("disabled",t)}setNextButtonLabel(t){let a=this._container.querySelector(n.selectors.NEXT_BUTTON);a==null||a.setAttribute("aria-label",t);let i=this._container.querySelector(n.selectors.NEXT_BUTTON_TOOLTIP);i&&(i.innerHTML=t)}setPreviousButtonLabel(t){let a=this._container.querySelector(n.selectors.PREVIOUS_BUTTON);a==null||a.setAttribute("aria-label",t);let i=this._container.querySelector(n.selectors.PREVIOUS_BUTTON_TOOLTIP);i&&(i.innerHTML=t)}setMonthButtonPressed(t){let a=this._container.querySelector(n.selectors.MONTH_BUTTON);a&&(a.setAttribute("aria-pressed",t.toString()),this._container.classList.toggle(n.classes.MONTH_MENU_OPEN,t))}setYearButtonPressed(t){let a=this._container.querySelector(n.selectors.YEAR_BUTTON);a&&(a.setAttribute("aria-pressed",t.toString()),this._container.classList.toggle(n.classes.YEAR_MENU_OPEN,t))}setMonth(t,a){let i=this._container.querySelector(n.selectors.MONTH_BUTTON);if(i){let o=Fe(t,a);i.replaceChildren(o[0],o[1]);return}let r=this._container.querySelector(n.selectors.ACCESSIBLE_MONTH);r&&(r.textContent=E(t,"long",a))}setYear(t,a){let i=this._container.querySelector(n.selectors.YEAR_BUTTON);if(i){let o=xe(t,a);i.replaceChildren(o[0],o[1]);return}let r=this._container.querySelector(n.selectors.ACCESSIBLE_YEAR);r&&(r.textContent=D(t,"numeric",a))}setFooter(){this._container.querySelector(n.selectors.FOOTER)||this._container.appendChild(Ne())}removeFooter(){var a;let t=this._container.querySelector(n.selectors.FOOTER);(a=t==null?void 0:t.parentNode)==null||a.removeChild(t)}setClearButton(){let t=this._container.querySelector(n.selectors.FOOTER);if(!t)return;t.querySelector(n.selectors.CLEAR_BUTTON)||t.prepend(Ye())}removeClearButton(){var a;let t=this._container.querySelector(n.selectors.CLEAR_BUTTON);(a=t==null?void 0:t.parentNode)==null||a.removeChild(t)}setTodayButton(){let t=this._container.querySelector(n.selectors.FOOTER);if(!t)return;t.querySelector(n.selectors.TODAY_BUTTON)||t.appendChild(Re())}removeTodayButton(){var a;let t=this._container.querySelector(n.selectors.TODAY_BUTTON);(a=t==null?void 0:t.parentNode)==null||a.removeChild(t)}setDays(t,a){F(this._dayRow),t.forEach(i=>{let r=Oe(i,a==null?void 0:a.locale);a!=null&&a.builder&&(r=a.builder(i,r)),this._dayRow.appendChild(r)})}setDates(t,a){F(this._dateGrid),Ge(t).forEach((i,r)=>{let o=Se(i,r,a);this._dateGrid.appendChild(o)})}replaceDate(t,a){let i=this._dateGrid.querySelector(`#${b(t.date)}`);if(i){let r=ke(t,a==null?void 0:a.locale);a!=null&&a.builder?i.replaceWith(a.builder(t,r)):i.replaceWith(r)}}replaceDateWithSpacer(t){let a=this._dateGrid.querySelector(`#${b(t)}`);a==null||a.replaceWith(Ae(t))}setDateDisabled(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`);i&&(i.toggleAttribute("disabled",a),i.setAttribute("aria-disabled",a.toString()))}setDateSelected(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`);i&&(i.classList.toggle(n.classes.DATE_SELECTED,a),i.setAttribute("aria-selected",a.toString()))}setWeekend(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`),r=i==null?void 0:i.querySelector(n.selectors.DATE_INNER);r&&ee(r,"part",n.parts.WEEKEND,a)}appendDateAttribute(t,a,i){let r=this._dateGrid.querySelector(`#${b(t)}`);r&&te(r,a,i)}setMultiple(t){this._dateView.setAttribute("aria-multiselectable",t.toString())}setDateViewHidden(t){x(this._dateView,t,"aria-hidden",t.toString()),this.setAllDatesUnfocusable()}setRange(t){this._dateGrid.querySelectorAll(n.selectors.RANGE).forEach(i=>i.classList.remove(n.classes.RANGE)),t&&t.forEach(i=>{let r=this._dateGrid.querySelector(`#${b(i)}`);r==null||r.classList.add(n.classes.RANGE)})}setRangeStart(t){let a=this._dateGrid.querySelector(n.selectors.RANGE_START);if(a==null||a.classList.remove(n.classes.RANGE_START),!t)return;let i=this._dateGrid.querySelector(`#${b(t)}`);i==null||i.classList.add(n.classes.RANGE_START)}setRangeEnd(t){let a=this._dateGrid.querySelector(n.selectors.RANGE_END);if(a==null||a.classList.remove(n.classes.RANGE_END),!t)return;let i=this._dateGrid.querySelector(`#${b(t)}`);i==null||i.classList.add(n.classes.RANGE_END)}setActiveDate(t,a,i){let r=t.toDateString();this._dateGrid.querySelectorAll(n.selectors.DATE).forEach(u=>{let p=u.getAttribute(n.attributes.DATA_DATE)===r;q(u,p?0:-1,a,i)})}setAllDatesUnfocusable(){this._dateGrid.querySelectorAll(n.selectors.DATE).forEach(a=>q(a,-1,!1,!0))}setDateDescription(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`);i&&x(i,!!a,a)}setDateTooltip(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`);if(!i)return;let r=i.querySelector(n.selectors.TOOLTIP);r?a!=null&&a.length?r.textContent=a:r.remove():a!=null&&a.length&&i.prepend(Le(a))}setEventWrapperOnDate(t,a){let i=this._dateGrid.querySelector(`#${b(t)}`);if(!i)return;let r=i.querySelector(n.selectors.EVENT_WRAPPER);r?a?F(r):r.remove():a&&i.appendChild(Ie(t))}setEvent(t,a){let i=this._dateGrid.querySelector(`#${Te(t.date)}`);i==null||i.appendChild(Be(t,a))}openMenuAsGrid(t,a){this._menu.openAsGrid(t,a)}openMenuAsList(t,a){this._menu.openAsList(t,a)}closeMenu(){this._menu.close()}setMenuAnimation(t){this._menu.animationType=t}animateIntoSelectionMenu(t,a,i){this._menu.animateIn(t,a,i)}moveMenuFocusDown(){this._menu.moveFocusDown()}moveMenuFocusBackward(){return this._menu.moveFocusBackward()}moveMenuFocusForward(){return this._menu.moveFocusForward()}moveMenuFocusUp(){this._menu.moveFocusUp()}selectFocusedMenuItem(){this._menu.selectFocusedItem()}setPreventFocusOnMenu(t){this._menu.preventFocus=t}};var G=class{constructor(e){this._adapter=e;this._dates=[];this._month=new Date().getMonth();this._year=new Date().getFullYear();this._showToday=!0;this._showOtherMonths=!1;this._fixedHeight=!1;this._events=[];this._value=[];this._mode="single";this._readonly=!1;this._selectionFollowsMonth=!1;this._rangeSelectionState="none";this._allowSingleDateRange=!0;this._min=null;this._max=null;this._minAttribute=null;this._maxAttribute=null;this._disabledDates=[];this._disabledDaysOfWeek=[];this._constrainToEnabled=!0;this._showHeader=!0;this._clearButton=!1;this._todayButton=!1;this._view="date";this._menuAnimation="scale";this._menuYear=null;this._listYears=!0;this._menuIncludedYear=new Date().getFullYear();this._menuYearsInView=null;this._yearRange=`-${n.numbers.DEFAULT_MIN_YEAR_OFFSET}:+${n.numbers.DEFAULT_MAX_YEAR_OFFSET}`;this._weekendDays=null;this._localeFirstDayOfWeek=0;this._localeWeekendDays=[];this._rtl=!1;this._preventFocus=!1;this._isInitialized=!1;this._clearButtonListener=()=>this._onClearClicked(),this._dateClickListener=t=>this._onDateClick(t),this._keydownListener=t=>this._onKeydown(t),this._hoverListener=t=>this._onHover(t),this._menuFocusChangeListener=t=>this._onMenuFocusChange(t),this._menuListener=t=>this._onMenuSelect(t),this._monthButtonListener=()=>this._onMonthButtonClicked(),this._nextButtonListener=()=>this._onNextButtonClicked(),this._preventFocusListener=t=>t.preventDefault(),this._previousButtonListener=()=>this._onPreviousButtonClicked(),this._todayButtonListener=()=>this._onTodayClicked(),this._yearButtonListener=()=>this._onYearButtonClicked()}initialize(){this._adapter.registerMenuListener(this._menuListener),this._adapter.registerMenuFocusChangeEventListener(this._menuFocusChangeListener),this._adapter.registerKeydownListener(this._keydownListener),this._applyMin(),this._applyMax(),this._applyFixedHeight(),this._applyReadOnly(),this._applyShowToday(),this._applyPreventFocus(),this._applyShowHeader(),this._applyMonth(),this._applyYear(),this._applyListYears(),this._applyMenuAnimation(),this._applyLocale(),this._applyClearButton(),this._applyTodayButton(),this._applyFirstDayOfWeek(),this._applyShowOtherMonths(),this._createDateView(),this._applyConstrainToEnabled(),this._applyAllowSingleDateRange(),this._applyMode(),this._applyYearRange(),this._applySelectionFollowsMonth(),this._isInitialized=!0}disconnect(){this._isInitialized=!1}_onMonthButtonClicked(){this._toggleMonthMenu()}_toggleMonthMenu(e=!1){this._view!=="month"?this._openMonthMenu(e):this._closeMenu(!1,e)}_onYearButtonClicked(){this._toggleYearMenu()}_toggleYearMenu(e=!1){this._view!=="year"?this._openYearMenu(e):this._closeMenu(!1,e)}_onMenuFocusChange(e){this._emitFocusChangeEvent(e.detail)}_onMenuSelect(e){switch(this._view){case"month":this._onMonthSelected(e.detail);break;case"year":this._onYearSelected(e.detail);break}}_onNextButtonClicked(){this._view==="date"?(this._goToNextMonth(),this._setFocusInMonth(1,!1)):this._view==="month"?this._goToNextYear():this._goToNextSetOfYears()}_onPreviousButtonClicked(){this._view==="date"?(this._goToPreviousMonth(),this._setFocusInMonth(2,!1)):this._view==="month"?this._goToPreviousYear():this._goToPreviousSetOfYears()}_onHover(e){if(this._mode==="range"){let t=S(e,!1);if(!t)return;let a=new Date(Date.parse(t.getAttribute(n.attributes.DATA_DATE)));c(a,this._month,this._year)&&this._setRangePreview(a)}}_onDateClick(e){let t=S(e,!1);if(!t)return;let a=t.getAttribute(n.attributes.DATA_DATE);if(!a)return;let i=new Date(a);c(i,this._month,this._year)&&(this._focusedDate=i,this._beforeDateSelected(i)),this._resumeTabindexOnDate(!1)}_onKeydown(e){switch(e.key){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":this._handleArrowKey(e);break;case"Home":case"End":case"PageUp":case"PageDown":this._handleNavigationKey(e);break;case" ":case"Enter":this._handleEnterOrSpaceKey(e);break;case"m":case"M":e.preventDefault(),this._toggleMonthMenu(!0);break;case"y":case"Y":e.preventDefault(),this._toggleYearMenu(!0);break;case"t":case"T":case"n":case"N":e.preventDefault(),this.today();break;case"Delete":case"Backspace":e.preventDefault(),this._deselectAllDates();break;case"Escape":this._view!=="date"&&(e.preventDefault(),e.stopPropagation(),this._closeMenu(!1,!0));break}}_handleArrowKey(e){if(!X(e,this._view,this._preventFocus))return;e.preventDefault();let t;switch(e.key){case"ArrowLeft":t=this._rtl?"next":"previous";break;case"ArrowRight":t=this._rtl?"previous":"next";break;case"ArrowUp":t="up";break;case"ArrowDown":t="down";break}switch(t){case"previous":this._view==="date"?this._moveFocusToPreviousDate(!0):!this._adapter.moveMenuFocusBackward()&&this._canGoBackward()&&(this._view==="month"?this._goToPreviousYear(!0):this._goToPreviousSetOfYears(!0));break;case"next":this._view==="date"?this._moveFocusToNextDate(!0):!this._adapter.moveMenuFocusForward()&&this._canGoForward()&&(this._view==="month"?this._goToNextYear(!0):this._goToNextSetOfYears(!0));break;case"up":this._view==="date"?this._moveFocusToPreviousWeek(!0):this._adapter.moveMenuFocusUp();break;case"down":this._view==="date"?this._moveFocusToNextWeek(!0):this._adapter.moveMenuFocusDown();break}this._mode==="range"&&this._setRangePreview(this._focusedDate)}_handleNavigationKey(e){switch(e.preventDefault(),e.key){case"Home":if(this._view!=="date")break;e.shiftKey?this._moveFocusToFirstOfMonth(!0):this._moveFocusToFirstOfWeek(!0);break;case"End":if(this._view!=="date")break;e.shiftKey?this._moveFocusToLastOfMonth(!0):this._moveFocusToLastOfWeek(!0);break;case"PageUp":this._view==="date"?e.shiftKey?this._moveFocusToPreviousYear(!0):this._moveFocusToPreviousMonth(!0):this._view==="month"&&!e.shiftKey&&this._canGoBackward()?this._goToPreviousYear(!0):this._view==="year"&&!e.shiftKey&&this._canGoBackward()&&this._goToPreviousSetOfYears(!0);break;case"PageDown":this._view==="date"?e.shiftKey?this._moveFocusToNextYear(!0):this._moveFocusToNextMonth(!0):this._view==="month"&&!e.shiftKey&&this._canGoForward()?this._goToNextYear(!0):this._view==="year"&&!e.shiftKey&&this._canGoForward()&&this._goToNextSetOfYears(!0);break}}_handleEnterOrSpaceKey(e){if(X(e,this._view,this._preventFocus))switch(e.preventDefault(),this._view){case"date":if(this._readonly)break;this._setSelectOnFocusedDate();break;case"month":case"year":this._adapter.selectFocusedMenuItem();break}}_onMonthSelected(e){this._year!==this._menuYear&&this._menuYear!=null&&(this._year=this._menuYear,this._setYear()),this._month=e,this._setMonth(!0),this._trySetValueMonthAndYear(this._month,this._year,"month"),this._closeMenu(!0)}_onYearSelected(e){this._year=e,this._setYear(!0),this._trySetValueMonthAndYear(this._month,this._year,"year"),this._closeMenu(!0)}_onClearClicked(){this.clear()}_onTodayClicked(){this.today()}_trySetValueMonthAndYear(e,t,a="date"){var o;if(!this.selectionFollowsMonth||this._mode!=="single"||!((o=this._value)!=null&&o.length))return;let i=new Date(this._value[0]),r=pe(e,t);i.setDate(Math.min(i.getDate(),r)),i.setFullYear(t),i.setMonth(e),!_(i,this._getDisabledDateParams())&&this._beforeDateSelected(i,a)}_setInitialDateFocus(e=!1){let t=new Date;if(c(t,this._month,this._year)&&!_(t,this._getDisabledDateParams(!1))){this._setFocusedDate(t,e);return}let a=new Date(this._year,this._month,1);this._setFocusedDate(this._getNextEnabledDate(a,1,!1,!0,!0),e)}_resumeTabindexOnDate(e){return c(this._focusedDate,this._month,this._year)?(this._adapter.setActiveDate(this._focusedDate,e,this._preventFocus),this._emitFocusChangeEvent(this._focusedDate),!0):!1}_moveFocusToNextDate(e){this._setFocusedDate(this._getNextEnabledDate(this._focusedDate),e)}_moveFocusToPreviousDate(e){this._setFocusedDate(this._getPreviousEnabledDate(this._focusedDate),e)}_moveFocusToNextWeek(e){this._setFocusedDate(this._getNextEnabledDate(this._focusedDate,7,!0),e)}_moveFocusToPreviousWeek(e){this._setFocusedDate(this._getPreviousEnabledDate(this._focusedDate,7,!0),e)}_moveFocusToFirstOfWeek(e){this._setFocusedDate(this._getFirstEnabledDayOfWeek(this._focusedDate,!0),e)}_moveFocusToLastOfWeek(e){this._setFocusedDate(this._getLastEnabledDayOfWeek(this._focusedDate,!0),e)}_moveFocusToFirstOfMonth(e){let t=new Date(this._year,this._month,1);this._setFocusedDate(this._getNextEnabledDate(t,1,!1,!0),e)}_moveFocusToLastOfMonth(e){let t=new Date(this._year,this._month+1,0);this._setFocusedDate(this._getPreviousEnabledDate(t,1,!1,!0),e)}_moveFocusToNextMonth(e){let t=A(this._focusedDate,this._dates),a=(this._month+1)%12,i=a===0?this._year+1:this._year;this._setFocusedDate(this._getDateAtIndexInMonth(t,a,i),e)}_moveFocusToPreviousMonth(e){let t=A(this._focusedDate,this._dates),a=this._month===0?11:this._month-1,i=a===11?this._year-1:this._year;this._setFocusedDate(this._getDateAtIndexInMonth(t,a,i),e)}_moveFocusToNextYear(e){let t=A(this._focusedDate,this._dates);this._setFocusedDate(this._getDateAtIndexInMonth(t,this._month,this._year+1),e)}_moveFocusToPreviousYear(e){let t=A(this._focusedDate,this._dates);this._setFocusedDate(this._getDateAtIndexInMonth(t,this._month,this._year-1),e)}_setFocusInMonth(e,t){switch(e){case 1:this._moveFocusToFirstOfMonth(t);break;case 2:this._moveFocusToLastOfMonth(t);break;default:this._resumeTabindexOnDate(t);break}}_setSelectOnFocusedDate(){c(this._focusedDate,this._month,this._year)&&!_(this._focusedDate,this._getDisabledDateParams(!1))&&this._beforeDateSelected(this._focusedDate)}_emitFocusChangeEvent(e){let t={type:this._view,value:e};switch(this._view){case"date":t.selected=C(e,this._value),t.text=e.toLocaleDateString(this.locale,{month:"long",day:"2-digit",year:"numeric"});break;case"month":t.selected=this._month===e,t.text=E(e,"long");break;case"year":t.selected=this._year===e,t.text=D(e,"numeric");break}this._adapter.emitHostEvent(n.events.FOCUS_CHANGE,t)}_getPreviousEnabledDate(e,t=1,a=!1,i=!1,r=!1){let o=this._getDisabledDateParams(),u=new Date(e);if(i&&!_(u,o))return u;let p=e.getMonth(),v=!1;do u.setDate(u.getDate()-t),a&&(t=1),(r&&u.getMonth()!==p||this._min&&u<this._min)&&(v=!0);while(!v&&_(u,o));return v?null:u}_getNextEnabledDate(e,t=1,a=!1,i=!1,r=!1){let o=this._getDisabledDateParams(),u=new Date(e);if(i&&!_(u,o))return u;let p=e.getMonth(),v=!1;do u.setDate(u.getDate()+t),a&&(t=1),(r&&u.getMonth()!==p||this._max&&u>this._max)&&(v=!0);while(!v&&_(u,o));return v?null:u}_getClosestEnabledDate(e,t=!1,a=!1){if(this._min&&e<this._min)return this._getFirstEnabledDate();if(this._max&&e>this._max)return this._getLastEnabledDate();let i=this._getDisabledDateParams();if(a&&!_(e,i))return new Date(e);let r=e.getDate(),o,u=!1,p=!1,v=1;for(;!u||!p;){if(!u){if(o=new Date(e),o.setDate(r+v),u=!c(o,e.getMonth(),e.getFullYear()),!u&&!_(o,i))return o;this._max&&o>this._max&&(u=!0)}if(!p){if(o=new Date(e),o.setDate(r-v),p=!c(o,e.getMonth(),e.getFullYear()),!p&&!_(o,i))return o;this._min&&o<this._min&&(p=!0)}v+=1}return null}_getFirstEnabledDayOfWeek(e,t=!0){let a=k(e),i=this._getDisabledDateParams(t?a.getMonth()!==e.getMonth()||a.getFullYear()!==e.getFullYear():void 0),r=0;for(;r<7&&_(a,i);)a.setDate(a.getDate()+1),i.otherMonth=t?a.getMonth()!==e.getMonth()||a.getFullYear()!==e.getFullYear():void 0,r+=1;return r<7?a:null}_getLastEnabledDayOfWeek(e,t=!0){let a=We(e),i=this._getDisabledDateParams(t?a.getMonth()!==e.getMonth()||a.getFullYear()!==e.getFullYear():void 0),r=0;for(;r<7&&_(a,i);)a.setDate(a.getDate()-1),i.otherMonth=t?a.getMonth()!==e.getMonth()||a.getFullYear()!==e.getFullYear():void 0,r+=1;return r<7?a:null}_getDateAtIndexInMonth(e,t,a){var r;let i=V(t,a,(r=this._firstDayOfWeek)!=null?r:this._localeFirstDayOfWeek);return this._min&&i[e]<this._min?this._getFirstEnabledDate():this._max&&i[e]>this._max?this._getLastEnabledDate():c(i[e],t,a)?this._getClosestEnabledDate(i[e],!0):e<20?this._getNextEnabledDate(i[e],7,!0):this._getPreviousEnabledDate(i[e],7,!0)}_getFirstEnabledDate(){return this._min?this._getNextEnabledDate(this._min,1,!1,!0):null}_getLastEnabledDate(){return this._max?this._getPreviousEnabledDate(this._max,1,!1,!0):null}_setFocusedDate(e,t){if(!e)return;let a=this._month!==e.getMonth(),i=this._year!==e.getFullYear();(a||i)&&(a&&(this._month=e.getMonth(),this._setMonth()),i&&(this._year=e.getFullYear(),this._setYear()),this._resetDateGrid()),this._focusedDate=e,this._adapter.setActiveDate(this._focusedDate,t,this._preventFocus),this._emitFocusChangeEvent(this._focusedDate)}_getDisabledDateParams(e){return{builder:this._disabledDateBuilder,disabledDates:this._disabledDates,disabledDaysOfWeek:this._disabledDaysOfWeek,maxDate:this._max,minDate:this._min,otherMonth:e}}_createDateView(){this._resetDateGrid(),(!this._focusedDate||!this._resumeTabindexOnDate(!1))&&this._setInitialDateFocus()}_openMonthMenu(e=!1){this._view="month",this._menuYear==null&&(this._menuYear=this._year),this._showHeader&&(this._setNavButtonLabels(),this._adapter.setMonthButtonPressed(!0),this._adapter.setYearButtonPressed(!1)),this._adapter.openMenuAsGrid(this._getMonthsForMenu(),e),this._adapter.setDateViewHidden(!0),this._setNavigationButtonStates(),this._adapter.emitHostEvent(n.events.VIEW_CHANGE,this._view)}_openYearMenu(e=!1){var t;this._view="year",this._menuIncludedYear=(t=this._menuYear)!=null?t:this._year,this._showHeader&&(this._setNavButtonLabels(),this._adapter.setMonthButtonPressed(!1),this._adapter.setYearButtonPressed(!0)),this._listYears?this._adapter.openMenuAsList(this._getYearsForMenu(),e):this._adapter.openMenuAsGrid(this._getYearsForMenu(),e),this._adapter.setDateViewHidden(!0),this._setNavigationButtonStates(),this._adapter.emitHostEvent(n.events.VIEW_CHANGE,this._view)}_getMonthsForMenu(){var t;let e={locale:this._locale,max:this._max,min:this._min,selectedMonth:this._year===this._menuYear?this._month:-1,selectedYear:(t=this._menuYear)!=null?t:this._year};return qe(e)}_getYearsForMenu(){let e=this._min?this._min.getFullYear():this._minYear,t=this._max?this._max.getFullYear():this._maxYear,a={locale:this._locale,max:t,min:e,selectedYear:this._year,yearInView:this._menuIncludedYear},i=this._listYears?Ke(a):Ve(a);return this._menuYearsInView={min:i[0].value,max:i[i.length-1].value},i}_closeMenu(e,t=!1){this._view="date",this._menuYear=null,this._adapter.closeMenu(),this._adapter.setDateViewHidden(!1),this._adapter.setYear(this._year,this._locale),e&&this._resetDateGrid(),this._showHeader&&(this._setNavButtonLabels(),this._setNavigationButtonStates(),this._adapter.setMonthButtonPressed(!1),this._adapter.setYearButtonPressed(!1)),this._resumeTabindexOnDate(t)||this._setInitialDateFocus(t),this._adapter.emitHostEvent(n.events.VIEW_CHANGE,this._view)}_setNavButtonLabels(){switch(this._view){case"date":this._adapter.setPreviousButtonLabel("Previous month"),this._adapter.setNextButtonLabel("Next month");break;case"month":this._adapter.setPreviousButtonLabel("Previous year"),this._adapter.setNextButtonLabel("Next year");break;case"year":this._adapter.setPreviousButtonLabel("Previous years"),this._adapter.setNextButtonLabel("Next years");break}}_resetDateGrid(){var t;this._dates=V(this._month,this._year,(t=this._firstDayOfWeek)!=null?t:this._localeFirstDayOfWeek);let e=this._dates.map(a=>this._getDateConfig(a));this._adapter.setDates(e,{builder:this._dateBuilder,locale:this._locale,showOtherMonths:this._showOtherMonths}),this._setNavigationButtonStates(),this._applyWeekendDays(),this._applyEvents(),this._mode==="range"&&(this._adapter.setRangeStart(this._value[0]),this._setRangePreview())}_getDateConfig(e){let t=c(e,this._month,this._year);return{date:new Date(e),selected:C(e,this._value),today:Pe(e),thisMonth:t,disabled:_(e,this._getDisabledDateParams(!t))}}_getCalendarDate(e){return{date:new Date(e),selected:C(e,this._value),events:W(e,this._events,this._eventBuilder)}}_setEventsOnDate(e){var i;if(!this._showOtherMonths&&!c(e,this._month,this._year)){this._adapter.setEventWrapperOnDate(e,!1);return}let t=W(e,this._events,this._eventBuilder);this._adapter.setEventWrapperOnDate(e,!!t.length),t.forEach((r,o)=>{o>2||this._adapter.setEvent(r,o===2&&t.length>3)});let a=t.length?K(t):"";this._tooltipBuilder&&(a=(i=this._tooltipBuilder(this._getCalendarDate(e),a))!=null?i:""),this._adapter.setDateTooltip(e,a)}_beforeDateSelected(e,t="date"){this._dateSelectCallback?Promise.resolve(this._dateSelectCallback(this._getCalendarDate(e))).then(a=>{a&&this._onDateSelected(e,void 0,t)}):this._onDateSelected(e,void 0,t)}_onDateSelected(e,t,a="date"){if(this._mode==="range"&&this._emitRangeSelectionEvent(e)){this._applyRangeSelection(e),this._rangeSelectionStore=void 0;return}let i=C(e,this._value),r={date:new Date(e),selected:i,type:a};this._adapter.emitHostEvent(n.events.DATE_SELECT,r,!0,!0)&&(this._rangeSelectionStore=void 0,this._mode==="single"?i&&!t||t===!1?this._deselectDate(e):(t===void 0||t===!0)&&(this._value.length&&this._deselectDate(this._value[0]),this._selectDate(e)):i&&!t||t===!1?this._deselectDate(e):(t===void 0||t===!0)&&this._selectDate(e),Y(this._value))}_emitRangeSelectionEvent(e){let t={date:new Date(e),selected:C(e,this._value),type:"date"};switch(this._rangeSelectionState){case"none":case"to":t.range=m([e]),t.rangeSelectionState="from";break;case"from":g(e,this._value[0])?this._allowSingleDateRange?(t.range=m([this._value[0],e]),t.rangeSelectionState="to"):(t.range=m([]),t.rangeSelectionState="none"):e<this._value[0]?(t.range=m([e]),t.rangeSelectionState="from"):(t.range=m([this._value[0],e]),t.rangeSelectionState="to");break}return this._adapter.emitHostEvent(n.events.DATE_SELECT,t,!0,!0)}_applyRangeSelection(e){switch(this._rangeSelectionState){case"none":case"to":this._deselectAllDates(),this._selectDate(e),this._adapter.setRange(null),this._adapter.setRangeStart(e),this._rangeSelectionState="from";break;case"from":g(e,this._value[0])?this._allowSingleDateRange?(this._value.push(e),this._rangeSelectionState="to"):(this._deselectDate(e),this._rangeSelectionState="none"):e<this._value[0]?(this._deselectDate(this._value[0]),this._selectDate(e),this._adapter.setRangeStart(e)):(this._selectDate(e),this._setRangePreview(e),this._rangeSelectionState="to");break}}_setRangePreview(e){switch(this._rangeSelectionState){case"from":if(!e)return;e<this._value[0]?this._adapter.setRange(null):(this._adapter.setRange(H(this._dates,this._value[0],e)),this._adapter.setRangeEnd(e));break;case"to":this._adapter.setRange(H(this._dates,this._value[0],this._value[1])),this._adapter.setRangeEnd(this._value[1]);break}}_clearRangePreview(){this._adapter.setRange(null),this._adapter.setRangeStart(null),this._adapter.setRangeEnd(null)}_selectDate(e){this._value.push(e),this._focusedDate=e,this._adapter.setDateSelected(e,!0)}_deselectDate(e){let t=this._value.findIndex(a=>g(a,e));t>-1&&this._value.splice(t,1),this._adapter.setDateSelected(e,!1)}_deselectAllDates(){this._value.forEach(e=>this._adapter.setDateSelected(e,!1)),this._clearRangePreview(),this._value=[]}_goToDate(e,t){let a=e.getFullYear(),i=e.getMonth();this._focusedDate=e,this._month=i,this._setMonth(),this._year=a,this._setYear(),this._view!=="date"?this._closeMenu(!1,t):this._resetDateGrid(),this._adapter.setActiveDate(e,t,this._preventFocus),this._emitFocusChangeEvent(this._focusedDate)}_goToNextMonth(){this._month<11?this._month+=1:(this._month=0,this._year+=1,this._setYear()),this._setMonth(),this._resetDateGrid()}_goToPreviousMonth(){this._month>0?this._month-=1:(this._month=11,this._year-=1,this._setYear()),this._setMonth(),this._resetDateGrid()}_goToNextYear(e=!1){this._view==="month"?(this._menuYear&&(this._menuYear+=1,this._setMenuYear()),this._adapter.animateIntoSelectionMenu(this._getMonthsForMenu(),this._rtl?"left":"right",e)):(this._year+=1,this._setYear(),this._resetDateGrid())}_goToPreviousYear(e=!1){this._view==="month"?(this._menuYear&&(this._menuYear-=1,this._setMenuYear()),this._adapter.animateIntoSelectionMenu(this._getMonthsForMenu(),this._rtl?"right":"left",e)):(this._year-=1,this._setYear(),this._resetDateGrid())}_goToNextSetOfYears(e=!1){this._menuIncludedYear+=n.numbers.YEARS_IN_VIEW,this._adapter.animateIntoSelectionMenu(this._getYearsForMenu(),this._rtl?"left":"right",e),this._setNavigationButtonStates()}_goToPreviousSetOfYears(e=!1){this._menuIncludedYear-=n.numbers.YEARS_IN_VIEW,this._adapter.animateIntoSelectionMenu(this._getYearsForMenu(),this._rtl?"right":"left",e),this._setNavigationButtonStates()}_canGoBackward(e){var t;if(!e&&!this._constrainToEnabled)return!0;switch(this._view){case"date":return!this._min||this._min<new Date(this._year,this._month,1);case"month":let a=(t=this._min)==null?void 0:t.getFullYear();return this._menuYear!=null&&(a==null||a<this._menuYear);case"year":return!!this._menuYearsInView&&this._minYear<this._menuYearsInView.min;default:return!1}}_canGoForward(e){var t;if(!e&&!this._constrainToEnabled)return!0;switch(this._view){case"date":return!this._max||this._max>_e(this._month,this._year);case"month":let a=(t=this._max)==null?void 0:t.getFullYear();return this._menuYear!=null&&(a==null||a>this._menuYear);case"year":return!!this._menuYearsInView&&this._maxYear>this._menuYearsInView.max;default:return!1}}_setNavigationButtonStates(){if(this._showHeader){if(!this._constrainToEnabled){this._adapter.setPreviousButtonDisabled(!1),this._adapter.setNextButtonDisabled(!1);return}this._adapter.setPreviousButtonDisabled(!this._canGoBackward()),this._adapter.setNextButtonDisabled(!this._canGoForward())}}_setMonth(e){this._adapter.setMonth(this._month,this._locale),this._adapter.setHostAttribute(n.attributes.MONTH,this._month.toString()),this._isInitialized&&(this._setNavigationButtonStates(),this._adapter.emitHostEvent(n.events.MONTH_CHANGE,{month:this._month,userSelected:e!=null?e:!1,year:this._year}))}_setYear(e){this._adapter.setYear(this._year,this._locale),this._adapter.setHostAttribute(n.attributes.YEAR,this._year.toString()),this._isInitialized&&(this._setNavigationButtonStates(),this._adapter.emitHostEvent(n.events.MONTH_CHANGE,{month:this._month,userSelected:e!=null?e:!1,year:this._year}))}_setMenuYear(){this._menuYear!=null&&(this._setNavigationButtonStates(),this._adapter.setYear(this._menuYear,this._locale))}_applyAllowSingleDateRange(){this._adapter.toggleHostAttribute(n.attributes.ALLOW_SINGLE_DATE_RANGE,this._allowSingleDateRange),this._adapter.setContainerClass(n.classes.ALLOW_SINGLE_DATE_RANGE,this._allowSingleDateRange)}_applyClearButton(){this._adapter.toggleHostAttribute(n.attributes.CLEAR_BUTTON,!0,this._clearButton.toString()),this._clearButton?(this._adapter.setFooter(),this._adapter.setClearButton(),this._adapter.registerClearButtonListener(this._clearButtonListener)):(this._adapter.unregisterClearButtonListener(this._clearButtonListener),this._adapter.removeClearButton(),this._todayButton||this._adapter.removeFooter())}_applyConstrainToEnabled(){this._adapter.toggleHostAttribute(n.attributes.CONSTRAIN_TO_ENABLED,!0,this._constrainToEnabled.toString()),this._isInitialized&&this._setNavigationButtonStates()}_applyDateBuilder(){this._view==="date"&&(this._resetDateGrid(),this._resumeTabindexOnDate(!1))}_applyDayBuilder(){var e;this._adapter.setDays(N((e=this._firstDayOfWeek)!=null?e:this._localeFirstDayOfWeek),{builder:this._dayBuilder,locale:this._locale})}_applyDisabledDates(){switch(this._view){case"date":this._dates.forEach(e=>{let t=c(e,this._month,this._year),a=this._getDisabledDateParams(!t);this._adapter.setDateDisabled(e,_(e,a))});break;case"month":this._openMonthMenu();break;case"year":this._openYearMenu();break}this._setNavigationButtonStates()}_applyEvents(){this._view==="date"&&this._dates.forEach(e=>{this._setEventsOnDate(e)})}_applyFirstDayOfWeek(){var e,t;this._adapter.toggleHostAttribute(n.attributes.FIRST_DAY_OF_WEEK,I(this._firstDayOfWeek),((e=this._firstDayOfWeek)!=null?e:0).toString()),this._adapter.setDays(N((t=this._firstDayOfWeek)!=null?t:this._localeFirstDayOfWeek),{builder:this._dayBuilder,locale:this._locale}),this._isInitialized&&this._view==="date"&&(this._resetDateGrid(),this._resumeTabindexOnDate(!1))}_applyFixedHeight(){this._adapter.toggleHostAttribute(n.attributes.FIXED_HEIGHT,this._fixedHeight),this._adapter.setContainerClass(n.classes.FIXED_HEIGHT,this._fixedHeight)}_applyListYears(){this._adapter.toggleHostAttribute(n.attributes.LIST_YEARS,this._listYears),this._isInitialized&&this._view==="year"&&this._openYearMenu()}_applyLocale(){var e;if(this._adapter.toggleHostAttribute(n.attributes.LOCALE,!!this._locale,this._locale),this._adapter.toggleContainerAttribute(!!this._locale,"lang",this._locale),this._localeFirstDayOfWeek=we(this._locale),this._localeWeekendDays=Ce(this._locale),this._applyRtl(),this._isInitialized)switch(this._adapter.setMonth(this._month,this._locale),this._adapter.setYear(this._year,this._locale),this._view){case"date":this._adapter.setDays(N((e=this._firstDayOfWeek)!=null?e:this._localeFirstDayOfWeek),{builder:this._dayBuilder,locale:this._locale}),this._resetDateGrid(),this._resumeTabindexOnDate(!1);break;case"month":this._openMonthMenu();break;case"year":this._openYearMenu();break}}_applyMenuAnimation(){this._adapter.setHostAttribute(n.attributes.MENU_ANIMATION,this._menuAnimation),this._adapter.setMenuAnimation(this._menuAnimation)}_applyMin(){if(this._adapter.toggleHostAttribute(n.attributes.MIN,!!this._minAttribute,this._minAttribute),this._min){let e=new Date(this._min.getFullYear(),this._min.getMonth(),1),t=new Date(this._year,this._month,1);e>t&&(this._year=this._min.getFullYear(),this._month=this._min.getMonth())}if(this._isInitialized&&(this._applyDisabledDates(),this._min&&this._min>this._focusedDate)){let e=this._getFirstEnabledDate();e&&this._goToDate(e,!1)}}_applyMax(){if(this._adapter.toggleHostAttribute(n.attributes.MAX,!!this._maxAttribute,this._maxAttribute),this._max){let e=new Date(this._max.getFullYear(),this._max.getMonth(),1),t=new Date(this._year,this._month,1);e<t&&(this._year=this._max.getFullYear(),this._month=this._max.getMonth())}if(this._isInitialized&&(this._applyDisabledDates(),this._max&&this._max<this._focusedDate)){let e=this._getLastEnabledDate();e&&this._goToDate(e,!1)}}_applyMode(e){switch(this._mode){case"single":this._applySingleMode();break;case"multiple":this._applyMultipleMode(e==="range");break;case"range":this._applyRangeMode();break}this._mode!=="range"&&(this._rangeSelectionState="none",this._adapter.unregisterHoverListener(this._hoverListener),this._clearRangePreview())}_applySingleMode(){if(this._adapter.setHostAttribute(n.attributes.MODE,"single"),this._adapter.setMultiple(!1),this._value.length>1)for(let e=this._value.length-2;e>=0;e-=1)this._deselectDate(this._value[e])}_applyMultipleMode(e=!1){if(this._adapter.setHostAttribute(n.attributes.MODE,"multiple"),this._adapter.setMultiple(!0),e){let t=$e(this._value,this._getDisabledDateParams());this._deselectAllDates(),t.forEach(a=>{this._selectDate(a)})}}_applyRangeMode(){var t,a;this._adapter.setHostAttribute(n.attributes.MODE,"range"),this._adapter.setMultiple(!1);let e=R(this._value);this._deselectAllDates(),e.forEach(i=>{this._selectDate(i)}),this._rangeSelectionState=this._value[0]?this._value[1]?"to":"from":"none",this._adapter.registerHoverListener(this._hoverListener),this._adapter.setRange(H(this._dates,this._value[0],this._value[1])),this._adapter.setRangeStart((t=this._value[0])!=null?t:null),this._adapter.setRangeEnd((a=this._value[1])!=null?a:null)}_applyMonth(){this._setMonth(),this._isInitialized&&this._view==="date"&&(this._resetDateGrid(),this._moveFocusToFirstOfMonth(!1))}_applyPreventFocus(){this._adapter.toggleHostAttribute(n.attributes.PREVENT_FOCUS,this._preventFocus),this._adapter.setContainerClass(n.classes.PREVENT_FOCUS,this._preventFocus),this._adapter.setPreventFocusOnMenu(this._preventFocus),this._preventFocus?this._adapter.registerPreventFocusListener(this._preventFocusListener):this._adapter.unregisterPreventFocusListener(this._preventFocusListener),this._isInitialized&&this._view==="date"&&this._resumeTabindexOnDate(!1)}_applyReadOnly(){this._adapter.toggleHostAttribute(n.attributes.READONLY,this._readonly),this._adapter.toggleHostAttribute("aria-readonly",this._readonly,"true"),this._adapter.setContainerClass(n.classes.READONLY,this._readonly),this._readonly?(this._adapter.unregisterDateClickListener(this._dateClickListener),this._adapter.unregisterHoverListener(this._hoverListener)):(this._adapter.registerDateClickListener(this._dateClickListener),this._mode==="range"&&this._adapter.registerHoverListener(this._hoverListener))}_applyRtl(){this._rtl=Me(this._locale),this._adapter.setContainerClass(n.classes.RTL,this._rtl),this._adapter.toggleContainerAttribute(this._rtl,"dir","rtl")}_applySelectionFollowsMonth(){this._adapter.setHostAttribute(n.attributes.SELECTION_FOLLOWS_MONTH,this._selectionFollowsMonth.toString())}_applyShowHeader(){this._adapter.toggleHostAttribute(n.attributes.SHOW_HEADER,this._showHeader,this._showHeader.toString()),this._showHeader?(this._adapter.setHeader(),this._adapter.registerMonthButtonListener(this._monthButtonListener),this._adapter.registerNextButtonListener(this._nextButtonListener),this._adapter.registerPreviousButtonListener(this._previousButtonListener),this._adapter.registerYearButtonListener(this._yearButtonListener),this._setNavButtonLabels()):(this._adapter.unregisterMonthButtonListener(this._monthButtonListener),this._adapter.unregisterNextButtonListener(this._nextButtonListener),this._adapter.unregisterPreviousButtonListener(this._previousButtonListener),this._adapter.unregisterYearButtonListener(this._yearButtonListener),this._adapter.removeHeader()),this._isInitialized&&(this._adapter.setMonth(this._month,this._locale),this._adapter.setYear(this._year,this._locale),this._setNavigationButtonStates())}_applyShowOtherMonths(){if(this._adapter.toggleHostAttribute(n.attributes.SHOW_OTHER_MONTHS,this._showOtherMonths),this._isInitialized&&this._view==="date"){let e=!1;this._dates.forEach((t,a)=>{c(t,this._month,this._year)||((a===n.numbers.PENULTIMATE_WEEK_BEGIN_INDEX||a===n.numbers.FINAL_WEEK_BEGIN_INDEX)&&(e=!0),this._showOtherMonths&&!e?this._adapter.replaceDate(this._getDateConfig(t),{builder:this._dateBuilder,locale:this._locale}):this._adapter.replaceDateWithSpacer(t),this._setEventsOnDate(t),this._applyWeekendDays())})}}_applyShowToday(){this._adapter.toggleHostAttribute(n.attributes.SHOW_TODAY,this._showToday),this._adapter.setContainerClass(n.classes.SHOW_TODAY,this._showToday)}_applyTodayButton(){this._adapter.toggleHostAttribute(n.attributes.TODAY_BUTTON,!0,this._todayButton.toString()),this._todayButton?(this._adapter.setFooter(),this._adapter.setTodayButton(),this._adapter.registerTodayButtonListener(this._todayButtonListener)):(this._adapter.unregisterTodayButtonListener(this._todayButtonListener),this._adapter.removeTodayButton(),this._clearButton||this._adapter.removeFooter())}_applyTooltipBuilder(){this._view==="date"&&this._dates.forEach(e=>{var i;if(!this._showOtherMonths&&!c(e,this._month,this._year))return;let t=W(e,this._events,this._eventBuilder),a=K(t);this._tooltipBuilder&&(a=(i=this._tooltipBuilder(this._getCalendarDate(e),a))!=null?i:""),this._adapter.setDateTooltip(e,a)})}_applyWeekendDays(){var t;let e=(t=this._weekendDays)!=null?t:this._localeWeekendDays;this._view==="date"&&this._dates.forEach(a=>{let i=a.getDay();this._adapter.setWeekend(a,(this._showOtherMonths||c(a,this._month,this._year))&&e.includes(i))})}_applyValue(e){e=e.map(t=>new Date(t)),Y(e),this._deselectAllDates(),e.forEach(t=>this._selectDate(t)),this._mode==="range"&&(this._rangeSelectionState=this._value.length===2?"to":this._value.length===1?"from":"none",this._clearRangePreview(),this._adapter.setRangeStart(this._value[0]),this._setRangePreview())}_applyView(){switch(this._adapter.setHostAttribute(n.attributes.VIEW,this._view),this._view){case"date":this._closeMenu();break;case"month":this._openMonthMenu();break;case"year":this._openYearMenu();break}}_applyYear(){this._setYear(),this._isInitialized&&this._view==="date"&&(this._resetDateGrid(),this._moveFocusToFirstOfMonth(!1))}_applyYearRange(){this._adapter.setHostAttribute(n.attributes.YEAR_RANGE,this._yearRange);let e=Ue(this._yearRange);this._minYear=e.min,this._maxYear=e.max,this._view==="year"&&(this._openYearMenu(),this._setNavigationButtonStates())}get activeDate(){return new Date(this._focusedDate)}get allowSingleDateRange(){return this._allowSingleDateRange}set allowSingleDateRange(e){this._allowSingleDateRange!==e&&(this._allowSingleDateRange=e,this._applyAllowSingleDateRange())}get clearButton(){return this._clearButton}set clearButton(e){this._clearButton!==e&&(this._clearButton=e,this._isInitialized&&this._applyClearButton())}get clearCallback(){return this._clearCallback}set clearCallback(e){this._clearCallback=e}get constrainToEnabled(){return this._constrainToEnabled}set constrainToEnabled(e){this._constrainToEnabled!==e&&(this._constrainToEnabled=e,this._isInitialized&&this._applyConstrainToEnabled())}get dateBuilder(){return this._dateBuilder}set dateBuilder(e){this._dateBuilder=e,this._isInitialized&&this._applyDateBuilder()}get dateSelectCallback(){return this._dateSelectCallback}set dateSelectCallback(e){this._dateSelectCallback=e}get dayBuilder(){return this.dayBuilder}set dayBuilder(e){this._dayBuilder=e,this._isInitialized&&this._applyDayBuilder()}get disabledDateBuilder(){return this._disabledDateBuilder}set disabledDateBuilder(e){this._disabledDateBuilder=e,this._isInitialized&&this._applyDisabledDates()}get disabledDates(){let e=this._disabledDates.map(t=>new Date(t));return e.length?e:null}set disabledDates(e){let t=e?T(e)?e:[e]:[];this._disabledDates=t.map(a=>{let i=new Date(a);return i.setHours(0,0,0,0),i}),this._isInitialized&&this._applyDisabledDates()}get disabledDaysOfWeek(){return this._disabledDaysOfWeek.length?[...this._disabledDaysOfWeek]:null}set disabledDaysOfWeek(e){this._disabledDaysOfWeek=I(e)?T(e)?e:[e]:[],this._isInitialized&&this._applyDisabledDates()}get eventBuilder(){return this._eventBuilder}set eventBuilder(e){this._eventBuilder=e,this._isInitialized&&this._applyEvents()}get events(){return this._events?[...this._events]:null}set events(e){this._events=e!=null&&e.length?[...e]:[],this._isInitialized&&this._applyEvents()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek!==e&&(this._firstDayOfWeek=I(e)?+e:e,this._isInitialized&&this._applyFirstDayOfWeek())}get fixedHeight(){return this._fixedHeight}set fixedHeight(e){this._fixedHeight!==e&&(this._fixedHeight=e,this._isInitialized&&this._applyFixedHeight())}get listYears(){return this._listYears}set listYears(e){this._listYears!==e&&(this._listYears=e,this._applyListYears())}get locale(){return this._locale}set locale(e){typeof e=="string"&&!e.length&&(e=void 0),this._locale!==e&&(this._locale=e,this._isInitialized&&this._applyLocale())}get max(){return this._max}set max(e){var t;this._maxAttribute!==e&&(this._maxAttribute=(t=e==null?void 0:e.toString())!=null?t:null,this._max=$(e),this._applyMax())}get menuAnimation(){return this._menuAnimation}set menuAnimation(e){this._menuAnimation!==e&&(this._menuAnimation=e,this._isInitialized&&this._applyMenuAnimation())}get min(){return this._min}set min(e){var t;this._minAttribute!==e&&(this._minAttribute=(t=e==null?void 0:e.toString())!=null?t:null,this._min=$(e),this._applyMin())}get mode(){return this._mode}set mode(e){if(this._mode!==e){let t=this._mode;this._mode=e,this._isInitialized&&this._applyMode(t)}}get month(){return this._month}set month(e){if(this._month!==e){let t=isNaN(+e)?this._month:+e;if(this._month===t)return;this._month=+e,this._isInitialized&&this._applyMonth()}}get preventFocus(){return this._preventFocus}set preventFocus(e){this._preventFocus!==e&&(this._preventFocus=e,this._isInitialized&&this._applyPreventFocus())}get readonly(){return this._readonly}set readonly(e){this._readonly!==e&&(this._readonly=e,this._isInitialized&&this._applyReadOnly())}get selectionFollowsMonth(){return this._selectionFollowsMonth}set selectionFollowsMonth(e){this._selectionFollowsMonth!==e&&(this._selectionFollowsMonth=e,this._isInitialized&&this._applySelectionFollowsMonth())}get showHeader(){return this._showHeader}set showHeader(e){this._showHeader!==e&&(this._showHeader=e,this._isInitialized&&this._applyShowHeader())}get showOtherMonths(){return this._showOtherMonths}set showOtherMonths(e){this._showOtherMonths!==e&&(this._showOtherMonths=e,this._isInitialized&&this._applyShowOtherMonths())}get showToday(){return this._showToday}set showToday(e){this._showToday!==e&&(this._showToday=e,this._isInitialized&&this._applyShowToday())}get todayButton(){return this._todayButton}set todayButton(e){this._todayButton!==e&&(this._todayButton=e,this._isInitialized&&this._applyTodayButton())}get todayCallback(){return this._todayCallback}set todayCallback(e){this._todayCallback=e}get tooltipBuilder(){return this._tooltipBuilder}set tooltipBuilder(e){this._tooltipBuilder=e,this._isInitialized&&this._applyTooltipBuilder()}get value(){var t;if(this._mode==="range")return(t=this._rangeSelectionStore)!=null?t:m(this._value);let e=this._value.map(a=>new Date(a));return this._mode==="multiple"?e:e.length?e[0]:null}set value(e){let t=[];if(this._rangeSelectionStore=void 0,!e||Array.isArray(e)&&!e.length)this._value=[];else if(Array.isArray(e))switch(this._mode){case"single":t=[e[0]];break;case"multiple":t=e;break;case"range":let a=R(e);t.push(a[0]),a.length>1&&t.push(a[1]);break}else B(new Date(e))?t=[e]:(this._rangeSelectionStore=new w(e),t=ze(e));this._applyValue(t)}get view(){return this._view}set view(e){this._view!==e&&(this._view=e,this._applyView())}get weekendDays(){return this._weekendDays?[...this._weekendDays]:null}set weekendDays(e){var t;this._weekendDays=(t=e==null?void 0:e.map(a=>+a))!=null?t:null,this._isInitialized&&this._applyWeekendDays()}get year(){return this._year}set year(e){if(this._year!==e){let t=isNaN(+e)?this._year:+e;if(this._year===t)return;this._year=t,this._isInitialized&&this._applyYear()}}get yearRange(){return this._yearRange}set yearRange(e){this._yearRange!==e&&(this._yearRange=e,this._isInitialized&&this._applyYearRange())}clear(){this._deselectAllDates(),this._clearCallback&&this._clearCallback()}deselectDate(e,t){this._onDateSelected(e,!1),t&&(this._focusedDate=e,this._resumeTabindexOnDate(!0))}goToDate(e,t){this._goToDate(e,t!=null?t:!1)}handleExternalKeyEvent(e){this._onKeydown(e)}layout(){this._applyFirstDayOfWeek(),this._createDateView(),this._applyShowHeader(),this._applyConstrainToEnabled()}selectDate(e,t){this._onDateSelected(e,!0),t&&(this._focusedDate=e,this._resumeTabindexOnDate(!0))}setActiveDate(e,t){return this._dates.some(a=>g(a,e)&&(this._showOtherMonths||c(a,this._month,this._year)))?(this._goToDate(e,t!=null?t:!1),!0):!1}today(){let e=new Date;e.setHours(0,0,0,0),this._goToDate(e,!0),this._todayCallback&&this._todayCallback()}toggleDate(e,t){this._onDateSelected(e)}};var tt='<template><div class="forge-calendar" part="root"><div id="view" class="forge-calendar__view" part="view"><div id="date-view" class="forge-calendar__date-view" role="grid" part="date-view"><div role="rowgroup" part="date-view-container"><div id="day-row" class="forge-calendar__date-view__row" role="row" part="date-view-row"></div></div><div id="date-grid" class="forge-calendar__date-grid" role="rowgroup" part="date-grid-container"></div></div><forge-calendar-menu id="menu" part="calendar-menu"></forge-calendar-menu></div></div></template>',at='.forge-calendar{width:var(--forge-calendar-width,100%);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:relative}.forge-calendar__header{padding:var(--forge-calendar-controls-padding,0);display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:justify;justify-content:space-between}.forge-calendar__footer{padding:var(--forge-calendar-controls-padding,0);display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:justify;justify-content:space-between}.forge-calendar__view{position:relative}.forge-calendar__date-view{display:block}.forge-calendar__date-view__row{display:grid;grid-template-columns:repeat(7,1fr)}.forge-calendar__date-grid{display:grid}.forge-calendar__day{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .8125)));font-weight:var(--forge-typography-label2-font-weight,400);line-height:var(--forge-typography-label2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label2-letter-spacing, .0096153846em);text-transform:var(--forge-typography-label2-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-label2-text-decoration,inherit);text-decoration:var(--forge-typography-label2-text-decoration,inherit);display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;min-width:0;padding:0;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.forge-calendar__day::after{float:left;padding-top:100%;content:""}.forge-calendar__date{margin-top:var(--forge-calendar-row-gap,2px);min-width:0;padding:0;border-radius:50%;position:relative;outline:0;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.forge-calendar__date::after{float:left;padding-top:100%;content:""}.forge-calendar__date forge-focus-indicator{--forge-focus-indicator-shape:50%}.forge-calendar__date__inner{-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:absolute;width:calc(100% - 2px);height:calc(100% - 2px);top:calc(2px / 2);left:calc(2px / 2);display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;border-radius:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.forge-calendar--show-today .forge-calendar__date--today:not([disabled]){color:var(--forge-theme-primary,#3f51b5);border-color:var(--forge-theme-primary,#3f51b5)}.forge-calendar--show-today .forge-calendar__date--today .forge-calendar__date__inner{border-color:inherit;border-width:1px;border-style:solid;font-weight:700}.forge-calendar--show-today .forge-calendar__date--today.forge-calendar__date--selected{color:var(--forge-theme-on-primary,#fff)}.forge-calendar:not(.forge-calendar--readonly) .forge-calendar__date:not([disabled]){cursor:pointer}.forge-calendar__date--selected:not([disabled]) .forge-calendar__date__inner{background-color:var(--forge-theme-primary,#3f51b5);color:var(--forge-theme-on-primary,#fff)}.forge-calendar__date--selected[disabled] .forge-calendar__date__inner{background-color:var(--forge-theme-primary-container-minimum,#f7f8fc);color:var(--forge-theme-text-low,rgba(0,0,0,.38))}.forge-calendar__date--selected forge-focus-indicator{--forge-focus-indicator-color:var(--forge-theme-primary-container)}.forge-calendar__date[disabled]{color:var(--forge-theme-text-low,rgba(0,0,0,.38))}.forge-calendar__date-spacer{pointer-events:none}.forge-calendar--fixed-height .forge-calendar__date-spacer{margin-top:var(--forge-calendar-row-gap,2px)}.forge-calendar--fixed-height .forge-calendar__date-spacer::after{float:left;padding-top:100%;content:""}.forge-calendar__range:not(.forge-calendar__date-spacer) .forge-calendar__range__target{background-color:var(--forge-theme-primary,#3f51b5);position:absolute;width:100%;height:100%;opacity:.14;border-radius:0}.forge-calendar__range:not(.forge-calendar__date-spacer).forge-calendar__range--start .forge-calendar__range__target{border-top-left-radius:50%;border-bottom-left-radius:50%}.forge-calendar__range:not(.forge-calendar__date-spacer).forge-calendar__range--end .forge-calendar__range__target{border-top-right-radius:50%;border-bottom-right-radius:50%}.forge-calendar__range:not(.forge-calendar__range--start):first-of-type .forge-calendar__range__target{border-top-left-radius:4px;border-bottom-left-radius:4px}.forge-calendar__range:not(.forge-calendar__range--end):last-of-type .forge-calendar__range__target{border-top-right-radius:4px;border-bottom-right-radius:4px}.forge-calendar--allow-single-date-range .forge-calendar__range--start.forge-calendar__range--end .forge-calendar__range__target{-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s;-webkit-transform:scale(1.15);transform:scale(1.15);-webkit-transform-origin:center;transform-origin:center}.forge-calendar__event{font-size:var(--forge-calendar-event-dot-size, 12px)}.forge-calendar__event[data-event-theme=primary]{color:var(--forge-calendar-theme-event-primary-accent,#3f51b5)}.forge-calendar__event[data-event-theme=secondary]{color:var(--forge-calendar-theme-event-secondary-accent,#ffc107)}.forge-calendar__event[data-event-theme=blue]{color:var(--forge-calendar-theme-event-blue-accent,#2196f3)}.forge-calendar__event[data-event-theme=light-green]{color:var(--forge-calendar-theme-event-light-green-accent,#8bc34a)}.forge-calendar__event[data-event-theme=cyan]{color:var(--forge-calendar-theme-event-cyan-accent,#00bcd4)}.forge-calendar__event[data-event-theme=teal]{color:var(--forge-calendar-theme-event-teal-accent,#009688)}.forge-calendar__event[data-event-theme=orange]{color:var(--forge-calendar-theme-event-orange-accent,#ff9800)}.forge-calendar__event[data-event-theme=blue-grey]{color:var(--forge-calendar-theme-event-blue-grey-accent,#607d8b)}.forge-calendar__event[data-event-theme=grey]{color:var(--forge-calendar-theme-event-grey-accent,#9e9e9e)}.forge-calendar__event[data-event-theme=red]{color:var(--forge-calendar-theme-event-red-accent,#f44336)}.forge-calendar__event[data-event-theme=pink]{color:var(--forge-calendar-theme-event-pink-accent,#e91e63)}.forge-calendar__event[data-event-theme=purple]{color:var(--forge-calendar-theme-event-purple-accent,#9c27b0)}.forge-calendar__event[data-event-theme=light-blue]{color:var(--forge-calendar-theme-event-light-blue-accent,#03a9f4)}.forge-calendar__event[data-event-theme=deep-purple]{color:var(--forge-calendar-theme-event-deep-purple-accent,#673ab7)}.forge-calendar__event[data-event-theme=green]{color:var(--forge-calendar-theme-event-green-accent,#4caf50)}.forge-calendar__event[data-event-theme=lime]{color:var(--forge-calendar-theme-event-lime-accent,#cddc39)}.forge-calendar__event[data-event-theme=yellow]{color:var(--forge-calendar-theme-event-yellow-accent,#ffeb3b)}.forge-calendar__event[data-event-theme=brown]{color:var(--forge-calendar-theme-event-brown-accent,#795548)}.forge-calendar__event[data-event-theme=deep-orange]{color:var(--forge-calendar-theme-event-deep-orange-accent,#ff5722)}.forge-calendar__date[disabled] .forge-calendar__event{opacity:.14}.forge-calendar__event--overflow{background-color:var(--forge-theme-surface,#fff);color:var(--forge-theme-on-surface,#000);border-radius:50%}.forge-calendar__event__wrapper{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;gap:2px;position:absolute;bottom:0;left:0;width:100%;padding-bottom:2px;pointer-events:none}.forge-calendar__date-spacer .forge-calendar__event__wrapper{display:none}.forge-calendar--rtl .forge-calendar__header forge-icon-button forge-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}#accessible-header{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}#month-button forge-icon{-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s}.forge-calendar--month-menu-open #month-button forge-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}#year-button forge-icon{-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s}.forge-calendar--year-menu-open #year-button forge-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host{--forge-calendar-event-stroke-color:var(--forge-theme-surface, #ffffff);display:inline-block}:host([hidden]){display:none}:host([forge-popover-context=true]){--forge-calendar-event-stroke-color:var(--forge-theme-surface-bright, #ffffff)}',l=class extends HTMLElement{constructor(){super();ve.define([de,he,le,ue,oe]),ne(this,tt,at),this._foundation=new G(new P(this))}static get observedAttributes(){return[n.attributes.ALLOW_SINGLE_DATE_RANGE,n.attributes.CLEAR_BUTTON,n.attributes.CONSTRAIN_TO_ENABLED,n.attributes.FIRST_DAY_OF_WEEK,n.attributes.FIXED_HEIGHT,n.attributes.LIST_YEARS,n.attributes.LOCALE,n.attributes.MAX,n.attributes.MENU_ANIMATION,n.attributes.MIN,n.attributes.MODE,n.attributes.MONTH,n.attributes.PREVENT_FOCUS,n.attributes.READONLY,n.attributes.SELECTION_FOLLOWS_MONTH,n.attributes.SHOW_HEADER,n.attributes.SHOW_OTHER_MONTHS,n.attributes.SHOW_TODAY,n.attributes.TODAY_BUTTON,n.attributes.VIEW,n.attributes.YEAR,n.attributes.YEAR_RANGE]}connectedCallback(){!this.hasAttribute(n.attributes.POPOVER_CONTEXT)&&Q(this).some(t=>t.tagName.toLowerCase()==="forge-popover")&&this.setAttribute(n.attributes.POPOVER_CONTEXT,"true"),this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,a,i){switch(t){case n.attributes.ALLOW_SINGLE_DATE_RANGE:this.allowSingleDateRange=f(i);break;case n.attributes.CLEAR_BUTTON:this.clearButton=f(i);break;case n.attributes.CONSTRAIN_TO_ENABLED:this.constrainToEnabled=f(i);break;case n.attributes.FIRST_DAY_OF_WEEK:this.firstDayOfWeek=L(i);break;case n.attributes.FIXED_HEIGHT:this.fixedHeight=f(i);break;case n.attributes.LIST_YEARS:this.listYears=f(i);break;case n.attributes.LOCALE:this.locale=i;break;case n.attributes.MAX:this.max=i;break;case n.attributes.MENU_ANIMATION:this.menuAnimation=i;break;case n.attributes.MIN:this.min=i;break;case n.attributes.MODE:this.mode=i;break;case n.attributes.MONTH:this.month=L(i);break;case n.attributes.PREVENT_FOCUS:this.preventFocus=f(i);break;case n.attributes.READONLY:this.readonly=f(i);break;case n.attributes.SELECTION_FOLLOWS_MONTH:this.selectionFollowsMonth=f(i);break;case n.attributes.SHOW_HEADER:this.showHeader=f(i);break;case n.attributes.SHOW_OTHER_MONTHS:this.showOtherMonths=f(i);break;case n.attributes.SHOW_TODAY:this.showToday=f(i);break;case n.attributes.TODAY_BUTTON:this.todayButton=f(i);break;case n.attributes.VIEW:this.view=i;break;case n.attributes.YEAR:this.year=L(i);break;case n.attributes.YEAR_RANGE:this.yearRange=i;break}}clear(){this._foundation.clear()}deselectDate(t){this._foundation.deselectDate(new Date(t))}goToDate(t,a){this._foundation.goToDate(new Date(t),a)}handleKey(t){this._foundation.handleExternalKeyEvent(t)}layout(){this._foundation.layout()}selectDate(t){this._foundation.selectDate(new Date(t))}setActiveDate(t,a){return this._foundation.setActiveDate(new Date(t),a)}today(){this._foundation.today()}toggleDate(t,a){this._foundation.toggleDate(new Date(t),a)}};d([h({set:!1})],l.prototype,"activeDate",2),d([h()],l.prototype,"allowSingleDateRange",2),d([h()],l.prototype,"clearButton",2),d([h()],l.prototype,"clearCallback",2),d([h()],l.prototype,"constrainToEnabled",2),d([h()],l.prototype,"dateBuilder",2),d([h()],l.prototype,"dateSelectCallback",2),d([h()],l.prototype,"dayBuilder",2),d([h()],l.prototype,"disabledDateBuilder",2),d([h()],l.prototype,"disabledDates",2),d([h()],l.prototype,"disabledDaysOfWeek",2),d([h()],l.prototype,"eventBuilder",2),d([h()],l.prototype,"events",2),d([h()],l.prototype,"firstDayOfWeek",2),d([h()],l.prototype,"fixedHeight",2),d([h()],l.prototype,"listYears",2),d([h()],l.prototype,"locale",2),d([h()],l.prototype,"max",2),d([h()],l.prototype,"menuAnimation",2),d([h()],l.prototype,"min",2),d([h()],l.prototype,"mode",2),d([h()],l.prototype,"month",2),d([h()],l.prototype,"preventFocus",2),d([h()],l.prototype,"readonly",2),d([h()],l.prototype,"selectionFollowsMonth",2),d([h()],l.prototype,"showHeader",2),d([h()],l.prototype,"showOtherMonths",2),d([h()],l.prototype,"showToday",2),d([h()],l.prototype,"todayButton",2),d([h()],l.prototype,"todayCallback",2),d([h()],l.prototype,"tooltipBuilder",2),d([h()],l.prototype,"value",2),d([h()],l.prototype,"view",2),d([h()],l.prototype,"weekendDays",2),d([h()],l.prototype,"year",2),d([h()],l.prototype,"yearRange",2),l=d([se({name:n.elementName,dependencies:[ye,Ee,De,fe,me,ge,be]})],l);var Xe=class extends ce{constructor(e){super(e)}_build(){return document.createElement(n.elementName)}onDateSelect(e){this._element.addEventListener(n.events.DATE_SELECT,e)}onFocusChange(e){this._element.addEventListener(n.events.FOCUS_CHANGE,e)}onMonthChange(e){this._element.addEventListener(n.events.MONTH_CHANGE,e)}onViewChange(e){this._element.addEventListener(n.events.VIEW_CHANGE,e)}};function ja(){ie(l)}export{V as a,ft as b,k as c,We as d,gt as e,N as f,Pe as g,c as h,Qe as i,Y as j,Ge as k,m as l,ze as m,R as n,H as o,K as p,et as q,Ue as r,qe as s,Ve as t,Ke as u,C as v,_ as w,A as x,W as y,$e as z,$ as A,X as B,P as C,G as D,l as E,Xe as F,ja as G};
7
+ //# sourceMappingURL=chunk.PDJ2H5ZG.js.map